Physics: matrices\zmat

\zmatCommand

Used as a short alias for generating an all-zero matrix of given dimensions, typically inside a matrix wrapper

\zmat{1}{1}
Available in
physics
Kind
prefix
Allowed mode
math
Frequency
Not measured
Commonality
low
Renderer support
PackageMathJaxKaTeXXeTeX
physicsMathJax: FullKaTeX: NoneXeTeX: Full
About the test scope

Syntax#

\zmatm:I{1}integerm:I{1}integer

Argspec m:I m:I — two mandatory arguments. Reading argspecs

In TeXForm#

TeXForm parses this entry as prefix syntax; the package determines its argument specification.

Expands to#

\zmat{#1}{#2} \xmat{0}{#1}{#2}

BaseMethods.Macro reads two arguments, rewrites to \xmat with fixed element 0, and reparses. The downstream XMatrix implementation later expects integer dimensions.

physics/zmat-to-xmatfrom Faithfulrender

Expand zmat to the explicit xmat zero-filled builder.

\zmat{#1}{#2} \xmat{0}{#1}{#2}

Equivalent forms#

  • \xmat{0}{#1}{#2}exact
  • \zeromatrix{#1}{#2}exact

See also#

Test cases#

physics
InputCaseMathJaxKaTeXXeTeX
\zmat{1}{1}Positive · baselinePassFailPass
\zmat 1{1}Positive · bare[0]PassFailPass
\zmat{1}1Positive · bare[1]PassFailPass
\zmat{a}{1}Negative · neg:I[0]FailFailFail
\zmat{1}{a}Negative · neg:I[1]FailFailFail
All 27 in Physics: matrices