Name
SPVM::R::OP::StringBuffer - N-Dimensional Array Operations for R::NDArray::StringBuffer
Description
The R::OP::StringBuffer class in SPVM has methods for n-dimensional array operations for R::NDArray::StringBuffer.
Usage
use R::OP::StringBuffer as BUFOP;
my $data = [
StringBuffer->new("a"),
StringBuffer->new("b"),
StringBuffer->new("c"),
StringBuffer->new("d"),
StringBuffer->new("e"),
StringBuffer->new("f")
];
my $ndarray_scalar = BUFOP->c(StringBuffer->new("a"));
my $ndarray_vector = BUFOP->c($data);
my $ndarray = BUFOP->c($data, [3, 2]);
my $ndarray2 = BUFOP->c($ndarray);
Class Methods
c
static method c : R::NDArray::StringBuffer ($data : object of StringBuffer|StringBuffer[]|R::NDArray::StringBuffer, $dim : int[] = undef);
push
static method push : void ($x_ndarray : R::NDArray::StringBuffer, $y_ndarray : R::NDArray::String);
eq
static method eq : R::NDArray::Int ($x_ndarray : R::NDArray::StringBuffer, $y_ndarray : R::NDArray::StringBuffer);
ne
static method ne : R::NDArray::Int ($x_ndarray : R::NDArray::StringBuffer, $y_ndarray : R::NDArray::StringBuffer);
gt
static method gt : R::NDArray::Int ($x_ndarray : R::NDArray::StringBuffer, $y_ndarray : R::NDArray::StringBuffer);
ge
static method ge : R::NDArray::Int ($x_ndarray : R::NDArray::StringBuffer, $y_ndarray : R::NDArray::StringBuffer);
lt
static method lt : R::NDArray::Int ($x_ndarray : R::NDArray::StringBuffer, $y_ndarray : R::NDArray::StringBuffer);
le
static method le : R::NDArray::Int ($x_ndarray : R::NDArray::StringBuffer, $y_ndarray : R::NDArray::StringBuffer);
rep
static method rep : R::NDArray::StringBuffer ($x_ndarray : R::NDArray::StringBuffer, $times : int);
rep_length
static method rep_length : R::NDArray::StringBuffer ($x_ndarray : R::NDArray::StringBuffer, $length : int);
See Also
Copyright & License
Copyright (c) 2024 Yuki Kimoto
MIT License