Changeset 663 in Sophya for trunk/SophyaLib/NTools/tmatrix.h
- Timestamp:
- Nov 29, 1999, 1:48:11 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/NTools/tmatrix.h
r552 r663 71 71 inline TMatrix<T>& operator = (T x) 72 72 {if(mNr!=mNc || mNr==0) throw(SzMismatchError("TMatrix::operator= mNc!=mNr ou ==0\n")); 73 for(uint_4 r=0;r<mNr;r++) for(uint_4 c=0;c<mNc;c++) (*this)(r,c)=(r==c)?x: 0;73 for(uint_4 r=0;r<mNr;r++) for(uint_4 c=0;c<mNc;c++) (*this)(r,c)=(r==c)?x:(T)0; 74 74 return *this;} 75 75 // A = B : partage les donnees si "a" est temporaire, clone sinon.
Note:
See TracChangeset
for help on using the changeset viewer.