Loading...
Searching...
No Matches
compat.hpp
Go to the documentation of this file.
78 Vector(dipla::aigenlib::Vector values) : dipla::aigenlib::Vector(std::move(values)) { checked_size(dipla::aigenlib::Vector::size()); }
116 if (size() != other.size() || !allFinite() || !other.allFinite() || !(tolerance >= 0.0)) return false;
118 for (int index = 0; index < size(); ++index) error = std::hypot(error, (*this)[index] - other[index]);
124 if (count > dipla::aigenlib::max_extent) throw std::length_error("Planner vector exceeds grid bound");
Bounded, owning numerical types and Gaussian-process operations.
Scalar & operator()(int row, int column)
Checked mutable element.
Definition compat.hpp:179
static Matrix4 Constant(Scalar value)
Construct a constant value.
Definition compat.hpp:185
Scalar operator()(int row, int column) const
Checked element.
Definition compat.hpp:181
Matrix4 operator*(const Matrix4 &right) const
Multiply two owning values.
Definition compat.hpp:215
static std::size_t offset(int row, int column)
Validate an element address.
Definition compat.hpp:229
Matrix4 transpose() const
Return an owning transpose.
Definition compat.hpp:207
aigenlib storage with the planner's signed dimensions and finite predicate.
Definition compat.hpp:51
static Matrix Zero(std::size_t rows, std::size_t columns)
Allocate zero storage.
Definition compat.hpp:65
Matrix(dipla::aigenlib::Matrix value)
Accept an owning kernel result.
Definition compat.hpp:55
aigenlib point with familiar initialization and finite-check spelling.
Definition compat.hpp:136
bool allFinite() const noexcept
Validate coordinates.
Definition compat.hpp:146
void setZero() noexcept
Reset every coordinate to zero.
Definition compat.hpp:144
Point(const dipla::aigenlib::Point &point)
Accept the result of value arithmetic.
Definition compat.hpp:140
Bounded owning vector with the planner's small Eigen-style value API.
Definition compat.hpp:72
Vector(dipla::aigenlib::Vector values)
Accept owning kernel output.
Definition compat.hpp:78
bool isApprox(const Vector &other, double tolerance) const
Relative norm comparison.
Definition compat.hpp:115
static Vector Constant(std::size_t count, double value)
Allocate a constant.
Definition compat.hpp:93
static std::size_t checked_size(std::size_t count)
Validate before allocating.
Definition compat.hpp:123
Vector(std::size_t count=0, double value=0.0)
Allocate initialized scalars.
Definition compat.hpp:75
Vector & operator+=(const Vector &other)
Add a same-sized vector.
Definition compat.hpp:109
double operator()(std::size_t row, std::size_t column) const
Checked matrix-style access.
Definition compat.hpp:86
std::size_t cols() const noexcept
Column count.
Definition aigenlib.cpp:241
std::size_t size() const noexcept
Allocated scalar count.
Definition aigenlib.cpp:242
bool finite() const noexcept
Validate all stored scalars.
Definition aigenlib.cpp:259
Definition compat.hpp:45
Point Vector3d
Eigen-style name for the three-coordinate double point.
Definition compat.hpp:156
Vector VectorXd
Eigen-style name for the bounded dynamic double vector.
Definition compat.hpp:154
Matrix MatrixXd
Eigen-style name for the bounded dynamic double matrix.
Definition compat.hpp:152
Vector operator+(Vector left, const Vector &right)
Add owning vectors.
Definition compat.hpp:130
Matrix4< float > Matrix4f
Eigen-style 4-by-4 float matrix, with actual float storage/arithmetic.
Definition compat.hpp:236
Definition compat.hpp:242
constexpr const char * build_info
Artifact-readable record retained by the executable's –build-info output.
Definition compat.hpp:272
Aigen::VectorXd VectorXd
Selected dynamic double vector.
Definition compat.hpp:262
Aigen::MatrixXd MatrixXd
Selected dynamic double matrix.
Definition compat.hpp:260
Aigen::Vector3d Vector3d
Selected three-coordinate double point.
Definition compat.hpp:264
constexpr const char * backend
Name of the default compiled backend.
Definition compat.hpp:270
std::vector< double > Vector
Owning scalar vector; size validation belongs to the consuming operation.
Definition aigenlib.hpp:37
constexpr std::size_t max_extent
Maximum matrix extent, matching the current dense GP grid ceiling.
Definition aigenlib.hpp:33
Definition aigenlib.cpp:42
bool finite() const noexcept
Check every coordinate.
Definition aigenlib.cpp:197
Point(double east=0.0, double north=0.0, double altitude=0.0)
Construct a point.
Definition aigenlib.cpp:187