QPALM 1.2.5
Proximal Augmented Lagrangian method for Quadratic Programs
Loading...
Searching...
No Matches
Namespaces | Functions
sparse.cpp File Reference
#include <qpalm/sparse.hpp>
#include <ladel_global.h>
#include <algorithm>
#include <cassert>
+ Include dependency graph for sparse.cpp:

Go to the source code of this file.

Namespaces

namespace  qpalm
 
namespace  qpalm::alloc
 RAII-based wrappers for the allocation and deallocation functions of the C API.
 

Functions

ladel_sparse_matrix qpalm::eigen_to_ladel (sparse_mat_t &mat, ladel_int symmetry=UNSYMMETRIC)
 Convert an Eigen sparse matrix to a LADEL sparse matrix, without creating a copy.
 
ladel_sparse_matrix_ptr qpalm::ladel_sparse_create (index_t rows, index_t cols, index_t nnz, ladel_int symmetry, bool values=true, bool nonzeros=false)
 Create an LADEL sparse matrix of the given dimensions.
 
ladel_sparse_matrix_ptr qpalm::eigen_to_ladel_copy (const sparse_mat_ref_t &mat, ladel_int symmetry=UNSYMMETRIC)
 Similar to eigen_to_ladel, but creates a copy of all data, in such a way that the returned matrix is completely decoupled from mat, and such that it can be reallocated and deallocated by the ladel_sparse_free and similar functions.