Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion c/amd/include/SuiteSparse_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ extern "C" {
#endif

#include "qdldl_types.h"
#define DLONG
#include "qdldl_configure.h"
typedef QDLDL_float c_float;

#include <limits.h>
Expand Down
5 changes: 5 additions & 0 deletions cpp/qdldl.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include "qdldl.hpp"

#include "qdldl/include/qdldl_configure.h"
using namespace qdldl;


Expand Down Expand Up @@ -31,7 +32,11 @@ Solver::Solver(QDLDL_int n, QDLDL_int * Ap, QDLDL_int *Ai, QDLDL_float * Ax){
Pinv = new QDLDL_int[n];

// Permutation
#ifdef DLONG
QDLDL_int amd_status = amd_l_order(nx, Ap, Ai, P, NULL, NULL);
#else
QDLDL_int amd_status = amd_order(nx, Ap, Ai, P, NULL, NULL);
#endif
if (amd_status < 0)
throw std::runtime_error(std::string("Error in AMD computation ") + std::to_string(amd_status));

Expand Down