Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
  • Sign in / Register
  • eigen eigen
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 653
    • Issues 653
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Custom issue tracker
    • Custom issue tracker
  • Merge requests 17
    • Merge requests 17
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • libeigen
  • eigeneigen
  • Issues
  • #720
Closed
Open
Created Dec 04, 2019 by Eigen Bugzilla@eigenbzReporter

Gaussian NullaryExpr

Submitted by nfo..@..il.com

Assigned to Nobody

Link to original bugzilla bug (#720)

Description

Drawing matrices with standard normal entries is so common and having to write the functor manually is such a pain (see stackoverflow.com/questions/6142576/sample-from-multivariate-normal-gaussian-distribution-in-c). Could a DenseBase::Gaussian be added to generate matrices with standard normal entries.

Honestly, given how tedious it is to create new NullaryExprs it'd be really useful to be able to generate matrices according to all of the distributions that C++ handles in the random library (normal, Poisson, Bernoulli, binomial, etc.).

I don't think this is too hard to implement, it's basically just redoing Random for the different distributions, however, I'm new to the project and wanted to get peoples' opinions.

Thanks.

Depends on

#1286 (closed)

Blocking

#814 (closed)

Edited Dec 05, 2019 by Eigen Bugzilla
Assignee
Assign to
Time tracking