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

The tensor is repeated like a number is repeated by rep and an additional dimension is added to select the different tensors.

1 2 |

`x` |
the tensor to be repeated |

`times` |
the number of copies that should be created. If |

`name` |
the name of the additional dimension. if NA no additional dimension is used. |

`pos` |
the position where the extra dimension should be added |

`...` |
not used, only here for generic consistency |

This function is modeled as much as possible to mimic rep, by
repeating tensors rather than numbers. The
`each`

argument is not necessary, since sequence of the dimensions
can more precisely be controlled by pos. Another problem is the a
ambiguity between `rep(x,3)`

and `rep(x,c(3))`

as a special
case of rep(x,c(3,2)). If the second is wanted it can be forced by
`rep(x,c(3),NA)`

through setting the name argument to NA.

A tensor with one additional dimensions of length times.

K. Gerald van den Boogaart

1 2 3 4 5 6 |

tensorA documentation built on July 29, 2018, 5:01 p.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.