Acts as a slice of an ArrayNd set, without having to copy the data. Is not specific to any data type.
#include <DataAnalysis/DataStructures/arrayndslice.h>
◆ ~ArrayNdSlice()
◆ getAsArrayNd()
◆ setBaseData()
- Parameters
-
data | The N-dimensional dataset which we are slicing. |
includedRange | The dimensions that make up the slice. The lowest index in each dimension will become index 0 in the slice. |
ownsData | Whether or not this structure is to take ownership of the supplied data, and therefore whether or not it should be responsible for cleaning it up. |
- Returns
- true if the base data was set successfully. Will return false if the number of dimensions in includedRange does not exactly match the number of dimensions in data, or if the data factory of data does not match the type of this data structure.
Sets the underlying data that we are slicing into. Must be called before any of the other functions on the slice will work correctly.
Implemented in ArrayNdSliceTyped< T >.