00001 /* 00002 00003 Copyright (C) 2005-2012 David Bateman 00004 Copyright (C) 1998-2005 Andy Adler 00005 00006 This file is part of Octave. 00007 00008 Octave is free software; you can redistribute it and/or modify it 00009 under the terms of the GNU General Public License as published by the 00010 Free Software Foundation; either version 3 of the License, or (at your 00011 option) any later version. 00012 00013 Octave is distributed in the hope that it will be useful, but WITHOUT 00014 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 00015 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 00016 for more details. 00017 00018 You should have received a copy of the GNU General Public License 00019 along with Octave; see the file COPYING. If not, see 00020 <http://www.gnu.org/licenses/>. 00021 00022 */ 00023 00024 #if !defined (octave_sparse_util_h) 00025 #define octave_sparse_util_h 1 00026 00027 // FIXME this overload is here due to API change in SuiteSparse (3.1 -> 3.2) 00028 extern OCTAVE_API void SparseCholError (int status, char *file, 00029 int line, char *message); 00030 extern OCTAVE_API void SparseCholError (int status, const char *file, 00031 int line, const char *message); 00032 extern OCTAVE_API int SparseCholPrint (const char *fmt, ...); 00033 00034 extern OCTAVE_API bool 00035 sparse_indices_ok (octave_idx_type *r, octave_idx_type *c, 00036 octave_idx_type nrows, octave_idx_type ncols, 00037 octave_idx_type nnz); 00038 00039 #endif