14.08.2013 Views

Tutorial slides (PDF) - Clemson University

Tutorial slides (PDF) - Clemson University

Tutorial slides (PDF) - Clemson University

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.

Built-in Sequence & Mapping Type<br />

Gotchas<br />

Python lacks C/C++ or Fortran style arrays.<br />

Best that can be done is nested lists or dictionaries<br />

Tuples, being immutable are a bad idea<br />

You have to be very careful on how you create them<br />

It does not pre-allocate memory and this can be a serious<br />

source of both annoyance and performance degradation.<br />

NumPy gives us a real array type which is generally a better<br />

choice

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

Saved successfully!

Ooh no, something went wrong!