Skip to main content

setup_a_unreg

Function setup_a_unreg 

Source
pub fn setup_a_unreg<const NU: usize, const NV: usize>(
    b_mat: &MatA<NV, NU>,
    wv: &VecN<NV>,
) -> MatA<NV, NU>
where Const<NV>: DimName + DimMin<Const<NU>, Output = Const<NU>>, Const<NU>: DimName, DefaultAllocator: Allocator<Const<NV>, Const<NU>> + Allocator<Const<NV>, Const<NV>> + Allocator<Const<NU>, Const<NU>> + Allocator<Const<NV>> + Allocator<Const<NU>>,
Expand description

Build the unregularised coefficient matrix A = Wv · G.

Returns an NV × NU matrix suitable for solve_cls with NC = NV. No regularisation rows are appended, so this is appropriate when the regularisation term γ ‖Wu (u − u_pref)‖² is not desired.