4 #include "../typedefs.hpp"
8 #include <Eigen/Cholesky>
20 template <
typename storage>
27 if (a_row_index == b_row_index){
28 Eigen::SparseMatrix<storage> B_pers(b_row_index, b_col_index);
30 L_up = (B_pers*B_pers.transpose()).
template cast<coefficient_type>();
32 }
else if (a_row_index == -1){
36 }
else if (b_col_index == -1){
37 L_up.setZero(a_row_index+1,a_row_index+1);
44 Eigen::SparseMatrix<storage> B_pers_int(b_row_index, b_col_index);
48 Eigen::SparseMatrix<storage> L_up_b_int(B_pers_int.rows(), B_pers_int.rows());
50 L_up_b_int.template selfadjointView<Eigen::Lower>().rankUpdate(B_pers_int);
52 L_up_b = L_up_b_int.template cast<coefficient_type>();
54 int a_rows = a_row_index + 1;
55 int b_rows = b_row_index + 1;
71 SparseMatrix_PL D = L_up_b.bottomRightCorner(b_rows-a_rows, b_rows-a_rows);
Definition: FilteredBoundaryMatrix.hpp:15
void submatrix_at_filtration(filtration_type a, Eigen::SparseMatrix< FBMcoeff, Eigen::ColMajor > &M)
Definition: FilteredBoundaryMatrix.hpp:101
int index_of_filtration(bool use_domain_filtrations, filtration_type a)
Definition: FilteredBoundaryMatrix.hpp:78
Definition: Complex.cpp:26
void schur_algorithm(petls::FilteredBoundaryMatrix< storage > *fbm, filtration_type a, filtration_type b, DenseMatrix_PL &L_up)
Definition: up_algorithms.cpp:17
Eigen::Matrix< coefficient_type, Eigen::Dynamic, Eigen::Dynamic > DenseMatrix_PL
Definition: typedefs.hpp:14
Eigen::SparseMatrix< coefficient_type, Eigen::ColMajor > SparseMatrix_PL
Definition: typedefs.hpp:13
double filtration_type
Definition: typedefs.hpp:24