matrix_tau returns a matrix of differences between two vectors.
vector 2 (default to vector 1 if not specified)
Given two vectors -
N) - as
input, return the
N*M matrix of differences
result[i,j] = x[i] - y[j].
N*M array of differences,
result[i,j] = x[i] - y[j]
Note that in the special case that
x=y we have a square symmetric
result[i,j] = result[j,i]. In the even more special case that
the two vectors are evenly spaced (
x[i] = y[i] = i * delta + const)
then we have a circulant matrix; the
(j-1)th cyclic permutation of the first column. This matrix is
symmetric, Toeplitz and circulant.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.