w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
F2PY. Passing array. "failed in converting 2nd argument `xmin' of mga.init to C/Fortran array"

You have to pass low array with dimension dim as specifies in the error message. Some information may be found here, point "2". Or you can always use size instead of dim:

SUBROUTINE init(ranMatr,low,upp,nbvar,size)
...
INTEGER k, j, nbvar,size
DOUBLE PRECISION ranMatr(dimpop,size), low(size), upp(size),sigma
...




© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.