rform: Random kforms and ktensors

Description Usage Arguments Details Author(s) Examples

Description

Random k-form objects and k-tensors, intended as quick “get you going” examples

Usage

1
2
rform(terms=9,k=3,n=7,coeffs)
rtensor(terms=9,k=3,n=7,coeffs)

Arguments

terms

Number of distinct terms

k,n

A k-form maps V^k to R, where V=R^n

coeffs

The coefficients of the form; if missing use 1 (inherited from spray())

Details

What you see is what you get, basically.

Note that argument terms is an upper bound, as the index matrix might contain repeats. But coeffs should have length equal to terms (or 1).

Author(s)

Robin K. S. Hankin

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
rform()
rform(coeffs=1:9)   # any repeated rows are combined

dx <- as.kform(1)
dy <- as.kform(2)
rform() %^% dx
rform() %^% dx %^% dy


rtensor()

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