15.12.2012 Views

scipy tutorial - Baustatik-Info-Server

scipy tutorial - Baustatik-Info-Server

scipy tutorial - Baustatik-Info-Server

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

"""<br />

fib = ext_tools.ext_function(’fib’,ext_code,[’a’])<br />

fib.customize.add_support_code(fib_code)<br />

mod.add_function(fib)<br />

mod.compile()<br />

XXX More about custom_info, and what xxx_info instances are good for.<br />

SciPy Reference Guide, Release 0.8.dev<br />

Note: recursion is not the fastest way to calculate fibonacci numbers, but this approach serves nicely for this example.<br />

1.12.10 Customizing Type Conversions – Type Factories<br />

not written<br />

1.12.11 Things I wish weave did<br />

It is possible to get name clashes if you uses a variable name that is already defined in a header automatically included<br />

(such as stdio.h) For instance, if you try to pass in a variable named stdout, you’ll get a cryptic error report due<br />

to the fact that stdio.h also defines the name. weave should probably try and handle this in some way. Other<br />

things...<br />

1.12. Weave 121

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!