次の方法で共有


Tensor.ConvertSaturating メソッド

定義

オーバーロード

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

source を新しい ReadOnlyTensorSpan<T> にコピーし、各 TFrom 値を TTo 値に変換します。

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

source を新しい TensorSpan<T> にコピーし、各 TFrom 値を TTo 値に変換します。

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

ソース:
TensorExtensions.cs

source を新しい ReadOnlyTensorSpan<T> にコピーし、各 TFrom 値を 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> ^ ConvertSaturating(System::Numerics::Tensors::ReadOnlyTensorSpan<TFrom> % source);
public static System.Numerics.Tensors.Tensor<TTo> ConvertSaturating<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 ConvertSaturating : 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 ConvertSaturating(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)

型パラメーター

TFrom
TTo

パラメーター

source
ReadOnlyTensorSpan<TFrom>

入力 ReadOnlyTensorSpan<T>

戻り値

Tensor<TTo>

適用対象

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

ソース:
TensorExtensions.cs

source を新しい TensorSpan<T> にコピーし、各 TFrom 値を 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> ^ ConvertSaturating(System::Numerics::Tensors::ReadOnlyTensorSpan<TFrom> % source, System::Numerics::Tensors::TensorSpan<TTo> % destination);
public static ref readonly System.Numerics.Tensors.TensorSpan<TTo> ConvertSaturating<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 ConvertSaturating : 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 ConvertSaturating(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)

型パラメーター

TFrom
TTo

パラメーター

source
ReadOnlyTensorSpan<TFrom>

入力 TensorSpan<T>

destination
TensorSpan<TTo>

戻り値

TensorSpan<TTo>

適用対象