Versions in this module Expand all Collapse all v0 v0.3.0 Nov 1, 2026 v0.2.1 Nov 1, 2026 v0.2.0 Oct 31, 2026 v0.1.0 Oct 20, 2026 Changes in this version + const Array + const Complex + const Coordinate + const General + const Hermitian + const Integer + const Pattern + const Real + const SkewSymmetric + const Symmetric + var DefaultLimits = Limits + var ErrFormat = errors.New("mtx: malformed file") + func Write[T sparse.Scalar](w io.Writer, a *sparse.CSR[T], o Options) error + type Field string + type Header struct + Cols int + Comments []string + Entries int + Field Field + Layout Layout + Rows int + Symmetry Symmetry + type Layout string + type Limits struct + MaxBytes int64 + MaxComments int + MaxDim int + MaxEntries int + MaxLine int + type Matrix struct + Complex *sparse.COO[complex128] + Real *sparse.COO[float64] + func Read(r io.Reader) (*Matrix, error) + func ReadFile(path string) (*Matrix, error) + func ReadLimited(r io.Reader, lim Limits) (*Matrix, error) + func (m *Matrix) ComplexCSR() *sparse.CSR[complex128] + func (m *Matrix) RealCSR() (*sparse.CSR[float64], error) + type Options struct + Comments []string + Field Field + Layout Layout + Symmetry Symmetry + type Symmetry string