Tensor.ShiftLeft Methode
Definitie
Belangrijk
Bepaalde informatie heeft betrekking op een voorlopige productversie die aanzienlijk kan worden gewijzigd voordat deze wordt uitgebracht. Microsoft biedt geen enkele expliciete of impliciete garanties met betrekking tot de informatie die hier wordt verstrekt.
Overloads
| Name | Description |
|---|---|
| ShiftLeft<T>(ReadOnlyTensorSpan<T>, Int32) |
Voert een elementgewijze linker shift uit op een tensor. |
| ShiftLeft<T>(ReadOnlyTensorSpan<T>, Int32, TensorSpan<T>) |
Voert een elementgewijze linker shift uit op een tensor. |
ShiftLeft<T>(ReadOnlyTensorSpan<T>, Int32)
Voert een elementgewijze linker shift uit op een 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)
Type parameters
- T
Het type elementen in de tensor.
Parameters
De tensor naar links shift.
- shiftAmount
- Int32
Het bedrag om elk element in xte verschuiven.
Retouren
Een nieuwe tensor die het resultaat van x<<shiftAmount.
Van toepassing op
ShiftLeft<T>(ReadOnlyTensorSpan<T>, Int32, TensorSpan<T>)
Voert een elementgewijze linker shift uit op een 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)
Type parameters
- T
Het type elementen in de tensor.
Parameters
De tensor naar links shift.
- shiftAmount
- Int32
Het bedrag om elk element in xte verschuiven.
- destination
- TensorSpan<T>
De bestemming waar het resultaat x<<shiftAmount is geschreven.
Retouren
Een verwijzing naar destination.
Uitzonderingen
De vormen van x en destination zijn niet compatibel.