| Package | Description |
|---|---|
| com.io7m.jtensors.core.parameterized.matrices |
Parameterized matrix types.
|
| com.io7m.jtensors.generators |
QuickCheck generators.
|
| com.io7m.jtensors.storage.api.parameterized.matrices |
Parameterized matrix storage types.
|
| com.io7m.jtensors.storage.bytebuffered |
Tensor ByteBuffered storage implementations.
|
| Modifier and Type | Method and Description |
|---|---|
static <A,B,C,D,E,F> |
PMatrices4x4D.add(PMatrix4x4D<A,B> m0,
PMatrix4x4D<C,D> m1)
Add the matrices
m0 and m1. |
PMatrix4x4D<A,B> |
PMatrix4x4D.Builder.build()
Builds a new
PMatrix4x4D. |
static <A,B> PMatrix4x4D<A,B> |
PMatrices4x4D.identity()
The identity matrix.
|
static <A,B,C> PMatrix4x4D<A,C> |
PMatrices4x4D.multiply(PMatrix4x4D<B,C> m0,
PMatrix4x4D<A,B> m1)
Multiply the matrices
m0 and m1. |
static <A,B> PMatrix4x4D<A,B> |
PMatrix4x4D.of(double r0c0,
double r0c1,
double r0c2,
double r0c3,
double r1c0,
double r1c1,
double r1c2,
double r1c3,
double r2c0,
double r2c1,
double r2c2,
double r2c3,
double r3c0,
double r3c1,
double r3c2,
double r3c3)
Construct a new immutable
PMatrix4x4D instance. |
static <A,B> PMatrix4x4D<A,B> |
PMatrices4x4D.ofAxisAngle(double axis_x,
double axis_y,
double axis_z,
double angle)
Construct a matrix that will rotate by
angle radians around the axis (x, y, z). |
static <A,B> PMatrix4x4D<A,B> |
PMatrices4x4D.ofColumns(Vector4D c0,
Vector4D c1,
Vector4D c2,
Vector4D c3)
Construct a matrix from the column vectors
(c0, c1, c2, c3). |
static <A,B> PMatrix4x4D<A,B> |
PMatrices4x4D.ofRows(Vector4D r0,
Vector4D r1,
Vector4D r2,
Vector4D r3)
Construct a matrix from the row vectors
(r0, r1, r2, r3). |
static <A,B> PMatrix4x4D<A,B> |
PMatrices4x4D.ofScale(double x,
double y,
double z)
Construct a matrix that will scale by
(x, y, z). |
static <A,B> PMatrix4x4D<A,B> |
PMatrices4x4D.ofTranslation(double x,
double y,
double z)
Construct a matrix that will translate by
(x, y, z). |
static <A,B,C,D> PMatrix4x4D<C,D> |
PMatrices4x4D.scale(PMatrix4x4D<A,B> m,
double r)
Scale the matrix
m by r. |
static <A,B,C,D,E,F> |
PMatrices4x4D.subtract(PMatrix4x4D<A,B> m0,
PMatrix4x4D<C,D> m1)
Subtract the matrices
m0 and m1. |
static <A,B> PMatrix4x4D<A,B> |
PMatrices4x4D.transpose(PMatrix4x4D<A,B> m)
Calculate the transpose of the matrix
m. |
static <A,B> PMatrix4x4D<A,B> |
PMatrices4x4D.withColumn(PMatrix4x4D<A,B> m,
int column,
double r0,
double r1,
double r2,
double r3)
Set the column
column of m to (r0, r1, r2, r3). |
static <A,B> PMatrix4x4D<A,B> |
PMatrices4x4D.withRow(PMatrix4x4D<A,B> m,
int row,
double c0,
double c1,
double c2,
double c3)
Set the row
row of m to (c0, c1, c2, c3). |
static <A,B> PMatrix4x4D<A,B> |
PMatrices4x4D.zero()
The zero matrix.
|
| Modifier and Type | Method and Description |
|---|---|
static <A,B> Optional<PMatrix4x4D<B,A>> |
PMatrices4x4D.invert(PMatrix4x4D<A,B> m)
Calculate the inverse of the matrix
m. |
| Modifier and Type | Method and Description |
|---|---|
static <A,B,C,D,E,F> |
PMatrices4x4D.add(PMatrix4x4D<A,B> m0,
PMatrix4x4D<C,D> m1)
Add the matrices
m0 and m1. |
static <A,B,C,D,E,F> |
PMatrices4x4D.add(PMatrix4x4D<A,B> m0,
PMatrix4x4D<C,D> m1)
Add the matrices
m0 and m1. |
static <A,B> Vector4D |
PMatrices4x4D.column0(PMatrix4x4D<A,B> m) |
static <A,B> Vector4D |
PMatrices4x4D.column1(PMatrix4x4D<A,B> m) |
static <A,B> Vector4D |
PMatrices4x4D.column2(PMatrix4x4D<A,B> m) |
static <A,B> Vector4D |
PMatrices4x4D.column3(PMatrix4x4D<A,B> m) |
static <A,B> double |
PMatrices4x4D.determinant(PMatrix4x4D<A,B> m)
Calculate the determinant of the matrix
m. |
static <A,B> Optional<PMatrix4x4D<B,A>> |
PMatrices4x4D.invert(PMatrix4x4D<A,B> m)
Calculate the inverse of the matrix
m. |
static <A,B,C> PMatrix4x4D<A,C> |
PMatrices4x4D.multiply(PMatrix4x4D<B,C> m0,
PMatrix4x4D<A,B> m1)
Multiply the matrices
m0 and m1. |
static <A,B,C> PMatrix4x4D<A,C> |
PMatrices4x4D.multiply(PMatrix4x4D<B,C> m0,
PMatrix4x4D<A,B> m1)
Multiply the matrices
m0 and m1. |
static <A,B> PVector4D<B> |
PMatrices4x4D.multiplyVectorPost(PMatrix4x4D<A,B> m,
PVector4D<A> v)
Multiply the vector
v by the matrix m. |
static Vector4D |
PMatrices4x4D.multiplyVectorPost(PMatrix4x4D m,
Vector4D v)
Multiply the vector
v by the matrix m. |
static <A,B> Vector4D |
PMatrices4x4D.row0(PMatrix4x4D<A,B> m) |
static <A,B> Vector4D |
PMatrices4x4D.row1(PMatrix4x4D<A,B> m) |
static <A,B> Vector4D |
PMatrices4x4D.row2(PMatrix4x4D<A,B> m) |
static <A,B> Vector4D |
PMatrices4x4D.row3(PMatrix4x4D<A,B> m) |
static <A,B,C,D> PMatrix4x4D<C,D> |
PMatrices4x4D.scale(PMatrix4x4D<A,B> m,
double r)
Scale the matrix
m by r. |
static <A,B,C,D,E,F> |
PMatrices4x4D.subtract(PMatrix4x4D<A,B> m0,
PMatrix4x4D<C,D> m1)
Subtract the matrices
m0 and m1. |
static <A,B,C,D,E,F> |
PMatrices4x4D.subtract(PMatrix4x4D<A,B> m0,
PMatrix4x4D<C,D> m1)
Subtract the matrices
m0 and m1. |
static <A,B> double |
PMatrices4x4D.trace(PMatrix4x4D<A,B> m)
Return the trace of the matrix
m. |
static <A,B> PMatrix4x4D<A,B> |
PMatrices4x4D.transpose(PMatrix4x4D<A,B> m)
Calculate the transpose of the matrix
m. |
static <A,B> PMatrix4x4D<A,B> |
PMatrices4x4D.withColumn(PMatrix4x4D<A,B> m,
int column,
double r0,
double r1,
double r2,
double r3)
Set the column
column of m to (r0, r1, r2, r3). |
static <A,B> PMatrix4x4D<A,B> |
PMatrices4x4D.withRow(PMatrix4x4D<A,B> m,
int row,
double c0,
double c1,
double c2,
double c3)
Set the row
row of m to (c0, c1, c2, c3). |
| Modifier and Type | Method and Description |
|---|---|
PMatrix4x4D<A,B> |
PMatrix4x4DGenerator.next() |
| Modifier and Type | Method and Description |
|---|---|
static <A,B> net.java.quickcheck.Generator<PMatrix4x4D<A,B>> |
PMatrix4x4DGenerator.create()
Create a generator initialized with a default component generator.
|
static <A,B> net.java.quickcheck.Generator<PMatrix4x4D<A,B>> |
PMatrix4x4DGenerator.createNormal()
Create a generator initialized with a default component generator that only
produces values in the range
[-1.0, 1.0]. |
| Modifier and Type | Method and Description |
|---|---|
void |
PMatrixStorage4x4Type.setPMatrix4x4D(PMatrix4x4D<A,B> m)
Set the components from the given matrix.
|
| Modifier and Type | Method and Description |
|---|---|
void |
PMatrixByteBuffered4x4s64.setPMatrix4x4D(PMatrix4x4D<A,B> m) |
void |
PMatrixByteBuffered4x4s32.setPMatrix4x4D(PMatrix4x4D<A,B> m) |
void |
PMatrixByteBuffered4x4s16.setPMatrix4x4D(PMatrix4x4D<A,B> m) |
Copyright © 2017 <code@io7m.com> http://io7m.com