hodge: Hodge star operator

Description Usage Arguments Value Author(s) See Also Examples

Description

Given a k-form, return its Hodge dual

Usage

1
hodge(K, n=max(index(K)), g=rep(1,n), lose=TRUE)

Arguments

K

Object of class kform

n

Dimensionality of space, defaulting the the largest element of the index

g

Diagonal of the metric tensor, defaulting to the standard metric

lose

Boolean, with default TRUE meaning to coerce to a scalar if appropriate

Value

Returns a (n-k)-form

Author(s)

Robin K. S. Hankin

See Also

wedge

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
hodge(rform())

hodge(kform_general(4,2),g=c(-1,1,1,1))


## Some edge-cases:
hodge(zero(5),9)
hodge(volume(5))
hodge(volume(5),lose=TRUE)
hodge(scalar(7),n=9)

wedge documentation built on Sept. 4, 2019, 9:02 a.m.