Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

complex_vector Class Reference

#include <vector.h>

List of all members.

Public Types

typedef Complex value_type
typedef value_typereference
typedef const reference const_reference
typedef value_typeiterator
typedef const value_typeconst_iterator
typedef int difference_type
typedef int size_type

Public Methods

 complex_vector (const v_index_mode t=Index_1)
 complex_vector (const int n, const v_index_mode t=Index_1)
 complex_vector (const complex_vector &v1)
 complex_vector (const real_vector &v1)
 complex_vector (complex *const ptr, const int n, const v_index_mode t)
 ~complex_vector (void)
int minindex (void) const
int maxindex (void) const
int maxindex (int n)
int maximize (void)
complex_vector& shrink (Complex s)
int is_empty () const
complex_vector& make_empty ()
complex_vector& reindex (const v_index_mode)
Complex read (const int i) const
Complexget (const int i)
const Complexget (const int i) const
Complexoperator[] (const int i)
const Complexoperator[] (const int i) const
complex_vector& copy (const complex_vector &v1)
complex_vector& copy (const real_vector &v1)
complex_vector& operator= (const complex_vector &v1)
complex_vector& operator= (const real_vector &v1)
complex_vector& reallocate (const int n, const v_index_mode t)
complex_vector& reallocate (const int n)
complex_vector& resize (const int Max)
complex_vector& resize (const real_vector &v)
complex_vector& resize (const complex_vector &v)
complex_vector& clean (void)
complex_vector& fill (const Complex s)
complex_vector& operator= (const Complex s)
complex_vector& operator= (const double s)
complex_vector& fillall (const Complex s)
complex_vector& unit (int n)
int findmax () const
complex_vector& swap (const int n, const int m)
complex_vector& apply (Complex(*f)(Complex))
complex_vector& apply (Complex(*f)(const Complex &))
complex_vector& apply (Complex(*f)(Complex, int))
complex_vector& apply (Complex(*f)(const Complex &, int))
complex_vector& operator+= (const Complex s)
complex_vector& operator-= (const Complex s)
complex_vector& operator *= (const Complex s)
complex_vector& operator/= (const Complex s)
complex_vector& operator+= (const complex_vector &v1)
complex_vector& operator-= (const complex_vector &v1)
complex_vector& operator+= (const real_vector &v1)
complex_vector& operator-= (const real_vector &v1)
complex_vector& real (const complex_vector &v)
complex_vector& imaginary (const complex_vector &v)
complex_vector& show (ostream &)
complex_vector& show (void)
const complex_vector& show (ostream &) const
const complex_vector& show (void) const
bool empty () const
int capacity () const
void reserve (int n)
Complexfront ()
const Complexfront () const
Complexback ()
const Complexback () const
void push_back (Complex s)
void pop_back ()
iterator begin ()
iterator end ()
const_iterator begin () const
const_iterator end () const

Public Attributes

const int& size
const v_index_modemode

Static Public Methods

string out_separator ()
string out_separator (const string &)
string out_separator (const char *const)
string out_separator (const char)

Private Methods

void construct (const int n, const v_index_mode t)
void constfill (const Complex f)

Private Attributes

int internal_size
v_index_mode internal_mode
int maxindexvalue
int minindexvalue
Complexdata
Complexdelete_pointer
Complex trash


Member Typedef Documentation

typedef const value_type * complex_vector::const_iterator
 

Definition at line 930 of file vector.h.

typedef const reference complex_vector::const_reference
 

Definition at line 928 of file vector.h.

typedef int complex_vector::difference_type
 

Definition at line 931 of file vector.h.

typedef value_type * complex_vector::iterator
 

Definition at line 929 of file vector.h.

typedef value_type & complex_vector::reference
 

Definition at line 927 of file vector.h.

typedef int complex_vector::size_type
 

Definition at line 932 of file vector.h.

typedef Complex complex_vector::value_type
 

Definition at line 926 of file vector.h.


Constructor & Destructor Documentation

complex_vector::complex_vector ( const v_index_mode t = Index_1 ) [inline, explicit]
 

Definition at line 808 of file vector.h.

complex_vector::complex_vector ( const int n,
const v_index_mode t = Index_1 ) [inline, explicit]
 

Definition at line 812 of file vector.h.

complex_vector::complex_vector ( const complex_vector & v1 )
 

Definition at line 765 of file vector.cc.

complex_vector::complex_vector ( const real_vector & v1 )
 

Definition at line 780 of file vector.cc.

complex_vector::complex_vector ( complex *const ptr,
const int n,
const v_index_mode t )
 

complex_vector::~complex_vector ( void ) [inline]
 

Definition at line 824 of file vector.h.


Member Function Documentation

complex_vector & complex_vector::apply ( Complex(* f)(const Complex &, int) )
 

Definition at line 1236 of file vector.cc.

complex_vector & complex_vector::apply ( Complex(* f)(Complex, int) )
 

Definition at line 1227 of file vector.cc.

complex_vector & complex_vector::apply ( Complex(* f)(const Complex &) )
 

Definition at line 1217 of file vector.cc.

complex_vector & complex_vector::apply ( Complex(* f)(Complex) )
 

Definition at line 1207 of file vector.cc.

const Complex & complex_vector::back ( ) const [inline]
 

Definition at line 942 of file vector.h.

Complex & complex_vector::back ( ) [inline]
 

Definition at line 941 of file vector.h.

const_iterator complex_vector::begin ( ) const [inline]
 

Definition at line 947 of file vector.h.

iterator complex_vector::begin ( ) [inline]
 

Definition at line 945 of file vector.h.

int complex_vector::capacity ( ) const [inline]
 

Definition at line 937 of file vector.h.

complex_vector & complex_vector::clean ( void )
 

Definition at line 923 of file vector.cc.

Referenced by copy(), operator+=(), operator-=(), and operator=().

void complex_vector::constfill ( const Complex f ) [private]
 

Definition at line 759 of file vector.cc.

Referenced by complex_vector(), copy(), fill(), and fillall().

void complex_vector::construct ( const int n,
const v_index_mode t ) [private]
 

Definition at line 707 of file vector.cc.

Referenced by complex_vector(), operator=(), and reallocate().

complex_vector & complex_vector::copy ( const real_vector & v1 )
 

Definition at line 1001 of file vector.cc.

complex_vector & complex_vector::copy ( const complex_vector & v1 )
 

Definition at line 980 of file vector.cc.

Referenced by operator=(), and reallocate().

bool complex_vector::empty ( ) const [inline]
 

Definition at line 936 of file vector.h.

Referenced by pop_back(), and reserve().

const_iterator complex_vector::end ( ) const [inline]
 

Definition at line 948 of file vector.h.

iterator complex_vector::end ( ) [inline]
 

Definition at line 946 of file vector.h.

complex_vector & complex_vector::fill ( const Complex s ) [inline]
 

Definition at line 882 of file vector.h.

Referenced by operator=(), and complex_matrix::rowswap().

complex_vector & complex_vector::fillall ( const Complex s )
 

Definition at line 967 of file vector.cc.

Referenced by unit().

int complex_vector::findmax ( ) const
 

Definition at line 1190 of file vector.cc.

const Complex & complex_vector::front ( ) const [inline]
 

Definition at line 940 of file vector.h.

Complex & complex_vector::front ( ) [inline]
 

Definition at line 939 of file vector.h.

const Complex & complex_vector::get ( const int i ) const [inline]
 

Definition at line 848 of file vector.h.

Complex & complex_vector::get ( const int i ) [inline]
 

Definition at line 845 of file vector.h.

Referenced by data_parser::convert(), linterp(), ckdata::operator[](), swap(), and unit().

complex_vector & complex_vector::imaginary ( const complex_vector & v )
 

Definition at line 1175 of file vector.cc.

int complex_vector::is_empty ( ) const [inline]
 

Definition at line 833 of file vector.h.

Referenced by copy(), empty(), imaginary(), real_vector::imaginary(), real(), and real_vector::real().

complex_vector & complex_vector::make_empty ( )
 

Definition at line 897 of file vector.cc.

Referenced by complex_vector(), copy(), imaginary(), pop_back(), real(), and reserve().

int complex_vector::maximize ( void ) [inline]
 

Definition at line 831 of file vector.h.

Referenced by fillall(), and operator=().

int complex_vector::maxindex ( int n )
 

Definition at line 867 of file vector.cc.

int complex_vector::maxindex ( void ) const [inline]
 

Definition at line 829 of file vector.h.

Referenced by ckdata::calc(), clean(), col(), complex_matrix::complex_matrix(), complex_vector(), constfill(), convC(), data_parser::convert(), copy(), get(), iv_match::get_b(), fts_match::get_b(), imaginary(), real_vector::imaginary(), is_empty(), sis_basic_device::large_signal(), linterp(), max_norm(), maximize(), maxindex(), operator *(), operator+(), operator+=(), operator-(), operator-=(), operator<<(), operator=(), pop_back(), push_back(), read(), real(), real_vector::real(), reallocate(), reserve(), fts_match::reset(), resize(), real_vector::resize(), row(), mixer::save_operating_state(), scalediv(), scalemult(), and shrink().

int complex_vector::minindex ( void ) const [inline]
 

Definition at line 828 of file vector.h.

Referenced by clean(), col(), complex_matrix::complex_matrix(), complex_vector(), constfill(), copy(), get(), iv_match::get_b(), fts_match::get_b(), imaginary(), is_empty(), linterp(), max_norm(), operator *(), operator+=(), operator-=(), operator<<(), read(), real(), fts_match::reset(), row(), scalediv(), and scalemult().

complex_vector & complex_vector::operator *= ( const Complex s )
 

Definition at line 1093 of file vector.cc.

complex_vector & complex_vector::operator+= ( const real_vector & v1 )
 

Definition at line 1133 of file vector.cc.

complex_vector & complex_vector::operator+= ( const complex_vector & v1 )
 

Definition at line 1109 of file vector.cc.

complex_vector & complex_vector::operator+= ( const Complex s )
 

Definition at line 1075 of file vector.cc.

complex_vector & complex_vector::operator-= ( const real_vector & v1 )
 

Definition at line 1146 of file vector.cc.

complex_vector & complex_vector::operator-= ( const complex_vector & v1 )
 

Definition at line 1122 of file vector.cc.

complex_vector & complex_vector::operator-= ( const Complex s )
 

Definition at line 1085 of file vector.cc.

complex_vector & complex_vector::operator/= ( const Complex s )
 

Definition at line 1101 of file vector.cc.

complex_vector & complex_vector::operator= ( const double s ) [inline]
 

Definition at line 884 of file vector.h.

complex_vector & complex_vector::operator= ( const Complex s ) [inline]
 

Definition at line 883 of file vector.h.

complex_vector & complex_vector::operator= ( const real_vector & v1 )
 

Definition at line 1059 of file vector.cc.

complex_vector & complex_vector::operator= ( const complex_vector & v1 )
 

Definition at line 1042 of file vector.cc.

const Complex & complex_vector::operator[] ( const int i ) const [inline]
 

Definition at line 854 of file vector.h.

Complex & complex_vector::operator[] ( const int i ) [inline]
 

Definition at line 851 of file vector.h.

string complex_vector::out_separator ( const s ) [static]
 

Definition at line 701 of file vector.cc.

string complex_vector::out_separator ( const char * const ) [static]
 

Definition at line 698 of file vector.cc.

string complex_vector::out_separator ( const string & s ) [static]
 

Definition at line 695 of file vector.cc.

string complex_vector::out_separator ( ) [static]
 

Definition at line 692 of file vector.cc.

void complex_vector::pop_back ( )
 

Definition at line 1271 of file vector.cc.

void complex_vector::push_back ( Complex s )
 

Definition at line 1259 of file vector.cc.

Complex complex_vector::read ( const int i ) const [inline]
 

Definition at line 842 of file vector.h.

Referenced by mixer::I_junc(), mixer::V_junc(), sis_basic_device::alpha(), complex_interp::file(), complex_matrix::fillcol(), complex_matrix::fillrow(), sis_basic_device::large_signal(), scalediv(), and scalemult().

complex_vector & complex_vector::real ( const complex_vector & v )
 

Definition at line 1160 of file vector.cc.

complex_vector & complex_vector::reallocate ( const int n ) [inline]
 

Definition at line 864 of file vector.h.

complex_vector & complex_vector::reallocate ( const int n,
const v_index_mode t )
 

Definition at line 1021 of file vector.cc.

Referenced by push_back(), reallocate(), reindex(), reserve(), resize(), and sdata::sdata().

complex_vector & complex_vector::reindex ( const M )
 

Definition at line 822 of file vector.cc.

Referenced by sdata::reindex().

void complex_vector::reserve ( int n )
 

Definition at line 1248 of file vector.cc.

complex_vector & complex_vector::resize ( const complex_vector & v ) [inline]
 

Definition at line 873 of file vector.h.

complex_vector & complex_vector::resize ( const real_vector & v ) [inline]
 

Definition at line 868 of file vector.h.

complex_vector & complex_vector::resize ( const int Max ) [inline]
 

Definition at line 866 of file vector.h.

Referenced by col(), data_parser::convert(), imaginary(), linterp(), real(), sdata::resize(), row(), and sdata::sdata().

const complex_vector & complex_vector::show ( void ) const
 

Definition at line 687 of file vector.cc.

const complex_vector & complex_vector::show ( ostream & s ) const
 

Definition at line 681 of file vector.cc.

const complex_vector & complex_vector::show ( void )
 

Definition at line 676 of file vector.cc.

Referenced by show().

complex_vector & complex_vector::show ( ostream & s )
 

Definition at line 670 of file vector.cc.

complex_vector & complex_vector::shrink ( Complex s )
 

Definition at line 938 of file vector.cc.

complex_vector & complex_vector::swap ( const int n,
const int m ) [inline]
 

Definition at line 889 of file vector.h.

complex_vector & complex_vector::unit ( int n ) [inline]
 

Definition at line 887 of file vector.h.


Member Data Documentation

Complex * complex_vector::data [private]
 

Definition at line 957 of file vector.h.

Complex * complex_vector::delete_pointer [private]
 

Definition at line 958 of file vector.h.

v_index_mode complex_vector::internal_mode [private]
 

Definition at line 954 of file vector.h.

int complex_vector::internal_size [private]
 

Definition at line 953 of file vector.h.

int complex_vector::maxindexvalue [private]
 

Definition at line 955 of file vector.h.

int complex_vector::minindexvalue [private]
 

Definition at line 956 of file vector.h.

const v_index_mode & complex_vector::mode
 

Definition at line 803 of file vector.h.

const int & complex_vector::size
 

Definition at line 802 of file vector.h.

Complex complex_vector::trash [mutable, private]
 

Definition at line 959 of file vector.h.


The documentation for this class was generated from the following files:

Please direct comments and corrections to supermix@submm.caltech.edu
Go to the supermix home page
Generated by doxygen1.2.7