Flatten with boundary matrix

Changing the rhs matrix of the spectral parameterization impl to follow
the original paper.