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
  • Extreme Optimization
    • Features
    • Solutions
    • Documentation
    • QuickStart Samples
    • Sample Applications
    • Downloads
    • Technical Support
    • Download trial
    • How to buy
    • Blog
    • Company
    • Resources
  • Documentation
    • Introduction
    • Deployment Guide
    • Nuget packages
    • Configuration
    • Using Parallelism
    • Mathematics Library User's Guide
    • Vector and Matrix Library User's Guide
    • Data Analysis Library User's Guide
    • Statistics Library User's Guide
    • Data Access Library User's Guide
    • Reference
  • Reference
    • Extreme
    • Extreme.Collections
    • Extreme.Data
    • Extreme.Data.Json
    • Extreme.Data.Matlab
    • Extreme.Data.R
    • Extreme.Data.Stata
    • Extreme.Data.Text
    • Extreme.DataAnalysis
    • Extreme.DataAnalysis.Linq
    • Extreme.DataAnalysis.Models
    • Extreme.Mathematics
    • Extreme.Mathematics.Algorithms
    • Extreme.Mathematics.Calculus
    • Extreme.Mathematics.Calculus.OrdinaryDifferentialEquations
    • Extreme.Mathematics.Curves
    • Extreme.Mathematics.Curves.Nonlinear
    • Extreme.Mathematics.Distributed
    • Extreme.Mathematics.EquationSolvers
    • Extreme.Mathematics.Generic
    • Extreme.Mathematics.LinearAlgebra
    • Extreme.Mathematics.LinearAlgebra.Implementation
    • Extreme.Mathematics.LinearAlgebra.IterativeSolvers
    • Extreme.Mathematics.LinearAlgebra.IterativeSolvers.Preconditioners
    • Extreme.Mathematics.Optimization
    • Extreme.Mathematics.Optimization.LineSearches
    • Extreme.Mathematics.Random
    • Extreme.Mathematics.SignalProcessing
    • Extreme.Providers
    • Extreme.Providers.InteropServices
    • Extreme.Statistics
    • Extreme.Statistics.Distributions
    • Extreme.Statistics.Multivariate
    • Extreme.Statistics.Tests
    • Extreme.Statistics.TimeSeriesAnalysis
  • Extreme.Mathematics.LinearAlgebra
    • BandMatrix(T) Class
    • BlockVector(T) Class
    • CholeskyDecomposition(T) Class
    • CloningMethod Enumeration
    • ColumnCollection(T) Structure
    • ComplexSingularValueDecomposition(T) Class
    • ComponentReadOnlyException Class
    • ComposedComplexMatrix(T) Class
    • ComposedComplexVector(T) Class
    • ConstantMatrix(T) Class
    • ConstantVector(T) Class
    • Decomposition(T) Class
    • DenseMatrix(T) Class
    • DenseVector(T) Class
    • DiagonalMatrix(T) Class
    • EigenvalueDecomposition(T) Class
    • EigenvalueRange Enumeration
    • GeneralizedDecomposition(T) Class
    • GeneralizedEigenvalueDecomposition(T) Class
    • GeneralizedSingularValueDecomposition(T) Class
    • GeneralizedSingularValueDecompositionFactors Enumeration
    • HermitianMatrix(T) Class
    • IndexedVector(T) Class
    • IndexValuePair(T) Structure
    • IResizableMatrix(T) Interface
    • LeastSquaresSolutionMethod Enumeration
    • LeastSquaresSolver(T) Class
    • LinearAlgebraOperations Class
    • LinearOperator(T) Class
    • LQDecomposition(T) Class
    • LUDecomposition(T) Class
    • MatrixNotPositiveDefiniteException Class
    • MatrixSingularException Class
    • MatrixView(T) Class
    • NonHermitianEigenvalueDecomposition(T) Class
    • NonNegativeMatrixFactorization(T) Class
    • PermutationMatrix Class
    • PivotVector Structure
    • QLDecomposition(T) Class
    • QRDecomposition(T) Class
    • RealEigenvalueDecomposition(T) Class
    • RowCollection(T) Structure
    • RowColumnValueTriplet(T) Structure
    • RQDecomposition(T) Class
    • SingularValueDecomposition(T) Class
    • SingularValueDecompositionFactors Enumeration
    • SparseCompressedColumnMatrix(T) Class
    • SparseMatrix(T) Class
    • SparseVector(T) Class
    • SymmetricIndefiniteDecomposition(T) Class
    • SymmetricMatrix(T) Class
    • TriangularMatrix(T) Class
  • SparseMatrix(T) Class
    • SparseMatrix(T) Constructors
    • Properties
    • Methods

SparseMatrixT Class

Extreme Optimization Numerical Libraries for .NET Professional
Represents a sparse matrix.
Inheritance Hierarchy

SystemObject
  Extreme.Mathematics.LinearAlgebraLinearOperatorT
    Extreme.MathematicsMatrixT
      Extreme.Mathematics.LinearAlgebraSparseMatrixT
        Extreme.Mathematics.LinearAlgebraSparseCompressedColumnMatrixT

Namespace:  Extreme.Mathematics.LinearAlgebra
Assembly:  Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
Syntax

C#
VB
C++
F#
Copy
public abstract class SparseMatrix<T> : Matrix<T>
Public MustInherit Class SparseMatrix(Of T)
	Inherits Matrix(Of T)
generic<typename T>
public ref class SparseMatrix abstract : public Matrix<T>
[<AbstractClassAttribute>]
type SparseMatrix<'T> =  
    class
        inherit Matrix<'T>
    end

Type Parameters

T

The SparseMatrixT type exposes the following members.

Constructors

  NameDescription
Protected methodSparseMatrixT(SerializationInfo, StreamingContext)
Constructs a new sparse matrix from serialization data.
Protected methodSparseMatrixT(Int32, Int32, ArrayAttributes)
Constructs a new sparse matrix object.
Top
Properties

  NameDescription
Public propertyCanReshape
Gets whether the matrix can be reshaped into a vector or a matrix.
(Inherited from MatrixT.)
Public propertyColumnCount
Gets the number of columns in the matrix.
(Inherited from LinearOperatorT.)
Public propertyColumnIndex
Gets or sets the index of labels for the columns of the matrix.
(Inherited from LinearOperatorT.)
Public propertyColumns
Gets the ColumnCollectionT for this instance.
(Inherited from MatrixT.)
Public propertyColumnwiseComponents
Enumerates the elements of the matrix column by column.
(Inherited from MatrixT.)
Public propertyDiagonalMode Obsolete.
Gets a value that indicates whether the diagonal elements of a triangular sparse matrix are all equal to 1.
Public propertyElementOrder
Gets a value indicating the order in which the matrix elements are stored.
(Inherited from MatrixT.)
Public propertyElementType
Gets the element type of the matrix.
(Inherited from LinearOperatorT.)
Public propertyFillFactor
Gets the fraction of nonzero components in the matrix.
Public propertyIsHermitian
Gets a value that indicates if the matrix is Hermitian about the main diagonal.
(Inherited from MatrixT.)
Public propertyIsImmutable
Gets whether the elements of the matrix are immutable.
(Inherited from MatrixT.)
Public propertyIsLowerTriangular
Gets a value that indicates if all elements of the matrix above the main diagonal are zero.
(Inherited from MatrixT.)
Public propertyIsReadOnly
Gets whether the matrix can be written to.
(Inherited from MatrixT.)
Public propertyIsSparse
Gets a value that indicates whether the matrix is sparse.
(Overrides MatrixTIsSparse.)
Public propertyIsSymmetrical
Gets a value that indicates if the matrix is symmetrical about the main diagonal.
(Inherited from MatrixT.)
Public propertyIsUnitDiagonal
Gets a value indicating whether all diagonal elements of this instance are equal to 1.
(Inherited from MatrixT.)
Public propertyIsUpperTriangular
Gets a value that indicates if all elements of the matrix below the main diagonal are zero.
(Inherited from MatrixT.)
Public propertyItemFuncT, Boolean, Int32
Gets or sets the elements of a column of the matrix that meet the specified condition.
(Inherited from MatrixT.)
Public propertyItemIEnumerableInt32, Range
Gets or sets the elements of a matrix with the specified row indexes and column range.
(Inherited from MatrixT.)
Public propertyItemIEnumerableInt32, IEnumerableInt32
Gets or sets the elements of a matrix with the specified row and column indexes.
(Inherited from MatrixT.)
Public propertyItemIEnumerableInt32, Int32
Gets or sets the elements of a column with the specified indexes.
(Inherited from MatrixT.)
Public propertyItemIEnumerableInt32, Range
Gets or sets the elements of a matrix with the specified row indexes and column range.
(Inherited from MatrixT.)
Public propertyItemIndex, Index
Gets or sets the specified element in this matrix.
(Inherited from MatrixT.)
Public propertyItemIndex, Range
Gets or sets the elements of a row of this matrix.
(Inherited from MatrixT.)
Public propertyItemInt32, Range
Gets or sets the elements of a row of this matrix.
(Inherited from MatrixT.)
Public propertyItemInt32, VectorBoolean
Gets or sets the elements of a row of this matrix.
(Inherited from MatrixT.)
Public propertyItemInt32, IEnumerableInt32
Gets or sets the elements of a row with the specified indexes.
(Inherited from MatrixT.)
Public propertyItemInt32, FuncT, Boolean
Gets or sets the elements of a row of the matrix that meet the specified condition.
(Inherited from MatrixT.)
Public propertyItemInt32, Int32
Gets or sets the specified element in this matrix.
(Inherited from MatrixT.)
Public propertyItemRange, Range
Gets or sets the elements of a sub-matrix of this matrix.
(Inherited from MatrixT.)
Public propertyItemRange, IEnumerableInt32
Gets or sets the elements of a matrix with the specified row range and column indexes.
(Inherited from MatrixT.)
Public propertyItemRange, Int32
Gets or sets the elements of a column of this matrix.
(Inherited from MatrixT.)
Public propertyItemRange, IEnumerableInt32
Gets or sets the elements of a matrix with the specified row range and column indexes.
(Inherited from MatrixT.)
Public propertyItemRange, Index
Gets or sets the elements of a column of this matrix.
(Inherited from MatrixT.)
Public propertyItemRange, Range
Gets or sets the elements of a sub-matrix of this matrix.
(Inherited from MatrixT.)
Public propertyItemVectorBoolean, Int32
Gets or sets the elements of a column of this matrix.
(Inherited from MatrixT.)
Public propertyMatrixDiagonal
Gets a value indicating whether all diagonal elements of this instance are structurally equal to 1.
(Inherited from MatrixT.)
Public propertyMatrixTriangle
Gets a value that indicates whether a triangular matrix is upper or lower triangular.
(Inherited from MatrixT.)
Public propertyNonzeroComponents Obsolete.
Gets a collection of the nonzero elements of the matrix.
(Inherited from MatrixT.)
Public propertyNonzeroCount
Gets the number of nonzero components in the matrix.
Public propertyNonzeroElements
Gets a collection of the nonzero elements of the matrix.
(Inherited from MatrixT.)
Public propertyPrecedence
Infrastructure. This property supports the Numerical Libraries for .NET infrastructure and is not intended to be used directly from your code.
(Inherited from MatrixT.)
Public propertyRowCount
Gets the number of rows in the matrix.
(Inherited from LinearOperatorT.)
Public propertyRowIndex
Gets or sets the index of labels for the rows of the matrix.
(Inherited from LinearOperatorT.)
Public propertyRows
Gets the RowCollectionT for this instance.
(Inherited from MatrixT.)
Public propertyRowwiseComponents
Enumerates the elements of the matrix column by column.
(Inherited from MatrixT.)
Public propertyStructure
Gets a value that indicates the structure of the sparse matrix.
(Inherited from MatrixT.)
Public propertyWritableComponents
Enumerates the writable elements of the matrix column by column.
(Inherited from MatrixT.)
Top
Methods

  NameDescription
Protected methodAbsCore
Computes the absolute value of the elements of a matrix.
(Inherited from MatrixT.)
Public methodAbsInPlace
Computes the absolute value of the elements of a matrix in-place.
(Inherited from MatrixT.)
Public methodAbsoluteMax
Returns the value of the element in this matrix that has the largest absolute value.
(Inherited from MatrixT.)
Public methodAbsoluteMin
Returns the value of the element in this matrix that has the smallest absolute value.
(Inherited from MatrixT.)
Protected methodAcosCore
Computes the inverse cosine of the elements of a matrix.
(Inherited from MatrixT.)
Protected methodAcoshCore
Computes the inverse hyperbolic cosine of the elements of a matrix.
(Inherited from MatrixT.)
Public methodAcoshInPlace
Computes the inverse hyperbolic cosine of the elements of a matrix in-place.
(Inherited from MatrixT.)
Public methodAcosInPlace
Computes the inverse cosine of the elements of a matrix in-place.
(Inherited from MatrixT.)
Public methodAdd Obsolete.
Adds a constant to a matrix and returns the result.
(Inherited from MatrixT.)
Public methodAddAt
Adds a value to the component at the specified location.
Protected methodAddCore(T, MatrixT)
Adds a scalar to a matrix in-place.
(Inherited from MatrixT.)
Protected methodAddCore(TransposeOperation, MatrixT, TransposeOperation, MatrixT)
Adds two matrices.
(Inherited from MatrixT.)
Public methodAddInPlace(T)
Adds a scalar to a matrix.
(Inherited from MatrixT.)
Public methodAddInPlace(MatrixT)
Adds another matrix to this matrix in-place.
(Inherited from MatrixT.)
Public methodAddInPlace(VectorT, Dimension)
Adds a vector broadcast along the specified dimension to this matrix in-place.
(Inherited from MatrixT.)
Public methodAddProductInPlace(MatrixT, MatrixT)
Adds the product of two matrices to this matrix.
(Inherited from MatrixT.)
Public methodAddProductInPlace(MatrixT, TransposeOperation, MatrixT, TransposeOperation)
Adds the product of two matrices to this matrix.
(Inherited from MatrixT.)
Public methodAddProductToVector Obsolete.
Multiplies a VectorT by this instance and stores the result in a second vector of type DenseVectorT.
(Inherited from LinearOperatorT.)
Protected methodAddScaledAsLeftCore(T, MatrixT, MatrixT)
Adds two matrices.
(Inherited from MatrixT.)
Protected methodAddScaledAsLeftCore(T, VectorT, Dimension, MatrixT)
Adds a matrix and a vector broadcast along the specified dimension.
(Inherited from MatrixT.)
Protected methodAddScaledAsLeftCore(TransposeOperation, T, MatrixT, TransposeOperation, MatrixT)
Adds a multiple of a matrix to this instance and returns the result.
(Overrides MatrixTAddScaledAsLeftCore(TransposeOperation, T, MatrixT, TransposeOperation, MatrixT).)
Protected methodAddScaledAsRightCore(MatrixT, T, MatrixT)
Adds two matrices.
(Inherited from MatrixT.)
Protected methodAddScaledAsRightCore(T, VectorT, Dimension, MatrixT)
Adds a matrix and a vector broadcast along the specified dimension.
(Inherited from MatrixT.)
Public methodAddScaledInPlace
Adds a scaled matrix to this matrix.
(Inherited from MatrixT.)
Public methodAddScaledProductInPlace(T, MatrixT, MatrixT)
Adds a multiple of the scaled product of two matrices to this matrix.
(Inherited from MatrixT.)
Public methodAddScaledProductInPlace(T, MatrixT, TransposeOperation, MatrixT, TransposeOperation)
Adds the scaled product of two matrices to another matrix.
(Inherited from MatrixT.)
Public methodAggregateColumnsU(AggregatorT, U)
Applies the specified aggregator to all the columns in the matrix.
(Inherited from MatrixT.)
Public methodAggregateColumnsU(AggregatorGroupU)
Applies the specified aggregator to all the columns in the matrix.
(Inherited from MatrixT.)
Public methodAggregateColumnsU(AggregatorGroupU)
Applies the specified aggregators to all the columns in the matrix.
(Inherited from MatrixT.)
Public methodAggregateColumnsU(FuncVectorT, U)
Applies the specified aggregators to all the columns in the matrix.
(Inherited from MatrixT.)
Public methodAggregateColumnsByU(IGrouping, AggregatorGroupU)
Returns a new matrix that aggregates the columns according to the specified grouping.
(Inherited from MatrixT.)
Public methodAggregateColumnsByK, U(IListK, AggregatorGroupU)
Returns a new matrix that aggregates the columns grouped by the specified vector.
(Inherited from MatrixT.)
Public methodAggregateColumnsListwiseU
Applies the specified aggregator to all the columns in the matrix, treating rows that contain any missing values as completely missing.
(Inherited from MatrixT.)
Public methodAggregateRowsU(AggregatorT, U)
Applies the specified aggregator to all the rows in the matrix.
(Inherited from MatrixT.)
Public methodAggregateRowsU(AggregatorGroupU)
Applies the specified aggregator to all the rows in the matrix.
(Inherited from MatrixT.)
Public methodAggregateRowsU(AggregatorGroupU)
Applies the specified aggregators to all the rows in the matrix.
(Inherited from MatrixT.)
Public methodAggregateRowsU(FuncVectorT, U)
Applies the specified aggregators to all the rows in the matrix.
(Inherited from MatrixT.)
Public methodAggregateRowsByU(IGrouping, AggregatorGroupU)
Returns a new matrix that aggregates the rows according to the specified grouping.
(Inherited from MatrixT.)
Public methodAggregateRowsByC, U(C, AggregatorGroupU)
Returns a new matrix that aggregates the rows grouped by the specified row.
(Inherited from MatrixT.)
Public methodAggregateRowsByK, U(IListK, AggregatorGroupU)
Returns a new matrix that aggregates the rows grouped by the specified vector.
(Inherited from MatrixT.)
Public methodAggregateRowsByR, U(R, FuncVectorT, U)
Applies the specified aggregation function to the values in each row grouped by the specified grouping row.
(Inherited from MatrixT.)
Public methodAsDenseMatrix
Returns this matrix as a dense matrix.
(Inherited from MatrixT.)
Public methodAsHermitianMatrix
Returns a matrix as a HermitianMatrixT, or if the matrix is not hermitian.
(Inherited from MatrixT.)
Public methodAsHermitianMatrix(MatrixTriangle)
Returns a HermitianMatrixT extracted from a part of the matrix.
(Inherited from MatrixT.)
Protected methodAsinCore
Computes the inverse sine of the elements of a matrix.
(Inherited from MatrixT.)
Protected methodAsinhCore
Computes the inverse hyperbolic sine of the elements of a matrix.
(Inherited from MatrixT.)
Public methodAsinhInPlace
Computes the inverse hyperbolic sine of the elements of a matrix in-place.
(Inherited from MatrixT.)
Public methodAsinInPlace
Computes the inverse sine of the elements of a matrix in-place.
(Inherited from MatrixT.)
Public methodAsSymmetricMatrix
Returns a matrix as a SymmetricMatrixT, or if the matrix is not symmetrical.
(Inherited from MatrixT.)
Public methodAsSymmetricMatrix(MatrixTriangle)
Returns a SymmetricMatrixT extracted from a part of the matrix.
(Inherited from MatrixT.)
Protected methodAtan2AsXCore
Computes the four-quadrant inverse tangent of the corresponding elements of two matrices.
(Inherited from MatrixT.)
Protected methodAtan2AsYCore
Computes the four-quadrant inverse tangent of the elements of a matrix.
(Inherited from MatrixT.)
Protected methodAtanCore
Computes the inverse tangent of the elements of a matrix.
(Inherited from MatrixT.)
Protected methodAtanhCore
Computes the inverse hyperbolic tangent of the elements of a matrix.
(Inherited from MatrixT.)
Public methodAtanhInPlace
Computes the inverse hyperbolic tangent of the elements of a matrix in-place.
(Inherited from MatrixT.)
Public methodAtanInPlace
Computes the inverse tangent of the elements of a matrix in-place.
(Inherited from MatrixT.)
Protected methodCeilingCore
Computes the smallest integer greater than or equal to the elements of a matrix.
(Inherited from MatrixT.)
Public methodCeilingInPlace
Computes the smallest integer greater than or equal to the elements of a matrix in-place.
(Inherited from MatrixT.)
Public methodClone
Constructs a deep copy of this matrix.
(Inherited from MatrixT.)
Public methodClone(CloningMethod)
Makes a copy of this vector using the specified method.
(Inherited from MatrixT.)
Public methodCloneData
Gives this instance its own copy of its elements.
(Inherited from MatrixT.)
Public methodCloneShape
Creates a new matrix that has the same number of rows and columns and optionally preserves the writable structure.
(Inherited from MatrixT.)
Public methodComponentwiseDivide(MatrixT) Obsolete.
Divides the elements of this instance by the corresponding elements of another matrix.
(Inherited from MatrixT.)
Public methodComponentwiseMultiply(MatrixT) Obsolete.
Multiplies the elements of this instance by the corresponding elements of another matrix.
(Inherited from MatrixT.)
Public methodStatic memberComponentwiseMultiply(MatrixT, SparseMatrixT)
Multiplies the components of a matrix by the corresponding components of a sparse matrix.
Public methodStatic memberComponentwiseMultiply(SparseMatrixT, MatrixT)
Multiplies the components of a matrix by the corresponding components of a sparse matrix.
Public methodConjugate
Returns the transpose of this instance.
(Inherited from MatrixT.)
Protected methodConjugateCore
Conjugates the elements of a matrix.
(Inherited from MatrixT.)
Public methodConjugateInPlace
Conjugates all elements of a matrix in-place.
(Inherited from MatrixT.)
Public methodConjugateTranspose
Returns the transpose of this instance.
(Inherited from MatrixT.)
Public methodCopyTo(MatrixT)
Copies the elements of this matrix to another matrix.
(Inherited from MatrixT.)
Public methodCopyTo(Array2DT, TransposeOperation)
Copies the elements of this matrix to another matrix.
(Inherited from MatrixT.)
Public methodCopyTo(MatrixT, TransposeOperation)
Copies the elements of this matrix to another matrix.
(Inherited from MatrixT.)
Public methodCopyToOrClone
Copies the elements of this vector to another matrix, if it exists; otherwise clones the matrix using the specified method.
(Inherited from MatrixT.)
Protected methodCosCore
Computes the cosine of the elements of a matrix.
(Inherited from MatrixT.)
Protected methodCoshCore
Computes the hyperbolic cosine of the elements of a matrix.
(Inherited from MatrixT.)
Public methodCoshInPlace
Computes the hyperbolic cosine of the elements of a matrix in-place.
(Inherited from MatrixT.)
Public methodCosInPlace
Computes the cosine of the elements of a matrix in-place.
(Inherited from MatrixT.)
Public methodDispose
Releases unmanaged resources.
(Inherited from MatrixT.)
Protected methodDispose(Boolean)
Releases unmanaged resources.
(Inherited from MatrixT.)
Public methodDivideAt
Divides the component at the specified location by a value.
Public methodDivideInPlace
Divides a matrix in-place by a scalar.
(Inherited from MatrixT.)
Protected methodElementwiseConjugateMultiplyAsLeftCore
Multiplies two vectors element-wise.
(Inherited from MatrixT.)
Protected methodElementwiseConjugateMultiplyAsRightCore
Multiplies two vectors element-wise.
(Inherited from MatrixT.)
Protected methodElementwiseDivideAsLeftCore
Divides two matrices element-wise.
(Inherited from MatrixT.)
Protected methodElementwiseDivideAsRightCore
Divides two matrices element-wise.
(Inherited from MatrixT.)
Public methodElementwiseDivideInPlace
Divides this matrix in-place element-wise by another matrix.
(Inherited from MatrixT.)
Protected methodElementwiseMultiplyCore
Multiplies two matrices element-wise.
(Inherited from MatrixT.)
Public methodElementwiseMultiplyInPlace(MatrixT)
Multiplies this matrix in-place element-wise by another matrix.
(Inherited from MatrixT.)
Protected methodElementwisePowAsLeftCore(MatrixT, MatrixT)
Raises the elements of a matrix to a power from the corresponding elements in another matrix.
(Inherited from MatrixT.)
Protected methodElementwisePowAsLeftCore(VectorT, Dimension, MatrixT)
Raises the elements of a matrix to a power from the corresponding elements in another matrix.
(Inherited from MatrixT.)
Protected methodElementwisePowAsRightCore(MatrixT, MatrixT)
Raises two vectors element-wise.
(Inherited from MatrixT.)
Protected methodElementwisePowAsRightCore(VectorT, Dimension, MatrixT)
Raises the elements of a vector, broadcast along the specified dimension to the power from the corresponding element in a matrix.
(Inherited from MatrixT.)
Protected methodElementwisePowCore(Int32, MatrixT)
Raises the element of a matrix to a constant power.
(Inherited from MatrixT.)
Protected methodElementwisePowCore(T, MatrixT)
Raises the element of a matrix to a constant power.
(Inherited from MatrixT.)
Public methodElementwisePowInPlace(Int32)
Raises the elements of a matrix in-place to a constant power.
(Inherited from MatrixT.)
Public methodElementwisePowInPlace(MatrixT)
Raises this matrix in-place element-wise by another matrix.
(Inherited from MatrixT.)
Public methodElementwisePowInPlace(VectorT, Dimension)
Raises this matrix in-place element-wise by a vector broadcast along the specified dimension.
(Inherited from MatrixT.)
Public methodEnsureWritable
Ensures that the element at the specified index in the vector can be written to.
(Inherited from MatrixT.)
Public methodEnsureWritable(Int32, Int32)
Ensures that the element at the specified index in the vector can be written to.
(Inherited from MatrixT.)
Public methodEnsureWritable(Int32, Int32, Int32, Int32)
Ensures that the element at the specified index in the vector can be written to.
(Inherited from MatrixT.)
Public methodEquals(MatrixT)
Determines whether the specified MatrixT is equal to the current MatrixT.
(Inherited from MatrixT.)
Public methodEquals(Object)
Determines whether the specified Object is equal to the current MatrixT.
(Inherited from MatrixT.)
Public methodEquals(Object, IEqualityComparer)
Returns whether an object is structurally equal to this instance.
(Inherited from MatrixT.)
Protected methodEqualToCore(MatrixT, MatrixBoolean)
Checks if the elements of one matrix are equal to the corresponding elements of another matrix.
(Inherited from MatrixT.)
Public methodEstimateConditionNumber
Calculates an estimate for the condition number of this matrix.
(Inherited from MatrixT.)
Protected methodExpCore
Computes the exponential of the elements of a matrix.
(Inherited from MatrixT.)
Public methodExpInPlace
Computes the exponential of the elements of a matrix in-place.
(Inherited from MatrixT.)
Public methodExtractTriangle
Constructs an upper or lower triangular sparse matrix from a general sparse matrix.
Public methodFillMissingValuesInPlace(T)
Replaces all missing values in a matrix with the specified value in-place.
(Inherited from MatrixT.)
Public methodFillMissingValuesInPlace(DimensionType, Direction)
Replaces all missing values in each row or column in-place with the previous or next non-missing value.
(Inherited from MatrixT.)
Public methodFillMissingValuesInPlace(VectorT, DimensionType)
Replaces all missing values in each row or column of a matrix in-place with the corresponding value from a vector.
(Inherited from MatrixT.)
Public methodFillMissingValuesInto(T, MatrixT)
Replaces all missing values in a matrix with the specified value.
(Inherited from MatrixT.)
Public methodFillMissingValuesInto(VectorT, DimensionType, MatrixT)
Replaces all missing values in each row or column with the corresponding value from a vector.
(Inherited from MatrixT.)
Public methodFillMissingValuesInto(DimensionType, Direction, MatrixT, Int32)
Replaces all missing values in each row or column with the previous or next non-missing value.
(Inherited from MatrixT.)
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.)
Protected methodFloorCore
Computes the largest integer less than or equal to the elements of a matrix.
(Inherited from MatrixT.)
Public methodFloorInPlace
Computes the largest integer less than or equal to the elements of a matrix in-place.
(Inherited from MatrixT.)
Public methodFrobeniusNorm
Returns the Frobenius norm of this matrix.
(Inherited from MatrixT.)
Public methodGetR, C
Gets the value with the specified key.
(Inherited from MatrixT.)
Public methodGetCholeskyDecomposition
Returns the Cholesky decomposition of the matrix.
(Inherited from MatrixT.)
Public methodGetCholeskyDecomposition(Boolean)
Returns the Cholesky decomposition of the matrix.
(Inherited from MatrixT.)
Public methodGetColumn(Int32)
Returns a column vector for this instance that points at the specified column.
(Inherited from MatrixT.)
Public methodGetColumn(Int32, Intent)
Returns a column vector for this instance that points at the specified column.
(Inherited from MatrixT.)
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 MatrixT.)
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 MatrixT.)
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 MatrixT.)
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.
(Inherited from MatrixT.)
Protected methodGetColumnCore
Returns a column vector for this instance starting at the specified column and row and of the specified length.
(Inherited from MatrixT.)
Public methodGetColumnEnumerator
Returns an enumerator that allows you to iterate over the columns of this instance.
(Inherited from MatrixT.)
Public methodGetColumns(IEnumerableInt32)
Returns a new matrix that contains only the columns in the specified sequence.
(Inherited from MatrixT.)
Public methodGetColumns(Int32, Int32)
Returns a matrix that contains only the specified columns of the current matrix.
(Inherited from MatrixT.)
Public methodGetColumnSums
Returns the sums of the components of each column of the matrix.
(Overrides MatrixTGetColumnSums.)
Public methodGetConditionNumber
Calculates the condition number of this matrix.
(Inherited from MatrixT.)
Public methodGetDeterminant
Calculates the determinant of this matrix.
(Overrides MatrixTGetDeterminant.)
Public methodGetDiagonal
Gets a vector view of the diagonal elements of this instance.
(Inherited from MatrixT.)
Public methodGetDiagonal(Int32)
Gets a vector view of the specified diagonal of this instance.
(Inherited from MatrixT.)
Public methodGetDiagonal(Int32, Intent)
Gets a vector view of the specified diagonal of this instance.
(Inherited from MatrixT.)
Public methodGetEigenvalueDecomposition
Returns the eigenvalue decomposition for this matrix.
(Inherited from MatrixT.)
Public methodGetEigenvalueDecomposition(Boolean)
Returns the eigenvalue decomposition for this matrix.
(Inherited from MatrixT.)
Public methodGetEigenvalueDecomposition(MatrixT)
Returns the generalized eigenvalue decomposition for this matrix.
(Inherited from MatrixT.)
Public methodGetEigenvalueDecomposition(MatrixT, Boolean)
Returns the generalized eigenvalue decomposition for this matrix.
(Inherited from MatrixT.)
Public methodGetExponential
Computes the matrix exponential of a square matrix.
(Inherited from MatrixT.)
Public methodGetHashCode
Returns the hash code for this instance.
(Inherited from MatrixT.)
Public methodGetHashCode(IEqualityComparer)
Returns a hash code for this instance.
(Inherited from MatrixT.)
Public methodGetHermitianIndefiniteDecomposition
Returns the Hermitian indefinite (Bunch-Kaufman) decomposition of the matrix.
(Inherited from MatrixT.)
Public methodGetHermitianIndefiniteDecomposition(Boolean)
Returns the Hermitian indefinite (Bunch-Kaufman) decomposition of the matrix.
(Inherited from MatrixT.)
Public methodGetInverse
Calculates the inverse matrix..
(Inherited from LinearOperatorT.)
Public methodGetInverse(Boolean)
Calculates the inverse of this matrix.
(Inherited from MatrixT.)
Public methodGetLQDecomposition
Returns the LQ decomposition of the matrix.
(Inherited from MatrixT.)
Public methodGetLQDecomposition(Boolean)
Returns the LQ decomposition of the matrix.
(Inherited from MatrixT.)
Public methodGetLUDecomposition
Returns the LU decomposition of the matrix.
(Inherited from MatrixT.)
Public methodGetLUDecomposition(Boolean)
Returns the LU decomposition of the matrix.
(Inherited from MatrixT.)
Public methodGetNearestColumnC
Gets the column nearest to the specified column key.
(Inherited from MatrixT.)
Public methodGetNearestColumnsC
Returns a new matrix that contains only the columns in the specified sequence.
(Inherited from MatrixT.)
Public methodGetNearestRowR
Gets the row nearest to the specified row key.
(Inherited from MatrixT.)
Public methodGetNearestRowsR
Returns a new matrix that contains only the rows in the specified sequence.
(Inherited from MatrixT.)
Public methodGetNonzeroElements
Returns the nonzero components
Public methodGetObjectData
Populates a SerializationInfo with the values needed to serialize the target object.
(Inherited from MatrixT.)
Public methodGetParallelColumnEnumerator
Returns a partitioner that allows you to iterate over the rows of this instance in parallel.
(Inherited from MatrixT.)
Public methodGetParallelRowEnumerator
Returns a partitioner that allows you to iterate over the rows of this instance in parallel.
(Inherited from MatrixT.)
Public methodGetPseudoInverse
Calculates the Moore-Penrose pseudo-inverse of this matrix.
(Inherited from MatrixT.)
Public methodGetQLDecomposition
Returns the QL decomposition of the matrix.
(Inherited from MatrixT.)
Public methodGetQLDecomposition(Boolean)
Returns the QL decomposition of the matrix.
(Inherited from MatrixT.)
Public methodGetQRDecomposition
Returns the QR decomposition of the matrix.
(Inherited from MatrixT.)
Public methodGetQRDecomposition(Boolean)
Returns the QR decomposition of the matrix.
(Inherited from MatrixT.)
Public methodGetRow(Int32)
Returns a row vector for this instance that points at the specified row.
(Inherited from MatrixT.)
Public methodGetRow(Int32, Intent)
Returns a row vector for this instance that points at the specified row.
(Inherited from MatrixT.)
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 MatrixT.)
Public methodGetRow(Int32, Int32, Int32)
Returns a row vector for this instance over the specified range.
(Inherited from MatrixT.)
Public methodGetRow(Int32, Int32, Int32, Intent)
Returns a row vector for this instance over the specified range.
(Inherited from MatrixT.)
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 MatrixT.)
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.
(Inherited from MatrixT.)
Protected methodGetRowCore
Returns a row vector for this instance starting at the specified row and column and of the specified length.
(Inherited from MatrixT.)
Public methodGetRowEnumerator
Returns an enumerator that allows you to iterate over the rows of this instance.
(Inherited from MatrixT.)
Public methodGetRows(Subset)
Returns a matrix containing only the rows in the specified subset.
(Inherited from MatrixT.)
Public methodGetRows(Int32, Int32)
Returns a matrix that contains only the specified rows of the current matrix.
(Inherited from MatrixT.)
Public methodGetRowsR(IEnumerableR)
Returns a new matrix that contains only the rows in the specified sequence.
(Inherited from MatrixT.)
Public methodGetRowSums
Returns the sums of the components of each row of the matrix.
(Overrides MatrixTGetRowSums.)
Public methodGetRQDecomposition
Returns the RQ decomposition of the matrix.
(Inherited from MatrixT.)
Public methodGetRQDecomposition(Boolean)
Returns the RQ decomposition of the matrix.
(Inherited from MatrixT.)
Public methodGetSingularValueDecomposition
Returns the singular value decomposition of the matrix.
(Inherited from MatrixT.)
Public methodGetSingularValueDecomposition(MatrixT)
Returns the generalized singular value decomposition of the matrix and another matrix.
(Inherited from MatrixT.)
Public methodGetSingularValueDecomposition(SingularValueDecompositionFactors)
Returns the singular value decomposition of the matrix.
(Inherited from MatrixT.)
Public methodGetSingularValueDecomposition(MatrixT, GeneralizedSingularValueDecompositionFactors)
Returns the generalized singular value decomposition of the matrix and another matrix.
(Inherited from MatrixT.)
Public methodGetSingularValueDecomposition(SingularValueDecompositionFactors, Boolean)
Returns the singular value decomposition of the matrix.
(Overrides MatrixTGetSingularValueDecomposition(SingularValueDecompositionFactors, Boolean).)
Public methodGetSingularValueDecomposition(MatrixT, GeneralizedSingularValueDecompositionFactors, Boolean)
Returns the generalized singular value decomposition of the matrix and another matrix.
(Inherited from MatrixT.)
Public methodGetSingularValueDecomposition(SingularValueDecompositionFactors, Int32, Double, Int32, Int32, Int32, Double, Double)
Returns the singular value decomposition of the matrix.
Public methodGetSingularValues
Gets a vector containing the singular values of the matrix.
(Inherited from MatrixT.)
Public methodGetSubmatrix(Range, Range)
Returns a sub-matrix of this instance.
(Inherited from MatrixT.)
Public methodGetSubmatrix(Range, Range, TransposeOperation)
Returns a sub-matrix of this instance.
(Inherited from MatrixT.)
Public methodGetSubmatrix(Int32, Int32, Int32, Int32)
Returns a sub-matrix of this instance.
(Inherited from MatrixT.)
Public methodGetSubmatrix(Int32, Int32, Int32, Int32, Int32, Int32, TransposeOperation, Intent)
Returns a sub-matrix of this instance.
(Inherited from MatrixT.)
Protected methodGetSubmatrixCore
Returns a sub-matrix of this matrix.
(Inherited from MatrixT.)
Public methodGetSymmetricIndefiniteDecomposition
Returns the symmetric indefinite (Bunch-Kaufman) decomposition of the matrix.
(Inherited from MatrixT.)
Public methodGetSymmetricIndefiniteDecomposition(Boolean)
Returns the symmetric indefinite (Bunch-Kaufman) decomposition of the matrix.
(Inherited from MatrixT.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetValue(Int32, Int32)
Gets the matrix component at the specified position.
(Overrides MatrixTGetValue(Int32, Int32).)
Public methodGetValue(Int32, Int32)
Gets the matrix element at the specified position.
(Inherited from MatrixT.)
Public methodGetValues
Infrastructure.
(Inherited from MatrixT.)
Protected methodGreaterThanCore(MatrixT, MatrixBoolean)
Checks if the elements of one matrix are greater than the corresponding elements of another matrix.
(Inherited from MatrixT.)
Protected methodGreaterThanOrEqualToCore(MatrixT, MatrixBoolean)
Checks if the elements of one matrix are greater than or equal to the corresponding elements of another matrix.
(Inherited from MatrixT.)
Protected methodHypotCore
Computes the square root of the sum of the squared corresponding elements of this matrix and another matrix.
(Inherited from MatrixT.)
Protected methodIncrementNonzeroCount
Called by inheritors to increment the number of nonzero components by the specified amount.
Public methodInfinityNorm
Returns the infinity norm of this matrix.
(Inherited from MatrixT.)
Public methodInsertClique
Inserts a two-dimensional set of values at the specified positions in the sparse matrix.
Public methodInsertColumn
Inserts a set of values at the specified column in the sparse matrix.
Public methodInsertEntries
Inserts a set of values at the specified positions in the sparse matrix.
Public methodInsertEntry
Inserts a value at the specified position in the sparse matrix.
Public methodInsertRow
Inserts a set of values at the specified row in the sparse matrix.
Public methodIsComponentWritable Obsolete.
Returns a value that indicates whether the value of the element at the specified row and column can be changed.
(Inherited from MatrixT.)
Public methodIsElementWritable
Returns a value that indicates whether the value of the element at the specified row and column can be changed.
(Inherited from MatrixT.)
Public methodIsMissing
Returns whether the value at the specified index is missing.
(Inherited from MatrixT.)
Public methodIsSingular
Gets a value indicating whether this matrix is singular.
(Inherited from MatrixT.)
Public methodLeastSquaresSolve(MatrixT)
Solves the system of linear equations for the specified right-hand side matrix in the least squares sense.
(Inherited from LinearOperatorT.)
Public methodLeastSquaresSolve(VectorT)
Solves the system of linear equations for the specified right-hand side vector.
(Inherited from LinearOperatorT.)
Public methodLeastSquaresSolve(DenseMatrixT, Boolean)
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 LinearOperatorT.)
Public methodLeastSquaresSolve(DenseVectorT, Boolean)
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 LinearOperatorT.)
Public methodLeastSquaresSolveInto(MatrixT, MatrixT)
Solves a system of equations defined by the matrix and multiple right-hand sides in the least squares sense.
(Inherited from MatrixT.)
Public methodLeastSquaresSolveInto(VectorT, VectorT)
Solves a system of equations defined by the matrix and the specified right-hand side in the least squares sense.
(Inherited from MatrixT.)
Protected methodLessThanCore(MatrixT, MatrixBoolean)
Checks if the elements of one matrix are greater than the corresponding elements of another matrix.
(Inherited from MatrixT.)
Protected methodLessThanOrEqualToCore(MatrixT, MatrixBoolean)
Checks if the elements of one matrix are greater than or equal to the corresponding elements of another matrix.
(Inherited from MatrixT.)
Protected methodLog10Core
Computes the base 10 logarithm of the elements of a matrix.
(Inherited from MatrixT.)
Public methodLog10InPlace
Computes the logarithm of the elements of a matrix in-place.
(Inherited from MatrixT.)
Protected methodLogCore(MatrixT)
Computes the logarithm of the elements of a matrix.
(Inherited from MatrixT.)
Protected methodLogCore(T, MatrixT)
Computes the logarithm of the elements of a matrix.
(Inherited from MatrixT.)
Public methodLogInPlace
Computes the logarithm of the elements of a matrix in-place.
(Inherited from MatrixT.)
Public methodLogInPlace(T)
Computes the logarithm of the elements of a matrix in-place.
(Inherited from MatrixT.)
Protected methodMapAsFirstCoreU, V(FuncT, U, V, MatrixU, MatrixV)
Applies a function to the corresponding elements of two matrices.
(Inherited from MatrixT.)
Protected methodMapAsFirstCoreU, V(FuncT, U, V, VectorU, Dimension, MatrixV)
Applies a function to the corresponding elements of a matrix and a vector broadcast along the specified dimension.
(Inherited from MatrixT.)
Protected methodMapAsSecondCoreU, V(FuncU, T, V, MatrixU, MatrixV)
Applies a function to the corresponding elements of two matrices.
(Inherited from MatrixT.)
Protected methodMapAsSecondCoreU, V(FuncU, T, V, VectorU, Dimension, MatrixV)
Applies a function to the corresponding elements of a matrix and a vector broadcast along the specified dimension.
(Inherited from MatrixT.)
Public methodMapColumnsU
Applies a vector function to each column in a matrix and returns the result as a matrix.
(Inherited from MatrixT.)
Public methodMapColumnsInPlace
Applies a function to each column in a matrix in-place.
(Inherited from MatrixT.)
Public methodMapColumnsIntoU
Applies a vector function to each column in a matrix and returns the result as a matrix.
(Inherited from MatrixT.)
Public methodMapInPlace(FuncT, T)
Applies a function in-place to the elements of a matrix.
(Inherited from MatrixT.)
Public methodMapInPlaceU(FuncT, U, T, MatrixU)
Applies a function to the elements of a matrix.
(Inherited from MatrixT.)
Public methodMapIntoU
Applies a function to the elements of a matrix.
(Inherited from MatrixT.)
Public methodMapRowsU
Applies a vector function to each row in a matrix and returns the result as a matrix.
(Inherited from MatrixT.)
Public methodMapRowsInPlace
Applies a function to each column in a matrix and returns the result as a vector.
(Inherited from MatrixT.)
Public methodMapRowsIntoU
Applies a vector function to each row in a matrix and returns the result as a matrix.
(Inherited from MatrixT.)
Public methodMax
Returns the value of the largest element in this matrix.
(Inherited from MatrixT.)
Protected methodMaxCore(MatrixT, MatrixT)
Returns a matrix whose elements are the maximums of the components of two vectors.
(Inherited from MatrixT.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodMin
Returns the value of the smallest element in this matrix.
(Inherited from MatrixT.)
Protected methodMinCore(MatrixT, MatrixT)
Returns a matrix whose elements are the minimums of the components of two vectors.
(Inherited from MatrixT.)
Public methodMultiply(MatrixT)
Applies the linear operator to a matrix.
(Inherited from LinearOperatorT.)
Public methodMultiply(VectorT)
Applies the linear operator to a vector.
(Inherited from LinearOperatorT.)
Public methodMultiply(TransposeOperation, MatrixT) Obsolete.
Multiplies a matrix on the left by this matrix.
(Inherited from LinearOperatorT.)
Public methodMultiply(TransposeOperation, VectorT) Obsolete.
Multiplies a vector on the left by this vector.
(Inherited from LinearOperatorT.)
Public methodMultiply(MatrixOperationSide, TransposeOperation, TransposeOperation, MatrixT) Obsolete.
Multiplies this matrix by another matrix and returns the result.
(Inherited from MatrixT.)
Protected methodMultiplyAndAddAsLeftFactorCore(T, VectorT, T, TransposeOperation, VectorT, VectorT)
Multiplies the matrix with a vector, adds the scaled result to another scaled vector, and returns the result.
(Inherited from MatrixT.)
Protected methodMultiplyAndAddAsLeftFactorCore(T, MatrixT, T, TransposeOperation, MatrixT, TransposeOperation, MatrixT)
Adds the scaled product of two matrices to another matrix.
(Inherited from MatrixT.)
Protected methodMultiplyAndAddAsRightFactorCore
Adds the scaled product of two matrices to another matrix.
(Inherited from MatrixT.)
Protected methodMultiplyAsLeftCore(TransposeOperation, MatrixT, MatrixT)
Multiplies a matrix by the linear operator and returns the result.
(Inherited from LinearOperatorT.)
Protected methodMultiplyAsLeftCore(TransposeOperation, VectorT, VectorT)
Multiplies a vector by the linear operator and returns the result.
(Inherited from MatrixT.)
Protected methodMultiplyAsLeftCore(T, TransposeOperation, MatrixT, TransposeOperation, MatrixT)
Computes the scaled product of two matrices.
(Inherited from MatrixT.)
Protected methodMultiplyAsRightCore
Computes the scaled product of two matrices.
(Inherited from MatrixT.)
Public methodMultiplyAt
Multiplies the component at the specified location by a value.
Protected methodMultiplyCore
Multiplies a matrix by a scalar.
(Inherited from MatrixT.)
Public methodMultiplyInPlace
Multiplies a matrix in-place by the specified factor.
(Inherited from MatrixT.)
Public methodMultiplyTranspose(MatrixT)
Applies the transpose of the linear operator to a matrix.
(Inherited from LinearOperatorT.)
Public methodMultiplyTranspose(VectorT)
Applies the (conjugate) transpose of the linear operator to a vector.
(Inherited from LinearOperatorT.)
Public methodNegateInPlace
Negates a matrix in-place.
(Inherited from MatrixT.)
Protected methodNormInternal
Calculates a matrix norm.
(Inherited from MatrixT.)
Protected methodNotEqualToCore(MatrixT, MatrixBoolean)
Checks if the elements of one matrix are not equal to the corresponding elements of another matrix.
(Inherited from MatrixT.)
Public methodOneNorm
Returns the 1-norm of this matrix.
(Inherited from MatrixT.)
Public methodPermuteColumnsInPlace
Permutes the columns of the matrix using the specified Permutation.
(Inherited from MatrixT.)
Public methodPermuteRowsAndColumnsInPlace(Permutation)
Permutes the rows and columns of the matrix using the specified Permutation.
(Inherited from MatrixT.)
Public methodPermuteRowsAndColumnsInPlace(Permutation, Permutation)
Permutes the rows and columns of the matrix using the specified row and column Permutation.
(Inherited from MatrixT.)
Public methodPermuteRowsInPlace
Permutes the rows of the matrix using the specified Permutation.
(Inherited from MatrixT.)
Public methodProtect
Returns a read-only copy of the matrix.
(Inherited from MatrixT.)
Public methodProtectInPlace
Protects the matrix from changes.
(Inherited from MatrixT.)
Public methodRank
Returns the numerical rank of a matrix.
(Inherited from LinearOperatorT.)
Public methodRank(T)
Returns the numerical rank of a matrix using the specified tolerance.
(Inherited from MatrixT.)
Protected methodReciprocalCore
Computes the inverses (reciprocals) of the elements of a matrix.
(Inherited from MatrixT.)
Public methodReduceU
Applies a function to each row or column in a matrix and returns the result as a vector.
(Inherited from MatrixT.)
Public methodReduceColumnsU
Applies a function to each column in a matrix and returns the result as a vector.
(Inherited from MatrixT.)
Public methodReduceColumnsIntoU
Applies a function to each column in a matrix and returns the result as a vector.
(Inherited from MatrixT.)
Public methodReduceRowsU
Applies a function to each row in a matrix and returns the result as a vector.
(Inherited from MatrixT.)
Public methodReduceRowsIntoU
Applies a function to each row in a matrix and returns the result as a vector.
(Inherited from MatrixT.)
Public methodRemoveWithMissingValues
Returns a new matrix that has the rows or columns that contain missing values removed.
(Inherited from MatrixT.)
Public methodReshape
Returns a matrix that contains the same elements listed columnwise.
(Inherited from MatrixT.)
Public methodReshapeAsVector
Returns a vector that contains the columnwise matrix elements.
(Inherited from MatrixT.)
Public methodScaleColumns Obsolete.
Scales the columns of the matrix by the values specified by a vector.
(Inherited from MatrixT.)
Protected methodScaleColumnsCore
Scales the columns of the matrix by the values specified by a vector.
(Inherited from MatrixT.)
Public methodScaleColumnsInPlace
Scales the columns of the matrix by the values specified by a vector.
(Inherited from MatrixT.)
Public methodScaleRows Obsolete.
Scales the rows of the matrix by the values specified by a vector.
(Inherited from MatrixT.)
Protected methodScaleRowsCore
Scales the rows of the matrix by the values specified by a vector.
(Inherited from MatrixT.)
Public methodScaleRowsInPlace
Scales the rows of the matrix by the values specified by a vector.
(Inherited from MatrixT.)
Public methodSetToZero
Sets all elements of the matrix to zero.
(Inherited from MatrixT.)
Public methodSetValue(T)
Sets all elements of the matrix to the specified value.
(Inherited from MatrixT.)
Public methodSetValue(T, Int32, Int32)
Sets the matrix element at the specified position to the specified value.
(Inherited from MatrixT.)
Public methodSetValue(T, Int32, Int32)
Sets the matrix component at the specified position to the specified value.
(Overrides MatrixTSetValue(T, Int32, Int32).)
Public methodShallowCopy
Makes a shallow copy of this matrix.
(Inherited from MatrixT.)
Protected methodSinCore
Computes the sine of the elements of a matrix.
(Inherited from MatrixT.)
Protected methodSinhCore
Computes the hyperbolic sine of the elements of a matrix.
(Inherited from MatrixT.)
Public methodSinhInPlace
Computes the hyperbolic sine of the elements of a matrix in-place.
(Inherited from MatrixT.)
Public methodSinInPlace
Computes the sine of the elements of a matrix in-place.
(Inherited from MatrixT.)
Public methodSolve(MatrixT)
Solves the system of linear equations for the specified right-hand side matrix.
(Inherited from LinearOperatorT.)
Public methodSolve(VectorT)
Solves the system of linear equations for the specified right-hand side vector.
(Inherited from LinearOperatorT.)
Public methodSolve(DenseMatrixT, Boolean)
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 LinearOperatorT.)
Public methodSolve(DenseVectorT, Boolean)
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 LinearOperatorT.)
Public methodSolveInto(MatrixT, MatrixT)
Solves a system of equations defined by the matrix and multiple right-hand sides.
(Inherited from LinearOperatorT.)
Public methodSolveInto(VectorT, VectorT)
Solves a system of equations defined by the matrix and the specified right-hand side.
(Inherited from LinearOperatorT.)
Public methodSolveInto(TransposeOperation, MatrixT, MatrixT)
Solves a system of equations defined by the matrix and multiple right-hand sides.
(Inherited from MatrixT.)
Public methodSolveInto(TransposeOperation, VectorT, VectorT)
Solves a system of equations defined by the matrix and the specified right-hand side.
(Inherited from MatrixT.)
Public methodSolveTranspose(MatrixT)
Solves the transposed system of linear equations for the specified right-hand side matrix.
(Inherited from LinearOperatorT.)
Public methodSolveTranspose(VectorT)
Solves the system of linear equations for the specified right-hand side vector.
(Inherited from LinearOperatorT.)
Public methodSolveTranspose(DenseMatrixT, 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 LinearOperatorT.)
Public methodSolveTranspose(DenseVectorT, 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 LinearOperatorT.)
Public methodSolveTransposeInto(MatrixT, MatrixT)
Solves a system of equations defined by the matrix and multiple right-hand sides.
(Inherited from LinearOperatorT.)
Public methodSolveTransposeInto(VectorT, VectorT)
Solves a system of equations defined by the matrix and the specified right-hand side.
(Inherited from LinearOperatorT.)
Public methodSortColumns
Sorts each column of the matrix in ascending order.
(Inherited from MatrixT.)
Public methodSortColumns(SortOrder)
Sorts each column of the matrix in the specified order.
(Inherited from MatrixT.)
Public methodSortRows
Sorts each row of the matrix in ascending order.
(Inherited from MatrixT.)
Public methodSortRows(SortOrder)
Sorts each row of the matrix in the specified order.
(Inherited from MatrixT.)
Protected methodSparseGetValue
Gets the matrix component at the specified position.
Protected methodSparseSetValue
Sets the matrix component at the specified position to the specified value.
Protected methodSqrtCore
Computes the square root of the elements of a matrix.
(Inherited from MatrixT.)
Public methodSqrtInPlace
Computes the square root of the elements of a matrix in-place.
(Inherited from MatrixT.)
Protected methodSubtractAsLeftCore
Subtracts a scalar from a matrix.
(Inherited from MatrixT.)
Protected methodSubtractAsRightCore
Subtracts a matrix from a scalar.
(Inherited from MatrixT.)
Public methodSubtractAt
Subtracts a value from the component at the specified location.
Public methodSubtractInPlace(T)
Subtracts a scalar value from the elements of this matrix in-place.
(Inherited from MatrixT.)
Public methodSubtractInPlace(MatrixT)
Subtracts another matrix from this matrix in-place.
(Inherited from MatrixT.)
Public methodSubtractInPlace(VectorT, Dimension)
Subtracts a vector broadcast along the specified dimension from this matrix in-place.
(Inherited from MatrixT.)
Public methodSum
Returns the sum of the elements of the matrix.
(Inherited from MatrixT.)
Public methodSummarize
Returns a summary of the contents of the matrix using the default summary options.
(Inherited from MatrixT.)
Public methodSummarize(SummaryOptions)
Returns a summary of the contents of the matrix using the specified options.
(Inherited from MatrixT.)
Public methodSwapColumns
Swaps the columns with the specified indices.
(Inherited from MatrixT.)
Public methodSwapRows
Interchanges the specified rows of the matrix.
(Overrides MatrixTSwapRows(Int32, Int32).)
Protected methodTanCore
Computes the tangent of the elements of a matrix.
(Inherited from MatrixT.)
Protected methodTanhCore
Computes the hyperbolic tangent of the elements of a matrix.
(Inherited from MatrixT.)
Public methodTanhInPlace
Computes the hyperbolic tangent of the elements of a matrix in-place.
(Inherited from MatrixT.)
Public methodTanInPlace
Computes the tangent of the elements of a matrix in-place.
(Inherited from MatrixT.)
Public methodToArray
Gets the elements of the vector.
(Inherited from MatrixT.)
Public methodToArray(MatrixElementOrder)
Gets the elements of the vector.
(Inherited from MatrixT.)
Public methodToDataFrameR, C
Converts a matrix to a data frame with the same row and column indexes.
(Inherited from MatrixT.)
Public methodToDataFrameR, C(IndexR, IndexC)
Converts a matrix to a data frame with the same row and column indexes.
(Inherited from MatrixT.)
Public methodToDenseMatrix
Makes a copy of this instance and returns it as a dense matrix.
(Inherited from MatrixT.)
Public methodToHermitianMatrix
Returns a new HermitianMatrixT extracted from a part of the matrix.
(Inherited from MatrixT.)
Public methodToString
Returns a string that represents the current object.
(Inherited from MatrixT.)
Public methodToString(String)
Returns a String representation of this MatrixT.
(Inherited from MatrixT.)
Public methodToString(String, IFormatProvider)
Returns a String representation of this MatrixT.
(Inherited from MatrixT.)
Public methodToSymmetricMatrix
Returns a new SymmetricMatrixT extracted from a part of the matrix.
(Inherited from MatrixT.)
Public methodTrace
Gets the sum of the diagonal elements of this matrix.
(Inherited from MatrixT.)
Public methodTranspose
Returns the transpose of this instance.
(Inherited from MatrixT.)
Public methodTryEnsureWritable
Ensures that the element at the specified index in the vector can be written to.
(Inherited from MatrixT.)
Public methodTryEnsureWritable(Int32, Int32)
Ensures that the element at the specified index in the vector can be written to.
(Inherited from MatrixT.)
Public methodTryEnsureWritable(Int32, Int32, Int32, Int32)
Ensures that the element at the specified index in the vector can be written to.
(Inherited from MatrixT.)
Public methodTwoNorm
Returns the two-norm of this matrix.
(Inherited from MatrixT.)
Public methodUnscaleColumns Obsolete.
Unscales the columns of the matrix by the reciprocal of the values specified by a vector.
(Inherited from MatrixT.)
Protected methodUnscaleColumnsCore
Unscales the columns of the matrix by the reciprocal of the values specified by a vector.
(Inherited from MatrixT.)
Public methodUnscaleColumnsInPlace
Unscales the columns of the matrix by the reciprocal of the values specified by a vector.
(Inherited from MatrixT.)
Public methodUnscaleRows Obsolete.
Unscales the rows of the matrix by the reciprocal of the values specified by a vector.
(Inherited from MatrixT.)
Protected methodUnscaleRowsCore
Unscales the rows of the matrix by the reciprocal of the values specified by a vector.
(Inherited from MatrixT.)
Public methodUnscaleRowsInPlace
Unscales the rows of the matrix by the reciprocal of the values specified by a vector.
(Inherited from MatrixT.)
Top
Extension Methods

  NameDescription
Public Extension MethodAbsT
Computes the absolute value of the elements of a matrix.
(Defined by Matrix.)
Public Extension MethodAcosT
Computes the inverse cosine of the elements of a matrix.
(Defined by Matrix.)
Public Extension MethodAcoshT
Computes the inverse hyperbolic cosine of the elements of a matrix.
(Defined by Matrix.)
Public Extension MethodAddScaledProductT(T, MatrixT, MatrixT)Overloaded.
Adds the scaled product of two matrices to another matrix.
(Defined by Matrix.)
Public Extension MethodAddScaledProductT(T, MatrixT, TransposeOperation, MatrixT, TransposeOperation)Overloaded.
Adds the scaled product of two matrices to another matrix.
(Defined by Matrix.)
Public Extension MethodAsinT
Computes the inverse sine of the elements of a matrix.
(Defined by Matrix.)
Public Extension MethodAsinhT
Computes the inverse hyperbolic sine of the elements of a matrix.
(Defined by Matrix.)
Public Extension MethodAtanT
Computes the inverse tangent of the elements of a matrix.
(Defined by Matrix.)
Public Extension MethodAtanhT
Computes the inverse hyperbolic tangent of the elements of a matrix.
(Defined by Matrix.)
Public Extension MethodCeilingT
Computes the smallest integer greater than or equal to the elements of a matrix.
(Defined by Matrix.)
Public Extension MethodColumnMeansT
Returns a vector containing the means of the columns of a matrix.
(Defined by Stats.)
Public Extension MethodConjugateT
Returns the conjugate of a matrix.
(Defined by Matrix.)
Public Extension MethodConjugateIntoT
Conjugates the elements of a matrix.
(Defined by Matrix.)
Public Extension MethodCosT
Computes the cosine of the elements of a matrix.
(Defined by Matrix.)
Public Extension MethodCoshT
Computes the hyperbolic cosine of the elements of a matrix.
(Defined by Matrix.)
Public Extension MethodCovarianceMatrixT
Returns the covariance matrix for the columns in a matrix.
(Defined by Stats.)
Public Extension MethodExpT
Computes the exponential of the elements of a matrix.
(Defined by Matrix.)
Public Extension MethodFloorT
Computes the largest integer less than or equal to the elements of a matrix.
(Defined by Matrix.)
Public Extension MethodLogT
Returns a matrix whose elements are the logarithms of the elements of another matrix.
(Defined by Matrix.)
Public Extension MethodLog10T
Returns a matrix whose elements are the base 10 logarithms of the elements of another matrix.
(Defined by Matrix.)
Public Extension MethodMakeDistributedT
Returns a distributed version of a matrix.
(Defined by DistributedExtensions.)
Public Extension MethodMaxT(MatrixT)Overloaded.
Returns a matrix whose elements are the maximums of the components of two vectors.
(Defined by Matrix.)
Public Extension MethodMaxT(T)Overloaded.
Returns a matrix whose elements are the maximum of the components of a matrix and a real number.
(Defined by Matrix.)
Public Extension MethodMaxIntoT(MatrixT, MatrixT)Overloaded.
Returns a matrix whose elements are the maximums of the components of two vectors.
(Defined by Matrix.)
Public Extension MethodMaxIntoT(T, MatrixT)Overloaded.
Returns a matrix whose elements are the maximum of the components of a matrix and a real number.
(Defined by Matrix.)
Public Extension MethodMinT(MatrixT)Overloaded.
Returns a matrix whose elements are the minimums of the components of two vectors.
(Defined by Matrix.)
Public Extension MethodMinT(T)Overloaded.
Returns a matrix whose elements are the minimum of the components of a matrix and a real number.
(Defined by Matrix.)
Public Extension MethodMinIntoT(MatrixT, MatrixT)Overloaded.
Returns a matrix whose elements are the minimums of the components of two vectors.
(Defined by Matrix.)
Public Extension MethodMinIntoT(T, MatrixT)Overloaded.
Returns a matrix whose elements are the minimum of the components of a matrix and a real number.
(Defined by Matrix.)
Public Extension MethodReciprocalT
Returns a matrix whose elements are the inverses (reciprocals) of the components of another matrix.
(Defined by Matrix.)
Public Extension MethodReciprocalIntoT
Computes the inverses (reciprocals) of the elements of a matrix.
(Defined by Matrix.)
Public Extension MethodRowMeansT
Returns a vector containing the means of the rows of a matrix.
(Defined by Stats.)
Public Extension MethodSinT
Computes the sine of the elements of a matrix.
(Defined by Matrix.)
Public Extension MethodSinhT
Computes the hyperbolic sine of the elements of a matrix.
(Defined by Matrix.)
Public Extension MethodSqrtT
Computes the square root of the elements of a matrix.
(Defined by Matrix.)
Public Extension MethodTanT
Computes the tangent of the elements of a matrix.
(Defined by Matrix.)
Public Extension MethodTanhT
Computes the hyperbolic tangent of the elements of a matrix.
(Defined by Matrix.)
Public Extension MethodToJsonT
Returns a string containing a matrix in JSON format.
(Defined by JsonFile.)
Top
Remarks

Use the SparseMatrixT class to represent matrices with only a small proportion of nonzero components. Only the nonzero elements of the matrix are stored. This not only saves memory, but also allows many calculations to be performed faster.

The components of a sparse matrix can be specified in a variety of ways. A common method is to supply the rows, columns, and values of the nonzero components. Another way is to build up the matrix using the

Insert
methods: InsertEntry(T, Int32, Int32), InsertEntries(T, Int32, Int32), InsertRow(Int32, T, Int32), InsertColumn(Int32, T, Int32), InsertClique(MatrixT, Int32, Int32). Individual components can also be set, but this is generally less efficient.

Sparse matrices can also be read directly from data files in Matrix Market format.

The NonzeroCount property returns the number of nonzero components. The FillFactor property returns a number between 0 and 1 that is the proportion of nonzero components to the total number of components in the matrix. To iterate through the nonzero components of a sparse matrix, use the NonzeroElements property. This property enumerates RowColumnValueTripletT objects, each containing the row, column, and value of a nonzero component.

A disadvantage of sparse matrices is that working with individual components tends to be slower. Every access usually requires a lookup in a list. To avoid duplicate lookups for elementary operations on components, use one of the specialized methods: AddAt(Int32, Int32, T), SubtractAt(Int32, Int32, T), MultiplyAt(Int32, Int32, T) and DivideAt(Int32, Int32, T).

The SparseMatrixT class is an abstract base class for all types that represent sparse matrices. The class cannot be instantiated. Instead, create instances of one of its derived types:

ClassDescription
SparseCompressedColumnMatrixRepresents a sparse matrix in Compressed Sparse Column (CSC) format, sometimes also called Compressed Column Storage (CCS).
See Also

Reference

Extreme.Mathematics.LinearAlgebra Namespace

Copyright (c) 2004-2021 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.