MCPcopy Index your code
hub / github.com/subbarayudu-j/TheAlgorithms-Python / copy

Method copy

linear_algebra_python/src/lib.py:131–135  ·  view source on GitHub ↗

copies this vector and returns it.

(self)

Source from the content-addressed store, hash-verified

129 else: # error case
130 raise Exception("invalide operand!")
131 def copy(self):
132 """
133 copies this vector and returns it.
134 """
135 return Vector(self.__components)
136 def changeComponent(self,pos,value):
137 """
138 input: an index (pos) and a value

Callers 1

test_copyMethod · 0.95

Calls 1

VectorClass · 0.85

Tested by 1

test_copyMethod · 0.76