Mathc matrices/Fichiers h : vrm
Aller à la navigation
Aller à la recherche
Installer ce fichier dans votre répertoire de travail.
![]() |
vrm.h r_mR, rp_mR |
---|
/* ------------------------------------ */
/* Save as : vrm.h */
/* ------------------------------------ */
/* ------------------------------------ */
/* positive and negative numbers */
/* ------------------------------------ */
double **r_mR(
double **A,
int n
)
{
int r;
int c;
for (r=R1; r<A[R_SIZE][C0]; r++)
for (c=C1; c<A[C_SIZE][C0]; c++)
A[r][c] = r_I(n);
return(A);
}
/* ------------------------------------ */
/* positive numbers */
/* ------------------------------------ */
double **rp_mR(
double **A,
int n
)
{
int r;
int c;
for (r=R1; r<A[R_SIZE][C0]; r++)
for (c=C1; c<A[C_SIZE][C0]; c++)
A[r][c] = rp_I(n);
return(A);
}
/* ------------------------------------ */
/* floating point */
/* ------------------------------------ */
double **rE_mR(
double **A,
int n,
double e
)
{
int r;
int c;
for (r=R1; r<A[R_SIZE][C0]; r++)
for (c=C1; c<A[C_SIZE][C0]; c++)
A[r][c] = r_E(n,e);
return(A);
}
/* ------------------------------------ */
/* ------------------------------------ */
Dans ce fichier se trouvent les fonctions qui permettront d'initialiser les matrices avec des valeurs aléatoires.