insert a small matrix into a bigger matrix
Is it possible using 2d vector to insert one into another.. so let say we have 2d vectors A,b sized as.
1 2 3 4 5 6 7
|
|
| |
| |
--- | |
| | | b |
| A | | |
| | | |
--- ------ |
Vector A is sized 3x3 and vector sized 6x6..
Is it possible to put A into B, such that it is as such?
1 2 3 4 5 6 7
|
|
| | |
| A | |
| | |
|--- |
| b |
| |
------ |
placed in the upper left corner of vector B?
This is possible. Using for loops to loop through the indices, and an if statement to determine whether to use vector A or vector B.
so no way to do it using copy.. or insert?
Topic archived. No new replies allowed.