Changeset 1653
- Timestamp:
- Jul 28, 2005, 3:15:48 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/ga/storm_surge/pyvolution/least_squares.py
r1632 r1653 394 394 """ 395 395 396 397 #FIXME (Ole): Check that this function is memeory efficient. 398 #6 million datapoints and 300000 basis functions 399 #causes out-of-memory situation 400 #First thing to check is whether there is room for self.A and self.AtA 401 # 402 #Maybe we need some sort of blocking 403 396 404 from quad import build_quadtree 397 405 from util import ensure_numeric … … 445 453 #Remove points falling outside mesh boundary 446 454 #This reduced one example from 1356 seconds to 825 seconds 447 #And more could be had by writing util.inside_polygon in C448 455 if precrop is True: 449 456 from Numeric import take … … 772 779 773 780 Pre Condition: 774 self.A, self.At and self.B have been initialised781 self.A, self.AtA and self.B have been initialised 775 782 776 783 Inputs: … … 805 812 806 813 807 return conjugate_gradient(self.B, Atz, Atz, imax=2*len(Atz) )814 return conjugate_gradient(self.B, Atz, Atz, imax=2*len(Atz) ) 808 815 #FIXME: Should we store the result here for later use? (ON) 809 816
Note: See TracChangeset
for help on using the changeset viewer.