diff options
author | Marco Falke <falke.marco@gmail.com> | 2017-01-01 13:25:48 +0000 |
---|---|---|
committer | Marco Falke <falke.marco@gmail.com> | 2017-01-01 13:25:48 +0000 |
commit | 4ebf69394d46cf5113b27fb11923cffeb54c28d2 (patch) | |
tree | 525901c50ae6ef619e2d49667152fcd958bbf3bc /doc/AsciiQuickReference.txt | |
parent | 8d7810a4762776fa7363e9bfcac429e7d8b58645 (diff) |
doc: Fix trivial typo in AsciiQuickReference.txt
* * *
fixup!
Diffstat (limited to 'doc/AsciiQuickReference.txt')
-rw-r--r-- | doc/AsciiQuickReference.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/AsciiQuickReference.txt b/doc/AsciiQuickReference.txt index 9599df60b..8409f8850 100644 --- a/doc/AsciiQuickReference.txt +++ b/doc/AsciiQuickReference.txt @@ -36,7 +36,7 @@ A.fill(10); // Fill A with all 10's. MatrixXd::Identity(rows,cols) // eye(rows,cols) C.setIdentity(rows,cols) // C = eye(rows,cols) MatrixXd::Zero(rows,cols) // zeros(rows,cols) -C.setZero(rows,cols) // C = ones(rows,cols) +C.setZero(rows,cols) // C = zeros(rows,cols) MatrixXd::Ones(rows,cols) // ones(rows,cols) C.setOnes(rows,cols) // C = ones(rows,cols) MatrixXd::Random(rows,cols) // rand(rows,cols)*2-1 // MatrixXd::Random returns uniform random numbers in (-1, 1). @@ -84,7 +84,7 @@ P.bottomRightCorner<rows,cols>() // P(end-rows+1:end, end-cols+1:end) // Of particular note is Eigen's swap function which is highly optimized. // Eigen // Matlab -R.row(i) = P.col(j); // R(i, :) = P(:, i) +R.row(i) = P.col(j); // R(i, :) = P(:, j) R.col(j1).swap(mat1.col(j2)); // R(:, [j1 j2]) = R(:, [j2, j1]) // Views, transpose, etc; |