Tensor.Subtract Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Subtract<T>(ReadOnlyTensorSpan<T>, ReadOnlyTensorSpan<T>, TensorSpan<T>) |
Subtracts each element of |
Subtract<T>(T, ReadOnlyTensorSpan<T>) |
Subtracts each element of |
Subtract<T>(ReadOnlyTensorSpan<T>, T, TensorSpan<T>) |
Subtracts |
Subtract<T>(ReadOnlyTensorSpan<T>, ReadOnlyTensorSpan<T>) |
Subtracts each element of |
Subtract<T>(ReadOnlyTensorSpan<T>, T) |
Subtracts |
Subtract<T>(T, ReadOnlyTensorSpan<T>, TensorSpan<T>) |
Subtracts each element of |
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
The ReadOnlyTensorSpan<T> of values to be subtracted from.
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.
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
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
The ReadOnlyTensorSpan<T> with values to be subtracted from.
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.
The ReadOnlyTensorSpan<T> values to subtract.
- destination
- TensorSpan<T>
Returns
Applies to
.NET