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

Function zeroVector

linear_algebra_python/src/lib.py:146–152  ·  view source on GitHub ↗

returns a zero-vector of size 'dimension'

(dimension)

Source from the content-addressed store, hash-verified

144 self.__components[pos] = value
145
146def zeroVector(dimension):
147 """
148 returns a zero-vector of size 'dimension'
149 """
150 #precondition
151 assert(isinstance(dimension,int))
152 return Vector([0]*dimension)
153
154
155def unitBasisVector(dimension,pos):

Callers 2

test_zeroVectorMethod · 0.85
__mul__Method · 0.85

Calls 1

VectorClass · 0.85

Tested by 1

test_zeroVectorMethod · 0.68