ArticleslgStudy

computer science

HSL (Fortran library)

HSL (Fortran library) is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand HSL (Fortran library) rather than just read about it. In short: HSL, originally the Harwell Subroutine Library, is a collection of Fortran 77 and 95 codes that address core problems in numerical analysis. It is primarily developed by the Numerical Analysis Group at the Rutherford Appleton Laboratory with contributions from other experts in the field.

Key takeaways

  • HSL (Fortran library) belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect HSL (Fortran library) to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of HSL (Fortran library) from memory before moving on to harder problems.

Reference excerpt

HSL, originally the Harwell Subroutine Library, is a collection of Fortran 77 and 95 codes that address core problems in numerical analysis. It is primarily developed by the Numerical Analysis Group at the Rutherford Appleton Laboratory with contributions from other experts in the field. HSL codes are easily recognizable by the format of their names, consisting of two letters followed by two numbers, dating back to early versions of Fortran's limited subroutine name length. The letters denote a broad classification of the problem they solve, and the numbers serve to distinguish different codes. For example, the well known sparse LU code MA28 (superseded by MA48) is a Matrix Algebra code number 28. Fortran 95 codes are differentiated from Fortran 77 codes by the prefix HSL_.

History

Early history Original development of the Harwell Subroutine Library began in 1963 by Mike Powell and Mike Hopper for internal use on an IBM mainframe at AERE Harwell. Early contributors also included Alan Curtis. With a spreading reputation, the Library was distributed externally for the first time in 1964 upon request. The first library catalog (AERE Report M-1748) was released in 1966.

Recent history Over the intervening years, HSL has striven to maintain a high standard of reliability and has garnered a worldwide reputation as a prime source of numerical software. It has undergone a number of changes to reflect newly available features of the Fortran language, completing in 1990 the conversion to Fortran 77, and more recently, the entire Library has been made thread safe. Many newer codes are written in Fortran 95. New packages continue to be developed, with a new release issued every two to three years. Many older codes have now been superseded and are available in the HSL Archive.

Licensing The current version, HSL 2007 is a commercial product sold by AspenTech, but is also available without charge to individual academics direct from STFC for teaching and their own academic research purposes. HSL is currently not sold to commercial competitors of Aspen Technology. Obsolete routines are stored in the HSL archive and are available for personal non-commercial use by anyone following registration with HSL. Commercial use and distribution of these routines still requires a purchased licence.

References J.K.Reid and J.A.Scott (Dec 2006, Sep 2007), Guidelines for the development of HSL software, Technical Report RAL-TR-2006-031 M.J.D.Powell 25 years of Theoretical Physics 1954-1979: Chapter XVIII: Numerical Analysis. A special publication by Harwell Research Laboratory of UKAEA

Footnotes

External links HSL home page at STFC HSL home page at AspenTech HSL Archive

Worked examples

Example 1 — a first encounter with HSL (Fortran library)

Start with the simplest possible case. Write down what HSL (Fortran library) claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to HSL (Fortran library) before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about HSL (Fortran library) ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of HSL (Fortran library)

In research
HSL (Fortran library) appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses HSL (Fortran library) in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
HSL (Fortran library) is common in secondary-school and first-year university syllabi. It links to neighbouring topics Computer library stubs, Fortran libraries, Numerical software, so understanding it makes those chapters shorter.
In everyday life
Look for HSL (Fortran library) outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “HSL (Fortran library)” →

How to study HSL (Fortran library) in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what HSL (Fortran library) means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain HSL (Fortran library) out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is HSL (Fortran library) in simple terms?

HSL, originally the Harwell Subroutine Library, is a collection of Fortran 77 and 95 codes that address core problems in numerical analysis. It is primarily developed by the Numerical Analysis Group at the Rutherford Appleton Laboratory with contributions from other experts in the field.

Why does HSL (Fortran library) matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study HSL (Fortran library)?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on HSL (Fortran library).

Tags

  • Computer library stubs
  • Fortran libraries
  • Numerical software
  • Science and Technology Facilities Council
  • Science and technology in Oxfordshire
  • Vale of White Horse

Keep exploring