Changeset 1129
- Timestamp:
- Feb 23, 2008, 7:05:39 PM (16 years ago)
- Location:
- trunk/yat/utility
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/yat/utility/Vector.cc
r1121 r1129 175 175 throw utility::GSL_error("Vector::create_gsl_vector_copy failed to allocate memory"); 176 176 if (gsl_vector_memcpy(vec, other.gsl_vector_p())) 177 throw utility::GSL_error("Vector::create_gsl_ matrix_copy dimension mis-match");177 throw utility::GSL_error("Vector::create_gsl_vector_copy memcpy failed"); 178 178 return vec; 179 179 } … … 199 199 const_vec_ = vec_ = gsl_vector_alloc(n); 200 200 if (!vec_) 201 throw utility::GSL_error("Vector:: Vectorfailed to allocate memory");201 throw utility::GSL_error("Vector::resize failed to allocate memory"); 202 202 all(init_value); 203 203 } -
trunk/yat/utility/Vector.h
r1120 r1129 122 122 \note Underlying GSL vector is destroyed and a view into this 123 123 Vector becomes invalid. 124 125 \throw GSL_error if memory allocation fails. 124 126 */ 125 127 void resize(size_t, double init_value=0); … … 131 133 132 134 \return A const reference to the resulting Vector. 135 136 \throw GSL_error if assignment fails. 133 137 */ 134 138 const Vector& operator=(const Vector&); … … 140 144 141 145 \return A const reference to the resulting Vector. 146 147 \throw GSL_error if assignment fails. 142 148 */ 143 149 const Vector& operator=(const VectorBase&);
Note: See TracChangeset
for help on using the changeset viewer.