Description Usage Arguments Note Author(s) See Also Examples
Correct idiom for generating zero k-tensors and k-forms
1 2 | zeroform(n)
zerotensor(n)
|
n |
Arity of the k-form or k-tensor |
Idiom such as as.ktensor(rep(1,n),0)
and
as.kform(rep(1,5),0)
and indeed as.kform(1:5,0)
is
incorrect as the arity of the tensor is lost.
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 7 8 | as.ktensor(1+diag(5)) + zerotensor(5)
as.kform(matrix(1:6,2,3)) + zeroform(3)
## Not run:
as.ktensor(1+diag(5)) + as.ktensor(rep(1,5),0) # fails
as.kform(matrix(1:6,2,3)) + as.kform(1:3,0) # also fails
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.