Matrix<T>

Models & Types · AiDotNet.Tensors.LinearAlgebra

No summary documentation available yet.

Inheritance: MatrixBase<T> → Matrix<T>

Implements: IEnumerable<T>

Constructors

Constructor Summary
Matrix(IEnumerable<IEnumerable<T>> values)
Matrix(T[] data)
Matrix(int rows, int columns)

Methods

Method Summary
IEnumerable<Vector<T>> GetColumns()
IEnumerable<Vector<T>> GetRows()
IEnumerator<T> GetEnumerator()
Matrix<T> Add(MatrixBase<T> other)
Matrix<T> Add(Tensor<T> tensor)
Matrix<T> BlockDiagonal(Matrix<T>[] matrices)
Matrix<T> Clone()
Matrix<T> CreateDefault(int rows, int columns, T defaultValue)
Matrix<T> CreateDiagonal(Vector<T> diagonal)
Matrix<T> CreateFromVector(Vector<T> vector)
Matrix<T> CreateIdentity(int size)
Matrix<T> CreateIdentityMatrix(int size)
Matrix<T> CreateMatrix(int rows, int columns)
Matrix<T> CreateOnes(int rows, int cols)
Matrix<T> CreateRandom(Random random, int rows, int columns)
Matrix<T> CreateRandom(int rows, int columns)
Matrix<T> CreateRandom(int rows, int columns, double min, double max)
Matrix<T> CreateZeros(int rows, int cols)
Matrix<T> Deserialize(byte[] data)
Matrix<T> Divide(Matrix<T> other)
Matrix<T> Divide(T scalar)
Matrix<T> Empty()
Matrix<T> FromColumnVectors(IEnumerable<IEnumerable<T>> vectors)
Matrix<T> FromColumns(IEnumerable<T>[] vectors)
Matrix<T> FromMemory(Memory<T> memory, int rows, int cols)
Matrix<T> FromRowVectors(IEnumerable<IEnumerable<T>> vectors)
Matrix<T> FromRows(IEnumerable<T>[] vectors)
Matrix<T> FromVector(Vector<T> vector)
Matrix<T> GetRows(IEnumerable<int> indices)
Matrix<T> GetSubMatrix(int startRow, int startColumn, int rowCount, int columnCount)
Matrix<T> Multiply(MatrixBase<T> other)
Matrix<T> Multiply(T scalar)
Matrix<T> Ones(int rows, int cols)
Matrix<T> OuterProduct(Vector<T> a, Vector<T> b)
Matrix<T> PointwiseDivide(Matrix<T> other)
Matrix<T> RemoveColumn(int columnIndex)
Matrix<T> RemoveRow(int rowIndex)
Matrix<T> Slice(int startRow, int rowCount)
Matrix<T> Subtract(Matrix<T> other)
Matrix<T> Subtract(MatrixBase<T> other)
Matrix<T> Transform(Func<T, int, int, T> transformer)
Matrix<T> Transpose()
Matrix<T> Zeros(int rows, int cols)
Matrix<T> op_Addition(Matrix<T> left, Matrix<T> right)
Matrix<T> op_Division(Matrix<T> left, Matrix<T> right)
Matrix<T> op_Division(Matrix<T> matrix, T scalar)
Matrix<T> op_Multiply(Matrix<T> left, Matrix<T> right)
Matrix<T> op_Multiply(Matrix<T> matrix, T scalar)
Matrix<T> op_Subtraction(Matrix<T> left, Matrix<T> right)
T[] GetColumnAsArray(int columnIndex)
Vector<T> GetColumn(int col)
Vector<T> GetColumnSegment(int columnIndex, int startRow, int length)
Vector<T> GetRowSegment(int rowIndex, int startColumn, int length)
Vector<T> Multiply(Vector<T> vector)
Vector<T> RowWiseMax()
Vector<T> RowWiseSum()
Vector<T> ToColumnVector()
Vector<T> ToRowVector()
Vector<T> op_Multiply(Matrix<T> matrix, Vector<T> vector)
byte[] Serialize()
void DivideInPlace(T scalar)
void SetSubMatrix(int startRow, int startColumn, Matrix<T> subMatrix)