8 template <
typename Scalar>
15 std::vector<JacobiRotation<Scalar> > givens(
n);
27 temp = givens[
i].c() *
r(
i,
j) + givens[
i].s() * rowj;
28 rowj = -givens[
i].s() *
r(
i,
j) + givens[
i].c() * rowj;
33 givens[
j].makeGivens(-
r(
j,
j), rowj);
35 if (rowj == 0.)
continue;
38 r(
j,
j) = givens[
j].c() *
r(
j,
j) + givens[
j].s() * rowj;
39 temp = givens[
j].c() *
b[
j] + givens[
j].s() *
alpha;
int i
Definition: BiCGSTAB_step_by_step.cpp:9
const unsigned n
Definition: CG3DPackingUnitTest.cpp:11
#define eigen_assert(x)
Definition: Macros.h:910
RowVector3d w
Definition: Matrix_resize_int.cpp:3
Scalar * b
Definition: benchVecAdd.cpp:17
SCALAR Scalar
Definition: bench_gemm.cpp:45
RealScalar alpha
Definition: level1_cplx_impl.h:151
void rwupdt(Matrix< Scalar, Dynamic, Dynamic > &r, const Matrix< Scalar, Dynamic, 1 > &w, Matrix< Scalar, Dynamic, 1 > &b, Scalar alpha)
Definition: rwupdt.h:9
Namespace containing all symbols from the Eigen library.
Definition: bench_norm.cpp:70
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
Definition: Meta.h:83
EIGEN_DEFAULT_DENSE_INDEX_TYPE DenseIndex
Definition: Meta.h:75
Definition: Eigen_Colamd.h:49
std::ptrdiff_t j
Definition: tut_arithmetic_redux_minmax.cpp:2