Skip to content

feat(bindings): tnumber numeric functions (arithmetic + unary + distance)#43

Closed
estebanzimanyi wants to merge 1 commit into
mainfrom
feat/tnumber-numeric-functions
Closed

feat(bindings): tnumber numeric functions (arithmetic + unary + distance)#43
estebanzimanyi wants to merge 1 commit into
mainfrom
feat/tnumber-numeric-functions

Conversation

@estebanzimanyi

Copy link
Copy Markdown
Member

Summary

Combines the tnumber numeric surface into a single PR (~262 lines):

Family Functions Registrations
Arithmetic +, -, *, / for {tint, tfloat} × {scalar, tnumber} 24
Unary abs, derivative, degrees, radians 12
Distance <-> for tnumber × tnumber, nad, nearestApproachDistance 5

Each family routes through one of the existing templated helpers (TemporalBinaryV<T>, TemporalUnary, TempTempBoolPred-style) so each ScalarFunction body is a single-line lambda calling the corresponding MEOS entrypoint.

This PR consolidates three previously stacked PRs that all targeted the tnumber numeric surface and shared the same dispatch helpers — splitting them by op family added review burden without independent decision points.

Test plan

  • All ~41 registrations load
  • Smoke tests for representative entries in each family
  • Full local suite passes net of pre-existing TZ-environment failures

Replaces

Combines the tnumber numeric surface:

- Arithmetic operators: +, -, *, / for {tint, tfloat} × {scalar, tnumber}
  (24 registrations) using TemporalBinaryV<T> dispatch
- Unary functions: abs, derivative, degrees, radians (12 registrations)
  using TemporalUnary
- Distance: <-> for tnumber × tnumber and nad / nearestApproachDistance
  named functions

Each function family routes through one of the existing templated
helpers so each ScalarFunction body is a single-line lambda calling
the corresponding MEOS *_tnumber_tnumber / arithop_tnumber_number
entrypoint.
@estebanzimanyi estebanzimanyi changed the base branch from feat/tbool-tor-tand-ttext-text to main April 27, 2026 12:55
@estebanzimanyi estebanzimanyi force-pushed the feat/tnumber-numeric-functions branch from 672f31b to 02fe2f2 Compare April 27, 2026 12:55
@estebanzimanyi

Copy link
Copy Markdown
Member Author

Superseded — content landed in main as commit f2227e8 when PR #39 was merged with base=main (which brought the entire stack along). This PR's branch is now behind main and merging it would delete code, so closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant