Skip to main content

DdDense

Struct DdDense 

Source
pub struct DdDense;
Expand description

The dense kernel of xingo-sparse for double-double blocks, with the results of NaiveDense bit for bit (Chapter 11.7): gemm_sub, syrk_sub and the triangular solves run the column update of crate::kernels::gemm_sub on SIMD registers (feature simd), and so does potrf (left-looking since xingo-sparse 0.4.0); sytrf is that of NaiveDense. With it SupernodalLdl<DoubleDouble, DdDense> spends its time in SIMD.

use xingo_extprec::{DdDense, DoubleDouble};
use xingo_sparse::{DenseBlock, DenseKernel, NaiveDense};
let third = DoubleDouble::ONE / 3.0;
let a = DenseBlock { rows: 2, cols: 1, data: vec![third, DoubleDouble::ONE] };
let mut c = DenseBlock { rows: 2, cols: 2, data: vec![DoubleDouble::ONE; 4] };
let mut d = c.clone();
DdDense.syrk_sub(&a, &mut c);
NaiveDense.syrk_sub(&a, &mut d);
assert_eq!(c, d);

Trait Implementations§

Source§

impl Clone for DdDense

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for DdDense

Source§

impl Debug for DdDense

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for DdDense

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl DenseKernel<DoubleDouble> for DdDense

Source§

fn potrf(&self, a: &mut DenseBlock<DoubleDouble>) -> Result<(), DenseError>

In-place Cholesky A = L Lᵀ of a square block (Algorithm P).
Source§

fn sytrf( &self, a: &mut DenseBlock<DoubleDouble>, perm: &mut Perm, pivot_2x2: &mut Vec<bool>, ) -> Result<Inertia, DenseError>

In-place P A Pᵀ = L B Lᵀ with 1×1/2×2 pivots (Bunch–Kaufman, Algorithm B); returns the inertia and writes the permutation into perm and the 2×2 marks into pivot_2x2 (both resized to n).
Source§

fn trsm_lower( &self, l: &DenseBlock<DoubleDouble>, b: &mut DenseBlock<DoubleDouble>, transpose: bool, )

B ← B L⁻ᵀ (transpose = true) or B ← L⁻¹ B (false), L square, non-unit lower triangular. Read more
Source§

fn gemm_sub( &self, a: &DenseBlock<DoubleDouble>, b: &DenseBlock<DoubleDouble>, c: &mut DenseBlock<DoubleDouble>, )

C ← C − A Bᵀ. Read more
Source§

fn syrk_sub( &self, a: &DenseBlock<DoubleDouble>, c: &mut DenseBlock<DoubleDouble>, )

C ← C − A Aᵀ, lower triangle of C. Read more
Source§

fn name(&self) -> &'static str

A short name for logs and tables.
Source§

fn solve_min_rows(&self) -> usize

The smallest row count n_r of a supernode block for which the solves of SupernodalLdl go through this kernel (gather, hook, scatter; step S0′ of Chapter 5.17). usize::MAX — the default — keeps the loops of the second edition everywhere. A cost switch only (invariant (D5)).
Source§

fn solve_unit_lower( &self, l: &DenseBlock<DoubleDouble>, skip: &[bool], y: &mut [DoubleDouble], )

Forward half of a supernode’s solve, y ← L⁻¹ y (Algorithm V). l is the stored block (rows ≥ cols, unit lower trapezoidal, diagonal slots ignored); skip is empty or has l.cols marks (the first column of each 2×2 pivot). Read more
Source§

fn solve_unit_lower_t( &self, l: &DenseBlock<DoubleDouble>, skip: &[bool], y: &mut [DoubleDouble], )

Backward half, y_{..cols} ← L₁₁⁻ᵀ (y_{..cols} − L₂₁ᵀ y_{cols..}) (Algorithm W); y[cols..] is read only. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.