Breyta

Deila með


Tensor.CopySign Method

Definition

Overloads

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

CopySign<T>(Tensor<T>, Tensor<T>)

Source:
TensorExtensions.cs
public:
generic <typename T>
 where T : System::Numerics::INumber<T> static System::Numerics::Tensors::Tensor<T> ^ CopySign(System::Numerics::Tensors::Tensor<T> ^ input, System::Numerics::Tensors::Tensor<T> ^ sign);
public static System.Numerics.Tensors.Tensor<T> CopySign<T> (System.Numerics.Tensors.Tensor<T> input, System.Numerics.Tensors.Tensor<T> sign) where T : System.Numerics.INumber<T>;
static member CopySign : System.Numerics.Tensors.Tensor<'T (requires 'T :> System.Numerics.INumber<'T>)> * System.Numerics.Tensors.Tensor<'T (requires 'T :> System.Numerics.INumber<'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)) (input As Tensor(Of T), sign As Tensor(Of T)) As Tensor(Of T)

Type Parameters

T

Parameters

input
Tensor<T>
sign
Tensor<T>

Returns

Applies to

CopySign<T>(Tensor<T>, T)

Source:
TensorExtensions.cs
public:
generic <typename T>
 where T : System::Numerics::INumber<T> static System::Numerics::Tensors::Tensor<T> ^ CopySign(System::Numerics::Tensors::Tensor<T> ^ input, T sign);
public static System.Numerics.Tensors.Tensor<T> CopySign<T> (System.Numerics.Tensors.Tensor<T> input, T sign) where T : System.Numerics.INumber<T>;
static member CopySign : System.Numerics.Tensors.Tensor<'T (requires 'T :> System.Numerics.INumber<'T>)> * '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)) (input As Tensor(Of T), sign As T) As Tensor(Of T)

Type Parameters

T

Parameters

input
Tensor<T>
sign
T

Returns

Applies to

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

Source:
TensorExtensions.cs
public:
generic <typename T>
 where T : System::Numerics::INumber<T> static System::Numerics::Tensors::TensorSpan<T> ^ CopySign(System::Numerics::Tensors::ReadOnlyTensorSpan<T> % input, 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> input, 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 input As ReadOnlyTensorSpan(Of T), ByRef sign As ReadOnlyTensorSpan(Of T), ByRef destination As TensorSpan(Of T)) As TensorSpan(Of T)

Type Parameters

T

Parameters

destination
TensorSpan<T>

Returns

Applies to

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

Source:
TensorExtensions.cs
public:
generic <typename T>
 where T : System::Numerics::INumber<T> static System::Numerics::Tensors::TensorSpan<T> ^ CopySign(System::Numerics::Tensors::ReadOnlyTensorSpan<T> % input, 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> input, 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 input As ReadOnlyTensorSpan(Of T), sign As T, ByRef destination As TensorSpan(Of T)) As TensorSpan(Of T)

Type Parameters

T

Parameters

sign
T
destination
TensorSpan<T>

Returns

Applies to