MConstr.Clone()
对MConstr对象进行复制。
概要
MConstr Clone()
返回值
新的MConstr对象。
MConstr.Diagonal()
获取MConstr对象的对角元素。
概要
MConstr Diagonal(
int offset,
int axis1,
int axis2)
参量
offset
: 对角偏移量,可取正负值。
axis1
: MConstr的第一个选取维度。
axis2
: MConstr的第二个选取维度。返回值
N-1维的对角元素。
MConstr.Expand()
把MConstr对象在axis轴上扩展成N+1维形状。
概要
MConstr Expand(int axis)
参量
axis
: 第几个维度。返回值
N+1维的MConstr对象。
MConstr.Flatten()
把MConstr对象展开成一维形状。
概要
MConstr Flatten()
返回值
一维的MConstr对象。
MConstr.Get()
获取MConstr中约束相关的信息值。
概要
NdArray<double> Get(string info)
参量
info
: 信息名称。返回值
以多维数组保存的约束的信息值。
MConstr.GetDim()
获取MConstr对象的第i个维度的大小。
概要
long GetDim(int i)
参量
i
: 维度索引返回值
第i个维度的大小。
MConstr.GetIdx()
获取MConstr中约束的索引。
概要
NdArray<int> GetIdx()
返回值
以多维数组保存的约束索引。
MConstr.GetItem()
从MConstr对象获取给定索引的约束。
概要
Constraint GetItem(long idx)
参量
idx
: 索引值。返回值
约束对象。
MConstr.GetItem()
从MConstr对象获取给定视图对应的子集。
概要
MConstr GetItem(View view)
参量
view
: 多维数组的视图。返回值
MConstr对象的子集。
MConstr.GetLowerIIS()
获取MConstr中约束下界的IIS状态。
概要
NdArray<int> GetLowerIIS()
返回值
以多维数组保存的约束下界的IIS状态。
MConstr.GetND()
获取MConstr对象的维数。
概要
int GetND()
返回值
维数。
MConstr.GetShape()
获取MConstr对象的形状。
概要
Shape GetShape()
返回值
MConstr对象的形状。
MConstr.GetSize()
获取MConstr对象的约束个数。
概要
long GetSize()
返回值
约束个数。
MConstr.GetUpperIIS()
获取MConstr中约束上界的IIS状态。
概要
NdArray<int> GetUpperIIS()
返回值
以多维数组保存的约束上界的IIS状态。
MConstr.HStack()
和另一个MConstr对象在水平维度(最后一个维度)上堆叠成新的MConstr对象。
概要
MConstr HStack(MConstr other)
参量
other
: 另外一个MConstr对象。返回值
堆叠后的N维MConstr对象。
MConstr.Pick()
从MConstr对象获取给定索引对应的一组约束。
概要
MConstr Pick(NdArray<int> indexes)
参量
indexes
: 一维或者二维索引值。如果二维的话,每行都是一个元素的多维坐标。返回值
所需约束构成的一维MConstr对象。
MConstr.Represent()
MConstr对象的描述。
概要
string Represent(int maxlen)
参量
maxlen
: 容纳描述字符串的缓冲区长度。返回值
描述字符串。
MConstr.Reshape()
把MConstr对象重置成M维形状。
概要
MConstr Reshape(Shape shp)
参量
shp
: 新的M维形状返回值
M维的MConstr对象。
MConstr.Set()
设置MConstr中约束相关的信息值。
概要
void Set(string info, NdArray<double> vals)
参量
info
: 信息名称。
vals
: 以多维数组保存的信息值。
MConstr.Set()
设置MConstr中约束相关的信息值。
概要
void Set(string info, double val)
参量
info
: 信息名称。
val
: 设置的信息值。
MConstr.SetItem()
对MConstr对象设置给定索引对应的约束。
概要
void SetItem(long idx, Constraint constr)
参量
idx
: 索引值。
constr
: Constraint对象。
MConstr.Squeeze()
把MConstr对象在axis轴上缩减成N-1维形状。
概要
MConstr Squeeze(int axis)
参量
axis
: 给定的维度,其大小为1。返回值
N-1维的MConstr对象。
MConstr.Stack()
和另一个MConstr对象在给定维度上堆叠成新的MConstr对象。
概要
MConstr Stack(MConstr other, int axis)
参量
other
: 另外一个MConstr对象。
axis
: 给定的维度。返回值
堆叠后的N维MConstr对象。
MConstr.Transpose()
对MConstr对象进行转置操作。
概要
MConstr Transpose()
返回值
转置后的MConstr对象。
MConstr.VStack()
和另一个MConstr对象在垂直维度上堆叠成新的MConstr对象。
概要
MConstr VStack(MConstr other)
参量
other
: 另外一个MConstr对象。返回值
堆叠后的N维MConstr对象。