onetensor: Creates a tensor with all entries 1

one.tensorR 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))

tensorA documentation built on June 25, 2024, 1:16 a.m.

Related to onetensor in tensorA...