java.lang.Object
uk.ac.manchester.tornado.api.types.matrix.Matrix3DFloat4
- All Implemented Interfaces:
Serializable,PrimitiveStorage<FloatBuffer>,TornadoMatrixInterface<FloatBuffer>
Matrix3DFloat4 relies on preview features of the Java platform:
Matrix3DFloat4refers to one or more preview APIs:MemorySegment.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMatrix3DFloat4(int rows, int columns, int depth) Storage format for matrix.Matrix3DFloat4(int rows, int columns, int depth, FloatArray array) Storage format for matrix. -
Method Summary
Modifier and TypeMethodDescriptionasBuffer()voidclear()voidfill(float value) get(int i, int j, int k) longlongintintintvoidloadFromBuffer(FloatBuffer buffer) static voidscale(Matrix3DFloat4 matrix, float value) voidvoidintsize()toString()
-
Field Details
-
TYPE
-
ROWS
protected final int ROWSNumber of rows. -
COLUMNS
protected final int COLUMNSNumber of columns. -
DEPTH
protected final int DEPTHDepth.
-
-
Constructor Details
-
Matrix3DFloat4
Storage format for matrix.- Parameters:
rows- number of rowscolumns- number of columnsdepth- number of elements in deptharray- array reference which contains data
-
Matrix3DFloat4
public Matrix3DFloat4(int rows, int columns, int depth) Storage format for matrix.- Parameters:
rows- number of rowscolumns- number of columnsdepth- depth-rows
-
-
Method Details
-
scale
-
clear
public void clear() -
get
-
set
-
fill
public void fill(float value) -
duplicate
-
set
-
toString
-
toString
-
loadFromBuffer
- Specified by:
loadFromBufferin interfacePrimitiveStorage<FloatBuffer>
-
asBuffer
- Specified by:
asBufferin interfacePrimitiveStorage<FloatBuffer>
-
size
public int size()- Specified by:
sizein interfacePrimitiveStorage<FloatBuffer>
-
getNumBytes
public long getNumBytes()- Specified by:
getNumBytesin interfaceTornadoMatrixInterface<FloatBuffer>
-
getNumBytesWithHeader
public long getNumBytesWithHeader()- Specified by:
getNumBytesWithHeaderin interfaceTornadoMatrixInterface<FloatBuffer>
-
getSegment
- Specified by:
getSegmentin interfaceTornadoMatrixInterface<FloatBuffer>
-
getSegmentWithHeader
- Specified by:
getSegmentWithHeaderin interfaceTornadoMatrixInterface<FloatBuffer>
-
getNumRows
public int getNumRows() -
getNumColumns
public int getNumColumns() -
getNumDepth
public int getNumDepth()
-
Matrix3DFloat4when preview features are enabled.