optimized Matrix calculation for Flump frames