MCPcopy
hub / github.com/TheAlgorithms/Python / copy

Method copy

linear_algebra/src/lib.py:129–133  ·  view source on GitHub ↗

copies this vector and returns it.

(self)

Source from the content-addressed store, hash-verified

127 raise Exception("invalid operand!")
128
129 def copy(self) -> Vector:
130 """
131 copies this vector and returns it.
132 """
133 return Vector(self.__components)
134
135 def component(self, i: int) -> float:
136 """

Callers 15

test_copyMethod · 0.95
mine_treeFunction · 0.80
report_generatorFunction · 0.80
fitMethod · 0.80
_choose_a2Method · 0.80
detectMethod · 0.80
binary_maskFunction · 0.80
pivotMethod · 0.80
median_of_mediansFunction · 0.80
conjugate_gradientFunction · 0.80
solve_linear_systemFunction · 0.80
qr_householderFunction · 0.80

Calls 1

VectorClass · 0.85

Tested by 2

test_copyMethod · 0.76
test_hand_sortedFunction · 0.64