TensorSpan<T>.Implicit Operator
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
| Implicit(T[] to TensorSpan<T>) |
Defines an implicit conversion of an array to a tensor span. |
| Implicit(TensorSpan<T> to ReadOnlyTensorSpan<T>) |
Defines an implicit conversion of a tensor to a readonly tensor span. |
Implicit(T[] to TensorSpan<T>)
- Source:
- TensorSpan_1.cs
- Source:
- TensorSpan.cs
Defines an implicit conversion of an array to a tensor span.
public:
static operator System::Numerics::Tensors::TensorSpan<T>(cli::array <T> ^ array);
public static implicit operator System.Numerics.Tensors.TensorSpan<T>(T[]? array);
static member op_Implicit : 'T[] -> System.Numerics.Tensors.TensorSpan<'T>
Public Shared Widening Operator CType (array As T()) As TensorSpan(Of T)
Parameters
- array
- T[]
The array to convert to a tensor span.
Returns
The tensor span that corresponds to array.
Applies to
Implicit(TensorSpan<T> to ReadOnlyTensorSpan<T>)
- Source:
- TensorSpan_1.cs
Defines an implicit conversion of a tensor to a readonly tensor span.
public:
static operator System::Numerics::Tensors::ReadOnlyTensorSpan<T>(System::Numerics::Tensors::TensorSpan<T> % tensor);
public static implicit operator System.Numerics.Tensors.ReadOnlyTensorSpan<T>(scoped in System.Numerics.Tensors.TensorSpan<T> tensor);
static member op_Implicit : TensorSpan -> System.Numerics.Tensors.ReadOnlyTensorSpan<'T>
Public Shared Widening Operator CType (ByRef tensor As TensorSpan(Of T)) As ReadOnlyTensorSpan(Of T)
Parameters
- tensor
- TensorSpan<T>
The tensor to convert to a readonly tensor span.
Returns
The tensor that corresponds to tensor.