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

Operator[] #12

Open
steenax86 opened this issue Jan 30, 2018 · 1 comment
Open

Operator[] #12

steenax86 opened this issue Jan 30, 2018 · 1 comment

Comments

@steenax86
Copy link

Hi there,

I just forked this repository.. It has a lot of potential. Are you thinking of explicitly storing zero elements through the the [] operator? Or would setting values through the []operator only be stored at nz locations after checking row/column indices?

Thanks in advance,
Steena

@uestla
Copy link
Owner

uestla commented Feb 13, 2018

Hello.

I would like to have the operator[] for both setting and getting values (as stated in the Readme file).

The internal functionality would be the same as in the get() and set() methods. Is there any reason for storing zero values explicitely?

The only difference I see there is is that the getter operator[] will need some meta-structure for matrix row which will also have T operator[] getter.

@uestla uestla mentioned this issue Feb 19, 2018
10 tasks
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

2 participants