PhysicsBasedAnimationToolkit 0.0.10
Cross-platform C++20 library of algorithms and data structures commonly used in computer graphics research on physically-based simulation.
Loading...
Searching...
No Matches
Eigen.h File Reference

Eigen adaptors for ranges. More...

#include "Concepts.h"
#include <pbat/Aliases.h>
#include <ranges>

Go to the source code of this file.

Namespaces

namespace  pbat
 The main namespace of the library.
 
namespace  pbat::common
 Common functionality.
 

Functions

template<CContiguousArithmeticRange R>
auto pbat::common::ToEigen (R &&r) -> Eigen::Map< Eigen::Vector< std::ranges::range_value_t< R >, Eigen::Dynamic > const >
 Map a range of scalars to an eigen vector of such scalars.
 
template<std::ranges::random_access_range R>
auto pbat::common::Slice (R &&r)
 Slice view over a range for Eigen advanced indexing.
 

Detailed Description

Eigen adaptors for ranges.

Author
Quoc-Minh Ton-That (tonth.nosp@m.at.q.nosp@m.uocmi.nosp@m.nh@g.nosp@m.mail..nosp@m.com)
Date
2025-02-10