Description Usage Arguments Details Author(s) See Also Examples
Scalars: 0-forms and 0-tensors
1 2 3 4 5 6 7  | 
s | 
 A scalar value; a number  | 
M | 
 Object of class   | 
lose | 
 In function   | 
A k-tensor (including k-forms) maps k vectors to a
scalar.  If k=0, then a 0-tensor maps no vectors to a
scalar, that is, mapping nothing at all to a scalar, or what normal
people would call a plain old scalar.  Such forms are created by a
couple of constructions in the package, specifically scalar(),
kform_general(1,0) and contract().  These functions take a
lose argument that behaves much like the drop argument in
base extraction.
Function lose() takes an object of class ktensor or
kform and, if of arity zero, returns the coefficient.
Note that function kform() always returns a kform
object, it never loses attributes.
A 0-form is not the same thing as a zero tensor. A 0-form maps V^0 to the reals; a scalar. A zero tensor maps V^k to zero.
Robin K. S. Hankin
1 2 3 4 5 6  | o <- scalar(5)
o
lose(o)
kform_general(1,0)  
kform_general(1,0,lose=FALSE)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.