Documentation
¶
Overview ¶
Package nd connects sparse matrices to go-ndarray arrays: dense vectors and matrices go in and out of the solvers as *ndarray.Array.
Index ¶
- func FromCSR(a *sparse.CSR[float64]) (*ndarray.Array, error)
- func FromVector(v []float64) *ndarray.Array
- func MulMat(a *sparse.CSR[float64], b *ndarray.Array) (*ndarray.Array, error)
- func MulVec(a *sparse.CSR[float64], x *ndarray.Array) (*ndarray.Array, error)
- func ToCSR(a *ndarray.Array) (*sparse.CSR[float64], error)
- func Vector(a *ndarray.Array) ([]float64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromVector ¶
FromVector copies a slice into a new 1-D array.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.