Physics: matrices\zeromatrix

\zeromatrixCommand

Used to generate all-zero matrix entries for given row and column counts, typically inside a matrix wrapper

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

Syntax#

\zeromatrixm: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#

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

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

Equivalent forms#

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

See also#

Test cases#

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