Changeset 514 in Sophya for trunk/SophyaLib/NTools/tvector.h
- Timestamp:
- Oct 25, 1999, 6:43:04 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/NTools/tvector.h
r508 r514 47 47 48 48 // produit scalaire, matrice*vecteur 49 template <class T> inline T operator* (const TVector<T>& v1, const TVector<T>& v2) 49 template <class T> 50 inline T operator* (const TVector<T>& v1, const TVector<T>& v2) 50 51 {if(v1.NRows() != v2.NRows()) 51 52 throw(SzMismatchError("TVector::operator*(TVector& v1,TVector v2) size mismatch")); … … 55 56 return r;} 56 57 57 template <class T> inline TVector<T> operator* (const TMatrix<T>& a, const TVector<T>& b) 58 {return TVector<T>(a * ((TMatrix<T> const&)(b)));} 58 template <class T> 59 inline TVector<T> operator* (const TMatrix<T>& a, const TVector<T>& b) 60 {return TVector<T>(a * ((TMatrix<T> const&)(b)));} 59 61 60 62 // Resolution du systeme A*C = B
Note:
See TracChangeset
for help on using the changeset viewer.