Navigation

Operators and Keywords

Function List:

C++ API

ov-re-sparse.cc File Reference

#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"

Include dependency graph for ov-re-sparse.cc:


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 Documentation

#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); \
  }


Function Documentation

DEFINE_OCTAVE_ALLOCATOR ( octave_sparse_matrix   ) 

DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA ( octave_sparse_matrix  ,
"sparse matrix"  ,
"double"   
)


Variable Documentation

template class OCTINTERP_API octave_base_sparse< SparseMatrix >