An array of objects of fix length, defined by template parameter dim.
More...
#include <stiffArray.hh>


Public Member Functions | |
| StiffArray< dim, F > & | apply (F &fnc(F &)) |
| Application operator to each component, e.g. | |
| uint | length () |
| operator Array< F > () const | |
| operator const F * () const | |
| Returns a pointer to the data in the array. | |
| operator F * () | |
| Returns a pointer to the data in the array. | |
| StiffArray< dim, F > & | operator*= (const StiffArray< dim, F > &a) |
| Multiplication operator. | |
| StiffArray< dim, F > & | operator*= (const F n) |
| Scaling operator. | |
| StiffArray< dim, F > & | operator+= (const F n) |
| Addition operator. | |
| StiffArray< dim, F > & | operator-= (const F n) |
| Subtraction operator. | |
| StiffArray< dim, F > & | operator/= (const F n) |
| Division operator. | |
| StiffArray< dim, F > & | operator= (const F n) |
| Assignement operator. | |
| const F & | operator[] (const int i) const |
| Index operator. | |
| F & | operator[] (const int i) |
| Index operator. | |
| StiffArray (const F &dft) | |
| Constructor. | |
| template<class H > | |
| StiffArray (const StiffArray< dim, H > &a, const F &fnc(const H &)) | |
| Constructor. | |
| StiffArray (const StiffArray< dim, F > &a) | |
| Copy constructor. | |
| StiffArray (const Array< F > &dft) | |
| Constructor. | |
| StiffArray () | |
| Constructor. | |
| template<class H > | |
| StiffArray (const StiffArray< dim, H > &a, F fnc(const H &)) | |
| Constructor. | |
| void | zeros () |
| Fills the memory with zeros. | |
| ~StiffArray () | |
Protected Member Functions | |
| virtual std::ostream & | info (std::ostream &os) const |
| Returns information in an output stream. | |
Private Attributes | |
| F * | data_ |
| Data. | |
An array of objects of fix length, defined by template parameter dim.
Is almost similar to Array, but without methods for resizing.
Definition at line 27 of file stiffArray.hh.
| concepts::StiffArray< dim, F >::StiffArray | ( | ) | [inline] |
Constructor.
Definition at line 30 of file stiffArray.hh.
| concepts::StiffArray< dim, F >::StiffArray | ( | const F & | dft | ) | [inline] |
| concepts::StiffArray< dim, F >::StiffArray | ( | const Array< F > & | dft | ) | [inline] |
| concepts::StiffArray< dim, F >::StiffArray | ( | const StiffArray< dim, H > & | a, |
| F | fncconst H & | ||
| ) | [inline] |
Constructor.
| a | Stiff array with elements of type H |
| fnc | Function which maps from H to F |
Definition at line 50 of file stiffArray.hh.
| concepts::StiffArray< dim, F >::StiffArray | ( | const StiffArray< dim, H > & | a, |
| const F & | fncconst H & | ||
| ) | [inline] |
Constructor.
| a | Stiff array with elements of type H |
| fnc | Function which maps from H to F, e.g. std::real |
Definition at line 61 of file stiffArray.hh.
| concepts::StiffArray< dim, F >::StiffArray | ( | const StiffArray< dim, F > & | a | ) | [inline] |
Copy constructor.
Definition at line 67 of file stiffArray.hh.
| concepts::StiffArray< dim, F >::~StiffArray | ( | ) | [inline] |
Definition at line 70 of file stiffArray.hh.
| StiffArray<dim,F>& concepts::StiffArray< dim, F >::apply | ( | F & | fncF & | ) | [inline] |
Application operator to each component, e.g.
std::sin or std::conj
Definition at line 131 of file stiffArray.hh.
| std::ostream & concepts::StiffArray< dim, F >::info | ( | std::ostream & | os | ) | const [protected, virtual] |
Returns information in an output stream.
Reimplemented from concepts::OutputOperator.
Reimplemented in concepts::MultiIndex< dim >.
Definition at line 143 of file stiffArray.hh.
| uint concepts::StiffArray< dim, F >::length | ( | ) | [inline] |
Definition at line 75 of file stiffArray.hh.
| concepts::StiffArray< dim, F >::operator Array< F > | ( | ) | const [inline] |
Definition at line 83 of file stiffArray.hh.
| concepts::StiffArray< dim, F >::operator const F * | ( | ) | const [inline] |
Returns a pointer to the data in the array.
Definition at line 81 of file stiffArray.hh.
| concepts::StiffArray< dim, F >::operator F * | ( | ) | [inline] |
Returns a pointer to the data in the array.
Definition at line 79 of file stiffArray.hh.
| StiffArray<dim,F>& concepts::StiffArray< dim, F >::operator*= | ( | const F | n | ) | [inline] |
Scaling operator.
Definition at line 99 of file stiffArray.hh.
| StiffArray<dim,F>& concepts::StiffArray< dim, F >::operator*= | ( | const StiffArray< dim, F > & | a | ) | [inline] |
Multiplication operator.
Definition at line 124 of file stiffArray.hh.
| StiffArray<dim,F>& concepts::StiffArray< dim, F >::operator+= | ( | const F | n | ) | [inline] |
Addition operator.
Definition at line 114 of file stiffArray.hh.
| StiffArray<dim,F>& concepts::StiffArray< dim, F >::operator-= | ( | const F | n | ) | [inline] |
Subtraction operator.
Definition at line 119 of file stiffArray.hh.
| StiffArray<dim,F>& concepts::StiffArray< dim, F >::operator/= | ( | const F | n | ) | [inline] |
Division operator.
Definition at line 104 of file stiffArray.hh.
| StiffArray<dim,F>& concepts::StiffArray< dim, F >::operator= | ( | const F | n | ) | [inline] |
Assignement operator.
Definition at line 109 of file stiffArray.hh.
| const F& concepts::StiffArray< dim, F >::operator[] | ( | const int | i | ) | const [inline] |
Index operator.
Definition at line 86 of file stiffArray.hh.
| F& concepts::StiffArray< dim, F >::operator[] | ( | const int | i | ) | [inline] |
Index operator.
Definition at line 92 of file stiffArray.hh.
| void concepts::StiffArray< dim, F >::zeros | ( | ) | [inline] |
Fills the memory with zeros.
Definition at line 77 of file stiffArray.hh.
F* concepts::StiffArray< dim, F >::data_ [private] |
Data.
Definition at line 139 of file stiffArray.hh.