{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Definition\n\nLet $n \\ge 1$ and let $A = (a_{ij})$ be a real $n \\times n$ [[matrix|0JXZKX526R]].\nThe matrix $A$ is a *Z-matrix* if $a_{ij} \\le 0$ for all $i \\ne j$.\nThe matrix $A$ is an *M-matrix* if it can be written as $A = sI - B$, where:\n\n1. $I$ is the $n \\times n$ [[identity matrix|06DW9BAWB1]] and $s$ is a real number.\n2. $B$ is a [[nonnegative matrix|JPQCCFCY8X]].\n3. $s \\ge \\rho(B)$, where $\\rho(B)$ is the [[spectral radius|9V7YQA85PC]] of $B$.\n\nAn M-matrix is *nonsingular* if moreover $s \u003e \\rho(B)$.\n\n## Remarks\n\nEvery M-matrix is a Z-matrix.\nFor a Z-matrix the choice of $s$ does not matter: whenever $s \\ge \\max_i a_{ii}$, the number $s - \\rho(sI - A)$ is the same.\nExample: $A = \\begin{pmatrix} 2 \u0026 -1 \\\\ -1 \u0026 2 \\end{pmatrix} = 2I - B$ with $B = \\begin{pmatrix} 0 \u0026 1 \\\\ 1 \u0026 0 \\end{pmatrix}$.\nThe eigenvalues of $B$ are $\\pm 1$, so $\\rho(B) = 1 \u003c 2$, and $A$ is a nonsingular M-matrix.\nNon-example: $A = \\begin{pmatrix} 1 \u0026 -2 \\\\ -2 \u0026 1 \\end{pmatrix} = I - B$ with $B = \\begin{pmatrix} 0 \u0026 2 \\\\ 2 \u0026 0 \\end{pmatrix}$.\nHere $\\rho(B) = 2 \u003e 1$, so clause 3 fails; indeed $A$ has the negative eigenvalue $-1$.\nFor a Z-matrix $A$, each of the following conditions is equivalent to $A$ being a nonsingular M-matrix.\n\n1. $A$ is invertible and $A^{-1}$ is nonnegative.\n2. Every [[eigenvalue|0BQAA2BK3Q]] of $A$ has positive real part.\n3. All leading principal minors of $A$ are positive.\n",
  "commit": "547b6eddb8f2feb8d579f2d633d22a27b7e132fc",
  "front": {
    "defines": "DNKXHMGQY1",
    "kind": "definition",
    "msc": [
      "15B48",
      "15A18"
    ],
    "name": "M-matrix",
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/M-matrix"
      }
    ],
    "tag": "C9VJ8DTZWC",
    "uses": [
      "0JXZKX526R",
      "JPQCCFCY8X",
      "9V7YQA85PC",
      "06DW9BAWB1"
    ]
  },
  "kind": "definition",
  "link": "https://math2.tamnd.com/node/C9VJ8DTZWC/",
  "links": [
    {
      "field": "defines",
      "target": "DNKXHMGQY1"
    },
    {
      "field": "uses",
      "target": "0JXZKX526R"
    },
    {
      "field": "uses",
      "target": "JPQCCFCY8X"
    },
    {
      "field": "uses",
      "target": "9V7YQA85PC"
    },
    {
      "field": "uses",
      "target": "06DW9BAWB1"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/C9VJ8DTZWC.md",
  "msc": [
    "15B48",
    "15A18"
  ],
  "name": "M-matrix",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/C9V/C9VJ8DTZWC.md",
  "status": null,
  "tag": "C9VJ8DTZWC",
  "uri": "m2://C9VJ8DTZWC",
  "url": "https://math2.tamnd.com/wiki/m-matrix-definition/",
  "writing": {
    "tag": "C9VJ8DTZWC",
    "kind": "definition",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      },
      {
        "what": "a source with a locator",
        "have": 0,
        "want": 1
      }
    ]
  }
}
