NWChemEx / NWChemEx/TensorWrapper

Consolidate `to_vector` functionality

Open
#99 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

There are currently two different functions that more or less convert a TensorWrapper to a std::vector<double>. to_vector_from_pimpl lives in src/tensorwrapper/tensor/detail_/pimpl.cpp, and to_vector is in include/tensorwrapper/tensor/conversions.hpp. These two should be consolidated into a single function.

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

Compare to_vector_from_pimpl in src/tensorwrapper/tensor/detail_/pimpl.cpp with to_vector in include/tensorwrapper/tensor/conversions.hpp, starting from both function entry points and their TensorWrapper usage. Consolidate the duplicate functionality into one function and confirm that only the intended implementation remains available to callers.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
backend
Issue type
Refactor
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.