Calculate the matrix giving the linear interpolation of regularly spaced points.
Number (integer) of points in output space
Number (integer) of points in the input function (or space)
A relative tolerance to detect zero singular values.
The general principle is, considering a function for which we know
m equally spaced points (for instance 1/
m, ..., 1), to compute the matrix giving the linear
n equally spaced points (for instance
n, ..., 1).
The function works whether
m is the largest.
The function is vectorized, so
n can be vectors of
integers. In this case, they have to be of the same size and the
resulting matrix is block diagonal.
m matrix if they are integer, else a
1 2 3 4
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.