public final class MatrixByteBuffered2x2s32 extends Object implements MatrixByteBuffered2x2Type
A storage matrix.
Storage component type: float
Storage component count: 2x2
| Modifier and Type | Method and Description |
|---|---|
ByteBuffer |
byteBuffer() |
long |
byteOffset() |
protected int |
byteOffsetForIndex(int component_index) |
protected int |
componentBytes() |
protected int |
componentCount() |
static MatrixByteBuffered2x2s32 |
createWithBase(ByteBuffer b,
com.io7m.mutable.numbers.core.MutableLongType base,
int offset)
Return a new vector that is backed by the given byte buffer
b |
int |
offset() |
double |
r0c0() |
double |
r0c1() |
double |
r1c0() |
double |
r1c1() |
void |
setMatrix2x2D(Matrix2x2D m)
Set the components from the given matrix.
|
void |
setMatrix2x2F(Matrix2x2F m)
Set the components from the given matrix.
|
int |
sizeBytes() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitrowColumnbyteBuffer, byteOffset, offset, sizeBytespublic static MatrixByteBuffered2x2s32 createWithBase(ByteBuffer b, com.io7m.mutable.numbers.core.MutableLongType base, int offset)
Return a new vector that is backed by the given byte buffer b
The data for the instance will be taken from the data at the current
value of base.get() + offset, each time a field is requested or
set.
No initialization of the data is performed.
b - The byte bufferbase - The base addressoffset - A constant offsetprotected int componentCount()
public double r0c0()
r0c0 in interface MatrixReadable2x2DTypepublic double r0c1()
r0c1 in interface MatrixReadable2x2DTypepublic double r1c0()
r1c0 in interface MatrixReadable2x2DTypepublic double r1c1()
r1c1 in interface MatrixReadable2x2DTypepublic void setMatrix2x2D(Matrix2x2D m)
MatrixStorage2x2TypesetMatrix2x2D in interface MatrixStorage2x2Typem - The source matrixpublic void setMatrix2x2F(Matrix2x2F m)
MatrixStorage2x2TypesetMatrix2x2F in interface MatrixStorage2x2Typem - The source matrixprotected final int componentBytes()
public final ByteBuffer byteBuffer()
byteBuffer in interface TensorByteBufferedTypepublic final long byteOffset()
byteOffset in interface TensorByteBufferedTypepublic final int offset()
offset in interface TensorByteBufferedTypeTensorByteBufferedType.byteOffset().public final int sizeBytes()
sizeBytes in interface TensorByteBufferedTypeprotected final int byteOffsetForIndex(int component_index)
Copyright © 2017 <code@io7m.com> http://io7m.com