shiftDenseMatrix
Copyright (C) 2005 IENT-RWTH Aachen
template<class V,class A=alignment_allocator<V> > struct shiftDenseMatrix
Shifted dense matrix type
Generic Parameters
V | Type of the elements |
A | Optional allocator |
Example
shiftDenseMatrix<int>::self X(3,3,"1 2 3 4 5 6 7 8 9", MatrixIndex<int>(-1,-1)); // validity domain of indexes: -1..1, -1..1 DenseMatrix<int>::self Y(3,3,"1 2 3 4 5 6 7 8 9"); shiftDenseMatrix<int>::self Z = shift(X,-1,-1) // shift and copy, validity domain of Y indexes: -1..1, -1..1
See Also