示例#1
0
 public static NDview <V> ElementWiseOp <U, V>(NDview <U> left, NDview <U> right, Func <U, U, V> func)
 => new NDview <V>(() => elementWiseOp(left.fnc(), right.fnc(), func));
示例#2
0
 public static NDview <Type> MaxAxis <Type>(NDview <Type> nDview, int axis = -1, bool keepdims = false)
 => AxisOps(nDview, axis, keepdims, NDarray <Type> .OpsT.Max, NDarray <Type> .OpsT.Minvalue);
示例#3
0
 public static NDview <Type> CumProdAxis <Type>(NDview <Type> nDview, int axis = -1)
 => AxisCumOps(nDview, axis, NDarray <Type> .OpsT.Mul, NDarray <Type> .OpsT.One);
示例#4
0
 public static NDview <Type> Reshape <Type>(NDview <Type> nDview, params int[] shape)
 => new NDview <Type>(() => reshape(nDview.fnc(), shape));
示例#5
0
 public static NDview <Type> ProdAxis <Type>(NDview <Type> nDview, int axis = -1, bool keepdims = false)
 => AxisOps(nDview, axis, keepdims, NDarray <Type> .OpsT.Mul, NDarray <Type> .OpsT.One);
示例#6
0
 public static NDview <Type> Mul <Type>(double left, NDview <Type> right) => ApplyOpsLeft(left, NDarray <Type> .OpsT.Mul, right);
示例#7
0
 public static NDview <Type> Div <Type>(NDview <Type> left, double right) => ApplyOpsRight(left, NDarray <Type> .OpsT.Div, right);
示例#8
0
 public static NDview <Type> Abs <Type>(NDview <Type> nDview) => ApplyOps(nDview, NDarray <Type> .OpsT.Abs);
示例#9
0
 public static NDview <Type> Exp <Type>(NDview <Type> nDview) => ApplyOps(nDview, NDarray <Type> .OpsT.Exp);
示例#10
0
 public static NDview <Type> TensorDot <Type>(NDview <Type> a, NDview <Type> b)
 => new NDview <Type>(() => tensorDot(a.fnc(), b.fnc()));
示例#11
0
 public static NDview <Type> Concatene <Type>(NDview <Type> a, NDview <Type> b, int axis = 0)
 => new NDview <Type>(() => concatene(a.fnc(), b.fnc(), axis));
示例#12
0
 public static NDview <Type> AxisCumOps <Type>(NDview <Type> nDview, int axis, Func <Type, Type, Type> func, Type start)
 => new NDview <Type>(() => axisCumOps(nDview.fnc(), axis, func, start));
示例#13
0
 public static NDview <Type> AxisOps <Type>(NDview <Type> nDview, int axis, bool keepdims, Func <Type, Type, Type> func, Type start, bool mean = false)
 => new NDview <Type>(() => axisOps(nDview.fnc(), axis, keepdims, func, start, mean));
示例#14
0
 internal static NDview <int> ArgMinMax <Type>(NDview <Type> nDview, int axis, Func <Type, Type, Type> func, Type tmp)
 => new NDview <int>(() => argMinMax(nDview.fnc(), axis, func, tmp));
示例#15
0
 public static NDview <Type> Add <Type>(double left, NDview <Type> right) => ApplyOpsLeft(left, NDarray <Type> .OpsT.Add, right);
示例#16
0
 public static NDview <Type> Log <Type>(NDview <Type> nDview) => ApplyOps(nDview, NDarray <Type> .OpsT.Log);
示例#17
0
 public static NDview <Type> Sub <Type>(double left, NDview <Type> right) => ApplyOpsLeft(left, NDarray <Type> .OpsT.Sub, right);
示例#18
0
 public static NDview <Type> Sqrt <Type>(NDview <Type> nDview) => ApplyOps(nDview, NDarray <Type> .OpsT.Sqrt);
示例#19
0
 public static NDview <Type> Div <Type>(double left, NDview <Type> right) => ApplyOpsLeft(left, NDarray <Type> .OpsT.Div, right);
示例#20
0
 public static NDview <Type> DTanh <Type>(NDview <Type> nDview) => ApplyOps(nDview, NDarray <Type> .OpsT.DTanh);
示例#21
0
 public static NDview <Type> Max <Type>(NDview <Type> left, NDview <Type> right) => ElementWiseOp(left, right, NDarray <Type> .OpsT.Max);
示例#22
0
 public static NDview <Type> DSigmoid <Type>(NDview <Type> nDview) => ApplyOps(nDview, NDarray <Type> .OpsT.DSigmoid);
示例#23
0
 public static NDview <double> Gte <Type>(NDview <Type> left, NDview <Type> right) => ElementWiseOp(left, right, NDarray <Type> .OpsT.Gte);
示例#24
0
 public static NDview <Type> Round <Type>(NDview <Type> nDview, int dec = 0) => ApplyOps(nDview, x => NDarray <Type> .OpsT.Round(x, dec));
示例#25
0
 public static NDview <Type> MeanAxis <Type>(NDview <Type> nDview, int axis = -1, bool keepdims = false)
 => AxisOps(nDview, axis, keepdims, NDarray <Type> .OpsT.Add, NDarray <Type> .OpsT.Zero, true);
示例#26
0
 public static NDview <Type> Clamp <Type>(NDview <Type> nDview, double min, double max) => ApplyOps(nDview, x => NDarray <Type> .OpsT.Clamp(x, min, max));
示例#27
0
 public static NDview <Type> CumSumAxis <Type>(NDview <Type> nDview, int axis = -1)
 => AxisCumOps(nDview, axis, NDarray <Type> .OpsT.Add, NDarray <Type> .OpsT.Zero);
示例#28
0
 public static NDview <V> Cast <U, V>(NDview <U> nDview) => ApplyOps(nDview, NDarray <V> .OpsT.Cast);
示例#29
0
 public static NDview <int> Argmax <Type>(NDview <Type> nDview, int axis) => ArgMinMax(nDview, axis, NDarray <Type> .OpsT.Max, NDarray <Type> .OpsT.Minvalue);
示例#30
0
 internal static NDview <V> ApplyOpsRight <U, V>(NDview <U> left, Func <U, U, V> func, double right)
 => ApplyOps(left, x => func(x, NDarray <U> .OpsT.Cast(right)));