Create an array filled entirely with zeros.
Numeric.create.zero(shape)Builds an array filled with zeros.
- Parameters:
shape: Target dimensions of the created array
- Returns: Array filled with zeros
- NumPy: Covers
np.zeros,np.zeros_likethrough a single Numerix method.
import Numeric from '@neabyte/numerix'
const matrix = Numeric.create.zero([2, 2])
console.log(matrix)
// [[0,0],[0,0]]import Numeric from '@neabyte/numerix'
const values = Numeric.create.zero([3])
console.log(values)
// [0,0,0]import Numeric from '@neabyte/numerix'
const matrix = Numeric.create.zero([2, 3])
console.log(matrix)
// [[0,0,0],[0,0,0]]import Numeric from '@neabyte/numerix'
const values = Numeric.create.zero([1])
console.log(values)
// [0]