![]() |
ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
|
#include <Vector.hpp>
Inheritance diagram for Utils::Vector< T, N >:
Collaboration diagram for Utils::Vector< T, N >:Classes | |
| struct | is_vector |
| struct | is_vector< Vector< U, Np > > |
Public Member Functions | |
| Vector () noexcept=default | |
| Vector (Vector const &)=default | |
| Vector & | operator= (Vector const &)=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 (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< T, N > | as_span () const |
| constexpr | operator std::span< T, N > () const |
| 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 | 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 DEVICE_QUALIFIER constexpr Array< T, N > | broadcast (const value_type &value) |
Static Public Member Functions inherited from Utils::Array< T, N > | |
| static DEVICE_QUALIFIER constexpr Array< T, N > | broadcast (const value_type &value) |
| 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 50 of file Vector.hpp.
|
defaultnoexcept |
|
default |
|
inlineexplicitconstexpr |
Definition at line 95 of file Vector.hpp.
|
inlineexplicitconstexprnoexcept |
Definition at line 104 of file Vector.hpp.
|
inlineconstexpr |
Definition at line 110 of file Vector.hpp.
|
inline |
Definition at line 121 of file Vector.hpp.
References Utils::Vector< T, N >::begin().
|
inlineconstexpr |
Definition at line 144 of file Vector.hpp.
References Utils::Vector< T, N >::begin(), and Utils::Vector< T, N >::size().
Referenced by Utils::Vector< int, dim >::operator std::span< int, N >().
|
inline |
Definition at line 140 of file Vector.hpp.
References Utils::Vector< T, N >::begin(), and Utils::Vector< T, N >::end().
Referenced by ScriptInterface::Particles::ParticleHandle::do_call_method(), Utils::Vector< int, dim >::operator std::vector< int >(), and Writer::H5md::write_box().
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
Definition at line 140 of file Array.hpp.
Referenced by Utils::Vector< T, N >::as_span(), Utils::Vector< T, N >::as_vector(), System::System::calculate_pressure(), DipolarDirectSum::dipole_field_at_part(), Utils::hadamard_product(), Utils::Vector< T, N >::operator Vector< U, N >(), Utils::sqrt(), walberla::to_array(), and Utils::Vector< T, N >::Vector().
|
inlinestaticconstexpr |
|
inlinestaticconstexprnoexcept |
Create a vector that has all entries set to the same value.
Definition at line 132 of file Vector.hpp.
Referenced by P3MLocalMesh::calc_local_ca_mesh(), Utils::calc_orthonormal_vector(), Observables::LBProfileObservable::calculate_sampling_positions(), CoulombTuningAlgorithm< FloatType, Architecture, FFTConfig >::determine_mesh_limits(), DipolarP3MHeffte< FloatType, Architecture, FFTConfig >::DipolarP3MHeffte(), ScriptInterface::System::System::do_call_method(), ScriptInterface::walberla::LatticeWalberla::do_construct(), ScriptInterface::Integrators::VelocityVerletIsoNPT::do_construct(), dp3m_k_space_error(), dp3m_tune_aliasing_sums(), FieldCoupling::Fields::Interpolated< T, codim >::fits_in_box(), G_opt(), G_opt_dipolar(), G_opt_dipolar_self_energy(), walberla::get_block_interval(), ScriptInterface::Particles::get_gamma_safe(), walberla::get_interval(), LatticeWalberla::get_local_grid_range(), CoulombTuningAlgorithm< FloatType, Architecture, FFTConfig >::get_time(), DipolarTuningAlgorithm< FloatType, Architecture, FFTConfig >::get_time(), in_local_domain(), influence_function_r2c(), CoulombP3MHeffte< FloatType, Architecture, FFTConfig >::init_cpu_kernels(), DipolarP3MHeffte< FloatType, Architecture, FFTConfig >::init_cpu_kernels(), walberla::interpolate_bspline_at_pos(), LB::ParticleCoupling::kernel(), P3MFFT< FloatType, FFTConfig >::ks_local_ur_index(), lb_handle_particle_anisotropy(), CoulombP3MHeffte< FloatType, Architecture, FFTConfig >::long_range_kernel(), DipolarP3MHeffte< FloatType, Architecture, FFTConfig >::long_range_kernel(), CoulombP3MHeffte< FloatType, Architecture, FFTConfig >::long_range_pressure(), AtomDecomposition::max_cutoff(), p3m_calculate_interpolation_weights(), p3m_gpu_init(), p3m_tune_aliasing_sums(), P3MFFT< FloatType, FFTConfig >::P3MFFT(), P3MParameters::P3MParameters(), positions_in_halo(), P3MParameters::recalc_a_ai_cao_cut(), P3MFFT< FloatType, FFTConfig >::rs_local_size(), ScriptInterface::Thermostat::Interface< CoreClass >::sanity_checks_positive(), and ScriptInterface::walberla::LatticeSlice< FieldSerializer >::scatter_3d().
|
inlineconstexprnoexcept |
Definition at line 148 of file Array.hpp.
Referenced by Utils::product().
|
inlineconstexprnoexcept |
Definition at line 160 of file Array.hpp.
Referenced by Utils::product().
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
Definition at line 132 of file Array.hpp.
Referenced by CoulombTuningAlgorithm< FloatType, Architecture, FFTConfig >::calculate_accuracy(), Utils::Mpi::cart_coords(), Utils::Mpi::cart_create(), Utils::Mpi::cart_rank(), extract_block(), p3m_send_mesh< FloatType >::gather_grid(), fft::fft_data_struct< FloatType >::initialize_fft(), pad_with_zeros_discard_imag(), Utils::raster(), and p3m_send_mesh< FloatType >::spread_grid().
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
Definition at line 152 of file Array.hpp.
Referenced by Utils::Vector< T, N >::as_vector().
|
inline |
|
inlineconstexpr |
Definition at line 122 of file Array.hpp.
Referenced by Utils::get_cylindrical_sampling_positions().
|
inlineconstexpr |
|
inlineconstexprnoexcept |
|
inline |
Definition at line 160 of file Vector.hpp.
References Utils::Vector< T, N >::norm2().
Referenced by ElectrostaticLayerCorrection::add_pair_force_corrections(), angle_generic_force(), Utils::area_triangle(), bd_drag_rot(), bd_random_walk_rot(), calc_dihedral_angle(), OifLocalForcesBond::calc_forces(), IBMTriel::calc_forces(), Utils::calc_orthonormal_vector(), CoulombTuningAlgorithm< FloatType, Architecture, FFTConfig >::calculate_accuracy(), DipolarTuningAlgorithm< FloatType, Architecture, FFTConfig >::calculate_accuracy(), Shapes::Cylinder::calculate_dist(), 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(), TabulatedDistanceBond::energy(), FeneBond::energy(), HarmonicBond::energy(), QuarticBond::energy(), TabulatedDistanceBond::force(), FeneBond::force(), HarmonicBond::force(), QuarticBond::force(), BondedCoulombSR::force(), ThermalizedBond::forces(), Utils::Vector< T, N >::normalize(), Utils::Vector< T, N >::normalized(), ElectrostaticLayerCorrection::pair_energy_correction(), ElectrostaticLayerCorrection::pair_energy_correction(), Shapes::Cylinder::precalc(), Shapes::SpheroCylinder::precalc(), Shapes::Torus::precalc(), random_unit_vector(), and stoner_wohlfarth_main().
|
inlineconstexpr |
Definition at line 159 of file Vector.hpp.
Referenced by Utils::angle_between(), calc_cosine(), Utils::calc_orthonormal_vector(), CellStructure::check_resort_required(), for_each_image(), BondedCoulomb::force(), G_opt(), G_opt_dipolar(), Utils::Vector< T, N >::norm(), and pair_force().
|
inline |
Definition at line 168 of file Vector.hpp.
References Utils::Vector< T, N >::norm().
Referenced by add_oif_global_forces(), Shapes::SpheroCylinder::calculate_dist(), Shapes::Cylinder::precalc(), Shapes::SpheroCylinder::precalc(), and Shapes::Wall::set_normal().
|
inline |
Definition at line 178 of file Vector.hpp.
References Utils::Vector< T, N >::norm().
Referenced by Utils::basis_change(), and stoner_wohlfarth_main().
|
inlineconstexpr |
Definition at line 148 of file Vector.hpp.
|
inline |
Definition at line 142 of file Vector.hpp.
|
inlineexplicit |
Definition at line 150 of file Vector.hpp.
References Utils::Vector< T, N >::begin().
|
default |
|
inlineconstexprnoexcept |
Definition at line 166 of file Array.hpp.
Referenced by Utils::Vector< T, N >::as_span(), walberla::LBWalberlaImpl< FloatType, Architecture >::set_slice_velocity(), and walberla::LBWalberlaImpl< FloatType, Architecture >::set_slice_velocity_at_boundary().
|
inline |
Definition at line 78 of file Vector.hpp.