Blender V5.0
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 30 of file linear_solver.cc.

Member Enumeration Documentation

◆ State

Enumerator
STATE_VARIABLES_CONSTRUCT 
STATE_MATRIX_CONSTRUCT 
STATE_MATRIX_SOLVED 

Definition at line 56 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 75 of file linear_solver.cc.

References sparseLU.

Member Data Documentation

◆ b

◆ least_squares

◆ M

EigenSparseMatrix LinearSolver::M

Definition at line 86 of file linear_solver.cc.

Referenced by EIG_linear_solver_print_matrix(), and EIG_linear_solver_solve().

◆ m

int LinearSolver::m

◆ MtM

EigenSparseMatrix LinearSolver::MtM

Definition at line 87 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

◆ num_rows

int LinearSolver::num_rows

Definition at line 96 of file linear_solver.cc.

Referenced by linear_solver_ensure_matrix_construct(), and LinearSolver().

◆ num_variables

◆ sparseLU

EigenSparseLU* LinearSolver::sparseLU

Definition at line 91 of file linear_solver.cc.

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

◆ state

◆ variable

◆ x


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