WLJS LogoWLJS Notebook

HodgeDual

HodgeDual[tensor] gives the Hodge dual of the tensor.

HodgeDual[tensor, dim] dualizes tensor in the slots with dimension dim.

Examples

Hodge dual in 3D:

HodgeDual[{a, b, c}]
(* {{0, c, -b}, {-c, 0, a}, {b, -a, 0}} *)

Dual of a 2-form:

HodgeDual[{{0, 1}, {-1, 0}}]

Please visit the official Wolfram Language Reference for more details.

On this page