Blender  V3.3
Classes | Public Types | Public Member Functions | Public Attributes | List of all members
LinearSolver Struct Reference

Classes

struct  Coeff
 
struct  Variable
 

Public Types

enum  State { STATE_VARIABLES_CONSTRUCT , STATE_MATRIX_CONSTRUCT , STATE_MATRIX_SOLVED }
 

Public Member Functions

 LinearSolver (int num_rows_, int num_variables_, int num_rhs_, bool lsq_)
 
 ~LinearSolver ()
 

Public Attributes

State state
 
int n
 
int m
 
std::vector< EigenTripletMtriplets
 
EigenSparseMatrix M
 
EigenSparseMatrix MtM
 
std::vector< EigenVectorXb
 
std::vector< EigenVectorXx
 
EigenSparseLUsparseLU
 
int num_variables
 
std::vector< Variablevariable
 
int num_rows
 
int num_rhs
 
bool least_squares
 

Detailed Description

Definition at line 29 of file linear_solver.cc.

Member Enumeration Documentation

◆ State

Enumerator
STATE_VARIABLES_CONSTRUCT 
STATE_MATRIX_CONSTRUCT 
STATE_MATRIX_SOLVED 

Definition at line 55 of file linear_solver.cc.

Constructor & Destructor Documentation

◆ LinearSolver()

LinearSolver::LinearSolver ( int  num_rows_,
int  num_variables_,
int  num_rhs_,
bool  lsq_ 
)
inline

◆ ~LinearSolver()

LinearSolver::~LinearSolver ( )
inline

Definition at line 74 of file linear_solver.cc.

References sparseLU.

Member Data Documentation

◆ b

std::vector<EigenVectorX> LinearSolver::b

◆ least_squares

bool LinearSolver::least_squares

◆ m

int LinearSolver::m

◆ M

EigenSparseMatrix LinearSolver::M

Definition at line 85 of file linear_solver.cc.

Referenced by EIG_linear_solver_print_matrix(), and EIG_linear_solver_solve().

◆ MtM

EigenSparseMatrix LinearSolver::MtM

Definition at line 86 of file linear_solver.cc.

Referenced by EIG_linear_solver_print_matrix(), and EIG_linear_solver_solve().

◆ Mtriplets

std::vector<EigenTriplet> LinearSolver::Mtriplets

◆ n

int LinearSolver::n

◆ num_rhs

int LinearSolver::num_rhs

◆ num_rows

int LinearSolver::num_rows

Definition at line 95 of file linear_solver.cc.

Referenced by linear_solver_ensure_matrix_construct(), and LinearSolver().

◆ num_variables

int LinearSolver::num_variables

◆ sparseLU

EigenSparseLU* LinearSolver::sparseLU

Definition at line 90 of file linear_solver.cc.

Referenced by EIG_linear_solver_solve(), LinearSolver(), and ~LinearSolver().

◆ state

State LinearSolver::state

◆ variable

std::vector<Variable> LinearSolver::variable

◆ x

std::vector<EigenVectorX> LinearSolver::x

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