WPILibC++ 2023.4.3-108-ge5452e3
Eigen_Colamd.h File Reference

Go to the source code of this file.

Classes

struct  internal::Colamd::ColStructure< IndexType >
 
struct  internal::Colamd::RowStructure< IndexType >
 

Namespaces

namespace  internal
 
namespace  internal::Colamd
 

Macros

#define COLAMD_NDEBUG
 
#define COLAMD_DEBUG0(params)   ;
 
#define COLAMD_DEBUG1(params)   ;
 
#define COLAMD_DEBUG2(params)   ;
 
#define COLAMD_DEBUG3(params)   ;
 
#define COLAMD_DEBUG4(params)   ;
 
#define COLAMD_ASSERT(expression)   ((void) 0)
 

Enumerations

enum  internal::Colamd::KnobsStatsIndex {
  internal::Colamd::DenseRow = 0 , internal::Colamd::DenseCol = 1 , internal::Colamd::DefragCount = 2 , internal::Colamd::Status = 3 ,
  internal::Colamd::Info1 = 4 , internal::Colamd::Info2 = 5 , internal::Colamd::Info3 = 6
}
 
enum  internal::Colamd::Status {
  internal::Colamd::Ok = 0 , internal::Colamd::OkButJumbled = 1 , internal::Colamd::ErrorANotPresent = -1 , internal::Colamd::ErrorPNotPresent = -2 ,
  internal::Colamd::ErrorNrowNegative = -3 , internal::Colamd::ErrorNcolNegative = -4 , internal::Colamd::ErrorNnzNegative = -5 , internal::Colamd::ErrorP0Nonzero = -6 ,
  internal::Colamd::ErrorATooSmall = -7 , internal::Colamd::ErrorColLengthNegative = -8 , internal::Colamd::ErrorRowIndexOutOfBounds = -9 , internal::Colamd::ErrorOutOfMemory = -10 ,
  internal::Colamd::ErrorInternalError = -999
}
 
enum  internal::Colamd::RowColumnStatus { internal::Colamd::Alive = 0 , internal::Colamd::Dead = -1 }
 
enum  internal::Colamd::ColumnStatus { internal::Colamd::DeadPrincipal = -1 , internal::Colamd::DeadNonPrincipal = -2 }
 

Functions

template<typename IndexType >
IndexType internal::Colamd::ones_complement (const IndexType r)
 
template<typename IndexType >
IndexType internal::Colamd::colamd_c (IndexType n_col)
 
template<typename IndexType >
IndexType internal::Colamd::colamd_r (IndexType n_row)
 
template<typename IndexType >
static IndexType internal::Colamd::init_rows_cols (IndexType n_row, IndexType n_col, RowStructure< IndexType > Row[], ColStructure< IndexType > col[], IndexType A[], IndexType p[], IndexType stats[NStats])
 
template<typename IndexType >
static void internal::Colamd::init_scoring (IndexType n_row, IndexType n_col, RowStructure< IndexType > Row[], ColStructure< IndexType > Col[], IndexType A[], IndexType head[], double knobs[NKnobs], IndexType *p_n_row2, IndexType *p_n_col2, IndexType *p_max_deg)
 
template<typename IndexType >
static IndexType internal::Colamd::find_ordering (IndexType n_row, IndexType n_col, IndexType Alen, RowStructure< IndexType > Row[], ColStructure< IndexType > Col[], IndexType A[], IndexType head[], IndexType n_col2, IndexType max_deg, IndexType pfree)
 
template<typename IndexType >
static void internal::Colamd::order_children (IndexType n_col, ColStructure< IndexType > Col[], IndexType p[])
 
template<typename IndexType >
static void internal::Colamd::detect_super_cols (ColStructure< IndexType > Col[], IndexType A[], IndexType head[], IndexType row_start, IndexType row_length)
 
template<typename IndexType >
static IndexType internal::Colamd::garbage_collection (IndexType n_row, IndexType n_col, RowStructure< IndexType > Row[], ColStructure< IndexType > Col[], IndexType A[], IndexType *pfree)
 
template<typename IndexType >
static IndexType internal::Colamd::clear_mark (IndexType n_row, RowStructure< IndexType > Row[])
 
template<typename IndexType >
IndexType internal::Colamd::recommended (IndexType nnz, IndexType n_row, IndexType n_col)
 Returns the recommended value of Alen. More...
 
static void internal::Colamd::set_defaults (double knobs[NKnobs])
 set default parameters The use of this routine is optional. More...
 
template<typename IndexType >
static bool internal::Colamd::compute_ordering (IndexType n_row, IndexType n_col, IndexType Alen, IndexType *A, IndexType *p, double knobs[NKnobs], IndexType stats[NStats])
 Computes a column ordering using the column approximate minimum degree ordering. More...
 

Variables

const int internal::Colamd::NKnobs = 20
 
const int internal::Colamd::NStats = 20
 
const int internal::Colamd::Empty = -1
 

Macro Definition Documentation

◆ COLAMD_ASSERT

#define COLAMD_ASSERT (   expression)    ((void) 0)

◆ COLAMD_DEBUG0

#define COLAMD_DEBUG0 (   params)    ;

◆ COLAMD_DEBUG1

#define COLAMD_DEBUG1 (   params)    ;

◆ COLAMD_DEBUG2

#define COLAMD_DEBUG2 (   params)    ;

◆ COLAMD_DEBUG3

#define COLAMD_DEBUG3 (   params)    ;

◆ COLAMD_DEBUG4

#define COLAMD_DEBUG4 (   params)    ;

◆ COLAMD_NDEBUG

#define COLAMD_NDEBUG