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