A \(k\)-form \(\omega\in\Lambda^k(V)\) maps \(V^k\) to the reals, where \(V=\mathbb{R}^n\). Function dovs() returns \(n\), the dimensionality of the underlying vector space. The function itself is almost trivial, returning the maximum of the index matrix.

Special dispensation is given for zero-forms and zero tensors, which return zero.

Vignette dovs provides more discussion.

dovs(K)

Arguments

K

A \(k\)-form or \(k\)-tensor

Value

Returns a non-negative integer

Author

Robin K. S. Hankin

Examples

dovs(rform())
#> [1] 7

table(replicate(20,dovs(rform(3))))  
#> 
#>  5  7 
#>  1 19