algebra::Distributive< AddOp, MultOp, Element > Struct Template Reference
[Concepts]

Concept Distributive. More...

#include <algebraic_concepts.hpp>

Inheritance diagram for algebra::Distributive< AddOp, MultOp, Element >:

Inheritance graph
[legend]

Detailed Description

template<typename AddOp, typename MultOp, typename Element>
struct algebra::Distributive< AddOp, MultOp, Element >

Concept Distributive.

Parameters:
AddOp A functor implementing a binary operation representing addition
MultOp A functor implementing a binary operation representing multiplication
Element The type upon the binary operation is defined
Notation:
add Object of type AddOp
mult Object of type Multop
x, y, z Objects of type Element
Invariant:
Distributivity from left mult(x, add(y, z)) == add(mult(x, y), mult(x, z))
Distributivity from right mult(add(x, y), z) == add(mult(x, z), mult(y, z))

The documentation for this struct was generated from the following file:





algebra::Distributive< AddOp, MultOp, Element > Struct Template Reference -- MTL 4 -- Peter Gottschling and Andrew Lumsdaine -- Generated on 19 May 2009 by Doxygen 1.5.5 -- Copyright 2007 by the Trustees of Indiana University.