Matrices de Toeplitz

Installer et compiler ces fichiers dans votre répertoire de travail.

c00a.c
/* ------------------------------------ */
/*  Save as :   c00a.c                  */
/* ------------------------------------ */
#include "v_a.h"
/* ------------------------------------ */
void fun(int r)
{                       
double **U   = r_mR(            i_mR(R1, r),9);
double **V   = r_mR(            i_mR( r,C1),9);	
double **A   = rToeplitz_mR(U,V,i_mR( r, r)  );

  clrscrn();
  printf(" Copy/Past into the octave window.       \n\n");
  p_Octave_mR(A,"A", P0);
  printf(" det(A)\n\n\n");

  printf(" det_R(A)  = %+.0f\n\n\n",det_R(A));

  f_mR(U);
  f_mR(V); 
  f_mR(A);  
}
/* ------------------------------------ */
int main(void)
{
time_t t;

  srand(time(&t));
do
{
  fun(rp_I(RC5)+RC1);
  
} while(stop_w());

  return 0;
}
/* ------------------------------------ */
/* ------------------------------------ */


Matrice de Toeplitz.

Exemple de sortie écran :

 Copy/Past into the octave window.       

 A=[
-9,-5,+3,-7,-8;
+5,-9,-5,+3,-7;
+1,+5,-9,-5,+3;
-4,+1,+5,-9,-5;
-1,-4,+1,+5,-9]

 det(A)


 det_R(A)  = -69680



 Press   return to continue
 Press X return to stop