Program functions perform a specific task, as described for each function.
Returns the dot product of two vectors, formally
Performs a vector-vector product and addition operation, formally alpha defaults to 1.0.
Performs a matrix-vector product and addition operation, formally
"notrans" (the
default) or "trans". If set to "trans", the operation is performed on alpha and beta default to 1.0 and 0.0, respectively.
Performs a matrix-matrix product and addition operation, formally
"notrans" (the
default) or "trans". If set to "trans", the operation is performed on alpha and beta default to 1.0 and 0.0, respectively. The
order of the matrices must match.
Solves systems of linear equations, formally A must be square. The order of
the matrices must match.
On input, each column of matrix B represents the right-hand sides of a system. On output, the
solutions B.
The function replaces the elements of matrix A with a factorization. It returns true if the
solutions have been computed, and false if the solutions could not be computed due to a zero
value in a factor, implying that matrix A does not have full rank.
Solves overdetermined or underdetermined systems of linear equations, formally A is assumed to have full rank. The order of the matrices must match.
On input, each column of matrix B represents the right-hand sides of a system. On output, the
solutions B.
In case of overdetermined systems, the function solves the least squares problems
The argument transpose can take the value "notrans" (the default) or "trans". If set to
"trans", the operation is performed on
The function replaces the elements of matrix A with a factorization. It returns true if the
solutions have been computed, and false if the solutions could not be computed due to a zero
value in a factor, implying that matrix A does not have full rank.
Inverts a matrix in-place, formally A must be square.
The function returns true if the calculation was successful, and false if the matrix could
not be inverted due to a zero value in a factor, implying that matrix A is singular.
Important
You should not use the inverse of matrices to solve systems of linear equations. A numerically superior result is generally obtained by using a solver program function.
Returns the determinant of a matrix, formally A must be square.
The determinant is computed on a copy of the elements of matrix A, which remains unchanged.
The functions returns 0.0 if matrix A is singular.
Calculates the singular value decomposition of matrix A, formally A is an U are set to the left singular vectors, the rows of
matrix VT are set to the right singular vectors, and vector s is set to the singular values of
matrix A, in descending order. The content of matrix A is destroyed. The function returns
true if the calculation was successful, and false if convergence failed.
If the argument ns is not present, the function calculates all singular vectors. Matrices U
and VT must be square matrices of sizes
If the argument ns is present, it specifies the number of singular values to calculate and must
satisfy U must be an VT must be an
Vector s must be of length ns is specified, and the vector
must not be a transposed vector.
Calculates the pairwise covariances of the column vectors of ddof, and places the covariances into B, formally ddof defaults to 0 and must be less than
Note
The function is generally faster when matrix A is a column major matrix.
Calculates the pairwise Pearson product-moment correlation coefficients of the column vectors of
Note
The function is generally faster when matrix A is a column major matrix.
Sets vector r to the normalized ranks of the q must be a positive integer. For example, if
The optional argument mode must be a string. If it includes the letter 'z', the function
additionally sets the normalized rank of 'q', the function additionally sets the normalized rank of the
The length of vector r must match the number of normalized ranks, i.e.,
Sets the components of vector r to their quantiles within the components of vector v.
On entry, each component of vector r specifies a normalized rank satisfying
The function creates a temporary, sorted copy of the values, and then uses linear interpolation to calculate the quantiles.
Sets the components of vector q to their normalized ranks within the components of vector v.
On entry, each component of vector q specifies a value; on exit, each component is set to the
normalized rank of the respective value, satisfying
The function creates a temporary, sorted copy of the values, and then uses linear interpolation to calculate the normalized ranks.
If the components of vector v are unique, the rank function is the inverse of the quantile
function.
Returns a cubic spline interpolant for the specified vectors x and y, where x, and returns the
interpolated value from the domain of vector y. The lengths of the vectors x and y must
match, and be at least 3 (or 4 in case of not-a-knot boundary conditions.) The components
of vector x must be strictly increasing.
The argument boundary controls the boundary conditions of the interpolant, and can take the
value "not-a-knot" (the default), "clamped", or "natural". If set to "not-a-knot", the
third derivatives of the first and last pairs of polynomials are equated at their touch points,
formally "clamped", the first derivatives of the underlying function at the first and last value of
vector x are specified through the required arguments da and db, formally "natural", the second
derivatives of the first and last polynomial at the first and last value of vector x are equated
to
The argument extrapolation controls the extrapolation behavior of the interpolant, and can take
the value "none" (the default), "const", "linear", or "cubic". If set to "none", the
interpolation function generates an error when extrapolation is attempted; if set to "const",
the function returns the first or last value of vector y, respectively; if set to "linear"",
the function expands the linear coefficient from the first or last polynomial, respectively; if
set to "cubic", the function expands the full first or last polynomial, respectively.