Example 1.
First create a manifold and define a metric tensor .
Use to make a tensor density of weight 1.
Display the density type of rho1.
Example 2.
For indefinite metrics, the optional argument detmetric = -1 can be used to ensure that the metric density is real.
Example 3.
First create a rank 3 vector bundle over a two-dimensional manifold and define a metric tensor on the fibers of .
Use to make a tensor density of weight -1.
Display the density type of rho3.