*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/** This class holds one index of an indexed object. Indices can
* theoretically consist of any symbolic expression but they are usually
* only just a symbol (e.g. "mu", "i") or numeric (integer). Indices belong
/** This class holds one index of an indexed object. Indices can
* theoretically consist of any symbolic expression but they are usually
* only just a symbol (e.g. "mu", "i") or numeric (integer). Indices belong
ex map(map_function & f) const;
ex evalf(int level = 0) const;
ex subs(const exmap & m, unsigned options = 0) const;
ex map(map_function & f) const;
ex evalf(int level = 0) const;
ex subs(const exmap & m, unsigned options = 0) const;
protected:
void print_index(const print_context & c, unsigned level) const;
void do_print(const print_context & c, unsigned level) const;
protected:
void print_index(const print_context & c, unsigned level) const;
void do_print(const print_context & c, unsigned level) const;
void do_print_latex(const print_latex & c, unsigned level) const;
void do_print_tree(const print_tree & c, unsigned level) const;
void do_print_latex(const print_latex & c, unsigned level) const;
void do_print_tree(const print_tree & c, unsigned level) const;
ex value; /**< Expression that constitutes the index (numeric or symbolic name) */
ex dim; /**< Dimension of space (can be symbolic or numeric) */
};
ex value; /**< Expression that constitutes the index (numeric or symbolic name) */
ex dim; /**< Dimension of space (can be symbolic or numeric) */
};
// functions overriding virtual functions from base classes
public:
bool is_dummy_pair_same_type(const basic & other) const;
// functions overriding virtual functions from base classes
public:
bool is_dummy_pair_same_type(const basic & other) const;
bool is_dummy_pair_same_type(const basic & other) const;
// complex conjugation
ex conjugate() const { return toggle_dot(); }
bool is_dummy_pair_same_type(const basic & other) const;
// complex conjugation
ex conjugate() const { return toggle_dot(); }