columnspace(a)

Returns a matrix such that its columns span the column space of matrix a.


Example


a = ( 1, 2, 3 ; 4, 5, 6 ; 7, 8, 9 )

1  2  3

4  5  6

7  8  9

columnspace( a )

 1  0

 0  1

-1  2