]> www.ginac.de Git - ginac.git/blobdiff - ginac/tensor.h
* Supplement some (now deprecated) macros by inlined template functions:
[ginac.git] / ginac / tensor.h
index 5698b9b944450e44852b3571cb610dd0051b95ec..147ab44d9bf7f414d766c598d0f81ba95c5fed83 100644 (file)
@@ -137,6 +137,9 @@ private:
 
 
 // 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);