Skip to content

fix: restore numeric vector outputs#63

Open
nvphungdev wants to merge 1 commit into
serkor1:develfrom
nvphungdev:fix/one-dimensional-return-class
Open

fix: restore numeric vector outputs#63
nvphungdev wants to merge 1 commit into
serkor1:develfrom
nvphungdev:fix/one-dimensional-return-class

Conversation

@nvphungdev
Copy link
Copy Markdown

Summary

  • normalize one-column numeric indicator outputs back to double vectors
  • update the generated numeric templates so future wrappers keep the same behavior
  • tighten generated numeric tests to reject one-column matrix results while preserving multi-column matrix outputs

Validation

  • bash -n codegen/generate_unit-tests.sh
  • git diff --check
  • rg "is.null\(dim\(x\)\)|numeric methods returns <matrix>" R codegen tests -n (no matches)
  • Not run: R/testthat suite; R/Rscript are unavailable in this environment.

Fixes #61

Signed-off-by: nvphungdev <283886185+nvphungdev@users.noreply.github.com>
@serkor1 serkor1 added the bug Something isn't working label May 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🐛 Broken contract in 1D numeric methods

2 participants