Mathc matrices/Fichiers c : test02d
Installer et compiler ce fichier dans votre répertoire de travail.
![]() |
test02d.c |
---|
/* ------------------------------------ */
/* Save as : test02d.c */
/* ------------------------------------ */
#include "v_a.h"
/* ------------------------------------ */
int main(void)
{
double **A = m0_mR(i_mR(R5,C5)); /* A is a zero matrix */
clrscrn();
/* no out */
eye_mR(A); /* now A[5x5] is an identity matrix */
stop();
f_mR(A);
return 0;
}
/* ------------------------------------ */
/* ------------------------------------ */
Le même exemple, mais cette fois on initialise la matrice zéro pendant sa création.
Il n'y a pas de sortie écran.