QR_Q.hh

Go to the documentation of this file.
1 
8 #ifndef QR_Q_hh
9 #define QR_Q_hh
10 
11 #include <cfloat>
12 #include "basics/typedefs.hh"
13 #include "basics/outputOperator.hh"
14 #include "function/vector.hh"
15 #include "toolbox/array.hh"
16 
17 using concepts::Real;
18 using concepts::Cmplx;
19 
20 namespace concepts {
21 
22  // *************************************************************** QR_Q **
23 
27  template<class F>
28  class QR_Q {
29  public:
30  QR_Q(const concepts::Array<concepts::Vector<F>*>& A, const int m);
31  virtual ~QR_Q();
33  protected:
34  virtual std::ostream& info(std::ostream& os) const;
35  private:
41  int m_;
42  int n_;
44  bool computed_;
46  void compute_();
47  };
48 
49 } // namespace conepts
50 
51 #endif // QR_Q_hh
QR_Q(const concepts::Array< concepts::Vector< F > * > &A, const int m)
bool computed_
Computed?
Definition: QR_Q.hh:44
concepts::Array< concepts::Vector< F > * > Q_
Q matrix Q.
Definition: QR_Q.hh:39
virtual ~QR_Q()
virtual std::ostream & info(std::ostream &os) const
const concepts::Array< concepts::Vector< F > * > & A_
Matrix A.
Definition: QR_Q.hh:37
void compute_()
Compute Q.
An array of objects.
Definition: bilinearForm.hh:23
int m_
Dimensions of the matrix A.
Definition: QR_Q.hh:41
virtual const concepts::Array< concepts::Vector< F > * > & getQ()
std::complex< Real > Cmplx
Type for a complex number. It also depends on the setting of Real.
Definition: typedefs.hh:39
Gives min(N,M) by min(N,M) - Q matrix of QR decomposition of a M by N non sparse matrix A.
Definition: QR_Q.hh:28
double Real
Type normally used for a floating point number.
Definition: typedefs.hh:36
Basic namespace for Concepts-2.
Definition: pml_formula.h:16
Page URL: http://wiki.math.ethz.ch/bin/view/Concepts/WebHome
21 August 2020
© 2020 Eidgenössische Technische Hochschule Zürich