Skip to content

Conversation

@cchalmers
Copy link
Member

Branched version of #70.

@cchalmers
Copy link
Member Author

Looks like the Vn a ~ v n syntax is only available in 7.8.3 so everything will need V a ~ v, N a ~ n instead.

@cchalmers
Copy link
Member Author

I've had some ideas for some extra types to help clean up the signatures:

type InSpace v n a = (V a ~ v, N a ~ n, Additive v, Num n)
type SameSpace a b = (V a ~ V b, N a ~ N b)

I've also started a fork of linear to remove Applicative constraints on utility functions and add project to Linear.Metric. It's not essential but I don't like having to carry around Additive and Applicative when you only need Additive.

https://github.com/cchalmers/linear

what do you think?

@jeffreyrosenbluth
Copy link
Member

@cchalmers I like your extra types :)

@bergey
Copy link
Member

bergey commented Oct 4, 2014

Did I just typo the word "typo"? Yes I did.

bergey added a commit that referenced this pull request Oct 10, 2014
Migrate from `vector-space` package to `linear`

Make types more polymorphic.
@bergey bergey merged commit 4271de5 into master Oct 10, 2014
@jeffreyrosenbluth jeffreyrosenbluth deleted the linear branch October 12, 2014 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants