zeros¶
- MapdlMath.zeros(nrow, ncol=None, dtype=<class 'numpy.float64'>)¶
Create a vector or matrix containing all zeros.
- Parameters
- Returns
Examples
Create a zero vector.
>>> from ansys.mapdl.core import launch_mapdl >>> mapdl = launch_mapdl() >>> mm = mapdl.math() >>> vec = mm.zeros(10)
Create a zero matrix.
>>> mat = mm.zeros(10, 10)