omatrix_tlate.h File Reference


Detailed Description

File for definitions of matrices.

Definition in file omatrix_tlate.h.

#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>

Go to the source code of this file.

Data Structures

class  omatrix_view_tlate
 A matrix view of double-precision numbers. More...
class  omatrix_tlate
 A matrix of double-precision numbers. More...
class  omatrix_row_tlate
 Create a vector from a row of a matrix. More...
class  omatrix_const_row_tlate
 Create a const vector from a row of a matrix. More...
class  omatrix_col_tlate
 Create a vector from a column of a matrix. More...
class  omatrix_const_col_tlate
 Create a const vector from a column of a matrix. More...
class  omatrix_diag_tlate
 Create a vector from the main diagonal. More...
class  omatrix_alloc
 A simple class to provide an allocate() function for omatrix. More...
class  ofmatrix
 A matrix where the memory allocation is performed in the constructor. More...

Typedefs

typedef
omatrix_tlate
< double, gsl_matrix,
gsl_vector,
gsl_block > 
omatrix
 omatrix typedef
typedef
omatrix_view_tlate
< double, gsl_matrix,
gsl_block > 
omatrix_view
 omatrix_view typedef
typedef
omatrix_row_tlate
< double, gsl_matrix,
gsl_vector,
gsl_block > 
omatrix_row
 omatrix_row typedef
typedef
omatrix_col_tlate
< double, gsl_matrix,
gsl_vector,
gsl_block > 
omatrix_col
 omatrix_col typedef
typedef
omatrix_const_row_tlate
< double, gsl_matrix,
gsl_vector,
gsl_block > 
omatrix_const_row
 omatrix_const_row typedef
typedef
omatrix_const_col_tlate
< double, gsl_matrix,
gsl_vector,
gsl_block > 
omatrix_const_col
 omatrix_const_col typedef
typedef
omatrix_diag_tlate
< double, gsl_matrix,
gsl_vector,
gsl_block > 
omatrix_diag
 omatrix_diag 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_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

Functions

template<class data_t, class parent_t, class block_t>
std::ostream & operator<< (std::ostream &os, const omatrix_view_tlate< data_t, parent_t, block_t > &v)
 A operator for naive matrix output.


Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const omatrix_view_tlate< data_t, parent_t, block_t > &  v 
) [inline]

A operator for naive matrix output.

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.

Todo:
Maybe remove this function, as it's superceded by matrix_out()?
Todo:
This assumes that scientific mode is on and showpos is off. It'd be nice to fix this.

Definition at line 840 of file omatrix_tlate.h.


Documentation generated with Doxygen and provided under the GNU Free Documentation License. See License Information for details.