Closed tpgillam closed 10 months ago
e.g. for GA30 it would be valid to say:
GA30
LinearAlgebra.norm(v::GA30.Odd) = sqrt(dot(v, v))
But I think this holds more generally for all algebras(?). Currently attempting to compute a norm fails, since e.g. GA30.Odd <: Number, so we fall back to an implementation that attempts to cast the multivector to a float, which naturally fails.
GA30.Odd <: Number
Note that doing this should give us LinearAlgebra.normalize for free, since it is implemented in terms of norm.
LinearAlgebra.normalize
norm
e.g. for
GA30
it would be valid to say:But I think this holds more generally for all algebras(?). Currently attempting to compute a norm fails, since e.g.
GA30.Odd <: Number
, so we fall back to an implementation that attempts to cast the multivector to a float, which naturally fails.