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