Skip to content

Dynamic dimension support for Tensor and Index classes #5

@andravin

Description

@andravin

Extend tensors/indexes so that selected dimensions expose runtime size/stride alongside current compile-time (constexpr) descriptors.

Descriptor objects: let DimInfo remain zero-cost static objects while introducing RuntimeDimInfo that stores Dim values; keep a uniform API so expressions stay constexpr whenever all contributors are static.

Impacted areas: core templates (Tensor, Index, Cursor), dim traits utilities, codegen specializations, and unit tests for slicing/indexing; performance-sensitive paths must preserve the static fast path.

Benefits: broader applicability to runtime-shaped data and mixed static/dynamic layouts without rewriting higher-level algorithms.

Risks/effort: substantial refactor touching fundamental types, potential ABI/API adjustments, and need for extensive regression tests; not currently blocking ongoing work.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions