Does not infer type if already provided to speed up conversion. Also, adding stride to subsample str_mat to minimize chance of busting the RAM