Κοινή χρήση μέσω


Tensor.CopySign Method

Definition

Overloads

CopySign<T>(ReadOnlyTensorSpan<T>, T, TensorSpan<T>)

Computes the element-wise result of copying the sign from one number to another number in the specified tensors and returns a new tensor with the result.

CopySign<T>(ReadOnlyTensorSpan<T>, ReadOnlyTensorSpan<T>, TensorSpan<T>)

Computes the element-wise result of copying the sign from one number to another number in the specified tensors and returns a new TensorSpan<T> with the result.

CopySign<T>(ReadOnlyTensorSpan<T>, T)

Computes the element-wise result of copying the sign from one number to another number in the specified tensors and returns a new tensor with the result.

CopySign<T>(ReadOnlyTensorSpan<T>, ReadOnlyTensorSpan<T>)

Computes the element-wise result of copying the sign from one number to another number in the specified tensors and returns a new Tensor<T> with the result.

CopySign<T>(ReadOnlyTensorSpan<T>, T, TensorSpan<T>)

Source:
TensorExtensions.cs
Source:
TensorExtensions.cs

Computes the element-wise result of copying the sign from one number to another number in the specified tensors and returns a new tensor with the result.

public:
generic <typename T>
 where T : System::Numerics::INumber<T> static System::Numerics::Tensors::TensorSpan<T> ^ CopySign(System::Numerics::Tensors::ReadOnlyTensorSpan<T> % x, T sign, System::Numerics::Tensors::TensorSpan<T> % destination);
public static ref readonly System.Numerics.Tensors.TensorSpan<T> CopySign<T> (scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, T sign, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.INumber<T>;
static member CopySign : ReadOnlyTensorSpan * 'T * TensorSpan -> TensorSpan (requires 'T :> System.Numerics.INumber<'T>)
Public Function CopySign(Of T As INumber(Of T)) (ByRef x As ReadOnlyTensorSpan(Of T), sign As T, ByRef destination As TensorSpan(Of T)) As TensorSpan(Of T)

Type Parameters

T

Parameters

sign
T

The number with the associated sign.

destination
TensorSpan<T>

Returns

Applies to

CopySign<T>(ReadOnlyTensorSpan<T>, ReadOnlyTensorSpan<T>, TensorSpan<T>)

Source:
TensorExtensions.cs
Source:
TensorExtensions.cs

Computes the element-wise result of copying the sign from one number to another number in the specified tensors and returns a new TensorSpan<T> with the result.

public:
generic <typename T>
 where T : System::Numerics::INumber<T> static System::Numerics::Tensors::TensorSpan<T> ^ CopySign(System::Numerics::Tensors::ReadOnlyTensorSpan<T> % x, System::Numerics::Tensors::ReadOnlyTensorSpan<T> % sign, System::Numerics::Tensors::TensorSpan<T> % destination);
public static ref readonly System.Numerics.Tensors.TensorSpan<T> CopySign<T> (scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> sign, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.INumber<T>;
static member CopySign : ReadOnlyTensorSpan * ReadOnlyTensorSpan * TensorSpan -> TensorSpan (requires 'T :> System.Numerics.INumber<'T>)
Public Function CopySign(Of T As INumber(Of T)) (ByRef x As ReadOnlyTensorSpan(Of T), ByRef sign As ReadOnlyTensorSpan(Of T), ByRef destination As TensorSpan(Of T)) As TensorSpan(Of T)

Type Parameters

T

Parameters

sign
ReadOnlyTensorSpan<T>

The ReadOnlyTensorSpan<T> with the associated signs.

destination
TensorSpan<T>

Returns

Applies to

CopySign<T>(ReadOnlyTensorSpan<T>, T)

Source:
TensorExtensions.cs
Source:
TensorExtensions.cs

Computes the element-wise result of copying the sign from one number to another number in the specified tensors and returns a new tensor with the result.

public:
generic <typename T>
 where T : System::Numerics::INumber<T> static System::Numerics::Tensors::Tensor<T> ^ CopySign(System::Numerics::Tensors::ReadOnlyTensorSpan<T> % x, T sign);
public static System.Numerics.Tensors.Tensor<T> CopySign<T> (in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, T sign) where T : System.Numerics.INumber<T>;
static member CopySign : ReadOnlyTensorSpan * 'T -> System.Numerics.Tensors.Tensor<'T (requires 'T :> System.Numerics.INumber<'T>)> (requires 'T :> System.Numerics.INumber<'T>)
Public Function CopySign(Of T As INumber(Of T)) (ByRef x As ReadOnlyTensorSpan(Of T), sign As T) As Tensor(Of T)

Type Parameters

T

Parameters

sign
T

The number with the associated sign.

Returns

Applies to

CopySign<T>(ReadOnlyTensorSpan<T>, ReadOnlyTensorSpan<T>)

Source:
TensorExtensions.cs
Source:
TensorExtensions.cs

Computes the element-wise result of copying the sign from one number to another number in the specified tensors and returns a new Tensor<T> with the result.

public:
generic <typename T>
 where T : System::Numerics::INumber<T> static System::Numerics::Tensors::Tensor<T> ^ CopySign(System::Numerics::Tensors::ReadOnlyTensorSpan<T> % x, System::Numerics::Tensors::ReadOnlyTensorSpan<T> % sign);
public static System.Numerics.Tensors.Tensor<T> CopySign<T> (in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, in System.Numerics.Tensors.ReadOnlyTensorSpan<T> sign) where T : System.Numerics.INumber<T>;
static member CopySign : ReadOnlyTensorSpan * ReadOnlyTensorSpan -> System.Numerics.Tensors.Tensor<'T (requires 'T :> System.Numerics.INumber<'T>)> (requires 'T :> System.Numerics.INumber<'T>)
Public Function CopySign(Of T As INumber(Of T)) (ByRef x As ReadOnlyTensorSpan(Of T), ByRef sign As ReadOnlyTensorSpan(Of T)) As Tensor(Of T)

Type Parameters

T

Parameters

sign
ReadOnlyTensorSpan<T>

The ReadOnlyTensorSpan<T> with the associated signs.

Returns

Applies to