mirror of
https://github.com/boostorg/ublas.git
synced 2026-02-22 03:42:19 +00:00
Merge pull request #3 from jdurancomas/ublas_develop
Improve syntax of a type cast in triangular.hpp provided by Joaquim Duran
This commit is contained in:
@@ -2162,7 +2162,7 @@ namespace boost { namespace numeric { namespace ublas {
|
||||
singular ().raise ();
|
||||
#endif
|
||||
value_type t = e2 () (n);
|
||||
for (difference_type m = n + 1; m <(difference_type) e1 ().size2(); ++ m) {
|
||||
for (difference_type m = n + 1; m < static_cast<difference_type>(e1 ().size2()); ++ m) {
|
||||
t -= e1 () (n, m) * e2 () (m);
|
||||
}
|
||||
e2() (n) = t / e1 () (n, n);
|
||||
|
||||
Reference in New Issue
Block a user