cmat icon indicating copy to clipboard operation
cmat copied to clipboard

Questions about cmat_determinant

Open xausky opened this issue 6 years ago • 1 comments

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

xausky avatar Mar 19 '18 04:03 xausky

Can you show the contents of TEST.txt?

GelaniNijraj avatar Mar 19 '18 16:03 GelaniNijraj