https://github.com/cvxgrp/scs
Tip revision: a237b6e0e1eb97dae1c48546fcf7438ab4915dc8 authored by bodonoghue on 10 May 2014, 04:31:55 UTC
fix dsyevr bug
fix dsyevr bug
Tip revision: a237b6e
cones.h
#ifndef CONES_H_GUARD
#define CONES_H_GUARD
#include "scs.h"
struct CONE {
idxint f; /* number of linear equality constraints */
idxint l; /* length of LP cone */
idxint *q; /* array of second-order cone constraints */
idxint qsize; /* length of SOC array */
idxint *s; /* array of SD constraints */
idxint ssize; /* length of SD array */
idxint ep; /* number of primal exponential cone triples */
idxint ed; /* number of dual exponential cone triples */
};
/*
* boundaries will contain array of indices of rows of A corresponding to
* cone boundaries, boundaries[0] is starting index for cones of size larger than 1
* returns length of boundaries array, boundaries malloc-ed here so should be freed
*/
idxint getConeBoundaries(Cone * k, idxint ** boundaries);
idxint initCone(Cone * k);
char * getConeHeader(Cone * k);
idxint validateCones(Data * d, Cone * k);
/* pass in iter to control how accurate the cone projection
with iteration, set iter = -1 for exact projection */
void projDualCone(pfloat *x, Cone *k, idxint iter);
void finishCone(void);
char * getConeSummary(Info * info);
#endif