| Visual Basic (Declaration) | |
|---|---|
Public Function New( _ ByVal rows As Integer, _ ByVal cols As Integer, _ ByVal capacity As Integer _ ) | |
| Visual Basic (Usage) | |
|---|---|
Dim rows As Integer Dim cols As Integer Dim capacity As Integer Dim instance As New SparseMatrix(rows, cols, capacity) | |
Parameters
- rows
- The number of rows of the sparse matrix.
- cols
- The number of columns of the sparse matrix.
- capacity
- Specifies the maximum number of elements that the internal storage can hold without resizing.
The internal storage of the SparseMatrix is dynamically increased when required but it is preferable to allocate the required space from the beginning, if the number of elements is known.
Target Platforms: Windows 2000, Windows XP, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows 7