write sparse float matrix