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

Implement tensors #11

Open
andreaferretti opened this issue Jun 13, 2017 · 0 comments
Open

Implement tensors #11

andreaferretti opened this issue Jun 13, 2017 · 0 comments

Comments

@andreaferretti
Copy link
Owner

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 of gemm

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

No branches or pull requests

1 participant