Displaying 1 result from an estimated 1 matches for "iter_limit".
2010 Feb 10
2
system.time provides inaccurate sys.child (PR#14210)
...rix
#define create_double_matrix(dim1,dim2)\
m_create_double_matrix(dim1,dim2,__LINE__,__FILE__)
int main(int argc, char *argv[])
{
double **matrix1 = create_double_matrix(size, size);
double **matrix2 = create_double_matrix(size, size);
int iterations = 0;
int i,j;
double iter_limit = 100;
alpha = rand();
beta = rand();
while (iterations < iter_limit) {
for (i = 0; i < size; i++) {
for (j = 0; j < size; j++) {
if (i == j) continue;
matrix2[i][j] = pow(matrix1[i][j], alpha)
* pow(matri...