diff options
author | Benoit Jacob <jacob.benoit.1@gmail.com> | 2009-09-22 20:58:29 -0400 |
---|---|---|
committer | Benoit Jacob <jacob.benoit.1@gmail.com> | 2009-09-22 20:58:29 -0400 |
commit | ab5cc8284aedae58885902f3764d19a8ff05f758 (patch) | |
tree | c4af7c4c5ba3801cb789c76ff875d8ad9934f9e9 /Eigen/src/Core/ReturnByValue.h | |
parent | c1c780a94f148c618a74cfcccf40037442ae2d7c (diff) |
convert LU::solve() to the new API
Diffstat (limited to 'Eigen/src/Core/ReturnByValue.h')
-rw-r--r-- | Eigen/src/Core/ReturnByValue.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Eigen/src/Core/ReturnByValue.h b/Eigen/src/Core/ReturnByValue.h index 4a5d5c105..afe9ecbbd 100644 --- a/Eigen/src/Core/ReturnByValue.h +++ b/Eigen/src/Core/ReturnByValue.h @@ -2,6 +2,7 @@ // for linear algebra. // // Copyright (C) 2009 Gael Guennebaud <g.gael@free.fr> +// Copyright (C) 2009 Benoit Jacob <jacob.benoit.1@gmail.com> // // Eigen is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -37,6 +38,10 @@ struct ei_traits<ReturnByValue<Derived> > }; }; +/* The ReturnByValue object doesn't even have a coeff() method. + * So the only way that nesting it in an expression can work, is by evaluating it into a plain matrix. + * So ei_nested always gives the plain return matrix type. + */ template<typename Derived,int n,typename PlainMatrixType> struct ei_nested<ReturnByValue<Derived>, n, PlainMatrixType> { |