Name

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

Description

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

Usage

use R::OP::Matrix::Double as MDOP;

my $nrow = 3;
my $ncol = 2;
my $ndarray = MDOP->matrix([(double)1, 2, 3, 4, 5, 6], $nrow, $ncol);

Class Methods

matrix

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

matrix_byrow

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

cbind

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

rbind

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

diag

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

slice_diag

static method slice_diag : R::NDArray::Double ($x_ndarray : R::NDArray::Double);

identity

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

mul

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

t

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

det

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

solve

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

eigen

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

See Also

Copyright & License

Copyright (c) 2024 Yuki Kimoto

MIT License