GNU Octave  4.4.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
sparse-util.h
Go to the documentation of this file.
1 /*
2 
3 Copyright (C) 2005-2018 David Bateman
4 Copyright (C) 1998-2005 Andy Adler
5 
6 This file is part of Octave.
7 
8 Octave is free software: you can redistribute it and/or modify it
9 under the terms of the GNU General Public License as published by
10 the Free Software Foundation, either version 3 of the License, or
11 (at your option) any later version.
12 
13 Octave is distributed in the hope that it will be useful, but
14 WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
17 
18 You should have received a copy of the GNU General Public License
19 along with Octave; see the file COPYING. If not, see
20 <https://www.gnu.org/licenses/>.
21 
22 */
23 
24 #if ! defined (octave_sparse_util_h)
25 #define octave_sparse_util_h 1
26 
27 #include "octave-config.h"
28 
29 // The next two functions don't do anything unless CHOLMOD is available
30 
31 // FIXME: This overload is here due to API change in SuiteSparse (3.1 -> 3.2)
32 extern OCTAVE_API void
33 SparseCholError (int status, char *file, int line, char *message);
34 
35 extern OCTAVE_API void
36 SparseCholError (int status, const char *file, int line, const char *message);
37 
38 extern OCTAVE_API int
39 SparseCholPrint (const char *fmt, ...);
40 
41 extern OCTAVE_API bool
43  octave_idx_type nrows, octave_idx_type ncols,
44  octave_idx_type nnz);
45 
46 #endif
For example cd octave end example noindent changes the current working directory to file
Definition: dirfns.cc:124
OCTAVE_API void SparseCholError(int status, char *file, int line, char *message)
Definition: sparse-util.cc:61
nd example oindent opens the file binary numeric values will be read assuming they are stored in IEEE format with the least significant bit and then converted to the native representation Opening a file that is already open simply opens it again and returns a separate file id It is not an error to open a file several though writing to the same file through several different file ids may produce unexpected results The possible values of text mode reading and writing automatically converts linefeeds to the appropriate line end character for the you may append a you must also open the file in binary mode The parameter conversions are currently only supported for and permissions will be set to and then everything is written in a single operation This is very efficient and improves performance c
Definition: file-io.cc:587
void message(const char *name, const char *fmt,...)
Definition: error.cc:435
OCTAVE_API bool sparse_indices_ok(octave_idx_type *r, octave_idx_type *c, octave_idx_type nrows, octave_idx_type ncols, octave_idx_type nnz)
Definition: sparse-util.cc:84
OCTAVE_API int SparseCholPrint(const char *fmt,...)
Definition: sparse-util.cc:73