Copy

wVector.copy
Copies an existing wVector into a new wVector. Consider the following code: import WhitePython as wp

#

v1 = wp.wVector(1,2)

v2 = v1

v1.zero

#

print v1

print v2 You will note that the method zero effects both v1 and v2. The method copy allows you to copy a wVector without destroying the original.

Returns result as wVector.

Example:
import WhitePython as wp

#

v1 = wp.wVector(1,2)

v2 = v1.copy

v1.zero

#

print v1

print v2