NWChemEx / NWChemEx/TensorWrapper

Add `slice` and `reshape` to `Buffer`.

Open
#98 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.