Remove np.matrix dependency
Remove np.matrix dependency: a task in lifesci-single-cell-spatial-swe-envs-nocap (Harbor dataset). Title: Remove np.matrix dependency
The task
**Title:** Remove np.matrix dependency
Part of scalingX/lifesci-single-cell-spatial-swe-envs-nocap.