NAG C Library - Latest Content

New at Mark 26 of the NAG C Library

Now at its 26th major release, the NAG C Library contains hundreds of routines which are powerful, reliable, flexible and ready for use from a wide range of operating systems, languages, environments and packages including Excel, Java, MATLAB®, .NET/C# and many more. We have selected key highlights from the NAG Library and show in more detail how a particular routine or set of routines can be used and explain how they complement the existing capabilities of the NAG Library. A full comprehensive overview of what is new can be found in the user manual.

To learn more about a specific area/routine click on the relevant link below.

New Functionality at Mark 26

At Mark 26 and Mark 26.1 of the NAG Library new functionality has been introduced in addition to improvements in existing areas.

Chapter c05 (Roots of One or More Transcendental Equations) has a new function that finds a solution of a system of nonlinear equations using Anderson acceleration.

Chapter c06 (Fourier Transforms) has a new function that calculates the fast Gauss transform approximation to the discrete Gauss transform.

Chapter d01 (Quadrature) has two new functions to calculate weights and abscissae for use in Gaussian quadrature and a new function to solve a specific Gaussian quadrature problem.

Chapter e04 (Minimizing or Maximizing a Function) has a new suite of functions, NAG Modelling Optimization Suite for quadratic programming (QP), linear semidefinite programming (SDP), semidefinite programming with bilinear matrix inequalities (BMI-SDP), and general nonlinear programming (NLP). This suite can, for example, solve the nearest correlation matrix problem with individually weighted elements or minimize the maximum eigenvalue of a matrix. The suite introduces a novel interface, allowing the gradual build up of a problem definition and avoiding the long parameter lists of earlier interfaces. The SDP solver is based upon a generalized augmented Lagrangian method and as such complements existing solvers in the optimization chapters. The QP/NLP solver of this suite is based upon IPOPT, an interior-point method optimization package, suitable for large-scale problems, that complements the active-set sequential quadratic programming (SQP) solvers already present.

At Mark 26.1, two new solvers are added to the NAG Modelling Optimization Suite. The first one is a derivative free solver for nonlinear least squares subject to bound constraints. It is aimed at small to medium sized data fitting or calibration problems (~100 variables) and is particularly suitable when the objective function is noisy or expensive to evaluate. The second one is a new interior point method for large scale linear programming problems (LP) that should offer significant speed-ups compared to the existing LP solvers in the NAG Library.

Chapter f08 (Least Squares and Eigenvalue Problems (LAPACK)) has additional blocked (BLAS-3) variants of functions for computing the generalized SVD, or generalized eigenvalues of real or complex matrix pairs.

Chapter g02 (Correlation and Regression Analysis) has a new nearest correlation function that, using a shrinking method, allows the fixing of arbitrary elements in the input matrix.

Chapter g04 (Analysis of Variance) has a new function for calculating the intraclass correlation (ICC) for a number of different rater reliability study designs.

Chapter g22 (Linear Model Specification) contains utility functions for aiding in the construction of design matrices for use when fitting linear regression models.

Chapter s (Approximations of Special Functions) contains a new set of functions to evaluate Struve functions H0, H1, L0 and L1.

Chapter x06 (OpenMP Utilities) has a new function to identify, at runtime, whether you are using a threaded Library or not.

At this release we have made changes to the introductory documentation supporting the Library. The document previously called the 'Essential Introduction' has been revised so that relevant information and advice on how to use the Library and its documentation can be found quickly. The document has been renamed to How to Use the NAG Library and its Documentation.

You will also notice that on every HTML page there is now a Keyword Search box.

The new functionality added at Mark 26 further enhances the comprehensive collection of numerical and statistical techniques offered by the library:

Numerical Facilities

  • Optimization, including linear, quadratic, integer and nonlinear
    programming, least squares problems and semi-definite programming
  • Ordinary and partial differential equations, and mesh generation
  • Numerical integration and integral equations
  • Roots of nonlinear equations (including polynomials)
  • Solution of dense, banded and sparse linear equations and eigenvalue
  • Solution of linear and nonlinear least squares problems
  • Special functions
  • Curve and surface fitting and interpolation

Statistical Facilities

  • Random number generation
  • Simple calculations on statistical data
  • Nearest correlation matrix
  • Correlation and regression analysis
  • Multivariate methods
  • Analysis of variance and contingency table analysis
  • Time series analysis
  • Nonparametric statistics