Allow concatenation of CodimensionalCollection instances along singleton-linked dimensions #2
Labels
No labels
bug
duplicate
enhancement/documentation
enhancement/feature
enhancement/organization
question
rejected
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
UserCurt/collections-toolbox#2
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Concatenation of two or more non-full CodimensionalCollection instances gives an error when concatenation along the selected dimension is incompatible due to at least one linked dimension being singleton. This feature request suggests allowing for such a concatenation.
The simplest implementation would be to duplicate entries for the result to be consistent and as expected by the user. In this example, the
Logicalsvariable would be affected and need to undergorepelemor something similar.An alternative would be to implement a sparse-like representation which maps supplied indices to their true internal representation indices. In this case,
Logicalswould be internally 3×2×2 but presented as 3×6×2. AccessingLogicals(:,i,:)foribeing any of1:3would map to1and any of4:6would map to2. This would effectively be a compressed version of the contents.