Tessero\Io\SparseNpz
AI assistant
Build this with Claude Code, Cursor or Copilot
Copy a Tessero-tuned prompt for Tessero\Io\SparseNpz, grounded in 3 real API signatures , into your IDE's AI. No chatbot, just exact context.
save
static
save(string $path, array $csr, bool $isArray = true, bool $compress = true): void
scipy.sparse.save_npz: write a CSR matrix as a scipy-readable .npz.
load
static
load(string $path): array
scipy.sparse.load_npz: read a CSR .npz (scipy's or Tessero's own).
toDense
static
toDense(string $path): Tessero\NDArray
Reconstruct the dense matrix from a loaded CSR archive (for verification / convenience).