cudd  3.0.0
The University of Colorado Decision Diagram Package
Functions
cuddHarwell.c File Reference

Function to read a matrix in Harwell format. More...

#include "util.h"
#include "cuddInt.h"
Include dependency graph for cuddHarwell.c:

Functions

int Cudd_addHarwell (FILE *fp, DdManager *dd, DdNode **E, DdNode ***x, DdNode ***y, DdNode ***xn, DdNode ***yn_, int *nx, int *ny, int *m, int *n, int bx, int sx, int by, int sy, int pr)
 Reads in a matrix in the format of the Harwell-Boeing benchmark suite. More...
 

Detailed Description

Function to read a matrix in Harwell format.

Author
Fabio Somenzi

Function Documentation

◆ Cudd_addHarwell()

int Cudd_addHarwell ( FILE *  fp,
DdManager dd,
DdNode **  E,
DdNode ***  x,
DdNode ***  y,
DdNode ***  xn,
DdNode ***  yn_,
int *  nx,
int *  ny,
int *  m,
int *  n,
int  bx,
int  sx,
int  by,
int  sy,
int  pr 
)

Reads in a matrix in the format of the Harwell-Boeing benchmark suite.

The variables are ordered as follows:

x[0] y[0] x[1] y[1] ...

0 is the most significant bit. On input, nx and ny hold the numbers of row and column variables already in existence.

Returns
1 on success; 0 otherwise.
Side effects On output, nx and ny hold the numbers of row and column
variables actually used by the matrix. m and n are set to the numbers of rows and columns of the matrix. Their values on input are immaterial. The ADD for the sparse matrix is returned in E, and its reference count is > 0.
See also
Cudd_addRead Cudd_bddRead
Parameters
fppointer to the input file
ddDD manager
Echaracteristic function of the graph
xarray of row variables
yarray of column variables
xnarray of complemented row variables
yn_array of complemented column variables
nxnumber or row variables
nynumber or column variables
mnumber of rows
nnumber of columns
bxfirst index of row variables
sxstep of row variables
byfirst index of column variables
systep of column variables
prverbosity level