Extreme Optimization™: Complexity made simple.

Math and Statistics
Libraries for .NET

  • Home
  • Features
    • Math Library
    • Vector and Matrix Library
    • Statistics Library
    • Performance
    • Usability
  • Documentation
    • Introduction
    • Math Library User's Guide
    • Vector and Matrix Library User's Guide
    • Data Analysis Library User's Guide
    • Statistics Library User's Guide
    • Reference
  • Resources
    • Downloads
    • QuickStart Samples
    • Sample Applications
    • Frequently Asked Questions
    • Technical Support
  • Blog
  • Order
  • Company
    • About us
    • Testimonials
    • Customers
    • Press Releases
    • Careers
    • Partners
    • Contact us
Introduction
Deployment Guide
Nuget packages
Configuration
Using Parallelism
Expand Mathematics Library User's GuideMathematics Library User's Guide
Expand Vector and Matrix Library User's GuideVector and Matrix Library User's Guide
Expand Data Analysis Library User's GuideData Analysis Library User's Guide
Expand Statistics Library User's GuideStatistics Library User's Guide
Expand Data Access Library User's GuideData Access Library User's Guide
Expand ReferenceReference
DenseMatrix ClassExtreme Optimization Numerical Libraries for .NET Professional
Represents a general, dense, square or rectangular matrix.
Inheritance Hierarchy

SystemObject
  Extreme.Mathematics.LinearAlgebraLinearOperator
    Extreme.MathematicsMatrix
      Extreme.Mathematics.LinearAlgebraDenseMatrix

Namespace: Extreme.Mathematics.LinearAlgebra
Assembly: Extreme.Numerics.Net40 (in Extreme.Numerics.Net40.dll) Version: 6.0.16073.0 (6.0.16312.0)
Syntax

C#
VB
C++
F#
Copy
[SerializableAttribute]
public class DenseMatrix : Matrix, 
	IDoubleStorage, ICloneable, ISerializable, IResizableMatrix
<SerializableAttribute>
Public Class DenseMatrix
	Inherits Matrix
	Implements IDoubleStorage, ICloneable, ISerializable, IResizableMatrix
[SerializableAttribute]
public ref class DenseMatrix : public Matrix, 
	IDoubleStorage, ICloneable, ISerializable, IResizableMatrix
[<SerializableAttribute>]
type DenseMatrix =  
    class
        inherit Matrix
        interface IDoubleStorage
        interface ICloneable
        interface ISerializable
        interface IResizableMatrix
    end

The DenseMatrix type exposes the following members.

Constructors

  NameDescription
Public methodDenseMatrix(Double) Obsolete.
Constructs a new dense matrix from a two-dimensional array.
Public methodDenseMatrix(Int32, Int32) Obsolete.
Constructs a new dense matrix with the specified number of rows and columns
Protected methodDenseMatrix(SerializationInfo, StreamingContext)
Constructs a new dense matrix from serialization values.
Public methodDenseMatrix(Int32, Int32, MatrixElementOrder)
Constructs a new dense matrix with the specified number of rows and columns
Public methodDenseMatrix(Int32, Int32, Double) Obsolete.
Constructs a new dense matrix with the specified number of rows and columns whose elements are all equal to the specified value.
Public methodDenseMatrix(Int32, Int32, Double) Obsolete.
Constructs a new dense matrix of the specified dimensions using the specified values array.
Public methodDenseMatrix(Int32, Int32, FuncInt32, Int32, Double) Obsolete.
Constructs a new dense matrix with the specified number of rows and columns whose elements are all equal to the specified value.
Public methodDenseMatrix(Int32, Int32, Double, MatrixElementOrder) Obsolete.
Constructs a new dense matrix of the specified dimensions using the specified values array.
Public methodDenseMatrix(Int32, Int32, Double, Boolean) Obsolete.
Constructs a new dense matrix of the specified dimensions using the specified values array.
Public methodDenseMatrix(Int32, Int32, Double, MatrixElementOrder, Boolean) Obsolete.
Constructs a new dense matrix of the specified dimensions using the specified values array.
Public methodDenseMatrix(Int32, Int32, Double, Int32, Int32, MatrixElementOrder) Obsolete.
Constructs a new dense matrix.
Top
Properties

  NameDescription
Public propertyCanReshape
Gets whether the matrix can be reshaped into a vector or a matrix.
(Overrides MatrixCanReshape.)
Public propertyColumnCount
Gets the number of columns in the matrix.
(Inherited from Matrix.)
Public propertyColumns
Gets the ColumnCollection for this instance.
(Inherited from Matrix.)
Public propertyColumnwiseComponents
Enumerates the elements of the matrix column by column.
(Overrides MatrixColumnwiseComponents.)
Public propertyElementOrder
Gets a value indicating the order in which the matrix elements are stored.
(Overrides MatrixElementOrder.)
Public propertyIsLowerTriangular
Gets a value that indicates if all elements of the matrix above the main diagonal are zero.
(Inherited from Matrix.)
Public propertyIsSparse
Gets whether the matrix is sparse.
(Overrides MatrixIsSparse.)
Public propertyIsSymmetrical
Gets a value that indicates if the matrix is symmetrical about the main diagonal.
(Inherited from Matrix.)
Public propertyIsUnitDiagonal
Gets a value indicating whether all diagonal elements of this instance are equal to 1.
(Inherited from Matrix.)
Public propertyIsUpperTriangular
Gets a value that indicates if all elements of the matrix below the main diagonal are zero.
(Inherited from Matrix.)
Public propertyItemIEnumerableInt32, Range
Gets or sets the components of a matrix with the specified row indexes and column range.
(Inherited from Matrix.)
Public propertyItemIEnumerableInt32, IEnumerableInt32
Gets or sets the components of a matrix with the specified row and column indexes.
(Inherited from Matrix.)
Public propertyItemIEnumerableInt32, Int32
Gets or sets the components of a column with the specified indexes.
(Inherited from Matrix.)
Public propertyItemFuncDouble, Boolean, Int32
Gets or sets the components of a column that match the specified condition.
(Inherited from Matrix.)
Public propertyItemInt32, Range
Gets or sets the components of a row of this matrix.
(Inherited from Matrix.)
Public propertyItemInt32, IEnumerableInt32
Gets or sets the components of a row with the specified indexes.
(Inherited from Matrix.)
Public propertyItemInt32, FuncDouble, Boolean
Gets or sets the components of a row that match the specified condition.
(Inherited from Matrix.)
Public propertyItemInt32, Int32
Gets or sets the specified element in this matrix.
(Inherited from Matrix.)
Public propertyItemRange, Range
Gets or sets the components of a submatrix of this matrix.
(Inherited from Matrix.)
Public propertyItemRange, IEnumerableInt32
Gets or sets the components of a matrix with the specified row range and column indexes.
(Inherited from Matrix.)
Public propertyItemRange, Int32
Gets or sets the components of a column of this matrix.
(Inherited from Matrix.)
Public propertyNonzeroComponents
Gets a collection of the nonzero elements of the matrix.
(Inherited from Matrix.)
Public propertyRowCount
Gets the number of rows in the matrix.
(Inherited from Matrix.)
Public propertyRows
Gets the RowCollection for this instance.
(Inherited from Matrix.)
Public propertyRowwiseComponents
Enumerates the elements of the matrix row by row.
(Overrides MatrixRowwiseComponents.)
Public propertyStorageArray
Gets the Double array that stores the values for the instance.
Public propertyStorageIncrement
Gets the increment between successive elements of this instance in the StorageArray.
Public propertyStorageOffset
Gets the index of the first element of this instance in the StorageArray.
Public propertyWritableComponents
Enumerates the writable elements of the matrix column by column.
(Inherited from Matrix.)
Top
Methods

  NameDescription
Public methodAbsoluteMax
Returns the value of the component in this matrix that has the largest absolute value.
(Inherited from Matrix.)
Public methodAbsoluteMin
Returns the value of the component in this matrix that has the smallest absolute value.
(Inherited from Matrix.)
Public methodAdd(Double) Obsolete.
Adds a constant to a matrix and returns the result.
(Inherited from Matrix.)
Public methodAdd(Matrix)
Adds a Matrix to this DenseMatrix.
Public methodAdd(Double, Matrix)
Adds a multiple of a Matrix to this DenseMatrix.
Public methodStatic memberAdd(DenseMatrix, DenseMatrix)
Adds two dense matrix objects and returns the result.
Public methodStatic memberAdd(DenseMatrix, Double, DenseMatrix, DenseMatrix)
Adds two DenseMatrix objects and stores the result in a third DenseMatrix.
Public methodAdd(TransposeOperation, TransposeOperation, Double, Matrix)
Adds a multiple of a Matrix to this Matrix and returns the result.
(Inherited from Matrix.)
Public methodAddInPlace
Adds a constant to a matrix.
(Inherited from Matrix.)
Public methodAddOuterProduct(Vector)
Updates a matrix with the outer product of a vector and itself.
Public methodAddOuterProduct(Double, Vector)
Updates a matrix with the scaled outer product of a vector and itself.
Public methodAddOuterProduct(Double, Vector, Vector)
Updates a matrix with the scaled outer product of two vectors.
Public methodAddProduct(DenseMatrix, DenseMatrix)
Adds the product of two DenseMatrix objects to this DenseMatrix.
Public methodAddProduct(Double, DenseMatrix, DenseMatrix)
Adds a multiple of the product of two DenseMatrix object to this DenseMatrix.
Public methodAddProductToVector
Multiplies a Vector by this Matrix and stores the result in a second Vector.
(Overrides MatrixAddProductToVector(Double, Vector, TransposeOperation, Double, DenseVector).)
Public methodApply(FuncDouble, Double)
Applies a function to the elements of a matrix.
(Inherited from Matrix.)
Public methodApplyInPlace(FuncDouble, Double)
Applies a function to the elements of a matrix.
(Inherited from Matrix.)
Public methodApplyInPlace(Matrix, FuncDouble, Double)
Applies the specified function to each element in a matrix.
(Inherited from Matrix.)
Public methodApplyToColumns(FuncVector, Double)
Applies a function to each column in a matrix and returns the result as a vector.
(Inherited from Matrix.)
Public methodApplyToColumns(FuncVector, Vector, Vector)
Applies a function to each column in a matrix and returns the result as a vector.
(Inherited from Matrix.)
Public methodApplyToRows(FuncVector, Double)
Applies a function to each column in a matrix and returns the result as a vector.
(Inherited from Matrix.)
Public methodApplyToRows(FuncVector, Vector, Vector)
Applies a function to each column in a matrix and returns the result as a vector.
(Inherited from Matrix.)
Public methodAsDenseMatrix
Returns this matrix as a dense matrix.
(Inherited from Matrix.)
Public methodAsGeneralMatrix Obsolete.
Returns this matrix as a dense matrix.
(Inherited from Matrix.)
Public methodClone
Constructs a deep copy of this matrix.
(Inherited from Matrix.)
Public methodClone(CloningMethod)
Makes a copy of this vector using the specified method.
(Inherited from Matrix.)
Public methodCloneData
Gives this instance its own copy of its elements.
(Overrides MatrixCloneData.)
Public methodCloneData(MatrixElementOrder)
Gives this instance its own copy of its elements.
Public methodCloneShape
Creates a new matrix that has the same number of rows and columns and optionally preserves the writable structure.
(Inherited from Matrix.)
Public methodComponentwiseDivide(Matrix) Obsolete.
Divides the components of this instance by the corresponding components of another matrix.
(Inherited from Matrix.)
Public methodComponentwiseMultiply(Matrix) Obsolete.
Multiplies the components of this instance by the corresponding components of another matrix.
(Inherited from Matrix.)
Public methodCopyTo(Matrix)
Copies the components of this matrix to another matrix.
(Inherited from Matrix.)
Public methodCopyTo(Matrix, TransposeOperation)
Copies the components of this matrix to another matrix.
(Inherited from Matrix.)
Public methodElementwiseDivideInPlace
Divides the components of this instance by the corresponding components of another matrix.
(Inherited from Matrix.)
Public methodElementwiseMultiplyInPlace(Matrix)
Multiplies the components of this instance by the corresponding components of another matrix.
(Inherited from Matrix.)
Public methodEquals(Object)
Determines whether the specified Object is equal to the current Matrix.
(Inherited from Matrix.)
Public methodEquals(Matrix)
Determines whether the specified Matrix is equal to the current Matrix.
(Inherited from Matrix.)
Public methodEquals(Object, IEqualityComparer)
Returns whether an object is structurally equal to this instance.
(Inherited from Matrix.)
Public methodEstimateConditionNumber
Calculates an estimate for the condition number of this matrix.
(Inherited from Matrix.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodFrobeniusNorm
Returns the Frobenius norm of this matrix.
(Inherited from Matrix.)
Public methodGetCholeskyDecomposition
Returns the Cholesky decomposition of the matrix.
(Inherited from Matrix.)
Public methodGetCholeskyDecomposition(Boolean)
Returns the Cholesky decomposition of the matrix.
(Overrides MatrixGetCholeskyDecomposition(Boolean).)
Public methodGetColumn(Int32)
Returns a column vector for this instance that points at the specified column.
(Inherited from Matrix.)
Public methodGetColumn(Int32, Range)
Returns a column vector for this instance starting at the specified column and row and of the specified length.
(Inherited from Matrix.)
Public methodGetColumn(Int32, Int32, Int32)
Returns a column vector for this instance starting at the specified column and row and of the specified length.
(Inherited from Matrix.)
Public methodGetColumn(Int32, Int32, Int32, Int32)
Returns a column vector for this instance starting at the specified column and row and of the specified length.
(Inherited from Matrix.)
Public methodGetColumn(Int32, Int32, Int32, Int32, Intent)
Returns a column vector for this instance starting at the specified column and row and of the specified length.
(Overrides MatrixGetColumn(Int32, Int32, Int32, Int32, Intent).)
Public methodGetColumnEnumerator Obsolete.
Gets an IEnumerator than can be used to enumerate the columns of this DenseMatrix.
(Overrides MatrixGetColumnEnumerator.)
Public methodGetColumnEnumerator(Intent) Obsolete.
Gets an IEnumerator than can be used to enumerate the columns of this DenseMatrix.
(Overrides MatrixGetColumnEnumerator(Intent).)
Public methodGetColumnSums
Returns the sums of the elements of each column of the matrix.
(Inherited from Matrix.)
Public methodGetComponents Obsolete.
Gets the components of the vector.
(Inherited from Matrix.)
Public methodGetComponents(MatrixElementOrder) Obsolete.
Gets the components of the vector.
(Inherited from Matrix.)
Public methodGetConditionNumber
Calculates the condition number of this matrix.
(Inherited from Matrix.)
Public methodGetDeterminant
Calculates the determinant of this matrix.
(Inherited from Matrix.)
Public methodGetDiagonal
Gets a vector view of the diagonal elements of this instance.
(Inherited from Matrix.)
Public methodGetDiagonal(Int32)
Gets a vector view of the specified diagonal of this instance.
(Inherited from Matrix.)
Public methodGetDiagonal(Int32, Intent)
Gets a vector view of the specified diagonal of this instance.
(Overrides MatrixGetDiagonal(Int32, Intent).)
Public methodGetEigenvalueDecomposition
Returns the eigenvalue decomposition for this matrix.
(Inherited from Matrix.)
Public methodGetEigenvalueDecomposition(Boolean)
Returns the eigenvalue decomposition for this matrix.
(Overrides MatrixGetEigenvalueDecomposition(Boolean).)
Public methodGetExponential
Computes the matrix exponential of a square matrix.
(Inherited from Matrix.)
Public methodGetHashCode
Returns the hash code for this instance.
(Inherited from Matrix.)
Public methodGetHashCode(IEqualityComparer)
Returns a hash code for this instance.
(Inherited from Matrix.)
Public methodStatic memberGetIdentity
Returns an identity matrix of the specified dimension.
Public methodGetInverse
Calculates the inverse matrix..
(Inherited from LinearOperator.)
Public methodGetInverse(Boolean)
Calculates the inverse of this matrix.
(Inherited from Matrix.)
Public methodGetLUDecomposition
Returns the LU decomposition of the matrix.
(Inherited from Matrix.)
Public methodGetLUDecomposition(Boolean)
Returns the LU decomposition of the matrix.
(Overrides MatrixGetLUDecomposition(Boolean).)
Public methodGetObjectData
Populates a SerializationInfo with the values needed to serialize the target object.
(Overrides MatrixGetObjectData(SerializationInfo, StreamingContext).)
Public methodGetParallelColumnEnumerator Obsolete.
Returns a PartitionerTSource of Vector instance that allows you to enumerate the columns of this Matrix in parallel.
(Overrides MatrixGetParallelColumnEnumerator.)
Public methodGetParallelRowEnumerator Obsolete.
Returns a PartitionerTSource of Vector instance that allows you to enumerate the rows of this Matrix in parallel.
(Overrides MatrixGetParallelRowEnumerator.)
Public methodGetPseudoInverse
Calculates the Moore-Penrose pseudo-inverse of this matrix.
(Inherited from Matrix.)
Public methodGetQRDecomposition
Returns the QR decomposition of the matrix.
(Inherited from Matrix.)
Public methodGetQRDecomposition(Boolean)
Returns the QR decomposition of the matrix.
(Overrides MatrixGetQRDecomposition(Boolean).)
Public methodGetRow(Int32)
Returns a row vector for this instance that points at the specified row.
(Inherited from Matrix.)
Public methodGetRow(Int32, Range)
Returns a row vector for this instance starting at the specified row and column and of the specified length.
(Inherited from Matrix.)
Public methodGetRow(Int32, Int32, Int32)
Returns a row vector for this instance over the specified range.
(Inherited from Matrix.)
Public methodGetRow(Int32, Int32, Int32, Int32)
Returns a row vector for this instance starting at the specified row and column and of the specified length.
(Inherited from Matrix.)
Public methodGetRow(Int32, Int32, Int32, Int32, Intent)
Returns a row vector for this instance starting at the specified row and column and of the specified length.
(Overrides MatrixGetRow(Int32, Int32, Int32, Int32, Intent).)
Public methodGetRowEnumerator Obsolete.
Constructs an IEnumerator object that can be used to enumerate the rows of this DenseMatrix.
(Overrides MatrixGetRowEnumerator.)
Public methodGetRowEnumerator(Intent) Obsolete.
Constructs an IEnumerator object that can be used to enumerate the rows of this DenseMatrix.
(Overrides MatrixGetRowEnumerator(Intent).)
Public methodGetRowSums
Returns the sums of the elements of each row of the matrix.
(Inherited from Matrix.)
Public methodGetSingularValueDecomposition
Returns the singular value decomposition of the matrix.
(Inherited from Matrix.)
Public methodGetSingularValueDecomposition(SingularValueDecompositionFactors)
Returns the singular value decomposition of the matrix.
(Inherited from Matrix.)
Public methodGetSingularValueDecomposition(SingularValueDecompositionFactors, Boolean)
Returns the singular value decomposition of the matrix.
(Overrides MatrixGetSingularValueDecomposition(SingularValueDecompositionFactors, Boolean).)
Public methodGetSingularValues
Gets a vector containing the singular values of the matrix.
(Inherited from Matrix.)
Public methodGetSubmatrix(Range, Range)
Gets a Matrix that is a submatrix of this Matrix.
(Inherited from Matrix.)
Public methodGetSubmatrix(Range, Range, TransposeOperation)
Gets a Matrix that is a submatrix of this Matrix.
(Inherited from Matrix.)
Public methodGetSubmatrix(Int32, Int32, Int32, Int32)
Gets a Matrix that is a submatrix of this Matrix.
(Inherited from Matrix.)
Public methodGetSubmatrix(Int32, Int32, Int32, Int32, Int32, Int32, TransposeOperation)
Gets a dense matrix that is a submatrix of this matrix.
(Overrides MatrixGetSubmatrix(Int32, Int32, Int32, Int32, Int32, Int32, TransposeOperation).)
Public methodGetSymmetricIndefiniteDecomposition
Returns the symmetric indefinite (Bunch-Kaufman) decomposition of the matrix.
(Inherited from Matrix.)
Public methodGetSymmetricIndefiniteDecomposition(Boolean)
Returns the symmetric indefinite (Bunch-Kaufman) decomposition of the matrix.
(Inherited from Matrix.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetValue
Gets the matrix component at the specified position.
(Overrides MatrixGetValue(Int32, Int32).)
Public methodInfinityNorm
Returns the infinity norm of this matrix.
(Inherited from Matrix.)
Public methodIsComponentWritable Obsolete.
Returns whether the value of the component at the specified row and column can be changed.
(Inherited from Matrix.)
Public methodIsElementWritable
Gets a value indicating whether the value of the component at the specified row and column can be changed.
(Overrides MatrixIsElementWritable(Int32, Int32).)
Public methodIsSingular
Gets a value indicating whether this matrix is singular.
(Inherited from Matrix.)
Public methodMax
Returns the value of the largest component in this matrix.
(Inherited from Matrix.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodMin
Returns the value of the smallest component in this matrix.
(Inherited from Matrix.)
Public methodMultiply(Double)
Multiplies this matrix by a scalar factor.
(Overrides MatrixMultiply(Double).)
Public methodMultiply(Matrix)
Multiplies this DenseMatrix on the right by a square Matrix.
Public methodMultiply(Vector)
Applies the matrix to a vector.
(Inherited from Matrix.)
Public methodStatic memberMultiply(DenseMatrix, DenseMatrix)
Multiplies two matrix objects.
Public methodStatic memberMultiply(DenseMatrix, DenseMatrix, DenseMatrix)
Multiplies two DenseMatrix objects and stores the result in a third DenseMatrix.
Public methodMultiply(MatrixOperationSide, TransposeOperation, TransposeOperation, Matrix)
Multiplies this matrix by another matrix and returns the result.
(Overrides MatrixMultiply(MatrixOperationSide, TransposeOperation, TransposeOperation, Matrix).)
Public methodMultiplyByTranspose
Multiplies this DenseMatrix by its Transpose.
Public methodMultiplyTranspose(Matrix)
Applies the transpose of the matrix to a matrix.
(Inherited from Matrix.)
Public methodMultiplyTranspose(Vector)
Applies the transpose of the matrix to a vector.
(Inherited from Matrix.)
Protected methodNormInternal
Calculates a matrix norm.
(Overrides MatrixNormInternal(MatrixNorm).)
Public methodOneNorm
Returns the 1-norm of this matrix.
(Inherited from Matrix.)
Public methodPermuteColumns
Permutes the columns of the matrix using the specified Permutation.
(Inherited from Matrix.)
Public methodPermuteRows
Permutes the rows of the matrix using the specified Permutation.
(Inherited from Matrix.)
Public methodPermuteRowsAndColumns(Permutation)
Permutes the rows and columns of the matrix using the specified Permutation.
(Inherited from Matrix.)
Public methodPermuteRowsAndColumns(Permutation, Permutation)
Permutes the rows and columns of the matrix using the specified row and column Permutation.
(Inherited from Matrix.)
Public methodPreMultiply
Multiplies this DenseMatrix on the left by a Matrix.
Public methodRank
Returns the numerical rank of a matrix.
(Inherited from LinearOperator.)
Public methodRank(Double)
Returns the numerical rank of a matrix using the specified tolerance.
(Inherited from Matrix.)
Public methodReshape
Returns a matrix that contains the same elements listed columnwise.
(Overrides MatrixReshape(Int32, Int32).)
Public methodReshapeAsVector
Returns a vector that contains the columnwise matrix elements.
(Overrides MatrixReshapeAsVector.)
Public methodScaleColumns(Vector)
Scales the columns of the matrix by the values specified by a vector.
(Inherited from Matrix.)
Public methodScaleRows(Vector)
Scales the rows of the matrix by the values specified by a vector.
(Inherited from Matrix.)
Public methodSetToZero
Sets all elements of the matrix to zero.
(Overrides MatrixSetToZero.)
Public methodSetValue(Double)
Sets all elements of the matrix to the specified value.
(Inherited from Matrix.)
Public methodSetValue(Double, Int32, Int32)
Sets the matrix component at the specified position to the specified value.
(Overrides MatrixSetValue(Double, Int32, Int32).)
Public methodShallowCopy
Makes a shallow copy of this matrix.
(Inherited from Matrix.)
Public methodSolve(Matrix)
Solves the system of linear equations for the specified right-hand side matrix.
(Inherited from LinearOperator.)
Public methodSolve(Vector)
Solves the system of linear equations for the specified right-hand side vector.
(Inherited from LinearOperator.)
Public methodSolve(DenseMatrix, Boolean)
Solves the system of simultaneous linear equations for the specified right-hand side dense matrix and overwrites the right-hand side with the solution.
(Inherited from Matrix.)
Public methodSolve(DenseVector, Boolean)
Solves the system of simultaneous linear equations for the specified right-hand side vector.
(Inherited from Matrix.)
Public methodSolveTo(DenseVector, DenseVector)
Solves the system for the specified right-hand side.
(Inherited from LinearOperator.)
Public methodSolveTo(Vector, DenseVector)
Solves the system for the specified right-hand side.
(Inherited from LinearOperator.)
Public methodSolveTranspose(Matrix)
Solves the transposed system of linear equations for the specified right-hand side matrix.
(Inherited from LinearOperator.)
Public methodSolveTranspose(Vector)
Solves the system of linear equations for the specified right-hand side vector.
(Inherited from LinearOperator.)
Public methodSolveTranspose(DenseMatrix, Boolean)
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 Matrix.)
Public methodSolveTranspose(DenseVector, Boolean)
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 Matrix.)
Public methodSolveTransposeTo
Solves the transposed system for the specified right-hand side.
(Inherited from LinearOperator.)
Public methodSort
Sorts the matrix by the specified column.
Public methodSortColumns
Sorts each column of the matrix in ascending order.
(Inherited from Matrix.)
Public methodSortColumns(SortOrder)
Sorts each column of the matrix in the specified order.
(Inherited from Matrix.)
Public methodSortRows
Sorts each row of the matrix in ascending order.
(Inherited from Matrix.)
Public methodSortRows(SortOrder)
Sorts each row of the matrix in the specified order.
(Inherited from Matrix.)
Public methodStatic memberSubtract(DenseMatrix, DenseMatrix)
Subtracts two dense matrix objects.
Public methodStatic memberSubtract(DenseMatrix, DenseMatrix, DenseMatrix)
Subtracts two DenseMatrix objects and stores the result in a third DenseMatrix.
Public methodSubtractProduct
Subtracts the product of two DenseMatrix object to this DenseMatrix.
Public methodSummarize
Returns a summary of the contents of the matrix using the default summary options.
(Inherited from Matrix.)
Public methodSummarize(SummaryOptions)
Returns a summary of the contents of the matrix using the specified options.
(Inherited from Matrix.)
Public methodSwapColumns
Swaps the elements in the specified columns.
(Overrides MatrixSwapColumns(Int32, Int32).)
Public methodSwapRows
Swaps the elements in the specified rows.
(Overrides MatrixSwapRows(Int32, Int32).)
Public methodToArray
Gets the elements of the vector.
(Inherited from Matrix.)
Public methodToArray(MatrixElementOrder)
Gets the elements of the vector.
(Overrides MatrixToArray(MatrixElementOrder).)
Public methodToDenseMatrix
Makes a copy of this instance and returns it as a dense matrix.
(Inherited from Matrix.)
Public methodToGeneralMatrix Obsolete.
Makes a copy of this instance and returns it as a dense matrix.
(Inherited from Matrix.)
Public methodToString
Returns a String representation of this Matrix.
(Inherited from Matrix.)
Public methodToString(String)
Returns a String representation of this Matrix.
(Inherited from Matrix.)
Public methodToString(String, IFormatProvider)
Returns a String representation of this Matrix.
(Inherited from Matrix.)
Public methodTrace
Gets the sum of the diagonal elements of this matrix.
(Inherited from Matrix.)
Public methodTranspose
Returns the transpose of this instance.
(Overrides MatrixTranspose.)
Public methodTwoNorm
Returns the two-norm of this matrix.
(Inherited from Matrix.)
Public methodUnscaleColumns(Vector)
Scales the columns of the matrix by the inverse of the values specified by a vector.
(Inherited from Matrix.)
Public methodUnscaleRows(Vector)
Scales the rows of the matrix by the inverse of the values specified by a vector.
(Inherited from Matrix.)
Top
Extension Methods

  NameDescription
Public Extension MethodAsGenericMatrix
Converts a non-generic matrix to a generic matrix.
(Defined by MatrixExtensions.)
Top
Remarks

A matrix is a two-dimensional array of real numbers. Use the DenseMatrix class to represent general, dense matrices. It is the most general implementation of the Matrix class. No components are assumed to have a specific value, and no relationship is assumed to exist between different components.

The components of a DenseMatrix are stored in a one-dimensional array of Double values. By default, components that are adjacent in a column of the matrix are adjacent in the storage array. The components are said to be stored in column major order. It is also possible to have elements stored in row major order.

The DenseMatrix class implements algorithms using the general matrix BLAS and LAPACK routines. These routines assume matrix components are stored in column major order. However, any necessary conversions are performed transparantly. No additional work is needed. In some cases there might be a small performance penalty.

Because DenseMatrix can represent any matrix, it is often used as the return type of matrix operations.

Version Information

Numerical Libraries

Supported in: 5.x, 4.x
See Also

Reference

Extreme.Mathematics.LinearAlgebra Namespace
Extreme.Mathematics.LinearAlgebraLUDecomposition
Extreme.Mathematics.LinearAlgebraQRDecomposition
Extreme.MathematicsVector

Copyright (c) 2004-2016 ExoAnalytics Inc.

Send comments on this topic to support@extremeoptimization.com

Copyright © 2004-2021, Extreme Optimization. All rights reserved.
Extreme Optimization, Complexity made simple, M#, and M Sharp are trademarks of ExoAnalytics Inc.
Microsoft, Visual C#, Visual Basic, Visual Studio, Visual Studio.NET, and the Optimized for Visual Studio logo
are registered trademarks of Microsoft Corporation.