13.1.2 Duplicate_Mathematic_Vector Procedure

The Duplicate_Mathematic_Vector procedure duplicates a Mathematic Vector - that is, it initializes a new Mathematic Vector with the same structure as the old Mathematic Vector, and copies the internals. Note that the internal structures associated with executing MatVecs (i.e. the DV and the OVs) are not duplicated.

Calling syntax:

call Duplicate (MV_duplicate, MV_source, status)

Input variables:

 MV_source  The Mathematic_Vector to be duplicated.

Output variables:

 MV_duplicate  The Mathematic_Vector object is now a copy of the MV_source Mathematic Vector.
 status  If present, the status variable is set to either 'Memory Error' or 'Success' depending on program execution. If not present, the procedure aborts if unsuccessful when the DEBUG_LEVEL is set high enough.

The Duplicate_Mathematic_Vector code listing contains additional documentation.

Michael L. Hall