conversion of F and S vector to matrix conversions