Share via


Tensor<T>.ToDenseTensor Method

Definition

Creates a dense tensor from the elements of the current tensor.

public:
 virtual System::Numerics::Tensors::Tensor<T> ^ ToDenseTensor();
public System.Numerics.Tensors.Tensor<T> ToDenseTensor();
abstract member ToDenseTensor : unit -> System.Numerics.Tensors.Tensor<'T>
override this.ToDenseTensor : unit -> System.Numerics.Tensors.Tensor<'T>
Public Function ToDenseTensor () As Tensor(Of T)

Returns

The current tensor if it is already dense; otherwise, a new tensor that contains the elements of this tensor.

Implements

Applies to