MPsdConstr.Clone()
Clone MPsdConstr object.
Synopsis
MPsdConstr Clone()
Return
new MPsdConstr object.
MPsdConstr.Diagonal()
Get diagonals of MPsdConstr object.
Synopsis
MPsdConstr Diagonal(
int offset,
int axis1,
int axis2)
Arguments
offset
: offset of the diagonal from the main diagonal. Can be positive or negative.
axis1
: 1st axis of MPsdConstr.
axis2
: 2nd axis of MPsdConstr.Return
(N-1)-dimensional diagonals.
MPsdConstr.Expand()
Expand shape of MPsdConstr object.
Synopsis
MPsdConstr Expand(int axis)
Arguments
axis
: axis of MPsdConstr.Return
MPsdConstr object of (N+1)-dimensional shape.
MPsdConstr.Flatten()
Flatten a MPsdConstr object to a 1-dimensional shape.
Synopsis
MPsdConstr Flatten()
Return
a MPsdConstr object collapsed into one dimension.
MPsdConstr.Get()
Get values of information associated with PSD constraints in MPsdConstr object.
Synopsis
NdArray<double> Get(string info)
Arguments
info
: name of information.Return
multi-dimensional array of information of PSD constraints.
MPsdConstr.GetDim()
Get i-th dimension of MPsdConstr object.
Synopsis
long GetDim(int i)
Arguments
i
: index of dimensionReturn
i-th dimension.
MPsdConstr.GetIdx()
Get index of PSD constraints in MPsdConstr object.
Synopsis
NdArray<int> GetIdx()
Return
multi-dimensional array of indexes of PSD constraints.
MPsdConstr.GetItem()
Get PSD constraint of given index from MPsdConstr object.
Synopsis
PsdConstraint GetItem(long idx)
Arguments
idx
: index of var.Return
PsdConstraint object.
MPsdConstr.GetItem()
Get sub-arrays of MPsdConstr object, given view object.
Synopsis
MPsdConstr GetItem(View view)
Arguments
view
: view of multi-dimensional array.Return
sub-arrays of MPsdConstr object.
MPsdConstr.GetND()
Get number of dimensions of MPsdConstr object.
Synopsis
int GetND()
Return
number of dimensions.
MPsdConstr.GetShape()
Get shape of MPsdConstr object.
Synopsis
Shape GetShape()
Return
shape object.
MPsdConstr.GetSize()
Get size of MPsdConstr object.
Synopsis
long GetSize()
Return
number of vars.
MPsdConstr.HStack()
Stack with other MPsdConstr object along horizontal axis.
Synopsis
MPsdConstr HStack(MPsdConstr other)
Arguments
other
: a MPsdConstr object.Return
the result MPsdConstr object.
MPsdConstr.Pick()
Given a list of indexes, get PSD constraints from MPsdConstr object.
Synopsis
MPsdConstr 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 array of desired PSD constraints.
MPsdConstr.Represent()
String representation of MPsdConstr object.
Synopsis
string Represent(int maxlen)
Arguments
maxlen
: maximum buffer length for representations string.Return
string object.
MPsdConstr.Reshape()
Reshape MPsdConstr object to new shape.
Synopsis
MPsdConstr Reshape(Shape shp)
Arguments
shp
: new shape of M-dimensions.Return
M-dimensional MPsdConstr object.
MPsdConstr.Set()
Set values of information associated with PSD constraints in MPsdConstr object.
Synopsis
void Set(string info, double val)
Arguments
info
: name of information.
val
: value of information.
MPsdConstr.Set()
Set values of information associated with PSD constraints in MPsdConstr object.
Synopsis
void Set(string info, NdArray<double> vals)
Arguments
info
: name of information.
vals
: multi-dimensional array of values of information.
MPsdConstr.SetItem()
Set PSD constraint of given index to MPsdConstr object.
Synopsis
void SetItem(long idx, PsdConstraint constr)
Arguments
idx
: index of element.
constr
: PsdConstraint object.
MPsdConstr.Squeeze()
Remove axis of length 1 from shape of MPsdConstr object.
Synopsis
MPsdConstr Squeeze(int axis)
Arguments
axis
: axis of MPsdConstr, where the length is 1.Return
MPsdConstr object of (N-1)-dimensional shape.
MPsdConstr.Stack()
Stack with other MPsdConstr object along given axis.
Synopsis
MPsdConstr Stack(MPsdConstr other, int axis)
Arguments
other
: a MPsdConstr object.
axis
: an axis of MPsdConstr.Return
the result MPsdConstr object.
MPsdConstr.Transpose()
Perform matrix transpose of MPsdConstr object.
Synopsis
MPsdConstr Transpose()
Return
transposed MPsdConstr object.
MPsdConstr.VStack()
Stack with other MPsdConstr object along vertical axis.
Synopsis
MPsdConstr VStack(MPsdConstr other)
Arguments
other
: a MPsdConstr object.Return
the result MPsdConstr object.