| Package | Description |
|---|---|
| com.io7m.jtensors |
Core vector and matrix types.
|
| com.io7m.jtensors.bytebuffered |
ByteBuffer backed tensors. |
| com.io7m.jtensors.bytebuffered.parameterized |
ByteBuffer backed parameterized tensors. |
| com.io7m.jtensors.parameterized |
Parameterized vector and matrix types.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
Matrix4x4FType
The type of 4x4 matrices with
float elements. |
interface |
MatrixDirect4x4FType
The type of 4x4 matrices with
float elements that are backed by
direct byte buffers. |
interface |
MatrixDirectReadable4x4FType
'Read' interface to 4x4 direct-memory matrices with
float elements. |
| Modifier and Type | Class and Description |
|---|---|
class |
MatrixDirectM4x4F
The default implementation of the
MatrixDirect4x4FType
interface. |
class |
MatrixHeapArrayM4x4F
The default implementation of the
Matrix4x4FType interface. |
class |
MatrixI4x4F
An immutable 4x4 matrix type.
|
| Modifier and Type | Method and Description |
|---|---|
static <M extends MatrixWritable4x4FType & MatrixReadable4x4FType> |
MatrixM4x4F.addInPlace(M m0,
MatrixReadable4x4FType m1)
Elementwise add of matrices
m0 and m1, returning the result
in m0. |
static <M extends MatrixWritable4x4FType & MatrixReadable4x4FType> |
MatrixM4x4F.addRowScaledInPlace(MatrixM4x4F.ContextMM4F context,
M m,
int row_a,
int row_b,
int row_c,
double r)
Add the values in row
row_b to the values in row row_a
scaled by r, saving the resulting row in row row_c of the
matrix m. |
static <M extends MatrixWritable4x4FType & MatrixReadable4x4FType> |
MatrixM4x4F.exchangeRowsInPlace(MatrixM4x4F.ContextMM4F context,
M m,
int row_a,
int row_b)
Exchange the row
row_a and row row_b of the matrix
m, saving the exchanged rows to m. |
static <M extends MatrixWritable4x4FType & MatrixReadable4x4FType> |
MatrixM4x4F.invertInPlace(MatrixM4x4F.ContextMM4F context,
M m)
Calculate the inverse of the matrix
m, saving the resulting matrix
to m. |
static <M extends MatrixWritable4x4FType & MatrixReadable4x4FType> |
MatrixM4x4F.multiplyInPlace(M m0,
MatrixReadable4x4FType m1)
Multiply the matrix
m0 with the matrix m1, writing the
result to m0. |
static <M extends MatrixWritable4x4FType & MatrixReadable4x4FType> |
MatrixM4x4F.scaleInPlace(M m,
double r)
Scale all elements of the matrix
m by the scaling value r,
saving the result in m. |
static <M extends MatrixWritable4x4FType & MatrixReadable4x4FType> |
MatrixM4x4F.scaleRowInPlace(MatrixM4x4F.ContextMM4F context,
M m,
int row,
double r)
Scale row
row of the matrix m by r , saving the
result to row r of m. |
static <M extends MatrixWritable4x4FType & MatrixReadable4x4FType> |
MatrixM4x4F.transposeInPlace(M m)
Transpose the given matrix
m, writing the resulting matrix to
m. |
| Modifier and Type | Method and Description |
|---|---|
static <M extends MatrixWritable4x4FType> |
MatrixM4x4F.add(MatrixReadable4x4FType m0,
MatrixReadable4x4FType m1,
M out)
Elementwise add of matrices
m0 and m1. |
static <M extends MatrixWritable4x4FType & MatrixReadable4x4FType> |
MatrixM4x4F.addInPlace(M m0,
MatrixReadable4x4FType m1)
Elementwise add of matrices
m0 and m1, returning the result
in m0. |
static <M extends MatrixWritable4x4FType> |
MatrixM4x4F.addRowScaled(MatrixM4x4F.ContextMM4F context,
MatrixReadable4x4FType m,
int row_a,
int row_b,
int row_c,
double r,
M out)
Add the values in row
row_b to the values in row row_a
scaled by r, saving the resulting row in row row_c of the
matrix out. |
static boolean |
MatrixM4x4F.compareElements(MatrixReadable4x4FType m0,
MatrixReadable4x4FType m1)
Compare matrices.
|
static <M extends MatrixWritable4x4FType> |
MatrixM4x4F.copy(MatrixReadable4x4FType input,
M output)
Copy the contents of the matrix
input to the matrix output,
completely replacing all elements. |
static double |
MatrixM4x4F.determinant(MatrixReadable4x4FType m)
Calculate the determinant of the matrix
m. |
static <M extends MatrixWritable4x4FType> |
MatrixM4x4F.exchangeRows(MatrixM4x4F.ContextMM4F context,
MatrixReadable4x4FType m,
int row_a,
int row_b,
M out)
Exchange two rows
row_a and row row_b of the matrix
m, saving the exchanged rows to out . |
static int |
MatrixM4x4F.hashElements(MatrixReadable4x4FType m)
Hash matrices.
|
static <M extends MatrixWritable4x4FType> |
MatrixM4x4F.invert(MatrixM4x4F.ContextMM4F context,
MatrixReadable4x4FType m,
M out)
Calculate the inverse of the matrix
m, saving the resulting matrix
to out. |
static QuaternionI4F |
QuaternionI4F.makeFromRotationMatrix4x4(MatrixReadable4x4FType m)
Produce a quaternion equivalent to the rotation matrix
m, writing
the result to out. |
static <Q extends QuaternionWritable4FType> |
QuaternionM4F.makeFromRotationMatrix4x4(MatrixReadable4x4FType m,
Q out)
Produce a quaternion equivalent to the rotation matrix
m, writing
the result to out. |
static <M extends MatrixWritable4x4FType> |
MatrixM4x4F.multiply(MatrixReadable4x4FType m0,
MatrixReadable4x4FType m1,
M out)
Multiply the matrix
m0 with the matrix m1, writing the
result to out. |
static <M extends MatrixWritable4x4FType & MatrixReadable4x4FType> |
MatrixM4x4F.multiplyInPlace(M m0,
MatrixReadable4x4FType m1)
Multiply the matrix
m0 with the matrix m1, writing the
result to m0. |
static <V extends VectorWritable4FType> |
MatrixM4x4F.multiplyVector4F(MatrixM4x4F.ContextMM4F context,
MatrixReadable4x4FType m,
VectorReadable4FType v,
V out)
Multiply the matrix
m with the vector v, writing the
resulting vector to out. |
static MatrixI4x4F |
MatrixI4x4F.newFromReadable(MatrixReadable4x4FType m)
Construct a new immutable 4x4 matrix from the given readable 4x4 matrix.
|
static Matrix4x4FType |
MatrixHeapArrayM4x4F.newMatrixFrom(MatrixReadable4x4FType m) |
static MatrixDirect4x4FType |
MatrixDirectM4x4F.newMatrixFrom(MatrixReadable4x4FType m) |
static <M extends MatrixWritable4x4FType> |
MatrixM4x4F.scale(MatrixReadable4x4FType m,
double r,
M out)
Scale all elements of the matrix
m by the scaling value r,
saving the result in out. |
static <M extends MatrixWritable4x4FType> |
MatrixM4x4F.scaleRow(MatrixM4x4F.ContextMM4F context,
MatrixReadable4x4FType m,
int row,
double r,
M out)
Scale row
row of the matrix m by r , saving the
result to row r of out. |
static void |
MatrixM4x4F.showElements(MatrixReadable4x4FType m,
StringBuilder sb)
Show matrices.
|
static double |
MatrixM4x4F.trace(MatrixReadable4x4FType m)
Return the trace of the matrix
m. |
static <M extends MatrixWritable4x4FType> |
MatrixM4x4F.transpose(MatrixReadable4x4FType m,
M out)
Transpose the given matrix
m, writing the resulting matrix to
out. |
| Modifier and Type | Interface and Description |
|---|---|
interface |
MatrixByteBuffered4x4FType
The type of
Matrix4x4FType values that are also byte
buffered. |
| Modifier and Type | Class and Description |
|---|---|
class |
MatrixByteBufferedM4x4F
A 4x4 matrix type with
float elements, packed into a ByteBuffer. |
| Modifier and Type | Interface and Description |
|---|---|
interface |
PMatrixByteBuffered4x4FType<T0,T1>
The type of
PMatrix4x4FType values that are also byte
buffered. |
| Modifier and Type | Class and Description |
|---|---|
class |
PMatrixByteBufferedM4x4F<T0,T1>
A 4x4 matrix type with
float elements, packed into a ByteBuffer. |
| Modifier and Type | Interface and Description |
|---|---|
interface |
PMatrix4x4FType<T0,T1>
The type of 4x4 matrices with
float elements. |
interface |
PMatrixDirect4x4FType<T0,T1>
The type of 4x4 matrices with
float elements that are backed by
direct byte buffers. |
interface |
PMatrixDirectReadable4x4FType<T,U>
'Read' interface to 4x4 direct-memory matrices with
float elements. |
interface |
PMatrixReadable4x4FType<T,U>
'Read' interface to 4x4 matrices with
float elements. |
| Modifier and Type | Class and Description |
|---|---|
class |
PMatrixDirectM4x4F<T0,T1>
The default implementation of the
PMatrixDirect4x4FType interface. |
class |
PMatrixHeapArrayM4x4F<T0,T1>
The default implementation of the
PMatrix4x4FType interface. |
class |
PMatrixI4x4F<T0,T1>
An immutable 4x4 matrix type.
|
| Modifier and Type | Method and Description |
|---|---|
static <T0,T1> PMatrixI4x4F<T0,T1> |
PMatrixI4x4F.newFromReadableUntyped(MatrixReadable4x4FType m)
Construct a new immutable 4x4 matrix from the given readable 4x4 matrix.
|
static <T0,T1> PMatrixDirect4x4FType<T0,T1> |
PMatrixDirectM4x4F.newMatrixFromUntyped(MatrixReadable4x4FType m) |
Copyright © 2017 <code@io7m.com> http://io7m.com