Changeset 1156 in Sophya for trunk/SophyaLib/TArray/utilarr.cc
- Timestamp:
- Aug 29, 2000, 6:10:32 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/TArray/utilarr.cc
r1103 r1156 48 48 } 49 49 50 MuTyV & RandomSequence::Value( uint_8k) const50 MuTyV & RandomSequence::Value(sa_size_t k) const 51 51 { 52 52 if (typ_ == Flat) retv_ = drandpm1()*sig_ + mean_; … … 96 96 */ 97 97 98 MuTyV & RegularSequence::Value ( uint_8k) const98 MuTyV & RegularSequence::Value (sa_size_t k) const 99 99 { 100 100 double x = start_+(double)k*step_; … … 108 108 } 109 109 110 MuTyV & EnumeratedSequence::Value ( uint_8k) const110 MuTyV & EnumeratedSequence::Value (sa_size_t k) const 111 111 { 112 112 if (k >= vecv_.size()) retv_ = 0; … … 117 117 EnumeratedSequence & EnumeratedSequence::operator , (MuTyV const & v) 118 118 { 119 vecv_.push_back(v); 120 return(*this); 121 } 122 123 EnumeratedSequence & EnumeratedSequence::operator = (MuTyV const & v) 124 { 125 vecv_.clear(); 119 126 vecv_.push_back(v); 120 127 return(*this); … … 139 146 \warning If not \b size is fixed and \b end recomputed 140 147 */ 141 Range::Range( uint_4 start, uint_4 end, uint_4 size, uint_4step)148 Range::Range(sa_size_t start, sa_size_t end, sa_size_t size, sa_size_t step) 142 149 { 143 150 start_ = start; … … 155 162 156 163 /* 157 Range & Range::operator = ( uint_4start)164 Range & Range::operator = (sa_size_t start) 158 165 { 159 166 start_ = start; … … 173 180 174 181 //! Constructor of a (n,n) diagonal matrix with value diag on the diagonal 175 IdentityMatrix::IdentityMatrix(double diag, uint_4n)182 IdentityMatrix::IdentityMatrix(double diag, sa_size_t n) 176 183 { 177 184 size_ = n;
Note:
See TracChangeset
for help on using the changeset viewer.