aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/util
diff options
context:
space:
mode:
authorGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2009-09-03 02:53:51 -0400
committerGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2009-09-03 02:53:51 -0400
commit7aa6fd362558718304937ddfd60232c9802d69be (patch)
tree94dad36bd2e82e25a83f71ea76ef8772f96c5da2 /Eigen/src/Core/util
parent89557ac41d50196f17d48ada5137fcf435abe73a (diff)
big reorganization in JacobiSVD:
- R-SVD preconditioning now done with meta selectors to avoid compiling useless code - SVD options now honored, with options to hint "at least as many rows as cols" etc... - fix compilation in bad cases (rectangular and fixed-size) - the check for termination is now done on the fly, no more goto (should have done that earlier!)
Diffstat (limited to 'Eigen/src/Core/util')
-rw-r--r--Eigen/src/Core/util/Constants.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/Eigen/src/Core/util/Constants.h b/Eigen/src/Core/util/Constants.h
index 21e7f62c3..affc1d478 100644
--- a/Eigen/src/Core/util/Constants.h
+++ b/Eigen/src/Core/util/Constants.h
@@ -238,6 +238,15 @@ enum {
OnTheRight = 2
};
+// options for SVD decomposition
+enum {
+ SkipU = 0x1,
+ SkipV = 0x2,
+ AtLeastAsManyRowsAsCols = 0x4,
+ AtLeastAsManyColsAsRows = 0x8,
+ Square = AtLeastAsManyRowsAsCols | AtLeastAsManyColsAsRows
+};
+
/* the following could as well be written:
* enum NoChange_t { NoChange };
* but it feels dangerous to disambiguate overloaded functions on enum/integer types.