GelaniNijraj / cmat

A small C library for matrix manipulation
MIT License
48 stars 5 forks source link

Questions about cmat_determinant #5

Open xausky opened 6 years ago

xausky commented 6 years ago

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

GelaniNijraj commented 6 years ago

Can you show the contents of TEST.txt?