finish PIVector doc

This commit is contained in:
Andrey
2022-04-20 16:50:36 +03:00
parent d4294e3d95
commit 8beaac5193
2 changed files with 49 additions and 30 deletions

View File

@@ -62,8 +62,10 @@ PICout operator <<(PICout s, const ConstChars & v) {
}
int main(int argc, char * argv[]) {
PIVector<int> v{1, 2, 3, 4};
PIVector<PIVector<int>> v2 = v.reshape(2,2, ReshapeByRow);
piCout << v2;
PIVector<int> v{1, 2, 3, 4, 5, 6};
PIVector<PIVector<int>> xv = v.reshape(3,2);
piCout << xv;
piCout << xv.flatten<int>();
piCout << xv.reshape<int>(2,3);
return 0;
}