Пример #1
0
        /// <summary>3次元ベクトル四元数回転積四元数勾配</summary>
        internal static Tensor TrivectorQuaternionMulQGrad(Tensor v, Tensor u, Tensor q)
        {
            Function function = new Functions.TrivectorArithmetric.TrivectorQuaternionMulQGrad();

            Tensor p = new Tensor(q.Shape);

            function.Execute(new Tensor[] { v, u, q }, new Tensor[] { p });

            return(p);
        }
Пример #2
0
        /// <summary>3次元ベクトル四元数回転積四元数勾配</summary>
        internal static VariableNode TrivectorQuaternionMulQGrad(VariableNode v, VariableNode u, VariableNode q)
        {
            Function function = new Functions.TrivectorArithmetric.TrivectorQuaternionMulQGrad();

            return(Apply(function, v, u, q)[0]);
        }