Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-24-2009, 02:13 AM
Member
 
Join Date: Oct 2009
Posts: 2
Rep Power: 0
uzil24 is on a distinguished road
Default Matlab data type implementation & speed
Hi all,
I have a great deal of Matlab code which I'm required to implement in JAVA.
Since the code is complicated and far from being OO I tried to create a Matlab data type in JAVA. after doing so I simply translated the code using the data type.
The problem is run time.
The same code takes a fraction of a second in Matlab and almost 2 minutes(!!!) in JAVA. I used the "ojalgo" package with my implementation, so most of the code should be efficient.
why is this happening? Am I too naive to try this?
Does Matlab have some special "trick" to hasten it's running time?
Any insights will be highly appreciated.
Bookmark Post in Technorati
Reply With Quote
  #2 (permalink)  
Old 10-24-2009, 02:18 AM
Senior Member
 
Join Date: Aug 2009
Posts: 1,895
Rep Power: 2
r035198x is on a distinguished road
Default
It depends on the functions you are talking and how you have implemented them.
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 10-24-2009, 02:42 AM
Member
 
Join Date: Oct 2009
Posts: 2
Rep Power: 0
uzil24 is on a distinguished road
Default
Originally Posted by r035198x View Post
It depends on the functions you are talking and how you have implemented them.
How do you propose I do it?
Would you do something like that or try a different approach?
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 10-24-2009, 03:00 AM
Senior Member
 
Join Date: Aug 2009
Posts: 1,895
Rep Power: 2
r035198x is on a distinguished road
Default
Why do the functions need to be reimplemented?
I would take a look at apache's commons-net project if I were you.
Bookmark Post in Technorati
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
run a matlab script from java npoorni Advanced Java 5 02-11-2010 04:32 PM
sychronized data type java girl Threads and Synchronization 3 02-13-2009 09:37 AM
How to speed sql Statements? bezudar Advanced Java 3 11-20-2008 10:53 AM
Help, Integrate a Java with Matlab toby Advanced Java 2 08-07-2008 08:08 AM
I need to be able to deal with functions like matlab romina New To Java 1 08-07-2007 06:37 AM


All times are GMT +2. The time now is 06:39 PM.



VBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2009, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org