rform: Random kforms and ktensors

rformR Documentation

Random kforms and ktensors

Description

\loadmathjax

Random \mjseqnk-form objects and \mjseqnk-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 \mjseqnk-form maps \mjseqnV^k to \mjseqnR, where \mjseqnV=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 Aug. 19, 2023, 1:07 a.m.