spacing calculation.
*/
-
struct Item : Staff_elem {
/// indirection to the column it is in
PCol * pcol_l_;
/*
- key.hh -- part of LilyPond
+ key.hh -- declare Key
(c) 1996,97 Han-Wen Nienhuys
*/
#include "varray.hh"
#include "scalar.hh"
+/// administration of current key
class Key {
Array<int> accidentals;
int acc(int i) { return accidentals[i]; }
};
+/// administration of accidentals
struct Local_key
{
void reset(Key);
struct Clef;
-/// An item which places accidentals at the start of the line
+/// An item which places accidentals at the start of the line
struct Keyitem : Item {
const char * name() const;
Array<int> pitch;
+/*
+ qlp.hh -- declare Ineq_constrained_qp, Mixed_qp
+
+ source file of the LilyPond music typesetter
+
+ (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
+*/
+
#ifndef QLP_HH
#define QLP_HH
/**
use a KKT method to assert optimality of sol
*/
- void assert_solution(Vector sol) const;
- /// solve the problem using a projected gradient method
+ void assert_solution(Vector sol) const;
+ /// solve the problem using a projected gradient method
Vector solve(Vector start) const;
/** return the number of variables in the problem */
x^T QUAD x /2 + b^T x
*/
-
-
class Mixed_qp :public Ineq_constrained_qp {
Array<int> eq_cons;
Array<Real> eq_consrhs;
+/*
+ qlpsolve.hh -- declare Active_constraints, Inactive_iter
+
+ source file of the LilyPond music typesetter
+
+ (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
+*/
+
+
+#ifndef QLPSOLVE_HH
+#define QLPSOLVE_HH
#include "qlp.hh"
#include "matrix.hh"
Real rhs() const { return ac->rhs(constraint_id()); }
bool ok() const { return j < ac->inactive.size(); }
};
+
+#endif // QLPSOLVE_HH