Compartilhar via


Tensor.Add Método

Definição

Sobrecargas

Add<T>(ReadOnlyTensorSpan<T>, ReadOnlyTensorSpan<T>)

Adiciona cada elemento de x a cada elemento de y e retorna um novo Tensor<T> com o resultado.

Add<T>(ReadOnlyTensorSpan<T>, T)

Adiciona y a cada elemento de x e retorna um novo Tensor<T> com o resultado.

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

Adiciona cada elemento de x a cada elemento de y e retorna um novo ReadOnlyTensorSpan<T> com o resultado.

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

Adiciona y a cada elemento de x e retorna um novo TensorSpan<T> com o resultado.

Add<T>(ReadOnlyTensorSpan<T>, ReadOnlyTensorSpan<T>)

Origem:
TensorExtensions.cs

Adiciona cada elemento de x a cada elemento de y e retorna um novo Tensor<T> com o resultado.

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

Parâmetros de tipo

T

Parâmetros

x
ReadOnlyTensorSpan<T>

O ReadOnlyTensorSpan<T> de valores a serem adicionados.

y
ReadOnlyTensorSpan<T>

O segundo ReadOnlyTensorSpan<T> de valores a serem adicionados.

Retornos

Aplica-se a

Add<T>(ReadOnlyTensorSpan<T>, T)

Origem:
TensorExtensions.cs

Adiciona y a cada elemento de x e retorna um novo Tensor<T> com o resultado.

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

Parâmetros de tipo

T

Parâmetros

x
ReadOnlyTensorSpan<T>

O ReadOnlyTensorSpan<T> de valores a serem adicionados.

y
T

O T a ser adicionado a cada elemento de x.

Retornos

Aplica-se a

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

Origem:
TensorExtensions.cs

Adiciona cada elemento de x a cada elemento de y e retorna um novo ReadOnlyTensorSpan<T> com o resultado.

public:
generic <typename T>
 where T : System::Numerics::IAdditionOperators<T, T, T>, System::Numerics::IAdditiveIdentity<T, T> static System::Numerics::Tensors::TensorSpan<T> ^ Add(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> Add<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.IAdditionOperators<T,T,T>, System.Numerics.IAdditiveIdentity<T,T>;
static member Add : ReadOnlyTensorSpan * ReadOnlyTensorSpan * TensorSpan -> TensorSpan (requires 'T :> System.Numerics.IAdditionOperators<'T, 'T, 'T> and 'T :> System.Numerics.IAdditiveIdentity<'T, 'T>)
Public Function Add(Of T As {IAdditionOperators(Of T, T, T), IAdditiveIdentity(Of T, T)}) (ByRef x As ReadOnlyTensorSpan(Of T), ByRef y As ReadOnlyTensorSpan(Of T), ByRef destination As TensorSpan(Of T)) As TensorSpan(Of T)

Parâmetros de tipo

T

Parâmetros

x
ReadOnlyTensorSpan<T>

O ReadOnlyTensorSpan<T> de valores a serem adicionados.

y
ReadOnlyTensorSpan<T>

O segundo ReadOnlyTensorSpan<T> de valores a serem adicionados.

destination
TensorSpan<T>

Retornos

Aplica-se a

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

Origem:
TensorExtensions.cs

Adiciona y a cada elemento de x e retorna um novo TensorSpan<T> com o resultado.

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

Parâmetros de tipo

T

Parâmetros

x
ReadOnlyTensorSpan<T>

O ReadOnlyTensorSpan<T> de valores a serem adicionados.

y
T

O T a ser adicionado a cada elemento de x.

destination
TensorSpan<T>

Retornos

Aplica-se a