Name
SPVM::R::OP::Matrix::FloatComplex - Matrix Operations for R::NDArray::FloatComplex
Description
R::OP::Matrix::FloatComplex class in SPVM has methods for matrix operations for R::NDArray::FloatComplex.
Usage
use R::OP::Matrix::FloatComplex as MFCOP;
# $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 = MFCOP->matrix([(float)1,10, 2,20, 3,30, 4,40, 5,50, 6,60], $nrow, $ncol);
Class Methods
matrix
static method matrix : R::NDArray::FloatComplex ($data : object of float[]|Complex_2f[]|R::NDArray::FloatComplex, $nrow : int, $ncol : int);
matrix_byrow
static method matrix_byrow : R::NDArray::FloatComplex ($data : object of float[]|Complex_2f[]|R::NDArray::FloatComplex, $nrow : int, $ncol : int);
cbind
static method cbind : R::NDArray::FloatComplex ($x_ndarray : R::NDArray::FloatComplex, $y_ndarray : R::NDArray::FloatComplex);
rbind
static method rbind : R::NDArray::FloatComplex ($x_ndarray : R::NDArray::FloatComplex, $y_ndarray : R::NDArray::FloatComplex);
diag
static method diag : R::NDArray::FloatComplex ($x_ndarray : R::NDArray::FloatComplex);
identity
static method identity : R::NDArray::FloatComplex ($nrow : int);
mul
static method mul : R::NDArray::FloatComplex ($x_ndarray : R::NDArray::FloatComplex, $y_ndarray : R::NDArray::FloatComplex);
t
static method t : R::NDArray::FloatComplex ($x_ndarray : R::NDArray::FloatComplex);
det
static method det : R::NDArray::FloatComplex ($x_ndarray : R::NDArray::FloatComplex);
solve
static method solve : R::NDArray::FloatComplex ($x_ndarray : R::NDArray::FloatComplex);
eigen
static method eigen : R::NDArray::Hash ($x_ndarray : R::NDArray::FloatComplex);
See Also
Copyright & License
Copyright (c) 2024 Yuki Kimoto
MIT License