Changeset 501 in Sophya for trunk/SophyaLib/NTools
- Timestamp:
- Oct 23, 1999, 12:21:23 PM (26 years ago)
- Location:
- trunk/SophyaLib/NTools
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/NTools/cspline.h
r244 r501 3 3 4 4 #include "machdefs.h" 5 #include " cvector.h"5 #include "pexceptions.h" 6 6 7 7 /////////////////////////////////////////////////////////////////// -
trunk/SophyaLib/NTools/tmatrix.cc
r306 r501 1 // $Id: tmatrix.cc,v 1. 9 1999-05-19 10:17:41ansari Exp $1 // $Id: tmatrix.cc,v 1.10 1999-10-23 10:21:23 ansari Exp $ 2 2 // C.Magneville 04/99 3 3 #include "machdefs.h" … … 201 201 // * Attention: egcs impose que cette fonction soit mise dans le .cc 202 202 // 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);} 204 204 { 205 205 uint_4 n = a.NRows(); … … 226 226 double ld = a.NRows() * log(nrm); 227 227 if (ld <= LN_MINDOUBLE || ld >= LN_MAXDOUBLE) { 228 // cerr << " Matrix warning, overflow for det" << endl;228 // cerr << "TMatrix warning, overflow for det" << endl; 229 229 } else { 230 230 det = exp(ld); -
trunk/SophyaLib/NTools/tmatrix.h
r490 r501 175 175 {return a.Mul(b);} 176 176 177 //////////////////////////////////////////////////////////////// 178 // Typedef pour simplifier 179 // typedef TMatrix<r_8> Matrix; 177 180 178 181 ///////////////////////////////////////////////////////////////////////// … … 223 226 static T* Org(const TMatrix<T>&, TRCKind rckind, uint_4 ind=0); 224 227 228 TRCKind Kind() const { return kind; } 225 229 uint_4 NElts() const; 226 230 T& operator()(uint_4 i); … … 269 273 270 274 271 template <class T> inline T operator * (const TMatrixRC<T>& a, const TMatrixRC<T>& b) 275 template <class T> 276 inline T operator * (const TMatrixRC<T>& a, const TMatrixRC<T>& b) 272 277 { 273 278 if ( a.NElts() != b.NElts() ) 274 279 throw(SzMismatchError("TMatrixRC::operator * size mismatch\n")); 275 if ( a. kind != b.kind)280 if ( a.Kind() != b.Kind() ) 276 281 throw(SzMismatchError("TMatrixRC::operator * type mismatch\n")); 277 282 T sum = 0; -
trunk/SophyaLib/NTools/tvector.h
r490 r501 30 30 inline T& operator()(uint_4 n) {return (*this)[n];} 31 31 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];} 32 34 33 35 // Operateur d'affectation … … 73 75 } 74 76 77 // Typedef pour simplifier 78 // typedef TVector<r_8> Vector; 79 75 80 ///////////////////////////////////////////////////////////////////////// 76 81 // Classe pour la gestion de persistance
Note:
See TracChangeset
for help on using the changeset viewer.