PsdVar.Diagonal()
Get diagonals of PSD variable.
Synopsis
MPsdExpr Diagonal(int offset)
Arguments
offset
: offset of the diagonal from the main diagonal. Can be positive or negative.Return
one-dimensional MPsdExpr object of diagonals.
PsdVar.Get()
Get information values of PSD variable.
Synopsis
double[] Get(string info)
Arguments
info
: name of information.Return
array of information values.
PsdVar.GetDim()
Get dimension of PSD variable.
Synopsis
int GetDim()
Return
dimension of PSD variable.
PsdVar.GetIdx()
Get index of PSD variable.
Synopsis
int GetIdx()
Return
index of PSD variable.
PsdVar.GetInfo()
Get information values of PSD variable.
Synopsis
NdArray<double> GetInfo(string name)
Arguments
name
: name of informatioin.Return
2-dimensional NdArray with related information values.
PsdVar.GetItem()
Get corresponding MPsdExpr of given index from PSD variable.
Synopsis
PsdExpr GetItem(int i, int j)
Arguments
i
: row index.
j
: col index.Return
new PsdExpr object.
PsdVar.GetLen()
Get length of PSD variable.
Synopsis
int GetLen()
Return
length of PSD variable.
PsdVar.GetName()
Get name of PSD variable.
Synopsis
string GetName()
Return
name of PSD variable.
PsdVar.GetSize()
Get size or length of PSD variable.
Synopsis
int GetSize()
Return
Size of PSD variable.
PsdVar.Pick()
Given a list of indexes, pick elements of PSD variable in format of MPsdExpr.
Synopsis
MPsdExpr Pick(NdArray<int> indexes)
Arguments
indexes
: one or two dimensional indexes of elements. If two dimensional, each row is position of an element.Return
one-dimensional MPsdExpr object.
PsdVar.Remove()
Remove PSD variable from model.
Synopsis
void Remove()
PsdVar.Slice()
Get corresponding MPsdExpr of given view from PSD variable.
Synopsis
MPsdExpr Slice(View view)
Arguments
view
: view of PSD variable.Return
new MPsdExpr object.
PsdVar.Sum()
Sum of elements in PSD variable.
Synopsis
PsdExpr Sum()
Return
PsdExpr object.
PsdVar.ToExpr()
convert PSD variable to 2-dimensional MPsdExpr.
Synopsis
MPsdExpr ToExpr()
Return
2-dimensional MPsdExpr object.