/** @file ncmul.h
*
- * Interface to GiNaC's non-commutative products of expressions.
- *
+ * Interface to GiNaC's non-commutative products of expressions. */
+
+/*
* GiNaC Copyright (C) 1999 Johannes Gutenberg University Mainz, Germany
*
* This program is free software; you can redistribute it and/or modify
#include <ginac/exprseq.h>
+namespace GiNaC {
+
/** Non-commutative product of expressions. */
class ncmul : public exprseq
{
ex nonsimplified_ncmul(exvector const & v);
ex simplified_ncmul(exvector const & v);
-#define ex_to_ncmul(X) static_cast<ncmul const &>(*(X).bp)
+// utility functions
+inline const ncmul &ex_to_ncmul(const ex &e)
+{
+ return static_cast <const ncmul &>(*e.bp);
+}
-#endif // ndef __GINAC_NCMUL_H__
+} // namespace GiNaC
+#endif // ndef __GINAC_NCMUL_H__