| | |
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
Views: 2134 | Replies: 4
| Thread Tools | Search this Thread |
Tag cloud for C++
6 api array arrays based beginner binary bmp c++ c/c++ calculator char class classes code compile compiler console conversion convert count data delete deploy dll download dynamic dynamiccharacterarray encryption error file format forms fstream function functions game givemetehcodez graph gui homeworkhelp iamthwee ifstream input int java lib library lines linker list loop looping loops map math matrix memory newbie news number output pointer problem program programming project python random read recursion recursive reference return rpg search simple sort spoonfeeding string strings struct temperature template templates text text-file tree url variable vector video visual visualstudio void win32 windows winsock wordfrequency wxwidgets






