Skip to main content

Designing Object-Oriented Numerical Libraries

  • Chapter
Guide to Scientific Computing in C++

Part of the book series: Undergraduate Topics in Computer Science ((UTICS))

  • 10k Accesses

Abstract

Having developed classes that underpin linear algebra operations in an earlier chapter, we now demonstrate how to construct object-oriented libraries for scientific computing applications that utilise the functionality of these classes. We use the specific example of developing a library that uses the finite difference method to solve boundary value, second order, constant coefficient differential equations. We begin by considering ordinary differential equations. We state the theory that underpins the finite difference method for these equations, and then describe the classes that we will develop to allow this theory to be applied. We then briefly discuss how to develop a library for the solution of Poisson’s equation, an elliptic partial differential equation, in two spatial dimensions.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 29.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

Mathematical Methods and Linear Algebra

  1. Iserles, A.: A First Course in the Numerical Analysis of Differential Equations, 2nd edn. Cambridge University Press, Cambridge (2009)

    Google Scholar 

  2. Kreyszig, E.: Advanced Engineering Mathematics, 9th edn. Wiley, New York (2006)

    Google Scholar 

  3. SĂĽli, E., Mayers, D.F.: An Introduction to Numerical Analysis. Cambridge University Press, Cambridge (2006)

    Google Scholar 

C++ Programming

  1. Cline, M.P., Lomow, G., Girou, M.: C++ FAQs, 2nd edn. Addison–Wesley, Reading (1998)

    Google Scholar 

  2. Meyers, S.: Effective C++, 3rd edn. Addison–Wesley, Reading (2005)

    Google Scholar 

  3. Stroustrup, B.: The C++ Programming Language, 3rd edn. AT&T, New York (2000)

    Google Scholar 

  4. The website: http://www.cplusplus.com

The Message-Passing Interface (MPI)

  1. Gropp, W., Lusk, E., Skjellum, A.: Using MPI: Portable Parallel Programming with the Message-Passing Interface, 2nd edn. Massachusetts Institute of Technology Press, Cambridge (1999)

    Google Scholar 

  2. Gropp, W., Lusk, E., Thakur, R.: Using MPI-2: Advanced Features of the Message-Passing Interface. Massachusetts Institute of Technology Press, Cambridge (1999)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Jonathan Whiteley .

Rights and permissions

Reprints and permissions

Copyright information

© 2012 Springer-Verlag London Limited

About this chapter

Cite this chapter

Pitt-Francis, J., Whiteley, J. (2012). Designing Object-Oriented Numerical Libraries. In: Guide to Scientific Computing in C++. Undergraduate Topics in Computer Science. Springer, London. https://doi.org/10.1007/978-1-4471-2736-9_12

Download citation

  • DOI: https://doi.org/10.1007/978-1-4471-2736-9_12

  • Publisher Name: Springer, London

  • Print ISBN: 978-1-4471-2735-2

  • Online ISBN: 978-1-4471-2736-9

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics