Skip to main content

Subspace sum

Given two subspaces U and V, the sum subspace is spanned by the sum of one element of UU and another one of VV.


subspace_sum(Matrix, Matrix)


Given two matrices A and B with the vectors of the subspaces UU and VV respectively in columns, returns a matrix with a basis of the sum subspace.