Name

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

Description

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

Usage

use R::OP::DoubleComplex as DCOP;

# 1+10i
my $ndarray_scalar = DCOP->c([(double)1,10]);

# 1+10i, 2+20i, 3+30i
my $ndarray_vector = DCOP->c([(double)1,10,  2,20,  3,30]);

my $ndarray = DCOP->c([(double)1,10,  2,20,  3,30,  4,40,  5,50,  6,60], [3, 2]);

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

Class Methods

c

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

add

static method add : R::NDArray::DoubleComplex ($x_ndarray : R::NDArray::DoubleComplex, $y_ndarray : R::NDArray::DoubleComplex);

sub

static method sub : R::NDArray::DoubleComplex ($x_ndarray : R::NDArray::DoubleComplex, $y_ndarray : R::NDArray::DoubleComplex);

mul

static method mul : R::NDArray::DoubleComplex ($x_ndarray : R::NDArray::DoubleComplex, $y_ndarray : R::NDArray::DoubleComplex);

scamul

static method scamul : R::NDArray::DoubleComplex ($x_ndarray : R::NDArray::DoubleComplex, $scalar_ndarray : R::NDArray::DoubleComplex);

div

static method div : R::NDArray::DoubleComplex ($x_ndarray : R::NDArray::DoubleComplex, $y_ndarray : R::NDArray::DoubleComplex);

scadiv

static method scadiv : R::NDArray::DoubleComplex ($x_ndarray : R::NDArray::DoubleComplex, $scalar_ndarray : R::NDArray::DoubleComplex);

neg

static method neg : R::NDArray::DoubleComplex ($x_ndarray : R::NDArray::DoubleComplex);

abs

static method abs : R::NDArray::DoubleSPVM::R::NDArray::Double ($x_ndarray : R::NDArray::DoubleComplex);

re

static method re : R::NDArray::DoubleSPVM::R::NDArray::Double ($x_ndarray : R::NDArray::DoubleComplex);

im

static method im : R::NDArray::DoubleSPVM::R::NDArray::Double ($x_ndarray : R::NDArray::DoubleComplex);

i

static method i : R::NDArray::DoubleComplex ();

conj

static method conj : R::NDArray::DoubleComplex ($x_ndarray : R::NDArray::DoubleComplex);

arg

static method arg : R::NDArray::DoubleSPVM::R::NDArray::Double ($x_ndarray : R::NDArray::DoubleComplex);

eq

static method eq : R::NDArray::Int ($x_ndarray : R::NDArray::DoubleComplex, $y_ndarray : R::NDArray::DoubleComplex);

ne

static method ne : R::NDArray::Int ($x_ndarray : R::NDArray::DoubleComplex, $y_ndarray : R::NDArray::DoubleComplex);

rep

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

rep_length

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

sin

static method sin : R::NDArray::DoubleComplex ($x_ndarray : R::NDArray::DoubleComplex);

cos

static method cos : R::NDArray::DoubleComplex ($x_ndarray : R::NDArray::DoubleComplex);

tan

static method tan : R::NDArray::DoubleComplex ($x_ndarray : R::NDArray::DoubleComplex);

sinh

static method sinh : R::NDArray::DoubleComplex ($x_ndarray : R::NDArray::DoubleComplex);

cosh

static method cosh : R::NDArray::DoubleComplex ($x_ndarray : R::NDArray::DoubleComplex);

tanh

static method tanh : R::NDArray::DoubleComplex ($x_ndarray : R::NDArray::DoubleComplex);

acos

static method acos : R::NDArray::DoubleComplex ($x_ndarray : R::NDArray::DoubleComplex);

asin

static method asin : R::NDArray::DoubleComplex ($x_ndarray : R::NDArray::DoubleComplex);

atan

static method atan : R::NDArray::DoubleComplex ($x_ndarray : R::NDArray::DoubleComplex);

asinh

static method asinh : R::NDArray::DoubleComplex ($x_ndarray : R::NDArray::DoubleComplex);

acosh

static method acosh : R::NDArray::DoubleComplex ($x_ndarray : R::NDArray::DoubleComplex);

atanh

static method atanh : R::NDArray::DoubleComplex ($x_ndarray : R::NDArray::DoubleComplex);

exp

static method exp : R::NDArray::DoubleComplex ($x_ndarray : R::NDArray::DoubleComplex);

log

static method log : R::NDArray::DoubleComplex ($x_ndarray : R::NDArray::DoubleComplex);

sqrt

static method sqrt : R::NDArray::DoubleComplex ($x_ndarray : R::NDArray::DoubleComplex);

pow

static method pow : R::NDArray::DoubleComplex ($x_ndarray : R::NDArray::DoubleComplex, $y_ndarray : R::NDArray::DoubleComplex);

sum

static method sum : R::NDArray::DoubleComplex ($x_ndarray : R::NDArray::DoubleComplex);

cumsum

static method cumsum : R::NDArray::DoubleComplex ($x_ndarray : R::NDArray::DoubleComplex);

prod

static method prod : R::NDArray::DoubleComplex ($x_ndarray : R::NDArray::DoubleComplex);

cumprod

static method cumprod : R::NDArray::DoubleComplex ($x_ndarray : R::NDArray::DoubleComplex);

diff

static method diff : R::NDArray::DoubleComplex ($x_ndarray : R::NDArray::DoubleComplex);

mean

static method mean : R::NDArray::DoubleComplex ($x_ndarray : R::NDArray::DoubleComplex);

dot

static method dot : R::NDArray::DoubleComplex ($x_ndarray : R::NDArray::DoubleComplex, $y_ndarray : R::NDArray::DoubleComplex);

cross

static method cross : R::NDArray::DoubleComplex ($x_ndarray : R::NDArray::DoubleComplex, $y_ndarray : R::NDArray::DoubleComplex);

outer

static method outer : R::NDArray::DoubleComplex ($x_ndarray : R::NDArray::DoubleComplex, $y_ndarray : R::NDArray::DoubleComplex);

pi

static method pi : R::NDArray::DoubleComplex ();

See Also

Copyright & License

Copyright (c) 2024 Yuki Kimoto

MIT License