| | |
Library to solve matrix determinant c++
Please support our C++ advertiser: Intel Parallel Studio Home
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 |
Tag cloud for C++
api application array arrays based beginner binary c++ c/c++ calculator char char* class classes code coding compile compiler console conversion convert count data database delete deploy developer display dll dynamiccharacterarray email encryption error file format forms fstream function functions game generator givemetehcodez graph homeworkhelp iamthwee ifstream image input int java lib list loop looping loops map math matrix memory multiple newbie news number numbertoword output pointer problem program programming project python random read recursion recursive reference return rpg search simple sort sorting string strings struct template templates text tree url variable vector video visual visualstudio win32 windows winsock wordfrequency wxwidgets






