+ bool minkowski; /**< If true, tensor is in Minkowski-type space. Otherwise it is in a Euclidean space. */
+ bool pos_sig; /**< If true, the metric is assumed to be diag(-1,1,1...). Otherwise it is diag(1,-1,-1,...). This is only relevant if minkowski = true. */
};
@@ -125,9+135,9 @@ inline const tensor &ex_to_tensor(const ex &e)
* @return newly constructed delta tensor */
ex delta_tensor(const ex & i1, const ex & i2);
-/** Create a metric tensor with specified indices. The indices must be of
- * class varidx or a subclass. A metric tensor with one covariant and one
- * contravariant index is equivalent to the delta tensor.
+/** Create a symmetric metric tensor with specified indices. The indices
+ * must be of class varidx or a subclass. A metric tensor with one
+ * covariant and one contravariant index is equivalent to the delta tensor.
*
* @param i1 First index
* @param i2 Second index
@@ -145,14+155,34 @@ ex metric_tensor(const ex & i1, const ex & i2);