concepts::StiffArray< 1, F > Class Template Reference

#include <stiffArray.hh>

Inheritance diagram for concepts::StiffArray< 1, F >:
concepts::OutputOperator

Public Member Functions

StiffArray< 1, F > & apply (F &fnc(F &))
 Application operator to each component, e.g. More...
 
uint length ()
 
 operator F () const
 Type conversion. More...
 
StiffArray< 1, F > & operator*= (const F n)
 Scaling operator. More...
 
StiffArray< 1, F > & operator+= (const F n)
 Addition operator. More...
 
StiffArray< 1, F > & operator-= (const F n)
 Subtraction operator. More...
 
StiffArray< 1, F > & operator/= (const F n)
 Division operator. More...
 
StiffArray< 1, F > & operator= (const F n)
 Assignement operator. More...
 
F & operator[] (const int i)
 Index operator. More...
 
const F & operator[] (const int i) const
 Index operator. More...
 
 StiffArray ()
 Constructor. More...
 
 StiffArray (const Array< F > &dft)
 Constructor. More...
 
 StiffArray (const F &dft)
 Constructor. More...
 
 StiffArray (const StiffArray< 1, F > &a)
 Copy constructor. More...
 
template<class H >
 StiffArray (const StiffArray< 1, H > &a, F fnc(const H &))
 Constructor. More...
 
void zeros ()
 Fills the memory with zeros. More...
 
 ~StiffArray ()
 

Protected Member Functions

virtual std::ostream & info (std::ostream &os) const
 Returns information in an output stream. More...
 

Private Attributes

data_
 Data. More...
 

Detailed Description

template<class F>
class concepts::StiffArray< 1, F >

Definition at line 163 of file stiffArray.hh.

Constructor & Destructor Documentation

◆ StiffArray() [1/5]

template<class F >
concepts::StiffArray< 1, F >::StiffArray ( )
inline

Constructor.

Definition at line 166 of file stiffArray.hh.

◆ StiffArray() [2/5]

template<class F >
concepts::StiffArray< 1, F >::StiffArray ( const F &  dft)
inline

Constructor.

Parameters
dftDefault value.

Definition at line 171 of file stiffArray.hh.

◆ StiffArray() [3/5]

template<class F >
concepts::StiffArray< 1, F >::StiffArray ( const Array< F > &  dft)
inline

Constructor.

Parameters
dataArray of size dim.

Definition at line 176 of file stiffArray.hh.

◆ StiffArray() [4/5]

template<class F >
template<class H >
concepts::StiffArray< 1, F >::StiffArray ( const StiffArray< 1, H > &  a,
F   fncconst H & 
)
inline

Constructor.

Parameters
aStiff array with elements of type H
fncFunction which maps from H to F

Definition at line 186 of file stiffArray.hh.

◆ StiffArray() [5/5]

template<class F >
concepts::StiffArray< 1, F >::StiffArray ( const StiffArray< 1, F > &  a)
inline

Copy constructor.

Definition at line 190 of file stiffArray.hh.

◆ ~StiffArray()

template<class F >
concepts::StiffArray< 1, F >::~StiffArray ( )
inline

Definition at line 191 of file stiffArray.hh.

Member Function Documentation

◆ apply()

template<class F >
StiffArray<1,F>& concepts::StiffArray< 1, F >::apply ( F &  fncF &)
inline

Application operator to each component, e.g.

std::sin or std::conj

Definition at line 233 of file stiffArray.hh.

◆ info()

template<class F >
std::ostream & concepts::StiffArray< 1, F >::info ( std::ostream &  os) const
protectedvirtual

Returns information in an output stream.

Reimplemented from concepts::OutputOperator.

Definition at line 244 of file stiffArray.hh.

◆ length()

template<class F >
uint concepts::StiffArray< 1, F >::length ( )
inline

Definition at line 194 of file stiffArray.hh.

◆ operator F()

template<class F >
concepts::StiffArray< 1, F >::operator F ( ) const
inline

Type conversion.

Definition at line 198 of file stiffArray.hh.

◆ operator*=()

template<class F >
StiffArray<1,F>& concepts::StiffArray< 1, F >::operator*= ( const F  n)
inline

Scaling operator.

Definition at line 212 of file stiffArray.hh.

◆ operator+=()

template<class F >
StiffArray<1,F>& concepts::StiffArray< 1, F >::operator+= ( const F  n)
inline

Addition operator.

Definition at line 224 of file stiffArray.hh.

◆ operator-=()

template<class F >
StiffArray<1,F>& concepts::StiffArray< 1, F >::operator-= ( const F  n)
inline

Subtraction operator.

Definition at line 228 of file stiffArray.hh.

◆ operator/=()

template<class F >
StiffArray<1,F>& concepts::StiffArray< 1, F >::operator/= ( const F  n)
inline

Division operator.

Definition at line 216 of file stiffArray.hh.

◆ operator=()

template<class F >
StiffArray<1,F>& concepts::StiffArray< 1, F >::operator= ( const F  n)
inline

Assignement operator.

Definition at line 220 of file stiffArray.hh.

◆ operator[]() [1/2]

template<class F >
F& concepts::StiffArray< 1, F >::operator[] ( const int  i)
inline

Index operator.

Definition at line 206 of file stiffArray.hh.

◆ operator[]() [2/2]

template<class F >
const F& concepts::StiffArray< 1, F >::operator[] ( const int  i) const
inline

Index operator.

Definition at line 201 of file stiffArray.hh.

◆ zeros()

template<class F >
void concepts::StiffArray< 1, F >::zeros ( )
inline

Fills the memory with zeros.

Definition at line 196 of file stiffArray.hh.

Member Data Documentation

◆ data_

template<class F >
F concepts::StiffArray< 1, F >::data_
private

Data.

Definition at line 240 of file stiffArray.hh.


The documentation for this class was generated from the following file:
Page URL: http://wiki.math.ethz.ch/bin/view/Concepts/WebHome
21 August 2020
© 2020 Eidgenössische Technische Hochschule Zürich