tensorA (version 0.36.2.1)

one.tensor: Creates a tensor with all entries 1

Description

Creates a tensor with all entries one.

Usage

one.tensor(d=NULL,dn=NULL)

Value

A tensor with dim d and all elements one

Arguments

d

the dimensions of the new tensor

dn

the dimnames of the new tensor

Author

K. Gerald van den Boogaart

Details

$$E_{i_1\ldots i_n}=1$$

See Also

to.tensor

Examples

Run this code
one.tensor(c(a=3,b=3,c=3))

Run the code above in your browser using DataLab