FLENS
FLENS copied to clipboard
"std::" missing in "abs" scalar operation?
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.