From 9962c59b56960569c8df332144190e62c1eb3b01 Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Thu, 22 Apr 2010 14:11:18 -0400 Subject: * implement the corner() API change: new methods topLeftCorner() etc * get rid of BlockReturnType: it was not needed, and code was not always using it consistently anyway * add topRows(), leftCols(), bottomRows(), rightCols() * add corners unit-test covering all of that * adapt docs, expand "porting from eigen 2 to 3" * adapt Eigen2Support --- doc/AsciiQuickReference.txt | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'doc/AsciiQuickReference.txt') diff --git a/doc/AsciiQuickReference.txt b/doc/AsciiQuickReference.txt index 74de7344b..d2e973f5d 100644 --- a/doc/AsciiQuickReference.txt +++ b/doc/AsciiQuickReference.txt @@ -47,15 +47,14 @@ x.segment(i, n) // x(i+1 : i+n) x.segment(i) // x(i+1 : i+n) P.block(i, j, rows, cols) // P(i+1 : i+rows, j+1 : j+cols) P.block(i, j) // P(i+1 : i+rows, j+1 : j+cols) -P.corner(TopLeft, rows, cols) // P(1:rows, 1:cols) -P.corner(TopRight, rows, cols) // [m n]=size(P); P(1:rows, n-cols+1:n) -P.corner(BottomLeft, rows, cols) // [m n]=size(P); P(m-rows+1:m, 1:cols) -P.corner(BottomRight, rows, cols) // [m n]=size(P); P(m-rows+1:m, n-cols+1:n) -P.corner(TopLeft) // P(1:rows, 1:cols) -P.corner(TopRight) // [m n]=size(P); P(1:rows, n-cols+1:n) -P.corner(BottomLeft) // [m n]=size(P); P(m-rows+1:m, 1:cols) -P.corner(BottomRight) // [m n]=size(P); P(m-rows+1:m, n-cols+1:n) -P.minor(i, j) // Something nasty. +P.topLeftCorner(rows, cols) // P(1:rows, 1:cols) +P.topRightCorner(rows, cols) // [m n]=size(P); P(1:rows, n-cols+1:n) +P.bottomLeftCorner(rows, cols) // [m n]=size(P); P(m-rows+1:m, 1:cols) +P.bottomRightCorner(rows, cols) // [m n]=size(P); P(m-rows+1:m, n-cols+1:n) +P.topLeftCorner() // P(1:rows, 1:cols) +P.topRightCorner() // [m n]=size(P); P(1:rows, n-cols+1:n) +P.bottomLeftCorner() // [m n]=size(P); P(m-rows+1:m, 1:cols) +P.bottomRightCorner() // [m n]=size(P); P(m-rows+1:m, n-cols+1:n) // Of particular note is Eigen's swap function which is highly optimized. // Eigen // Matlab -- cgit v1.2.3