NWChemEx / NWChemEx/TensorWrapper
Add `slice` and `reshape` to `Buffer`.
Open
Nobody has claimed this yet.
good first issue
- Dominant language
- C++
- Stars
- 0
- Forks
- 0
- Avg merge
- 5h 33m
- Merged PRs (30d)
- 6
Description
The reshape_helper and slice_helper methods in src/tensorwrapper/tensor/detail_/pimpl.cpp should be replaced with reshape and slice functions on the Buffer itself.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in src/tensorwrapper/tensor/detail_/pimpl.cpp and inspect the reshape_helper and slice_helper methods, then locate the Buffer definition and its existing interface. Move these operations onto Buffer and remove the helper-based usage; done means reshape and slice are available as Buffer functions and the tensor wrapper still builds and tests pass.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- data
- Issue type
- Refactor
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100