Share via


TensorSpan<T>.Enumerator Struct

Definition

Enumerates the elements of a tensor span.

public ref struct TensorSpan<T>.Enumerator : System.Collections.Generic.IEnumerator<T>

Type Parameters

T
Inheritance
TensorSpan<T>.Enumerator
Implements

Properties

Current

Gets the element at the current position of the enumerator.

Methods

MoveNext()

Advances the enumerator to the next element of the span.

Reset()

Sets the enumerator to its initial position, which is before the first element in the tensor span.

Explicit Interface Implementations

Applies to

Product Versions
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)