onetensor: Creates a tensor with all entries 1

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Creates a tensor with all entries one.

Usage

1

Arguments

d

the dimensions of the new tensor

dn

the dimnames of the new tensor

Details

E_{i_1… i_n}=1

Value

A tensor with dim d and all elements one

Author(s)

K. Gerald van den Boogaart

See Also

to.tensor

Examples

1
one.tensor(c(a=3,b=3,c=3))

tensorA documentation built on May 30, 2017, 4:24 a.m.

Related to onetensor in tensorA...