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

Slicing a vector Variable should produce a scalar Variable #45

Closed
guyer opened this issue Sep 19, 2014 · 3 comments
Closed

Slicing a vector Variable should produce a scalar Variable #45

guyer opened this issue Sep 19, 2014 · 3 comments

Comments

@guyer
Copy link
Member

guyer commented Sep 19, 2014

The SliceVariable should work in both directions. Assignment should modify the original vector Variable.

Imported from trac ticket #46, created by jguyer on 06-16-2005 at 13:35, last modified: 04-27-2011 at 17:20

@wd15
Copy link
Contributor

wd15 commented Sep 19, 2014

I would say that this is no longer needed. We should deemphasize the use of slicing
with Variables and use dot() or just multiply by a tuple.
Slicing is not "maths" and we should keep Variable operations as maths.

Trac comment by wd15 on 03-05-2007 at 17:47

@guyer
Copy link
Member Author

guyer commented Sep 19, 2014

While dot() is great, I think there are are reasons to want to do this (it's much more efficient, for one thing).

This largely works, as of r2274, although it is not yet possible to solve() a component of a higher-rank CellVariable.

Trac comment by guyer on 07-05-2007 at 21:37

@wd15
Copy link
Contributor

wd15 commented Sep 19, 2014

No idea when or on which branch this was done.

Trac comment by wd15 on 04-27-2011 at 17:20

@guyer guyer closed this as completed Sep 19, 2014
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

3 participants