source: trunk/src/matrix.icc @ 12

Last change on this file since 12 was 12, checked in by daniel, 20 years ago

Matrix and vector APIs for GSL.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 456 bytes
Line 
1// This function defines all inline functions!
2
3matrix::Type matrix::get( const size_t& i_row,
4        const size_t& j_col ) const
5{
6  return gsl_matrix_get( m_, i_row, j_col ) ;
7}
8
9
10gsl_matrix* matrix::get_gsl_matrix() const
11{
12  return m_;
13
14
15
16void matrix::set( const size_t& i_row,
17      const size_t& j_col, const Type& val )
18{
19  gsl_matrix_set( m_, i_row, j_col, val );
20}
21
22
23void matrix::set_all( const Type& val )
24{
25  gsl_matrix_set_all( m_, val );
26}
27
28
Note: See TracBrowser for help on using the repository browser.