Skip to content

Improvements over #1120#1199

Merged
isuruf merged 1 commit intosymengine:masterfrom
ShikharJ:DirichletEta
Feb 15, 2017
Merged

Improvements over #1120#1199
isuruf merged 1 commit intosymengine:masterfrom
ShikharJ:DirichletEta

Conversation

@ShikharJ
Copy link
Copy Markdown
Member

Relevant: #814
This PR is a proposed improvement over #1120 by @vishusidana95, which I felt, wasn't along the lines of SymPy's method of execution. As always, please review and suggest improvements.

RCP<const Basic> rewrite_as_zeta() const;
//! \return Canonicalized zeta
virtual RCP<const Basic> create(const RCP<const Basic> &arg) const;
virtual RCP<const Basic> create(const vec_basic &arg) const;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not needed here as it is defined in OneArgFunction. You can make it visible by adding using OneArgFunction::create

return fdiff(self, x);
}

static RCP<const Basic> diff(const Dirichlet_eta &self,
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this necessary?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@isuruf Dirichlet_eta is a OneArgFunction and automatic differentiation via the fdiff routine is enabled by default only for TwoArgFunction.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you try making this OneArgFunction instead of Dirichlet_eta then? If that doesn't work, I'll merge this

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@isuruf Done.

@ShikharJ
Copy link
Copy Markdown
Member Author

ping @isuruf.

@ShikharJ
Copy link
Copy Markdown
Member Author

ping @isuruf

@ShikharJ
Copy link
Copy Markdown
Member Author

ping @isuruf.

@isuruf isuruf merged commit 2326660 into symengine:master Feb 15, 2017
@ShikharJ ShikharJ deleted the DirichletEta branch February 15, 2017 16:15
isuruf added a commit to isuruf/symengine that referenced this pull request Aug 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants