Tensor.Add メソッド

定義

オーバーロード

名前 説明
Add<T>(ReadOnlyTensorSpan<T>, ReadOnlyTensorSpan<T>)

2 つのテンソル間で要素ごとの加算を実行します。

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

テンソルとスカラーの間で要素ごとの加算を実行します。

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

2 つのテンソル間で要素ごとの加算を実行します。

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

テンソルとスカラーの間で要素ごとの加算を実行します。

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

ソース:
Tensor.op_Addition.cs
ソース:
TensorExtensions.cs
ソース:
Tensor.op_Addition.cs

2 つのテンソル間で要素ごとの加算を実行します。

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)

型パラメーター

T

テンソル内の要素の型。

パラメーター

x
ReadOnlyTensorSpan<T>

yで追加するテンソル。

y
ReadOnlyTensorSpan<T>

xで追加するテンソル。

返品

x + yの結果を含む新しいテンソル。

例外

xyの図形は互換性がありません。

適用対象

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

ソース:
Tensor.op_Addition.cs
ソース:
TensorExtensions.cs
ソース:
Tensor.op_Addition.cs

テンソルとスカラーの間で要素ごとの加算を実行します。

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)

型パラメーター

T

テンソル内の要素の型。

パラメーター

x
ReadOnlyTensorSpan<T>

yで追加するテンソル。

y
T

xで追加するスカラー。

返品

x + yの結果を含む新しいテンソル。

適用対象

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

ソース:
Tensor.op_Addition.cs
ソース:
TensorExtensions.cs
ソース:
Tensor.op_Addition.cs

2 つのテンソル間で要素ごとの加算を実行します。

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)

型パラメーター

T

テンソル内の要素の型。

パラメーター

x
ReadOnlyTensorSpan<T>

yで追加するテンソル。

y
ReadOnlyTensorSpan<T>

xで追加するテンソル。

destination
TensorSpan<T>

x + yの結果が書き込まれる宛先。

返品

destination への参照です。

例外

xy、およびdestinationの図形には互換性がありません。

適用対象

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

ソース:
Tensor.op_Addition.cs
ソース:
TensorExtensions.cs
ソース:
Tensor.op_Addition.cs

テンソルとスカラーの間で要素ごとの加算を実行します。

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)

型パラメーター

T

テンソル内の要素の型。

パラメーター

x
ReadOnlyTensorSpan<T>

yで追加するテンソル。

y
T

xで追加するスカラー。

destination
TensorSpan<T>

x + yの結果が書き込まれる宛先。

返品

destination への参照です。

例外

xdestinationの図形は互換性がありません。

適用対象