Complex numbers from R to C++ and viceversa

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

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
15/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
cpp, r
Domain
tooling

Research direction

Start by reviewing pull request #427, which the issue identifies as the implementation for complex-number conversion between R and C++. Then inspect cpp11armadillo's inst/include/wrappers/matrices.hpp around lines 118-132 to understand the matrix representation and verify whether the PR supports passing the matrix without an auxiliary list.

Written by the indexing model from the issue text.

Description

I added that here https://github.com/r-lib/cpp11/pull/427.

For cpp11armadillo I define a list with 2 matrices, one with the real part and another with the complex part. With this PR it is possible to pass the matrix without an auxiliary list https://github.com/pachadotdev/cpp11armadillo/blob/main/inst/include/wrappers/matrices.hpp#L118-L132

Dominant language
C++
Stars
224
Forks
52
PR merge metrics
No merged PRs in 30d

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.

More from r-lib/cpp11

All issues in r-lib/cpp11

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.