示例#1
0
        /// <summary>四元数純第2成分</summary>
        public static Tensor QuaternionPureI(Tensor X)
        {
            Function function = new Functions.Quaternion.QuaternionPureI();

            Shape y_shape = function.OutputShapes(X.Shape)[0];

            Tensor y = new Tensor(y_shape);

            function.Execute(new Tensor[] { X }, new Tensor[] { y });

            return(y);
        }
示例#2
0
        /// <summary>四元数純第2成分</summary>
        public static VariableNode QuaternionPureI(VariableNode X)
        {
            Function function = new Functions.Quaternion.QuaternionPureI();

            return(Apply(function, X)[0]);
        }