SMT-RAT
24.02
Toolbox for Strategic and Parallel Satisfiability-Modulo-Theories Solving
|
Represent a multidimensional point whose components are algebraic reals. More...
#include <RealAlgebraicPoint.h>
Public Member Functions | |
RealAlgebraicPoint () noexcept=default | |
Create an empty point of dimension 0. More... | |
RealAlgebraicPoint (const std::vector< carl::IntRepRealAlgebraicNumber< Number >> &v) | |
Convert from a vector using its numbers in the same order as components. More... | |
RealAlgebraicPoint (std::vector< carl::IntRepRealAlgebraicNumber< Number >> &&v) | |
Convert from a vector using its numbers in the same order as components. More... | |
RealAlgebraicPoint (const std::list< carl::IntRepRealAlgebraicNumber< Number >> &v) | |
Convert from a list using its numbers in the same order as components. More... | |
RealAlgebraicPoint (const std::initializer_list< carl::IntRepRealAlgebraicNumber< Number >> &v) | |
Convert from a initializer_list using its numbers in the same order as components. More... | |
std::size_t | dim () const |
Give the dimension/number of components of this point. More... | |
RealAlgebraicPoint | prefixPoint (size_t componentCount) const |
Make a (lower dimensional) copy that contains only the first 'componentCount'-many components. More... | |
RealAlgebraicPoint | conjoin (const carl::IntRepRealAlgebraicNumber< Number > &r) |
Create a new point with another given component added at the end of this point, thereby increasing its dimension by 1. More... | |
const carl::IntRepRealAlgebraicNumber< Number > & | operator[] (std::size_t index) const |
Retrieve the component of this point at the given index. More... | |
carl::IntRepRealAlgebraicNumber< Number > & | operator[] (std::size_t index) |
Retrieve the component of this point at the given index. More... | |
Private Attributes | |
std::vector< carl::IntRepRealAlgebraicNumber< Number > > | mNumbers |
Numbers of this RealAlgebraicPoint. More... | |
Represent a multidimensional point whose components are algebraic reals.
This class is just a thin wrapper around vector to have a clearer semantic meaning.
Definition at line 15 of file RealAlgebraicPoint.h.
|
defaultnoexcept |
Create an empty point of dimension 0.
|
inlineexplicit |
Convert from a vector using its numbers in the same order as components.
Definition at line 31 of file RealAlgebraicPoint.h.
|
inlineexplicit |
Convert from a vector using its numbers in the same order as components.
Definition at line 38 of file RealAlgebraicPoint.h.
|
inlineexplicit |
Convert from a list using its numbers in the same order as components.
Definition at line 45 of file RealAlgebraicPoint.h.
|
inline |
Convert from a initializer_list using its numbers in the same order as components.
Definition at line 52 of file RealAlgebraicPoint.h.
|
inline |
Create a new point with another given component added at the end of this point, thereby increasing its dimension by 1.
The original point remains untouched.
Definition at line 79 of file RealAlgebraicPoint.h.
|
inline |
Give the dimension/number of components of this point.
Definition at line 59 of file RealAlgebraicPoint.h.
|
inline |
Retrieve the component of this point at the given index.
Definition at line 96 of file RealAlgebraicPoint.h.
|
inline |
Retrieve the component of this point at the given index.
Definition at line 88 of file RealAlgebraicPoint.h.
|
inline |
Make a (lower dimensional) copy that contains only the first 'componentCount'-many components.
Definition at line 67 of file RealAlgebraicPoint.h.
|
private |
Numbers of this RealAlgebraicPoint.
Definition at line 20 of file RealAlgebraicPoint.h.