| Package | Description |
|---|---|
| com.io7m.jtensors |
| Modifier and Type | Class and Description |
|---|---|
class |
MatrixM2x2F
A 2x2 mutable matrix type with single precision elements.
|
| Modifier and Type | Method and Description |
|---|---|
static MatrixM2x2F |
MatrixM2x2F.add(MatrixReadable2x2FType m0,
MatrixReadable2x2FType m1,
MatrixM2x2F out)
Elementwise add of matrices
m0 and m1. |
static MatrixM2x2F |
MatrixM2x2F.addInPlace(MatrixM2x2F m0,
MatrixReadable2x2FType m1)
Elementwise add of matrices
m0 and m1,
returning the result in m0. |
static MatrixM2x2F |
MatrixM2x2F.addRowScaled(MatrixReadable2x2FType m,
int row_a,
int row_b,
int row_c,
float r,
MatrixM2x2F 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 MatrixM2x2F |
MatrixM2x2F.copy(MatrixReadable2x2FType input,
MatrixM2x2F output)
Copy the contents of the matrix
input to the matrix
output, completely replacing all elements. |
static float |
MatrixM2x2F.determinant(MatrixReadable2x2FType m)
Calculate the determinant of the matrix
m. |
static MatrixM2x2F |
MatrixM2x2F.exchangeRows(MatrixReadable2x2FType m,
int row_a,
int row_b,
MatrixM2x2F out)
Exchange two rows
row_a and row row_b of the
matrix m, saving the exchanged rows to out. |
static float |
MatrixM2x2F.get(MatrixReadable2x2FType m,
int row,
int column) |
static com.io7m.jfunctional.OptionType<MatrixM2x2F> |
MatrixM2x2F.invert(MatrixReadable2x2FType m,
MatrixM2x2F out)
Calculate the inverse of the matrix
m, saving the resulting
matrix to out. |
static MatrixM2x2F |
MatrixM2x2F.multiply(MatrixM2x2F m0,
MatrixReadable2x2FType m1)
Multiply the matrix
m0 with the matrix m1,
writing the result to m0. |
static MatrixM2x2F |
MatrixM2x2F.multiply(MatrixReadable2x2FType m0,
MatrixReadable2x2FType m1,
MatrixM2x2F out)
Multiply the matrix
m0 with the matrix m1,
writing the result to out. |
static VectorM2F |
MatrixM2x2F.multiplyVector2F(MatrixReadable2x2FType m,
VectorReadable2FType v,
VectorM2F out)
Multiply the matrix
m with the vector v,
writing the resulting vector to out. |
static VectorM2F |
MatrixM2x2F.row(MatrixReadable2x2FType m,
int row,
VectorM2F out) |
static MatrixM2x2F |
MatrixM2x2F.scale(MatrixReadable2x2FType m,
float r,
MatrixM2x2F out)
Scale all elements of the matrix
m by the scaling value
r, saving the result in out. |
static MatrixM2x2F |
MatrixM2x2F.scaleRow(MatrixReadable2x2FType m,
int row,
float r,
MatrixM2x2F out)
Scale row
r of the matrix m by r,
saving the result to row r of out. |
static float |
MatrixM2x2F.trace(MatrixReadable2x2FType m)
Return the trace of the matrix
m. |
static MatrixM2x2F |
MatrixM2x2F.transpose(MatrixReadable2x2FType m,
MatrixM2x2F out)
Transpose the given matrix
m, writing the resulting matrix
to out. |
| Constructor and Description |
|---|
MatrixM2x2F(MatrixReadable2x2FType source)
Construct a new matrix from the given source matrix.
|
Copyright © 2014 <code@io7m.com> http://io7m.com