Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Scheme > faster LU from ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 5 Topic 4559 of 4790
Post > Topic >>

faster LU from Eigenschink's matrix-0.5

by fernan <fernanbolando@[EMAIL PROTECTED] > Jun 22, 2008 at 03:12 AM

Hi

I modified Eigenschink's matrix-0.5  LU to be able to use slibs' array
the method I used
are just changing a few lines. I placed it here
http://www.tip9ug.jp/who/fernan/mat.tar.gz

Now I am testing it with a simple finite difference problem from here
http://www.adeptscience.co.uk/products/mathsim/maple/powertools/des/unit18.html

The matrix:plu-factor seems to take about 55% of the processing time.
This is
after putting a few (current-time) between the routines.

This is the ****tion that I am trying to find a way to make use of
subarray and maybe
make the whole thing faster.
You guys can look at it and maybe it would be straight-forward for you
guys.
77	(define lu-start (current-time))
78	      (do ((k 0 (1+ k))) ((= k (- rows 1)))
79		(do ((i (1+ k) (1+ i))) ((= i rows))
80		  (let ((m_ik (/ (matrix:ref a i k) (matrix:ref a k k))))
81		    (matrix:set! a i k m_ik)
82		    (do ((j (1+ k) (1+ j))) ((= j cols))
83		      (matrix:set! a i j
84				   (- (matrix:ref a i j)
85				      (* m_ik (matrix:ref a k j))))))))
86	(display "LU-Factor time: ")
87	(display (- (current-time) lu-start))
88	(display " sec(s)\n")

fernan
 




 5 Posts in Topic:
faster LU from Eigenschink's matrix-0.5
fernan <fernanbolando@  2008-06-22 03:12:50 
Re: faster LU from Eigenschink's matrix-0.5
klohmuschel@[EMAIL PROTEC  2008-06-23 01:34:05 
Re: faster LU from Eigenschink's matrix-0.5
fernan <fernanbolando@  2008-06-23 20:28:24 
Re: faster LU from Eigenschink's matrix-0.5
klohmuschel@[EMAIL PROTEC  2008-06-24 04:15:10 
Re: faster LU from Eigenschink's matrix-0.5
klohmuschel@[EMAIL PROTEC  2008-06-24 04:23:42 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Oct 13 9:12:57 CDT 2008.