ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
|
#include <Vector.hpp>
Public Member Functions | |
Vector ()=default | |
Vector (Vector const &)=default | |
Vector & | operator= (Vector const &)=default |
void | swap (Vector &rhs) |
template<class Range > | |
constexpr | Vector (Range const &rng) |
constexpr | Vector (T const (&v)[N]) |
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 | |
T | norm2 () const |
T | norm () const |
Vector & | normalize () |
Vector | normalized () const |
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) |
DEVICE_QUALIFIER constexpr const_reference | operator[] (size_type i) const |
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) |
Create a vector that has all entries set to the same 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 48 of file Vector.hpp.
|
default |
|
default |
|
inlineexplicitconstexpr |
Definition at line 83 of file Vector.hpp.
|
inlineexplicitconstexpr |
Definition at line 85 of file Vector.hpp.
|
inlineconstexpr |
Definition at line 89 of file Vector.hpp.
|
inline |
Definition at line 99 of file Vector.hpp.
References Utils::Array< T, N >::begin().
|
inlineconstexpr |
Definition at line 122 of file Vector.hpp.
References Utils::Array< T, N >::begin(), and Utils::Array< T, N >::size().
Referenced by Utils::Vector< int, dim >::operator std::span< int, N >().
|
inline |
Definition at line 118 of file Vector.hpp.
References Utils::Array< T, N >::begin(), and Utils::Array< T, N >::end().
Referenced by ScriptInterface::Particles::ParticleHandle::do_call_method(), and Utils::Vector< int, dim >::operator std::vector< int >().
|
inlinestaticconstexpr |
Create a vector that has all entries set to the same value.
Definition at line 110 of file Vector.hpp.
Referenced by P3MLocalMesh::calc_local_ca_mesh(), Utils::calc_orthonormal_vector(), Observables::LBProfileObservable::calculate_sampling_positions(), CoulombTuningAlgorithm< FloatType, Architecture >::determine_mesh_limits(), DipolarP3MImpl< FloatType, Architecture >::DipolarP3MImpl(), ScriptInterface::System::System::do_call_method(), 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(), ScriptInterface::Particles::get_gamma_safe(), walberla::EKinWalberlaImpl< FluxCount, FloatType >::get_interval(), walberla::LBWalberlaImpl< FloatType, Architecture >::get_interval(), DipolarTuningAlgorithm< FloatType, Architecture >::get_time(), in_local_domain(), CoulombP3MImpl< FloatType, Architecture >::init_cpu_kernels(), DipolarP3MImpl< FloatType, Architecture >::init_cpu_kernels(), walberla::interpolate_bspline_at_pos(), LB::ParticleCoupling::kernel(), lb_handle_particle_anisotropy(), CoulombP3MImpl< FloatType, Architecture >::long_range_kernel(), DipolarP3MImpl< FloatType, Architecture >::long_range_kernel(), CoulombP3MImpl< FloatType, Architecture >::long_range_pressure(), AtomDecomposition::max_cutoff(), p3m_calculate_interpolation_weights(), p3m_gpu_init(), p3m_tune_aliasing_sums(), P3MParameters::P3MParameters(), positions_in_halo(), P3MParameters::recalc_a_ai_cao_cut(), ScriptInterface::Thermostat::Interface< CoreClass >::sanity_checks_positive(), and ScriptInterface::walberla::LatticeSlice< FieldSerializer >::scatter_3d().
|
inline |
Definition at line 138 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 >::calculate_accuracy(), DipolarTuningAlgorithm< FloatType, Architecture >::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(), Shapes::Cylinder::precalc(), Shapes::SpheroCylinder::precalc(), Shapes::Torus::precalc(), and random_unit_vector().
|
inline |
Definition at line 137 of file Vector.hpp.
Referenced by Utils::angle_between(), calc_cosine(), Utils::calc_orthonormal_vector(), for_each_image(), BondedCoulomb::force(), G_opt(), G_opt_dipolar(), Utils::Vector< T, N >::norm(), and pair_force().
|
inline |
Definition at line 147 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 157 of file Vector.hpp.
References Utils::Vector< T, N >::norm().
Referenced by Utils::basis_change().
|
inlineconstexpr |
Definition at line 126 of file Vector.hpp.
|
inline |
Definition at line 120 of file Vector.hpp.
|
inlineexplicit |
Definition at line 128 of file Vector.hpp.
References Utils::Array< T, N >::begin(), and Utils::Array< T, N >::end().
|
default |
|
inline |
Definition at line 71 of file Vector.hpp.
References Utils::Array< T, N >::begin(), and Utils::Array< T, N >::end().