Skip to content
Snippets Groups Projects
Commit 2f382640 authored by Stefan Possanner's avatar Stefan Possanner
Browse files

Add forgotten flat_eval

parent 51bb3bea
No related branches found
No related tags found
1 merge request!19Enable flat (marker) evaluation
Pipeline #198696 passed
...@@ -1110,21 +1110,21 @@ class GVEC_domain: ...@@ -1110,21 +1110,21 @@ class GVEC_domain:
''' '''
return self.Pmap(*self.Lmap(s, u, v, flat_eval=flat_eval), flat_eval=flat_eval) return self.Pmap(*self.Lmap(s, u, v, flat_eval=flat_eval), flat_eval=flat_eval)
def dPL(self, s, u, v): def dPL(self, s, u, v, flat_eval=False):
'''Jacobian matrix of the composition P ° L.''' '''Jacobian matrix of the composition P ° L.'''
tmp1 = self.dL(s, u, v) # Jacobian of the Lmap tmp1 = self.dL(s, u, v, flat_eval=flat_eval) # Jacobian of the Lmap
tmp2 = self.dP(*self.Lmap(s, u, v)) # Jacobian of the Pmap tmp2 = self.dP(*self.Lmap(s, u, v, flat_eval=flat_eval), flat_eval=flat_eval) # Jacobian of the Pmap
return tmp2 @ tmp1 return tmp2 @ tmp1
def dPL_inv(self, s, u, v): def dPL_inv(self, s, u, v, flat_eval=False):
'''Inverse Jacobian matrix of the composition P ° L.''' '''Inverse Jacobian matrix of the composition P ° L.'''
return np.linalg.inv(self.dPL(s, u, v)) return np.linalg.inv(self.dPL(s, u, v, flat_eval=flat_eval))
def det_dPL(self, s, u, v): def det_dPL(self, s, u, v, flat_eval=False):
'''Jacobian determinant of the composition P ° L.''' '''Jacobian determinant of the composition P ° L.'''
return np.linalg.det(self.dPL(s, u, v)) return np.linalg.det(self.dPL(s, u, v, flat_eval=flat_eval))
@staticmethod @staticmethod
def prepare_args(s, u, v, sparse=False, flat_eval=False): def prepare_args(s, u, v, sparse=False, flat_eval=False):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment