IDEAS home Printed from https://ideas.repec.org/c/cod/ccplus/newmat.html
 

NewMat C++ Matrix Class

Author

Programming Language

C++

Abstract

Newmat is intended for scientists and engineers who need to manipulate a variety of types of matrices using standard matrix operations. Emphasis is on the kind of operations needed in statistical calculations such as least squares, linear equation solve and eigenvalues. It supports matrix types Matrix (rectangular matrix), nricMatrix (variant of rectangular matrix as an interface to "Numerical Recipes"), UpperTriangularMatrix, LowerTriangularMatrix, DiagonalMatrix, SymmetricMatrix, BandMatrixi, UpperBandMatrix, LowerBandMatrix, SymmetricBandMatrix, RowVector, ColumnVector. The package includes the operations *, +, -, inverse, transpose, conversion between types, submatrix, determinant, Cholesky decomposition, Householder triangularisation, singular value decomposition, eigenvalues of a symmetric matrix, sorting, fast fourier transform, printing and an interface with "Numerical Recipes in C". It is intended for matrices in the range 15 x 15 to the maximum size your machine will accomodate in a single array. For example 90 x 90 (125 x 125 for triangular matrices) in machines that have 8192 doubles as the maximum size of an array. The number of elements in an array cannot exceed the maximum size of an "int". The package will work for very small matrices but becomes rather inefficient. A two-stage approach to evaluating matrix expressions is used to improve efficiency and reduce use of temporary storage. The file newmatnl.tar.gz contains an extension to the nonlinear optimisation class for maximum likelihood estimation, an example is included where a GARCH(1,1) regression model is estimated. newran.tar.gz contains a class for generating pseudo-random numbers from different distributions. It is required by the GARCH example. Version 09 was released in October 1997.

Suggested Citation

  • Robert Davies, "undated". "NewMat C++ Matrix Class," C/C++ codes newmat, .
  • Handle: RePEc:cod:ccplus:newmat
    as

    Download full text from publisher

    File URL: http://www.robertnz.net/ftp/newmat10.tar.gz
    File Function: Source code for NewMat10
    Download Restriction: no

    File URL: http://www.robertnz.net/ftp/newmat10.tar.gz
    File Function: Source code for NewMat10
    Download Restriction: no
    ---><---

    More about this item

    Keywords

    C++;

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:cod:ccplus:newmat. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Christopher F. Baum (email available below). General contact details of provider: .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.