ovector_cx_tlate.h File Reference


Detailed Description

File for definitions of complex vectors.

Definition in file ovector_cx_tlate.h.

#include <iostream>
#include <cstdlib>
#include <string>
#include <fstream>
#include <sstream>
#include <vector>
#include <complex>
#include <o2scl/err_hnd.h>
#include <o2scl/ovector_tlate.h>
#include <gsl/gsl_vector.h>
#include <gsl/gsl_complex.h>

Go to the source code of this file.

Data Structures

class  ovector_cx_view_tlate
 A vector view of double-precision numbers. More...
class  ovector_cx_tlate
 A vector of double-precision numbers. More...
class  ovector_cx_array_tlate
 Create a vector from an array. More...
class  ovector_cx_array_stride_tlate
 Create a vector from an array with a stride. More...
class  ovector_cx_subvector_tlate
 Create a vector from a subvector of another. More...
class  ovector_cx_const_array_tlate
 Create a vector from an array. More...
class  ovector_cx_const_array_stride_tlate
 Create a vector from an array_stride. More...
class  ovector_cx_const_subvector_tlate
 Create a vector from a subvector of another. More...
class  ovector_cx_real_tlate
 Create a real vector from the real parts of a complex vector. More...
class  ovector_cx_imag_tlate
 Create a imaginary vector from the imaginary parts of a complex vector. More...
class  ofvector_cx
 A vector where the memory allocation is performed in the constructor. More...

Typedefs

typedef
ovector_cx_tlate
< double,
gsl_vector_complex,
gsl_block_complex,
gsl_complex > 
ovector_cx
 ovector_cx typedef
typedef
ovector_cx_view_tlate
< double,
gsl_vector_complex,
gsl_block_complex,
gsl_complex > 
ovector_cx_view
 ovector_cx_view typedef
typedef
ovector_cx_array_tlate
< double,
gsl_vector_complex,
gsl_block_complex,
gsl_complex > 
ovector_cx_array
 ovector_cx_array typedef
typedef
ovector_cx_array_stride_tlate
< double,
gsl_vector_complex,
gsl_block_complex,
gsl_complex > 
ovector_cx_array_stride
 ovector_cx_array_stride typedef
typedef
ovector_cx_subvector_tlate
< double,
gsl_vector_complex,
gsl_block_complex,
gsl_complex > 
ovector_cx_subvector
 ovector_cx_subvector typedef
typedef
ovector_cx_const_array_tlate
< double,
gsl_vector_complex,
gsl_block_complex,
gsl_complex > 
ovector_cx_const_array
 ovector_cx_const_array typedef
typedef
ovector_cx_const_array_stride_tlate
< double,
gsl_vector_complex,
gsl_block_complex,
gsl_complex > 
ovector_cx_const_array_stride
 ovector_cx_const_array_stride typedef
typedef
ovector_cx_const_subvector_tlate
< double,
gsl_vector_complex,
gsl_block_complex,
gsl_complex > 
ovector_cx_const_subvector
 ovector_cx_const_subvector typedef
typedef
ovector_cx_real_tlate
< double, gsl_vector,
gsl_block,
gsl_vector_complex,
gsl_block_complex,
gsl_complex > 
ovector_cx_real
 ovector_cx_real typedef
typedef
ovector_cx_imag_tlate
< double, gsl_vector,
gsl_block,
gsl_vector_complex,
gsl_block_complex,
gsl_complex > 
ovector_cx_imag
 ovector_cx_imag typedef

Functions

gsl_complex complex_to_gsl (std::complex< double > &d)
 Convert a complex number to GSL form.
std::complex< double > gsl_to_complex (gsl_complex &g)
 Convert a complex number to STL form.
template<class data_t, class vparent_t, class block_t, class complex_t>
ovector_cx_tlate
< data_t, vparent_t,
block_t, complex_t > 
conjugate (ovector_cx_tlate< data_t, vparent_t, block_t, complex_t > &v)
 Conjugate a vector.
template<class data_t, class vparent_t, class block_t, class complex_t>
std::ostream & operator<< (std::ostream &os, const ovector_cx_view_tlate< data_t, vparent_t, block_t, complex_t > &v)
 A operator for naive vector output.


Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const ovector_cx_view_tlate< data_t, vparent_t, block_t, complex_t > &  v 
) [inline]

A operator for naive vector output.

This outputs all of the vector elements in the form (r,i). All of these are separated by one space character, though no trailing space or endl is sent to the output.

Definition at line 1066 of file ovector_cx_tlate.h.


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