Skip to content
Snippets Groups Projects
Commit fac119bc authored by Norihiro Watanabe's avatar Norihiro Watanabe
Browse files

no need for static_cast

parent 0ab9495d
No related branches found
No related tags found
1 merge request!348Add Newton-Raphson nonlinear solver
......@@ -93,7 +93,7 @@ template<typename FP_TYPE, typename IDX_TYPE>
DenseMatrix<FP_TYPE, IDX_TYPE>&
DenseMatrix<FP_TYPE, IDX_TYPE>::operator=(FP_TYPE const& v)
{
std::fill(this->_data, this->_data + this->_n_rows * this->_n_cols, static_cast<FP_TYPE>(v));
std::fill(this->_data, this->_data + this->_n_rows * this->_n_cols, v);
return *this;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment