Selection view on dense 3-d matrices holding double elements. First
see the
package summary and javadoc
tree view to get the broad picture.
Implementation:
Objects of this class are typically constructed via viewIndexes
methods on some source matrix. The interface introduced in abstract super
classes defines everything a user can do. From a user point of view there is
nothing special about this class; it presents the same functionality with the
same signatures and semantics as its abstract superclass(es) while
introducing no additional functionality. Thus, this class need not be visible
to users. By the way, the same principle applies to concrete DenseXXX and
SparseXXX classes: they presents the same functionality with the same
signatures and semantics as abstract superclass(es) while introducing no
additional functionality. Thus, they need not be visible to users, either.
Factory methods could hide all these concrete types.
This class uses no delegation. Its instances point directly to the data. Cell
addressing overhead is is 1 additional int addition and 3 additional array
index accesses per get/set.
Note that this implementation is not synchronized.
Memory requirements:
memory [bytes] = 4*(sliceIndexes.length+rowIndexes.length+columnIndexes.length)
. Thus, an index view with 100 x 100 x 100 indexes additionally uses 8 KB.
Time complexity:
Depends on the parent view holding cells.