Reference documentation for deal.II version 9.2.0
\(\newcommand{\dealvcentcolon}{\mathrel{\mathop{:}}}\) \(\newcommand{\dealcoloneq}{\dealvcentcolon\mathrel{\mkern-1.2mu}=}\) \(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\) \(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
Classes | Namespaces | Functions
utilities.h File Reference
#include <deal.II/base/config.h>
#include <deal.II/base/exceptions.h>
#include <functional>
#include <string>
#include <tuple>
#include <type_traits>
#include <typeinfo>
#include <utility>
#include <vector>
#include <Epetra_Comm.h>
#include <Epetra_Map.h>
#include <Teuchos_Comm.hpp>
#include <Teuchos_RCP.hpp>
#include <Epetra_MpiComm.h>
#include <boost/archive/binary_iarchive.hpp>
#include <boost/archive/binary_oarchive.hpp>
#include <boost/core/demangle.hpp>
#include <boost/serialization/array.hpp>
#include <boost/serialization/complex.hpp>
#include <boost/serialization/vector.hpp>
#include <boost/iostreams/device/back_inserter.hpp>
#include <boost/iostreams/filter/gzip.hpp>
#include <boost/iostreams/filtering_stream.hpp>
#include <boost/iostreams/stream.hpp>

Go to the source code of this file.

Classes

struct  Utilities::System::MemoryStats
 

Namespaces

 Utilities
 
 Utilities::System
 
 Utilities::Trilinos
 

Functions

std::string Utilities::dealii_version_string ()
 
template<int dim, typename Number >
std::vector< std::array< std::uint64_t, dim > > Utilities::inverse_Hilbert_space_filling_curve (const std::vector< Point< dim, Number >> &points, const int bits_per_dim=64)
 
template<int dim>
std::vector< std::array< std::uint64_t, dim > > Utilities::inverse_Hilbert_space_filling_curve (const std::vector< std::array< std::uint64_t, dim >> &points, const int bits_per_dim=64)
 
template<int dim>
std::uint64_t Utilities::pack_integers (const std::array< std::uint64_t, dim > &index, const int bits_per_dim)
 
std::string Utilities::compress (const std::string &input)
 
std::string Utilities::decompress (const std::string &compressed_input)
 
std::string Utilities::encode_base64 (const std::vector< unsigned char > &binary_input)
 
std::vector< unsigned char > Utilities::decode_base64 (const std::string &base64_input)
 
std::string Utilities::int_to_string (const unsigned int value, const unsigned int digits=numbers::invalid_unsigned_int)
 
template<typename number >
std::string Utilities::to_string (const number value, const unsigned int digits=numbers::invalid_unsigned_int)
 
unsigned int Utilities::needed_digits (const unsigned int max_number)
 
template<typename Number >
Number Utilities::truncate_to_n_digits (const Number number, const unsigned int n_digits)
 
int Utilities::string_to_int (const std::string &s)
 
std::string Utilities::dim_string (const int dim, const int spacedim)
 
std::vector< intUtilities::string_to_int (const std::vector< std::string > &s)
 
double Utilities::string_to_double (const std::string &s)
 
std::vector< doubleUtilities::string_to_double (const std::vector< std::string > &s)
 
std::vector< std::string > Utilities::split_string_list (const std::string &s, const std::string &delimiter=",")
 
std::vector< std::string > Utilities::split_string_list (const std::string &s, const char delimiter)
 
std::vector< std::string > Utilities::break_text_into_lines (const std::string &original_text, const unsigned int width, const char delimiter=' ')
 
bool Utilities::match_at_string_start (const std::string &name, const std::string &pattern)
 
std::pair< int, unsigned intUtilities::get_integer_at_position (const std::string &name, const unsigned int position)
 
std::string Utilities::replace_in_string (const std::string &input, const std::string &from, const std::string &to)
 
std::string Utilities::trim (const std::string &input)
 
double Utilities::generate_normal_random_number (const double a, const double sigma)
 
template<class T >
std::string Utilities::type_to_string (const T &t)
 
template<int N, typename T >
Utilities::fixed_power (const T t)
 
template<typename T >
constexpr T Utilities::pow (const T base, const int iexp)
 
template<typename Iterator , typename T >
Iterator Utilities::lower_bound (Iterator first, Iterator last, const T &val)
 
template<typename Iterator , typename T , typename Comp >
Iterator Utilities::lower_bound (Iterator first, Iterator last, const T &val, const Comp comp)
 
template<typename Integer >
std::vector< Integer > Utilities::reverse_permutation (const std::vector< Integer > &permutation)
 
template<typename Integer >
std::vector< Integer > Utilities::invert_permutation (const std::vector< Integer > &permutation)
 
template<typename T >
size_t Utilities::pack (const T &object, std::vector< char > &dest_buffer, const bool allow_compression=true)
 
template<typename T >
std::vector< char > Utilities::pack (const T &object, const bool allow_compression=true)
 
template<typename T >
Utilities::unpack (const std::vector< char > &buffer, const bool allow_compression=true)
 
template<typename T >
Utilities::unpack (const std::vector< char >::const_iterator &cbegin, const std::vector< char >::const_iterator &cend, const bool allow_compression=true)
 
template<typename T , int N>
void Utilities::unpack (const std::vector< char > &buffer, T(&unpacked_object)[N], const bool allow_compression=true)
 
template<typename T , int N>
void Utilities::unpack (const std::vector< char >::const_iterator &cbegin, const std::vector< char >::const_iterator &cend, T(&unpacked_object)[N], const bool allow_compression=true)
 
template<typename To , typename From >
std::unique_ptr< To > Utilities::dynamic_unique_cast (std::unique_ptr< From > &&p)
 
double Utilities::System::get_cpu_load ()
 
const std::string Utilities::System::get_current_vectorization_level ()
 
void Utilities::System::get_memory_stats (MemoryStats &stats)
 
std::string Utilities::System::get_hostname ()
 
std::string Utilities::System::get_time ()
 
std::string Utilities::System::get_date ()
 
void Utilities::System::posix_memalign (void **memptr, std::size_t alignment, std::size_t size)
 
const Epetra_Comm & Utilities::Trilinos::comm_world ()
 
const Epetra_Comm & Utilities::Trilinos::comm_self ()
 
const Teuchos::RCP< const Teuchos::Comm< int > > & Utilities::Trilinos::tpetra_comm_self ()
 
Epetra_Comm * Utilities::Trilinos::duplicate_communicator (const Epetra_Comm &communicator)
 
void Utilities::Trilinos::destroy_communicator (Epetra_Comm &communicator)
 
unsigned int Utilities::Trilinos::get_n_mpi_processes (const Epetra_Comm &mpi_communicator)
 
unsigned int Utilities::Trilinos::get_this_mpi_process (const Epetra_Comm &mpi_communicator)
 
Epetra_Map Utilities::Trilinos::duplicate_map (const Epetra_BlockMap &map, const Epetra_Comm &comm)