linearmap-family icon indicating copy to clipboard operation
linearmap-family copied to clipboard

Generic instances needed

Open leftaroundabout opened this issue 7 years ago • 0 comments

The TensorSpace, LinearSpace and FiniteDimensional classes are pretty bloated, with rather technical methods. It would be very cumbersome having to define all those instances for every custom vectorspace. It shouldn't be necessary either – the definitions seem automatic enough to make it feasible with GHC generics, so a new compound vector space (in particular records, which are basically just direct sums) can be given an empty LinearSpace instance (or directly deriving one, with -XDeriveAnyClass).

leftaroundabout avatar Nov 25 '16 15:11 leftaroundabout