New user self-registration is disabled due to spam. Please email eigen-core-team @ lists.tuxfamily.org if you need an account.
Before reporting a bug, please make sure that your Eigen version is up-to-date!
Bug 586 - Add NaN and Inf constant matrices
Summary: Add NaN and Inf constant matrices
Status: DECISIONNEEDED
Alias: None
Product: Eigen
Classification: Unclassified
Component: Core - general (show other bugs)
Version: unspecified
Hardware: All All
: Normal Unknown
Assignee: Nobody
URL:
Whiteboard:
Keywords: JuniorJob
Depends on:
Blocks: 3.x
  Show dependency treegraph
 
Reported: 2013-04-13 23:49 UTC by Gael Guennebaud
Modified: 2019-01-17 15:35 UTC (History)
2 users (show)



Attachments

Description Gael Guennebaud 2013-04-13 23:49:09 UTC
Just like we have Ones and Zero matrices, we could have NaN and Inf shortcuts. NaN is complementary to the EIGEN_INITIALIZE_MATRICES_BY_NAN option, and use cases of Inf are pretty obvious.

Regarding names, matlab has NaN(,) and Inf(,) functions, but we could go for more explicit names. In particular shouldn't we add plural "s" -> NaNs() and Infs() or Infinities()?

Note You need to log in before you can comment on or make changes to this bug.