<< blkdiag | Elementary functions | ceil >> |
R = cast(V, type_destination) |
R = cast(V, 'like', W) |
a variable
a string: name of destination data type.
a variable
a variable with new data type.
cast converts variable to a different data type.
R = cast(V, 'like', W) converts varible V to sparsity and same data type than W.
r = cast([3.6 1.2 -2.4], 'like', int64(3))
r = cast([3.6 1.2 -2.4], 'int64')
Version | Description |
---|---|
1.0.0 | initial version |
Allan CORNET