ndarray icon indicating copy to clipboard operation
ndarray copied to clipboard

Improvements using const generics

Open bluss opened this issue 4 years ago • 1 comments

There are a few minor features and improvements we can do with const generics. This meta-issue is mainly about those.

Big-ticket items get their own issue. In particular remaking index and dimension types gets is own ticket.

Easy add-ons

  • [x] IntoNdProducer impl for &[T; N]
  • [x] FixedInitializer or replacement impl for &array - replace with just const generics of arrays
  • [ ] From<&array> and similar implementations
  • [x] NdIndex / Index impls using [T; N] in particular for ixdyn ?

Long term features

  • [ ] Overhaul of dimension types. See separate issue: #519
  • [ ] Dimension/pattern/index types using arrays for pattern matching

bluss avatar Mar 28 '21 16:03 bluss

I was looking at the codebase, and was wondering if there was anything more to implement for const generics? I browsed through the linked issue for dimension types, but it seems older and likely has significantly changed since then. There was also a recent issue about converting dimensions to const generics, and was wondering how viable that was/what is missing from const generics for that to happen?

JulianKnodt avatar Jan 11 '22 04:01 JulianKnodt