one.tensor {tensorA}R Documentation

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

Details

E_{i_1\ldots 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

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

[Package tensorA version 0.36.2.1 Index]