faster grid generation
This commit is contained in:
parent
c682b12bea
commit
50d86f3f67
@ -89,10 +89,9 @@ class grid(object):
|
|||||||
grid object (collection of verts and q).
|
grid object (collection of verts and q).
|
||||||
|
|
||||||
note: the input is indicies, the grid contains verts
|
note: the input is indicies, the grid contains verts
|
||||||
"""
|
"""
|
||||||
p = [self.verts[i] for i in indicies]
|
|
||||||
q = [self.q[i] for i in indicies]
|
return grid(self.verts[indicies], self.q[indicies])
|
||||||
return grid(p, q)
|
|
||||||
|
|
||||||
def get_simplex_and_nearest_points(self, X, extra_points = 3):
|
def get_simplex_and_nearest_points(self, X, extra_points = 3):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user