MCPcopy Index your code
hub / github.com/geekcomputers/Python / set

Method set

linear-algebra-python/src/lib.py:55–64  ·  view source on GitHub ↗

input: new components changes the components of the vector. replace the components with newer one.

(self, components)

Source from the content-addressed store, hash-verified

53 self.__components = components
54
55 def set(self, components):
56 """
57 input: new components
58 changes the components of the vector.
59 replace the components with newer one.
60 """
61 if len(components) > 0:
62 self.__components = components
63 else:
64 raise Exception("please give any vector")
65
66 def __str__(self):
67 """

Callers 15

thread_signal.pyFile · 0.80
press_7Method · 0.80
press_8Method · 0.80
press_9Method · 0.80
press_4Method · 0.80
press_5Method · 0.80
press_6Method · 0.80
press_1Method · 0.80
press_2Method · 0.80
press_3Method · 0.80
press_0Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected