Zero

Matrix.Zero(n) returns a zero matrix of size $n\times n$.

If the option “Userdata” is set to false (default is true) the output is returned as a table of table rather than a pointer (compare Matrix.ToUserdata() and Matrix.ToTable()).

Example

Input

Example.Quanty
print(Matrix.Zero(3))

Result

{ { 0 , 0 , 0 } , 
  { 0 , 0 , 0 } , 
  { 0 , 0 , 0 } }

Table of contents

Print/export