PHP Class MathPHP\LinearAlgebra\RowVector

x = [x₁ x₂ ⋯ xn]
Inheritance: extends Matrix
Datei anzeigen Open project: markrogoyski/math-php

Public Methods

Method Description
__construct ( array $N ) Allows the creation of a RowVector (1 × n Matrix) from an array instead of an array of arrays.
transpose ( ) : ColumnVector Transpose The transpose of a row vector is a column vector

Method Details

__construct() public method

Allows the creation of a RowVector (1 × n Matrix) from an array instead of an array of arrays.
public __construct ( array $N )
$N array 1-dimensional array of vector values

transpose() public method

[x₁] [x₁ x₂ ⋯ xn]ᵀ = [x₂] [⋮ ] [xn]
public transpose ( ) : ColumnVector
return ColumnVector