Changeset 3737 for branches/0.15-stable


Ignore:
Timestamp:
May 22, 2018, 3:17:52 AM (5 years ago)
Author:
Peter
Message:

Fix typo/bug that GSL_error that the closing bracket was misplaced in
GSL_error(std::string(msg, status)) such that 'status' was passed to
string constructor rather than GSL_error constructor.

Location:
branches/0.15-stable/yat/utility
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/0.15-stable/yat/utility/Matrix.cc

    r3691 r3737  
    210210    int status=gsl_matrix_div_elements(m_, other.gsl_matrix_p());
    211211    if (status)
    212       throw utility::GSL_error(std::string("matrix::div_elements",status));
     212      throw utility::GSL_error("matrix::div_elements",status);
    213213  }
    214214
     
    280280    int status=gsl_matrix_mul_elements(m_, other.gsl_matrix_p());
    281281    if (status)
    282       throw utility::GSL_error(std::string("Matrix::mul_elements",status));
     282      throw utility::GSL_error("Matrix::mul_elements",status);
    283283  }
    284284
     
    323323    int status=gsl_matrix_swap_columns(m_, i, j);
    324324    if (status)
    325       throw utility::GSL_error(std::string("Matrix::swap_columns",status));
     325      throw utility::GSL_error("Matrix::swap_columns",status);
    326326  }
    327327
     
    332332    int status=gsl_matrix_swap_rowcol(m_, i, j);
    333333    if (status)
    334       throw utility::GSL_error(std::string("Matrix::swap_rowcol",status));
     334      throw utility::GSL_error("Matrix::swap_rowcol",status);
    335335  }
    336336
     
    341341    int status=gsl_matrix_swap_rows(m_, i, j);
    342342    if (status)
    343       throw utility::GSL_error(std::string("Matrix::swap_rows",status));
     343      throw utility::GSL_error("Matrix::swap_rows",status);
    344344  }
    345345
     
    419419    int status=gsl_matrix_add(m_, other.m_);
    420420    if (status)
    421       throw utility::GSL_error(std::string("Matrix::operator+=", status));
     421      throw utility::GSL_error("Matrix::operator+=", status);
    422422    return *this;
    423423  }
     
    437437    int status=gsl_matrix_sub(m_, other.m_);
    438438    if (status)
    439       throw utility::GSL_error(std::string("Matrix::operator-=", status));
     439      throw utility::GSL_error("Matrix::operator-=", status);
    440440    return *this;
    441441  }
     
    532532    int status=gsl_matrix_swap(a.gsl_matrix_p(), b.gsl_matrix_p());
    533533    if (status)
    534       throw utility::GSL_error(std::string("swap(Matrix&,Matrix&)",status));
     534      throw utility::GSL_error("swap(Matrix&,Matrix&)",status);
    535535  }
    536536
  • branches/0.15-stable/yat/utility/SVD.cc

    r2919 r3737  
    7373    }
    7474    if (status)
    75       throw utility::GSL_error(std::string("SVD::decompose",status));
     75      throw utility::GSL_error("SVD::decompose",status);
    7676  }
    7777
     
    114114                                   x.gsl_vector_p());
    115115    if (status)
    116       throw utility::GSL_error(std::string("SVD::solve",status));
     116      throw utility::GSL_error("SVD::solve",status);
    117117  }
    118118
  • branches/0.15-stable/yat/utility/Vector.cc

    r3691 r3737  
    211211    int status=gsl_vector_swap(v.gsl_vector_p(),w.gsl_vector_p());
    212212    if (status)
    213       throw utility::GSL_error(std::string("swap(Vector&,Vector&)",status));
     213      throw utility::GSL_error("swap(Vector&,Vector&)",status);
    214214  }
    215215
  • branches/0.15-stable/yat/utility/VectorBase.cc

    r3661 r3737  
    179179    if (status) {
    180180      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);
    182182    }
    183183    std::vector<size_t> tmp(p->data,p->data+p->size);
  • branches/0.15-stable/yat/utility/VectorMutable.cc

    r3623 r3737  
    9292    int status=gsl_vector_div(vec_,other.gsl_vector_p());
    9393    if (status)
    94       throw utility::GSL_error(std::string("VectorMutable::div",status));
     94      throw utility::GSL_error("VectorMutable::div",status);
    9595  }
    9696
     
    121121    int status=gsl_vector_mul(vec_,other.gsl_vector_p());
    122122    if (status)
    123       throw utility::GSL_error(std::string("VectorMutable::div",status));
     123      throw utility::GSL_error("VectorMutable::div",status);
    124124  }
    125125
     
    148148    int status=gsl_vector_add(vec_, other.gsl_vector_p());
    149149    if (status)
    150       throw utility::GSL_error(std::string("VectorMutable::add", status));
     150      throw utility::GSL_error("VectorMutable::add", status);
    151151    return *this;
    152152  }
     
    173173    int status=gsl_vector_sub(vec_, other.gsl_vector_p());
    174174    if (status)
    175       throw utility::GSL_error(std::string("VectorMutable::sub", status));
     175      throw utility::GSL_error("VectorMutable::sub", status);
    176176    return *this;
    177177  }
Note: See TracChangeset for help on using the changeset viewer.