Skip to content

Commit e66aa58

Browse files
abhinavagarwal07tkoeppe
authored andcommitted
[linalg.algs.blas1.iamax] Fix return type of vector_idx_abs_max
The declarations use extents_type (a std::extents shape type), but the Returns clause specifies a scalar index of type size_type. Replace extents_type with size_type in [linalg.syn] and [linalg.algs.blas1.iamax].
1 parent 2baf431 commit e66aa58

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

source/numerics.tex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11143,9 +11143,9 @@
1114311143

1114411144
// \ref{linalg.algs.blas1.iamax}, index of maximum absolute value of vector elements
1114511145
template<@\exposconcept{in-vector}@ InVec>
11146-
typename InVec::extents_type vector_idx_abs_max(InVec v);
11146+
typename InVec::size_type vector_idx_abs_max(InVec v);
1114711147
template<class ExecutionPolicy, @\exposconcept{in-vector}@ InVec>
11148-
typename InVec::extents_type vector_idx_abs_max(ExecutionPolicy&& exec, InVec v);
11148+
typename InVec::size_type vector_idx_abs_max(ExecutionPolicy&& exec, InVec v);
1114911149

1115011150
// \ref{linalg.algs.blas1.matfrobnorm}, Frobenius norm of a matrix
1115111151
template<@\exposconcept{in-matrix}@ InMat, @\exposconcept{scalar}@ Scalar>
@@ -13980,9 +13980,9 @@
1398013980
\indexlibraryglobal{vector_idx_abs_max}%
1398113981
\begin{itemdecl}
1398213982
template<@\exposconcept{in-vector}@ InVec>
13983-
typename InVec::extents_type vector_idx_abs_max(InVec v);
13983+
typename InVec::size_type vector_idx_abs_max(InVec v);
1398413984
template<class ExecutionPolicy, @\exposconcept{in-vector}@ InVec>
13985-
typename InVec::extents_type vector_idx_abs_max(ExecutionPolicy&& exec, InVec v);
13985+
typename InVec::size_type vector_idx_abs_max(ExecutionPolicy&& exec, InVec v);
1398613986
\end{itemdecl}
1398713987

1398813988
\begin{itemdescr}

0 commit comments

Comments
 (0)