![]() |
ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
|
#include <Vector.hpp>
Classes | |
| struct | is_vector |
| struct | is_vector< Vector< U, Np > > |
Public Member Functions | |
| Vector () noexcept=default | |
| Vector (Vector const &) noexcept=default | |
| Vector & | operator= (Vector const &) noexcept=default |
| void | swap (Vector &rhs) |
| template<class Range> requires (not is_vector<std::remove_cvref_t<Range>>::value and not std::is_same_v<std::remove_cvref_t<Range>, T[N]>) | |
| constexpr | Vector (Range &&rng) |
| constexpr | Vector (T const (&v)[N]) noexcept |
| constexpr | Vector (Array< T, N > const &array) noexcept |
| constexpr | Vector (std::initializer_list< T > v) |
| template<typename InputIterator> | |
| Vector (InputIterator first, InputIterator last) | |
| std::vector< T > | as_vector () const |
| operator std::vector< T > () const | |
| constexpr std::span< const T, N > | as_span () const noexcept |
| constexpr | operator std::span< const T, N > () const noexcept |
| template<class U> | |
| operator Vector< U, N > () const | |
| constexpr T | norm2 () const |
| T | norm () const |
| Vector & | normalize () |
| Vector | normalized () const |
| DEVICE_QUALIFIER constexpr reference | at (size_type i) |
| DEVICE_QUALIFIER constexpr const_reference | at (size_type i) const |
| DEVICE_QUALIFIER constexpr reference | operator[] (size_type i) noexcept |
| DEVICE_QUALIFIER constexpr const_reference | operator[] (size_type i) const noexcept |
| DEVICE_QUALIFIER constexpr reference | back () |
| DEVICE_QUALIFIER constexpr const_reference | back () const |
| DEVICE_QUALIFIER constexpr iterator | begin () noexcept |
| DEVICE_QUALIFIER constexpr const_iterator | begin () const noexcept |
| DEVICE_QUALIFIER constexpr const_iterator | cbegin () const noexcept |
| DEVICE_QUALIFIER constexpr const_iterator | cend () const noexcept |
| DEVICE_QUALIFIER constexpr pointer | data () noexcept |
| DEVICE_QUALIFIER constexpr const_pointer | data () const noexcept |
| DEVICE_QUALIFIER constexpr bool | empty () const noexcept |
| DEVICE_QUALIFIER constexpr iterator | end () noexcept |
| DEVICE_QUALIFIER constexpr const_iterator | end () const noexcept |
| DEVICE_QUALIFIER void | fill (const value_type &value) |
| DEVICE_QUALIFIER constexpr reference | front () |
| DEVICE_QUALIFIER constexpr const_reference | front () const |
| DEVICE_QUALIFIER constexpr size_type | max_size () const noexcept |
| DEVICE_QUALIFIER constexpr size_type | size () const noexcept |
| Public Member Functions inherited from Utils::Array< T, N > | |
| DEVICE_QUALIFIER constexpr reference | at (size_type i) |
| DEVICE_QUALIFIER constexpr const_reference | at (size_type i) const |
| DEVICE_QUALIFIER constexpr reference | operator[] (size_type i) noexcept |
| DEVICE_QUALIFIER constexpr const_reference | operator[] (size_type i) const noexcept |
| DEVICE_QUALIFIER constexpr reference | front () |
| DEVICE_QUALIFIER constexpr const_reference | front () const |
| DEVICE_QUALIFIER constexpr reference | back () |
| DEVICE_QUALIFIER constexpr const_reference | back () const |
| DEVICE_QUALIFIER constexpr pointer | data () noexcept |
| DEVICE_QUALIFIER constexpr const_pointer | data () const noexcept |
| DEVICE_QUALIFIER constexpr iterator | begin () noexcept |
| DEVICE_QUALIFIER constexpr const_iterator | begin () const noexcept |
| DEVICE_QUALIFIER constexpr const_iterator | cbegin () const noexcept |
| DEVICE_QUALIFIER constexpr iterator | end () noexcept |
| DEVICE_QUALIFIER constexpr const_iterator | end () const noexcept |
| DEVICE_QUALIFIER constexpr const_iterator | cend () const noexcept |
| DEVICE_QUALIFIER constexpr bool | empty () const noexcept |
| DEVICE_QUALIFIER constexpr size_type | size () const noexcept |
| DEVICE_QUALIFIER constexpr size_type | max_size () const noexcept |
| DEVICE_QUALIFIER void | fill (const value_type &value) |
Static Public Member Functions | |
| static DEVICE_QUALIFIER constexpr Vector< T, N > | broadcast (typename Base::value_type const &value) noexcept |
| Create a vector that has all entries set to the same value. | |
| Static Public Member Functions inherited from Utils::Array< T, N > | |
| static constexpr detail::ArrayFormatter | formatter (char const *sep=" ") |
Additional Inherited Members | |
| Public Types inherited from Utils::Array< T, N > | |
| using | value_type = T |
| using | size_type = std::size_t |
| using | difference_type = std::ptrdiff_t |
| using | reference = value_type & |
| using | const_reference = const value_type & |
| using | iterator = value_type * |
| using | const_iterator = const value_type * |
| using | pointer = value_type * |
| using | const_pointer = const value_type * |
| Public Attributes inherited from Utils::Array< T, N > | |
| detail::Storage< T, N > | m_storage |
Definition at line 61 of file Vector.hpp.
|
defaultnoexcept |
|
defaultnoexcept |
|
inlineexplicitconstexpr |
Definition at line 105 of file Vector.hpp.
|
inlineexplicitconstexprnoexcept |
Definition at line 114 of file Vector.hpp.
|
inlineexplicitconstexprnoexcept |
Definition at line 120 of file Vector.hpp.
|
inlineconstexpr |
Definition at line 122 of file Vector.hpp.
|
inline |
Definition at line 133 of file Vector.hpp.
|
inlineconstexprnoexcept |
|
inline |
Definition at line 152 of file Vector.hpp.
Referenced by Utils::Vector< bool, 3 >::operator std::vector< bool >(), and Writer::H5md::write_box().
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
Definition at line 141 of file Array.hpp.
Referenced by Utils::Vector< T, 3 >::as_span(), Utils::Vector< T, 3 >::as_vector(), Utils::hadamard_product(), Utils::Vector< T, 3 >::operator Vector< U, N >(), ScriptInterface::Scafacos::ConvertToStringVector::operator()(), Utils::sqrt(), and Utils::Vector< T, 3 >::Vector().
|
inlinestaticconstexprnoexcept |
Create a vector that has all entries set to the same value.
Definition at line 144 of file Vector.hpp.
Referenced by Utils::calc_orthonormal_vector(), and Utils::Mpi::cart_create().
|
inlineconstexprnoexcept |
Definition at line 149 of file Array.hpp.
Referenced by Utils::product().
|
inlineconstexprnoexcept |
Definition at line 161 of file Array.hpp.
Referenced by Utils::product().
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
Definition at line 133 of file Array.hpp.
Referenced by CoulombTuningAlgorithm< FloatType, Architecture, FFTConfig >::calculate_accuracy(), Utils::Mpi::cart_coords(), Utils::Mpi::cart_create(), Utils::Mpi::cart_get(), Utils::Mpi::cart_rank(), Utils::Mpi::dims_create(), extract_block_into(), p3m_send_mesh< FloatType >::gather_grid(), CellStructure::AoSoA_pack::get_vector_at(), fft::fft_data_struct< FloatType >::initialize_fft(), Utils::raster(), and p3m_send_mesh< FloatType >::spread_grid().
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
Definition at line 153 of file Array.hpp.
Referenced by Utils::Vector< T, 3 >::as_vector().
|
inline |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexprnoexcept |
|
inline |
Definition at line 174 of file Vector.hpp.
Referenced by ElectrostaticLayerCorrection::add_pair_force_corrections(), angle_generic_force(), Utils::area_triangle(), bd_drag_rot(), bd_random_walk_rot(), calc_dihedral_angle(), IBMTriel::calc_forces(), OifLocalForcesBond::calc_forces(), Utils::calc_orthonormal_vector(), Shapes::Ellipsoid::calculate_dist(), Shapes::Rhomboid::calculate_dist(), Shapes::SimplePore::calculate_dist(), Shapes::Sphere::calculate_dist(), Shapes::SpheroCylinder::calculate_dist(), Shapes::Torus::calculate_dist(), convert_dip_to_quat(), Utils::convert_director_to_quaternion(), BondedCoulomb::energy(), BondedCoulombSR::energy(), FeneBond::energy(), HarmonicBond::energy(), QuarticBond::energy(), TabulatedDistanceBond::energy(), BondedCoulombSR::force(), FeneBond::force(), HarmonicBond::force(), QuarticBond::force(), TabulatedDistanceBond::force(), ThermalizedBond::forces(), Utils::Vector< T, 3 >::normalize(), Utils::Vector< T, 3 >::normalized(), ElectrostaticLayerCorrection::pair_energy_correction(), ElectrostaticLayerCorrection::pair_energy_correction(), random_unit_vector(), and stoner_wohlfarth_main().
|
inlineconstexpr |
Definition at line 173 of file Vector.hpp.
Referenced by Utils::angle_between(), calc_cosine(), OifLocalForcesBond::calc_forces(), Utils::calc_orthonormal_vector(), calc_rg(), CellStructure::check_resort_required(), dp3m_tune_aliasing_sums(), BondedCoulomb::force(), G_opt(), G_opt_dipolar(), make_image_shifts(), Utils::Vector< T, 3 >::norm(), p3m_tune_aliasing_sums(), and pair_force().
|
inline |
Definition at line 182 of file Vector.hpp.
Referenced by add_oif_global_forces(), Shapes::SpheroCylinder::calculate_dist(), Observables::CylindricalLBProfileObservable::calculate_sampling_positions(), connection_vector(), Shapes::Wall::set_normal(), and Utils::transform_vector_cartesian_to_cylinder().
|
inline |
Definition at line 197 of file Vector.hpp.
Referenced by Utils::basis_change(), and stoner_wohlfarth_main().
|
inlineconstexprnoexcept |
Definition at line 160 of file Vector.hpp.
|
inline |
Definition at line 154 of file Vector.hpp.
|
inlineexplicit |
Definition at line 164 of file Vector.hpp.
|
defaultnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inline |
Definition at line 88 of file Vector.hpp.