Tensor.ShiftLeft Método
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Sobrecargas
| Nombre | Description |
|---|---|
| ShiftLeft<T>(ReadOnlyTensorSpan<T>, Int32) |
Realiza un desplazamiento izquierdo a la izquierda en un tensor. |
| ShiftLeft<T>(ReadOnlyTensorSpan<T>, Int32, TensorSpan<T>) |
Realiza un desplazamiento izquierdo a la izquierda en un tensor. |
ShiftLeft<T>(ReadOnlyTensorSpan<T>, Int32)
- Source:
- Tensor.op_LeftShift.cs
- Source:
- Tensor.op_LeftShift.cs
Realiza un desplazamiento izquierdo a la izquierda en un 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)
Parámetros de tipo
- T
Tipo de los elementos del tensor.
Parámetros
Tensor a desplazamiento izquierdo.
- shiftAmount
- Int32
Cantidad que se va a desplazar cada elemento de x.
Devoluciones
Nuevo tensor que contiene el resultado de x<<shiftAmount.
Se aplica a
ShiftLeft<T>(ReadOnlyTensorSpan<T>, Int32, TensorSpan<T>)
- Source:
- Tensor.op_LeftShift.cs
- Source:
- Tensor.op_LeftShift.cs
Realiza un desplazamiento izquierdo a la izquierda en un 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)
Parámetros de tipo
- T
Tipo de los elementos del tensor.
Parámetros
Tensor a desplazamiento izquierdo.
- shiftAmount
- Int32
Cantidad que se va a desplazar cada elemento de x.
- destination
- TensorSpan<T>
Destino donde se escribe el resultado de x<<shiftAmount .
Devoluciones
Referencia a una estructura destination.
Excepciones
Las formas de x y destination no son compatibles.