User`s guide

Utility Library Classes
D-27
MWSparse object has its own MWFlags property. This property overrides the
value of the any flags set on the object whose methods are called.
Sub Clone(ppSparse As MWSparse)
Creates a copy of an MWSparse object.
Parameters.
Return Value.
None.
Remarks. Clone allocates a new MWSparse object and creates a deep copy of the
objects contents. Call this function when a separate object is required instead
of a shared copy of an existing object reference.
Example. The following Visual Basic sample creates a 5-by-5 tridiagonal sparse
array with the following entries:
X = [ 2 -1 0 0 0
-1 2 -1 0 0
0 -1 2 -1 0
0 0 -1 2 -1
0 0 0 -1 2 ]
Sub foo()
Dim x As MWSparse
Dim rows(1 To 13) As Long
Dim cols(1 To 13) As Long
Dim vals(1 To 13) As Double
Dim I As Long, K As Long
On Error GoTo Handle_Error
K = 1
For I = 1 To 4
rows(K) = I
Argument Type Description
ppSparse MWSparse
Reference to an uninitialized
MWSparse object to receive the
copy.