Home > @josh-brown/vector > MatrixBuilder
Provides methods for constructing Matrices of a given type
Signature:
export declare class MatrixBuilder<S, V extends Vector<S>, M extends Matrix<S>> The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the MatrixBuilder class.
|
Method |
Modifiers |
Description |
|---|---|---|
|
Constructs a new matrix consisting of | ||
|
Constructs a single matrix consisting of a grid of matrices combined together. Throws an error if any of the dimensions are incompatible. | ||
|
Creates a block-diagonal matrix. | ||
|
Construct a circulant matrix using entries from the input vector | ||
|
Constructs a square diagonal matrix whose diagonal entries come from | ||
|
Constructs a 0x0 matrix | ||
|
Constructs a new matrix with all entries in row | ||
|
Constructs a matrix of the specified dimension, whose entries are all the specified value | ||
|
Builds a matrix from an array of column vectors | ||
|
Builds a matrix with entries given by _entry = f(i, j)_ where _f_ is | ||
|
Builds a matrix from an array of row vectors | ||
|
Constructs a Hankel matrix from the specified first column and last row. A Hankel matrix has constant anti-diagonals. If | ||
|
Constructs a Hilbert matrix of the specified size | ||
|
Constructs a | ||
|
Constructs a matrix of the specified dimensions, consisting of all ones | ||
|
Constructs a lower-triangular matrix whose entries are the binomial coefficients (j choose i). Constructs an upper triangular matrix when the second argument is | ||
|
Constructs a symmetric matrix whose entries are the binomial coefficients (i + j choose i) | ||
|
Constructs a matrix of the specified size whose entries are (uniformly-distributed) random numbers between | ||
|
Constructs a matrix of the specified size whose entries are normally distributed with the specified mean and standard deviation. | ||
|
Constructs a new matrix consisted of repetitions of a smaller matrix. | ||
|
slice(matrix, rowStartIndex, columnStartIndex, rowEndIndex, columnEndIndex) |
Constructs a new matrix based on a rectangular slice of a larger matrix | |
|
Constructs a Toeplitz matrix from the specified first column and first row. A Toeplitz matrix has constant diagonals. If | ||
|
Constructs a matrix that has ones on and above the diagonal, and zeros elsewhere. | ||
|
Constructs a square tridiagonal matrix whose diagonal entries correspond to the entries of | ||
|
Constructs a matrix of the specified dimensions, consisting of all zeros |