SymMatExpr.SymMatExpr()
Constructor of a symmetric matrix expression.
Synopsis
SymMatExpr()
SymMatExpr.SymMatExpr()
Constructor of a symmetric matrix expression with one term.
Synopsis
SymMatExpr(SymMatrix mat, double coeff)
Arguments
mat
: symmetric matrix of the added term.
coeff
: coefficent for the added term.
SymMatExpr.addSymMatExpr()
Add a symmetric matrix expression to self.
Synopsis
void addSymMatExpr(SymMatExpr expr, double mult)
Arguments
expr
: symmetric matrix expression to be added.
mult
: constant multiplier.
SymMatExpr.addTerm()
Add a term to symmetric matrix expression object.
Synopsis
Boolean addTerm(SymMatrix mat, double coeff)
Arguments
mat
: symmetric matrix of the new term.
coeff
: coefficient of the new term.Return
True if the term is added successfully.
SymMatExpr.addTerms()
Add multiple terms to expression object.
Synopsis
int addTerms(SymMatrix[] mats, double coeff)
Arguments
mats
: symmetric matrix array object for added terms.
coeff
: common coefficient for added terms.Return
Number of added terms. If negative, fail to add one of terms.
SymMatExpr.addTerms()
Add multiple terms to expression object.
Synopsis
int addTerms(SymMatrixArray mats, double[] coeffs)
Arguments
mats
: symmetric matrix array object for added terms.
coeffs
: coefficient array for added terms.Return
Number of added terms. If negative, fail to add one of terms.
SymMatExpr.addTerms()
Add multiple terms to expression object.
Synopsis
int addTerms(SymMatrix[] mats, double[] coeffs)
Arguments
mats
: symmetric matrix array object for added terms.
coeffs
: coefficient array for added terms.Return
Number of added terms. If negative, fail to add one of terms.
SymMatExpr.clone()
Deep copy symmetric matrix expression object.
Synopsis
SymMatExpr clone()
Return
cloned expression object.
SymMatExpr.getCoeff()
Get coefficient of the i-th term in expression object.
Synopsis
double getCoeff(int i)
Arguments
i
: index of the term.Return
coefficient of the i-th term.
SymMatExpr.getDim()
Get dimension of symmetric matrix in expression.
Synopsis
int getDim()
Return
dimension of symmetric matrix.
SymMatExpr.getSymMat()
Get symmetric matrix of the i-th term in expression object.
Synopsis
SymMatrix getSymMat(int i)
Arguments
i
: index of the term.Return
the symmetric matrix of the i-th term.
SymMatExpr.multiply()
multiply a symmetric matrix expression and a constant.
Synopsis
void multiply(double c)
Arguments
c
: constant operand.
SymMatExpr.remove()
Remove i-th term from expression object.
Synopsis
void remove(int idx)
Arguments
idx
: index of the term to be removed.
SymMatExpr.remove()
Remove the term associated with the symmetric matrix.
Synopsis
void remove(SymMatrix mat)
Arguments
mat
: a symmetric matrix whose term should be removed.
SymMatExpr.reserve()
Reserve capacity to contain at least n items.
Synopsis
void reserve(int n)
Arguments
n
: minimum capacity for expression object.
SymMatExpr.setCoeff()
Set coefficient for the i-th term in expression object.
Synopsis
void setCoeff(int i, double val)
Arguments
i
: index of the term.
val
: coefficient of the term.
SymMatExpr.size()
Get number of terms in expression.
Synopsis
long size()
Return
number of terms.