Changeset 850 in Sophya for trunk/SophyaLib/TArray/sopemtx.h
- Timestamp:
- Apr 10, 2000, 2:57:45 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/TArray/sopemtx.h
r804 r850 39 39 } 40 40 41 inline r_4 LinSolve(const TMatrix<r_4>& a, const TVector<r_4>& b, TVector<r_4>& c) 42 { 43 if(a.NCols() != b.NRows() || a.NCols() != a.NRows()) 44 throw(SzMismatchError("LinSolve(TMatrix<r_4>,TVector<r_4>) size mismatch")); 45 c = b; 46 TMatrix<r_4> a1(a); 47 return SimpleMatrixOperation<r_4>::GausPiv(a1,c); 48 } 49 50 // Inverse d'une matrice 51 inline TMatrix<r_8> Inverse(TMatrix<r_8> const & A) 52 { 53 return SimpleMatrixOperation<r_8>::Inverse(A); 54 } 55 56 inline TMatrix<r_4> Inverse(TMatrix<r_4> const & A) 57 { 58 return SimpleMatrixOperation<r_4>::Inverse(A); 59 } 60 61 41 62 //-------------------------------------- 42 63 // Linear fitting
Note:
See TracChangeset
for help on using the changeset viewer.