I have done a program to calculate a determinant of a matrix. My program works, but the problem is that it takes long time to calculate, especially for big matrix. Could you tell me how can a perform my program in order to calculate the determinant in the shortest possible time?
double Matrice::Determinant(int n) { cout<<"n = "<get_el(0,0); } else if (n == 2) { det = this->get_el(0,0) * this->get_el(1,1) - this->get_el(1,0) * this->get_el(0,1); } else { det = 0; for (j1=0;j1
Thank you.