Prev Next repeat_det_by_minor_c

@(@\newcommand{\W}[1]{ \; #1 \; } \newcommand{\R}[1]{ {\rm #1} } \newcommand{\B}[1]{ {\bf #1} } \newcommand{\D}[2]{ \frac{\partial #1}{\partial #2} } \newcommand{\DD}[3]{ \frac{\partial^2 #1}{\partial #2 \partial #3} } \newcommand{\Dpow}[2]{ \frac{\partial^{#1}}{\partial {#2}^{#1}} } \newcommand{\dpow}[2]{ \frac{ {\rm d}^{#1}}{{\rm d}\, {#2}^{#1}} }@)@
Repeat det_by_minor Routine A Specified Number of Times

Syntax
repeat_det_by_minor(repeatsize)

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;
}

Input File: test_more/compare_c/det_by_minor.c