new post on creating as and wrap for sparse matrices