Name

SPVM::R::OP::Matrix::DoubleComplex - Matrix Operations for R::NDArray::DoubleComplex

Description

R::OP::Matrix::DoubleComplex class in SPVM has methods for matrix operations for R::NDArray::DoubleComplex.

Usage

use R::OP::Matrix::DoubleComplex as MDCOP;

# $nrow * $ncol matrix. data field is [1+10i, 2+20i, 3+30i, 4+40i, 5+50i, 6+60i] by column major order.
my $nrow = 3;
my $ncol = 2;
my $ndarray = MDCOP->matrix([(double)1,10,  2,20,  3,30,  4,40,  5,50,  6,60], $nrow, $ncol);

Class Methods

matrix

static method matrix : R::NDArray::DoubleComplex ($data : object of double[]|Complex_2d[]|R::NDArray::DoubleComplex, $nrow : int, $ncol : int);

matrix_byrow

static method matrix_byrow : R::NDArray::DoubleComplex ($data : object of double[]|Complex_2d[]|R::NDArray::DoubleComplex, $nrow : int, $ncol : int);

cbind

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

rbind

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

diag

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

identity

static method identity : R::NDArray::DoubleComplex ($nrow : int);

mul

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

t

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

det

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

solve

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

eigen

static method eigen : R::NDArray::Hash ($x_ndarray : R::NDArray::DoubleComplex);

See Also

Copyright & License

Copyright (c) 2024 Yuki Kimoto

MIT License