Loading [MathJax]/extensions/tex2jax.js
LSST Applications g0fba68d861+b562e0a09f,g1ec0fe41b4+3ea9d11450,g1fd858c14a+9be2b0f3b9,g2440f9efcc+8c5ae1fdc5,g33b6eb7922+23bc9e47ac,g35bb328faa+8c5ae1fdc5,g4a4af6cd76+d25431c27e,g4d2262a081+e64e5ff751,g53246c7159+8c5ae1fdc5,g55585698de+be1c65ba71,g56a49b3a55+92a7603e7a,g60b5630c4e+be1c65ba71,g67b6fd64d1+3fc8cb0b9e,g78460c75b0+7e33a9eb6d,g786e29fd12+668abc6043,g8352419a5c+8c5ae1fdc5,g8852436030+60e38ee5ff,g89139ef638+3fc8cb0b9e,g94187f82dc+be1c65ba71,g989de1cb63+3fc8cb0b9e,g9d31334357+be1c65ba71,g9f33ca652e+69d6bbdd4b,gabe3b4be73+8856018cbb,gabf8522325+977d9fabaf,gb1101e3267+b0077987df,gb89ab40317+3fc8cb0b9e,gc91f06edcd+2e2ca305f6,gcf25f946ba+60e38ee5ff,gd6cbbdb0b4+1cc2750d2e,gdb1c4ca869+be65c9c1d7,gde0f65d7ad+b038c5c67d,ge278dab8ac+6b863515ed,ge410e46f29+3fc8cb0b9e,geb5476ad96+a886b35a30,gf35d7ec915+97dd712d81,gf5e32f922b+8c5ae1fdc5,gf618743f1b+3164b09b60,gf67bdafdda+3fc8cb0b9e,w.2025.18
LSST Data Management Base Package
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
CholmodSimplicialLDLT2< _MatrixType, _UpLo > Class Template Reference

#include <Eigenstuff.h>

Inheritance diagram for CholmodSimplicialLDLT2< _MatrixType, _UpLo >:

Public Types

using MatrixType = _MatrixType
 
using Index = typename MatrixType::Index
 
using RealScalar = typename MatrixType::RealScalar
 

Public Member Functions

 CholmodSimplicialLDLT2 ()
 
 CholmodSimplicialLDLT2 (MatrixType const &matrix)
 
void update (SparseMatrixD const &H, bool UpOrDown)
 

Protected Member Functions

void init ()
 

Detailed Description

template<typename _MatrixType, int _UpLo = Eigen::Lower>
class CholmodSimplicialLDLT2< _MatrixType, _UpLo >

Definition at line 50 of file Eigenstuff.h.

Member Typedef Documentation

◆ Index

template<typename _MatrixType, int _UpLo = Eigen::Lower>
using CholmodSimplicialLDLT2< _MatrixType, _UpLo >::Index = typename MatrixType::Index

Definition at line 57 of file Eigenstuff.h.

◆ MatrixType

template<typename _MatrixType, int _UpLo = Eigen::Lower>
using CholmodSimplicialLDLT2< _MatrixType, _UpLo >::MatrixType = _MatrixType

Definition at line 56 of file Eigenstuff.h.

◆ RealScalar

template<typename _MatrixType, int _UpLo = Eigen::Lower>
using CholmodSimplicialLDLT2< _MatrixType, _UpLo >::RealScalar = typename MatrixType::RealScalar

Definition at line 58 of file Eigenstuff.h.

Constructor & Destructor Documentation

◆ CholmodSimplicialLDLT2() [1/2]

template<typename _MatrixType, int _UpLo = Eigen::Lower>
CholmodSimplicialLDLT2< _MatrixType, _UpLo >::CholmodSimplicialLDLT2 ( )
inline

Definition at line 60 of file Eigenstuff.h.

60: Base() { init(); }

◆ CholmodSimplicialLDLT2() [2/2]

template<typename _MatrixType, int _UpLo = Eigen::Lower>
CholmodSimplicialLDLT2< _MatrixType, _UpLo >::CholmodSimplicialLDLT2 ( MatrixType const & matrix)
inline

Definition at line 62 of file Eigenstuff.h.

62 : Base() {
63 init();
64 this->compute(matrix);
65 }

Member Function Documentation

◆ init()

template<typename _MatrixType, int _UpLo = Eigen::Lower>
void CholmodSimplicialLDLT2< _MatrixType, _UpLo >::init ( )
inlineprotected

Definition at line 90 of file Eigenstuff.h.

90 {
91 m_cholmod.final_asis = 1;
92 m_cholmod.supernodal = CHOLMOD_SIMPLICIAL;
93 // In CholmodBase::CholmodBase(), the following statement is missing in
94 // SuiteSparse 3.2.0.8. Fixed in 3.2.7
96 }
typename MatrixType::RealScalar RealScalar
Definition Eigenstuff.h:58

◆ update()

template<typename _MatrixType, int _UpLo = Eigen::Lower>
void CholmodSimplicialLDLT2< _MatrixType, _UpLo >::update ( SparseMatrixD const & H,
bool UpOrDown )
inline

Definition at line 68 of file Eigenstuff.h.

68 {
69 // check size
72 eigen_assert(size == H.rows());
73
75 /* We have to apply the magic permutation to the update matrix,
76 read page 117 of Cholmod UserGuide.pdf */
77 // Using cholmod_l_* functions instead of cholmod_* because index is Eigen::Index instead of int.
80 Base::m_cholmodFactor->n, nullptr, -1, true, true, &this->cholmod());
84 if (!isOk) {
85 throw(LSST_EXCEPT(lsst::pex::exceptions::RuntimeError, "cholmod_update failed!"));
86 }
87 }
#define LSST_EXCEPT(type,...)
Create an exception with a given type.
Definition Exception.h:48
typename MatrixType::Index Index
Definition Eigenstuff.h:57

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