|
constexpr | polynomial () |
|
constexpr | polynomial (polynomial const &other)=default |
|
constexpr | polynomial (polynomial &&other) noexcept=default |
|
constexpr auto | operator= (polynomial const &other) -> polynomial &=default |
|
constexpr auto | operator= (polynomial &&other) noexcept -> polynomial &=default |
|
constexpr | polynomial (std::array< Real, Degree+1 > const &coeffs) |
|
template<typename OtherReal , std::size_t OtherDegree>
requires (OtherDegree <= Degree) |
constexpr | polynomial (polynomial< OtherReal, OtherDegree > const &other) |
|
constexpr | polynomial (std::array< Real, Degree+1 > &&coeffs) |
|
template<arithmetic... Coeffs>
requires ( sizeof...(coeffs) == Degree + 1) |
constexpr | polynomial (arithmetic auto const ... coeffs) |
|
template<arithmetic OtherReal> |
constexpr | polynomial (tensor< OtherReal, Degree+1 > const &coeffs) |
|
template<arithmetic OtherReal> |
constexpr | polynomial (std::array< OtherReal, Degree+1 > const &coeffs) |
|
constexpr auto | evaluate (arithmetic auto const x) const |
| evaluates c0 * x^0 + c1 * x^1 + ... + c{N-1} * x^{N-1} More...
|
|
constexpr auto | operator() (arithmetic auto const x) const |
| evaluates c0 * x^0 + c1 * x^1 + ... + c{N-1} * x^{N-1} More...
|
|
auto | c (std::size_t i) const -> auto const & |
|
auto | c (std::size_t i) -> auto & |
|
auto | coefficient (std::size_t i) const -> auto const & |
|
auto | coefficient (std::size_t i) -> auto const & |
|
auto | coefficients () const -> auto const & |
|
auto | coefficients () -> auto const & |
|
constexpr auto | set_coefficients (std::array< Real, Degree+1 > const &coeffs) -> void |
|
constexpr auto | set_coefficients (std::array< Real, Degree+1 > &&coeffs) -> void |
|
template<arithmetic OtherReal> |
constexpr auto | set_coefficients (std::array< OtherReal, Degree+1 > const &coeffs) -> void |
|
constexpr auto | set_coefficients (arithmetic auto const ... coeffs) -> void requires(sizeof...(coeffs)==Degree+1) |
|
constexpr auto | diff () const |
|
auto | print (std::ostream &out, std::string const &x) const -> std::ostream & |
|