T0 - A phantom type parameterT1 - A phantom type parameterpublic final class PMatrixByteBufferedM3x3D<T0,T1> extends ByteBuffered implements PMatrixByteBuffered3x3DType<T0,T1>
A 3x3 matrix type with double elements, packed into a ByteBuffer.
Values of this type cannot be accessed safely from multiple threads without explicit synchronization.
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
double |
getR0C0D() |
double |
getR0C1D() |
double |
getR0C2D() |
double |
getR1C0D() |
double |
getR1C1D() |
double |
getR1C2D() |
double |
getR2C0D() |
double |
getR2C1D() |
double |
getR2C2D() |
<V extends VectorWritable2DType> |
getRow2D(int row,
V out)
Retrieve row
row, saving the result to out. |
<V extends VectorWritable2DType> |
getRow2DUnsafe(int row,
V out)
Retrieve row
row, saving the result to out. |
<V extends VectorWritable3DType> |
getRow3D(int row,
V out)
Retrieve row
row, saving the result to out. |
<V extends VectorWritable3DType> |
getRow3DUnsafe(int row,
V out)
Retrieve row
row, saving the result to out. |
double |
getRowColumnD(int row,
int column) |
int |
hashCode() |
static <T0,T1> PMatrixByteBuffered3x3DType<T0,T1> |
newMatrixFromByteBuffer(ByteBuffer b,
long byte_offset)
Return a new matrix that is backed by whatever data is at byte offset
byte_offset in the byte buffer . |
static <T0,T1> PMatrixByteBuffered3x3DType<T0,T1> |
newMatrixFromByteBufferAndBase(ByteBuffer b,
AtomicLong base,
int offset)
Return a new matrix that is backed by the given byte buffer
b |
void |
setR0C0D(double x)
Set row 0, column 0 of the matrix to
x. |
void |
setR0C1D(double x)
Set row 0, column 1 of the matrix to
x. |
void |
setR0C2D(double x)
Set row 0, column 2 of the matrix to
x. |
void |
setR1C0D(double x)
Set row 1, column 0 of the matrix to
x. |
void |
setR1C1D(double x)
Set row 1, column 1 of the matrix to
x. |
void |
setR1C2D(double x)
Set row 1, column 2 of the matrix to
x. |
void |
setR2C0D(double x)
Set row 2, column 0 of the matrix to
x. |
void |
setR2C1D(double x)
Set row 2, column 1 of the matrix to
x. |
void |
setR2C2D(double x)
Set row 2, column 2 of the matrix to
x. |
void |
setRowColumnD(int row,
int column,
double value)
Set the value from the matrix at row
row, column column to
value. |
void |
setRowWith2D(int row,
VectorReadable2DType v)
Set row
row of the matrix to v. |
void |
setRowWith2DUnsafe(int row,
VectorReadable2DType v)
Set row
row of the matrix to v. |
void |
setRowWith3D(int row,
VectorReadable3DType v)
Set row
row of the matrix to v. |
void |
setRowWith3DUnsafe(int row,
VectorReadable3DType v)
Set row
row of the matrix to v. |
String |
toString() |
getByteOffset, getIndex, getOffset, setBase, setByteOffsetclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetByteOffset, setByteOffsetpublic static <T0,T1> PMatrixByteBuffered3x3DType<T0,T1> newMatrixFromByteBuffer(ByteBuffer b, long byte_offset)
Return a new matrix that is backed by whatever data is at byte offset
byte_offset in the byte buffer .
No initialization of the data is performed.
T0 - A phantom type parameterT1 - A phantom type parameterb - The byte bufferbyte_offset - A byte offsetpublic static <T0,T1> PMatrixByteBuffered3x3DType<T0,T1> newMatrixFromByteBufferAndBase(ByteBuffer b, AtomicLong base, int offset)
Return a new matrix 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.
T0 - A phantom type parameterT1 - A phantom type parameterb - The byte bufferbase - The base addressoffset - A constant offsetpublic <V extends VectorWritable3DType> void getRow3D(int row, V out)
MatrixReadable3x3DTyperow, saving the result to out.getRow3D in interface MatrixReadable3x3DTypeV - The precise type of writable vector.row - The index of the row, starting at 0.out - The output vector.public <V extends VectorWritable3DType> void getRow3DUnsafe(int row, V out)
MatrixReadable3x3DTyperow, saving the result to out. No bounds
checking is performed for row, and out-of-bounds values result in
undefined behaviour.getRow3DUnsafe in interface MatrixReadable3x3DTypeV - The precise type of writable vector.row - The index of the row, starting at 0.out - The output vector.public double getR0C2D()
getR0C2D in interface MatrixReadable3x3DTypepublic void setR0C2D(double x)
MatrixWritable3x3DTypex.setR0C2D in interface MatrixWritable3x3DTypex - The valuepublic double getR1C2D()
getR1C2D in interface MatrixReadable3x3DTypepublic void setR1C2D(double x)
MatrixWritable3x3DTypex.setR1C2D in interface MatrixWritable3x3DTypex - The valuepublic double getR2C0D()
getR2C0D in interface MatrixReadable3x3DTypepublic void setR2C0D(double x)
MatrixWritable3x3DTypex.setR2C0D in interface MatrixWritable3x3DTypex - The valuepublic double getR2C1D()
getR2C1D in interface MatrixReadable3x3DTypepublic void setR2C1D(double x)
MatrixWritable3x3DTypex.setR2C1D in interface MatrixWritable3x3DTypex - The valuepublic double getR2C2D()
getR2C2D in interface MatrixReadable3x3DTypepublic void setR2C2D(double x)
MatrixWritable3x3DTypex.setR2C2D in interface MatrixWritable3x3DTypex - The valuepublic <V extends VectorWritable2DType> void getRow2D(int row, V out)
MatrixReadable2x2DTyperow, saving the result to out.getRow2D in interface MatrixReadable2x2DTypeV - The precise type of writable vector.row - The index of the row, starting at 0.out - The output vector.public <V extends VectorWritable2DType> void getRow2DUnsafe(int row, V out)
MatrixReadable2x2DTyperow, saving the result to out. No bounds
checking is performed for row, and out-of-bounds values result in
undefined behaviour.getRow2DUnsafe in interface MatrixReadable2x2DTypeV - The precise type of writable vector.row - The index of the row, starting at 0.out - The output vector.public double getR0C0D()
getR0C0D in interface MatrixReadable2x2DTypepublic void setR0C0D(double x)
MatrixWritable2x2DTypex.setR0C0D in interface MatrixWritable2x2DTypex - The valuepublic double getR1C0D()
getR1C0D in interface MatrixReadable2x2DTypepublic void setR1C0D(double x)
MatrixWritable2x2DTypex.setR1C0D in interface MatrixWritable2x2DTypex - The valuepublic double getR0C1D()
getR0C1D in interface MatrixReadable2x2DTypepublic void setR0C1D(double x)
MatrixWritable2x2DTypex.setR0C1D in interface MatrixWritable2x2DTypex - The valuepublic double getR1C1D()
getR1C1D in interface MatrixReadable2x2DTypepublic void setR1C1D(double x)
MatrixWritable2x2DTypex.setR1C1D in interface MatrixWritable2x2DTypex - The valuepublic double getRowColumnD(int row,
int column)
getRowColumnD in interface MatrixReadableDTyperow - The rowcolumn - The columnrow , column column.public void setRowWith3D(int row,
VectorReadable3DType v)
MatrixWritable3x3DTyperow of the matrix to v.setRowWith3D in interface MatrixWritable3x3DTyperow - The row indexv - The row vectorpublic void setRowWith3DUnsafe(int row,
VectorReadable3DType v)
MatrixWritable3x3DTyperow of the matrix to v. No bounds checking is
performed for row, and out-of-bounds values result in undefined
behaviour.setRowWith3DUnsafe in interface MatrixWritable3x3DTyperow - The row indexv - The row vectorpublic void setRowWith2D(int row,
VectorReadable2DType v)
MatrixWritable2x2DTyperow of the matrix to v.setRowWith2D in interface MatrixWritable2x2DTyperow - The row indexv - The row vectorpublic void setRowWith2DUnsafe(int row,
VectorReadable2DType v)
MatrixWritable2x2DTyperow of the matrix to v. No bounds checking is
performed for row, and out-of-bounds values result in undefined
behaviour.setRowWith2DUnsafe in interface MatrixWritable2x2DTyperow - The row indexv - The row vectorpublic void setRowColumnD(int row,
int column,
double value)
MatrixWritableDTyperow, column column to
value.setRowColumnD in interface MatrixWritableDTyperow - The rowcolumn - The columnvalue - The valueCopyright © 2016 <code@io7m.com> http://io7m.com