Description Usage Arguments Details Value Examples
Cast an R matrix as an fmlmat object, or create a skeleton
fmlmat object.
1 |
x |
A numeric R matrix/vector. Can be of integer or double type, or a
|
nrows, ncols |
The number of rows/columns for a skeleton matrix. |
type |
The fundamental type. Should be one of |
backend |
Should be one of |
Must pass either x (an R object to cast) or nrows/ncols,
but not both.
GPU data will use the defaults from fmlr::card(), and MPI data will
use the defaults from fmlr::grid(). If you need more control, you
should use the fmlr constructors and convert with craze::as_fmlmat().
An fmlmat class object.
1 2 3 4 5 | suppressMessages(library(craze))
x = matrix(as.double(1:6), 3)
x_cpu = fmlmat(x)
x_cpu
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.