destroy(false);
}
-pseries::pseries(pseries const &other)
+pseries::pseries(const pseries &other)
{
debugmsg("pseries copy constructor", LOGLEVEL_CONSTRUCT);
copy(other);
}
-pseries const &pseries::operator=(pseries const & other)
+const pseries &pseries::operator=(const pseries & other)
{
debugmsg("pseries operator=", LOGLEVEL_ASSIGNMENT);
if (this != &other) {
return *this;
}
-void pseries::copy(pseries const &other)
+void pseries::copy(const pseries &other)
{
inherited::copy(other);
seq = other.seq;
* @param point_ expansion point
* @param ops_ vector of {coefficient, power} pairs (coefficient must not be zero)
* @return newly constructed pseries */
-pseries::pseries(ex const &var_, ex const &point_, epvector const &ops_)
+pseries::pseries(const ex &var_, const ex &point_, const epvector &ops_)
: basic(TINFO_pseries), seq(ops_), var(var_), point(point_)
{
debugmsg("pseries constructor from ex,ex,epvector", LOGLEVEL_CONSTRUCT);
throw (std::logic_error("let_op not defined for pseries"));
}
-int pseries::degree(symbol const &s) const
+int pseries::degree(const symbol &s) const
{
if (var.is_equal(s)) {
// Return last exponent
}
}
-int pseries::ldegree(symbol const &s) const
+int pseries::ldegree(const symbol &s) const
{
if (var.is_equal(s)) {
// Return first exponent
}
}
-ex pseries::coeff(symbol const &s, int const n) const
+ex pseries::coeff(const symbol &s, int n) const
{
if (var.is_equal(s)) {
epvector::const_iterator it = seq.begin(), itend = seq.end();
return convert_to_poly().evalf(level);
}
-ex pseries::subs(lst const & ls, lst const & lr) const
+ex pseries::subs(const lst & ls, const lst & lr) const
{
// If expansion variable is being substituted, convert the series to a
// polynomial and do the substitution there because the result might
/** Default implementation of ex::series(). This performs Taylor expansion.
* @see ex::series */
-ex basic::series(symbol const & s, ex const & point, int order) const
+ex basic::series(const symbol & s, const ex & point, int order) const
{
epvector seq;
numeric fac(1);
/** Implementation of ex::series() for symbols.
* @see ex::series */
-ex symbol::series(symbol const & s, ex const & point, int order) const
+ex symbol::series(const symbol & s, const ex & point, int order) const
{
epvector seq;
if (is_equal(s)) {
/** Implementation of ex::series() for sums. This performs series addition when
* adding pseries objects.
* @see ex::series */
-ex add::series(symbol const & s, ex const & point, int order) const
+ex add::series(const symbol & s, const ex & point, int order) const
{
ex acc; // Series accumulator
/** Implementation of ex::series() for product. This performs series
* multiplication when multiplying series.
* @see ex::series */
-ex mul::series(symbol const & s, ex const & point, int order) const
+ex mul::series(const symbol & s, const ex & point, int order) const
{
ex acc; // Series accumulator
/** Implementation of ex::series() for powers. This performs Laurent expansion
* of reciprocals of series at singularities.
* @see ex::series */
-ex power::series(symbol const & s, ex const & point, int order) const
+ex power::series(const symbol & s, const ex & point, int order) const
{
ex e;
if (!is_ex_exactly_of_type(basis, pseries)) {
* @param point expansion point
* @param order truncation order of series calculations
* @return an expression holding a pseries object */
-ex ex::series(symbol const &s, ex const &point, int order) const
+ex ex::series(const symbol &s, const ex &point, int order) const
{
GINAC_ASSERT(bp!=0);
return bp->series(s, point, order);
// Global constants
const pseries some_pseries;
-type_info const & typeid_pseries = typeid(some_pseries);
+const type_info & typeid_pseries = typeid(some_pseries);
#ifndef NO_GINAC_NAMESPACE
} // namespace GiNaC