Skip to content

Commit 8c82b96

Browse files
committed
Enable downstream array view usage
1 parent 83632bc commit 8c82b96

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Lib/fortran/complex.i

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,10 @@ struct SwigComplex_ ## CTYPE;
2323
%fortran_intrinsic(SwigComplex_ ## CTYPE, complex, FKIND)
2424
%fortran_apply_typemaps(SwigComplex_ ## CTYPE, CPPTYPE)
2525

26-
%apply SwigComplex_ ## CTYPE& { CPPTYPE*, CPPTYPE[], CPPTYPE[ANY] };
27-
2826
%apply SwigComplex_ ## CTYPE { CPPTYPE };
27+
%apply SwigComplex_ ## CTYPE[] { CPPTYPE[] };
28+
%apply SwigComplex_ ## CTYPE ARRAY[] { CPPTYPE ARRAY[] };
29+
%apply SwigComplex_ ## CTYPE[ANY] { CPPTYPE[ANY] };
2930

3031
%typemap(ctype, in={SwigComplex_ ## CTYPE*}, null={SWIG_create_complex_ ## CTYPE(0, 0)}, fragment="SWIG_complex_"{CTYPE}, noblock=1) CPPTYPE {
3132
SwigComplex_ ## CTYPE

0 commit comments

Comments
 (0)