Skip to content

Commit 37e2cdb

Browse files
authored
Merge pull request #2824 from AlexandreSinger/feature-issue-2818
[NDMatrix] Removed Template ID From Constructors
2 parents ba73c18 + 8f24979 commit 37e2cdb

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

libs/libvtrutil/src/vtr_ndmatrix.h

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ class NdMatrixProxy {
3434
* @param dim_stride: The stride of this dimension (i.e. how many element in memory between indicies of this dimension)
3535
* @param start: Pointer to the start of the sub-matrix this proxy represents
3636
*/
37-
NdMatrixProxy<T, N>(const size_t* dim_sizes, const size_t* dim_strides, T* start)
37+
NdMatrixProxy(const size_t* dim_sizes, const size_t* dim_strides, T* start)
3838
: dim_sizes_(dim_sizes)
3939
, dim_strides_(dim_strides)
4040
, start_(start) {}
4141

42-
NdMatrixProxy<T, N>& operator=(const NdMatrixProxy<T, N>& other) = delete;
42+
NdMatrixProxy& operator=(const NdMatrixProxy& other) = delete;
4343

4444
///@brief const [] operator
4545
const NdMatrixProxy<T, N - 1> operator[](size_t index) const {
@@ -76,12 +76,12 @@ class NdMatrixProxy<T, 1> {
7676
* @param dim_stride: The stride of this dimension (i.e. how many element in memory between indicies of this dimension)
7777
* @param start: Pointer to the start of the sub-matrix this proxy represents
7878
*/
79-
NdMatrixProxy<T, 1>(const size_t* dim_sizes, const size_t* dim_stride, T* start)
79+
NdMatrixProxy(const size_t* dim_sizes, const size_t* dim_stride, T* start)
8080
: dim_sizes_(dim_sizes)
8181
, dim_strides_(dim_stride)
8282
, start_(start) {}
8383

84-
NdMatrixProxy<T, 1>& operator=(const NdMatrixProxy<T, 1>& other) = delete;
84+
NdMatrixProxy& operator=(const NdMatrixProxy& other) = delete;
8585

8686
///@brief const [] operator
8787
const T& operator[](size_t index) const {
@@ -407,3 +407,4 @@ using Matrix = NdMatrix<T, 2>;
407407

408408
} // namespace vtr
409409
#endif
410+

0 commit comments

Comments
 (0)