Name
SPVM::R::OP::FloatComplex - N-Dimensional Array Operations for R::NDArray::FloatComplex
Description
The R::OP::FloatComplex class in SPVM has methods for n-dimensional array operations for R::NDArray::FloatComplex.
Usage
use R::OP::FloatComplex as FCOP;
# 1+10i
my $ndarray_scalar = FCOP->c([(float)1,10]);
# 1+10i, 2+20i, 3+30i
my $ndarray_vector = FCOP->c([(float)1,10, 2,20, 3,30]);
my $ndarray = FCOP->c([(float)1,10, 2,20, 3,30, 4,40, 5,50, 6,60], [3, 2]);
my $ndarray2 = FCOP->c($ndarray);
Class Methods
c
static method c : R::NDArray::FloatComplex ($data : object of float[]|Complex_2f[]|R::NDArray::FloatComplex, $dim : int[] = undef);
add
static method add : R::NDArray::FloatComplex ($x_ndarray : R::NDArray::FloatComplex, $y_ndarray : R::NDArray::FloatComplex);
sub
static method sub : R::NDArray::FloatComplex ($x_ndarray : R::NDArray::FloatComplex, $y_ndarray : R::NDArray::FloatComplex);
mul
static method mul : R::NDArray::FloatComplex ($x_ndarray : R::NDArray::FloatComplex, $y_ndarray : R::NDArray::FloatComplex);
scamul
static method scamul : R::NDArray::FloatComplex ($x_ndarray : R::NDArray::FloatComplex, $scalar_ndarray : R::NDArray::FloatComplex);
div
static method div : R::NDArray::FloatComplex ($x_ndarray : R::NDArray::FloatComplex, $y_ndarray : R::NDArray::FloatComplex);
scadiv
static method scadiv : R::NDArray::FloatComplex ($x_ndarray : R::NDArray::FloatComplex, $scalar_ndarray : R::NDArray::FloatComplex);
neg
static method neg : R::NDArray::FloatComplex ($x_ndarray : R::NDArray::FloatComplex);
abs
static method abs : R::NDArray::FloatSPVM::R::NDArray::Float ($x_ndarray : R::NDArray::FloatComplex);
re
static method re : R::NDArray::FloatSPVM::R::NDArray::Float ($x_ndarray : R::NDArray::FloatComplex);
im
static method im : R::NDArray::FloatSPVM::R::NDArray::Float ($x_ndarray : R::NDArray::FloatComplex);
i
static method i : R::NDArray::FloatComplex ();
conj
static method conj : R::NDArray::FloatComplex ($x_ndarray : R::NDArray::FloatComplex);
arg
static method arg : R::NDArray::FloatSPVM::R::NDArray::Float ($x_ndarray : R::NDArray::FloatComplex);
eq
static method eq : R::NDArray::Int ($x_ndarray : R::NDArray::FloatComplex, $y_ndarray : R::NDArray::FloatComplex);
ne
static method ne : R::NDArray::Int ($x_ndarray : R::NDArray::FloatComplex, $y_ndarray : R::NDArray::FloatComplex);
rep
static method rep : R::NDArray::FloatComplex ($x_ndarray : R::NDArray::FloatComplex, $times : int);
rep_length
static method rep_length : R::NDArray::FloatComplex ($x_ndarray : R::NDArray::FloatComplex, $length : int);
sin
static method sin : R::NDArray::FloatComplex ($x_ndarray : R::NDArray::FloatComplex);
cos
static method cos : R::NDArray::FloatComplex ($x_ndarray : R::NDArray::FloatComplex);
tan
static method tan : R::NDArray::FloatComplex ($x_ndarray : R::NDArray::FloatComplex);
sinh
static method sinh : R::NDArray::FloatComplex ($x_ndarray : R::NDArray::FloatComplex);
cosh
static method cosh : R::NDArray::FloatComplex ($x_ndarray : R::NDArray::FloatComplex);
tanh
static method tanh : R::NDArray::FloatComplex ($x_ndarray : R::NDArray::FloatComplex);
acos
static method acos : R::NDArray::FloatComplex ($x_ndarray : R::NDArray::FloatComplex);
asin
static method asin : R::NDArray::FloatComplex ($x_ndarray : R::NDArray::FloatComplex);
atan
static method atan : R::NDArray::FloatComplex ($x_ndarray : R::NDArray::FloatComplex);
asinh
static method asinh : R::NDArray::FloatComplex ($x_ndarray : R::NDArray::FloatComplex);
acosh
static method acosh : R::NDArray::FloatComplex ($x_ndarray : R::NDArray::FloatComplex);
atanh
static method atanh : R::NDArray::FloatComplex ($x_ndarray : R::NDArray::FloatComplex);
exp
static method exp : R::NDArray::FloatComplex ($x_ndarray : R::NDArray::FloatComplex);
log
static method log : R::NDArray::FloatComplex ($x_ndarray : R::NDArray::FloatComplex);
sqrt
static method sqrt : R::NDArray::FloatComplex ($x_ndarray : R::NDArray::FloatComplex);
pow
static method pow : R::NDArray::FloatComplex ($x_ndarray : R::NDArray::FloatComplex, $y_ndarray : R::NDArray::FloatComplex);
sum
static method sum : R::NDArray::FloatComplex ($x_ndarray : R::NDArray::FloatComplex);
cumsum
static method cumsum : R::NDArray::FloatComplex ($x_ndarray : R::NDArray::FloatComplex);
prod
static method prod : R::NDArray::FloatComplex ($x_ndarray : R::NDArray::FloatComplex);
cumprod
static method cumprod : R::NDArray::FloatComplex ($x_ndarray : R::NDArray::FloatComplex);
diff
static method diff : R::NDArray::FloatComplex ($x_ndarray : R::NDArray::FloatComplex);
mean
static method mean : R::NDArray::FloatComplex ($x_ndarray : R::NDArray::FloatComplex);
dot
static method dot : R::NDArray::FloatComplex ($x_ndarray : R::NDArray::FloatComplex, $y_ndarray : R::NDArray::FloatComplex);
cross
static method cross : R::NDArray::FloatComplex ($x_ndarray : R::NDArray::FloatComplex, $y_ndarray : R::NDArray::FloatComplex);
outer
static method outer : R::NDArray::FloatComplex ($x_ndarray : R::NDArray::FloatComplex, $y_ndarray : R::NDArray::FloatComplex);
pi
static method pi : R::NDArray::FloatComplex ();
See Also
Copyright & License
Copyright (c) 2024 Yuki Kimoto
MIT License