Changeset 970 in Sophya for trunk/SophyaLib/TArray/tmatrix.cc
- Timestamp:
- Apr 26, 2000, 7:55:11 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/TArray/tmatrix.cc
r967 r970 1 // $Id: tmatrix.cc,v 1. 9 2000-04-21 16:31:25ansari Exp $1 // $Id: tmatrix.cc,v 1.10 2000-04-26 17:55:10 ansari Exp $ 2 2 // C.Magneville 04/99 3 3 #include "machdefs.h" … … 110 110 throw SzMismatchError("TMatrix<T>::Set(const TArray<T>& a) a.NbDimensions() > 2"); 111 111 TArray<T>::Set(a); 112 if ( a.NbDimensions() == 1) {112 if (NbDimensions() == 1) { 113 113 size_[1] = 1; 114 114 step_[1] = size_[0]*step_[0]; 115 115 ndim_ = 2; 116 116 } 117 UpdateMemoryMapping( a, SameMemoryMapping);117 UpdateMemoryMapping(*this, SameMemoryMapping); 118 118 return(*this); 119 119 }
Note:
See TracChangeset
for help on using the changeset viewer.