.NET Matrix Library
RemoveZeros() Method
See Also  Send Feedback



Removes all elements which are close to zero from the internal storage.

Syntax

Visual Basic (Declaration) 
Public Overloads Sub RemoveZeros() 
Visual Basic (Usage)Copy Code
Dim instance As SparseMatrix
 
instance.RemoveZeros()
C# 
public void RemoveZeros()
C++/CLI 
public:
void RemoveZeros(); 

Remarks

Although the SparseMatrix Class class is designed to store only the non zero elements, it is possible to store zero elements either by direct assignment or as a result of a computation.

The RemoveZeros method removes those elements thus making possible to release unused memory.

This overload of the RemoveZeros method removes elements with absolute value less than 1.0E-15.

Requirements

Target Platforms: Windows 2000, Windows XP, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows 7

See Also

.NET Matrix Library