GiNaC 1.8.7
|
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 1348 of file indexed.cpp.
References spm.
Referenced by add_vectors().
Register scalar product pair and its value for a specific space dimension.
Definition at line 1353 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 1358 of file indexed.cpp.
References add().
void GiNaC::scalar_products::clear | ( | ) |
Check whether scalar product pair is defined.
Definition at line 1372 of file indexed.cpp.
References GiNaC::ex::find(), and spm.
Return value of defined scalar product pair.
Definition at line 1378 of file indexed.cpp.
References GiNaC::ex::find(), and spm.
void GiNaC::scalar_products::debugprint | ( | ) | const |
Definition at line 1383 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().