/** @file matrix.h
*
- * Interface to symbolic matrices
- *
+ * Interface to symbolic matrices */
+
+/*
* GiNaC Copyright (C) 1999 Johannes Gutenberg University Mainz, Germany
*
* This program is free software; you can redistribute it and/or modify
#include <ginac/basic.h>
#include <ginac/ex.h>
+namespace GiNaC {
+
/** 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))
+} // namespace GiNaC
#endif // ndef __GINAC_MATRIX_H__