/// <summary>3次元ベクトルZ成分</summary> public static Tensor TrivectorZ(Tensor x) { Function function = new Functions.Trivector.TrivectorZ(); 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次元ベクトルZ成分</summary> public static VariableNode TrivectorZ(VariableNode x) { Function function = new Functions.Trivector.TrivectorZ(); return(Apply(function, x)[0]); }