IMP logo
IMP Reference Guide  develop.7482b7c7af, 2026/12/05
The Integrative Modeling Platform
IMP::algebra::UnitSimplexD<-1 > Class Reference

Represent a unit simplex embedded in d-dimensional real space. More...

#include <IMP/algebra/UnitSimplexD.h>

Inheritance diagram for IMP::algebra::UnitSimplexD<-1 >:

Detailed Description

Represent a unit simplex embedded in d-dimensional real space.

This version's dimension is not known at compile time and can operate with variable-dimension vectors.

Definition at line 89 of file UnitSimplexD.h.

Public Member Functions

 UnitSimplexD (int d=1)
 Construct from dimension d of embedded real space.
int get_dimension () const override
 Get dimension of embedded real space.
void show (std::ostream &out=std::cout) const
Public Member Functions inherited from IMP::algebra::UnitSimplexBaseD< D >
VectorD< D > get_barycenter () const
 Get center of mass on simplex in embedded coordinates.
bool get_contains (const VectorD< D > &p, double atol=std::numeric_limits< double >::epsilon()) const
 Get whether the point is on the unit simplex.
Public Member Functions inherited from IMP::algebra::UnitSimplexBaseD<-1 >
VectorD< D > get_barycenter () const
 Get center of mass on simplex in embedded coordinates.
bool get_contains (const VectorD< D > &p, double atol=std::numeric_limits< double >::epsilon()) const
 Get whether the point is on the unit simplex.

Constructor & Destructor Documentation

◆ UnitSimplexD()

IMP::algebra::UnitSimplexD<-1 >::UnitSimplexD ( int d = 1)

Construct from dimension d of embedded real space.

Definition at line 98 of file UnitSimplexD.h.

Member Function Documentation

◆ get_dimension()

int IMP::algebra::UnitSimplexD<-1 >::get_dimension ( ) const
overridevirtual

Get dimension of embedded real space.

Implements IMP::algebra::UnitSimplexBaseD< D >.

Definition at line 103 of file UnitSimplexD.h.


The documentation for this class was generated from the following file: