FunctionAXPY.h

Note

The documentation on this page was automatically extracted from the DOLFIN C++ code and may need to be edited or expanded.

class FunctionAXPY

This class represents a linear combination of functions. It is mostly used as an intermediate class for operations such as u = 3*u0 + 4*u1; where the rhs generates an FunctionAXPY.

enum class Direction

Enum to decide what way AXPY is constructed

FunctionAXPY(std::shared_ptr<const Function> func, double scalar)

Constructor

FunctionAXPY(const FunctionAXPY &axpy, double scalar)

Constructor

FunctionAXPY(std::shared_ptr<const Function> func0, std::shared_ptr<const Function> func1, Direction direction)

Constructor

FunctionAXPY(const FunctionAXPY &axpy, std::shared_ptr<const Function> func, Direction direction)

Constructor

FunctionAXPY(const FunctionAXPY &axpy0, const FunctionAXPY &axpy1, Direction direction)

Constructor

FunctionAXPY(std::vector<std::pair<double, std::shared_ptr<const Function>>> pairs)

Constructor

FunctionAXPY(const FunctionAXPY &axpy)

Copy constructor

FunctionAXPY operator+(std::shared_ptr<const Function> func) const

Addition operator

FunctionAXPY operator+(const FunctionAXPY &axpy) const

Addition operator

FunctionAXPY operator-(std::shared_ptr<const Function> func) const

Subtraction operator

FunctionAXPY operator-(const FunctionAXPY &axpy) const

Subtraction operator

FunctionAXPY operator*(double scale) const

Scale operator

FunctionAXPY operator/(double scale) const

Scale operator

const std::vector<std::pair<double, std::shared_ptr<const Function>>> &pairs() const

Return the scalar and Function pairs

void _register(const FunctionAXPY &axpy0, double scale)

Register another AXPY object