From 390dd9c1d9d879b37fa4e00c127015f8dac15997 Mon Sep 17 00:00:00 2001
From: "Vladimir V. Kisil" <V.Kisilv@leeds.ac.uk>
Date: Tue, 12 Oct 2021 11:17:35 +0100
Subject: [PATCH] Add methods to access elements of expairseq

Sometimes we may need a quick access to terms of a sum or product.

Signed-off-by: Vladimir V. Kisil <V.Kisilv@leeds.ac.uk>
---
 ginac/expairseq.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/ginac/expairseq.h b/ginac/expairseq.h
index 71241d15..2dab4691 100644
--- a/ginac/expairseq.h
+++ b/ginac/expairseq.h
@@ -70,6 +70,8 @@ public:
 	bool match(const ex & pattern, exmap& repl_lst) const override;
 	ex subs(const exmap & m, unsigned options = 0) const override;
 	ex conjugate() const override;
+	inline epvector get_epvector() const { return seq; }
+	inline ex get_overall_coeff() const { return overall_coeff; }
 
 	void archive(archive_node& n) const override;
 	void read_archive(const archive_node& n, lst& syms) override;
-- 
2.33.0

