Qucs-core  0.0.18
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Attributes | Friends
qucs::tvector< nr_type_t > Class Template Reference

#include <tvector.h>

Public Member Functions

 tvector ()
 
 tvector (int)
 
 tvector (const tvector &)
 
const tvectoroperator= (const tvector &)
 
 ~tvector ()
 
nr_type_t get (int)
 
void set (int, nr_type_t)
 
void set (nr_type_t)
 
void set (nr_type_t, int, int)
 
void set (tvector, int, int)
 
int getSize (void)
 
nr_type_t * getData (void)
 
void setData (nr_type_t *, int)
 
void add (nr_type_t)
 
void clear (void)
 
void drop (int)
 
void truncate (int)
 
void exchangeRows (int, int)
 
int isFinite (void)
 
void print (void)
 
void reorder (int *)
 
int contains (nr_type_t, nr_double_t eps=NR_EPSI)
 
tvector operator+= (tvector)
 
tvector operator-= (tvector)
 
tvector operator*= (nr_double_t)
 
tvector operator/= (nr_double_t)
 
tvector operator= (const nr_type_t)
 
nr_type_t operator() (int i) const
 
nr_type_t & operator() (int i)
 

Private Attributes

int external
 
int size
 
int capacity
 
nr_type_t * data
 

Friends

tvector operator+ (tvector, tvector)
 
tvector operator- (tvector, tvector)
 
tvector operator* (tvector, nr_double_t)
 
tvector operator* (nr_double_t, tvector)
 
tvector operator* (tvector, tvector)
 
tvector operator- (tvector)
 
tvector operator+ (tvector, nr_type_t)
 
tvector operator+ (nr_type_t, tvector)
 
nr_double_t norm (tvector)
 
nr_double_t maxnorm (tvector)
 
nr_type_t sum (tvector)
 
nr_type_t scalar (tvector, tvector)
 
tvector conj (tvector)
 
bool operator< (tvector, tvector)
 
bool operator> (tvector, tvector)
 

Detailed Description

template<class nr_type_t>
class qucs::tvector< nr_type_t >

Definition at line 34 of file tvector.h.

Constructor & Destructor Documentation

template<class nr_type_t >
qucs::tvector< nr_type_t >::tvector ( )

Definition at line 40 of file tvector.cpp.

template<class nr_type_t >
qucs::tvector< nr_type_t >::tvector ( int  s)

Definition at line 49 of file tvector.cpp.

template<class nr_type_t >
qucs::tvector< nr_type_t >::tvector ( const tvector< nr_type_t > &  v)

Definition at line 62 of file tvector.cpp.

template<class nr_type_t >
qucs::tvector< nr_type_t >::~tvector ( )

Definition at line 95 of file tvector.cpp.

Member Function Documentation

template<class nr_type_t>
void qucs::tvector< nr_type_t >::add ( nr_type_t  z)

Definition at line 127 of file tvector.cpp.

template<class nr_type_t >
void qucs::tvector< nr_type_t >::clear ( void  )

Definition at line 164 of file tvector.cpp.

template<class nr_type_t>
int qucs::tvector< nr_type_t >::contains ( nr_type_t  val,
nr_double_t  eps = NR_EPSI 
)

Definition at line 171 of file tvector.cpp.

template<class nr_type_t >
void qucs::tvector< nr_type_t >::drop ( int  n)

Definition at line 145 of file tvector.cpp.

template<class nr_type_t >
void qucs::tvector< nr_type_t >::exchangeRows ( int  r1,
int  r2 
)

Definition at line 194 of file tvector.cpp.

template<class nr_type_t >
nr_type_t qucs::tvector< nr_type_t >::get ( int  i)

Definition at line 101 of file tvector.cpp.

template<class nr_type_t>
nr_type_t* qucs::tvector< nr_type_t >::getData ( void  )
inline

Definition at line 83 of file tvector.h.

template<class nr_type_t>
int qucs::tvector< nr_type_t >::getSize ( void  )
inline

Definition at line 82 of file tvector.h.

template<class nr_type_t >
int qucs::tvector< nr_type_t >::isFinite ( void  )

Definition at line 407 of file tvector.cpp.

template<class nr_type_t>
nr_type_t qucs::tvector< nr_type_t >::operator() ( int  i) const
inline

Definition at line 132 of file tvector.h.

template<class nr_type_t>
nr_type_t& qucs::tvector< nr_type_t >::operator() ( int  i)
inline

Definition at line 134 of file tvector.h.

template<class nr_type_t >
tvector< nr_type_t > qucs::tvector< nr_type_t >::operator*= ( nr_double_t  s)

Definition at line 243 of file tvector.cpp.

template<class nr_type_t >
tvector< nr_type_t > qucs::tvector< nr_type_t >::operator+= ( tvector< nr_type_t >  a)

Definition at line 213 of file tvector.cpp.

template<class nr_type_t >
tvector< nr_type_t > qucs::tvector< nr_type_t >::operator-= ( tvector< nr_type_t >  a)

Definition at line 233 of file tvector.cpp.

template<class nr_type_t >
tvector< nr_type_t > qucs::tvector< nr_type_t >::operator/= ( nr_double_t  s)

Definition at line 251 of file tvector.cpp.

template<class nr_type_t >
const tvector< nr_type_t > & qucs::tvector< nr_type_t >::operator= ( const tvector< nr_type_t > &  v)

Definition at line 79 of file tvector.cpp.

template<class nr_type_t>
tvector< nr_type_t > qucs::tvector< nr_type_t >::operator= ( const nr_type_t  val)

Definition at line 292 of file tvector.cpp.

template<class nr_type_t>
void qucs::tvector< nr_type_t >::print ( void  )
template<class nr_type_t >
void qucs::tvector< nr_type_t >::reorder ( int idx)

Definition at line 415 of file tvector.cpp.

template<class nr_type_t>
void qucs::tvector< nr_type_t >::set ( int  i,
nr_type_t  z 
)

Definition at line 108 of file tvector.cpp.

template<class nr_type_t>
void qucs::tvector< nr_type_t >::set ( nr_type_t  z)

Definition at line 115 of file tvector.cpp.

template<class nr_type_t>
void qucs::tvector< nr_type_t >::set ( nr_type_t  z,
int  start,
int  stop 
)

Definition at line 121 of file tvector.cpp.

template<class nr_type_t>
void qucs::tvector< nr_type_t >::set ( tvector< nr_type_t >  a,
int  start,
int  stop 
)

Definition at line 179 of file tvector.cpp.

template<class nr_type_t>
void qucs::tvector< nr_type_t >::setData ( nr_type_t *  d,
int  len 
)

Definition at line 185 of file tvector.cpp.

template<class nr_type_t >
void qucs::tvector< nr_type_t >::truncate ( int  n)

Definition at line 155 of file tvector.cpp.

Friends And Related Function Documentation

template<class nr_type_t>
tvector conj ( tvector< nr_type_t >  )
friend
template<class nr_type_t>
nr_double_t maxnorm ( tvector< nr_type_t >  )
friend
template<class nr_type_t>
nr_double_t norm ( tvector< nr_type_t >  )
friend
template<class nr_type_t>
tvector operator* ( tvector< nr_type_t >  ,
nr_double_t   
)
friend
template<class nr_type_t>
tvector operator* ( nr_double_t  ,
tvector< nr_type_t >   
)
friend
template<class nr_type_t>
tvector operator* ( tvector< nr_type_t >  ,
tvector< nr_type_t >   
)
friend
template<class nr_type_t>
tvector operator+ ( tvector< nr_type_t >  ,
tvector< nr_type_t >   
)
friend
template<class nr_type_t>
tvector operator+ ( tvector< nr_type_t >  ,
nr_type_t   
)
friend
template<class nr_type_t>
tvector operator+ ( nr_type_t  ,
tvector< nr_type_t >   
)
friend
template<class nr_type_t>
tvector operator- ( tvector< nr_type_t >  ,
tvector< nr_type_t >   
)
friend
template<class nr_type_t>
tvector operator- ( tvector< nr_type_t >  )
friend
template<class nr_type_t>
bool operator< ( tvector< nr_type_t >  ,
tvector< nr_type_t >   
)
friend
template<class nr_type_t>
bool operator> ( tvector< nr_type_t >  ,
tvector< nr_type_t >   
)
friend
template<class nr_type_t>
nr_type_t scalar ( tvector< nr_type_t >  ,
tvector< nr_type_t >   
)
friend
template<class nr_type_t>
nr_type_t sum ( tvector< nr_type_t >  )
friend

Field Documentation

template<class nr_type_t>
int qucs::tvector< nr_type_t >::capacity
private

Definition at line 140 of file tvector.h.

template<class nr_type_t>
nr_type_t* qucs::tvector< nr_type_t >::data
private

Definition at line 141 of file tvector.h.

template<class nr_type_t>
int qucs::tvector< nr_type_t >::external
private

Definition at line 138 of file tvector.h.

template<class nr_type_t>
int qucs::tvector< nr_type_t >::size
private

Definition at line 139 of file tvector.h.


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