Matrix

行列を表すstructです.

Constructors

this
this(T[][] arr)

Members

Aliases

MatrixType
alias MatrixType = Matrix!(T, RowSize, ColSize)
Undocumented in source.
VectorType
alias VectorType = armos.math.Vector!(T, ColSize)
Undocumented in source.
elementType
alias elementType = T
Undocumented in source.

Functions

array
T[RowSize * ColSize] array()
determinant
T determinant()
determinant
T determinant()
Undocumented in source. Be warned that the author may not have intended to support it.
inverse
MatrixType inverse()
Undocumented in source. Be warned that the author may not have intended to support it.
opAdd
MatrixType opAdd(MatrixType r)
opAdd
MatrixType opAdd(T v)
opCast
CastedType opCast()

自身を別の型のMatrixへキャストしたものを返します.キャスト後の型は元のMatrixのRowSize, ColSizeが等しくある必要があります.

opDiv
MatrixType opDiv(T v)
Undocumented in source. Be warned that the author may not have intended to support it.
opIndex
VectorType opIndex(size_t index)
opIndex
VectorType opIndex(size_t index)
opMul
MatrixType opMul(T v)
opMul
MatrixType opMul(MatrixType mat_r)
opMul
VectorType opMul(VectorType vec_r)
opNeg
MatrixType opNeg()
opSub
MatrixType opSub(MatrixType r)
opSub
MatrixType opSub(T v)
setColumnVector
void setColumnVector(int column, VectorType vec)
setMatrix
MatrixType setMatrix(M mat, int offsetR, int offsetC)
setRowVector
void setRowVector(int row, VectorType vec)

Static functions

identity
MatrixType identity()
Undocumented in source. Be warned that the author may not have intended to support it.
zero
MatrixType zero()
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

colSize
enum int colSize;
elements
VectorType[RowSize] elements;
Undocumented in source.
rowSize
enum int rowSize;
size
enum int size;

Meta