8 template <
typename Scalar>
30 w[
n - 1] =
s(
n - 1,
n - 1);
34 for (
j =
n - 2;
j >= 0; --
j) {
43 v[
n - 1] = givens.
s() *
v[
j] + givens.
c() *
v[
n - 1];
47 for (
i =
j;
i <
m; ++
i) {
48 temp = givens.
c() *
s(
j,
i) - givens.
s() *
w[
i];
49 w[
i] = givens.
s() *
s(
j,
i) + givens.
c() *
w[
i];
53 v_givens[
j] = IdentityRotation;
61 for (
j = 0;
j <
n - 1; ++
j) {
68 for (
i =
j;
i <
m; ++
i) {
69 temp = givens.
c() *
s(
j,
i) + givens.
s() *
w[
i];
70 w[
i] = -givens.
s() *
s(
j,
i) + givens.
c() *
w[
i];
78 v_givens[
j] = IdentityRotation;
86 s(
n - 1,
n - 1) =
w[
n - 1];
Array< int, Dynamic, 1 > v
Definition: Array_initializer_list_vector_cxx11.cpp:1
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 Scalar
Definition: bench_gemm.cpp:45
Rotation given by a cosine-sine pair.
Definition: Jacobi.h:38
EIGEN_DEVICE_FUNC Scalar & s()
Definition: Jacobi.h:50
EIGEN_DEVICE_FUNC void makeGivens(const Scalar &p, const Scalar &q, Scalar *r=0)
Definition: Jacobi.h:152
EIGEN_DEVICE_FUNC Scalar & c()
Definition: Jacobi.h:48
RealScalar s
Definition: level1_cplx_impl.h:130
int * m
Definition: level2_cplx_impl.h:294
void r1updt(Matrix< Scalar, Dynamic, Dynamic > &s, const Matrix< Scalar, Dynamic, 1 > &u, std::vector< JacobiRotation< Scalar > > &v_givens, std::vector< JacobiRotation< Scalar > > &w_givens, Matrix< Scalar, Dynamic, 1 > &v, Matrix< Scalar, Dynamic, 1 > &w, bool *sing)
Definition: r1updt.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