-
Notifications
You must be signed in to change notification settings - Fork 14
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
Kronecker product does not preserve sparsity #171
Comments
I think this package doesn't overload
The usual thing here would be to overload
|
Yes, definitely for now I think the result should be an unnamed but sparse array. In the process of using this library I was doing a lot of kron, reshape, etc. operations and found myself wishing that there was some way to represent the order of nesting of "combined" dimensions like you get after a kron operation. Something like this:
Often the eventual destination of an N-dimensional named array will be a 2-dimensional MatOrVec, since you want to do some linear algebra on it eventually. In such cases it would be nice to keep track of whether you're working with an ":x-major" or a ":y-major" nested dimension. |
In other packages... I messed around a bit with NamedPlus's split / join. And there is this:
|
Passing a NamedDimsArray into the kron function does not preserve sparsity:
Note that this is in contrast to passing an unwrapped sparse array:
The text was updated successfully, but these errors were encountered: