Documentation


nr::Old_Traits< RealT, VectorT, MatrixT > Struct Template Reference

#include <utils.h>

List of all members.


Detailed Description

template<class RealT = double, class VectorT = RealT*, class MatrixT = RealT**>
struct nr::Old_Traits< RealT, VectorT, MatrixT >

Numerical Recipes methods: Traits for old-style programming.

Definition at line 49 of file numrecipes/optimization/utils.h.

Public Types

typedef RealT Real
 Floating point value.

typedef VectorT Vector
 Vector.

typedef MatrixT Matrix
 Matrix.


Static Public Member Functions

Memory allocation
void alloc_vector (Vector &v, unsigned int size)
 vector allocation

void free_vector (Vector &vec)
 Free vector. Size unused.

void alloc_matrix (Matrix &mat, unsigned int rows, unsigned int columns)
 matrix allocation

void free_matrix (Matrix &mat, unsigned int rows, unsigned int)
 Free matrix.


Member Typedef Documentation

template<class RealT = double, class VectorT = RealT*, class MatrixT = RealT**>
typedef MatrixT nr::Old_Traits< RealT, VectorT, MatrixT >::Matrix
 

Matrix.

Definition at line 57 of file numrecipes/optimization/utils.h.

template<class RealT = double, class VectorT = RealT*, class MatrixT = RealT**>
typedef RealT nr::Old_Traits< RealT, VectorT, MatrixT >::Real
 

Floating point value.

Definition at line 53 of file numrecipes/optimization/utils.h.

template<class RealT = double, class VectorT = RealT*, class MatrixT = RealT**>
typedef VectorT nr::Old_Traits< RealT, VectorT, MatrixT >::Vector
 

Vector.

Definition at line 55 of file numrecipes/optimization/utils.h.


Member Function Documentation

template<class RealT = double, class VectorT = RealT*, class MatrixT = RealT**>
void nr::Old_Traits< RealT, VectorT, MatrixT >::alloc_matrix Matrix mat,
unsigned int  rows,
unsigned int  columns
[inline, static]
 

matrix allocation

Parameters:
mat the matrix to allocate
rows number of rows
columns number of columns

Definition at line 82 of file numrecipes/optimization/utils.h.

template<class RealT = double, class VectorT = RealT*, class MatrixT = RealT**>
void nr::Old_Traits< RealT, VectorT, MatrixT >::alloc_vector Vector v,
unsigned int  size
[inline, static]
 

vector allocation

Parameters:
v the vector to allocate
size the desired size

Definition at line 66 of file numrecipes/optimization/utils.h.

template<class RealT = double, class VectorT = RealT*, class MatrixT = RealT**>
void nr::Old_Traits< RealT, VectorT, MatrixT >::free_matrix Matrix mat,
unsigned int  rows,
unsigned  int
[inline, static]
 

Free matrix.

Column size unused.

Parameters:
mat the matrix
rows number of rows
int unused

Definition at line 95 of file numrecipes/optimization/utils.h.

template<class RealT = double, class VectorT = RealT*, class MatrixT = RealT**>
void nr::Old_Traits< RealT, VectorT, MatrixT >::free_vector Vector vec  )  [inline, static]
 

Free vector. Size unused.

Definition at line 72 of file numrecipes/optimization/utils.h.


The documentation for this struct was generated from the following file:
Generated on Thu Dec 23 13:52:34 2004 by doxygen 1.3.6