IGLib
1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
|
Describes the form of all matrices. More...
Public Member Functions | |
virtual void | Fill (Func< int, int, T > f) |
Sets all matrix entries according to a supplied fill function. More... | |
virtual T[,] | ToArray () |
Copies the matrix into an array. More... | |
Protected Member Functions | |
AnyMatrix () | |
Properties | |
abstract int | RowCount [get] |
Gets the number of matrix rows. More... | |
abstract int | ColumnCount [get] |
Gets the number of matrix columns. More... | |
abstract T | this[int r, int c] [get, set] |
Gets or sets the value of a matrix entry. More... | |
bool | IsReadOnly [get, set] |
Gets a flag indicating whether the matrix is read-only. More... | |
Private Attributes | |
bool | isReadOnly = false |
Describes the form of all matrices.
T | The type of the matrix entries. |
|
inlineprotected |
|
inlinevirtual |
Sets all matrix entries according to a supplied fill function.
f | The fill function. |
Referenced by Test.MultiExtremumTest.Vardim().
|
inlinevirtual |
Copies the matrix into an array.
The output array is independent of the matrix. Changes to its elements will not change the elements of the matrix, and changes to the matrix elements will not be reflected in the array.
Reimplemented in Meta.Numerics.Matrices.VectorBase.
Referenced by Test.RectangularMatrixTest.MatrixArrayConversion().
|
private |
|
get |
Gets the number of matrix rows.
Referenced by Meta.Numerics.Matrices.AnyRectangularMatrix.InternalEquals(), Meta.Numerics.Matrices.RowVector.operator*(), Meta.Numerics.Matrices.AnyRectangularMatrix.operator*(), Meta.Numerics.Matrices.AnyRectangularMatrix.operator+(), Meta.Numerics.Matrices.AnyRectangularMatrix.operator-(), Test.SquareMatrixTest.PrintMatrix(), Test.RectangularMatrixTest.WriteMatrix(), and FutureTest.FutureTest.WriteMatrix().
|
get |
Gets the number of matrix columns.
Referenced by Meta.Numerics.Matrices.AnyRectangularMatrix.InternalEquals(), Meta.Numerics.Matrices.RowVector.operator*(), Meta.Numerics.Matrices.AnyRectangularMatrix.operator*(), Meta.Numerics.Matrices.AnyRectangularMatrix.operator+(), Meta.Numerics.Matrices.AnyRectangularMatrix.operator-(), Test.SquareMatrixTest.PrintMatrix(), Test.RectangularMatrixTest.WriteMatrix(), and FutureTest.FutureTest.WriteMatrix().
|
getset |
Gets or sets the value of a matrix entry.
r | The (zero-based) row index. |
c | The (zero-based) column index. |
ArgumentOutOfRangeException | r or c is outside the valid range. |
|
getset |
Gets a flag indicating whether the matrix is read-only.
Although you can't change the values in a read-only matrix, you can make a writable copy of it.