You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The scalar operation "abs" defined in flens/scalaroperations/abs.tcc is not working with types other than integer and complex. Whats happening is that its "evalScalarClosure" method is calling the "abs" method defined outside the std namespace.
By doing that, it invokes either the "abs" method from cstdlib header (for integers), or the one from complex header (for complex), never the one provided in cmath header (suitable for float/double types).
I solved that by simply inserting "std::" in line
return std::abs(exp.left().value());
Cheers.
The text was updated successfully, but these errors were encountered:
Hi Michael,
The scalar operation "abs" defined in flens/scalaroperations/abs.tcc is not working with types other than integer and complex. Whats happening is that its "evalScalarClosure" method is calling the "abs" method defined outside the std namespace.
By doing that, it invokes either the "abs" method from cstdlib header (for integers), or the one from complex header (for complex), never the one provided in cmath header (suitable for float/double types).
I solved that by simply inserting "std::" in line
return std::abs(exp.left().value());
Cheers.
The text was updated successfully, but these errors were encountered: