| | |
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 |
api array arrays based beginner binary c++ c/c++ calculator char char* class classes code compile compiler console conversion count delete deploy desktop directshow dll download dynamic dynamiccharacterarray encryption error file forms fstream function functions game givemetehcodez google graph gui homeworkhelp homeworkhelper iamthwee ifstream input int integer java lib linkedlist linker linux list loop looping loops map math matrix memory news number numbertoword output parameter pointer problem program programming project python random read recursion recursive reference return rpg sorting string strings struct temperature template templates test text text-file tree unix url variable vector video visual visualstudio win32 windows winsock wordfrequency wxwidgets






