MCPcopy Create free account
hub / github.com/EmbeddedRPC/erpc / fillMatrix

Function fillMatrix

examples/matrix_multiply_python/matrix_multiply.py:40–41  ·  view source on GitHub ↗
(size, maxRandomValue)

Source from the content-addressed store, hash-verified

38
39## Create matrix with specified size and random data
40def fillMatrix(size, maxRandomValue):
41 return [[random.randrange(maxRandomValue) for x in range(size)] for e in range(size)]
42
43## Print matrix
44def printMatrix(matrix):

Callers 1

runClientFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected