powerit
C++ implementation for power iterations
Loading...
Searching...
No Matches
Public Attributes | List of all members
powerit::Options Struct Reference

Options for compute(). More...

#include <core.hpp>

Public Attributes

int iterations = 500
 
double tolerance = 0.000001
 
int num_threads = 1
 

Detailed Description

Options for compute().

Member Data Documentation

◆ iterations

int powerit::Options::iterations = 500

Maximum number of iterations to perform. Note that the algorithm may converge before reaching this limit.

◆ num_threads

int powerit::Options::num_threads = 1

Number of threads to use for the matrix multiplication in compute(). The parallelization scheme depends on the definition of the #POWERIT_CUSTOM_PARALLEL function-like macro.

For compute_core(), the parallelization scheme depends on the provided multiply(), and this option has no effect.

◆ tolerance

double powerit::Options::tolerance = 0.000001

Tolerance used to determine convergence. The error is defined as the L2 norm of the difference between eigenvectors at successive iterations; if this drops below tolerance, we assume that the algorithm has converged.


The documentation for this struct was generated from the following file: