GNU Octave  4.4.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
Sparse.cc File Reference
#include <cassert>
#include <algorithm>
#include <iostream>
#include <limits>
#include <sstream>
#include <vector>
#include "Array.h"
#include "MArray.h"
#include "Array-util.h"
#include "Range.h"
#include "idx-vector.h"
#include "lo-error.h"
#include "quit.h"
#include "oct-locbuf.h"
#include "Sparse.h"
#include "sparse-sort.h"
#include "sparse-util.h"
#include "oct-spparms.h"
#include "mx-inlines.cc"
#include "PermMatrix.h"
Include dependency graph for Sparse.cc:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define INSTANTIATE_SPARSE(T, API)
 

Functions

static octave_idx_type lblookup (const octave_idx_type *ridx, octave_idx_type nr, octave_idx_type ri)
 
template<typename T >
std::istream & read_sparse_matrix (std::istream &is, Sparse< T > &a, T(*read_fcn)(std::istream &))
 
template<typename T >
bool sparse_ascending_compare (typename ref_param< T >::type a, typename ref_param< T >::type b)
 
template<typename T >
bool sparse_descending_compare (typename ref_param< T >::type a, typename ref_param< T >::type b)
 

Macro Definition Documentation

◆ INSTANTIATE_SPARSE

#define INSTANTIATE_SPARSE (   T,
  API 
)
Value:
template class API Sparse<T>; \
template std::istream& \
read_sparse_matrix<T> (std::istream& is, Sparse<T>& a, \
T (*read_fcn) (std::istream&));
calling an anonymous function involves an overhead quite comparable to the overhead of an m file function Passing a handle to a built in function is because the interpreter is not involved in the internal loop For a
Definition: cellfun.cc:400
write the output to stdout if nargout is
Definition: load-save.cc:1612

Definition at line 3012 of file Sparse.cc.

Function Documentation

◆ lblookup()

static octave_idx_type lblookup ( const octave_idx_type ridx,
octave_idx_type  nr,
octave_idx_type  ri 
)
static

◆ read_sparse_matrix()

template<typename T >
std::istream& read_sparse_matrix ( std::istream &  is,
Sparse< T > &  a,
T(*)(std::istream &)  read_fcn 
)

Definition at line 2699 of file Sparse.cc.

References a, i, is, string, and tmp.

◆ sparse_ascending_compare()

template<typename T >
bool sparse_ascending_compare ( typename ref_param< T >::type  a,
typename ref_param< T >::type  b 
)

Definition at line 2215 of file Sparse.cc.

References a, and b.

◆ sparse_descending_compare()

template<typename T >
bool sparse_descending_compare ( typename ref_param< T >::type  a,
typename ref_param< T >::type  b 
)

Definition at line 2223 of file Sparse.cc.

References a, and b.