File: mtx_distance2.md

package info (click to toggle)
pd-iemmatrix 0.6.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,576 kB
  • sloc: ansic: 15,440; makefile: 291; sh: 169
file content (25 lines) | stat: -rw-r--r-- 615 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
---
title: mtx_distance2
description: calculate the matrix of squared euclidean distances between two sets of vectors
categories:
- object
pdcategory: Misc
see_also:
- mtx_distance
inlets:
  1st:
  - type: matrix
    description: LxN matrix
  2nd:
  - type: matrix
    description: MxN matrix
outlets:
  1st:
  - type: matrix
    description: LxM matrix
---

{{< pdobj mtx_distance2 >}} gets all the *squared* euclidean distances between two sets of vectors.

It behaves identical to the {{< pdobj mtx_distance >}} object,
but does not perform the final \\(\sqrt{\dots}\\) operation, so it is a bit more efficient.