Share via


Tensor.Subtract Method

Definition

Overloads

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

Subtracts each element of x from y and returns a new TensorSpan<T> with the result.

Subtract<T>(T, ReadOnlyTensorSpan<T>)

Subtracts each element of y from x and returns a new Tensor<T> with the result.

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

Subtracts y from each element of x and returns a new TensorSpan<T> with the result.

Subtract<T>(ReadOnlyTensorSpan<T>, ReadOnlyTensorSpan<T>)

Subtracts each element of x from y and returns a new Tensor<T> with the result.

Subtract<T>(ReadOnlyTensorSpan<T>, T)

Subtracts y from each element of x and returns a new Tensor<T> with the result.

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

Subtracts each element of y from x and returns a new TensorSpan<T> with the result.

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

Source:
TensorExtensions.cs
Source:
TensorExtensions.cs

Subtracts each element of x from y and returns a new TensorSpan<T> with the result.

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

Type Parameters

T

Parameters

x
ReadOnlyTensorSpan<T>

The ReadOnlyTensorSpan<T> of values to be subtracted from.

y
ReadOnlyTensorSpan<T>

The ReadOnlyTensorSpan<T>of values to subtract.

destination
TensorSpan<T>

Returns

Applies to

Subtract<T>(T, ReadOnlyTensorSpan<T>)

Source:
TensorExtensions.cs
Source:
TensorExtensions.cs

Subtracts each element of y from x and returns a new Tensor<T> with the result.

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

Type Parameters

T

Parameters

x
T

The T to be subtracted from.

y
ReadOnlyTensorSpan<T>

The ReadOnlyTensorSpan<T> of values to subtract.

Returns

Applies to

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

Source:
TensorExtensions.cs
Source:
TensorExtensions.cs

Subtracts y from each element of x and returns a new TensorSpan<T> with the result.

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

Type Parameters

T

Parameters

x
ReadOnlyTensorSpan<T>

The ReadOnlyTensorSpan<T> with values to be subtracted from.

y
T

The T value to subtract.

destination
TensorSpan<T>

Returns

Applies to

Subtract<T>(ReadOnlyTensorSpan<T>, ReadOnlyTensorSpan<T>)

Source:
TensorExtensions.cs
Source:
TensorExtensions.cs

Subtracts each element of x from y and returns a new Tensor<T> with the result.

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

Type Parameters

T

Parameters

x
ReadOnlyTensorSpan<T>

The ReadOnlyTensorSpan<T> with values to be subtracted from.

y
ReadOnlyTensorSpan<T>

The ReadOnlyTensorSpan<T> with values to subtract.

Returns

Applies to

Subtract<T>(ReadOnlyTensorSpan<T>, T)

Source:
TensorExtensions.cs
Source:
TensorExtensions.cs

Subtracts y from each element of x and returns a new Tensor<T> with the result.

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

Type Parameters

T

Parameters

y
T

The T to subtract.

Returns

Applies to

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

Source:
TensorExtensions.cs
Source:
TensorExtensions.cs

Subtracts each element of y from x and returns a new TensorSpan<T> with the result.

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

Type Parameters

T

Parameters

x
T

The T value to be subtracted from.

y
ReadOnlyTensorSpan<T>

The ReadOnlyTensorSpan<T> values to subtract.

destination
TensorSpan<T>

Returns

Applies to