Skip to content

[NDMatrix] Removed Template ID From Constructors #2824

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions libs/libvtrutil/src/vtr_ndmatrix.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ class NdMatrixProxy {
* @param dim_stride: The stride of this dimension (i.e. how many element in memory between indicies of this dimension)
* @param start: Pointer to the start of the sub-matrix this proxy represents
*/
NdMatrixProxy<T, N>(const size_t* dim_sizes, const size_t* dim_strides, T* start)
NdMatrixProxy(const size_t* dim_sizes, const size_t* dim_strides, T* start)
: dim_sizes_(dim_sizes)
, dim_strides_(dim_strides)
, start_(start) {}

NdMatrixProxy<T, N>& operator=(const NdMatrixProxy<T, N>& other) = delete;
NdMatrixProxy& operator=(const NdMatrixProxy& other) = delete;

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

NdMatrixProxy<T, 1>& operator=(const NdMatrixProxy<T, 1>& other) = delete;
NdMatrixProxy& operator=(const NdMatrixProxy& other) = delete;

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

} // namespace vtr
#endif