예제 #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)));