This is a pre-release version (latest). Go to latest (2.4.4)
{ } Raw JSON

bundles / numpy latest / numpy / f2py / capi_maps / f2cexpr

function

numpy.f2py.capi_maps:f2cexpr

source: build-install/usr/lib/python3.14/site-packages/numpy/f2py/capi_maps.py :239

Signature

def   f2cexpr ( expr )

Summary

Rewrite Fortran expression as f2py supported C expression.

Extended Summary

Due to the lack of a proper expression parser in f2py, this function uses a heuristic approach that assumes that Fortran arithmetic expressions are valid C arithmetic expressions when mapping Fortran function calls to the corresponding C function/CPP macros calls.

Aliases

  • numpy.f2py.capi_maps.f2cexpr