Język

Tensor.ShiftLeft Metoda

Definicja

Przeciążenia

Nazwa Opis
ShiftLeft<T>(ReadOnlyTensorSpan<T>, Int32)

Wykonuje mądre lewe przesunięcie elementu na tensor.

ShiftLeft<T>(ReadOnlyTensorSpan<T>, Int32, TensorSpan<T>)

Wykonuje mądre lewe przesunięcie elementu na tensor.

ShiftLeft<T>(ReadOnlyTensorSpan<T>, Int32)

Źródło:
Tensor.op_LeftShift.cs
Źródło:
Tensor.op_LeftShift.cs

Wykonuje mądre lewe przesunięcie elementu na tensor.

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)

Parametry typu

T

Typ elementów w tensor.

Parametry

x
ReadOnlyTensorSpan<T>

Tensor do lewej zmiany.

shiftAmount
Int32

Kwota przesunięcia każdego elementu w elemecie x.

Zwraca

Nowy tensor zawierający wynik .x<<shiftAmount

Dotyczy

ShiftLeft<T>(ReadOnlyTensorSpan<T>, Int32, TensorSpan<T>)

Źródło:
Tensor.op_LeftShift.cs
Źródło:
Tensor.op_LeftShift.cs

Wykonuje mądre lewe przesunięcie elementu na tensor.

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)

Parametry typu

T

Typ elementów w tensor.

Parametry

x
ReadOnlyTensorSpan<T>

Tensor do lewej zmiany.

shiftAmount
Int32

Kwota przesunięcia każdego elementu w elemecie x.

destination
TensorSpan<T>

Miejsce docelowe, w którym jest zapisywany x<<shiftAmount wynik.

Zwraca

Odwołanie do destination.

Wyjątki

Kształty elementów x i destination nie są zgodne.

Dotyczy