Name
SPVM::R::Util - Utilities for N-Dimensional Array
Description
The R::Util class in SPVM has utility methods for n-dimensional array.
Usage
use R::Util;
Class Methods
calc_data_length
static method calc_data_length : int ($dim : int[]);
normalize_dim
static method normalize_dim : int[] ($dim : int[]);
check_length
static method check_length : void ($data : object, $dim : int[]);
drop_dim
static method drop_dim : int[] ($dim : int[], $index : int = -1);
expand_dim
static method expand_dim : int[] ($dim : int[], $index : int = -1);
equals_dim
static method equals_dim : int ($x_dim : int[], $y_dim : int[]);
equals_dropped_dim
static method equals_dropped_dim : int ($x_dim : int[], $y_dim : int[]);
Copyright & License
Copyright (c) 2024 Yuki Kimoto
MIT License