Learn R Programming

stokes (version 1.2-0)

dovs: Dimension of the underlying vector space

Description

A k-form ^k(V)omitted maps V^k to the reals, where V=R^nomitted. 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