Changeset 303
- Timestamp:
- Sep 15, 2004, 1:57:28 PM (20 years ago)
- Location:
- inundation/ga/storm_surge/pyvolution
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/ga/storm_surge/pyvolution/least_squares.py
r302 r303 16 16 function values at vertices to function values at data points 17 17 18 Inputs: 18 19 20 vertex_coordinates: List of coordinate pairs [xi, eta] of points 21 constituting mesh (or a an m x 2 Numeric array) 22 23 triangles: List of 3-tuples (or a Numeric array) of 24 integers representing indices of all vertices in the mesh. 25 26 data: List of coordinate pairs [x, y] of data points 27 (or an nx2 Numeric array) 28 19 29 """ 20 30 … … 27 37 triangles = array(triangles).astype(Int) 28 38 29 30 39 #Build underlying mesh 31 40 Mesh.__init__(self, vertex_coordinates, triangles) … … 36 45 n = data.shape[0] #Number of data points 37 46 38 self.matrix = zeros( 47 self.matrix = zeros((n,m), Float) 39 48 40 49 #Compute matrix elements -
inundation/ga/storm_surge/pyvolution/mesh.py
r297 r303 20 20 21 21 To instantiate: 22 Mesh( points, vertices)22 Mesh(coordinates, vertices) 23 23 24 24 where 25 25 26 points is either a list of 2-tuples or an Mx2 Numeric array of26 coordinates is either a list of 2-tuples or an Mx2 Numeric array of 27 27 floats representing all x, y coordinates in the mesh. 28 28
Note: See TracChangeset
for help on using the changeset viewer.