I'm using oct2py to execute an octave function from python, and I get the following error:
oct2PyError: Octave evaluation error: error: binary operator '*' not implemented for 'int64 scalar' by 'complex matrix' operations
In python, im just calling the function with:
from oct2py import octave
results = octave.myOctaveFunction(parameters)
In debugging of myOctaveFunction, I think the error is in the code:
slc=interpft(slc, OSF*lines, 1);
where:
- slc is a complex matrix of size = [241,41] (double precision)
- OSF is an oversampling factor. OSF = 16 (int64)
- lines is the number of rows of slc matrix. lines = 241 (scalar)
- interpft function: https://www.mathworks.com/help/matlab/ref/interpft.html
Edit: detailed traceback:
Traceback (most recent call last):
File "/home/ezaqui/Papyrus/plugins/org.python.pydev_5.1.2.201606231256/pysrc/_pydevd_bundle/pydevd_exec.py", line 3, in Exec
exec exp in global_vars, local_vars
File "<console>", line 1, in <module>
File "/usr/local/lib/python2.7/dist-packages/oct2py/dynamic.py", line 96, in __call__
return self._ref().feval(self.name, *inputs, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/oct2py/core.py", line 369, in feval
store_as=store_as, plot_dir=plot_dir)
File "/usr/local/lib/python2.7/dist-packages/oct2py/core.py", line 568, in _feval
raise Oct2PyError(msg)
Oct2PyError: Octave evaluation error:
error: binary operator '*' not implemented for 'int64 scalar' by 'complex matrix' operations