Beispiel #1
0
        public static void ApplySqrtDerivative(AlignedArray value, AlignedArray grad)
        {
            Contracts.Assert(Compat(value));
            Contracts.Assert(Compat(grad));
            Contracts.Assert(value.Size == grad.Size);

            unsafe
            {
                fixed(float *pvalue = &value.Items[0])
                fixed(float *pgrad = &grad.Items[0])
                Thunk.ApplySqrtDerivativeX(Ptr(value, pvalue), Ptr(grad, pgrad), grad.Size);
            }
        }