Open opeltre opened 2 years ago
N.B: the constant functional return 1
is affine not linear e.g. (translation 1 . return 0)
So maybe keep casting scalars to multiples of identity when possible on Linear
Right now linear instances don't support arithmetics either. Misses the name attribute, so maybe add to Vect so that Fields inherit this as well
Add support for
+-*/
on functionals :slot_machine:D.eye()
only work for [D, D]Inherit support for
+-*/
fromGraded
, dispatching calls to each component->
GradedLinear
,GradedFunctional
(Would bring close to support a
GradedField
class for inhomogeneous fields, acted on byGradedLinear
)