anpcpp 0.4.0
Analytic Network Process computational library
Loading...
Searching...
No Matches
Classes | Namespaces | Enumerations | Functions
limit_matrix.hpp File Reference

Limit matrix and priority extraction from supermatrices. More...

#include <cstddef>
#include <vector>
#include "anpcpp/matrix.hpp"

Go to the source code of this file.

Classes

struct  anpcpp::LimitMatrixOptions
 Options for limit-matrix calculation. More...
 

Namespaces

namespace  anpcpp
 Analytic Network Process computational library.
 

Enumerations

enum class  anpcpp::LimitMatrixMethod { anpcpp::Calculus , anpcpp::NewHierarchy , anpcpp::Sinks }
 SuperDecisions / pyanp limit-matrix algorithm. More...
 

Functions

Matrix anpcpp::column_normalize (const Matrix &mat)
 Column-normalizes each column by its sum (pyanp normalize).
 
void anpcpp::column_normalize_inplace (Matrix &mat)
 In-place column_normalize.
 
Matrix anpcpp::hierarchy_formula (const Matrix &mat)
 Hierarchy limit formula: normalize(sum of W^k for k=1..n-1).
 
std::vector< std::size_t > anpcpp::hierarchy_nodes (const Matrix &mat)
 Indices of hierarchical nodes (zero columns of W^n); pyanp hierarchy_nodes.
 
Matrix anpcpp::calculus_limit (const Matrix &mat, const LimitMatrixOptions &options={})
 SuperDecisions / pyanp calculus limit matrix.
 
Matrix anpcpp::limit_sinks (const Matrix &mat, const LimitMatrixOptions &options={})
 Limit-with-sinks calculation (pyanp limit_sinks).
 
Matrix anpcpp::limit_newhierarchy (const Matrix &mat, const LimitMatrixOptions &options={})
 New Hierarchy limit calculation (pyanp limit_newhierarchy).
 
Matrix anpcpp::compute_limit_matrix (const Matrix &mat, const LimitMatrixOptions &options={})
 Dispatch to the algorithm selected by options.method.
 
Vector anpcpp::priority_from_limit (const Matrix &limit_matrix)
 Row sums of the limit matrix, L1-normalized (pyanp priority_from_limit).
 

Detailed Description

Limit matrix and priority extraction from supermatrices.