如何以时间有效的方式获取向量的一部分并用零填充其他部分?
我有一个向量;
A | | A | 0 |
| | | 0 |
| | | 0 |
| | <-------- x -----------> | | <--|
| | | | |
| | | | | data in this region
| | after | | | is not changed
| | | | |
| | operation | | |
| | | | |
| | | | <--|
| | <--------- y -----------> | |
| | | 0 |
| | | 0 |
| | | 0 |