Tensor.Add メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
| 名前 | 説明 |
|---|---|
| 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>)
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
テンソル内の要素の型。
パラメーター
yで追加するテンソル。
xで追加するテンソル。
返品
x
+
yの結果を含む新しいテンソル。
例外
xとyの図形は互換性がありません。
適用対象
Add<T>(ReadOnlyTensorSpan<T>, T)
テンソルとスカラーの間で要素ごとの加算を実行します。
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
テンソル内の要素の型。
パラメーター
yで追加するテンソル。
- y
- T
xで追加するスカラー。
返品
x
+
yの結果を含む新しいテンソル。
適用対象
Add<T>(ReadOnlyTensorSpan<T>, ReadOnlyTensorSpan<T>, TensorSpan<T>)
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
テンソル内の要素の型。
パラメーター
yで追加するテンソル。
xで追加するテンソル。
- destination
- TensorSpan<T>
x
+
yの結果が書き込まれる宛先。
返品
destination への参照です。
例外
x、y、およびdestinationの図形には互換性がありません。
適用対象
Add<T>(ReadOnlyTensorSpan<T>, T, TensorSpan<T>)
テンソルとスカラーの間で要素ごとの加算を実行します。
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
テンソル内の要素の型。
パラメーター
yで追加するテンソル。
- y
- T
xで追加するスカラー。
- destination
- TensorSpan<T>
x
+
yの結果が書き込まれる宛先。
返品
destination への参照です。
例外
xとdestinationの図形は互換性がありません。