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