numpy.matlib.zeros()This function is used to return a new matrix with the values initialized to zeros. SyntaxParametersIt accepts the following parameters.
ReturnA matrix with uninitialized entries is returned. ExampleOutput: [[0. 0. 0.] [0. 0. 0.] [0. 0. 0.]] Example: initializing integer valuesOutput: [[0 0 0] [0 0 0] [0 0 0]] Example: specifying Insertion orderOutput: [[0 0 0] [0 0 0] [0 0 0]] Next Topicnumpy.arrange() |