MCPcopy Create free account
hub / github.com/NGSolve/ngsolve / SolveTransFromLU

Function SolveTransFromLU

basiclinalg/LUdecomposition.cpp:468–484  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

466
467
468 void SolveTransFromLU (SliceMatrix<double> A, FlatArray<int> p, SliceMatrix<double,ColMajor> X)
469 {
470 TriangularSolve<LowerLeft> (Trans(A).Bare(), X);
471 TriangularSolve<UpperRight,Normalized> (Trans(A).Bare(), X);
472
473 size_t n = X.Height();
474
475 VectorMem<100,double> hv(n);
476 for (size_t i = 0; i < X.Width(); i++)
477 {
478 auto coli = X.Col(i);
479 hv = coli;
480 for (size_t j = 0; j < n; j++)
481 coli(p[j]) = hv(j);
482 }
483
484 }
485
486
487

Callers 1

AInvBtFunction · 0.85

Calls 4

TransFunction · 0.70
HeightMethod · 0.45
WidthMethod · 0.45
ColMethod · 0.45

Tested by

no test coverage detected