Changeset 1653


Ignore:
Timestamp:
Jul 28, 2005, 3:15:48 PM (18 years ago)
Author:
ole
Message:

Comments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inundation/ga/storm_surge/pyvolution/least_squares.py

    r1632 r1653  
    394394        """
    395395
     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
    396404        from quad import build_quadtree
    397405        from util import ensure_numeric
     
    445453        #Remove points falling outside mesh boundary
    446454        #This reduced one example from 1356 seconds to 825 seconds
    447         #And more could be had by writing util.inside_polygon in C
    448455        if precrop is True:
    449456            from Numeric import take
     
    772779
    773780        Pre Condition:
    774           self.A, self.At and self.B have been initialised
     781          self.A, self.AtA and self.B have been initialised
    775782
    776783        Inputs:
     
    805812
    806813
    807         return conjugate_gradient(self.B, Atz, Atz,imax=2*len(Atz) )
     814        return conjugate_gradient(self.B, Atz, Atz, imax=2*len(Atz) )
    808815        #FIXME: Should we store the result here for later use? (ON)
    809816
Note: See TracChangeset for help on using the changeset viewer.