/[ascend]/trunk/base/generic/solver/densemtx.h
ViewVC logotype

Diff of /trunk/base/generic/solver/densemtx.h

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

revision 1128 by johnpye, Sat Jan 13 08:33:43 2007 UTC revision 1129 by johnpye, Sat Jan 13 11:40:59 2007 UTC
# Line 1  Line 1 
1  /*  ASCEND modelling environment  /*  ASCEND modelling environment
2      Copyright 1997, Carnegie Mellon University      Copyright (C) 2007 Carnegie Mellon University
     Copyright (C) 2006 Carnegie Mellon University  
3    
4      This program is free software; you can redistribute it and/or modify      This program is free software; you can redistribute it and/or modify
5      it under the terms of the GNU General Public License as published by      it under the terms of the GNU General Public License as published by
# Line 56  typedef struct DenseMatrixStruct{ Line 55  typedef struct DenseMatrixStruct{
55      unsigned ncols;      unsigned ncols;
56  } DenseMatrix;  } DenseMatrix;
57    
58  #define DENSEMATRIX_NROWS(M) ((M).nrows)  #define DENSEMATRIX_NROWS(M)    ((M).nrows)
59  #define DENSEMATRIX_NCOLS(M) ((M).ncols)  #define DENSEMATRIX_NCOLS(M)    ((M).ncols)
60  #define DENSEMATRIX_ELEM(M,I,J) ((M).data[I][I])  #define DENSEMATRIX_ELEM(M,I,J) ((M).data[I][I])
61  #define DENSEMATRIX_DATA(M) ((M).data)  #define DENSEMATRIX_DATA(M)     ((M).data)
62    #define DENSEMATRIX_EMPTY       (DenseMatrix){NULL,0,0}
63    
64  DenseMatrix densematrix_create_empty();  DenseMatrix densematrix_create_empty();
65  DenseMatrix densematrix_create(unsigned nrows, unsigned ncols);  DenseMatrix densematrix_create(unsigned nrows, unsigned ncols);

Legend:
Removed from v.1128  
changed lines
  Added in v.1129

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