A - A phantom type parameter (possibly representing a source
coordinate system)B - A phantom type parameter (possibly representing a target
coordinate system)PMatrixReadable3x3DType<A,B>, MatrixReadable3x3DType, MatrixReadableDType, MatrixStorageType, PMatrixStorage3x3Type<A,B>, MatrixStorage3x3Type, MatrixByteBufferedType, PMatrixByteBuffered3x3Type<A,B>, TensorByteBufferedTypepublic final class PMatrixByteBuffered3x3s64<A,B> extends Object implements PMatrixByteBuffered3x3Type<A,B>
A storage matrix.
Storage component type: double
Storage component count: 3x3
| Modifier and Type | Method | Description |
|---|---|---|
ByteBuffer |
byteBuffer() |
|
long |
byteOffset() |
|
protected int |
byteOffsetForIndex(int component_index) |
|
protected int |
componentBytes() |
|
protected int |
componentCount() |
|
static <A,B> PMatrixByteBuffered3x3s64<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 |
r0c2() |
|
double |
r1c0() |
|
double |
r1c1() |
|
double |
r1c2() |
|
double |
r2c0() |
|
double |
r2c1() |
|
double |
r2c2() |
|
void |
setMatrix3x3D(Matrix3x3D m) |
Set the components from the given matrix.
|
void |
setMatrix3x3F(Matrix3x3F m) |
Set the components from the given matrix.
|
void |
setPMatrix3x3D(PMatrix3x3D<A,B> m) |
Set the components from the given matrix.
|
void |
setPMatrix3x3F(PMatrix3x3F<A,B> m) |
Set the components from the given matrix.
|
int |
sizeBytes() |
rowColumnclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbyteBuffer, byteOffset, offset, sizeBytespublic static <A,B> PMatrixByteBuffered3x3s64<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 MatrixReadable3x3DTypepublic double r0c1()
r0c1 in interface MatrixReadable3x3DTypepublic double r0c2()
r0c2 in interface MatrixReadable3x3DTypepublic double r1c0()
r1c0 in interface MatrixReadable3x3DTypepublic double r1c1()
r1c1 in interface MatrixReadable3x3DTypepublic double r1c2()
r1c2 in interface MatrixReadable3x3DTypepublic double r2c0()
r2c0 in interface MatrixReadable3x3DTypepublic double r2c1()
r2c1 in interface MatrixReadable3x3DTypepublic double r2c2()
r2c2 in interface MatrixReadable3x3DTypepublic void setPMatrix3x3D(PMatrix3x3D<A,B> m)
PMatrixStorage3x3TypesetPMatrix3x3D in interface PMatrixStorage3x3Type<A,B>m - The source matrixpublic void setPMatrix3x3F(PMatrix3x3F<A,B> m)
PMatrixStorage3x3TypesetPMatrix3x3F in interface PMatrixStorage3x3Type<A,B>m - The source matrixpublic void setMatrix3x3D(Matrix3x3D m)
MatrixStorage3x3TypesetMatrix3x3D in interface MatrixStorage3x3Typem - The source matrixpublic void setMatrix3x3F(Matrix3x3F m)
MatrixStorage3x3TypesetMatrix3x3F in interface MatrixStorage3x3Typem - 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