src/Alg/Math/Algebra/Matrix.php
public function transpose()
	{
		$array	= array();
		$rowNumber		= $this->getRowNumber();
		$columnNumber	= $this->getColumnNumber();
		for( $row = 0; $row < $rowNumber; $row++ )
			for( $column = 0; $column < $columnNumber; $column++ )
				$array[$column][$row]	= $this->values[$row][$column];
		$this->rowNumber	= $columnNumber;
		$this->columnNumber	= $rowNumber;
		$this->values		= $array;
	}
public function transpose()
	{
		$array	= array();
		$rowNumber		= $this->getRowNumber();
		$columnNumber	= $this->getColumnNumber();
		for( $row = 0; $row < $rowNumber; $row++ )
			for( $column = 0; $column < $columnNumber; $column++ )
				$array[$column][$row]	= $this->values[$row][$column];
		$this->rowNumber	= $columnNumber;
		$this->columnNumber	= $rowNumber;
		$this->values		= $array;
	}
public function transpose ( ) { $ array = array ( ) ; $ rowNumber = $ this -> getRowNumber ( ) ; $ columnNumber = $ this -> getColumnNumber ( ) ; for ( $ row = 0 ; $ row < $ rowNumber ; $ row ++ ) for ( $ column = 0 ; $ column < $ columnNumber ; $ column ++ ) $ array [ $ column ] [ $ row ] = $ this -> values [ $ row ] [ $ column ] ; $ this -> rowNumber = $ columnNumber ; $ this -> columnNumber = $ rowNumber ; $ this -> values = $ array ; }
Returns transposed Matrix.
@access		public
@return		Alg_Math_Algebra_Matrix
Returns transposed Matrix .