mikera.arrayz.impl
Interface IStridedArray
-
- All Superinterfaces:
- java.lang.Cloneable, java.lang.Comparable<INDArray>, INDArray, java.io.Serializable
- All Known Implementing Classes:
- ADenseArrayMatrix, ADenseArrayVector, Array, ArrayIndexScalar, ArraySubVector, AStridedMatrix, AStridedVector, BaseNDArray, BaseStridedMatrix, BaseStridedVector, DenseColumnMatrix, ImmutableArray, ImmutableVector, Matrix, NDArray, StridedMatrix, StridedRowMatrix, StridedVector, Vector
public interface IStridedArray extends INDArray
Interface for arrays that support strided access over an underlying double[] array
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description double[]getArray()Gets the underlying data array for this strided array Unsafe operation - may allow modification of otherwise immutable arraysintgetArrayOffset()Gets the data array offset for the first element of this strided arrayintgetStride(int dimension)Gets the stide for a specific dimension in this strided array.int[]getStrides()Gets the strides for each dimension of this strided array.booleanisPackedArray()Checks if this array is fully packed in row major order.-
Methods inherited from interface mikera.arrayz.INDArray
abs, absCopy, absDiff, absDiffCopy, add, add, addApplyOp, addAt, addCopy, addCopy, addInnerProduct, addInnerProduct, addMultiple, addMultipleSparse, addOuterProduct, addOuterProductSparse, addPower, addPower, addSparse, addSparse, addToArray, applyOp, applyOp, applyOp, applyOp, applyOpCopy, asDoubleArray, asElementList, asVector, broadcast, broadcastCloneLike, broadcastCopyLike, broadcastLike, broadcastLike, broadcastLike, clamp, clone, componentCount, copy, dense, denseClone, dimensionality, divide, divide, divideCopy, divideCopy, elementAbsPowSum, elementCount, elementIterator, elementMax, elementMaxAbs, elementMin, elementPowSum, elementProduct, elementsEqual, elementSquaredSum, elementSum, ensureMutable, epsilonEquals, epsilonEquals, equals, equalsArray, equalsArray, exactClone, exp, fill, get, get, get, get, get, get, get, get, get, getComponent, getComponents, getElement, getElements, getElements, getElements, getElements, getLongShape, getShape, getShape, getShapeClone, getSlices, getSlices, getSliceViews, getTranspose, getTransposeCopy, getTransposeView, hasUncountable, immutable, innerProduct, innerProduct, innerProduct, innerProduct, isBoolean, isDense, isElementConstrained, isFullyMutable, isMutable, isSameShape, isSparse, isView, isZero, join, join, log, multiply, multiply, multiplyCopy, multiplyCopy, mutable, negate, negateCopy, nonZeroCount, outerProduct, pow, reciprocal, reciprocalCopy, reduce, reduce, reduceSlices, reduceSlices, reorder, reorder, reshape, rotateView, scale, scaleAdd, scaleAdd, scaleCopy, set, set, set, set, set, set, set, setApplyOp, setElements, setElements, setElements, setInnerProduct, setMultiple, setMultiple, setSparse, setSparse, signum, signumCopy, slice, slice, sliceCount, sliceValue, sparse, sparseClone, sqrt, square, squareCopy, sub, sub, subArray, subCopy, toDoubleArray, toDoubleBuffer, toSliceArray, toVector, validate, withComponents
-
-
-
-
Method Detail
-
getArray
double[] getArray()
Gets the underlying data array for this strided array Unsafe operation - may allow modification of otherwise immutable arrays- Returns:
-
getArrayOffset
int getArrayOffset()
Gets the data array offset for the first element of this strided array- Returns:
-
getStrides
int[] getStrides()
Gets the strides for each dimension of this strided array. The returned array should not be modified- Returns:
-
getStride
int getStride(int dimension)
Gets the stide for a specific dimension in this strided array.- Parameters:
dimension-- Returns:
-
isPackedArray
boolean isPackedArray()
Checks if this array is fully packed in row major order.- Returns:
-
-
DMelt 3.0 © DataMelt by jWork.ORG