| 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 |
Matrix3x3DType
The type of 3x3 matrices with
double elements. |
interface |
Matrix4x4DType
The type of 4x4 matrices with
double elements. |
interface |
MatrixDirect3x3DType
The type of 3x3 matrices with
double elements that are backed by
direct byte buffers. |
interface |
MatrixDirect4x4DType
The type of 4x4 matrices with
double elements that are backed by
direct byte buffers. |
interface |
MatrixWritable4x4DType
'Write' interface to 4x4 matrices with
double elements. |
| Modifier and Type | Class and Description |
|---|---|
class |
MatrixDirectM3x3D
The default implementation of the
MatrixDirect3x3DType
interface. |
class |
MatrixDirectM4x4D
The default implementation of the
MatrixDirect4x4DType
interface. |
class |
MatrixHeapArrayM3x3D
The default implementation of the
Matrix3x3DType interface. |
class |
MatrixHeapArrayM4x4D
The default implementation of the
Matrix4x4DType interface. |
| Modifier and Type | Method and Description |
|---|---|
static <M extends MatrixWritable3x3DType> |
MatrixM3x3D.add(MatrixReadable3x3DType m0,
MatrixReadable3x3DType m1,
M out)
Elementwise add of matrices
m0 and m1. |
static <M extends MatrixWritable3x3DType & MatrixReadable3x3DType> |
MatrixM3x3D.addInPlace(M m0,
MatrixReadable3x3DType m1)
Elementwise add of matrices
m0 and m1, returning the result
in m0. |
static <M extends MatrixWritable3x3DType> |
MatrixM3x3D.addRowScaled(MatrixM3x3D.ContextMM3D c,
MatrixReadable3x3DType 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 <M extends MatrixWritable3x3DType & MatrixReadable3x3DType> |
MatrixM3x3D.addRowScaledInPlace(MatrixM3x3D.ContextMM3D c,
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 MatrixWritable3x3DType> |
MatrixM3x3D.copy(MatrixReadable3x3DType input,
M output)
Copy the contents of the matrix
input to the matrix output,
completely replacing all elements. |
static <M extends MatrixWritable3x3DType> |
MatrixM3x3D.exchangeRows(MatrixM3x3D.ContextMM3D c,
MatrixReadable3x3DType m,
int row_a,
int row_b,
M out)
Exchange the row
row_a and row row_b of the matrix
m, saving the exchanged rows to out. |
static <M extends MatrixWritable3x3DType & MatrixReadable3x3DType> |
MatrixM3x3D.exchangeRowsInPlace(MatrixM3x3D.ContextMM3D c,
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 MatrixWritable3x3DType> |
MatrixM3x3D.invert(MatrixM3x3D.ContextMM3D c,
MatrixReadable3x3DType m,
M out)
Calculate the inverse of the matrix
m, saving the resulting matrix
to out. |
static <M extends MatrixWritable3x3DType & MatrixReadable3x3DType> |
MatrixM3x3D.invertInPlace(MatrixM3x3D.ContextMM3D c,
M m)
Calculate the inverse of the matrix
m, saving the resulting matrix
to m. |
static <M extends MatrixWritable3x3DType,V extends VectorWritable3DType> |
MatrixM3x3D.lookAt(MatrixM3x3D.ContextMM3D context,
VectorReadable3DType origin,
VectorReadable3DType target,
VectorReadable3DType up,
M out_matrix,
V out_translation)
Calculate a rotation and translation representing a "camera" looking
from the point
origin to the point target. |
<M extends MatrixWritable3x3DType> |
MatrixI3x3D.makeMatrix3x3D(M m)
Write the current matrix into the given mutable matrix.
|
static <M extends MatrixWritable3x3DType> |
MatrixM3x3D.makeRotation(double angle,
VectorReadable3DType axis,
M out)
Generate a matrix that represents a rotation of
angle radians
around the axis axis and save to out. |
static <M extends MatrixWritable3x3DType> |
QuaternionM4D.makeRotationMatrix3x3(QuaternionReadable4DType q,
M m)
Produce a rotation matrix from the quaternion
q, saving the result
to m. |
static <M extends MatrixWritable3x3DType> |
QuaternionI4D.makeRotationMatrix3x3(QuaternionReadable4DType q,
M m)
Produce a rotation matrix from the quaternion
q, saving the result
to m. |
static <M extends MatrixWritable3x3DType> |
MatrixM3x3D.makeTranslation2D(VectorReadable2DType v,
M out)
Create a translation matrix that represents a translation by the vector
v, writing the resulting matrix to out. |
static <M extends MatrixWritable3x3DType> |
MatrixM3x3D.makeTranslation2I(VectorReadable2IType v,
M out)
Create a translation matrix that represents a translation by the vector
v, writing the resulting matrix to out. |
static <M extends MatrixWritable3x3DType> |
MatrixM3x3D.multiply(MatrixReadable3x3DType m0,
MatrixReadable3x3DType m1,
M out)
Multiply the matrix
m0 with the matrix m1, writing the
result to out. |
static <M extends MatrixWritable3x3DType & MatrixReadable3x3DType> |
MatrixM3x3D.multiplyInPlace(M m0,
MatrixReadable3x3DType m1)
Multiply the matrix
m0 with the matrix m1, writing the
result to m0. |
static <M extends MatrixWritable3x3DType> |
MatrixM3x3D.scale(MatrixReadable3x3DType 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 MatrixWritable3x3DType & MatrixReadable3x3DType> |
MatrixM3x3D.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 MatrixWritable3x3DType> |
MatrixM3x3D.scaleRow(MatrixM3x3D.ContextMM3D c,
MatrixReadable3x3DType m,
int row,
double r,
M out)
Scale row
r of the matrix m by r, saving the
result to row r of out. |
static <M extends MatrixWritable3x3DType & MatrixReadable3x3DType> |
MatrixM3x3D.scaleRowInPlace(MatrixM3x3D.ContextMM3D c,
M m,
int row,
double r)
Scale row
r of the matrix m by r, saving the
result to row r of m. |
static <M extends MatrixWritable3x3DType> |
MatrixM3x3D.setIdentity(M m)
Set the given matrix
m to the identity matrix. |
static <M extends MatrixWritable3x3DType> |
MatrixM3x3D.setZero(M m)
Set the given matrix
m to the zero matrix. |
static <M extends MatrixWritable3x3DType> |
MatrixM3x3D.transpose(MatrixReadable3x3DType m,
M out)
Transpose the given matrix
m, writing the resulting matrix to
out. |
static <M extends MatrixWritable3x3DType & MatrixReadable3x3DType> |
MatrixM3x3D.transposeInPlace(M m)
Transpose the given matrix
m, writing the resulting matrix to
m. |
| Modifier and Type | Interface and Description |
|---|---|
interface |
MatrixByteBuffered3x3DType
The type of
Matrix3x3DType values that are also byte
buffered. |
interface |
MatrixByteBuffered4x4DType
The type of
Matrix4x4DType values that are also byte
buffered. |
| Modifier and Type | Class and Description |
|---|---|
class |
MatrixByteBufferedM3x3D
A 3x3 matrix type with
double elements, packed into a ByteBuffer. |
class |
MatrixByteBufferedM4x4D
A 4x4 matrix type with
double elements, packed into a ByteBuffer. |
| Modifier and Type | Interface and Description |
|---|---|
interface |
PMatrixByteBuffered3x3DType<T0,T1>
The type of
PMatrix3x3DType values that are also byte
buffered. |
interface |
PMatrixByteBuffered4x4DType<T0,T1>
The type of
PMatrix4x4DType values that are also byte
buffered. |
| Modifier and Type | Class and Description |
|---|---|
class |
PMatrixByteBufferedM3x3D<T0,T1>
A 3x3 matrix type with
double elements, packed into a ByteBuffer. |
class |
PMatrixByteBufferedM4x4D<T0,T1>
A 4x4 matrix type with
double elements, packed into a ByteBuffer. |
| Modifier and Type | Interface and Description |
|---|---|
interface |
PMatrix3x3DType<T0,T1>
The type of 3x3 matrices with
double elements. |
interface |
PMatrix4x4DType<T0,T1>
The type of 4x4 matrices with
double elements. |
interface |
PMatrixDirect3x3DType<T0,T1>
The type of 3x3 matrices with
double elements that are backed by
direct byte buffers. |
interface |
PMatrixDirect4x4DType<T0,T1>
The type of 4x4 matrices with
double elements that are backed by
direct byte buffers. |
interface |
PMatrixWritable3x3DType<T,U>
'Write' interface to 3x3 matrices with
double elements. |
interface |
PMatrixWritable4x4DType<T,U>
'Write' interface to 4x4 matrices with
double elements. |
| Modifier and Type | Class and Description |
|---|---|
class |
PMatrixDirectM3x3D<T0,T1>
The default implementation of the
PMatrixDirect3x3DType interface. |
class |
PMatrixDirectM4x4D<T0,T1>
The default implementation of the
PMatrixDirect4x4DType interface. |
class |
PMatrixHeapArrayM3x3D<T0,T1>
The default implementation of the
PMatrix3x3DType interface. |
class |
PMatrixHeapArrayM4x4D<T0,T1>
The default implementation of the
PMatrix4x4DType interface. |
| Modifier and Type | Method and Description |
|---|---|
void |
PMatrixI3x3D.makeMatrix3x3DUntyped(MatrixWritable3x3DType m)
Write the current matrix into the given mutable matrix.
|
Copyright © 2016 <code@io7m.com> http://io7m.com