ContFrac constructor from list

This commit is contained in:
Jiri Pittner 2022-06-09 20:55:10 +02:00
parent 2ff6ded164
commit 3a163ae81f
1 changed files with 1 additions and 0 deletions

View File

@ -115,6 +115,7 @@ private:
int size() const; //prevent confusion with vector size
public:
ContFrac(): NRVec<T>() {};
explicit ContFrac(const std::list<T> &x) : NRVec<T>(x) {};
template<int SIZE> ContFrac(const T (&a)[SIZE]) : NRVec<T>(a) {};
ContFrac(const NRVec<T> &v) : NRVec<T>(v) {}; //allow implicit conversion from NRVec
ContFrac(const int n) : NRVec<T>(n+1) {};