#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>
#include <o2scl/uvector_cx_tlate.h>
Go to the source code of this file.
Definition in file umatrix_cx_tlate.h.
Data Structures | |
class | umatrix_cx_view_tlate |
A matrix view of complex numbers. More... | |
class | umatrix_cx_tlate |
A matrix of double-precision numbers. More... | |
class | umatrix_cx_row_tlate |
Create a vector from a row of a matrix. More... | |
class | umatrix_cx_const_row_tlate |
Create a const vector from a row of a matrix. More... | |
class | umatrix_cx_alloc |
A simple class to provide an allocate() function for umatrix_cx. More... | |
class | ufmatrix_cx |
A matrix where the memory allocation is performed in the constructor. More... | |
Typedefs | |
typedef umatrix_cx_tlate < double, gsl_complex > | umatrix_cx |
umatrix_cx typedef | |
typedef umatrix_cx_view_tlate < double, gsl_complex > | umatrix_cx_view |
umatrix_cx_view typedef | |
typedef umatrix_cx_row_tlate < double, gsl_complex > | umatrix_cx_row |
umatrix_cx_row typedef | |
typedef umatrix_cx_const_row_tlate < double, gsl_complex > | umatrix_cx_const_row |
umatrix_cx_const_row typedef | |
Functions | |
template<class data_t , class complex_t > | |
std::ostream & | operator<< (std::ostream &os, const umatrix_cx_view_tlate< data_t, complex_t > &v) |
A operator for naive matrix output. |
std::ostream& operator<< | ( | std::ostream & | os, | |
const umatrix_cx_view_tlate< data_t, complex_t > & | v | |||
) | [inline] |
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.
Definition at line 680 of file umatrix_cx_tlate.h.
Documentation generated with Doxygen and provided under the GNU Free Documentation License. See License Information for details.
Project hosting provided by
,
O2scl Sourceforge Project Page