Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

gsl Namespace Reference


Compounds

class  gsl::_view
class  gsl::matrix
class  gsl::matrix_float
class  gsl::matrix_int
class  gsl::permutation
class  gsl::random_generator
class  gsl::real_eigenvectors
 Calculates eigenvalues and eigenvectors of a symmetric matrix. The vectors and values are ordered so that the eigenvalues will be in descending order. More...

class  gsl::typeext
class  gsl::vector
class  gsl::vector_float
class  gsl::vector_float_view
class  gsl::vector_int
class  gsl::vector_int_view
struct  gsl::vector_type
struct  gsl::vector_type< float >
struct  gsl::vector_type< int >
class  gsl::vector_view

Typedefs

typedef vector vector_double

Functions

ostream& operator<< (ostream &os, const matrix &m)
matrix operator+ (const double &f, const matrix &other)
matrix operator- (const double &f, const matrix &other)
matrix operator * (const double &f, const matrix &other)
ostream& operator<< (ostream &os, const matrix_float &m)
matrix_float operator+ (const float &f, const matrix_float &other)
matrix_float operator- (const float &f, const matrix_float &other)
matrix_float operator * (const float &f, const matrix_float &other)
ostream& operator<< (ostream &os, const matrix_int &m)
matrix_int operator+ (const int &f, const matrix_int &other)
matrix_int operator- (const int &f, const matrix_int &other)
matrix_int operator * (const int &f, const matrix_int &other)
vector_float operator * (const matrix_float &m, const vector_float &v)
vector operator * (const matrix &m, const vector &v)
ostream& operator<< (ostream &os, const vector &vect)
ostream& operator<< (ostream &os, const vector_float &vect)
ostream& operator<< (ostream &os, const vector_int &vect)
ostream& operator<< (ostream &os, const vector#typeext#&vect)

Variables

class vector typeext _view


Typedef Documentation

typedef vector gsl::vector_double
 

Definition at line 353 of file vector_double.h.


Function Documentation

vector gsl::operator * ( const matrix & m,
const vector & v )
 

Definition at line 35 of file matrix_vector_operators.h.

00036 {
00037         vector y(m.get_rows());
00038         gsl_blas_dgemv(CblasNoTrans, 1.0, m.gslobj(), v.gslobj(), 0.0, y.gslobj());
00039         return y;
00040 }

vector_float gsl::operator * ( const matrix_float & m,
const vector_float & v )
 

Definition at line 28 of file matrix_vector_operators.h.

00029 {
00030         vector_float y(m.get_rows());
00031         gsl_blas_sgemv(CblasNoTrans, 1.0, m.gslobj(), v.gslobj(), 0.0, y.gslobj());
00032         return y;
00033 }

matrix_int gsl::operator * ( const int & f,
const matrix_int & other )
 

Definition at line 292 of file matrix_int.cc.

00293 {
00294    matrix_int result( other );
00295    gsl_matrix_int_scale( result.m, f );
00296 
00297    return( result );
00298 }

matrix_float gsl::operator * ( const float & f,
const matrix_float & other )
 

Definition at line 292 of file matrix_float.cc.

00293 {
00294    matrix_float result( other );
00295    gsl_matrix_float_scale( result.m, f );
00296 
00297    return( result );
00298 }

matrix gsl::operator * ( const double & f,
const matrix & other )
 

Definition at line 292 of file matrix_double.cc.

Referenced by type_is_double().

00293 {
00294    matrix result( other );
00295    gsl_matrix_scale( result.m, f );
00296 
00297    return( result );
00298 }

matrix_int gsl::operator+ ( const int & f,
const matrix_int & other )
 

Definition at line 211 of file matrix_int.cc.

00212 {
00213    matrix_int result( other );
00214    gsl_matrix_int_add_constant( result.m, f );
00215 
00216    return( result );
00217 }

matrix_float gsl::operator+ ( const float & f,
const matrix_float & other )
 

Definition at line 211 of file matrix_float.cc.

00212 {
00213    matrix_float result( other );
00214    gsl_matrix_float_add_constant( result.m, f );
00215 
00216    return( result );
00217 }

matrix gsl::operator+ ( const double & f,
const matrix & other )
 

Definition at line 211 of file matrix_double.cc.

Referenced by type_is_double().

00212 {
00213    matrix result( other );
00214    gsl_matrix_add_constant( result.m, f );
00215 
00216    return( result );
00217 }

matrix_int gsl::operator- ( const int & f,
const matrix_int & other )
 

Definition at line 249 of file matrix_int.cc.

00250 {
00251    matrix_int result( -1 * other );
00252    gsl_matrix_int_add_constant( result.m, f );
00253 
00254    return( result );
00255 }

matrix_float gsl::operator- ( const float & f,
const matrix_float & other )
 

Definition at line 249 of file matrix_float.cc.

00250 {
00251    matrix_float result( -1 * other );
00252    gsl_matrix_float_add_constant( result.m, f );
00253 
00254    return( result );
00255 }

matrix gsl::operator- ( const double & f,
const matrix & other )
 

Definition at line 249 of file matrix_double.cc.

Referenced by type_is_double().

00250 {
00251    matrix result( -1 * other );
00252    gsl_matrix_add_constant( result.m, f );
00253 
00254    return( result );
00255 }

ostream & gsl::operator<< ( ostream & os,
const vector#typeext#& vect )
 

ostream & gsl::operator<< ( ostream & os,
const vector_int & vect )
 

Definition at line 114 of file vector_int.cc.

00115 {
00116         os.setf( ios::fixed);
00117         for (int i=0;i<vect.size();i++)
00118         {
00119                 os << vect[i] << endl;
00120         }
00121         return os;
00122 }

ostream & gsl::operator<< ( ostream & os,
const vector_float & vect )
 

Definition at line 114 of file vector_float.cc.

00115 {
00116         os.setf( ios::fixed);
00117         for (int i=0;i<vect.size();i++)
00118         {
00119                 os << vect[i] << endl;
00120         }
00121         return os;
00122 }

ostream & gsl::operator<< ( ostream & os,
const vector & vect )
 

Definition at line 114 of file vector_double.cc.

00115 {
00116         os.setf( ios::fixed);
00117         for (int i=0;i<vect.size();i++)
00118         {
00119                 os << vect[i] << endl;
00120         }
00121         return os;
00122 }

ostream & gsl::operator<< ( ostream & os,
const matrix_int & m )
 

Definition at line 139 of file matrix_int.cc.

00140 {
00141    size_t i, j;
00142 
00143    os.setf( ios::fixed );
00144 
00145 //FIXME for aCC (doesn't find correct outstream function
00146 //     for ( i = 0; i < m.get_rows(); i++ ) {
00147 //         for ( j = 0; j < m.get_cols() - 1; j++ ) {
00148 //                 os << setprecision( 6 ) << setw( 11 ) ;//<< m.get_element( i, j ) << " ";
00149 //         }
00150 //         os << setprecision( 6 ) << setw( 11 ) ;//<< m.get_element( i, j ) << endl;
00151 //     }
00152 
00153    for ( i = 0; i < m.get_rows(); i++ ) {
00154            for ( j = 0; j < m.get_cols() - 1; j++ ) {
00155                    os << m.get_element( i, j ) << " ";
00156            }
00157            os << m.get_element( i, j ) << endl;
00158    }
00159 
00160    return os;
00161 }

ostream & gsl::operator<< ( ostream & os,
const matrix_float & m )
 

Definition at line 139 of file matrix_float.cc.

00140 {
00141    size_t i, j;
00142 
00143    os.setf( ios::fixed );
00144 
00145 //FIXME for aCC (doesn't find correct outstream function
00146 //     for ( i = 0; i < m.get_rows(); i++ ) {
00147 //         for ( j = 0; j < m.get_cols() - 1; j++ ) {
00148 //                 os << setprecision( 6 ) << setw( 11 ) ;//<< m.get_element( i, j ) << " ";
00149 //         }
00150 //         os << setprecision( 6 ) << setw( 11 ) ;//<< m.get_element( i, j ) << endl;
00151 //     }
00152 
00153    for ( i = 0; i < m.get_rows(); i++ ) {
00154            for ( j = 0; j < m.get_cols() - 1; j++ ) {
00155                    os << m.get_element( i, j ) << " ";
00156            }
00157            os << m.get_element( i, j ) << endl;
00158    }
00159 
00160    return os;
00161 }

ostream & gsl::operator<< ( ostream & os,
const matrix & m )
 

Definition at line 139 of file matrix_double.cc.

Referenced by type_is_double().

00140 {
00141    size_t i, j;
00142 
00143    os.setf( ios::fixed );
00144 
00145 //FIXME for aCC (doesn't find correct outstream function
00146 //     for ( i = 0; i < m.get_rows(); i++ ) {
00147 //         for ( j = 0; j < m.get_cols() - 1; j++ ) {
00148 //                 os << setprecision( 6 ) << setw( 11 ) ;//<< m.get_element( i, j ) << " ";
00149 //         }
00150 //         os << setprecision( 6 ) << setw( 11 ) ;//<< m.get_element( i, j ) << endl;
00151 //     }
00152 
00153    for ( i = 0; i < m.get_rows(); i++ ) {
00154            for ( j = 0; j < m.get_cols() - 1; j++ ) {
00155                    os << m.get_element( i, j ) << " ";
00156            }
00157            os << m.get_element( i, j ) << endl;
00158    }
00159 
00160    return os;
00161 }


Variable Documentation

class vector typeext gsl::_view
 

Definition at line 30 of file vector_source.h.


Generated at Sun Dec 16 23:44:47 2001 for gslwrap by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001