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 |
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); |