/[ascend]/trunk/base/generic/solver/incidence.c
ViewVC logotype

Diff of /trunk/base/generic/solver/incidence.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 707 by johnpye, Fri Mar 31 08:52:57 2006 UTC revision 708 by johnpye, Tue Jun 27 07:34:31 2006 UTC
# Line 72  build_incidence_data(CONST slv_system_t Line 72  build_incidence_data(CONST slv_system_t
72    pd->nvar = slv_get_num_solvers_vars(sys); /* O(1) */    pd->nvar = slv_get_num_solvers_vars(sys); /* O(1) */
73    pd->npcol = slv_count_solvers_vars(sys,&vincident); /* O(npcols) */    pd->npcol = slv_count_solvers_vars(sys,&vincident); /* O(npcols) */
74    pd->nfakevar = pd->npcol; /* this could change with autoslack solvers */    pd->nfakevar = pd->npcol; /* this could change with autoslack solvers */
75    pd->pr2e = (int *)ascmalloc(sizeof(int)*(pd->nprow +1)); /* speed of these */    pd->pr2e = ASC_NEW_ARRAY(int,(pd->nprow +1)); /* speed of these */
76    pd->e2pr = (int *)ascmalloc(sizeof(int)*(pd->neqn +1));    pd->e2pr = ASC_NEW_ARRAY(int,(pd->neqn +1));
77    pd->pc2v = (int *)ascmalloc(sizeof(int)*(pd->npcol +1));    pd->pc2v = ASC_NEW_ARRAY(int,(pd->npcol +1));
78    pd->v2pc = (int *)ascmalloc(sizeof(int)*(pd->nvar +1));    pd->v2pc = ASC_NEW_ARRAY(int,(pd->nvar +1));
79    pd->vfixed = (char *)asccalloc((pd->nvar +1),sizeof(char));    pd->vfixed = (char *)asccalloc((pd->nvar +1),sizeof(char));
80    if ( ISNULL(pd->pr2e) || ISNULL(pd->e2pr) ||    if ( ISNULL(pd->pr2e) || ISNULL(pd->e2pr) ||
81         ISNULL(pd->pc2v) || ISNULL(pd->v2pc) ||         ISNULL(pd->pc2v) || ISNULL(pd->v2pc) ||

Legend:
Removed from v.707  
changed lines
  Added in v.708

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22