Tensor.ShiftLeft メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
| 名前 | 説明 |
|---|---|
| ShiftLeft<T>(ReadOnlyTensorSpan<T>, Int32) |
テンソルに対して要素ごとの左シフトを実行します。 |
| ShiftLeft<T>(ReadOnlyTensorSpan<T>, Int32, TensorSpan<T>) |
テンソルに対して要素ごとの左シフトを実行します。 |
ShiftLeft<T>(ReadOnlyTensorSpan<T>, Int32)
テンソルに対して要素ごとの左シフトを実行します。
public:
generic <typename T>
where T : System::Numerics::IShiftOperators<T, int, T> static System::Numerics::Tensors::Tensor<T> ^ ShiftLeft(System::Numerics::Tensors::ReadOnlyTensorSpan<T> % x, int shiftAmount);
public static System.Numerics.Tensors.Tensor<T> ShiftLeft<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, int shiftAmount) where T : System.Numerics.IShiftOperators<T,int,T>;
static member ShiftLeft : ReadOnlyTensorSpan * int -> System.Numerics.Tensors.Tensor<'T (requires 'T :> System.Numerics.IShiftOperators<'T, int, 'T>)> (requires 'T :> System.Numerics.IShiftOperators<'T, int, 'T>)
Public Function ShiftLeft(Of T As IShiftOperators(Of T, Integer, T)) (ByRef x As ReadOnlyTensorSpan(Of T), shiftAmount As Integer) As Tensor(Of T)
型パラメーター
- T
テンソル内の要素の型。
パラメーター
左シフトへのテンソル。
- shiftAmount
- Int32
x内の各要素をシフトする量。
返品
x
<<
shiftAmountの結果を含む新しいテンソル。
適用対象
ShiftLeft<T>(ReadOnlyTensorSpan<T>, Int32, TensorSpan<T>)
テンソルに対して要素ごとの左シフトを実行します。
public:
generic <typename T>
where T : System::Numerics::IShiftOperators<T, int, T> static System::Numerics::Tensors::TensorSpan<T> ^ ShiftLeft(System::Numerics::Tensors::ReadOnlyTensorSpan<T> % x, int shiftAmount, System::Numerics::Tensors::TensorSpan<T> % destination);
public static ref readonly System.Numerics.Tensors.TensorSpan<T> ShiftLeft<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, int shiftAmount, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IShiftOperators<T,int,T>;
static member ShiftLeft : ReadOnlyTensorSpan * int * TensorSpan -> TensorSpan (requires 'T :> System.Numerics.IShiftOperators<'T, int, 'T>)
Public Function ShiftLeft(Of T As IShiftOperators(Of T, Integer, T)) (ByRef x As ReadOnlyTensorSpan(Of T), shiftAmount As Integer, ByRef destination As TensorSpan(Of T)) As TensorSpan(Of T)
型パラメーター
- T
テンソル内の要素の型。
パラメーター
左シフトへのテンソル。
- shiftAmount
- Int32
x内の各要素をシフトする量。
- destination
- TensorSpan<T>
x
<<
shiftAmountの結果が書き込まれる宛先。
返品
destination への参照です。
例外
xとdestinationの図形は互換性がありません。