Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement complex vectors (CPLXSXP) #30

Closed
cubranic opened this issue Sep 12, 2014 · 3 comments
Closed

Implement complex vectors (CPLXSXP) #30

cubranic opened this issue Sep 12, 2014 · 3 comments

Comments

@cubranic
Copy link
Owner

Internally, this is an array of C99 double complex types, which could perhaps be represented with Perl's Math::Complex

Test cases:

  • complex()
  • 1i
  • 3+2i
  • 5+0i
  • complex(real=1:3, imaginary=4:6)
@cubranic
Copy link
Owner Author

QAP encoding:

XT_ARRAY_CPLX: 38

data: (n*16) double(re),double(im), ...

@cubranic
Copy link
Owner Author

RDS encoding:

  • CPLXSXP: 15
  • number of elements (uint32)
  • each element: double(re), double(im)

@cubranic
Copy link
Owner Author

NAs are encoded in both formats with two double NAs.

cubranic added a commit that referenced this issue Dec 17, 2014
Changes since v0.092:

- Implement complex vector SEXPs (#30)
- Implement closure SEXPs (#29, #32, #34, #35, #36, #38)
- Implement expression SEXPs (#26)
- Implement special environments global, base, and empty (#31, #33)
- Allow configuring Rserve host from WebWork settings
- Add graceful failure in WWk macros if Rserve host is not configured
- Fix parsing of special row names (#39)
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

No branches or pull requests

1 participant