#include "ladel_types.h"
#include "ladel_global.h"
#include "ladel_constants.h"
#include "ladel_rank1_mod.h"
#include "ladel_debug_print.h"
Go to the source code of this file.
Functions | |
ladel_int | ladel_add_nonzero_pattern_to_col_of_L (ladel_sparse_matrix *L, ladel_int col, ladel_set *col_set, ladel_set *set, ladel_set *difference, ladel_int *offset, ladel_int *insertions) |
Adds the nonzero pattern in set to the pattern of the col of L. More... | |
ladel_int | ladel_set_union (ladel_set *first_set, ladel_set *second_set, ladel_set *difference, ladel_int *offset, ladel_int *insertions, ladel_int threshold) |
Computes the set union of two index sets. More... | |
ladel_int | ladel_rank1_update (ladel_factor *LD, ladel_symbolics *sym, ladel_sparse_matrix *W, ladel_int col_in_W, ladel_double factor, ladel_int up_or_down, ladel_work *work) |
Updates an \(LDL^T\) factorization. More... | |
ladel_int ladel_add_nonzero_pattern_to_col_of_L | ( | ladel_sparse_matrix * | L, |
ladel_int | col, | ||
ladel_set * | col_set, | ||
ladel_set * | set, | ||
ladel_set * | difference, | ||
ladel_int * | offset, | ||
ladel_int * | insertions | ||
) |
Adds the nonzero pattern in set to the pattern of the col of L.
L | Sparse factor |
col | Column index |
col_set | Pointer to set struct that can hold the pattern of a column of L |
set | Nonzero pattern to be added |
difference | Output elements in set that did not occur in the column of L |
offset | Output list of offset indices of original elements of the column of L |
insertions | Output list of indices where new elements have been added to the column of L |
Definition at line 7 of file ladel_rank1_mod.c.
ladel_int ladel_set_union | ( | ladel_set * | first_set, |
ladel_set * | second_set, | ||
ladel_set * | difference, | ||
ladel_int * | offset, | ||
ladel_int * | insertions, | ||
ladel_int | threshold | ||
) |
Computes the set union of two index sets.
The result is stored in first_set. This function also returns some information on the set union, that is:
first_set | First input set, on output the set union |
second_set | Second input set |
difference | Output elements in second_set that were not originally in first_set |
offset | Output list of offset indices of original elements of the first_set |
insertions | Output list of indices where new elements have been added to first_set from second_set |
threshold | Only elements from the second_set with value > this threshold are considered |
Definition at line 33 of file ladel_rank1_mod.c.