-
Notifications
You must be signed in to change notification settings - Fork 44
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
Extent of a matrix local row #107
Comments
No, any view referencing a multi-dimensional container depends on the container type, like The dimensionality is part of the view type. The behavior (representation) of the type is defined by the second dimension parameter in the view templates ( The dimensionality of views does not change, but their rank does. A row is equivalent to a slice with extent 1. A slice with extent 2 would not change its dimensionality, so why should it for extent 1?
My suggestion is to remove methods |
Because a row or column can be seen as a one-dimensional vector. Of course they can be seen as a special case of an otherwise arbitrary slice as well, hence my confusion.
What would be the replacement to use?
|
Not too happy about the interface and ambiguities myself. I wrote formal semantics of the NArray concept some time ago and the implementation does not comply in places, obviously.
|
Closed and continued in #117 |
Consider the following code:
Consider the row of a two-dimensional matrix in DASH. My expectation was that a row has one dimension less than the number of dimensions of the matrix it belongs to, i.e., 1 for a 2D matrix.
However, the following example shows that a row is still two-dimensional with the extent in one dimension set to 1:
which results in the following output:
The same holds true for a column:
Is this expected behavior? From how I understand the code in LocalMatrixRef, a row is meant to have N-1 columns:
The text was updated successfully, but these errors were encountered: