Skip to content

Commit

Permalink
Resolved a warning in GMRES on VS 2012.
Browse files Browse the repository at this point in the history
  • Loading branch information
karlrupp committed Apr 29, 2013
1 parent 7829254 commit 0e76809
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion viennacl/linalg/gmres.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ namespace viennacl

ScalarType hh_vec_0 = (input_j <= 0) ? (input_j - mu) : (-sigma / (input_j + mu));

beta = 2.0 * hh_vec_0 * hh_vec_0 / (sigma + hh_vec_0 * hh_vec_0);
beta = ScalarType(2) * hh_vec_0 * hh_vec_0 / (sigma + hh_vec_0 * hh_vec_0);

//divide hh_vec by its diagonal element hh_vec_0
hh_vec /= hh_vec_0;
Expand Down

0 comments on commit 0e76809

Please sign in to comment.