Closed eschnett closed 4 years ago
That's not a bug, it's a feature. It performs better this way. To keep it type stable, it would be necessary to output a full MultiVector
when only a Simplex
would do. Having a scalar Simplex
instead of a full valued MultiVector
is faster for computing exp
and other essential methods.
This is intentional and will not be changed.
The result type of
abs2
seems to depend on argument values:The return type of a function should usually only depend on the argument types.
I am currently not running benchmarks, so this does currently not affect me.