Zero Matrix

class fastmat.Zero

Bases: fastmat.Matrix.Matrix

\[x \mapsto 0\]

The zero matrix only needs the dimension \(n\) of the vectors it acts on. It is very fast and very good!

>>> import fastmat as fm
>>> # define the parameter
>>> n = 10
>>> # construct the matrix
>>> O = fm.Zero(n)

Initialize Zero matrix instance.

numRows : int

Height (row count) of the desired zero matrix.

numCols : int

Width (column count) of the desired zero matrix.

**options : optional

Additional keyworded arguments. Supports all optional arguments supported by fastmat.Matrix.