[−][src]Module compute::utils
Functions
design | Create a design matrix from a given matrix. |
dot | Calculates the dot product of two equal-length vectors. |
invert_matrix | Given an n by n matrix, invert it. The resulting matrix is returned as a flattened array. |
matmul | Multiply two matrices together, optionally transposing one or both of them. |
toeplitz_even_square | Given a vector of length n, creates n stacked duplicates, resulting in a square Toeplitz matrix. This function also assumes evenness. That is, x_i = x_{-i}. |
xtx | Given a matrix X with k rows, return X transpose times X, which is a symmetric matrix. |