Skip to content

Commit 70686b4

Browse files
authored
Converting old std:: types to cuda::std:: types (#629)
* Converting old std:: types to cuda::std:: types. Paving the way for removing relaxed constexpr.
1 parent 381a6b2 commit 70686b4

169 files changed

Lines changed: 1649 additions & 1703 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

docs_input/api/manipulation/joinrepeat/clone.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ clone
66
Clone one or more dimensions of an operator to a higher rank
77

88
.. doxygenfunction:: clone(Op t, const index_t (&shape)[Rank])
9-
.. doxygenfunction:: clone(Op t, const std::array<index_t, Rank> &shape)
9+
.. doxygenfunction:: clone(Op t, const cuda::std::array<index_t, Rank> &shape)
1010

1111
Examples
1212
~~~~~~~~

docs_input/api/manipulation/rearranging/overlap.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ end of the data to make the tensor rectangular.
2222
Only 1D input operators are accepted at this time
2323

2424
.. doxygenfunction:: overlap( const OpType &op, const index_t (&windows)[N], const index_t (&strides)[N])
25-
.. doxygenfunction:: overlap( const OpType &op, const std::array<index_t, N> &windows, const std::array<index_t, N> &strides)
25+
.. doxygenfunction:: overlap( const OpType &op, const cuda::std::array<index_t, N> &windows, const cuda::std::array<index_t, N> &strides)
2626

2727
Examples
2828
~~~~~~~~

docs_input/api/manipulation/rearranging/permute.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ permute
66
Permute the dimensions of an operator
77

88
.. doxygenfunction:: permute(const T &op, const int32_t (&dims)[T::Rank()])
9-
.. doxygenfunction:: permute(const T &op, const std::array<int32_t, T::Rank()> &dims)
9+
.. doxygenfunction:: permute(const T &op, const cuda::std::array<int32_t, T::Rank()> &dims)
1010

1111
Examples
1212
~~~~~~~~

docs_input/api/polynomials/legendre.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Return Legendre polynomial coefficients at the input operator
77

88
.. doxygenfunction:: legendre(T1 n, T2 m, const T3 in)
99
.. doxygenfunction:: legendre(T1 n, T2 m, const T3 in, int (&axis)[2])
10-
.. doxygenfunction:: legendre(T1 n, T2 m, const T3 in, std::array<int, 2> axis)
10+
.. doxygenfunction:: legendre(T1 n, T2 m, const T3 in, cuda::std::array<int, 2> axis)
1111

1212
Examples
1313
~~~~~~~~

docs_input/api/signalimage/filtering/filter.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ used for IIR filters, but it will call the appropriate functions for FIR if the
1010
.. note::
1111
This function is currently is not supported with host-based executors (CPU)
1212

13-
.. doxygenfunction:: matx::filter(const OpA &a, const std::array<FilterType, NR> h_rec, const std::array<FilterType, NNR> h_nonrec)
13+
.. doxygenfunction:: matx::filter(const OpA &a, const cuda::std::array<FilterType, NR> h_rec, const cuda::std::array<FilterType, NNR> h_nonrec)
1414

1515
Examples
1616
~~~~~~~~

docs_input/basics/creation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ As mentioned in the descriptor section, any type that conforms to the shape sema
196196

197197
.. code-block:: cpp
198198
199-
std::array<int, 3> = {10, 20, 30};
199+
cuda::std::array<int, 3> = {10, 20, 30};
200200
auto t = make_tensor<float>(array);
201201
202202
Creating From A Descriptor

examples/recursive_filter.cu

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ int main([[maybe_unused]] int argc, [[maybe_unused]] char **argv)
8080
tensor_t<InType, 1> solView({numSamples});
8181

8282
// Create views into data objects
83-
auto rCoeffs = std::array<FilterType, 2>{0.4f, -0.1f};
84-
auto nrCoeffs = std::array<FilterType, 2>{2.0f, 1.0f};
83+
auto rCoeffs = cuda::std::array<FilterType, 2>{0.4f, -0.1f};
84+
auto nrCoeffs = cuda::std::array<FilterType, 2>{2.0f, 1.0f};
8585

8686
// initialize input data
8787
for (index_t b = 0; b < batches; b++) {

examples/spectrogram.cu

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ int main([[maybe_unused]] int argc, [[maybe_unused]] char **argv)
7777
constexpr uint32_t num_iterations = 100;
7878
float time_ms;
7979

80-
std::array<index_t, 1> num_samps{N};
81-
std::array<index_t, 1> half_win{nfft / 2 + 1};
82-
std::array<index_t, 1> s_time_shape{(N - noverlap) / nstep};
80+
cuda::std::array<index_t, 1> num_samps{N};
81+
cuda::std::array<index_t, 1> half_win{nfft / 2 + 1};
82+
cuda::std::array<index_t, 1> s_time_shape{(N - noverlap) / nstep};
8383

8484
auto time = make_tensor<float>({N});
8585
auto modulation = make_tensor<float>({N});

examples/spectrogram_graph.cu

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,9 @@ int main([[maybe_unused]] int argc, [[maybe_unused]] char **argv)
7878
constexpr uint32_t num_iterations = 20;
7979
float time_ms;
8080

81-
std::array<index_t, 1> num_samps{N};
82-
std::array<index_t, 1> half_win{nfft / 2 + 1};
83-
std::array<index_t, 1> s_time_shape{(N - noverlap) / nstep};
81+
cuda::std::array<index_t, 1> num_samps{N};
82+
cuda::std::array<index_t, 1> half_win{nfft / 2 + 1};
83+
cuda::std::array<index_t, 1> s_time_shape{(N - noverlap) / nstep};
8484

8585
tensor_t<float, 1> time({N});
8686
tensor_t<float, 1> modulation({N});

examples/svd_power.cu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ int main([[maybe_unused]] int argc, [[maybe_unused]] char **argv)
9191
(A = random<float>({m, n}, NORMAL)).run(exec);
9292

9393
#endif
94-
std::array<index_t, U.Rank()> Dshape;
94+
cuda::std::array<index_t, U.Rank()> Dshape;
9595
Dshape.fill(matxKeepDim);
9696
Dshape[U.Rank()-2] = m;
9797
// cloning D across

0 commit comments

Comments
 (0)