Skip to content

Add .as_float to convert mixed profiles to floating-point equivalents - #1090

Merged
tturocy merged 1 commit into
masterfrom
issue_721
Aug 27, 2026
Merged

tturocy merged 1 commit into
masterfrom
issue_721

Conversation

@tturocy

@tturocy tturocy commented Aug 27, 2026

Copy link
Copy Markdown
Member

This adds .as_float to MixedStrategyProfile/MixedBehaviorProfile, which creates a copy of the profile will all probabilities cast to floating-point precision.

Methods which accepted a floating-point precision profile as a starting point now accept either precision profile, with as_float being called automatically.

@tturocy tturocy linked an issue Aug 27, 2026 that may be closed by this pull request
@tturocy tturocy self-assigned this Aug 27, 2026
@tturocy tturocy added this to the gambit-17.0.0.beta.1 milestone Aug 27, 2026
This adds `.as_float` to `MixedStrategyProfile`/`MixedBehaviorProfile`, which creates a copy of the profile will all probabilities cast to floating-point precision.

Methods which accepted a floating-point precision profile as a starting point now accept either precision profile, with `as_float` being called automatically.
@tturocy
tturocy merged commit 7cdf576 into master Aug 27, 2026
26 checks passed
@tturocy
tturocy deleted the issue_721 branch August 27, 2026 17:59
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.

Accept rational-precision mixed profiles for liap_solve

1 participant