• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

Matrix support in Java

 
Rancher
Posts: 241
Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm wondering if anyone can recommend a library to get matlab- or octave- like matrix functionality in Java.

I see a few libraries out there. NIST had a Java numerics project going that produced JAMA and Jampack but they haven't updated their site since 2003. Someone else pursued an initiative called JMathLib but that page hasn't been updated since 2009. That doesn't mean they aren't great packages, I just wanted to see if anyone knew.

I know a lot of science based software runs on Java (doesn't Scilab)? So is everyone just using octave or Matlab via a socket?

Many thanks for any suggestions.

-Eric
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Java3D has an associated package (javax.vecmath) that implements vectors and matrices, but I'm not sure up to what size.
 
Marshal
Posts: 80059
410
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Have you tried Apache Commons? I think they have a Matrix class.
 
Rancher
Posts: 5086
82
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You might want to give JScience.org a look.
 
Eric Barnhill
Rancher
Posts: 241
Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That Apache.commons.math package looks perfect! Thanks so much!!

FYI I investigated further my hunch that SciLab runs on Java. It does and there is also a JavaSci package for people who want to blend Java and Matlab code. So between the two of these I ought to be well set.

SciLab is quite popular suggesting there is at least some scientific computing going on with Java -- and I am writing for ImageJ which is also quite a popular program in medical imaging.
 
Campbell Ritchie
Marshal
Posts: 80059
410
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Eric Barnhill wrote: . . . Thanks so much!! . . ..

You’re welcome
 
Politics n. Poly "many" + ticks "blood sucking insects". Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic