[pythran] Re: matrix norm and other questions

  • From: Neal Becker <ndbecker2@xxxxxxxxx>
  • To: pythran@xxxxxxxxxxxxx
  • Date: Tue, 14 Jul 2020 14:03:07 -0400

On Tue, Jul 14, 2020 at 1:37 PM Serge Guelton <
serge.guelton@xxxxxxxxxxxxxxxxxxx> wrote:


2. I already have a python module that implements matrix norm.  It
appears
pythran is not able to use it?  In general, only modules specifically
implemented by pythran are useable from pythran functions?

You can also import it from your pythranized module as long as pythran is
able
to find it and compile it. No need to #pythran export it.

I think I didn't explain clearly.  I already have code written in c++
compiled into a python-loadable module that
implements norm.  Can pythran call this module?

pythran _sus.py
CRITICAL: I am in trouble. Your input file does not seem to match Pythran's
constraints...
E: Module 'xtensor_math' not found.

python finds it just fine:
[nbecker@nbecker8 multibeam]$ python3 -c 'import xtensor_math'

-- 
*Those who don't understand recursion are doomed to repeat it*

Other related posts: