/// <summary>3次元ベクトル純X成分</summary> public static Tensor TrivectorPureX(Tensor X) { Function function = new Functions.Trivector.TrivectorPureX(); Shape y_shape = function.OutputShapes(X.Shape)[0]; Tensor y = new Tensor(y_shape); function.Execute(new Tensor[] { X }, new Tensor[] { y }); return(y); }
/// <summary>3次元ベクトル純X成分</summary> public static VariableNode TrivectorPureX(VariableNode X) { Function function = new Functions.Trivector.TrivectorPureX(); return(Apply(function, X)[0]); }