| 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 | Description |
|---|---|---|
static <A,B,C,D,E,F> |
PMatrices2x2F.add(PMatrix2x2F<A,B> m0,
PMatrix2x2F<C,D> m1) |
Add the matrices
m0 and m1. |
PMatrix2x2F<A,B> |
PMatrix2x2F.Builder.build() |
Builds a new
PMatrix2x2F. |
static <A,B> PMatrix2x2F<A,B> |
PMatrices2x2F.identity() |
The identity matrix.
|
static <A,B,C> PMatrix2x2F<A,C> |
PMatrices2x2F.multiply(PMatrix2x2F<B,C> m0,
PMatrix2x2F<A,B> m1) |
Multiply the matrices
m0 and m1. |
static <A,B> PMatrix2x2F<A,B> |
PMatrix2x2F.of(float r0c0,
float r0c1,
float r1c0,
float r1c1) |
Construct a new immutable
PMatrix2x2F instance. |
static <A,B> PMatrix2x2F<A,B> |
PMatrices2x2F.ofColumns(Vector2F c0,
Vector2F c1) |
Construct a matrix from the column vectors
(c0, c1). |
static <A,B> PMatrix2x2F<A,B> |
PMatrices2x2F.ofRows(Vector2F r0,
Vector2F r1) |
Construct a matrix from the row vectors
(r0, r1). |
static <A,B> PMatrix2x2F<A,B> |
PMatrices2x2F.ofScale(double x,
double y) |
Construct a matrix that will scale by
(x, y). |
static <A,B,C,D> PMatrix2x2F<C,D> |
PMatrices2x2F.scale(PMatrix2x2F<A,B> m,
double r) |
Scale the matrix
m by r. |
static <A,B,C,D,E,F> |
PMatrices2x2F.subtract(PMatrix2x2F<A,B> m0,
PMatrix2x2F<C,D> m1) |
Subtract the matrices
m0 and m1. |
static <A,B> PMatrix2x2F<A,B> |
PMatrices2x2F.toParameterized(Matrix2x2F m) |
|
static <A,B> PMatrix2x2F<A,B> |
PMatrices2x2F.transpose(PMatrix2x2F<A,B> m) |
Calculate the transpose of the matrix
m. |
static <A,B> PMatrix2x2F<A,B> |
PMatrices2x2F.withColumn(PMatrix2x2F<A,B> m,
int column,
float r0,
float r1) |
Set the column
column of m to (r0, r1). |
static <A,B> PMatrix2x2F<A,B> |
PMatrices2x2F.withRow(PMatrix2x2F<A,B> m,
int row,
float c0,
float c1) |
Set the row
row of m to (c0, c1). |
static <A,B> PMatrix2x2F<A,B> |
PMatrices2x2F.zero() |
The zero matrix.
|
| Modifier and Type | Method | Description |
|---|---|---|
static <A,B> Optional<PMatrix2x2F<B,A>> |
PMatrices2x2F.invert(PMatrix2x2F<A,B> m) |
Calculate the inverse of the matrix
m. |
| Modifier and Type | Method | Description |
|---|---|---|
static <A,B,C,D,E,F> |
PMatrices2x2F.add(PMatrix2x2F<A,B> m0,
PMatrix2x2F<C,D> m1) |
Add the matrices
m0 and m1. |
static <A,B> Vector2F |
PMatrices2x2F.column0(PMatrix2x2F<A,B> m) |
|
static <A,B> Vector2F |
PMatrices2x2F.column1(PMatrix2x2F<A,B> m) |
|
static <A,B> double |
PMatrices2x2F.determinant(PMatrix2x2F<A,B> m) |
Calculate the determinant of the matrix
m. |
static <A,B> Optional<PMatrix2x2F<B,A>> |
PMatrices2x2F.invert(PMatrix2x2F<A,B> m) |
Calculate the inverse of the matrix
m. |
static <A,B,C> PMatrix2x2F<A,C> |
PMatrices2x2F.multiply(PMatrix2x2F<B,C> m0,
PMatrix2x2F<A,B> m1) |
Multiply the matrices
m0 and m1. |
static <A,B> PVector2F<B> |
PMatrices2x2F.multiplyVectorPost(PMatrix2x2F<A,B> m,
PVector2F<A> v) |
Multiply the vector
v by the matrix m. |
static Vector2F |
PMatrices2x2F.multiplyVectorPost(PMatrix2x2F m,
Vector2F v) |
Multiply the vector
v by the matrix m. |
static <A,B> Vector2F |
PMatrices2x2F.row0(PMatrix2x2F<A,B> m) |
|
static <A,B> Vector2F |
PMatrices2x2F.row1(PMatrix2x2F<A,B> m) |
|
static <A,B,C,D> PMatrix2x2F<C,D> |
PMatrices2x2F.scale(PMatrix2x2F<A,B> m,
double r) |
Scale the matrix
m by r. |
static <A,B,C,D,E,F> |
PMatrices2x2F.subtract(PMatrix2x2F<A,B> m0,
PMatrix2x2F<C,D> m1) |
Subtract the matrices
m0 and m1. |
static <A,B> Matrix2x2F |
PMatrices2x2F.toUnparameterized(PMatrix2x2F<A,B> m) |
|
static <A,B> double |
PMatrices2x2F.trace(PMatrix2x2F<A,B> m) |
Return the trace of the matrix
m. |
static <A,B> PMatrix2x2F<A,B> |
PMatrices2x2F.transpose(PMatrix2x2F<A,B> m) |
Calculate the transpose of the matrix
m. |
static <A,B> PMatrix2x2F<A,B> |
PMatrices2x2F.withColumn(PMatrix2x2F<A,B> m,
int column,
float r0,
float r1) |
Set the column
column of m to (r0, r1). |
static <A,B> PMatrix2x2F<A,B> |
PMatrices2x2F.withRow(PMatrix2x2F<A,B> m,
int row,
float c0,
float c1) |
Set the row
row of m to (c0, c1). |
| Modifier and Type | Method | Description |
|---|---|---|
PMatrix2x2F<A,B> |
PMatrix2x2FGenerator.next() |
| Modifier and Type | Method | Description |
|---|---|---|
static <A,B> net.java.quickcheck.Generator<PMatrix2x2F<A,B>> |
PMatrix2x2FGenerator.create() |
Create a generator initialized with a default component generator.
|
static <A,B> net.java.quickcheck.Generator<PMatrix2x2F<A,B>> |
PMatrix2x2FGenerator.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 | Description |
|---|---|---|
void |
PMatrixStorage2x2Type.setPMatrix2x2F(PMatrix2x2F<A,B> m) |
Set the components from the given matrix.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
PMatrixByteBuffered2x2s16.setPMatrix2x2F(PMatrix2x2F<A,B> m) |
|
void |
PMatrixByteBuffered2x2s32.setPMatrix2x2F(PMatrix2x2F<A,B> m) |
|
void |
PMatrixByteBuffered2x2s64.setPMatrix2x2F(PMatrix2x2F<A,B> m) |
Copyright © 2017 <code@io7m.com> http://io7m.com