| commit | a9232af845702d62d81c49b4d92b39f29410cea0 | [log] [tgz] |
|---|---|---|
| author | Gael Guennebaud <g.gael@free.fr> | Mon Jan 16 16:17:01 2017 +0100 |
| committer | Gael Guennebaud <g.gael@free.fr> | Mon Jan 16 16:17:01 2017 +0100 |
| tree | 6efb7ecec7c49880a16d2ab31599d9c0dba3de7f | |
| parent | 6e97698161275db750868afb99f405cdb849f412 [diff] |
Introduce a variable_or_fixed<N> proxy returned by fix<N>(val) to pass both a compile-time and runtime fallback value in case N means "runtime". This mechanism is used by the seq/seqN functions. The proxy object is immediately converted to pure compile-time (as fix<N>) or pure runtime (i.e., an Index) to avoid redundant template instantiations.
Eigen is a C++ template library for linear algebra: matrices, vectors, numerical solvers, and related algorithms.
For more information go to http://eigen.tuxfamily.org/.