Example #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));
Example #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);
Example #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);
Example #4
0
 public static NDview <Type> Reshape <Type>(NDview <Type> nDview, params int[] shape)
 => new NDview <Type>(() => reshape(nDview.fnc(), shape));
Example #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);
Example #6
0
 public static NDview <Type> Mul <Type>(double left, NDview <Type> right) => ApplyOpsLeft(left, NDarray <Type> .OpsT.Mul, right);
Example #7
0
 public static NDview <Type> Div <Type>(NDview <Type> left, double right) => ApplyOpsRight(left, NDarray <Type> .OpsT.Div, right);
Example #8
0
 public static NDview <Type> Abs <Type>(NDview <Type> nDview) => ApplyOps(nDview, NDarray <Type> .OpsT.Abs);
Example #9
0
 public static NDview <Type> Exp <Type>(NDview <Type> nDview) => ApplyOps(nDview, NDarray <Type> .OpsT.Exp);
Example #10
0
 public static NDview <Type> TensorDot <Type>(NDview <Type> a, NDview <Type> b)
 => new NDview <Type>(() => tensorDot(a.fnc(), b.fnc()));
Example #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));
Example #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));
Example #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));
Example #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));
Example #15
0
 public static NDview <Type> Add <Type>(double left, NDview <Type> right) => ApplyOpsLeft(left, NDarray <Type> .OpsT.Add, right);
Example #16
0
 public static NDview <Type> Log <Type>(NDview <Type> nDview) => ApplyOps(nDview, NDarray <Type> .OpsT.Log);
Example #17
0
 public static NDview <Type> Sub <Type>(double left, NDview <Type> right) => ApplyOpsLeft(left, NDarray <Type> .OpsT.Sub, right);
Example #18
0
 public static NDview <Type> Sqrt <Type>(NDview <Type> nDview) => ApplyOps(nDview, NDarray <Type> .OpsT.Sqrt);
Example #19
0
 public static NDview <Type> Div <Type>(double left, NDview <Type> right) => ApplyOpsLeft(left, NDarray <Type> .OpsT.Div, right);
Example #20
0
 public static NDview <Type> DTanh <Type>(NDview <Type> nDview) => ApplyOps(nDview, NDarray <Type> .OpsT.DTanh);
Example #21
0
 public static NDview <Type> Max <Type>(NDview <Type> left, NDview <Type> right) => ElementWiseOp(left, right, NDarray <Type> .OpsT.Max);
Example #22
0
 public static NDview <Type> DSigmoid <Type>(NDview <Type> nDview) => ApplyOps(nDview, NDarray <Type> .OpsT.DSigmoid);
Example #23
0
 public static NDview <double> Gte <Type>(NDview <Type> left, NDview <Type> right) => ElementWiseOp(left, right, NDarray <Type> .OpsT.Gte);
Example #24
0
 public static NDview <Type> Round <Type>(NDview <Type> nDview, int dec = 0) => ApplyOps(nDview, x => NDarray <Type> .OpsT.Round(x, dec));
Example #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);
Example #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));
Example #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);
Example #28
0
 public static NDview <V> Cast <U, V>(NDview <U> nDview) => ApplyOps(nDview, NDarray <V> .OpsT.Cast);
Example #29
0
 public static NDview <int> Argmax <Type>(NDview <Type> nDview, int axis) => ArgMinMax(nDview, axis, NDarray <Type> .OpsT.Max, NDarray <Type> .OpsT.Minvalue);
Example #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)));