concepts::TrivExtendRestrict< F > Class Template Reference

Trivial extension and restriction operator. More...

#include <permutation.hh>

Public Member Functions

void convertToMatrix (Matrix< F > &dest) const
 Convertes this operator to the matrix dest. More...
 
bool extend () const
 Returns the extension flag. More...
 
virtual void operator() (const concepts::Function< F > &fncY, concepts::Function< F > &fncX)
 
template<class G >
 TrivExtendRestrict (const concepts::Space< G > &spcX, const concepts::Space< G > &spcY, bool extend=false)
 Constructor. More...
 
 TrivExtendRestrict (uint dimX, uint dimY, bool extend=false)
 

Protected Member Functions

virtual std::ostream & info (std::ostream &os) const
 

Private Attributes

const bool extend_
 

Detailed Description

template<typename F>
class concepts::TrivExtendRestrict< F >

Trivial extension and restriction operator.

Extends a vector by adding zeros at the beginning or restricts a vector by stripping off the beginning of the vector.

Author
Philipp Frauenfelder, 2002
Test:
test::MoreCompositionsTest

Definition at line 27 of file permutation.hh.

Constructor & Destructor Documentation

◆ TrivExtendRestrict() [1/2]

template<typename F >
template<class G >
concepts::TrivExtendRestrict< F >::TrivExtendRestrict ( const concepts::Space< G > &  spcX,
const concepts::Space< G > &  spcY,
bool  extend = false 
)
inline

Constructor.

Parameters
spcXImage space
spcYSource space
extendApplies the extension (true) or the restriction (false)

Definition at line 119 of file permutation.hh.

◆ TrivExtendRestrict() [2/2]

template<typename F >
concepts::TrivExtendRestrict< F >::TrivExtendRestrict ( uint  dimX,
uint  dimY,
bool  extend = false 
)
inline

Definition at line 134 of file permutation.hh.

Member Function Documentation

◆ convertToMatrix()

template<typename F >
void concepts::TrivExtendRestrict< F >::convertToMatrix ( Matrix< F > &  dest) const

Convertes this operator to the matrix dest.

Precondition
dest is empty

◆ extend()

template<typename F >
bool concepts::TrivExtendRestrict< F >::extend ( ) const
inline

Returns the extension flag.

Definition at line 151 of file permutation.hh.

◆ info()

template<typename F >
virtual std::ostream& concepts::TrivExtendRestrict< F >::info ( std::ostream &  os) const
protectedvirtual

◆ operator()()

template<typename F >
void concepts::TrivExtendRestrict< F >::operator() ( const concepts::Function< F > &  fncY,
concepts::Function< F > &  fncX 
)
virtual

Definition at line 164 of file permutation.hh.

Member Data Documentation

◆ extend_

template<typename F >
const bool concepts::TrivExtendRestrict< F >::extend_
private

Definition at line 160 of file permutation.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