Exemplo n.º 1
0
 function testTranspose()
 {
     $data = array(array(1.0, 2.0), array(3.0, 4.0));
     $data_transposed = array(array(1.0, 3.0), array(2.0, 4.0));
     $p = new Math_Matrix($data);
     $p->transpose();
     $this->assertEquals($data_transposed, $p->getData());
 }