the source code implement MP decomposition and reconstruction for 1-d signals.