5#ifndef EIGEN_NONLINEAROPTIMIZATION_R1MPYQ_H
6#define EIGEN_NONLINEAROPTIMIZATION_R1MPYQ_H
8#include "./InternalHeaderCheck.h"
18template <
typename Scalar,
typename Derived>
19void r1mpyq(MatrixBase<Derived> &a_,
const std::vector<JacobiRotation<Scalar> > &v_givens,
20 const std::vector<JacobiRotation<Scalar> > &w_givens) {
21 Derived &a = a_.derived();
22 const Index n = a.cols();
25 for (Index j = n - 2; j >= 0; --j) a.applyOnTheRight(j, n - 1, v_givens[j]);
27 for (Index j = 0; j < n - 1; ++j) a.applyOnTheRight(j, n - 1, w_givens[j].transpose());
Namespace containing all symbols from the Eigen library.