* Interface to GiNaC's special tensors. */
/*
- * GiNaC Copyright (C) 1999-2001 Johannes Gutenberg University Mainz, Germany
+ * GiNaC Copyright (C) 1999-2002 Johannes Gutenberg University Mainz, Germany
*
* 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
// other constructors
protected:
- tensor(unsigned ti);
+ tensor(unsigned ti) : inherited(ti) {}
// functions overriding virtual functions from base classes
protected:
// utility functions
-/** Return the tensor object handled by an ex. Deprecated: use ex_to<tensor>().
- * This is unsafe: you need to check the type first. */
-inline const tensor &ex_to_tensor(const ex &e)
-{
- return static_cast<const tensor &>(*e.bp);
-}
-
/** Create a delta tensor with specified indices. The indices must be of class
* idx or a subclass. The delta tensor is always symmetric and its trace is
* the dimension of the index space.