GiNaC 1.8.8
|
Helper class for storing information about known scalar products which are to be automatically replaced by simplify_indexed(). More...
#include <indexed.h>
Public Member Functions | |
void | add (const ex &v1, const ex &v2, const ex &sp) |
Register scalar product pair and its value. | |
void | add (const ex &v1, const ex &v2, const ex &dim, const ex &sp) |
Register scalar product pair and its value for a specific space dimension. | |
void | add_vectors (const lst &l, const ex &dim=wild()) |
Register list of vectors. | |
void | clear () |
Clear all registered scalar products. | |
bool | is_defined (const ex &v1, const ex &v2, const ex &dim) const |
Check whether scalar product pair is defined. | |
ex | evaluate (const ex &v1, const ex &v2, const ex &dim) const |
Return value of defined scalar product pair. | |
void | debugprint () const |
Protected Attributes | |
spmap | spm |
Helper class for storing information about known scalar products which are to be automatically replaced by simplify_indexed().
Register scalar product pair and its value.
Definition at line 1349 of file indexed.cpp.
References spm.
Register scalar product pair and its value for a specific space dimension.
Definition at line 1354 of file indexed.cpp.
References spm.
Register list of vectors.
This adds all possible pairs of products a.i * b.i with the value a*b (note that this is not a scalar vector product but an ordinary product of scalars).
Definition at line 1359 of file indexed.cpp.
void GiNaC::scalar_products::clear | ( | ) |
Check whether scalar product pair is defined.
Definition at line 1373 of file indexed.cpp.
References spm.
Return value of defined scalar product pair.
Definition at line 1379 of file indexed.cpp.
References GiNaC::ex::find(), and spm.
void GiNaC::scalar_products::debugprint | ( | ) | const |
Definition at line 1384 of file indexed.cpp.
References GiNaC::spmapkey::debugprint(), k, and spm.
|
protected |
Definition at line 238 of file indexed.h.
Referenced by add(), add(), clear(), debugprint(), evaluate(), and is_defined().