Ipopt Documentation  
IpLapack.hpp
Go to the documentation of this file.
1 // Copyright (C) 2005, 2009 International Business Machines and others.
2 // All Rights Reserved.
3 // This code is published under the Eclipse Public License.
4 //
5 // Authors: Andreas Waechter IBM 2005-12-25
6 
7 #ifndef __IPLAPACK_HPP__
8 #define __IPLAPACK_HPP__
9 
10 #include "IpUtils.hpp"
11 #include "IpException.hpp"
12 
13 namespace Ipopt
14 {
15 DECLARE_STD_EXCEPTION(LAPACK_NOT_INCLUDED);
16 
24  Index ndim,
25  Index nrhs,
26  const Number* a,
27  Index lda,
28  Number* b,
29  Index ldb
30 );
31 
40 inline void IpLapackDpotrs(
41  Index ndim,
42  Index nrhs,
43  const Number* a,
44  Index lda,
45  Number* b,
46  Index ldb
47 )
48 {
49  IpLapackPotrs(ndim, nrhs, a, lda, b, ldb);
50 }
51 
59  Index ndim,
60  Number* a,
61  Index lda,
62  Index& info
63 );
64 
73 inline void IpLapackDpotrf(
74  Index ndim,
75  Number* a,
76  Index lda,
77  Index& info
78 )
79 {
80  IpLapackPotrf(ndim, a, lda, info);
81 }
82 
91  bool compute_eigenvectors,
92  Index ndim,
93  Number* a,
94  Index lda,
95  Number* w,
96  Index& info
97 );
98 
108 inline void IpLapackDsyev(
109  bool compute_eigenvectors,
110  Index ndim,
111  Number* a,
112  Index lda,
113  Number* w,
114  Index& info
115 )
116 {
117  IpLapackSyev(compute_eigenvectors, ndim, a, lda, w, info);
118 }
119 
127  Index ndim,
128  Number* a,
129  Index* ipiv,
130  Index lda,
131  Index& info
132 );
133 
142 inline void IpLapackDgetrf(
143  Index ndim,
144  Number* a,
145  Index* ipiv,
146  Index lda,
147  Index& info
148 )
149 {
150  IpLapackGetrf(ndim, a, ipiv, lda, info);
151 }
152 
159  Index ndim,
160  Index nrhs,
161  const Number* a,
162  Index lda,
163  Index* ipiv,
164  Number* b,
165  Index ldb
166 );
167 
175 inline void IpLapackDgetrs(
176  Index ndim,
177  Index nrhs,
178  const Number* a,
179  Index lda,
180  Index* ipiv,
181  Number* b,
182  Index ldb
183 )
184 {
185  IpLapackGetrs(ndim, nrhs, a, lda, ipiv, b, ldb);
186 }
187 
196  Index ndim,
197  Index nrhs,
198  const Number* a,
199  Number* b,
200  Index ldb,
201  Index& info
202 );
203 
213 inline void IpLapackDppsv(
214  Index ndim,
215  Index nrhs,
216  const Number* a,
217  Number* b,
218  Index ldb,
219  Index& info
220 )
221 {
222  IpLapackPpsv(ndim, nrhs, a, b, ldb, info);
223 }
224 
225 } // namespace Ipopt
226 
227 #endif
IpUtils.hpp
Ipopt::IpLapackDppsv
IPOPT_DEPRECATED void IpLapackDppsv(Index ndim, Index nrhs, const Number *a, Number *b, Index ldb, Index &info)
Wrapper for LAPACK subroutine DPPSV.
Definition: IpLapack.hpp:213
Ipopt::IpLapackGetrs
IPOPTLIB_EXPORT void IpLapackGetrs(Index ndim, Index nrhs, const Number *a, Index lda, Index *ipiv, Number *b, Index ldb)
Wrapper for LAPACK subroutine XGETRS.
Ipopt::IpLapackPpsv
IPOPTLIB_EXPORT void IpLapackPpsv(Index ndim, Index nrhs, const Number *a, Number *b, Index ldb, Index &info)
Wrapper for LAPACK subroutine XPPSV.
Ipopt::IpLapackSyev
IPOPTLIB_EXPORT void IpLapackSyev(bool compute_eigenvectors, Index ndim, Number *a, Index lda, Number *w, Index &info)
Wrapper for LAPACK subroutine XSYEV.
Ipopt::IpLapackDpotrf
IPOPT_DEPRECATED void IpLapackDpotrf(Index ndim, Number *a, Index lda, Index &info)
Wrapper for LAPACK subroutine DPOTRF.
Definition: IpLapack.hpp:73
Ipopt
This file contains a base class for all exceptions and a set of macros to help with exceptions.
Definition: IpInexactAlgBuilder.hpp:14
IPOPTLIB_EXPORT
#define IPOPTLIB_EXPORT
Definition: config_default.h:10
Ipopt::IpLapackDpotrs
IPOPT_DEPRECATED void IpLapackDpotrs(Index ndim, Index nrhs, const Number *a, Index lda, Number *b, Index ldb)
Wrapper for LAPACK subroutine DPOTRS.
Definition: IpLapack.hpp:40
Ipopt::IpLapackPotrf
IPOPTLIB_EXPORT void IpLapackPotrf(Index ndim, Number *a, Index lda, Index &info)
Wrapper for LAPACK subroutine XPOTRF.
Ipopt::IpLapackDgetrs
IPOPT_DEPRECATED void IpLapackDgetrs(Index ndim, Index nrhs, const Number *a, Index lda, Index *ipiv, Number *b, Index ldb)
Wrapper for LAPACK subroutine DGETRS.
Definition: IpLapack.hpp:175
Ipopt::Index
ipindex Index
Type of all indices of vectors, matrices etc.
Definition: IpTypes.hpp:20
Ipopt::Number
ipnumber Number
Type of all numbers.
Definition: IpTypes.hpp:17
IPOPT_DEPRECATED
#define IPOPT_DEPRECATED
macro to declare symbols as deprecated
Definition: IpTypes.h:25
Ipopt::IpLapackPotrs
IPOPTLIB_EXPORT void IpLapackPotrs(Index ndim, Index nrhs, const Number *a, Index lda, Number *b, Index ldb)
Wrapper for LAPACK subroutine XPOTRS.
Ipopt::IpLapackDgetrf
IPOPT_DEPRECATED void IpLapackDgetrf(Index ndim, Number *a, Index *ipiv, Index lda, Index &info)
Wrapper for LAPACK subroutine DGETRF.
Definition: IpLapack.hpp:142
Ipopt::IpLapackDsyev
IPOPT_DEPRECATED void IpLapackDsyev(bool compute_eigenvectors, Index ndim, Number *a, Index lda, Number *w, Index &info)
Wrapper for LAPACK subroutine DSYEV.
Definition: IpLapack.hpp:108
IpException.hpp
Ipopt::DECLARE_STD_EXCEPTION
DECLARE_STD_EXCEPTION(FATAL_ERROR_IN_LINEAR_SOLVER)
Ipopt::IpLapackGetrf
IPOPTLIB_EXPORT void IpLapackGetrf(Index ndim, Number *a, Index *ipiv, Index lda, Index &info)
Wrapper for LAPACK subroutine XGETRF.