ROL
|
Test of StdLinearOperator, its inverse and transpose. More...
#include "ROL_StdLinearOperator.hpp"
#include "ROL_Stream.hpp"
#include "Teuchos_GlobalMPISession.hpp"
Go to the source code of this file.
Typedefs | |
typedef double | RealT |
Functions | |
int | main (int argc, char *argv[]) |
Test of StdLinearOperator, its inverse and transpose.
\( A=\begin{pmatrix} 4 & 1 \\ 2 & 3 \end{pmatrix},\quad A^{-1}=\frac{1}{10}\begin{pmatrix} 4 & -1 \\ -2 & 3 \end{pmatrix} \)
1) Compute \(b\) in \(Ax = b\), when \( x=\begin{pmatrix} 1 \\ -1 \end{pmatrix}\)
2) Solve for \(x\) in the above when \(b=\begin{pmatrix} 3 \\ -1 \end{pmatrix}\)
3) Compute \(c\) in \(A^\top y=c\) when \(y=\begin{pmatrix} -2 \\ 1 \end{pmatrix}\)
4) Solve for \(y\) in the above when \(c=\begin{pmatrix} -6 \\ 1 \end{pmatrix}\)
Also ensure that the interface works with both ROL::Vector and std::vector arguments
Definition in file function/operator/test_01.cpp.
typedef double RealT |
Definition at line 65 of file function/operator/test_01.cpp.
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 67 of file function/operator/test_01.cpp.