ReshapeDescriptor class

Describes a row-major reshape that preserves linear element order.

Annotations

Constructors

ReshapeDescriptor({required LayoutShape inputShape, required LayoutShape outputShape})
Creates a reshape between equally sized layouts.

Properties

elementCount → int
Number of elements before and after reshaping.
no setter
hashCode → int
The hash code for this object.
no setterinherited
inputShape → LayoutShape
Shape before reshaping.
final
outputShape → LayoutShape
Shape after reshaping.
final
permutation → PermutationDescriptor
Identity element mapping used by row-major reshape hardware.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

inputToOutput(Iterable<int> coordinates) → List<int>
Converts input coordinates to output coordinates.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
outputToInput(Iterable<int> coordinates) → List<int>
Converts output coordinates to input coordinates.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited