MVar.Clone()

Clone MVar object.

Synopsis

MVar Clone()

Return

new MVar object.

MVar.Diagonal()

Get diagonals of MVar object.

Synopsis

MVar 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 MVar.

axis2: 2nd axis of MVar.

Return

(N-1)-dimensional diagonals.

MVar.Expand()

Expand shape of MVar object.

Synopsis

MVar Expand(int axis)

Arguments

axis: axis of MVar.

Return

MVar object of (N+1)-dimensional shape.

MVar.Flatten()

Flatten a MVar object to a 1-dimensional shape.

Synopsis

MVar Flatten()

Return

a MVar object collapsed into one dimension.

MVar.Get()

Get values of information associated with variables in MVar object.

Synopsis

NdArray<double> Get(string info)

Arguments

info: name of information.

Return

multi-dimensional array of information of variables.

MVar.GetBasis()

Get basis of variables in MVar object.

Synopsis

NdArray<int> GetBasis()

Return

multi-dimensional array of basis of variables.

MVar.GetDim()

Get i-th dimension of MVar object.

Synopsis

long GetDim(int i)

Arguments

i: index of dimension

Return

i-th dimension.

MVar.GetIdx()

Get indexes of variables in MVar object.

Synopsis

NdArray<int> GetIdx()

Return

multi-dimensional array of indexes of variables.

MVar.GetItem()

Get variable of given index from MVar object.

Synopsis

Var GetItem(long idx)

Arguments

idx: index of variable.

Return

Var object.

MVar.GetItem()

Get sub-arrays of MVar object, given view object.

Synopsis

MVar GetItem(View view)

Arguments

view: view of multi-dimensional array.

Return

sub-arrays of MVar object.

MVar.GetLowerIIS()

Get IIS status of lower bound of variables in MVar object.

Synopsis

NdArray<int> GetLowerIIS()

Return

multi-dimensional array of IIS status of lower bounds of variables.

MVar.GetND()

Get number of dimensions of MVar object.

Synopsis

int GetND()

Return

number of dimensions.

MVar.GetShape()

Get shape of MVar object.

Synopsis

Shape GetShape()

Return

shape object.

MVar.GetSize()

Get size of MVar object.

Synopsis

long GetSize()

Return

number of vars.

MVar.GetType()

Get types of variables in MVar object.

Synopsis

NdArray<char> GetType()

Return

multi-dimensional array of types of variables.

MVar.GetUpperIIS()

Get IIS status of upper bound of variables in MVar object.

Synopsis

NdArray<int> GetUpperIIS()

Return

multi-dimensional array of IIS status of upper bounds of variables.

MVar.HStack()

Stack with other MVar object along horizontal axis.

Synopsis

MVar HStack(MVar other)

Arguments

other: a MVar object.

Return

the result MVar object.

MVar.Pick()

Given a list of indexes, get variables from MVar object.

Synopsis

MVar 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 variables.

MVar.Repeat()

Repeat each element of MVar along given axis.

Synopsis

MVar Repeat(long repeats, int axis)

Arguments

repeats: number of repetitions for each element.

axis: axis of MVar.

Return

new MVar object.

MVar.RepeatBlock()

Repeat an MVar a number of times along given axis.

Synopsis

MVar RepeatBlock(long repeats, int axis)

Arguments

repeats: number of repetitions.

axis: axis of MVar.

Return

new MVar object.

MVar.Represent()

String representation of MVar object.

Synopsis

string Represent(int maxlen)

Arguments

maxlen: maximum buffer length for representations string.

Return

string object.

MVar.Reshape()

Reshape MVar object to new shape.

Synopsis

MVar Reshape(Shape shp)

Arguments

shp: new shape of M-dimensions.

Return

M-dimensional MVar object.

MVar.Set()

Set values of information associated with variables in MVar object.

Synopsis

void Set(string info, double val)

Arguments

info: name of information.

val: value of information.

MVar.Set()

Set values of information associated with variables in MVar object.

Synopsis

void Set(string info, NdArray<double> vals)

Arguments

info: name of information.

vals: multi-dimensional array of values of information.

MVar.SetItem()

Set variable of given index to MVar object.

Synopsis

void SetItem(long idx, Var var)

Arguments

idx: index of element.

var: Var object.

MVar.Squeeze()

Remove axis of length 1 from shape of MVar object.

Synopsis

MVar Squeeze(int axis)

Arguments

axis: axis of MVar, where the length is 1.

Return

MVar object of (N-1)-dimensional shape.

MVar.Stack()

Stack with other MVar object along given axis.

Synopsis

MVar Stack(MVar other, int axis)

Arguments

other: a MVar object.

axis: an axis of MVar.

Return

the result MVar object.

MVar.Sum()

Sum of all variables in MVar object.

Synopsis

MLinExpr Sum()

Return

sum in zero dimension.

MVar.Sum()

Sum of variables at given axis of MVar object.

Synopsis

MLinExpr Sum(int axis)

Arguments

axis: axis of MVar.

Return

MLinExpr object in (N-1)-dimension.

MVar.Transpose()

Perform matrix transpose of MVar object.

Synopsis

MVar Transpose()

Return

transposed MVar object.

MVar.VStack()

Stack with other MVar object along vertical axis.

Synopsis

MVar VStack(MVar other)

Arguments

other: a MVar object.

Return

the result MVar object.