represents the domain of matrices of dimensions d1×d2.


represents the domain of matrices of dimensions d1×d2, with components in the domain dom.


represents the subdomain of matrices d1×d2 with symmetry sym.


  • Valid dimension specifications di in Matrices[{d1,d2},dom,sym] are positive integers. It is also possible to work with symbolic dimension specifications.
  • Valid component domain specifications dom are either Reals or Complexes. Matrices[{d1,d2}] uses Complexes by default.
  • For matrices, the symmetry sym can be either Symmetric[{1,2}], Antisymmetric[{1,2}], or {}, which represents the trivial symmetry.
  • If the symmetry sym is nontrivial, then the dimensions d1 and d2 must coincide.


open allclose all

Basic Examples  (1)

An antisymmetric real matrix in dimension :

The Dot product of with itself is also a × matrix:

But now it is a symmetric matrix:

Scope  (1)

Declare matrices of any dimensions, with complex entries and no symmetry:

Symmetric real 3×3 matrices:

Antisymmetric matrices:

Applications  (3)

Symbolic matrix algebra:

Check whether a matrix belongs to a given domain:

Conditions involving symbolic parameters may be converted into simpler conditions:

Check a subdomain relation:

Properties & Relations  (3)

Matrices can also be defined using Arrays with rank 2. These two assumptions are equivalent:

Matrices must be rectangular:

Two alternative ways of checking numerical matrices:

Possible Issues  (2)

Addition of symbolic and explicit matrices is determined by the Listable attribute of Plus:

Hence, listability will in general affect operations that simultaneously involve both symbolic and explicit matrices.

The zero matrix may be represented as 0 in symbolic computations:

Wolfram Research (2012), Matrices, Wolfram Language function,


Wolfram Research (2012), Matrices, Wolfram Language function,


@misc{reference.wolfram_2020_matrices, author="Wolfram Research", title="{Matrices}", year="2012", howpublished="\url{}", note=[Accessed: 19-January-2021 ]}


@online{reference.wolfram_2020_matrices, organization={Wolfram Research}, title={Matrices}, year={2012}, url={}, note=[Accessed: 19-January-2021 ]}


Wolfram Language. 2012. "Matrices." Wolfram Language & System Documentation Center. Wolfram Research.


Wolfram Language. (2012). Matrices. Wolfram Language & System Documentation Center. Retrieved from