We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2bc1a8b commit ac1a2a2Copy full SHA for ac1a2a2
src/stdlib_stats_median.fypp
@@ -123,6 +123,11 @@ contains
123
integer(kind = int64) :: c, n
124
${t1}$, allocatable :: x_tmp(:)
125
126
+ if (any(shape(x) .ne. shape(mask))) then
127
+ call error_stop("ERROR (median): shapes of x and mask are different")
128
+ error stop
129
+ end if
130
+
131
x_tmp = pack(x, mask)
132
133
call sort(x_tmp)
@@ -163,6 +168,11 @@ contains
163
168
#:endif
164
169
165
170
171
172
173
174
175
166
176
select case(dim)
167
177
#:for fi in range(1, rank+1)
178
case(${fi}$)
0 commit comments