Skip to content

Commit c5554a6

Browse files
author
Florian Plaza Oñate
committed
Dummy commit
1 parent 608b561 commit c5554a6

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

inst/include/Rcpp/vector/Matrix.h

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,14 @@ class Matrix : public Vector<RTYPE, StoragePolicy>, public MatrixBase<RTYPE, tru
134134
inline const_Proxy operator()( const size_t& i, const size_t& j) const {
135135
return static_cast< const Vector<RTYPE>* >( this )->operator[]( offset( i, j ) ) ;
136136
}
137-
137+
/*
138+
inline Proxy at( const size_t& i, const size_t& j) {
139+
return static_cast< Vector<RTYPE>* >( this )->operator()( i, j ) ;
140+
}
141+
inline const_Proxy at( const size_t& i, const size_t& j) const {
142+
return static_cast< const Vector<RTYPE>* >( this )->operator()( i, j ) ;
143+
}
144+
*/
138145
inline Row operator()( int i, internal::NamedPlaceHolder ) {
139146
return Row( *this, i ) ;
140147
}

inst/include/Rcpp/vector/Vector.h

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,14 @@ class Vector :
330330
inline const_Proxy operator()( const size_t& i) const {
331331
return cache.ref( offset(i) ) ;
332332
}
333-
333+
/*
334+
inline Proxy at( const size_t& i) {
335+
return cache.ref( offset(i) ) ;
336+
}
337+
inline const_Proxy at( const size_t& i) const {
338+
return cache.ref( offset(i) ) ;
339+
}
340+
*/
334341
inline Proxy operator()( const size_t& i, const size_t& j) {
335342
return cache.ref( offset(i,j) ) ;
336343
}

0 commit comments

Comments
 (0)