rform: Random kforms and ktensors

rformR Documentation

Random kforms and ktensors

Description

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

Usage

rform(terms=9,k=3,n=7,coeffs,ensure=TRUE)
rtensor(terms=9,k=3,n=7,coeffs)

Arguments

terms

Number of distinct terms

k, n

A k-form maps V^k to \mathbb{R}, where V=\mathbb{R}^n

coeffs

The coefficients of the form; if missing use seq_len(terms)

ensure

Boolean with default TRUE meaning to ensure that the dovs() of the returned value is in fact equal to n. If FALSE, sometimes the dovs() is strictly less than n because of random sampling

Details

What you see is what you get, basically.

Note that argument terms is an upper bound, as the index matrix might contain repeats which are combined.

Value

All functions documented here return an object of class kform or ktensor.

Author(s)

Robin K. S. Hankin

Examples


rform()
rform() ^ rform()

rtensor() %X% rtensor()

rform() ^ dx
rform() ^ dx ^ dy


stokes documentation built on June 22, 2024, 11:56 a.m.