{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Definition\n\nLet $n \\ge 1$.\nLet $D = (d_{ij})$ be a real $n \\times n$ matrix.\nIt is a *Euclidean distance matrix* if some integer $k \\ge 1$ and points $x_1, \\ldots, x_n \\in \\R^k$ satisfy\n$$d_{ij} = \\norm{x_i - x_j}^2 \\quad \\text{for all } i, j,$$\nwhere $\\norm{x_i - x_j}$ is the [[Euclidean distance|0C95TG69SG]] of $x_i$ and $x_j$.\nThe points $x_1, \\ldots, x_n$ are then said to realize $D$.\n\n## Remarks\n\nEvery Euclidean distance matrix is symmetric, has zero diagonal and has nonnegative entries.\n\nExample: the points $0, 1, 3 \\in \\R$ give\n$$D = \\begin{pmatrix} 0 \u0026 1 \u0026 9 \\\\ 1 \u0026 0 \u0026 4 \\\\ 9 \u0026 4 \u0026 0 \\end{pmatrix},$$\nsince $1^2 = 1$, $3^2 = 9$ and $2^2 = 4$.\n\nNon-example: the matrix with rows $(0, 1, 9)$, $(1, 0, 1)$ and $(9, 1, 0)$ is symmetric with zero diagonal, but it is not a Euclidean distance matrix.\nPoints realizing it would have distances $1$, $1$ and $3$, and $3 \u003e 1 + 1$ violates the triangle inequality.\n\nSome authors use the distances themselves instead of their squares.\n",
  "commit": "ff8a40749dc16545e3d2fc637f6b0196e81d0bfa",
  "front": {
    "defines": "1BCJ7A73KS",
    "kind": "definition",
    "msc": [
      "51K05",
      "15B48"
    ],
    "name": "Euclidean distance matrix",
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Euclidean_distance_matrix"
      }
    ],
    "tag": "668HBS6C06",
    "uses": [
      "0C95TG69SG"
    ]
  },
  "kind": "definition",
  "link": "https://tamnd.github.io/math2/node/668HBS6C06/",
  "links": [
    {
      "field": "defines",
      "target": "1BCJ7A73KS"
    },
    {
      "field": "uses",
      "target": "0C95TG69SG"
    }
  ],
  "markdown": "https://tamnd.github.io/math2/node/668HBS6C06.md",
  "msc": [
    "51K05",
    "15B48"
  ],
  "name": "Euclidean distance matrix",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/668/668HBS6C06.md",
  "status": null,
  "tag": "668HBS6C06",
  "uri": "m2://668HBS6C06",
  "url": "https://tamnd.github.io/math2/wiki/euclidean-distance-matrix-definition/",
  "writing": {
    "tag": "668HBS6C06",
    "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
      }
    ]
  }
}
