Name

SPVM::R::OP::Short - N-Dimensional Array Operations for R::NDArray::Short

Description

The R::OP::Short class in SPVM has methods for n-dimensional array operations for R::NDArray::Short.

Usage

use R::OP::Short as SOP;

my $ndarray_scalar = SOP->c((short)1);

my $ndarray_vector = SOP->c([(short)1, 2, 3]);

my $ndarray = SOP->c([(short)1, 2, 3, 4, 5, 6], [3, 2]);

my $ndarray2 = SOP->c($ndarray);

Class Methods

c

static method c : R::NDArray::Short ($data : object of Short|short[]|R::NDArray::Short, $dim : int[] = undef);

rep

static method rep : R::NDArray::Short ($x_ndarray : R::NDArray::Short, $times : int);

rep_length

static method rep_length : R::NDArray::Short ($x_ndarray : R::NDArray::Short, $length : int);

seq

static method seq : R::NDArray::Short ($begin : short, $end : short, $by : short = 1);

See Also

Copyright & License

Copyright (c) 2024 Yuki Kimoto

MIT License