Mathc gnuplot/Fichiers h : Fichiers h partagés
Installer ce fichier dans votre répertoire de travail.
![]() |
vmatini.h |
---|
/* ------------------------------------ */
/* Save as : vmatini.h */
/* -------------------------------------*/
double **I_mR(
int r,
int c
)
{
int i = R0;
int ar = r + C1;
int ac = c + C1;
double **A = malloc(ar * sizeof(*A));
for(; i<ar; i++)
A[i] = malloc(ac * sizeof(**A));
A[R_SIZE][OF] = ar;
A[C_SIZE][OF] = ac;
return(A);
}
/* ------------------------------------ */
void F_mR(
double **A
)
{
int i=R0;
int r=A[R_SIZE][OF];
if(A) for(;i<r;i++) free(A[i]);
free(A);
}
/* ------------------------------------ */
/* ------------------------------------ */