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

Function squareZeroMatrix

linear_algebra_python/src/lib.py:306–311  ·  view source on GitHub ↗

returns a square zero-matrix of dimension NxN

(N)

Source from the content-addressed store, hash-verified

304
305
306def squareZeroMatrix(N):
307 """
308 returns a square zero-matrix of dimension NxN
309 """
310 ans = [[0]*N for i in range(N)]
311 return Matrix(ans,N,N)
312
313
314def randomMatrix(W,H,a,b):

Callers 1

test_squareZeroMatrixMethod · 0.85

Calls 1

MatrixClass · 0.85

Tested by 1

test_squareZeroMatrixMethod · 0.68