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

Action fix #128

Closed
wants to merge 2 commits into from
Closed

Action fix #128

wants to merge 2 commits into from

Conversation

tonyday567
Copy link
Owner

Addressing #114 but called scalars Actor pretty much following the subhask line.

I'm not sure this is the optimal approach, however, and need to test a variation. At the moment, you can only specify one instance eg

type instance Actor (Matrix m n a) = a

instance (Multiplicative a) => Actor (Matrix m n a) where
  (*.) a h = fmap (a*) h

but this then precludes defining another instance eg

type instance Actor (Matrix m n a) = Vector m a

instance (Multiplicative (Vector m a)) => Actor (Matrix m n a) where
  (*.) = ???

I feel as if this should be (just) possible, but didn't get close on a first attempt.

@tonyday567 tonyday567 closed this Sep 11, 2018
@tonyday567 tonyday567 deleted the action-fix branch November 20, 2020 04:55
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

Successfully merging this pull request may close these issues.

1 participant