#include <ginac/basic.h>
#include <ginac/ex.h>
+#ifndef NO_GINAC_NAMESPACE
+namespace GiNaC {
+#endif // ndef NO_GINAC_NAMESPACE
+
/** Symbolic matrices. */
class matrix : public basic
{
inline matrix inverse(matrix const & m)
{ return m.inverse(); }
-// macros
+// utility functions
+inline const matrix &ex_to_matrix(const ex &e)
+{
+ return static_cast<const matrix &>(*e.bp);
+}
-#define ex_to_matrix(X) (static_cast<matrix const &>(*(X).bp))
+#ifndef NO_GINAC_NAMESPACE
+} // namespace GiNaC
+#endif // ndef NO_GINAC_NAMESPACE
#endif // ndef __GINAC_MATRIX_H__