Changeset 339


Ignore:
Timestamp:
Sep 22, 2004, 2:20:05 PM (20 years ago)
Author:
duncan
Message:

minor changes

File:
1 edited

Legend:

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

    r338 r339  
    111111        if point_coordinates:
    112112            self.build_interpolation_matrix_A(point_coordinates)
    113 
    114             self.B = self.AtA + self.alpha*self.D
    115         else:
    116             self.B = self.D
     113            AtA = dot(self.At, self.A)
     114            self.B = AtA + self.alpha*self.D
    117115
    118116       
     
    174172
    175173   
    176         #Precompute shorthands
     174        #Precompute
    177175        self.At = transpose(self.A)
    178         self.AtA = dot(self.At, self.A)
    179176
    180177
     
    355352        z = [z1, z2, z3]
    356353       
    357         f = smooth_attributes_to_mesh(vertex_coordinates,
     354        f = fit_to_mesh(vertex_coordinates,
    358355                                      triangles,
    359356                                      data_coords,
Note: See TracChangeset for help on using the changeset viewer.