Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generic instances needed #4

Open
leftaroundabout opened this issue Nov 25, 2016 · 0 comments
Open

Generic instances needed #4

leftaroundabout opened this issue Nov 25, 2016 · 0 comments

Comments

@leftaroundabout
Copy link
Owner

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant