Changeset 1042 in Sophya


Ignore:
Timestamp:
Jun 8, 2000, 4:55:52 PM (25 years ago)
Author:
ansari
Message:

Modif + correction LapackLinSolve, Reza 8/6/2000

Location:
trunk/SophyaExt/LinAlg
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaExt/LinAlg/intflapack.cc

    r814 r1042  
    1515
    1616template <class T>
    17 TArray<T>& LapackServer<T>::LinSolve(TArray<T>& a, TArray<T> & b)
     17int LapackServer<T>::LinSolve(TArray<T>& a, TArray<T> & b)
    1818{
    1919  if ( ( a.NbDimensions() != 2 ) || ( b.NbDimensions() != 2 ) )
     
    2626  if ( a.Size(rowa) !=  a.Size(cola))
    2727    throw(SzMismatchError("LapackServer::LinSolve(a,b) a Not a square Array"));
    28   if ( a.Size(rowa) !=  b.Size(rowa))
     28  if ( a.Size(rowa) !=  b.Size(rowb))
    2929    throw(SzMismatchError("LapackServer::LinSolve(a,b) RowSize(a <> b) "));
    3030
     
    5656  }
    5757  delete[] ipiv;
    58   return(b);
     58  return(info);
    5959}
    6060
  • trunk/SophyaExt/LinAlg/intflapack.h

    r814 r1042  
    1010class LapackServer {
    1111public:
    12   TArray<T>& LinSolve(TArray<T>& a, TArray<T> & b);
     12  int LinSolve(TArray<T>& a, TArray<T> & b);
    1313};
    1414
    1515template <class T>
    16 inline TArray<T>& LapackLinSolve(TArray<T>& a, TArray<T> & b)
     16inline int LapackLinSolve(TArray<T>& a, TArray<T> & b)
    1717  { LapackServer<T> lps; return( lps.LinSolve(a, b) );  }
    1818
Note: See TracChangeset for help on using the changeset viewer.