| | |
Library to solve matrix determinant c++
Thread Solved
![]() |
For example, download free Matrix TCL Lite 1.13 by Techsoft:
http://www.techsoftpl.com/matrix/download.htm
(it's not a recommendation, I never use this library but it's compact and simple
).
Comment 5 lines of abs definitions in downloaded matrix.h:
Now
Read package manual in pro_doc directory...
http://www.techsoftpl.com/matrix/download.htm
(it's not a recommendation, I never use this library but it's compact and simple
).Comment 5 lines of abs definitions in downloaded matrix.h:
c++ Syntax (Toggle Plain Text)
/* Do that, you can't compile it with VC++ when <complex> included #if ( defined(__BORLANDC__) || _MSC_VER ) && !defined( __GNUG__ ) inline float abs (float v) { return (float)fabs( v); } inline double abs (double v) { return fabs( v); } inline long double abs (long double v) { return fabsl( v); } #endif */
c++ Syntax (Toggle Plain Text)
#include <complex> using namespace std; #include "matrix.h" typedef complex<double> Complex; typedef math::matrix<Complex> CMat; int main() { CMat m(2,2); m(0,0) = Complex(0,1); m(0,1) = m(1,0) = 0.0; m(1,1) = Complex(0,1); cout << m.Det() << endl; return 0; } // prints (-1,0)
Last edited by ArkM; Dec 19th, 2008 at 1:43 pm.
•
•
Join Date: Dec 2008
Posts: 10
Reputation:
Solved Threads: 0
Cramer's rule is useful to fing solution of a system of linear equations, not solving determinant.
Thanks, that library is simple and solves determinants quickly
•
•
•
•
For example, download free Matrix TCL Lite 1.13 by Techsoft:
http://www.techsoftpl.com/matrix/download.htm ...
![]() |
Other Threads in the C++ Forum
- Previous Thread: matrix addition
- Next Thread: Change button background
| Thread Tools | Search this Thread |
api array based binary bitmap business c++ c/c++ char class classes code codesamplerunwhilecommands coding commentinghelp compile console conversion count decide delete deploy desktop developer directshow dll download dynamic dynamiccharacterarray email encryption error faq file forms fstream function functions game givemetehcodez graph guess gui hash homeworkhelp homeworkhelper iamthwee ifpug ifstream incrementoperators infinite input int integer java lib linkedlist linker listing loop looping loops map math matrix memory multiple news node output pointer port problem proficiency program programming project python random read recursion reference rpg string strings temperature template test text text-file tree url variable vector video win32 windows winsock wordfrequency wxwidgets






