tensorA (version 0.36.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)

Arguments

d

the dimensions of the new tensor

dn

the dimnames of the new tensor

Value

A tensor with dim d and all elements one

Details

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

See Also

to.tensor

Examples

Run this code
# NOT RUN {
one.tensor(c(a=3,b=3,c=3))
# }

Run the code above in your browser using DataLab