Matrix<T> Class
Definition
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
public abstract class Matrix<T> : LinearOperator<T>,
IFormattable, ISummarizable, IEquatable<Matrix<T>>, IDataFrame,
IStructuralEquatable, IStructuralComparable, IEnumerable<Vector<T>>, IEnumerable
- Inheritance
- Object → LinearOperator<T> → Matrix<T>
- Derived
- Implements
- IDataFrame, ISummarizable, IEnumerable<Vector<T>>, IEnumerable, IStructuralComparable, IStructuralEquatable, IEquatable<Matrix<T>>, IFormattable
Type Parameters
- T
Remarks
Matrix<T> is the abstract base class for representing matrices, two-dimensional arrays of numbers. An application can perform operations on matrices using instances of the Matrix<T> class, while descendant classes implement specialized algorithms for specific types of matrices.
The matrix class provides methods and properties for all the common operations on matrices, including arithmetic operations, calculating norms and solving systems of simultaneous linear equations. Various methods allow you to access individual elements as well as rows and columns and submatrices.
Since Matrix<T> is an abstract base class and cannot be instantiated directly. Instead, use one of its derived classes. These are:
Class | Description |
---|---|
Dense | Represents a general, dense, square or rectangular matrix. |
triangular matrix | Represents an upper or lower-triangular matrix, a matrix whose elements below or above the main diagonal are zero. |
symmetric matrix | Represents a square matrix whose elements are symmetrical around the main diagonal. |
Note that the specialized classes exploit certain structural properties to perform many calculations more quickly than the general algorithms implemented by Matrix<T>.
Matrix<T> provides an indexer property. For convenient access to the rows or columns of a matrix or parts thereof, use the [o:GetRow] and [o:GetColumn] methods.
Overloaded versions of the major arithmetic operators are provided for languages that support them. For languages that don't support operator overloading, equivalent static methods are supplied.
Many matrix decompositions exist, serving a variety of purposes. Each of them has its own class. In this release the LU decomposition and the QR decomposition are supported. For positive-definite symmetric matrices, the CholeskyDecomposition<T> is available.
Constructors
Matrix<T>(SerializationInfo, StreamingContext) |
Constructs a new matrix from serialization values.
Obsolete. |
Matrix<T>(Int32, Int32, ArrayAttributes) | Constructs a new matrix of the specified dimensions. |
Matrix<T>(Int32, Int32, TransposeOperation, ArrayAttributes) | Constructs a new matrix of the specified dimensions, taking into account a possible transposition. |
Properties
Can | Gets whether the matrix can be reshaped into a vector or a matrix. |
Column |
Gets the number of columns in the matrix.
(Inherited from LinearOperator<T>) |
Column |
Gets or sets the index of labels for the columns of the matrix.
(Inherited from LinearOperator<T>) Preliminary |
Columns | Gets the ColumnCollection<T> for this instance. |
Columnwise | Enumerates the elements of the matrix column by column. |
Element | Gets a value indicating the order in which the matrix elements are stored. |
Element |
Gets the element type of the matrix.
(Inherited from LinearOperator<T>) |
IsHermitian | Gets a value that indicates if the matrix is Hermitian about the main diagonal. |
IsImmutable | Gets whether the elements of the matrix are immutable. |
IsLower | Gets a value that indicates if all elements of the matrix above the main diagonal are zero. |
IsRead | Gets whether the matrix can be written to. |
IsSparse | Gets a value that indicates whether the matrix is sparse. |
IsSymmetrical | Gets a value that indicates if the matrix is symmetrical about the main diagonal. |
IsUnit | Gets whether all diagonal elements of this instance are equal to 1. |
IsUpper | Gets a value that indicates if all elements of the matrix below the main diagonal are zero. |
Item[Func<T, Boolean>, Int32] | Gets or sets the elements of a column of the matrix that meet the specified condition. |
Item[IEnumerable<Int32>, Range] | Gets or sets the elements of a matrix with the specified row indexes and column range. |
Item[IEnumerable<Int32>, IEnumerable<Int32>] | Gets or sets the elements of a matrix with the specified row and column indexes. |
Item[IEnumerable<Int32>, Int32] | Gets or sets the elements of a column with the specified indexes. |
Item[IEnumerable<Int32>, Range] | Gets or sets the elements of a matrix with the specified row indexes and column range. |
Item[Index, Index] | Gets or sets the specified element in this matrix. |
Item[Index, Range] | Gets or sets the elements of a row of this matrix. |
Item[Int32, Range] | Gets or sets the elements of a row of this matrix. |
Item[Int32, Vector<Boolean>] | Gets or sets the elements of a row of this matrix. |
Item[Int32, IEnumerable<Int32>] | Gets or sets the elements of a row with the specified indexes. |
Item[Int32, Func<T, Boolean>] | Gets or sets the elements of a row of the matrix that meet the specified condition. |
Item[Int32, Int32] | Gets or sets the specified element in this matrix. |
Item[Range, Range] | Gets or sets the elements of a sub-matrix of this matrix. |
Item[Range, IEnumerable<Int32>] | Gets or sets the elements of a matrix with the specified row range and column indexes. |
Item[Range, Int32] | Gets or sets the elements of a column of this matrix. |
Item[Range, IEnumerable<Int32>] | Gets or sets the elements of a matrix with the specified row range and column indexes. |
Item[Range, Index] | Gets or sets the elements of a column of this matrix. |
Item[Range, Range] | Gets or sets the elements of a sub-matrix of this matrix. |
Item[Vector<Boolean>, Int32] | Gets or sets the elements of a column of this matrix. |
Matrix | Gets whether all diagonal elements of this instance are structurally equal to 1. |
Matrix | Gets a value that indicates whether a triangular matrix is upper or lower triangular. |
Nonzero | Gets a collection of the nonzero elements of the matrix. |
Precedence | Infrastructure. This property supports the Numerics.NET infrastructure and is not intended to be used directly from your code. |
Read | If available, gets a read-only 2D span over the elements of the matrix. |
Row |
Gets the number of rows in the matrix.
(Inherited from LinearOperator<T>) |
Row |
Gets or sets the index of labels for the rows of the matrix.
(Inherited from LinearOperator<T>) Preliminary |
Rows | Gets the RowCollection<T> for this instance. |
Rowwise | Enumerates the elements of the matrix column by column. |
Structure | Gets a value that indicates the structure of the sparse matrix. |
Unsafe | If available, gets a 2D span over the elements of the matrix. |
Unsafe | If available, gets a 2D memory block over the elements of the matrix. |
Writable | Enumerates the writable elements of the matrix column by column. |
Methods
Abs | Computes the absolute value of the elements of a matrix. |
Abs | Computes the absolute value of the elements of a matrix in-place. |
Absolute | Returns the value of the element in this matrix that has the largest absolute value. |
Absolute | Returns the value of the element in this matrix that has the smallest absolute value. |
Acos | Computes the inverse cosine of the elements of a matrix. |
Acosh | Computes the inverse hyperbolic cosine of the elements of a matrix. |
Acosh | Computes the inverse hyperbolic cosine of the elements of a matrix in-place. |
Acos | Computes the inverse cosine of the elements of a matrix in-place. |
Add | Adds a scalar to a matrix in-place. |
Add | Adds two matrices. |
Add | Adds a scalar to a matrix. |
Add | Adds another matrix to this matrix in-place. |
Add | Adds a vector broadcast along the specified dimension to this matrix in-place. |
Add | Adds the product of two matrices to this matrix. |
Add | Adds the product of two matrices to this matrix. |
Add | Adds two matrices. |
Add | Adds a matrix and a vector broadcast along the specified dimension. |
Add | Adds a multiple of a matrix to this instance and returns the result. |
Add | Adds two matrices. |
Add | Adds a matrix and a vector broadcast along the specified dimension. |
Add | Adds a scaled matrix to this matrix. |
Add | Adds two matrices. |
Add | Adds a multiple of the scaled product of two matrices to this matrix. |
Add | Adds the scaled product of two matrices to another matrix. |
Aggregate | Applies the specified aggregator to all the columns in the matrix. |
Aggregate | Applies the specified aggregator to all the columns in the matrix. |
Aggregate | Applies the specified aggregator to all the columns in the matrix. |
Aggregate | Applies the specified aggregators to all the columns in the matrix. |
Aggregate | Applies the specified aggregators to all the columns in the matrix. |
Aggregate | Returns a new matrix that aggregates the columns according to the specified grouping. |
Aggregate | Returns a new matrix that aggregates the columns according to the specified grouping. |
Aggregate | Returns a new matrix that aggregates the columns grouped by the specified vector. |
Aggregate | Applies the specified aggregator to all the columns in the matrix, treating rows that contain any missing values as completely missing. |
Aggregate | Applies the specified aggregator to all the columns in the matrix, treating rows that contain any missing values as completely missing. |
Aggregate | Applies the specified aggregator to all the rows in the matrix. |
Aggregate | Applies the specified aggregator to all the rows in the matrix. |
Aggregate | Applies the specified aggregator to all the rows in the matrix. |
Aggregate | Applies the specified aggregators to all the rows in the matrix. |
Aggregate | Applies the specified aggregators to all the rows in the matrix. |
Aggregate | Returns a new matrix that aggregates the rows according to the specified grouping. |
Aggregate | Returns a new matrix that aggregates the rows according to the specified grouping. |
Aggregate | Returns a new matrix that aggregates the rows grouped by the specified row. |
Aggregate | Returns a new matrix that aggregates the rows grouped by the specified row. |
Aggregate | Returns a new matrix that aggregates the rows grouped by the specified vector. |
Aggregate | Applies the specified aggregation function to the values in each row grouped by the specified grouping row. |
AsDense | Returns this matrix as a dense matrix. |
AsHermitian | Returns a matrix as a HermitianMatrix<T>, or null if the matrix is not hermitian. |
AsHermitian | Returns a HermitianMatrix<T> extracted from a part of the matrix. |
Asin | Computes the inverse sine of the elements of a matrix. |
Asinh | Computes the inverse hyperbolic sine of the elements of a matrix. |
Asinh | Computes the inverse hyperbolic sine of the elements of a matrix in-place. |
Asin | Computes the inverse sine of the elements of a matrix in-place. |
AsSymmetric | Returns a matrix as a SymmetricMatrix<T>, or null if the matrix is not symmetrical. |
AsSymmetric | Returns a SymmetricMatrix<T> extracted from a part of the matrix. |
Atan2As | Computes the four-quadrant inverse tangent of the corresponding elements of two matrices. |
Atan2As | Computes the four-quadrant inverse tangent of the elements of a matrix. |
Atan | Computes the inverse tangent of the elements of a matrix. |
Atanh | Computes the inverse hyperbolic tangent of the elements of a matrix. |
Atanh | Computes the inverse hyperbolic tangent of the elements of a matrix in-place. |
Atan | Computes the inverse tangent of the elements of a matrix in-place. |
Ceiling | Computes the smallest integer greater than or equal to the elements of a matrix. |
Ceiling | Computes the smallest integer greater than or equal to the elements of a matrix in-place. |
Clone() | Constructs a deep copy of this matrix. |
Clone( | Makes a copy of this vector using the specified method. |
Clone | Gives this instance its own copy of its elements. |
Clone | Creates a new matrix that has the same number of rows and columns and optionally preserves the writable structure. |
Conjugate | Returns the transpose of this instance. |
Conjugate | Conjugates the elements of a matrix. |
Conjugate | Conjugates all elements of a matrix in-place. |
Conjugate | Returns the transpose of this instance. |
Copy | Copies the elements of this matrix to another matrix. |
Copy | Copies the elements of this matrix to another matrix. |
Copy | Copies the elements of this matrix to another matrix. |
Copy | Copies the elements of this vector to another matrix, if it exists; otherwise clones the matrix using the specified method. |
Cos | Computes the cosine of the elements of a matrix. |
Cosh | Computes the hyperbolic cosine of the elements of a matrix. |
Cosh | Computes the hyperbolic cosine of the elements of a matrix in-place. |
Cos | Computes the cosine of the elements of a matrix in-place. |
Dispose() | Releases unmanaged resources. |
Dispose( | Releases unmanaged resources. |
Divide | Divides a matrix in-place by a scalar. |
Elementwise | Multiplies two vectors element-wise. |
Elementwise | Multiplies two vectors element-wise. |
Elementwise | Divides two matrices element-wise. |
Elementwise | Divides two matrices element-wise. |
Elementwise | Divides this matrix in-place element-wise by another matrix. |
Elementwise | Multiplies two matrices element-wise. |
Elementwise | Multiplies this matrix in-place element-wise by another matrix. |
Elementwise | Raises the elements of a matrix to a power from the corresponding elements in another matrix. |
Elementwise | Raises the elements of a matrix to a power from the corresponding elements in another matrix. |
Elementwise | Raises the elements of a matrix to a power from the corresponding elements in another matrix. |
Elementwise | Raises two vectors element-wise. |
Elementwise | Raises the elements of a vector, broadcast along the specified dimension to the power from the corresponding element in a matrix. |
Elementwise | Raises the element of a matrix to a constant power. |
Elementwise | Raises the element of a matrix to a constant power. |
Elementwise | Raises the elements of a matrix in-place to a constant power. |
Elementwise | Raises the elements of a matrix in-place to a constant power. |
Elementwise | Raises this matrix in-place element-wise by another matrix. |
Elementwise | Raises this matrix in-place element-wise by another matrix. |
Elementwise | Raises this matrix in-place element-wise by a vector broadcast along the specified dimension. |
Ensure | Ensures that the element at the specified index in the vector can be written to. |
Ensure | Ensures that the element at the specified index in the vector can be written to. |
Ensure | Ensures that the element at the specified index in the vector can be written to. |
Equals( | Determines whether the specified Matrix<T> is equal to the current Matrix<T>. |
Equals( |
Determines whether the specified Object
is equal to the current Matrix<T>.
(Overrides Object.Equals(Object)) |
Equals( | Returns whether an object is structurally equal to this instance. |
Equal | Checks if the elements of one matrix are equal to a constant. |
Equal | Checks if the elements of one matrix are equal to the corresponding elements of another matrix. |
Estimate |
Calculates an estimate for the condition
number of this matrix.
(Overrides LinearOperator<T>.EstimateConditionNumber()) |
Exp | Computes the exponential of the elements of a matrix. |
Exp | Computes the exponential of the elements of a matrix in-place. |
Fill | Replaces all missing values in a matrix with the specified value in-place. |
Fill | Replaces all missing values in each row or column in-place with the previous or next non-missing value. |
Fill | Replaces all missing values in each row or column of a matrix in-place with the corresponding value from a vector. |
Fill | Replaces all missing values in a matrix with the specified value. |
Fill | Replaces all missing values in each row or column with the corresponding value from a vector. |
Fill | Replaces all missing values in each row or column with the previous or next non-missing value. |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) |
Floor | Computes the largest integer less than or equal to the elements of a matrix. |
Floor | Computes the largest integer less than or equal to the elements of a matrix in-place. |
Frobenius | Returns the Frobenius norm of this matrix. |
Get<R, C> | Gets the value with the specified key. |
Get | Returns the Cholesky decomposition of the matrix. |
Get | Returns the Cholesky decomposition of the matrix. |
Get | Returns a column vector for this instance that points at the specified column. |
Get | Returns a column vector for this instance that points at the specified column. |
Get | Returns a column vector for this instance starting at the specified column and row and of the specified length. |
Get | Returns a column vector for this instance starting at the specified column and row and of the specified length. |
Get | Returns a column vector for this instance starting at the specified column and row and of the specified length. |
Get | Returns a column vector for this instance starting at the specified column and row and of the specified length. |
Get | Gets the column with the specified column key. |
Get | Returns a column vector for this instance starting at the specified column and row and of the specified length. |
Get | Returns an enumerator that allows you to iterate over the columns of this instance. |
Get | Returns a new matrix that contains only the columns in the specified sequence. |
Get | Returns a matrix that contains only the specified columns of the current matrix. |
Get | Returns a new matrix that contains only the columns in the specified sequence. |
Get | Returns the sums of the elements of each column of the matrix. |
Get | Calculates the condition number of this matrix. |
Get |
Calculates the determinant of this matrix.
(Overrides LinearOperator<T>.GetDeterminant()) |
Get | Gets a vector view of the diagonal elements of this instance. |
Get | Gets a vector view of the specified diagonal of this instance. |
Get | Gets a vector view of the specified diagonal of this instance. |
Get | Returns the eigenvalue decomposition for this matrix. |
Get | Returns the eigenvalue decomposition for this matrix. |
Get | Returns the generalized eigenvalue decomposition for this matrix and another matrix. |
Get | Returns the generalized eigenvalue decomposition for this matrix and another matrix. |
Get | Computes the matrix exponential of a square matrix. |
Get |
Returns the hash code for this instance.
(Overrides Object.GetHashCode()) |
Get | Returns a hash code for this instance. |
Get | Returns the Hermitian indefinite (Bunch-Kaufman) decomposition of the matrix. |
Get | Returns the Hermitian indefinite (Bunch-Kaufman) decomposition of the matrix. |
Get |
Calculates the inverse matrix..
(Inherited from LinearOperator<T>) |
Get |
Calculates the inverse of this matrix.
(Overrides LinearOperator<T>.GetInverse(Boolean)) |
Get | Returns the LQ decomposition of the matrix. |
Get | Returns the LQ decomposition of the matrix. |
Get | Returns the LU decomposition of the matrix. |
Get | Returns the LU decomposition of the matrix. |
Get | Gets the column nearest to the specified column key. |
Get | Returns a new matrix that contains only the columns in the specified sequence. |
Get | Gets the row nearest to the specified row key. |
Get | Returns a new matrix that contains only the rows in the specified sequence. |
Get |
Populates a SerializationInfo with the values
needed to serialize the target object.
(Overrides LinearOperator<T>.GetObjectData(SerializationInfo, StreamingContext)) Obsolete. |
Get | Returns a partitioner that allows you to iterate over the rows of this instance in parallel. |
Get | Returns a partitioner that allows you to iterate over the rows of this instance in parallel. |
Get | Calculates the Moore-Penrose pseudo-inverse of this matrix. |
Get | Returns the QL decomposition of the matrix. |
Get | Returns the QL decomposition of the matrix. |
Get | Returns the QR decomposition of the matrix. |
Get | Returns the QR decomposition of the matrix. |
Get | Returns a row vector for this instance that points at the specified row. |
Get | Returns a row vector for this instance that points at the specified row. |
Get | Returns a row vector for this instance starting at the specified row and column and of the specified length. |
Get | Returns a row vector for this instance over the specified range. |
Get | Returns a row vector for this instance over the specified range. |
Get | Returns a row vector for this instance starting at the specified row and column and of the specified length. |
Get | Returns a row vector for this instance starting at the specified row and column and of the specified length. |
Get | Gets the row with the specified row key. |
Get | Returns a row vector for this instance starting at the specified row and column and of the specified length. |
Get | Returns an enumerator that allows you to iterate over the rows of this instance. |
Get | Returns a matrix containing only the rows in the specified subset. |
Get | Returns a matrix that contains only the specified rows of the current matrix. |
Get | Returns a new matrix that contains only the rows in the specified sequence. |
Get | Returns the sums of the elements of each row of the matrix. |
Get | Returns the RQ decomposition of the matrix. |
Get | Returns the RQ decomposition of the matrix. |
Get | Returns the Schur decomposition for this matrix. |
Get | Returns the Schur decomposition for this matrix. |
Get | Returns the generalized Schur decomposition (QZ decomposition) for this matrix and a secondary matrix. |
Get | Returns the generalized Schur decomposition (QZ decomposition) for this matrix and a secondary matrix. |
Get | Returns the singular value decomposition of the matrix. |
Get | Returns the generalized singular value decomposition of the matrix and another matrix. |
Get | Returns the singular value decomposition of the matrix. |
Get | Returns the generalized singular value decomposition of the matrix and another matrix. |
Get | Returns the singular value decomposition of the matrix. |
Get | Returns the generalized singular value decomposition of the matrix and another matrix. |
Get | Gets a vector containing the singular values of the matrix. |
Get | Returns a sub-matrix of this instance. |
Get | Returns a sub-matrix of this instance. |
Get | Returns a sub-matrix of this instance. |
Get | Returns a sub-matrix of this instance. |
Get | Returns a sub-matrix of this matrix. |
Get | Returns the symmetric indefinite (Bunch-Kaufman) decomposition of the matrix. |
Get | Returns the symmetric indefinite (Bunch-Kaufman) decomposition of the matrix. |
Get | Gets the Type of the current instance. (Inherited from Object) |
Get | Gets the matrix element at the specified position. |
Get |
Gets the value at the specified row and column keys.
Preliminary |
Get |
Infrastructure.
Preliminary |
Greater | Checks if the elements of one matrix are greater than a constant. |
Greater | Checks if the elements of one matrix are greater than the corresponding elements of another matrix. |
Greater | Checks if the elements of one matrix are greater than or equal to a constant. |
Greater | Checks if the elements of one matrix are greater than or equal to the corresponding elements of another matrix. |
Hypot | Computes the square root of the sum of the squared corresponding elements of this matrix and another matrix. |
Infinity | Returns the infinity norm of this matrix. |
IsElement | Returns a value that indicates whether the value of the element at the specified row and column can be changed. |
IsMissing | Returns whether the value at the specified index is missing. |
IsSingular |
Gets whether this matrix is singular.
(Overrides LinearOperator<T>.IsSingular()) |
Least |
Solves the system of linear equations for the specified
right-hand side matrix in the least squares sense.
(Inherited from LinearOperator<T>) |
Least |
Solves the system of linear equations for the specified
right-hand side vector.
(Inherited from LinearOperator<T>) |
Least |
Solves the system of linear equations for the specified
right-hand side dense matrix in the least squares sense and optionally overwrites the
right-hand side with the solution.
(Inherited from LinearOperator<T>) |
Least |
Solves the system of linear equations for the specified
right-hand side dense vector in the least squares sense and optionally
overwrites the right-hand side with the solution.
(Inherited from LinearOperator<T>) |
Least |
Solves a system of equations defined by the matrix and multiple right-hand sides in the least squares sense.
(Overrides LinearOperator<T>.LeastSquaresSolveInto(Matrix<T>, Matrix<T>)) |
Least |
Solves a system of equations defined by the matrix and the specified right-hand side in the least squares sense.
(Overrides LinearOperator<T>.LeastSquaresSolveInto(Vector<T>, Vector<T>)) |
Less | Checks if the elements of one matrix are less than a constant. |
Less | Checks if the elements of one matrix are greater than the corresponding elements of another matrix. |
Less | Checks if the elements of one matrix are less than or equal to a constant. |
Less | Checks if the elements of one matrix are greater than or equal to the corresponding elements of another matrix. |
Less | Checks if the elements of one matrix are greater than or equal to the corresponding elements of another matrix. |
Log10Core | Computes the base 10 logarithm of the elements of a matrix. |
Log10In | Computes the logarithm of the elements of a matrix in-place. |
Log | Computes the logarithm of the elements of a matrix. |
Log | Computes the logarithm of the elements of a matrix. |
Log | Computes the logarithm of the elements of a matrix in-place. |
Log | Computes the logarithm of the elements of a matrix in-place. |
Map | Applies a function to the corresponding elements of two matrices. |
Map | Applies a function to the corresponding elements of a matrix and a vector broadcast along the specified dimension. |
Map | Applies a function to the corresponding elements of two matrices. |
Map | Applies a function to the corresponding elements of a matrix and a vector broadcast along the specified dimension. |
Map | Applies a vector function to each column in a matrix and returns the result as a matrix. |
Map | Applies a function to each column in a matrix in-place. |
Map | Applies a vector function to each column in a matrix and returns the result as a matrix. |
Map | Applies a function in-place to the elements of a matrix. |
Map | Applies a function in-place to the elements of a matrix as the second argument. |
Map | Applies a function to the elements of a matrix. |
Map | Applies a function to the elements of a matrix. |
Map | Applies a vector function to each row in a matrix and returns the result as a matrix. |
Map | Applies a function to each column in a matrix and returns the result as a vector. |
Map | Applies a vector function to each row in a matrix and returns the result as a matrix. |
Max | Returns the value of the largest element in this matrix. |
Max | Returns a matrix whose elements are the maximum of the components of a matrix and a real number. |
Max | Returns a matrix whose elements are the maximums of the components of two vectors. |
Memberwise | Creates a shallow copy of the current Object. (Inherited from Object) |
Min | Returns the value of the smallest element in this matrix. |
Min | Returns a matrix whose elements are the minimum of the components of a matrix and a real number. |
Min | Returns a matrix whose elements are the minimums of the components of two vectors. |
Multiply( | Applies the linear operator to a matrix. (Inherited from LinearOperator<T>) |
Multiply( | Applies the linear operator to a vector. (Inherited from LinearOperator<T>) |
Multiply( | Multiplies a Vector<T> by a Matrix<T>. |
Multiply |
Multiplies the matrix with a vector, adds the scaled result to another scaled
vector, and returns the result.
(Overrides LinearOperator<T>.MultiplyAndAddAsLeftFactorCore(T, Vector<T>, T, TransposeOperation, Vector<T>, Vector<T>)) |
Multiply | Adds the scaled product of two matrices to another matrix. |
Multiply | Adds the scaled product of two matrices to another matrix. |
Multiply | Adds the scaled product of two matrices to another matrix. |
Multiply |
Multiplies a matrix by the linear operator and returns the result.
(Inherited from LinearOperator<T>) |
Multiply |
Multiplies a vector by the linear operator and returns the result.
(Overrides LinearOperator<T>.MultiplyAsLeftCore(TransposeOperation, Vector<T>, Vector<T>)) |
Multiply | Computes the scaled product of two matrices. |
Multiply | Computes the scaled product of two matrices. |
Multiply | Multiplies a matrix by a scalar. |
Multiply | Multiplies a matrix in-place by the specified factor. |
Multiply | Applies the transpose of the linear operator to a matrix. (Inherited from LinearOperator<T>) |
Multiply | Applies the (conjugate) transpose of the linear operator to a vector. (Inherited from LinearOperator<T>) |
Negate | Negates a matrix in-place. |
Norm | Calculates a matrix norm. |
Not | Checks if the elements of one matrix are not equal to a constant. |
Not | Checks if the elements of one matrix are not equal to the corresponding elements of another matrix. |
One | Returns the 1-norm of this matrix. |
Permute | Permutes the columns of the matrix using the specified Permutation. |
Permute | Permutes the rows and columns of the matrix using the specified Permutation. |
Permute | Permutes the rows and columns of the matrix using the specified row and column Permutation. |
Permute | Permutes the rows of the matrix using the specified Permutation. |
Protect | Returns a read-only copy of the matrix. |
Protect | Protects the matrix from changes. |
Rank() |
Returns the numerical rank of a matrix.
(Inherited from LinearOperator<T>) |
Rank( |
Returns the numerical rank of a matrix using the specified tolerance.
(Overrides LinearOperator<T>.Rank(T)) |
Reciprocal | Computes the inverses (reciprocals) of the elements of a matrix. |
Reduce<U> | Applies a function to each row or column in a matrix and returns the result as a vector. |
Reduce | Applies a function to each column in a matrix and returns the result as a vector. |
Reduce | Applies a function to each column in a matrix and returns the result as a vector. |
Reduce | Applies a function to each row in a matrix and returns the result as a vector. |
Reduce | Applies a function to each row in a matrix and returns the result as a vector. |
Remove | Returns a new matrix that has the rows or columns that contain missing values removed. |
Reshape | Returns a matrix that contains the same elements listed columnwise. |
Reshape | Returns a vector that contains the columnwise matrix elements. |
Scale | Scales the columns of the matrix by the values specified by a vector. |
Scale | Scales the columns of the matrix by the values specified by a vector. |
Scale | Scales the rows of the matrix by the values specified by a vector. |
Scale | Scales the rows of the matrix by the values specified by a vector. |
Set | Sets all elements of the matrix to zero. |
Set | Sets all elements of the matrix to the specified value. |
Set | Sets the matrix element at the specified position to the specified value. |
Set |
Sets the value at the specified row and column key value.
Preliminary |
Shallow | Makes a shallow copy of this matrix. |
Sin | Computes the sine of the elements of a matrix. |
Sinh | Computes the hyperbolic sine of the elements of a matrix. |
Sinh | Computes the hyperbolic sine of the elements of a matrix in-place. |
Sin | Computes the sine of the elements of a matrix in-place. |
Solve( |
Solves the system of linear equations for the specified
right-hand side matrix.
(Inherited from LinearOperator<T>) |
Solve( |
Solves the system of linear equations for the specified
right-hand side vector.
(Inherited from LinearOperator<T>) |
Solve( |
Solves the system of linear equations for the specified
right-hand side dense matrix and optionally overwrites the
right-hand side with the solution.
(Inherited from LinearOperator<T>) |
Solve( |
Solves the system of linear equations for the specified
right-hand side dense vector and optionally
overwrites the right-hand side with the solution.
(Inherited from LinearOperator<T>) |
Solve |
Solves a system of equations defined by the matrix and multiple right-hand sides.
(Inherited from LinearOperator<T>) |
Solve |
Solves a system of equations defined by the matrix and the specified right-hand side.
(Inherited from LinearOperator<T>) |
Solve |
Solves a system of equations defined by the matrix and multiple right-hand sides.
(Overrides LinearOperator<T>.SolveInto(TransposeOperation, Matrix<T>, Matrix<T>)) |
Solve |
Solves a system of equations defined by the matrix and the specified right-hand side.
(Overrides LinearOperator<T>.SolveInto(TransposeOperation, Vector<T>, Vector<T>)) |
Solve |
Solves the transposed system of linear equations for the specified
right-hand side matrix.
(Inherited from LinearOperator<T>) |
Solve |
Solves the system of linear equations for the specified
right-hand side vector.
(Inherited from LinearOperator<T>) |
Solve |
Solves the transposed system of linear equations for the specified
right-hand side dense matrix and optionally overwrites the
right-hand side with the solution.
(Inherited from LinearOperator<T>) |
Solve |
Solves the transposed system of linear equations for the specified
right-hand side dense vector and optionally
overwrites the right-hand side with the solution.
(Inherited from LinearOperator<T>) |
Solve |
Solves a system of equations defined by the matrix and multiple right-hand sides.
(Inherited from LinearOperator<T>) |
Solve |
Solves a system of equations defined by the matrix and the specified right-hand side.
(Inherited from LinearOperator<T>) |
Sort | Sorts each column of the matrix in ascending order. |
Sort | Sorts each column of the matrix in the specified order. |
Sort | Sorts each row of the matrix in ascending order. |
Sort | Sorts each row of the matrix in the specified order. |
Sqrt | Computes the square root of the elements of a matrix. |
Sqrt | Computes the square root of the elements of a matrix in-place. |
Subtract | Subtracts a scalar from a matrix. |
Subtract | Subtracts a matrix from a scalar. |
Subtract | Subtracts a scalar value from the elements of this matrix in-place. |
Subtract | Subtracts another matrix from this matrix in-place. |
Subtract | Subtracts a vector broadcast along the specified dimension from this matrix in-place. |
Sum | Returns the sum of the elements of the matrix. |
Summarize() | Returns a summary of the contents of the matrix using the default summary options. |
Summarize( | Returns a summary of the contents of the matrix using the specified options. |
Swap | Swaps the columns with the specified indices. |
Swap | Swaps the rows with the specified indices. |
Tan | Computes the tangent of the elements of a matrix. |
Tanh | Computes the hyperbolic tangent of the elements of a matrix. |
Tanh | Computes the hyperbolic tangent of the elements of a matrix in-place. |
Tan | Computes the tangent of the elements of a matrix in-place. |
ToArray() | Gets the elements of the vector. |
ToArray( | Gets the elements of the matrix. |
ToArray2D | Gets the elements of the matrix. |
ToData | Converts a matrix to a data frame with the same row and column indexes. |
ToData | Converts a matrix to a data frame with the same row and column indexes. |
ToDense | Makes a copy of this instance and returns it as a dense matrix. |
ToHermitian | Returns a new HermitianMatrix<T> extracted from a part of the matrix. |
ToMemory2D | Gets the elements of the matrix. |
ToString() | Returns a string that represents the current object. (Overrides Object.ToString()) |
ToString( | Returns a String representation of this Matrix<T>. |
ToString( | Returns a String representation of this Matrix<T>. |
ToSymmetric | Returns a new SymmetricMatrix<T> extracted from a part of the matrix. |
Trace | Gets the sum of the diagonal elements of this matrix. |
Transpose | Returns the transpose of this instance. |
Try | Ensures that the element at the specified index in the vector can be written to. |
Try | Ensures that the element at the specified index in the vector can be written to. |
Try | Ensures that the element at the specified index in the vector can be written to. |
Two | Returns the two-norm of this matrix. |
Unscale | Unscales the columns of the matrix by the reciprocal of the values specified by a vector. |
Unscale | Unscales the columns of the matrix by the reciprocal of the values specified by a vector. |
Unscale | Unscales the rows of the matrix by the reciprocal of the values specified by a vector. |
Unscale | Unscales the rows of the matrix by the reciprocal of the values specified by a vector. |
Operators
Addition( | Adds a matrix and a scalar. |
Addition( | Adds a matrix and a scalar. |
Addition( | Adds two matrices. |
Addition | Adds a constant to a matrix in place. |
Addition | Adds another matrix to a matrix in place. |
Division( | Divides a matrix by a scalar. |
Division | Divides a matrix by a constant in place. |
Dot | Returns the element-wise quotient of two matrices. |
Dot | Divides the elements of a matrix by the corresponding elements of another matrix. |
Dot | Checks if the elements of one matrix are equal to a constant. |
Dot | Checks if the elements of one matrix are equal to a constant. |
Dot | Checks if the elements of one matrix are equal to the corresponding elements of another matrix. |
Dot | Checks if the elements of one matrix are greater than a constant. |
Dot | Checks if the elements of one matrix are greater than a constant. |
Dot | Checks if the elements of one matrix are greater than the corresponding elements of another matrix. |
Dot | Checks if the elements of one matrix are greater than or equal to a constant. |
Dot | Checks if the elements of one matrix are greater than or equal to a constant. |
Dot | Checks if the elements of one matrix are greater than or equal to the corresponding elements of another matrix. |
Dot | Checks if the elements of one matrix are less than a constant. |
Dot | Checks if the elements of one matrix are less than a constant. |
Dot | Checks if the elements of one matrix are less than the corresponding elements of another matrix. |
Dot | Checks if the elements of one matrix are less than or equal to a constant. |
Dot | Checks if the elements of one matrix are less than or equal to a constant. |
Dot | Checks if the elements of one matrix are less than or equal to the corresponding elements of another matrix. |
Dot | Checks if the elements of one matrix are not equal to a constant. |
Dot | Checks if the elements of one matrix are not equal to a constant. |
Dot | Checks if the elements of one matrix are not equal to the corresponding elements of another matrix. |
Dot | Returns the element-wise product of two matrices. |
Dot | Multiplies the elements of a matrix by the corresponding elements of another matrix. |
Dot | Defines the element-wise exponentiation operator for matrices in F#. |
Dot | Defines the element-wise exponentiation operator for matrices in F#. |
Dot | Defines the element-wise exponentiation operator for matrices in F#. |
Equality( | Returns whether two instances of matrix are equal. |
Inequality( | Returns whether two instances of matrix are not equal. |
Multiply( | Multiplies a matrix by a scalar. |
Multiply( | Multiplies a matrix by a scalar. |
Multiply( | Multiplies two matrix objects. |
Multiply( | Multiplies a Vector<T> by a Matrix<T>. |
Multiply( | Multiplies a Vector<T> by a Matrix<T>. |
Multiply | Multiplies a matrix by a constant in place. |
Subtraction( | Subtracts a matrix from a scalar. |
Subtraction( | Subtracts a scalar from a matrix. |
Subtraction( | Subtracts two matrices. |
Subtraction | Subtracts a constant from a matrix in place. |
Subtraction | Subtracts another matrix from a matrix in place. |
Unary | Negates a matrix. |
Extension Methods
Abs<T> |
Computes the absolute value of the elements of a matrix.
(Defined by Matrix) |
Acos<T> |
Computes the inverse cosine of the elements of a matrix.
(Defined by Matrix) |
Acosh<T> |
Computes the inverse hyperbolic cosine of the elements of a matrix.
(Defined by Matrix) |
Add |
Adds the scaled product of two matrices to another matrix.
(Defined by Matrix) |
Add |
Adds the scaled product of two matrices to another matrix.
(Defined by Matrix) |
Asin<T> |
Computes the inverse sine of the elements of a matrix.
(Defined by Matrix) |
Asinh<T> |
Computes the inverse hyperbolic sine of the elements of a matrix.
(Defined by Matrix) |
Atan<T> |
Computes the inverse tangent of the elements of a matrix.
(Defined by Matrix) |
Atanh<T> |
Computes the inverse hyperbolic tangent of the elements of a matrix.
(Defined by Matrix) |
Ceiling<T> |
Computes the smallest integer greater than or equal to the elements of a matrix.
(Defined by Matrix) |
Column |
Returns a vector containing the means of the columns of a matrix.
(Defined by Stats) |
Conjugate<T> |
Returns the conjugate of a matrix.
(Defined by Matrix) |
Conjugate |
Conjugates the elements of a matrix.
(Defined by Matrix) |
Cos<T> |
Computes the cosine of the elements of a matrix.
(Defined by Matrix) |
Cosh<T> |
Computes the hyperbolic cosine of the elements of a matrix.
(Defined by Matrix) |
Covariance |
Returns the covariance matrix for the columns in a matrix.
(Defined by Stats) |
Exp<T> |
Computes the exponential of the elements of a matrix.
(Defined by Matrix) |
Floor<T> |
Computes the largest integer less than or equal to the elements of a matrix.
(Defined by Matrix) |
Group<Vector<T>> |
Returns a grouping by the unique elements in a sequence.
(Defined by Grouping) |
Group<Vector<T>> |
Returns a grouping by the unique elements in a sequence
using the specified comparer to determine equality.
(Defined by Grouping) |
Log<T> |
Returns a matrix whose elements are the logarithms of the elements of another matrix.
(Defined by Matrix) |
Log10<T> |
Returns a matrix whose elements are the base 10 logarithms of the elements of another matrix.
(Defined by Matrix) |
Make |
Returns a distributed version of a matrix.
(Defined by DistributedExtensions) |
Max<T> |
Returns a matrix whose elements are the maximums of the components of two vectors.
(Defined by Matrix) |
Max<T> |
Returns a matrix whose elements are the maximum of the components of a matrix
and a real number.
(Defined by Matrix) |
Max |
Returns a matrix whose elements are the maximums of the components of two vectors.
(Defined by Matrix) |
Max |
Returns a matrix whose elements are the maximum of the components of a matrix
and a real number.
(Defined by Matrix) |
Min<T> |
Returns a matrix whose elements are the minimums of the components of two vectors.
(Defined by Matrix) |
Min<T> |
Returns a matrix whose elements are the minimum of the components of a matrix
and a real number.
(Defined by Matrix) |
Min |
Returns a matrix whose elements are the minimums of the components of two vectors.
(Defined by Matrix) |
Min |
Returns a matrix whose elements are the minimum of the components of a matrix
and a real number.
(Defined by Matrix) |
Reciprocal<T> |
Returns a matrix whose elements are the inverses (reciprocals) of the components of another matrix.
(Defined by Matrix) |
Reciprocal |
Computes the inverses (reciprocals) of the elements of a matrix.
(Defined by Matrix) |
Row |
Returns a vector containing the means of the rows of a matrix.
(Defined by Stats) |
Sin<T> |
Computes the sine of the elements of a matrix.
(Defined by Matrix) |
Sinh<T> |
Computes the hyperbolic sine of the elements of a matrix.
(Defined by Matrix) |
Sqrt<T> |
Computes the square root of the elements of a matrix.
(Defined by Matrix) |
Standard |
Returns the standard deviation of the elements of a sequence.
(Defined by Stats) |
Sum<Vector<T>> |
Computes the sum of the sequence of values.
(Defined by ArrayMath) |
Sum<Vector<T>, U> |
Computes the sum of the sequence of values that are obtained
by invoking a transform function on each element of the input sequence.
(Defined by ArrayMath) |
Sum<Vector<T>, T2, U> |
Computes the sum of the sequence of values that are obtained
by invoking a transform function on each pair of elements of
the input sequences.
(Defined by ArrayMath) |
Tan<T> |
Computes the tangent of the elements of a matrix.
(Defined by Matrix) |
Tanh<T> |
Computes the hyperbolic tangent of the elements of a matrix.
(Defined by Matrix) |
ToJson<T> |
Returns a string containing a matrix in JSON format.
(Defined by JsonFile) |