24 #if defined (HAVE_CONFIG_H) 39 #if defined (HAVE_CHOLMOD) 43 if (status != CHOLMOD_NOT_POSDEF)
44 (*current_liboctave_warning_with_id_handler)
45 (
"Octave:cholmod-message",
"warning %i, at line %i in file %s: %s",
50 octave_unused_parameter (status);
51 octave_unused_parameter (
file);
52 octave_unused_parameter (
line);
53 octave_unused_parameter (
message);
77 int ret = std::vfprintf (stderr, fmt, args);
91 (*current_liboctave_error_handler)
92 (
"invalid sparse matrix: cidx[0] must be zero");
99 (*current_liboctave_error_handler)
100 (
"invalid sparse matrix: cidx elements must appear in ascending order");
103 (*current_liboctave_error_handler)
104 (
"invalid sparse matrix: cidx[%d] = %d " 105 "exceeds number of nonzero elements", j,
c[j]+1);
112 (*current_liboctave_error_handler)
113 (
"invalid sparse matrix: ridx elements must appear " 114 "in ascending order for each column");
117 (*current_liboctave_error_handler)
118 (
"invalid sparse matrix: ridx[%d] = %d out of range",
For example cd octave end example noindent changes the current working directory to file
void SparseCholError(int status, char *file, int line, char *message)
bool sparse_indices_ok(octave_idx_type *r, octave_idx_type *c, octave_idx_type nrows, octave_idx_type ncols, octave_idx_type nnz)
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
void message(const char *name, const char *fmt,...)
static void sparse_chol_error_internal(int status, const char *file, int line, const char *message)
int SparseCholPrint(const char *fmt,...)