cmat
cmat copied to clipboard
Questions about cmat_determinant
this my program
int main(int argc, char* argv[]){
MATRIX *TEST = cmat_from_file(2,2, "TEST.txt");
double result;
cmat_determinant(TEST, &result);
cmat_display(TEST);
printf("determinant:%.2f\n", result);
return 0;
}
this output
1.00 1.00
2.00 2.00
determinant:-nan
Why the determinant of matrix TEST is not zero
Can you show the contents of TEST.txt
?