.NET Matrix Library
SparseMatrix Class Members
See Also  Properties  Methods  Send comments on this topic


The following tables list the members exposed by SparseMatrix.

Public Constructors

 NameDescription
public ConstructorSparseMatrix ConstructorOverloaded.   
Top

Public Properties

 NameDescription
public PropertyCapacityGets or sets the number of elements that the internal storage of the sparse matrix can hold without resizing.  
public PropertyColsGets or sets the number of sparse matrix columns.  
public PropertyDataThis property is used while serializing and deserializing the SparseMatrix and it is not intended to be used in user code.  
public PropertyGrowFactorGets or sets the number by which the Capacity is multiplied whenever a greater internal storage for the matrix is needed.  
public PropertyItemGets or sets a single element of the sparse matrix.  
public PropertyNumElementsGets the number of elements contained in the internal storage of the sparse matrix.  
public PropertyRowsGets or sets the number of sparse matrix rows.  
public PropertySymmetricIndicates whether this instance represents a symmetric sparse matrix.  
Top

Public Methods

 NameDescription
public Methodstatic (Shared in Visual Basic)Add

Adds two sparse matrices. The operation is defined as:

 C=A+beta*op(B)

 
public MethodCloneCreates a deep copy of the current sparse matrix.  
public MethodEqualsOverloaded. Returns a value indicating if this sparse matrix is equal to another sparse matrix.  
public MethodFillRandomOverloaded. Fills the SparseMatrix object with random values ranging from 1 to 10 using a density of 1%.  
public MethodGetHashCode  
public MethodGetObjectDataImplements the ISerializable interface and returns the data needed to serialize the SparseMatrix class.  
public Methodstatic (Shared in Visual Basic)MultiplyOverloaded. Returns a scalar-matrix product.  
public Methodstatic (Shared in Visual Basic)NegateReturns the negation of a sparse matrix.  
public MethodRemoveZerosOverloaded. Removes all elements which are close to zero from the internal storage.  
public MethodToDenseConverts the current instance to a dense matrix.  
public MethodToStringOverloaded. Converts this instance of SparseMatrix to a formatted string using the default values for format string, separator, left and right borders, and end of line characters.  
public MethodTransposeReturns the transpose of the sparse matrix.  
Top

Public Operators

public Operator Addition Adds two sparse matrices.
public Operator Equality Tests whether two SparseMatrix objects represent equal matrices.
public Operator Inequality Tests whether two SparseMatrix objects represent non equal matrices.
public Operator Multiplication Overloaded. Multiplies two sparse matrices and result the result into another sparse matrix.
public Operator Subtraction Subtracts a sparse matrix from another sparse matrix.
public Operator Unary Negation Negates a matrix.
public Operator Unary Plus Returns a copy of the sparse matrix.
Top

See Also

.NET Matrix Library Documentation