다음을 통해 공유


TensorPrimitives.CopySign 메서드

정의

오버로드

CopySign<T>(ReadOnlySpan<T>, ReadOnlySpan<T>, Span<T>)

지정된 텐서에서 한 숫자에서 다른 숫자로 기호를 복사한 요소별 결과를 계산합니다.

CopySign<T>(ReadOnlySpan<T>, T, Span<T>)

지정된 텐서에서 한 숫자에서 다른 숫자로 기호를 복사한 요소별 결과를 계산합니다.

CopySign<T>(ReadOnlySpan<T>, ReadOnlySpan<T>, Span<T>)

Source:
TensorPrimitives.CopySign.cs
Source:
TensorPrimitives.CopySign.cs

지정된 텐서에서 한 숫자에서 다른 숫자로 기호를 복사한 요소별 결과를 계산합니다.

public:
generic <typename T>
 where T : System::Numerics::INumber<T> static void CopySign(ReadOnlySpan<T> x, ReadOnlySpan<T> sign, Span<T> destination);
public static void CopySign<T> (ReadOnlySpan<T> x, ReadOnlySpan<T> sign, Span<T> destination) where T : System.Numerics.INumber<T>;
static member CopySign : ReadOnlySpan<'T (requires 'T :> System.Numerics.INumber<'T>)> * ReadOnlySpan<'T (requires 'T :> System.Numerics.INumber<'T>)> * Span<'T (requires 'T :> System.Numerics.INumber<'T>)> -> unit (requires 'T :> System.Numerics.INumber<'T>)
Public Shared Sub CopySign(Of T As INumber(Of T)) (x As ReadOnlySpan(Of T), sign As ReadOnlySpan(Of T), destination As Span(Of T))

형식 매개 변수

T

매개 변수

x
ReadOnlySpan<T>

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

sign
ReadOnlySpan<T>

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

destination
Span<T>

범위로 표시되는 대상 텐서입니다.

예외

signdestination 겹치는 메모리 위치를 참조하며 동일한 위치에서 시작하지 않습니다.

설명

이 메서드는 destination[i] = T.CopySign(x[i], sign[i])효과적으로 계산합니다.

적용 대상

CopySign<T>(ReadOnlySpan<T>, T, Span<T>)

Source:
TensorPrimitives.CopySign.cs
Source:
TensorPrimitives.CopySign.cs

지정된 텐서에서 한 숫자에서 다른 숫자로 기호를 복사한 요소별 결과를 계산합니다.

public:
generic <typename T>
 where T : System::Numerics::INumber<T> static void CopySign(ReadOnlySpan<T> x, T sign, Span<T> destination);
public static void CopySign<T> (ReadOnlySpan<T> x, T sign, Span<T> destination) where T : System.Numerics.INumber<T>;
static member CopySign : ReadOnlySpan<'T (requires 'T :> System.Numerics.INumber<'T>)> * 'T * Span<'T (requires 'T :> System.Numerics.INumber<'T>)> -> unit (requires 'T :> System.Numerics.INumber<'T>)
Public Shared Sub CopySign(Of T As INumber(Of T)) (x As ReadOnlySpan(Of T), sign As T, destination As Span(Of T))

형식 매개 변수

T

매개 변수

x
ReadOnlySpan<T>

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

sign
T

스칼라로 표현되는 두 번째 텐서입니다.

destination
Span<T>

범위로 표시되는 대상 텐서입니다.

예외

xdestination 겹치는 메모리 위치를 참조하며 동일한 위치에서 시작하지 않습니다.

설명

이 메서드는 destination[i] = T.CopySign(x[i], sign[i])효과적으로 계산합니다.

적용 대상