]> www.ginac.de Git - ginac.git/blobdiff - ginac/indexed.cpp
* Return
[ginac.git] / ginac / indexed.cpp
index ad17a497a9dc703e52cd435d6901312071beab42..29dd86ae5e001f7c8903ce9861c702d95f90d9ec 100644 (file)
@@ -36,6 +36,7 @@
 #include "lst.h"
 #include "archive.h"
 #include "utils.h"
+#include "integral.h"
 
 namespace GiNaC {
 
@@ -522,6 +523,13 @@ exvector power::get_free_indices() const
                return basis_indices;
 }
 
+exvector integral::get_free_indices() const
+{
+       if (a.get_free_indices().size() || b.get_free_indices().size())
+               throw (std::runtime_error("integral::get_free_indices: boundary values should not have free indices"));
+       return f.get_free_indices();
+}
+
 /** Rename dummy indices in an expression.
  *
  *  @param e Expression to work on
@@ -1128,6 +1136,7 @@ ex simplify_indexed(const ex & e, exvector & free_indices, exvector & dummy_indi
  *  performs contraction of dummy indices where possible and checks whether
  *  the free indices in sums are consistent.
  *
+ *  @param options Simplification options (currently unused)
  *  @return simplified expression */
 ex ex::simplify_indexed(unsigned options) const
 {
@@ -1142,6 +1151,7 @@ ex ex::simplify_indexed(unsigned options) const
  *  scalar products by known values if desired.
  *
  *  @param sp Scalar products to be replaced automatically
+ *  @param options Simplification options (currently unused)
  *  @return simplified expression */
 ex ex::simplify_indexed(const scalar_products & sp, unsigned options) const
 {