jason-s...@creativetrax.com wrote:

 

>
> I wrote an orthogonal complement function a long time ago; I'm surprised 
> to not be able to find it in Sage now.  I thought it was merged in at 
> least a year ago.
>
>
>   

Here's a quick shot at one, using the fact that the orthogonal 
complement of the row space is the right kernel.

sage: def orthogonal_complement(space):
....:     if space.dimension()==0:
....:         return space.ambient_vector_space()
....:     else:
....:         return space.basis_matrix().right_kernel()



Thanks,

Jason

--

You received this message because you are subscribed to the Google Groups 
"sage-edu" group.
To post to this group, send email to sage-...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sage-edu?hl=.


Reply via email to