Partager via


Tensor.ConvertTruncating Méthode

Définition

Surcharges

ConvertTruncating<TFrom,TTo>(ReadOnlyTensorSpan<TFrom>)

Copie source dans une nouvelle ReadOnlyTensorSpan<T> convertir chaque valeur de TFrom en valeur de TTo.

ConvertTruncating<TFrom,TTo>(ReadOnlyTensorSpan<TFrom>, TensorSpan<TTo>)

Copie source dans une nouvelle TensorSpan<T> convertir chaque valeur de TFrom en valeur de TTo.

ConvertTruncating<TFrom,TTo>(ReadOnlyTensorSpan<TFrom>)

Source:
TensorExtensions.cs

Copie source dans une nouvelle ReadOnlyTensorSpan<T> convertir chaque valeur de TFrom en valeur de 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> ^ ConvertTruncating(System::Numerics::Tensors::ReadOnlyTensorSpan<TFrom> % source);
public static System.Numerics.Tensors.Tensor<TTo> ConvertTruncating<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 ConvertTruncating : 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 ConvertTruncating(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)

Paramètres de type

TFrom
TTo

Paramètres

source
ReadOnlyTensorSpan<TFrom>

Entrée ReadOnlyTensorSpan<T>.

Retours

Tensor<TTo>

S’applique à

ConvertTruncating<TFrom,TTo>(ReadOnlyTensorSpan<TFrom>, TensorSpan<TTo>)

Source:
TensorExtensions.cs

Copie source dans une nouvelle TensorSpan<T> convertir chaque valeur de TFrom en valeur de 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> ^ ConvertTruncating(System::Numerics::Tensors::ReadOnlyTensorSpan<TFrom> % source, System::Numerics::Tensors::TensorSpan<TTo> % destination);
public static ref readonly System.Numerics.Tensors.TensorSpan<TTo> ConvertTruncating<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 ConvertTruncating : 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 ConvertTruncating(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)

Paramètres de type

TFrom
TTo

Paramètres

source
ReadOnlyTensorSpan<TFrom>

Entrée TensorSpan<T>.

destination
TensorSpan<TTo>

Retours

TensorSpan<TTo>

S’applique à