Name
SPVM::R::OP::Byte - N-Dimensional Array Operations for R::NDArray::Byte
Description
The R::OP::Byte class in SPVM has methods for n-dimensional array operations for R::NDArray::Byte.
Usage
use R::OP::Byte as BOP;
my $ndarray_scalar = BOP->c((byte)1);
my $ndarray_vector = BOP->c([(byte)1, 2, 3]);
my $ndarray = BOP->c([(byte)1, 2, 3, 4, 5, 6], [3, 2]);
my $ndarray2 = BOP->c($ndarray);
Class Methods
c
static method c : R::NDArray::Byte ($data : object of Byte|byte[]|R::NDArray::Byte, $dim : int[] = undef);
rep
static method rep : R::NDArray::Byte ($x_ndarray : R::NDArray::Byte, $times : int);
rep_length
static method rep_length : R::NDArray::Byte ($x_ndarray : R::NDArray::Byte, $length : int);
seq
static method seq : R::NDArray::Byte ($begin : byte, $end : byte, $by : byte = 1);
See Also
Copyright & License
Copyright (c) 2024 Yuki Kimoto
MIT License