00001 /* 00002 Lidy - A small C library for sparse matrices managing 00003 Copyright (C) 2006 - Nicolas LERME 00004 00005 This library is free software; you can redistribute it and/or 00006 modify it under the terms of the GNU Lesser General Public 00007 License as published by the Free Software Foundation; either 00008 version 3 of the License, or (at your option) any later version. 00009 00010 This library is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 Lesser General Public License for more details. 00014 00015 You should have received a copy of the GNU Lesser General Public 00016 License along with this library; if not, write to the Free Software 00017 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 00018 */ 00019 00020 #ifndef __CELL_H__ 00021 #define __CELL_H__ 00022 00023 #include "types.h" 00024 00025 #ifdef __cplusplus 00026 extern "C"{ 00027 #endif 00028 00038 struct SCell 00039 { 00040 Real m_Value; 00041 unsigned int m_RowIndex; 00042 unsigned int m_ColumnIndex; 00043 struct SCell * m_pNextRow; 00044 struct SCell * m_pNextColumn; 00045 }; 00046 00047 typedef struct SCell * pSCell; 00048 00049 00060 pSCell Lidy_CreateCell( Real Value, unsigned int RowIndex, unsigned int ColumnIndex, pSCell pNextRow, pSCell pNextColumn ); 00061 00062 00069 void Lidy_DisplayCellValue( pSCell Cell ); 00070 00071 00078 void Lidy_DeleteCell( pSCell Cell ); 00079 00080 #ifdef __cplusplus 00081 } //extern "C" 00082 #endif 00083 00084 #endif //__CELL_H__
1.5.8