Function Repository Resource:

SumBasis

Source Notebook

Find a basis for the sum of a list of subspaces of ℝ^n

Contributed by: Dennis M Schneider

ResourceFunction["SumBasis"][list1,list2,]

returns a basis for the sum of the subspaces of spanned by list1,list2,….

Examples

Basic Examples (3) 

The sum of a 2D subspace and a 3D subspace of :

In[1]:=
ResourceFunction[
 "SumBasis"][{{1, 1, 1, 1}, {2, 2, 3, 4}}, {{2, 3, 4, 7}, {1, 0, 1, 0}, {0, 1, 0, 3}}]
Out[1]=

The sum of a subspace and a subspace of the subspace:

In[2]:=
ResourceFunction[
 "SumBasis"][{{1, 1, 1, 1}, {2, 2, 3, 4}}, {{3, 3, 5, 7}}]
Out[2]=

A sum of three subspaces:

In[3]:=
ResourceFunction[
 "SumBasis"][{{1, 1, 1, 1, 1}, {1, 2, 3, 4, 5}}, {{1, 0, 1, 0, 1}, {0,
    1, 0, 3, 1}}, {{1, 1, 1, 3, 2}, {2, 3, 4, 5, 6}}]
Out[3]=

Publisher

Dennis M Schneider

Version History

  • 1.0.0 – 19 September 2019

Related Resources

License Information