Skip to content

Commit 7a4794b

Browse files
authored
workaround for CTAD bug in NVC++ (#859)
1 parent effec8f commit 7a4794b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

include/matx/operators/cross.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,9 @@ namespace matx
9999
auto idxOut = idx[idx.size() - 1];
100100

101101
//create references to individual slices for ease of notation
102-
cuda::std::array idx0(idx);
103-
cuda::std::array idx1(idx);
104-
cuda::std::array idx2(idx);
102+
cuda::std::array idx0{idx};
103+
cuda::std::array idx1{idx};
104+
cuda::std::array idx2{idx};
105105

106106
idx0[idx0.size() - 1] = 0LL;
107107
idx1[idx1.size() - 1] = 1LL;
@@ -197,4 +197,4 @@ namespace matx
197197
__MATX_INLINE__ auto cross(const OpA &A, const OpB &B) {
198198
return detail::CrossOp(A, B);
199199
}
200-
} // end namespace matx
200+
} // end namespace matx

0 commit comments

Comments
 (0)