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

Assigning large matrices #2

Open
harrigan opened this Issue Nov 19, 2010 · 6 comments

Comments

Projects
None yet
4 participants
@harrigan

harrigan commented Nov 19, 2010

I am having trouble assigning large matrices.

require 'rinruby'
R.m = Matrix.zero 5

produces

...
rm(.RINRUBY.PARSE.STRING)
d=matrix(c(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0), 5, 5, TRUE)
print('RINRUBY.EVAL.FLAG')
...

which is fine but

require 'rinruby'
R.m = Matrix.zero 50

produces

...
rm(.RINRUBY.PARSE.STRING)
d=matrix(c(0,0,0,0,0 [snip] 0,0,0,0,0), 50, 50, TRUE)
print('RINRUBY.EVAL.FLAG')
Error: unexpected symbol in ",0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0"
...

when using RinRuby 2.0.1, R 2.11.1, and Ruby 1.9.1p376 on Mac OS X 10.6.5.

@clbustos

This comment has been minimized.

Owner

clbustos commented Nov 19, 2010

Bug confirmed.
Working on it.
Try using rserve-client...

@harrigan

This comment has been minimized.

harrigan commented Nov 22, 2010

Thank you, no problem with rserve-client.

@clbustos

This comment has been minimized.

Owner

clbustos commented Nov 22, 2010

Cool!
Anyway, I will fix the bug.

clbustos pushed a commit that referenced this issue Aug 9, 2014

@klaffenboeck

This comment has been minimized.

klaffenboeck commented Feb 27, 2015

Was this bug ever fixed? Problem still seems to exist with matrices bigger than (approximately) 200 entries

@clbustos

This comment has been minimized.

Owner

clbustos commented Mar 16, 2015

The problem is tricky, because is related to the way R creates sockets and ruby interacts with it. I focus my efforts on rserve-client, because allows a more faster and secure way to manage R.

@fenrir-naru

This comment has been minimized.

Contributor

fenrir-naru commented Aug 19, 2018

This issue may be solved with #30 , and can be closed.

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