umatrix_tlate.h File Reference


Detailed Description

File for definitions of matrices.

Definition in file umatrix_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/uvector_tlate.h>

Go to the source code of this file.

Data Structures

class  umatrix_view_tlate
 A matrix view of double-precision numbers. More...
class  umatrix_tlate
 A matrix of double-precision numbers. More...
class  umatrix_row_tlate
 Create a vector from a row of a matrix. More...
class  umatrix_const_row_tlate
 Create a const vector from a row of a matrix. More...
class  umatrix_alloc
 A simple class to provide an allocate() function for umatrix. More...
class  ufmatrix
 A matrix where the memory allocation is performed in the constructor. More...

Typedefs

typedef umatrix_tlate< double > umatrix
 umatrix typedef
typedef umatrix_view_tlate
< double > 
umatrix_view
 umatrix_view typedef
typedef umatrix_row_tlate< double > umatrix_row
 umatrix_row typedef
typedef
umatrix_const_row_tlate
< double > 
umatrix_const_row
 umatrix_const_row typedef
typedef umatrix_tlate< int > umatrix_int
 umatrix_int typedef
typedef umatrix_view_tlate< int > umatrix_int_view
 umatrix_int_view typedef
typedef umatrix_row_tlate< int > umatrix_int_row
 umatrix_int_row typedef
typedef
umatrix_const_row_tlate< int > 
umatrix_int_const_row
 umatrix_int_const_row typedef

Functions

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


Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const umatrix_view_tlate< data_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:
This assumes that scientific mode is on and showpos is off. It'd be nice to fix this.

Definition at line 662 of file umatrix_tlate.h.


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

Project hosting provided by SourceForge.net Logo, O2scl Sourceforge Project Page