Changeset 501 in Sophya for trunk/SophyaLib/NTools


Ignore:
Timestamp:
Oct 23, 1999, 12:21:23 PM (26 years ago)
Author:
ansari
Message:

cvector.h ne servait a rien cmv 23/10/99

Location:
trunk/SophyaLib/NTools
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/NTools/cspline.h

    r244 r501  
    33
    44#include "machdefs.h"
    5 #include "cvector.h"
     5#include "pexceptions.h"
    66
    77///////////////////////////////////////////////////////////////////
  • trunk/SophyaLib/NTools/tmatrix.cc

    r306 r501  
    1 // $Id: tmatrix.cc,v 1.9 1999-05-19 10:17:41 ansari Exp $
     1// $Id: tmatrix.cc,v 1.10 1999-10-23 10:21:23 ansari Exp $
    22//                         C.Magneville          04/99
    33#include "machdefs.h"
     
    201201// * Attention: egcs impose que cette fonction soit mise dans le .cc
    202202//              avant ::Inverse() (car Inverse() l'utilise)
    203 // {Matrix A(a); Matrix B(b); return (r_8) Matrix::GausPiv(A,B);}
     203// {TMatrix A(a); TMatrix B(b); return (r_8) TMatrix::GausPiv(A,B);}
    204204{
    205205uint_4 n = a.NRows();
     
    226226  double ld = a.NRows() * log(nrm);
    227227  if (ld <= LN_MINDOUBLE || ld >= LN_MAXDOUBLE) {
    228    // cerr << "Matrix warning, overflow for det" << endl;
     228   // cerr << "TMatrix warning, overflow for det" << endl;
    229229  } else {
    230230    det = exp(ld);
  • trunk/SophyaLib/NTools/tmatrix.h

    r490 r501  
    175175                  {return a.Mul(b);}
    176176
     177////////////////////////////////////////////////////////////////
     178// Typedef pour simplifier
     179// typedef TMatrix<r_8> Matrix;
    177180
    178181/////////////////////////////////////////////////////////////////////////
     
    223226  static T* Org(const TMatrix<T>&, TRCKind rckind, uint_4 ind=0);
    224227
     228  TRCKind Kind() const { return kind; }
    225229  uint_4 NElts() const;
    226230  T& operator()(uint_4 i);
     
    269273
    270274
    271 template <class T> inline T operator * (const TMatrixRC<T>& a, const TMatrixRC<T>& b)
     275template <class T>
     276inline T operator * (const TMatrixRC<T>& a, const TMatrixRC<T>& b)
    272277  {
    273278  if ( a.NElts() != b.NElts() )
    274279    throw(SzMismatchError("TMatrixRC::operator * size mismatch\n"));
    275   if ( a.kind != b.kind )
     280  if ( a.Kind() != b.Kind() )
    276281    throw(SzMismatchError("TMatrixRC::operator * type mismatch\n"));
    277282  T sum = 0;
  • trunk/SophyaLib/NTools/tvector.h

    r490 r501  
    3030  inline T& operator()(uint_4 n) {return (*this)[n];}
    3131  inline T const& operator()(uint_4 n) const {return (*this)[n];}
     32  inline T& Element(uint_4 n) {return (*this)[n];}
     33  inline T const& Element(uint_4 n) const {return (*this)[n];}
    3234
    3335  // Operateur d'affectation
     
    7375}
    7476
     77// Typedef pour simplifier
     78// typedef TVector<r_8> Vector;
     79
    7580/////////////////////////////////////////////////////////////////////////
    7681// Classe pour la gestion de persistance
Note: See TracChangeset for help on using the changeset viewer.