| Visual Basic (Declaration) | |
|---|---|
Public Overloads Sub RemoveZeros() | |
| Visual Basic (Usage) | |
|---|---|
Dim instance As SparseMatrix instance.RemoveZeros() | |
| C# | |
|---|---|
public void RemoveZeros() | |
| C++/CLI | |
|---|---|
public: void RemoveZeros(); | |
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.
Target Platforms: Windows 2000, Windows XP, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows 7