bundles / numpy latest / numpy / f2py / crackfortran / param_eval
function
numpy.f2py.crackfortran:param_eval
source: build-install/usr/lib/python3.14/site-packages/numpy/f2py/crackfortran.py :2964
Signature
def param_eval ( v , g_params , params , dimspec = None ) Summary
Creates a dictionary of indices and values for each parameter in a parameter array to be evaluated later.
Extended Summary
WARNING: It is not possible to initialize multidimensional array parameters e.g. dimension(-3:1, 4, 3:5) at this point. This is because in Fortran initialization through array constructor requires the RESHAPE intrinsic function. Since the right-hand side of the parameter declaration is not executed in f2py, but rather at the compiled c/fortran extension, later, it is not possible to execute a reshape of a parameter array. One issue remains: if the user wants to access the array parameter from python, we should either 1) allow them to access the parameter array using python standard indexing (which is often incompatible with the original fortran indexing) 2) allow the parameter array to be accessed in python as a dictionary with fortran indices as keys We are choosing 2 for now.
Aliases
-
numpy.f2py.crackfortran.param_eval