pymc-devs / pymc-devs/pytensor

Add alias for logical function as called in numpy

Open
#462 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

beginner friendly NumPy compatibility
Dominant language
Python
Stars
644
Forks
208
Avg merge
2d 14h
Merged PRs (30d)
16

Description

Description
  • pt.eq -> pt.equal
  • pt.neq -> pt.not_equal
  • pt._and -> pt.logical_and

And so on: https://numpy.org/doc/stable/reference/routines.logic.html

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the existing pt.eq, pt.neq, and pt._and entry points and compare them with NumPy's logic-function list. Determine the remaining aliases needed from the linked NumPy reference. Done means the requested logical functions have consistent NumPy-style names and corresponding tests verify the aliases.

Written by the indexing model from the issue text.

Assessment

Tech stack
numpy, python
Domain
backend-api-design
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.