示例#1
0
        public static Tensor <T> operator /(Tensor <T> left, Tensor <T> right)
        {
            if (left.Shape != right.Shape)
            {
                throw new ShapeMismatchException(nameof(right));
            }

            T[] result = SimdOps <T> .Divide(left.InternalArray, right.InternalArray);

            return(FromRef(left.Shape, result));
        }
示例#2
0
        public static Tensor <T> operator /(T left, Tensor <T> right)
        {
            T[] result = SimdOps <T> .Divide(left, right.InternalArray);

            return(FromRef(right.Shape, result));
        }