Changeset 850 in Sophya for trunk/SophyaLib/TArray/sopemtx.h


Ignore:
Timestamp:
Apr 10, 2000, 2:57:45 PM (25 years ago)
Author:
ansari
Message:

Corrections divers + RansomSequence - Reza 10/4/2000

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/TArray/sopemtx.h

    r804 r850  
    3939}
    4040
     41inline r_4 LinSolve(const TMatrix<r_4>& a, const TVector<r_4>& b, TVector<r_4>& c)
     42{
     43if(a.NCols() != b.NRows() || a.NCols() != a.NRows())
     44  throw(SzMismatchError("LinSolve(TMatrix<r_4>,TVector<r_4>) size mismatch"));
     45c = b;
     46TMatrix<r_4> a1(a);
     47return SimpleMatrixOperation<r_4>::GausPiv(a1,c);
     48}
     49
     50// Inverse d'une matrice
     51inline TMatrix<r_8> Inverse(TMatrix<r_8> const & A)
     52{
     53  return SimpleMatrixOperation<r_8>::Inverse(A);
     54}
     55
     56inline TMatrix<r_4> Inverse(TMatrix<r_4> const & A)
     57{
     58  return SimpleMatrixOperation<r_4>::Inverse(A);
     59}
     60
     61
    4162//--------------------------------------
    4263//        Linear fitting
Note: See TracChangeset for help on using the changeset viewer.