1. The java backend will be added to the existing repo. I will pushing my code on jruby_port branch of the NMatrix forked repo.
Setting up the environment for java backend:
New java backend will be placed in ext/java directory.
Add a rake file to compile .java files to .class files and zip them into a jar file.
The external jar file Apache Commons Math would in the ext/java/vendor directory.
To begin with NMatrix creation I would like the mentors to suggest me whether I use generic classes for NMatrix to handle the data-types. Generic classes like ArrayList are extremely powerful and they ideal for building “tools”. Should I be using JNMatrix<DType> or should I work without generics.
2. After creating NMmatrix backend for NMatrix of an arbirtrary dimension and specified dtype I will Plug NMatrix frontend to java backend and run a few test and see if it passes.
In the frontend environment, detecting if jruby is used:
if defined?(RUBY_ENGINE) && RUBY_ENGINE == "jruby"
require "jar files"
end
Modify Rakefile to add script for tests .
test_helper.rb
if RUBY_PLATFORM =~ /jruby
require "java"
end
Regards
Prasun Anand
> 3. mailto:sciruby-dev+unsub...@googlegroups.com
> 4. https://groups.google.com/d/optout
--
New java backend will be placed in ext/java directory.
--
You received this message because you are subscribed to the Google Groups "SciRuby Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sciruby-dev...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
To unsubscribe from this group and stop receiving emails from it, send an email to sciruby-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "SciRuby Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sciruby-dev+unsubscribe@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to sciruby-dev...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "SciRuby Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sciruby-dev...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "SciRuby Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sciruby-dev...@googlegroups.com.
--
Nice! I'm glad that the port was successful!
Alexej