Name

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

Description

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

Usage

use R::OP::Matrix::Float as MFOP;

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

Class Methods

matrix

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

matrix_byrow

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

cbind

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

rbind

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

diag

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

identity

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

mul

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

t

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

det

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

solve

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

eigen

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

See Also

Copyright & License

Copyright (c) 2024 Yuki Kimoto

MIT License