Object-oriented Scientific Computing Library: Version 0.910
Data Structures | Typedefs | Functions
omatrix_tlate.h File Reference

File for definitions of matrices. More...

#include <iostream>
#include <cstdlib>
#include <string>
#include <fstream>
#include <sstream>
#include <gsl/gsl_matrix.h>
#include <gsl/gsl_ieee_utils.h>
#include <o2scl/err_hnd.h>
#include <o2scl/ovector_tlate.h>
#include <o2scl/array.h>

Go to the source code of this file.


Detailed Description

Idea for Future:
The xmatrix class demonstrates how operator[] could return an ovector_array object and thus provide more bounds-checking. This would demand including a new parameter in omatrix_view_tlate which contains the vector type.

Definition in file omatrix_tlate.h.

Data Structures

class  omatrix_const_view_tlate< data_t, mparent_t, block_t >
 A const matrix view of omatrix objects. More...
class  omatrix_base_tlate< data_t, mparent_t, block_t >
 A base class for omatrix and omatrix_view. More...
class  omatrix_view_tlate< data_t, mparent_t, block_t >
 A matrix view of double-precision numbers. More...
class  omatrix_tlate< data_t, mparent_t, vparent_t, block_t >
 A matrix of double-precision numbers. More...
class  omatrix_array_tlate< data_t, mparent_t, block_t >
 Create a matrix from an array. More...
class  omatrix_row_tlate< data_t, mparent_t, vparent_t, block_t >
 Create a vector from a row of a matrix. More...
class  omatrix_const_row_tlate< data_t, mparent_t, vparent_t, block_t >
 Create a const vector from a row of a matrix. More...
class  omatrix_col_tlate< data_t, mparent_t, vparent_t, block_t >
 Create a vector from a column of a matrix. More...
class  omatrix_const_col_tlate< data_t, mparent_t, vparent_t, block_t >
 Create a const vector from a column of a matrix. More...
class  omatrix_diag_tlate< data_t, mparent_t, vparent_t, block_t >
 Create a vector from the main diagonal. More...
class  omatrix_const_diag_tlate< data_t, mparent_t, vparent_t, block_t >
 Create a vector from the main diagonal. More...
class  omatrix_alloc
 A simple class to provide an allocate() function for omatrix. More...
class  ofmatrix< N, M >
class  xmatrix
 A version of omatrix with better error checking. More...

Typedefs

typedef omatrix_tlate< double,
gsl_matrix, gsl_vector_norm,
gsl_block > 
omatrix
 omatrix typedef
typedef omatrix_view_tlate
< double, gsl_matrix,
gsl_block > 
omatrix_view
 omatrix_view typedef
typedef
omatrix_const_view_tlate
< double, gsl_matrix,
gsl_block > 
omatrix_const_view
 omatrix_const_view typedef
typedef omatrix_base_tlate
< double, gsl_matrix,
gsl_block > 
omatrix_base
 omatrix_base typedef
typedef omatrix_row_tlate
< double, gsl_matrix,
gsl_vector_norm, gsl_block > 
omatrix_row
 omatrix_row typedef
typedef omatrix_col_tlate
< double, gsl_matrix,
gsl_vector_norm, gsl_block > 
omatrix_col
 omatrix_col typedef
typedef
omatrix_const_row_tlate
< double, gsl_matrix,
gsl_vector_norm, gsl_block > 
omatrix_const_row
 omatrix_const_row typedef
typedef
omatrix_const_col_tlate
< double, gsl_matrix,
gsl_vector_norm, gsl_block > 
omatrix_const_col
 omatrix_const_col typedef
typedef omatrix_diag_tlate
< double, gsl_matrix,
gsl_vector_norm, gsl_block > 
omatrix_diag
 omatrix_diag typedef
typedef
omatrix_const_diag_tlate
< double, gsl_matrix,
gsl_vector_norm, gsl_block > 
omatrix_const_diag
 omatrix_const_diag typedef
typedef omatrix_array_tlate
< double, gsl_matrix,
gsl_block > 
omatrix_array
 omatrix_array typedef
typedef omatrix_tlate< int,
gsl_matrix_int, gsl_vector_int,
gsl_block_int > 
omatrix_int
 omatrix_int typedef
typedef omatrix_view_tlate
< int, gsl_matrix_int,
gsl_block_int > 
omatrix_int_view
 omatrix_int_view typedef
typedef omatrix_base_tlate
< int, gsl_matrix_int,
gsl_block_int > 
omatrix_int_base
 omatrix_int_base typedef
typedef
omatrix_const_view_tlate< int,
gsl_matrix_int, gsl_block_int > 
omatrix_int_const_view
 omatrix_int_const_view typedef
typedef omatrix_row_tlate< int,
gsl_matrix_int, gsl_vector_int,
gsl_block_int > 
omatrix_int_row
 omatrix_int_row typedef
typedef omatrix_col_tlate< int,
gsl_matrix_int, gsl_vector_int,
gsl_block_int > 
omatrix_int_col
 omatrix_int_col typedef
typedef
omatrix_const_row_tlate< int,
gsl_matrix_int, gsl_vector_int,
gsl_block_int > 
omatrix_int_const_row
 omatrix_int_const_row typedef
typedef
omatrix_const_col_tlate< int,
gsl_matrix_int, gsl_vector_int,
gsl_block_int > 
omatrix_int_const_col
 omatrix_int_const_col typedef
typedef omatrix_diag_tlate
< int, gsl_matrix_int,
gsl_vector_int, gsl_block_int > 
omatrix_int_diag
 omatrix_int_diag typedef
typedef
omatrix_const_diag_tlate< int,
gsl_matrix_int, gsl_vector_int,
gsl_block_int > 
omatrix_int_const_diag
 omatrix_int_const_diag typedef
typedef omatrix_array_tlate
< int, gsl_matrix_int,
gsl_block_int > 
omatrix_int_array
 omatrix_int_array typedef

Functions

template<class data_t , class parent_t , class block_t >
std::ostream & operator<< (std::ostream &os, const omatrix_const_view_tlate< data_t, parent_t, block_t > &v)
 A operator for output of omatrix objects.

Function Documentation

template<class data_t , class parent_t , class block_t >
std::ostream& operator<< ( std::ostream &  os,
const omatrix_const_view_tlate< data_t, parent_t, block_t > &  v 
)

This outputs all of the matrix elements. Each row is output with an endline character at the end of each row. Positive values are preceeded by an extra space. A 2x2 example:

      -3.751935e-05 -6.785864e-04
      -6.785864e-04  1.631984e-02
      

The function gsl_ieee_double_to_rep() is used to determine the sign of a number, so that "-0.0" as distinct from "+0.0" is handled correctly.

Idea for Future:
This assumes that scientific mode is on and showpos is off. It'd be nice to fix this.

Definition at line 1284 of file omatrix_tlate.h.

 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Documentation generated with Doxygen. Provided under the GNU Free Documentation License (see License Information).

Get Object-oriented Scientific Computing
Lib at SourceForge.net. Fast, secure and Free Open Source software
downloads.