GNU Octave  4.4.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
octave_sparse_params Class Reference

#include "oct-spparms.h"

Collaboration diagram for octave_sparse_params:

Public Member Functions

 octave_sparse_params (const octave_sparse_params &a)
 
 ~octave_sparse_params (void)=default
 
octave_sparse_paramsoperator= (const octave_sparse_params &a)
 

Static Public Member Functions

static void defaults (void)
 
static double get_bandden (void)
 
static double get_key (const std::string &key)
 
static string_vector get_keys (void)
 
static ColumnVector get_vals (void)
 
static bool instance_ok (void)
 
static void print_info (std::ostream &os, const std::string &prefix)
 
static bool set_key (const std::string &key, const double &val)
 
static bool set_vals (const NDArray &vals)
 
static void tight (void)
 

Protected Member Functions

 octave_sparse_params (void)
 

Private Member Functions

void do_defaults (void)
 
double do_get_bandden (void)
 
double do_get_key (const std::string &key)
 
string_vector do_get_keys (void) const
 
ColumnVector do_get_vals (void) const
 
void do_print_info (std::ostream &os, const std::string &prefix) const
 
bool do_set_key (const std::string &key, const double &val)
 
bool do_set_vals (const NDArray &vals)
 
void do_tight (void)
 
void init_keys (void)
 

Static Private Member Functions

static void cleanup_instance (void)
 

Private Attributes

string_vector keys
 
ColumnVector params
 

Static Private Attributes

static octave_sparse_paramsinstance = nullptr
 

Detailed Description

Definition at line 39 of file oct-spparms.h.

Constructor & Destructor Documentation

◆ octave_sparse_params() [1/2]

octave_sparse_params::octave_sparse_params ( void  )
inlineprotected

Definition at line 45 of file oct-spparms.h.

Referenced by instance_ok().

◆ octave_sparse_params() [2/2]

octave_sparse_params::octave_sparse_params ( const octave_sparse_params a)
inline

Definition at line 55 of file oct-spparms.h.

◆ ~octave_sparse_params()

octave_sparse_params::~octave_sparse_params ( void  )
default

Member Function Documentation

◆ cleanup_instance()

static void octave_sparse_params::cleanup_instance ( void  )
inlinestaticprivate

Definition at line 99 of file oct-spparms.h.

Referenced by instance_ok().

◆ defaults()

void octave_sparse_params::defaults ( void  )
static

Definition at line 59 of file oct-spparms.cc.

References do_defaults(), instance, and instance_ok().

Referenced by Fspparms().

◆ do_defaults()

void octave_sparse_params::do_defaults ( void  )
private

Definition at line 117 of file oct-spparms.cc.

References params.

Referenced by defaults().

◆ do_get_bandden()

double octave_sparse_params::do_get_bandden ( void  )
private

Definition at line 171 of file oct-spparms.cc.

References params.

Referenced by get_bandden().

◆ do_get_key()

double octave_sparse_params::do_get_key ( const std::string key)
private

Definition at line 207 of file oct-spparms.cc.

References i, keys, NaN(), OCTAVE_SPARSE_CONTROLS_SIZE, and params.

Referenced by get_key().

◆ do_get_keys()

string_vector octave_sparse_params::do_get_keys ( void  ) const
inlineprivate

Definition at line 105 of file oct-spparms.h.

Referenced by get_keys().

◆ do_get_vals()

ColumnVector octave_sparse_params::do_get_vals ( void  ) const
inlineprivate

Definition at line 107 of file oct-spparms.h.

Referenced by get_vals().

◆ do_print_info()

void octave_sparse_params::do_print_info ( std::ostream &  os,
const std::string prefix 
) const
private

Definition at line 219 of file oct-spparms.cc.

References i, keys, OCTAVE_SPARSE_CONTROLS_SIZE, os, and params.

Referenced by print_info().

◆ do_set_key()

bool octave_sparse_params::do_set_key ( const std::string key,
const double val 
)
private

Definition at line 192 of file oct-spparms.cc.

References i, keys, OCTAVE_SPARSE_CONTROLS_SIZE, params, and val.

Referenced by set_key().

◆ do_set_vals()

bool octave_sparse_params::do_set_vals ( const NDArray vals)
private

Definition at line 177 of file oct-spparms.cc.

References i, Array< T >::numel(), OCTAVE_SPARSE_CONTROLS_SIZE, and params.

Referenced by set_vals().

◆ do_tight()

void octave_sparse_params::do_tight ( void  )
private

Definition at line 135 of file oct-spparms.cc.

References params.

Referenced by tight().

◆ get_bandden()

double octave_sparse_params::get_bandden ( void  )
static

Definition at line 104 of file oct-spparms.cc.

References do_get_bandden(), instance, and instance_ok().

Referenced by MatrixType::MatrixType(), and MatrixType::type().

◆ get_key()

◆ get_keys()

string_vector octave_sparse_params::get_keys ( void  )
static

Definition at line 73 of file oct-spparms.cc.

References do_get_keys(), instance, and instance_ok().

Referenced by Fspparms().

◆ get_vals()

ColumnVector octave_sparse_params::get_vals ( void  )
static

Definition at line 79 of file oct-spparms.cc.

References do_get_vals(), instance, and instance_ok().

Referenced by Fspparms().

◆ init_keys()

void octave_sparse_params::init_keys ( void  )
private

Definition at line 153 of file oct-spparms.cc.

References keys.

◆ instance_ok()

bool octave_sparse_params::instance_ok ( void  )
static

◆ operator=()

octave_sparse_params& octave_sparse_params::operator= ( const octave_sparse_params a)
inline

Definition at line 58 of file oct-spparms.h.

References a.

◆ print_info()

void octave_sparse_params::print_info ( std::ostream &  os,
const std::string prefix 
)
static

Definition at line 110 of file oct-spparms.cc.

References do_print_info(), instance, instance_ok(), and os.

Referenced by Fspparms().

◆ set_key()

bool octave_sparse_params::set_key ( const std::string key,
const double val 
)
static

Definition at line 91 of file oct-spparms.cc.

References do_set_key(), instance, instance_ok(), and val.

Referenced by Fspparms().

◆ set_vals()

bool octave_sparse_params::set_vals ( const NDArray vals)
static

Definition at line 85 of file oct-spparms.cc.

References do_set_vals(), instance, and instance_ok().

Referenced by Fspparms().

◆ tight()

void octave_sparse_params::tight ( void  )
static

Definition at line 66 of file oct-spparms.cc.

References do_tight(), instance, and instance_ok().

Referenced by Fspparms().

Member Data Documentation

◆ instance

octave_sparse_params * octave_sparse_params::instance = nullptr
staticprivate

◆ keys

string_vector octave_sparse_params::keys
private

Definition at line 95 of file oct-spparms.h.

Referenced by do_get_key(), do_print_info(), do_set_key(), and init_keys().

◆ params

ColumnVector octave_sparse_params::params
private

The documentation for this class was generated from the following files: