49 people like it.
Like the snippet!
The snippet shows how to support slicing in a type. Slicing allows you to get for example a 2D sub-matrix of a matrix and is implemented by adding GetSlice member.
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: |
|
Link: | http://fssnip.net/F |
Posted: | 13 years ago |
Author: | Tomas Petricek |
Tags: | slice , matrix , indexing , getslice |