include/linalg.hpp File Reference

Wrapper linear algebra classes for the GSL. More...

#include <gsl/gsl_matrix.h>
#include <gsl/gsl_vector.h>
#include <gsl/gsl_permutation.h>
#include "error.hpp"

Include dependency graph for linalg.hpp:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  linalg

Classes

class  linalg::matrix
 A wrapper class for GNU Scientific Library matrices. More...
class  linalg::matrix::LUmatrix
 A private matrix member class for matrices factored in LU form. More...
class  linalg::vector
 A wrapper class for GSL vectors. More...
class  linalg::vector_view
 A vector that doesn't own its data; rather, points to data owned by another vector. More...
class  linalg::slice
 Vector slices corresponding to GNU Octave ranges. More...

Typedefs

typedef vector linalg::point
 Useful alias, vectors are also points in space.

Functions

std::ostream & linalg::operator<< (std::ostream &os, const vector &v)
 Stream insertion operator.
vector linalg::operator>> (std::istream &is, vector &v)
 Stream extraction operator.
std::ostream & linalg::operator<< (std::ostream &os, const matrix &M)
 Stream insertion operator.
matrix linalg::operator>> (std::istream &is, matrix &v)
 Stream extraction operator.
vector linalg::operator* (double a, const vector &v)
 Scale a vector.
double linalg::norm (const vector &v)
 Euclidean norm of a vector.
matrix linalg::operator* (double a, const matrix &M)
 Scale a matrix.
matrix linalg::inv (const matrix &A)
 Matrix inverse, computed with LU factorisation.
matrix linalg::T (const matrix &A)
 Return copy of transposed matrix.
double linalg::tr (const matrix &A)
 Trace.
double linalg::det (matrix &A)
 Determinant.
double linalg::cond (matrix &A)
 L2 condition number, computed with SVD.


Detailed Description

Wrapper linear algebra classes for the GSL.

This header file puts some C++ wrappers around the GSL vector and matrix structures plus providing a C++ interface to some pertinent BLAS and general linear algebra routines.


Generated on Fri Jun 6 17:28:24 2008 by  doxygen 1.5.6