ContFrac constructor from list

This commit is contained in:
Jiri Pittner 2022-06-09 20:55:10 +02:00
parent 2ff6ded164
commit 3a163ae81f

View File

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