-
Notifications
You must be signed in to change notification settings - Fork 20
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
Implement tensors #11
Labels
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The simplest approach is to define a n-dimensional data structure, together with a few operations (access, slicing). Then 2-d (resp. 1-d) tensors can be converted to matrices (resp. vectors) without copying, and viceversa.
This already would give us the possibility move around higher-dimensional data, and then treat slices of these data as matrices and vectors to perform linear algebraic operations.
Tensor contraction (
dot
) can be implemented in these terms, or perhaps directly on top ofgemm
The text was updated successfully, but these errors were encountered: