SOFTSUSY
4.1
|
Vector of double complex values. More...
#include <linalg.h>
Public Member Functions | |
ComplexVector (int e) | |
ComplexVector (int s, int e) | |
template<class E > | |
ComplexVector & | operator= (const Xpr< Complex, E > &x) |
this is the only required operator to make this class work with ETs | |
ComplexVector & | operator= (const ComplexVector &other) |
template<typename E > | |
ComplexVector (const Xpr< Complex, E > &v) | |
Complex & | operator() (int i) |
reference one element | |
Complex | operator() (int i) const |
Complex | display (int i) const |
display ith element | |
void | set (int i, Complex f) |
set ith element to f | |
int | displayStart () const |
displays start of dimension | |
int | displayEnd () const |
displays end of dimension | |
const ComplexVector & | display () const |
displays whole vector | |
void | setEnd (int e) |
ComplexVector | apply (Complex(*fn)(Complex)) const |
Apply fn to every element. | |
Complex | max () const |
maximum absolute value More... | |
Complex | min (int &p) const |
smallest absolute element | |
void | swap (int i, int j) |
swap ith and jth elements | |
Public Member Functions inherited from Indexable< Complex, ComplexVector > | |
Complex | operator() (int n) const |
int | displayStart () const |
int | displayEnd () const |
ComplexVector & | assign_from (const Xpr< Complex, E > &x) |
ComplexVector | copy_from (const Xpr< Complex, E > &x) |
Indexable & | operator+= (const Xpr< Complex, E > &x) |
Indexable & | operator-= (const Xpr< Complex, E > &x) |
Indexable & | operator*= (Complex x) |
Friends | |
class | ComplexMatrix |
Vector of double complex values.
|
inlineexplicit |
e | Default dimensions start at 1, end at e |
|
inline |
e | Dimension starts at s and ends at e |
|
inline |
maximum absolute value
maximum absolute value, determined by definition of Complex::operator<(const Complex &) in mycomplex.h
void ComplexVector::setEnd | ( | int | e | ) |
Changes the length of a vector - copies as many elements of old one as possible, and fills any extra up with zeroes