Skip to content

Conversation

MedAmineGBerry
Copy link

@MedAmineGBerry MedAmineGBerry commented Aug 22, 2025

Description

This PR enhances the dims math documentation by adding information about the method-based API available on XTensorVariable instances. Previously, the documentation only mentioned where PyTensor operations were wrapped, but didn't inform users that many operations are also available as convenient methods directly on variables.

The addition includes:

  • A new section explaining the method-based API on XTensorVariable
  • Direct links to key methods like .isel() and .dot() as specifically requested
  • Additional commonly used methods grouped by category (aggregation, shape operations)
  • A practical example showing how to use these methods with named dimensions

Related Issue

Checklist

Type of change

  • Documentation

Notes

Documentation was tested locally. It did generate some folders that I had to delete for the pre-commit to pass.
Maybe we should add it to contribution to documentation.

Copy link

welcome bot commented Aug 22, 2025

Thank You Banner]
💖 Thanks for opening this pull request! 💖 The PyMC community really appreciates your time and effort to contribute to the project. Please make sure you have read our Contributing Guidelines and filled in our pull request template to the best of your ability.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Mention XTensorVariable methods in dims module
1 participant