Skip to content

Samsara\Fermat\LinearAlgebra\Values > ImmutableMatrix

No description available

Inheritance

Extends

  • Samsara\Fermat\LinearAlgebra\Types\Matrix

Implements

MatrixInterface

MatrixInterface
namespace
Samsara\Fermat\LinearAlgebra\Types\Base\Interfaces\Groups
description

No description available

Variables & Data

Class Constants

ImmutableMatrix::MODE_ROWS_INPUT

MODE_ROWS_INPUT
value
'rows'

ImmutableMatrix::MODE_COLUMNS_INPUT

MODE_COLUMNS_INPUT
value
'columns'

Methods

Constructor

public Matrix->__construct(NumberCollection[] $data, string $mode)

__construct

$data

type
NumberCollection[]
description
No description available

$mode

type
string
description
No description available

return

type
mixed (assumed)
description
No description available
__construct() Description:

Matrix constructor. The array of number collections can be an array of rows, or an array of columns. Default is rows.


Inherited Methods

public Matrix->getDeterminant()

getDeterminant

return

type
Samsara\Fermat\Core\Values\ImmutableDecimal
description
No description available

public Matrix->getInverseMatrix()

getInverseMatrix

return

type
static
description
No description available

public Matrix->getMatrixOfMinors()

getMatrixOfMinors

return

type
static
description
No description available

public Matrix->add(MatrixInterface $value)

add

$value

type
MatrixInterface
description

return

type
static
description
No description available

public Matrix->addScalarAsI(Number $value)

addScalarAsI

$value

type
Number
description

return

type
static
description
No description available
addScalarAsI() Description:

This function takes an input scalar value and multiplies an identity matrix by that scalar, then does matrix addition with the resulting matrix.


public Matrix->addScalarAsJ(Number $value)

addScalarAsJ

$value

type
Number
description

return

type
static
description
No description available
addScalarAsJ() Description:

This function takes a scalar input value and adds that value to each position in the matrix directly.


public Matrix->applyAlternatingSigns()

applyAlternatingSigns

return

type
static
description
No description available

public Matrix->childMatrix(int $excludeRow, int $excludeColumn, bool $forceNewMatrix)

childMatrix

$excludeRow

type
int
description
No description available

$excludeColumn

type
int
description
No description available

$forceNewMatrix

type
bool
description

return

type
static
description
No description available
childMatrix() Description:

This function returns a subset of the current matrix as a new matrix with one row and one column removed from the dataset.


public Matrix->mapFuction(callable $fn)

mapFuction

$fn

type
callable
description

return

type
static
description
No description available

public Matrix->multiply($value)

multiply

$value

description

return

type
static
description
No description available

public Matrix->subtract(MatrixInterface $value)

subtract

$value

type
MatrixInterface
description

return

type
static
description
No description available

public Matrix->subtractScalarAsI(Decimal $value)

subtractScalarAsI

$value

type
Decimal
description

return

type
static
description
No description available

public Matrix->subtractScalarAsJ(Decimal $value)

subtractScalarAsJ

$value

type
Decimal
description

return

type
static
description
No description available

public Matrix->getAdjoint()

getAdjoint

return

type
static
description
No description available

public Matrix->getAdjugate()

getAdjugate

return

type
static
description
No description available

public Matrix->getColumn(int $column)

getColumn

$column

type
int
description

return

type
Samsara\Fermat\Core\Types\NumberCollection
description
No description available

public Matrix->getColumnCount()

getColumnCount

return

type
int
description
No description available

public Matrix->getRow(int $row)

getRow

$row

type
int
description

return

type
Samsara\Fermat\Core\Types\NumberCollection
description
No description available

public Matrix->getRowCount()

getRowCount

return

type
int
description
No description available

public Matrix->isSquare()

isSquare

return

type
bool
description
No description available

public Matrix->rotate(bool $clockwise)

rotate

$clockwise

type
bool
description

return

type
static
description
No description available

public Matrix->transpose()

transpose

return

type
static
description
No description available

public Matrix->popColumn()

popColumn

return

type
Samsara\Fermat\Core\Types\NumberCollection
description
No description available

public Matrix->popRow()

popRow

return

type
Samsara\Fermat\Core\Types\NumberCollection
description
No description available

public Matrix->pushColumn(NumberCollection $column)

pushColumn

$column

type
NumberCollection
description

return

type
static
description
No description available

public Matrix->pushRow(NumberCollection $row)

pushRow

$row

type
NumberCollection
description

return

type
static
description
No description available

public Matrix->shiftColumn()

shiftColumn

return

type
Samsara\Fermat\Core\Types\NumberCollection
description
No description available

public Matrix->shiftRow()

shiftRow

return

type
Samsara\Fermat\Core\Types\NumberCollection
description
No description available

public Matrix->unshiftColumn(NumberCollection $column)

unshiftColumn

$column

type
NumberCollection
description

return

type
static
description
No description available

public Matrix->unshiftRow(NumberCollection $row)

unshiftRow

$row

type
NumberCollection
description

return

type
static
description
No description available