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

Treating scalars as scalars #3

Open
xorJane opened this issue Nov 7, 2018 · 0 comments
Open

Treating scalars as scalars #3

xorJane opened this issue Nov 7, 2018 · 0 comments

Comments

@xorJane
Copy link
Owner

xorJane commented Nov 7, 2018

... rather than as matrices with single elements. This issue is related to #2.

Consider the index-free implementation of dot using FLAME. In the Matlab/Python implementation of FLAME, slicing and dicing results in chi_1 and psi_1 being represented as matrices. This is consistent with alpha being represented as a matrix, rather than a number, given the update

alpha += chi_1 + psi_1

I've chosen to represent alpha as a Number (consistent with my choice in this version to represent rank 1 objects as Vectors). For consistency, should I represent chi_1 and psi_1 as Numbers as well? I need to check if slicing and dicing ever results in chi_1 and psi_2 having multiple elements (I think this can happen but I haven't tested that case). If so, I may want to treat alpha as a matrix.

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