Tensor.ConvertChecked Método
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Sobrecargas
ConvertChecked<TFrom,TTo>(ReadOnlyTensorSpan<TFrom>) |
Copia |
ConvertChecked<TFrom,TTo>(ReadOnlyTensorSpan<TFrom>, TensorSpan<TTo>) |
Copia |
ConvertChecked<TFrom,TTo>(ReadOnlyTensorSpan<TFrom>)
- Origem:
- TensorExtensions.cs
Copia source
para um novo ReadOnlyTensorSpan<T> convertendo cada valor TFrom
em um valor TTo
.
public:
generic <typename TFrom, typename TTo>
where TFrom : IEquatable<TFrom>, System::Numerics::IEqualityOperators<TFrom, TFrom, bool>, System::Numerics::INumberBase<TFrom> where TTo : System::Numerics::INumberBase<TTo> static System::Numerics::Tensors::Tensor<TTo> ^ ConvertChecked(System::Numerics::Tensors::ReadOnlyTensorSpan<TFrom> % source);
public static System.Numerics.Tensors.Tensor<TTo> ConvertChecked<TFrom,TTo> (in System.Numerics.Tensors.ReadOnlyTensorSpan<TFrom> source) where TFrom : IEquatable<TFrom>, System.Numerics.IEqualityOperators<TFrom,TFrom,bool>, System.Numerics.INumberBase<TFrom> where TTo : System.Numerics.INumberBase<TTo>;
static member ConvertChecked : ReadOnlyTensorSpan -> System.Numerics.Tensors.Tensor<'o (requires 'o :> System.Numerics.INumberBase<'o>)> (requires 'From :> IEquatable<'From> and 'From :> System.Numerics.IEqualityOperators<'From, 'From, bool> and 'From :> System.Numerics.INumberBase<'From> and 'o :> System.Numerics.INumberBase<'o>)
Public Function ConvertChecked(Of TFrom As {IEquatable(Of TFrom), IEqualityOperators(Of TFrom, TFrom, Boolean), INumberBase(Of TFrom)}, TTo As {IEquatable(Of TFrom), IEqualityOperators(Of TFrom, TFrom, Boolean), INumberBase(Of TFrom)}) (ByRef source As ReadOnlyTensorSpan(Of TFrom)) As Tensor(Of TTo)
Parâmetros de tipo
- TFrom
- TTo
Parâmetros
- source
- ReadOnlyTensorSpan<TFrom>
O ReadOnlyTensorSpan<T>de entrada.
Retornos
Aplica-se a
ConvertChecked<TFrom,TTo>(ReadOnlyTensorSpan<TFrom>, TensorSpan<TTo>)
- Origem:
- TensorExtensions.cs
Copia source
para um novo TensorSpan<T> convertendo cada valor TFrom
em um valor TTo
.
public:
generic <typename TFrom, typename TTo>
where TFrom : IEquatable<TFrom>, System::Numerics::IEqualityOperators<TFrom, TFrom, bool>, System::Numerics::INumberBase<TFrom> where TTo : System::Numerics::INumberBase<TTo> static System::Numerics::Tensors::TensorSpan<T> ^ ConvertChecked(System::Numerics::Tensors::ReadOnlyTensorSpan<TFrom> % source, System::Numerics::Tensors::TensorSpan<TTo> % destination);
public static ref readonly System.Numerics.Tensors.TensorSpan<TTo> ConvertChecked<TFrom,TTo> (scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<TFrom> source, in System.Numerics.Tensors.TensorSpan<TTo> destination) where TFrom : IEquatable<TFrom>, System.Numerics.IEqualityOperators<TFrom,TFrom,bool>, System.Numerics.INumberBase<TFrom> where TTo : System.Numerics.INumberBase<TTo>;
static member ConvertChecked : ReadOnlyTensorSpan * TensorSpan -> TensorSpan (requires 'From :> IEquatable<'From> and 'From :> System.Numerics.IEqualityOperators<'From, 'From, bool> and 'From :> System.Numerics.INumberBase<'From> and 'o :> System.Numerics.INumberBase<'o>)
Public Function ConvertChecked(Of TFrom As {IEquatable(Of TFrom), IEqualityOperators(Of TFrom, TFrom, Boolean), INumberBase(Of TFrom)}, TTo As {IEquatable(Of TFrom), IEqualityOperators(Of TFrom, TFrom, Boolean), INumberBase(Of TFrom)}) (ByRef source As ReadOnlyTensorSpan(Of TFrom), ByRef destination As TensorSpan(Of TTo)) As TensorSpan(Of TTo)
Parâmetros de tipo
- TFrom
- TTo
Parâmetros
- source
- ReadOnlyTensorSpan<TFrom>
O TensorSpan<T>de entrada.
- destination
- TensorSpan<TTo>