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

Coerces a array to a tensor keeping dimension and names.

1 2 3 4 5 |

`X` |
a multidimensional array |

`...` |
further generic arguments |

`dims` |
the new dim attribute to be used |

The main idea is that a multiway array like a vector or a matrix is
nothing else than a tensor for R, but it still needs the tensor class
be used with the tensorA library. However this is more a convenience
function for
migraters than a proper way construct a tensor, which is done by
`to.tensor`

.

a tensor containing the same data as X

You should typically use the `to.tensor`

to generate a
tensor, when you want to write vectorizable functions for tensors.

K. Gerald van den Boogaart

1 2 |

tensorA documentation built on May 20, 2017, 2:07 a.m.

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.

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.