Class xlifepp::Projector#

class Projector#

end user class handling projection from a space V to a space W

Public Functions

Projector(Space &V, dimen_t nbcV, Space &W, dimen_t nbcW, BilinearForm &a, const string_t &na = "")#

constructor with user bilinear form

Projector(Space &V, dimen_t nbcV, Space &W, dimen_t nbcW, const GeomDomain&, ProjectorType pt = _L2Projector, const string_t &na = "")#

constructor with predefined projection with domain

Projector(Space &V, dimen_t nbcV, Space &W, dimen_t nbcW, ProjectorType pt = _L2Projector, const string_t &na = "")#

constructor with predefined projection

Projector(Space &V, Space &W, BilinearForm &a, const string_t &na = "")#

constructor with user bilinear form

Projector(Space &V, Space &W, const GeomDomain&, ProjectorType pt = _L2Projector, const string_t &na = "")#

constructor with predefined projection with domain

Projector(Space &V, Space &W, ProjectorType pt = _L2Projector, const string_t &na = "")#

constructor with predefined projection

TermMatrix &asTermMatrix(const Unknown&, const Unknown&, const string_t& = "Projector::invA_B")#

return projector as TermMatrix (build inv(A)*B)

return projector as TermMatrix: inv(A)*B update TermMatrix member invA_B and delete A_ and B_

void init(dimen_t nbc_V, dimen_t nbc_W)#

initialize projector

TermVector operator()(const TermVector&) const#

projection of a TermVector

TermVector operator()(TermVector&, const Unknown&) const#

projection of a TermVector, specifying result unknown

projection of a TermVector, () operator

TermVector &operator()(TermVector&, TermVector&) const#

projection of a TermVector, specifying TermVector result

void print(std::ostream&) const#

print info on stream

Public Members

string_t name#

name of projection

ProjectorType projectorType#

type of projection (see enum ProjectionType)

Public Static Functions

static void clearGlobalVector()#

delete all Projector objects

static void printAllProjectors(std::ostream&)#

print the list of Projector objects in memory

Public Static Attributes

static std::vector<Projector*> theProjectors#

list of existing Projector objects

list of pointers of all projectors

Friends

friend Projector &findProjector(Space &V, dimen_t nbcV, Space &W, dimen_t nbcW, ProjectorType pt)#

create if not exist

friend TermVector operator*(const Projector&, const TermVector&)#

projection of a TermVector using *

friend std::ostream &operator<<(std::ostream&, const Projector&)#

output on stream