From f679843dc2792349482af0c02e1daf7032d0c791 Mon Sep 17 00:00:00 2001 From: Johannes Zipfel Date: Sat, 25 Jan 2025 17:14:21 +0000 Subject: [PATCH] Block doc non square --- doc/examples/Tutorial_BlockOperations_print_block.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doc/examples/Tutorial_BlockOperations_print_block.cpp b/doc/examples/Tutorial_BlockOperations_print_block.cpp index 7c65ddb6a..45683c907 100644 --- a/doc/examples/Tutorial_BlockOperations_print_block.cpp +++ b/doc/examples/Tutorial_BlockOperations_print_block.cpp @@ -12,4 +12,8 @@ int main() { cout << "Block of size " << i << "x" << i << endl; cout << m.block(0, 0, i, i) << endl << endl; } + int j1 = 2; + int j2 = 3; + cout << "Non-square block of size " << j1 << "x" << j2 << endl; + cout << m.block(0, 0, j1, j2) << endl << endl; }