다음을 통해 공유


TensorPrimitives.ProductOfSums 메서드

정의

오버로드

ProductOfSums(ReadOnlySpan<Single>, ReadOnlySpan<Single>)

지정된 비어있지 않은 텐서에서 단정밀도 부동 소수점 숫자의 요소 단위 합계의 곱을 계산합니다.

ProductOfSums<T>(ReadOnlySpan<T>, ReadOnlySpan<T>)

지정한 비어있지 않은 텐서에 있는 숫자의 요소 단위 합계의 곱을 계산합니다.

ProductOfSums(ReadOnlySpan<Single>, ReadOnlySpan<Single>)

Source:
TensorPrimitives.cs
Source:
TensorPrimitives.Single.cs
Source:
TensorPrimitives.Single.cs

지정된 비어있지 않은 텐서에서 단정밀도 부동 소수점 숫자의 요소 단위 합계의 곱을 계산합니다.

public:
 static float ProductOfSums(ReadOnlySpan<float> x, ReadOnlySpan<float> y);
public static float ProductOfSums(ReadOnlySpan<float> x, ReadOnlySpan<float> y);
static member ProductOfSums : ReadOnlySpan<single> * ReadOnlySpan<single> -> single
Public Shared Function ProductOfSums (x As ReadOnlySpan(Of Single), y As ReadOnlySpan(Of Single)) As Single

매개 변수

x
ReadOnlySpan<Single>

범위로 표시되는 첫 번째 텐서입니다.

y
ReadOnlySpan<Single>

범위로 표시되는 두 번째 텐서입니다.

반환

각 텐서에 있는 요소의 요소 단위 추가를 곱한 결과입니다.

예외

xy 길이가 같아야 합니다.

설명

이 메서드는 중간 합계에 대한 추가 임시 스토리지를 요구하지 않고 Span<float> sums = ...; TensorPrimitives.Add(x, y, sums); float result = TensorPrimitives.Product(sums); 효과적으로 계산합니다.

이 메서드는 기본 C 런타임을 호출하거나 현재 아키텍처와 관련된 지침을 사용할 수 있습니다. 정확한 결과는 운영 체제 또는 아키텍처마다 다를 수 있습니다.

적용 대상

ProductOfSums<T>(ReadOnlySpan<T>, ReadOnlySpan<T>)

Source:
TensorPrimitives.Product.cs
Source:
TensorPrimitives.Product.cs

지정한 비어있지 않은 텐서에 있는 숫자의 요소 단위 합계의 곱을 계산합니다.

public:
generic <typename T>
 where T : System::Numerics::IAdditionOperators<T, T, T>, System::Numerics::IAdditiveIdentity<T, T>, System::Numerics::IMultiplyOperators<T, T, T>, System::Numerics::IMultiplicativeIdentity<T, T> static T ProductOfSums(ReadOnlySpan<T> x, ReadOnlySpan<T> y);
public static T ProductOfSums<T>(ReadOnlySpan<T> x, ReadOnlySpan<T> y) where T : System.Numerics.IAdditionOperators<T,T,T>, System.Numerics.IAdditiveIdentity<T,T>, System.Numerics.IMultiplyOperators<T,T,T>, System.Numerics.IMultiplicativeIdentity<T,T>;
static member ProductOfSums : ReadOnlySpan<'T (requires 'T :> System.Numerics.IAdditionOperators<'T, 'T, 'T> and 'T :> System.Numerics.IAdditiveIdentity<'T, 'T> and 'T :> System.Numerics.IMultiplyOperators<'T, 'T, 'T> and 'T :> System.Numerics.IMultiplicativeIdentity<'T, 'T>)> * ReadOnlySpan<'T (requires 'T :> System.Numerics.IAdditionOperators<'T, 'T, 'T> and 'T :> System.Numerics.IAdditiveIdentity<'T, 'T> and 'T :> System.Numerics.IMultiplyOperators<'T, 'T, 'T> and 'T :> System.Numerics.IMultiplicativeIdentity<'T, 'T>)> -> 'T (requires 'T :> System.Numerics.IAdditionOperators<'T, 'T, 'T> and 'T :> System.Numerics.IAdditiveIdentity<'T, 'T> and 'T :> System.Numerics.IMultiplyOperators<'T, 'T, 'T> and 'T :> System.Numerics.IMultiplicativeIdentity<'T, 'T>)
Public Shared Function ProductOfSums(Of T As {IAdditionOperators(Of T, T, T), IAdditiveIdentity(Of T, T), IMultiplyOperators(Of T, T, T), IMultiplicativeIdentity(Of T, T)}) (x As ReadOnlySpan(Of T), y As ReadOnlySpan(Of T)) As T

형식 매개 변수

T

매개 변수

x
ReadOnlySpan<T>

범위로 표시되는 첫 번째 텐서입니다.

y
ReadOnlySpan<T>

범위로 표시되는 두 번째 텐서입니다.

반환

T

각 텐서에 있는 요소의 요소 단위 추가를 곱한 결과입니다.

예외

xy 길이가 같아야 합니다.

설명

이 메서드는 중간 합계에 대한 추가 임시 스토리지를 요구하지 않고 Span<T> sums = ...; TensorPrimitives.Add(x, y, sums); T result = TensorPrimitives.Product(sums); 효과적으로 계산합니다.

이 메서드는 기본 C 런타임을 호출하거나 현재 아키텍처와 관련된 지침을 사용할 수 있습니다. 정확한 결과는 운영 체제 또는 아키텍처마다 다를 수 있습니다.

적용 대상