Versions in this module Expand all Collapse all v0 v0.0.3 Apr 21, 2025 Changes in this version type OSQPConfig + func (o OSQPConfig) PrimalObj() float64 + func (o OSQPConfig) SolutionSlice() []float64 + func (o OSQPConfig) Status() string v0.0.2 Apr 21, 2025 v0.0.1 Apr 21, 2025 Changes in this version + func BlockDiag(blocks []*mat.Dense) *mat.Dense + func DenseEye(size int, val float64) *mat.Dense + func DenseEyeK(size int, val float64, k int) *mat.Dense + func ToNegative(matDense mat.Matrix) mat.Matrix + func ToNegativeDense(vecDense mat.Dense) *mat.Dense + func ToNegativeVecDense(vecDense mat.VecDense) *mat.Dense + func VStack(matrix []mat.Matrix) *mat.Dense + func VecZeros(num int) mat.Matrix + type Data struct + A_mat SparseMatrix + L []float64 + M int64 + N int64 + P_mat SparseMatrix + Q []float64 + U []float64 + type OSQPConfig struct + func NewOSQP() *OSQPConfig + func (o OSQPConfig) CleanUp() + func (o OSQPConfig) Setup(p SparseMatrix, q []float64, a SparseMatrix, l []float64, u []float64) + func (o OSQPConfig) Solution() (float32, float32) + func (o OSQPConfig) Solve() + func (o OSQPConfig) UpdateAMat(aNew []float64) + func (o OSQPConfig) UpdateBounds(lNew, uNew []float64) + func (o OSQPConfig) UpdateLinCost(qNew []float64) + func (o OSQPConfig) UpdatePMat(pNew []float64) + type SparseMatrix struct + func NewCSCDenseMatrix(matrix mat.Matrix) (SparseMatrix, error) + func NewCSCMatrix(matrix [][]float64) (SparseMatrix, error) + func NewDiagCSCMatrix(size int, value float64) (*SparseMatrix, error) + func (s SparseMatrix) Data() []float64 + func (s SparseMatrix) Dimension() (int, int) + func (s SparseMatrix) Ind() []int + func (s SparseMatrix) IndPtr() []int + func (s SparseMatrix) NNZ() int64 + func (s SparseMatrix) ToDense() *mat.Dense + func (s SparseMatrix) Transpose(matrix [][]float64) [][]float64