Skip to content
This repository has been archived by the owner on Mar 8, 2021. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Add nodewise_{dot_product,max} to JIT discretization
  • Loading branch information
inducer committed May 27, 2014
1 parent b269ccc commit 752d069
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions hedge/backends/jit/__init__.py
Expand Up @@ -565,6 +565,16 @@ def __init__(self, *args, **kwargs):

logger.info("init jit discretization: done")

# {{{ scalar reduction

def nodewise_dot_product(self, a, b):
return np.dot(a, b)

def nodewise_max(self, a):
return np.max(a)

# }}}

# }}}


Expand Down

0 comments on commit 752d069

Please sign in to comment.