stan-dev / stan-dev/math

allow `array[] int` to add and subtract elementwise an `int` or `array[] int` of the same size

Open
#2,782 8 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature good first issue new function
Dominant language
C++
Stars
839
Forks
220
Avg merge
2d 4h
Merged PRs (30d)
14

Description

With vectorized indexing I expected to be able to increment/decrement the array[] int but that is not allowed. For this special case I think it makes sense to allow adding and subtracting elementwise into Stan.

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

No implementation files or tests are named. Start by locating the array[] int operator overloads and their tests, then compare vectorized indexing behavior for adding and subtracting an int or same-sized array; done means both elementwise operations are supported and covered by tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
backend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.