SyTen

◆ intersection()

SBasis syten::STensorImpl::intersection ( SBasis const &  a,
SBasis const &  b 
)

Returns the intersection of two bases.

All blocks which are contained in both bases are added to the result basis. The two bases have to have the same direction and, if a block is contained in both, that block needs to have the same size in both.

References syten::STensorImpl::SBasis::add(), syten::STensorImpl::SBasis::dir(), and SYTEN_ASSERT.

Referenced by project().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: