PHP Class MathPHP\LinearAlgebra\ColumnVector

[x₁] x = [x₂] [⋮ ] [xm]
Inheritance: extends Matrix
Show file Open project: markrogoyski/math-php

Public Methods

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

Method Details

__construct() public method

Allows the creation of a ColumnVector (m × 1 Matrix) from an array instead of an array of arrays.
public __construct ( array $M )
$M array 1-dimensional array of vector values

transpose() public method

[x₁]ᵀ [x₂] = [x₁ x₂ ⋯ xm] [⋮ ] [xm]
public transpose ( ) : RowVector
return RowVector