stan-dev / stan-dev/math

Add hypergeometric function of a matrix argument

Open
#2,761 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
839
Forks
220
Avg merge
2d 4h
Merged PRs (30d)
14

Description

Overview

Provide an implementation for the hypergeometric function of a matrix argument, a generalization of the hypergeometric series.

Description

The function is commonplace in the densities of matrix variates, e.g. several distributions in the Matrix Variate Distributions text by Gupta and Nagar. The function is also described on Wikipedia.

Expected Output

Implement both the function and its logarithm as functions that can be called within a Stan program:

  • real hypergeometric_matrix()
  • real log_hypergeometric_matrix()

Additional Resources

Current Version:

v4.4.0

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 requested hypergeometric_matrix() and log_hypergeometric_matrix() entry points alongside the Koev and Edelman algorithm and the linked HypergeoMat implementations. The issue does not identify Stan Math files, tests, argument signatures, or acceptance criteria beyond exposing both functions to Stan programs, so substantial design and project research are needed.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.