MPsdConstr.Clone()

对MPsdConstr对象进行复制。

概要

MPsdConstr Clone()

返回值

新的MPsdConstr对象。

MPsdConstr.Diagonal()

获取MPsdConstr对象的对角元素。

概要

MPsdConstr Diagonal(

int offset,

int axis1,

int axis2)

参量

offset: 对角偏移量,可取正负值。

axis1: MPsdConstr的第一个选取维度。

axis2: MPsdConstr的第二个选取维度。

返回值

N-1维的对角元素。

MPsdConstr.Expand()

把MPsdConstr对象在axis轴上扩展成N+1维形状。

概要

MPsdConstr Expand(int axis)

参量

axis: 第几个维度。

返回值

N+1维的MPsdConstr对象。

MPsdConstr.Flatten()

把MPsdConstr对象展开成一维形状。

概要

MPsdConstr Flatten()

返回值

一维的MPsdConstr对象。

MPsdConstr.Get()

获取MPsdConstr中半定约束相关的信息值。

概要

NdArray<double> Get(string info)

参量

info: 信息名称。

返回值

以多维数组保存的半定约束的信息值。

MPsdConstr.GetDim()

获取MPsdConstr对象的第i个维度的大小。

概要

long GetDim(int i)

参量

i: 维度索引

返回值

第i个维度的大小。

MPsdConstr.GetIdx()

获取MPsdConstr中半定约束的索引。

概要

NdArray<int> GetIdx()

返回值

以多维数组保存的半定约束索引。

MPsdConstr.GetItem()

从MPsdConstr对象获取给定索引的半定约束。

概要

PsdConstraint GetItem(long idx)

参量

idx: 索引值。

返回值

半定约束对象。

MPsdConstr.GetItem()

从MPsdConstr对象获取给定视图对应的子集。

概要

MPsdConstr GetItem(View view)

参量

view: 多维数组的视图。

返回值

MPsdConstr对象的子集。

MPsdConstr.GetND()

获取MPsdConstr对象的维数。

概要

int GetND()

返回值

维数。

MPsdConstr.GetShape()

获取MPsdConstr对象的形状。

概要

Shape GetShape()

返回值

MPsdConstr对象的形状。

MPsdConstr.GetSize()

获取MPsdConstr对象的约束个数。

概要

long GetSize()

返回值

约束个数。

MPsdConstr.HStack()

和另一个MPsdConstr对象在水平维度(最后一个维度)上堆叠成新的MPsdConstr对象。

概要

MPsdConstr HStack(MPsdConstr other)

参量

other: 另外一个MPsdConstr对象。

返回值

堆叠后的N维MPsdConstr对象。

MPsdConstr.Pick()

从MPsdConstr对象获取给定索引对应的一组半定约束。

概要

MPsdConstr Pick(NdArray<int> indexes)

参量

indexes: 一维或者二维索引值。如果二维的话,每行都是一个元素的多维坐标。

返回值

所需半定约束构成的一维MPsdConstr对象。

MPsdConstr.Represent()

MPsdConstr对象的描述。

概要

string Represent(int maxlen)

参量

maxlen: 容纳描述字符串的缓冲区长度。

返回值

描述字符串。

MPsdConstr.Reshape()

把MPsdConstr对象重置成M维形状。

概要

MPsdConstr Reshape(Shape shp)

参量

shp: 新的M维形状

返回值

M维的MPsdConstr对象。

MPsdConstr.Set()

设置MPsdConstr中半定约束相关的信息值。

概要

void Set(string info, double val)

参量

info: 信息名称。

val: 设置的信息值。

MPsdConstr.Set()

设置MPsdConstr中半定约束相关的信息值。

概要

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

参量

info: 信息名称。

vals: 以多维数组保存的信息值。

MPsdConstr.SetItem()

对MPsdConstr对象设置给定索引对应的半定约束。

概要

void SetItem(long idx, PsdConstraint constr)

参量

idx: 索引值。

constr: PsdConstraint对象。

MPsdConstr.Squeeze()

把MPsdConstr对象在axis轴上缩减成N-1维形状。

概要

MPsdConstr Squeeze(int axis)

参量

axis: 给定的维度,其大小为1。

返回值

N-1维的MPsdConstr对象。

MPsdConstr.Stack()

和另一个MPsdConstr对象在给定维度上堆叠成新的MPsdConstr对象。

概要

MPsdConstr Stack(MPsdConstr other, int axis)

参量

other: 另外一个MPsdConstr对象。

axis: 给定的维度。

返回值

堆叠后的N维MPsdConstr对象。

MPsdConstr.Transpose()

对MPsdConstr对象进行转置操作。

概要

MPsdConstr Transpose()

返回值

转置后的MPsdConstr对象。

MPsdConstr.VStack()

和另一个MPsdConstr对象在垂直维度上堆叠成新的MPsdConstr对象。

概要

MPsdConstr VStack(MPsdConstr other)

参量

other: 另外一个MPsdConstr对象。

返回值

堆叠后的N维MPsdConstr对象。