Changeset 3737 for branches/0.15-stable
- Timestamp:
- May 22, 2018, 3:17:52 AM (5 years ago)
- Location:
- branches/0.15-stable/yat/utility
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/0.15-stable/yat/utility/Matrix.cc
r3691 r3737 210 210 int status=gsl_matrix_div_elements(m_, other.gsl_matrix_p()); 211 211 if (status) 212 throw utility::GSL_error( std::string("matrix::div_elements",status));212 throw utility::GSL_error("matrix::div_elements",status); 213 213 } 214 214 … … 280 280 int status=gsl_matrix_mul_elements(m_, other.gsl_matrix_p()); 281 281 if (status) 282 throw utility::GSL_error( std::string("Matrix::mul_elements",status));282 throw utility::GSL_error("Matrix::mul_elements",status); 283 283 } 284 284 … … 323 323 int status=gsl_matrix_swap_columns(m_, i, j); 324 324 if (status) 325 throw utility::GSL_error( std::string("Matrix::swap_columns",status));325 throw utility::GSL_error("Matrix::swap_columns",status); 326 326 } 327 327 … … 332 332 int status=gsl_matrix_swap_rowcol(m_, i, j); 333 333 if (status) 334 throw utility::GSL_error( std::string("Matrix::swap_rowcol",status));334 throw utility::GSL_error("Matrix::swap_rowcol",status); 335 335 } 336 336 … … 341 341 int status=gsl_matrix_swap_rows(m_, i, j); 342 342 if (status) 343 throw utility::GSL_error( std::string("Matrix::swap_rows",status));343 throw utility::GSL_error("Matrix::swap_rows",status); 344 344 } 345 345 … … 419 419 int status=gsl_matrix_add(m_, other.m_); 420 420 if (status) 421 throw utility::GSL_error( std::string("Matrix::operator+=", status));421 throw utility::GSL_error("Matrix::operator+=", status); 422 422 return *this; 423 423 } … … 437 437 int status=gsl_matrix_sub(m_, other.m_); 438 438 if (status) 439 throw utility::GSL_error( std::string("Matrix::operator-=", status));439 throw utility::GSL_error("Matrix::operator-=", status); 440 440 return *this; 441 441 } … … 532 532 int status=gsl_matrix_swap(a.gsl_matrix_p(), b.gsl_matrix_p()); 533 533 if (status) 534 throw utility::GSL_error( std::string("swap(Matrix&,Matrix&)",status));534 throw utility::GSL_error("swap(Matrix&,Matrix&)",status); 535 535 } 536 536 -
branches/0.15-stable/yat/utility/SVD.cc
r2919 r3737 73 73 } 74 74 if (status) 75 throw utility::GSL_error( std::string("SVD::decompose",status));75 throw utility::GSL_error("SVD::decompose",status); 76 76 } 77 77 … … 114 114 x.gsl_vector_p()); 115 115 if (status) 116 throw utility::GSL_error( std::string("SVD::solve",status));116 throw utility::GSL_error("SVD::solve",status); 117 117 } 118 118 -
branches/0.15-stable/yat/utility/Vector.cc
r3691 r3737 211 211 int status=gsl_vector_swap(v.gsl_vector_p(),w.gsl_vector_p()); 212 212 if (status) 213 throw utility::GSL_error( std::string("swap(Vector&,Vector&)",status));213 throw utility::GSL_error("swap(Vector&,Vector&)",status); 214 214 } 215 215 -
branches/0.15-stable/yat/utility/VectorBase.cc
r3661 r3737 179 179 if (status) { 180 180 gsl_permutation_free(p); 181 throw utility::GSL_error( std::string("sort_index(vector&,const VectorBase&)",status));181 throw utility::GSL_error("sort_index(vector&,const VectorBase&)",status); 182 182 } 183 183 std::vector<size_t> tmp(p->data,p->data+p->size); -
branches/0.15-stable/yat/utility/VectorMutable.cc
r3623 r3737 92 92 int status=gsl_vector_div(vec_,other.gsl_vector_p()); 93 93 if (status) 94 throw utility::GSL_error( std::string("VectorMutable::div",status));94 throw utility::GSL_error("VectorMutable::div",status); 95 95 } 96 96 … … 121 121 int status=gsl_vector_mul(vec_,other.gsl_vector_p()); 122 122 if (status) 123 throw utility::GSL_error( std::string("VectorMutable::div",status));123 throw utility::GSL_error("VectorMutable::div",status); 124 124 } 125 125 … … 148 148 int status=gsl_vector_add(vec_, other.gsl_vector_p()); 149 149 if (status) 150 throw utility::GSL_error( std::string("VectorMutable::add", status));150 throw utility::GSL_error("VectorMutable::add", status); 151 151 return *this; 152 152 } … … 173 173 int status=gsl_vector_sub(vec_, other.gsl_vector_p()); 174 174 if (status) 175 throw utility::GSL_error( std::string("VectorMutable::sub", status));175 throw utility::GSL_error("VectorMutable::sub", status); 176 176 return *this; 177 177 }
Note: See TracChangeset
for help on using the changeset viewer.