|
LMMS
|
#include <juce_Matrix.h>
Static Public Member Functions | |
| static Matrix | identity (size_t size) |
| static Matrix | toeplitz (const Matrix &vector, size_t size) |
| static Matrix | hankel (const Matrix &vector, size_t size, size_t offset=0) |
| static Matrix | hadarmard (const Matrix &a, const Matrix &b) |
| static bool | compare (const Matrix &a, const Matrix &b, ElementType tolerance=0) noexcept |
Private Member Functions | |
| void | resize () |
| template<typename BinaryOperation> | |
| Matrix & | apply (const Matrix &other, BinaryOperation binaryOp) |
Private Attributes | |
| Array< ElementType > | data |
| Array< size_t > | dataAcceleration |
| size_t | rows |
| size_t | columns |
General matrix and vectors class, meant for classic math manipulation such as additions, multiplications, and linear systems of equations solving.
@tags{DSP}
|
inline |
Creates a new matrix with a given number of rows and columns.
|
inline |
Creates a new matrix with a given number of rows and columns, with initial data coming from an array, stored in row-major order.
|
default |
Creates a copy of another matrix.
|
defaultnoexcept |
Moves a copy of another matrix.
|
inlineprivate |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
Fills the contents of the matrix with zeroes.
|
staticnoexcept |
Compare to matrices with a given tolerance
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
Returns the number of columns in the matrix.
|
inlinenoexcept |
Returns the number of rows in the matrix.
|
inlinenoexcept |
Returns a pointer to the raw data of the matrix object, ordered in row-major order (for reading).
|
inlinenoexcept |
Returns a pointer to the raw data of the matrix object, ordered in row-major order (for modifying).
|
inlinenoexcept |
Returns an Array of 2 integers with the number of rows and columns in the matrix.
|
inlinestatic |
Does a hadarmard product with a and b returns the result.
|
inlinenoexcept |
Does a hadarmard product with the receiver and other and stores the result in the receiver
|
static |
Creates a squared size x size Hankel Matrix from a vector with an optional offset.
|
static |
Creates the identity matrix
|
inlinenoexcept |
Tells if the matrix is a null matrix
|
inlinenoexcept |
Tells if the matrix is a one column vector
|
inlinenoexcept |
Tells if the matrix is a one row vector
|
inlinenoexcept |
Tells if the matrix is a square matrix
|
inlinenoexcept |
Tells if the matrix is a vector
|
inlinenoexcept |
Returns the value of the matrix at a given row and column (for reading).
|
inlinenoexcept |
Returns the value of the matrix at a given row and column (for modifying).
| Matrix< ElementType > juce::dsp::Matrix< ElementType >::operator* | ( | const Matrix< ElementType > & | other | ) | const |
Matrix multiplication
|
inline |
Scalar multiplication
|
inlinenoexcept |
Scalar multiplication
|
inline |
Addition of two matrices
|
inlinenoexcept |
Addition of two matrices
|
inline |
Addition of two matrices
|
inlinenoexcept |
Subtraction of two matrices
|
default |
Creates a copy of another matrix.
|
defaultnoexcept |
Moves another matrix into this one
|
inlinenoexcept |
|
inlineprivate |
Resizes the matrix.
|
noexcept |
Solves a linear system of equations represented by this object and the argument b, using various algorithms depending on the size of the arguments.
The matrix must be a square matrix N times N, and b must be a vector N times 1, with the coefficients of b. After the execution of the algorithm, the vector b will contain the solution.
Returns true if the linear system of equations was successfully solved.
|
noexcept |
Swaps the contents of two columns in the matrix and returns a reference to itself.
|
noexcept |
Swaps the contents of two rows in the matrix and returns a reference to itself.
|
static |
Creates a Toeplitz Matrix from a vector with a given squared size
| String juce::dsp::Matrix< ElementType >::toString | ( | ) | const |
Returns a String displaying in a convenient way the matrix contents.
|
private |
|
private |
|
private |
|
private |