A
- A phantom type parameter (possibly representing a source
coordinate system)B
- A phantom type parameter (possibly representing a target
coordinate system)PMatrixReadable2x2DType<A,B>
, MatrixReadable2x2DType
, MatrixReadableDType
, MatrixStorageType
, PMatrixStorage2x2Type<A,B>
, MatrixStorage2x2Type
, MatrixByteBufferedType
, PMatrixByteBuffered2x2Type<A,B>
, TensorByteBufferedType
public final class PMatrixByteBuffered2x2s64<A,B> extends Object implements PMatrixByteBuffered2x2Type<A,B>
A storage matrix.
Storage component type: double
Storage component count: 2x2
Modifier and Type | Method | Description |
---|---|---|
ByteBuffer |
byteBuffer() |
|
long |
byteOffset() |
|
protected int |
byteOffsetForIndex(int component_index) |
|
protected int |
componentBytes() |
|
protected int |
componentCount() |
|
static <A,B> PMatrixByteBuffered2x2s64<A,B> |
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.
|
void |
setPMatrix2x2D(PMatrix2x2D<A,B> m) |
Set the components from the given matrix.
|
void |
setPMatrix2x2F(PMatrix2x2F<A,B> m) |
Set the components from the given matrix.
|
int |
sizeBytes() |
rowColumn
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
byteBuffer, byteOffset, offset, sizeBytes
public static <A,B> PMatrixByteBuffered2x2s64<A,B> 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.
A
- A phantom type parameter (possibly representing a source
coordinate system)B
- A phantom type parameter (possibly representing a target
coordinate system)b
- The byte bufferbase
- The base addressoffset
- A constant offsetprotected int componentCount()
public double r0c0()
r0c0
in interface MatrixReadable2x2DType
public double r0c1()
r0c1
in interface MatrixReadable2x2DType
public double r1c0()
r1c0
in interface MatrixReadable2x2DType
public double r1c1()
r1c1
in interface MatrixReadable2x2DType
public void setPMatrix2x2D(PMatrix2x2D<A,B> m)
PMatrixStorage2x2Type
setPMatrix2x2D
in interface PMatrixStorage2x2Type<A,B>
m
- The source matrixpublic void setPMatrix2x2F(PMatrix2x2F<A,B> m)
PMatrixStorage2x2Type
setPMatrix2x2F
in interface PMatrixStorage2x2Type<A,B>
m
- The source matrixpublic void setMatrix2x2D(Matrix2x2D m)
MatrixStorage2x2Type
setMatrix2x2D
in interface MatrixStorage2x2Type
m
- The source matrixpublic void setMatrix2x2F(Matrix2x2F m)
MatrixStorage2x2Type
setMatrix2x2F
in interface MatrixStorage2x2Type
m
- The source matrixprotected final int componentBytes()
public final ByteBuffer byteBuffer()
byteBuffer
in interface TensorByteBufferedType
public final long byteOffset()
byteOffset
in interface TensorByteBufferedType
public final int offset()
offset
in interface TensorByteBufferedType
TensorByteBufferedType.byteOffset()
.public final int sizeBytes()
sizeBytes
in interface TensorByteBufferedType
protected final int byteOffsetForIndex(int component_index)
Copyright © 2017 <code@io7m.com> http://io7m.com