Presentation is loading. Please wait.

Presentation is loading. Please wait.

Libraries Linda Petzold UC Santa Barbara. What is a Library? Library - Wikipedia, the free encyclopedia.mhtLibrary - Wikipedia, the free encyclopedia.mht.

Similar presentations


Presentation on theme: "Libraries Linda Petzold UC Santa Barbara. What is a Library? Library - Wikipedia, the free encyclopedia.mhtLibrary - Wikipedia, the free encyclopedia.mht."— Presentation transcript:

1 Libraries Linda Petzold UC Santa Barbara

2 What is a Library? Library - Wikipedia, the free encyclopedia.mhtLibrary - Wikipedia, the free encyclopedia.mht

3 Mathematical Software Libraries PETSc – Portable Extensible Toolkit for Scientific Computation PETSc Documentation.mhtPETSc Documentation.mht NetLib The Netlib.mhtThe Netlib.mht GSL - GNU Scientific Library - GNU Project - Free Software Foundation (FSF).mhtGSL - GNU Scientific Library - GNU Project - Free Software Foundation (FSF).mht

4 Must-Haves Linear Algebra: LAPACK LAPACK - Wikipedia, the free encyclopedia.mhtLAPACK - Wikipedia, the free encyclopedia.mht

5 Why not write your own? (or borrow from Numerical Recipes) LAPACK –Was written by a team of world experts in linear algebra –Includes capabilities that you would be unlikely to incorporate into home- grown software –Protects against common errors –Does the best possible job of protecting against numerical instability –Is built upon the BLAS

6 Basic Linear Algebra Subroutines (BLAS) BLAS Basic Linear Algebra Subprograms - Wikipedia, the free encyclopedia.mhtBasic Linear Algebra Subprograms - Wikipedia, the free encyclopedia.mht A world-class resource Kazushige Goto Researcher Profile.mhtKazushige Goto Researcher Profile.mht

7 Production Code vs Your Own Software Classical 4 th order Runge-Kutta method (from Numerical Recipes in C) RKF45 from Netlib rkf45_f.mhtrkf45_f.mht –Checks for errors and inconsistencies –Adaptive error control and stepsize selection –Diagnostics – tells you if the system is stiff, or if you have requested too much accuracy for the available precision on your computer –Can produce the solution value in between the mesh points –Fails gracefully

8 Beyond Libraries: Scientific Computing Environments Matlab MATLAB - Wikipedia, the free encyclopedia.mhtMATLAB - Wikipedia, the free encyclopedia.mht –Fantastic for prototyping, graphics –May not be fast enough for your most demanding, large-scale applications COMSOL COMSOL Multiphysics®.mhtCOMSOL Multiphysics®.mht

9 Coping with the Black Box Chances are, you will never understand everything that is going on inside your numerical black box So what! Since when did you understand everything that is going on in Windows XP or Mac OS X? Did it stop you from using it? Or would you prefer to write your own Operating System???!!!


Download ppt "Libraries Linda Petzold UC Santa Barbara. What is a Library? Library - Wikipedia, the free encyclopedia.mhtLibrary - Wikipedia, the free encyclopedia.mht."

Similar presentations


Ads by Google