Ipopt 3.12.10

- Main Page
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
IpZeroSymMatrix.hpp
Go to the documentation of this file.
1 // Copyright (C) 2004, 2008 International Business Machines and others.
2 // All Rights Reserved.
3 // This code is published under the Eclipse Public License.
4 //
5 // $Id: IpZeroSymMatrix.hpp 2269 2013-05-05 11:32:40Z stefan $
6 //
7 // Authors: Carl Laird, Andreas Waechter IBM 2004-08-13
8
9 #ifndef __IPZEROSYMMATRIX_HPP__
10 #define __IPZEROSYMMATRIX_HPP__
11
12 #include "IpUtils.hpp"
13 #include "IpSymMatrix.hpp"
14
15 namespace Ipopt
16 {
17
20 class ZeroSymMatrix : public SymMatrix
21 {
22 public:
23
26
29 ZeroSymMatrix(const SymMatrixSpace* owner_space);
30
32 ~ZeroSymMatrix();
34
35 protected:
38 virtual void MultVectorImpl(Number alpha, const Vector& x,
39 Number beta, Vector& y) const;
40
41 virtual void TransMultVectorImpl(Number alpha, const Vector& x,
42 Number beta, Vector& y) const;
43
44 virtual void ComputeRowAMaxImpl(Vector& rows_norms, bool init) const
45 {}
46
47 virtual void ComputeColAMaxImpl(Vector& cols_norms, bool init) const
48 {}
49
50 virtual void PrintImpl(const Journalist& jnlst,
51 EJournalLevel level,
52 EJournalCategory category,
53 const std::string& name,
54 Index indent,
55 const std::string& prefix) const;
57
58 private:
68 ZeroSymMatrix();
69
71 ZeroSymMatrix(const ZeroSymMatrix&);
72
74 void operator=(const ZeroSymMatrix&);
76 };
77
79 class ZeroSymMatrixSpace : public SymMatrixSpace
80 {
81 public:
86 ZeroSymMatrixSpace(Index dim)
87 :
88 SymMatrixSpace(dim)
89 {}
90
92 virtual ~ZeroSymMatrixSpace()
93 {}
95
98 virtual Matrix* MakeNew() const
99 {
100 return MakeNewZeroSymMatrix();
101 }
102
105 virtual SymMatrix* MakeNewSymMatrix() const
106 {
107 return MakeNewZeroSymMatrix();
108 }
109
111 ZeroSymMatrix* MakeNewZeroSymMatrix() const
112 {
113 return new ZeroSymMatrix(this);
114 }
115 private:
125 ZeroSymMatrixSpace();
126
128 ZeroSymMatrixSpace(const ZeroSymMatrixSpace&);
129
131 void operator=(const ZeroSymMatrixSpace&);
133 };
134 } // namespace Ipopt
135 #endif
x
Number * x
Input: Starting point Output: Optimal solution.
Definition: IpStdCInterface.h:238
Ipopt::ZeroSymMatrixSpace::ZeroSymMatrixSpace
ZeroSymMatrixSpace()
Default Constructor.
Ipopt::ZeroSymMatrixSpace::ZeroSymMatrixSpace
ZeroSymMatrixSpace(Index dim)
Constructor, given the number of row and columns.
Definition: IpZeroSymMatrix.hpp:86
IpUtils.hpp
Ipopt::ZeroSymMatrixSpace::~ZeroSymMatrixSpace
virtual ~ZeroSymMatrixSpace()
Destructor.
Definition: IpZeroSymMatrix.hpp:92
Ipopt::ZeroSymMatrixSpace::MakeNewSymMatrix
virtual SymMatrix * MakeNewSymMatrix() const
Overloaded method from SymMatrixSpace base class.
Definition: IpZeroSymMatrix.hpp:105
IpSymMatrix.hpp
Ipopt::ZeroSymMatrix::MultVectorImpl
virtual void MultVectorImpl(Number alpha, const Vector &x, Number beta, Vector &y) const
Matrix-vector multiply.
Ipopt::ZeroSymMatrix::~ZeroSymMatrix
~ZeroSymMatrix()
Destructor.
Ipopt::ZeroSymMatrixSpace::MakeNewZeroSymMatrix
ZeroSymMatrix * MakeNewZeroSymMatrix() const
Method for creating a new matrix of this specific type.
Definition: IpZeroSymMatrix.hpp:111
Ipopt::Number
double Number
Type of all numbers.
Definition: IpTypes.hpp:17
Ipopt::Vector
Vector Base Class.
Definition: IpVector.hpp:47
Ipopt::EJournalLevel
EJournalLevel
Print Level Enum.
Definition: IpJournalist.hpp:51
Ipopt::ZeroSymMatrixSpace::operator=
void operator=(const ZeroSymMatrixSpace &)
Overloaded Equals Operator.
Ipopt::SymMatrix
This is the base class for all derived symmetric matrix types.
Definition: IpSymMatrix.hpp:23
Ipopt::ZeroSymMatrix::ComputeColAMaxImpl
virtual void ComputeColAMaxImpl(Vector &cols_norms, bool init) const
Since the matrix is symmetric, the row and column max norms are identical.
Definition: IpZeroSymMatrix.hpp:47
Ipopt::ZeroSymMatrix::ZeroSymMatrix
ZeroSymMatrix()
Default Constructor.
Ipopt::Matrix
Matrix Base Class.
Definition: IpMatrix.hpp:27
Ipopt::Index
int Index
Type of all indices of vectors, matrices etc.
Definition: IpTypes.hpp:19
Ipopt::ZeroSymMatrix::TransMultVectorImpl
virtual void TransMultVectorImpl(Number alpha, const Vector &x, Number beta, Vector &y) const
Since the matrix is symmetric, it is only necessary to implement the MultVectorImpl method in a class...
Ipopt::ZeroSymMatrixSpace::MakeNew
virtual Matrix * MakeNew() const
Overloaded MakeNew method for the MatrixSpace base class.
Definition: IpZeroSymMatrix.hpp:98
Ipopt::ZeroSymMatrix::ComputeRowAMaxImpl
virtual void ComputeRowAMaxImpl(Vector &rows_norms, bool init) const
Compute the max-norm of the rows in the matrix.
Definition: IpZeroSymMatrix.hpp:44
Ipopt::ZeroSymMatrix::operator=
void operator=(const ZeroSymMatrix &)
Overloaded Equals Operator.
Ipopt::SymMatrixSpace
SymMatrixSpace base class, corresponding to the SymMatrix base class.
Definition: IpSymMatrix.hpp:81
Ipopt::Journalist
Class responsible for all message output.
Definition: IpJournalist.hpp:134
Ipopt::ZeroSymMatrix::PrintImpl
virtual void PrintImpl(const Journalist &jnlst, EJournalLevel level, EJournalCategory category, const std::string &name, Index indent, const std::string &prefix) const
Print detailed information about the matrix.
Ipopt::ZeroSymMatrixSpace
Class for matrix space for ZeroSymMatrix.
Definition: IpZeroSymMatrix.hpp:79
Ipopt::EJournalCategory
EJournalCategory
Category Selection Enum.
Definition: IpJournalist.hpp:70
Ipopt::ZeroSymMatrix
Class for Symmetric Matrices with only zero entries.
Definition: IpZeroSymMatrix.hpp:20