Learn R Programming

stokes (version 1.2-1)

dovs: Dimension of the underlying vector space

Description

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.

Usage

dovs(K)

Value

Returns a non-negative integer

Arguments

K

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

Author

Robin K. S. Hankin

Examples

Run this code
dovs(rform())

table(replicate(20,dovs(rform(3))))  

Run the code above in your browser using DataLab