MAST3
Multidisciplinary-design Adaptation and Sensitivity Toolkit (MAST)
utility.hpp File Reference
#include <mast/base/mast_data_types.h>
#include <mast/base/exceptions.hpp>
#include <mast/numerics/utility.hpp>
#include <libmesh/dof_map.h>
#include <libmesh/dense_vector.h>
#include <libmesh/dense_matrix.h>
#include <libmesh/numeric_vector.h>
#include <libmesh/sparse_matrix.h>
Include dependency graph for utility.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 MAST
 
 MAST::Base
 
 MAST::Base::Assembly
 
 MAST::Base::Assembly::libMeshWrapper
 

Functions

template<typename ScalarType , typename MatType >
void MAST::Base::Assembly::libMeshWrapper::add_to_matrix (MatType &m, const uint_t i, const uint_t j, const ScalarType &v)
 
void MAST::Base::Assembly::libMeshWrapper::add_to_matrix (libMesh::SparseMatrix< real_t > &m, const uint_t i, const uint_t j, const real_t &v)
 
template<typename ScalarType , int P2, typename P3 >
void MAST::Base::Assembly::libMeshWrapper::add_to_matrix (Eigen::SparseMatrix< ScalarType, P2, P3 > &m, const uint_t i, const uint_t j, const ScalarType &v)
 
template<typename ScalarType , typename VecType >
void MAST::Base::Assembly::libMeshWrapper::add_to_vector (VecType &v, const uint_t i, const ScalarType &s)
 
void MAST::Base::Assembly::libMeshWrapper::add_to_vector (libMesh::NumericVector< real_t > &v, const uint_t i, const real_t &s)
 
template<typename ScalarType , typename MatType , typename SubMatType >
std::enable_if< std::is_same< ScalarType, real_t >::value, void >::type MAST::Base::Assembly::libMeshWrapper::constrain_and_add_matrix (MatType &m, const libMesh::DofMap &dof_map, std::vector< libMesh::dof_id_type > &dof_indices, SubMatType &m_sub)
 
template<typename ScalarType , typename MatType , typename SubMatType >
std::enable_if< std::is_same< ScalarType, complex_t >::value, void >::type MAST::Base::Assembly::libMeshWrapper::constrain_and_add_matrix (MatType &m, const libMesh::DofMap &dof_map, std::vector< libMesh::dof_id_type > &dof_indices, SubMatType &m_sub)
 
void MAST::Base::Assembly::libMeshWrapper::constrain_and_add_matrix (libMesh::SparseMatrix< real_t > &m, const libMesh::DofMap &dof_map, std::vector< libMesh::dof_id_type > &dof_indices, libMesh::DenseMatrix< real_t > &m_sub)
 
template<typename ScalarType , typename VecType , typename MatType , typename SubVecType , typename SubMatType >
std::enable_if< std::is_same< ScalarType, real_t >::value, void >::type MAST::Base::Assembly::libMeshWrapper::constrain_and_add_matrix_and_vector (VecType &v, MatType &m, const libMesh::DofMap &dof_map, std::vector< libMesh::dof_id_type > &dof_indices, SubVecType &v_sub, SubMatType &m_sub)
 
template<typename ScalarType , typename VecType , typename MatType , typename SubVecType , typename SubMatType >
std::enable_if< std::is_same< ScalarType, complex_t >::value, void >::type MAST::Base::Assembly::libMeshWrapper::constrain_and_add_matrix_and_vector (VecType &v, MatType &m, const libMesh::DofMap &dof_map, std::vector< libMesh::dof_id_type > &dof_indices, SubVecType &v_sub, SubMatType &m_sub)
 
void MAST::Base::Assembly::libMeshWrapper::constrain_and_add_matrix_and_vector (libMesh::NumericVector< real_t > &v, libMesh::SparseMatrix< real_t > &m, const libMesh::DofMap &dof_map, std::vector< libMesh::dof_id_type > &dof_indices, libMesh::DenseVector< real_t > &v_sub, libMesh::DenseMatrix< real_t > &m_sub)
 
template<typename ScalarType , typename VecType , typename SubVecType >
std::enable_if< std::is_same< ScalarType, real_t >::value, void >::type MAST::Base::Assembly::libMeshWrapper::constrain_and_add_vector (VecType &v, const libMesh::DofMap &dof_map, std::vector< libMesh::dof_id_type > &dof_indices, SubVecType &v_sub)
 
template<typename ScalarType , typename VecType , typename SubVecType >
std::enable_if< std::is_same< ScalarType, complex_t >::value, void >::type MAST::Base::Assembly::libMeshWrapper::constrain_and_add_vector (VecType &v, const libMesh::DofMap &dof_map, std::vector< libMesh::dof_id_type > &dof_indices, SubVecType &v_sub)
 
void MAST::Base::Assembly::libMeshWrapper::constrain_and_add_vector (libMesh::NumericVector< real_t > &v, const libMesh::DofMap &dof_map, std::vector< libMesh::dof_id_type > &dof_indices, libMesh::DenseVector< real_t > &v_sub)