#include <climits>
#include <iostream>
#include <vector>
#include "lo-specfun.h"
#include "lo-mappers.h"
#include "oct-locbuf.h"
#include "ov-base.h"
#include "ov-scalar.h"
#include "gripes.h"
#include "ls-hdf5.h"
#include "ov-re-sparse.h"
#include "ov-base-sparse.h"
#include "ov-base-sparse.cc"
#include "ov-bool-sparse.h"
Defines | |
#define | SPARSE_MAPPER(MAP, AMAP, FCN) |
#define | CD_SPARSE_MAPPER(MAP, RFCN, CFCN, L1, L2) |
Functions | |
DEFINE_OCTAVE_ALLOCATOR (octave_sparse_matrix) | |
DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA (octave_sparse_matrix,"sparse matrix","double") | |
Variables | |
template class OCTINTERP_API | octave_base_sparse< SparseMatrix > |
#define CD_SPARSE_MAPPER | ( | MAP, | |||
RFCN, | |||||
CFCN, | |||||
L1, | |||||
L2 | ) |
Value:
octave_value \ octave_sparse_matrix::MAP (void) const \ { \ static SparseMatrix::dmapper dmap = RFCN; \ static SparseMatrix::cmapper cmap = CFCN; \ \ return (any_element_less_than (matrix, L1) \ ? octave_value (matrix.map (cmap)) \ : (any_element_greater_than (matrix, L2) \ ? octave_value (matrix.map (cmap)) \ : octave_value (matrix.map (dmap)))); \ }
#define SPARSE_MAPPER | ( | MAP, | |||
AMAP, | |||||
FCN | ) |
Value:
octave_value \ octave_sparse_matrix::MAP (void) const \ { \ static AMAP dmap = FCN; \ return matrix.map (dmap); \ }
DEFINE_OCTAVE_ALLOCATOR | ( | octave_sparse_matrix | ) |
DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA | ( | octave_sparse_matrix | , | |
"sparse matrix" | , | |||
"double" | ||||
) |
template class OCTINTERP_API octave_base_sparse< SparseMatrix > |