AutoDiffHelpers.hpp File Reference
#include <opm/autodiff/AutoDiffBlock.hpp>
#include <opm/autodiff/GridHelpers.hpp>
#include <opm/core/grid.h>
#include <opm/common/ErrorMacros.hpp>
#include <opm/parser/eclipse/EclipseState/Grid/NNC.hpp>
#include <opm/parser/eclipse/EclipseState/EclipseState.hpp>
#include <iostream>
#include <vector>
Include dependency graph for AutoDiffHelpers.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Opm::HelperOps
 
class  Opm::UpwindSelector< Scalar >
 
class  Opm::Selector< Scalar >
 Selection. Choose first of two elements if selection basis element is nonnegative. More...
 
class  Opm::Span
 
class  Opm::Span::SpanIterator
 

Namespaces

 Opm
 

Functions

template<typename Scalar , class IntVec >
Eigen::Array< Scalar,
Eigen::Dynamic, 1 > 
Opm::subset (const Eigen::Array< Scalar, Eigen::Dynamic, 1 > &x, const IntVec &indices)
 Returns x(indices). More...
 
template<typename Scalar , class IntVec >
AutoDiffBlock< Scalar > Opm::subset (const AutoDiffBlock< Scalar > &x, const IntVec &indices)
 Returns x(indices). More...
 
template<typename Scalar , class IntVec >
AutoDiffBlock< Scalar > Opm::superset (const AutoDiffBlock< Scalar > &x, const IntVec &indices, const int n)
 Returns v where v(indices) == x, v(!indices) == 0 and v.size() == n. More...
 
template<typename Scalar , class IntVec >
Eigen::Array< Scalar,
Eigen::Dynamic, 1 > 
Opm::superset (const Eigen::Array< Scalar, Eigen::Dynamic, 1 > &x, const IntVec &indices, const int n)
 Returns v where v(indices) == x, v(!indices) == 0 and v.size() == n. More...
 
Eigen::SparseMatrix< double > Opm::spdiag (const AutoDiffBlock< double >::V &d)
 
template<class Matrix >
void Opm::collapseJacs (const AutoDiffBlock< double > &x, Matrix &jacobian)
 Returns the input expression, but with all Jacobians collapsed to one. More...
 
AutoDiffBlock< double > Opm::collapseJacs (const AutoDiffBlock< double > &x)
 Returns the input expression, but with all Jacobians collapsed to one. More...
 
AutoDiffBlock< double > Opm::vertcat (const AutoDiffBlock< double > &x, const AutoDiffBlock< double > &y)
 Returns the vertical concatenation [ x; y ] of the inputs. More...
 
AutoDiffBlock< double > Opm::vertcatCollapseJacs (const std::vector< AutoDiffBlock< double > > &x)
 
Eigen::ArrayXd Opm::sign (const Eigen::ArrayXd &x)
 Return a vector of (-1.0, 0.0 or 1.0), depending on sign per element. More...