Here we create a computed which is equivalent
to the matrix product u * s diag * vt, and we
verify that a and a computed are equal to within
machine precision.
When calling the routine from within Cython
code, the invocation is identical, and the argu-
ments can be typed to reduce function call over-
head. Again, please see the documentation for
details and examples.
Fwrap handles any kind of Fortran array declara-
tion, whether assumed-size (like the above exam-
ple), assumed-shape or explicit shape. Options
exist for hiding redundant arguments (like the ar-
ray dimensions LDA, LDU and LDVT above) and are
covered in Fwrap’s documentation.
This
example
covers
just
the
basics
of
what Fwrap can do.
For more informa-
tion,
downloads and help using Fwrap,
see
http://fwrap.sourceforge.net/
.
You
can
reach
other
users
and
the
Fwrap
devel-
opers
on
the
the
fwrap-users
mailing
list,
http://groups.google.com/group/fwrap-users
.