Object-oriented Scientific Computing Library: Version 0.910
Public Member Functions | Protected Member Functions
ovector_cx_view_tlate< data_t, vparent_t, block_t, complex_t > Class Template Reference

A vector view of double-precision numbers.

#include <ovector_cx_tlate.h>

Inheritance diagram for ovector_cx_view_tlate< data_t, vparent_t, block_t, complex_t >:
omatrix_cx_col_tlate< data_t, mparent_t, vparent_t, block_t, complex_t > omatrix_cx_const_col_tlate< data_t, mparent_t, vparent_t, block_t, complex_t > omatrix_cx_const_row_tlate< data_t, mparent_t, vparent_t, block_t, complex_t > omatrix_cx_row_tlate< data_t, mparent_t, vparent_t, block_t, complex_t > ovector_cx_array_stride_tlate< data_t, vparent_t, block_t, complex_t > ovector_cx_array_tlate< data_t, vparent_t, block_t, complex_t > ovector_cx_const_array_stride_tlate< data_t, vparent_t, block_t, complex_t > ovector_cx_const_array_tlate< data_t, vparent_t, block_t, complex_t > ovector_cx_const_subvector_tlate< data_t, vparent_t, block_t, complex_t > ovector_cx_subvector_tlate< data_t, vparent_t, block_t, complex_t > ovector_cx_tlate< data_t, vparent_t, block_t, complex_t >

Detailed Description

template<class data_t, class vparent_t, class block_t, class complex_t>
class ovector_cx_view_tlate< data_t, vparent_t, block_t, complex_t >

Definition at line 51 of file ovector_cx_tlate.h.

Public Member Functions

int conjugate ()
 Conjugate the vector.
data_t norm () const
 Complex norm $ v^{\dagger} v $.
Copy constructors
 ovector_cx_view_tlate (const ovector_cx_view_tlate &v)
 Shallow copy constructor - create a new view of the same vector.
ovector_cx_view_tlateoperator= (const ovector_cx_view_tlate &v)
 Shallow copy constructor - create a new view of the same vector.
Get and set methods
complex_t & operator[] (size_t i)
 Array-like indexing.
const complex_t & operator[] (size_t i) const
 Array-like indexing.
complex_t & operator() (size_t i)
 Array-like indexing.
const complex_t & operator() (size_t i) const
 Array-like indexing.
complex_t get (size_t i) const
 Get (with optional range-checking)
data_t real (size_t i) const
 Get real part (with optional range-checking)
data_t imag (size_t i) const
 Get imaginary part (with optional range-checking)
std::complex< data_t > get_stl (size_t i) const
 Get STL-like complex number (with optional range-checking)
complex_t * get_ptr (size_t i)
 Get pointer (with optional range-checking)
const complex_t * get_const_ptr (size_t i) const
 Get pointer (with optional range-checking)
int set (size_t i, const complex_t &val)
 Set (with optional range-checking)
int set_stl (size_t i, const std::complex< data_t > &d)
 Set (with optional range-checking)
int set (size_t i, data_t vr, data_t vi)
 Set (with optional range-checking)
int set_all (const complex_t &g)
 Set all of the value to be the value val.
size_t size () const
 Method to return vector size.
size_t stride () const
 Method to return vector stride.
Other methods
bool is_owner () const
 Return true if this object owns the data it refers to.
Arithmetic
ovector_cx_view_tlate< data_t,
vparent_t, block_t, complex_t > & 
operator+= (const ovector_cx_view_tlate< data_t, vparent_t, block_t, complex_t > &x)
 operator+=
ovector_cx_view_tlate< data_t,
vparent_t, block_t, complex_t > & 
operator-= (const ovector_cx_view_tlate< data_t, vparent_t, block_t, complex_t > &x)
 operator-=
ovector_cx_view_tlate< data_t,
vparent_t, block_t, complex_t > & 
operator+= (const complex_t &x)
 operator+=
ovector_cx_view_tlate< data_t,
vparent_t, block_t, complex_t > & 
operator-= (const complex_t &x)
 operator-=
ovector_cx_view_tlate< data_t,
vparent_t, block_t, complex_t > & 
operator*= (const complex_t &x)
 operator*=
ovector_cx_view_tlate< data_t,
vparent_t, block_t, complex_t > & 
operator+= (const data_t &x)
 operator+=
ovector_cx_view_tlate< data_t,
vparent_t, block_t, complex_t > & 
operator-= (const data_t &x)
 operator-=
ovector_cx_view_tlate< data_t,
vparent_t, block_t, complex_t > & 
operator*= (const data_t &x)
 operator*=

Protected Member Functions

 ovector_cx_view_tlate ()
 Empty constructor provided for use by ovector_cx_tlate(const ovector_cx_tlate &v) [protected].

Member Function Documentation

template<class data_t, class vparent_t, class block_t, class complex_t>
size_t ovector_cx_view_tlate< data_t, vparent_t, block_t, complex_t >::size ( ) const [inline]

If no memory has been allocated, this will quietly return zero.

Definition at line 303 of file ovector_cx_tlate.h.

template<class data_t, class vparent_t, class block_t, class complex_t>
size_t ovector_cx_view_tlate< data_t, vparent_t, block_t, complex_t >::stride ( ) const [inline]

If no memory has been allocated, this will quietly return zero.

Definition at line 312 of file ovector_cx_tlate.h.


The documentation for this class was generated from the following file:
 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.