contructors from braced list for permutations and polynomials

This commit is contained in:
2021-10-28 20:44:05 +02:00
parent d96531f340
commit 9c6ab037cf
5 changed files with 21 additions and 0 deletions

View File

@@ -32,6 +32,7 @@ template <typename T>
class Polynomial : public NRVec<T> {
public:
Polynomial(): NRVec<T>() {};
template<int SIZE> Polynomial(const T (&a)[SIZE]) : NRVec<T>(a) {};
Polynomial(const NRVec<T> &v) : NRVec<T>(v) {}; //allow implicit conversion from NRVec
Polynomial(const int n) : NRVec<T>(n+1) {};
Polynomial(const T &a, const int n) : NRVec<T>(n+1) {NRVec<T>::clear(); (*this)[0]=a;};