Tensor.ConvertChecked Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
ConvertChecked<TFrom,TTo>(ReadOnlyTensorSpan<TFrom>) |
Copies |
ConvertChecked<TFrom,TTo>(ReadOnlyTensorSpan<TFrom>, TensorSpan<TTo>) |
Copies |
ConvertChecked<TFrom,TTo>(ReadOnlyTensorSpan<TFrom>)
- Source:
- TensorExtensions.cs
- Source:
- TensorExtensions.cs
Copies source
to a new ReadOnlyTensorSpan<T> converting each TFrom
value to a TTo
value.
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)
Type Parameters
- TFrom
- TTo
Parameters
- source
- ReadOnlyTensorSpan<TFrom>
The input ReadOnlyTensorSpan<T>.
Returns
Tensor<TTo>
Applies to
ConvertChecked<TFrom,TTo>(ReadOnlyTensorSpan<TFrom>, TensorSpan<TTo>)
- Source:
- TensorExtensions.cs
- Source:
- TensorExtensions.cs
Copies source
to a new TensorSpan<T> converting each TFrom
value to a TTo
value.
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)
Type Parameters
- TFrom
- TTo
Parameters
- source
- ReadOnlyTensorSpan<TFrom>
The input TensorSpan<T>.
- destination
- TensorSpan<TTo>
Returns
TensorSpan<TTo>
Applies to
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
.NET