Template Class Triangle#
Defined in File Triangle.h
Class Documentation#
-
template<typename T, size_t dim>
class Triangle# Triangular set storage.
Triangle stores sets who have a size equal to their their index + 1. The total storage of a Triangle instance is equal to the dim-th triangular number (starting with T_1 = 1). 0: Elem00 1: Elem10 Elem11 2: Elem20 Elem21 Elem22 …
- Author
beyss
- Date
23.08.2017
Public Functions
-
inline Triangle(const std::vector<T> data)#
Creates a Triangle from a given data vector whose size must be the dim-th triangular number.
- Parameters:
data – the data vector
-
inline virtual ~Triangle()#