{{indexmenu_n>999}}
====== Zero ======
###
Matrix.Zero(//n//) returns a zero matrix of size $n\times n$.
If the option "Userdata" is set to true (default is false) the output is returned as a pointer rather than a table of tables (compare //[[documentation:language_reference:objects:matrix:functions:ToUserdata|Matrix.ToUserdata()]]//).
###
===== Example =====
==== Input ====
print(Matrix.Zero(3))
==== Result ====
{ { 0 , 0 , 0 } ,
{ 0 , 0 , 0 } ,
{ 0 , 0 , 0 } }
===== Table of contents =====
{{indexmenu>.#1|msort}}