/// <summary>3次元ベクトル2項演算</summary> internal static Tensor TrivectorBinaryArithmetric(Tensor v, Tensor u, Operators.TrivectorBinaryArithmetric.TrivectorBinaryArithmetric arithmetric) { Function function = new Functions.TrivectorArithmetric.TrivectorBinaryArithmetric(arithmetric); Shape y_shape = function.OutputShapes(v.Shape, u.Shape)[0]; Tensor y = new Tensor(y_shape); function.Execute(new Tensor[] { v, u }, new Tensor[] { y }); return(y); }
/// <summary>3次元ベクトル2項演算</summary> internal static VariableNode TrivectorBinaryArithmetric(VariableNode v, VariableNode u, Operators.TrivectorBinaryArithmetric.TrivectorBinaryArithmetric arithmetric) { Function function = new Functions.TrivectorArithmetric.TrivectorBinaryArithmetric(arithmetric); return(Apply(function, v, u)[0]); }