repeat_det_by_minor_c

View page source

Repeat det_by_minor Routine A Specified Number of Times

Syntax

repeat_det_by_minor ( repeat , size )

repeat

The argument has prototype

size_t repeat

It specifies the number of times to repeat the calculation.

size

The argument has prototype

size_t size

It specifies the number of rows (and columns) in the square matrix we are computing the determinant of.

Source Code

void repeat_det_by_minor(size_t repeat, size_t size)
{  double *a;
   a = (double*) malloc( (size * size) * sizeof(double) );

   while(repeat--)
   {  uniform_01(size * size, a);
      det_by_minor(a, size);
   }

   free(a);
   return;
}