no_shift
Copyright (C) 2005 IENT-RWTH Aachen
template<class G> inline typename shiftArray< Vector<G> >::self no_shift( Vector<G> &X)
template<class G> inline typename shiftArray<const Vector<G> >::self no_shift(const Vector<G> &X)
template<class G> inline typename shiftArray< Matrix<G> >::self no_shift( Matrix<G> &X)
template<class G> inline typename shiftArray<const Matrix<G> >::self no_shift(const Matrix<G> &X)
Suppresses the offset on a shifted array
Parameters
X | The array to shift |
Returns
An array representing the shifted array
Example
shiftDenseVector<int>::self X(4, "0 1 2 3", -2); cout << X[0] << endl; // 2 cout << no_shift(X)[0] << endl; // 0
See Also