MCPcopy Create free account
hub / github.com/subbarayudu-j/TheAlgorithms-Python / __len__

Method __len__

linear_algebra_python/src/lib.py:78–82  ·  view source on GitHub ↗

returns the size of the vector

(self)

Source from the content-addressed store, hash-verified

76 else:
77 raise Exception("index out of range")
78 def __len__(self):
79 """
80 returns the size of the vector
81 """
82 return len(self.__components)
83 def eulidLength(self):
84 """
85 returns the eulidean length of the vector

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected