You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Licensed under the Apache License, Version 2.0 (the "License");
234
+
* you may not use this file except in compliance with the License.
235
+
* You may obtain a copy of the License at
236
+
*
237
+
* http://www.apache.org/licenses/LICENSE-2.0
238
+
*
239
+
* Unless required by applicable law or agreed to in writing, software
240
+
* distributed under the License is distributed on an "AS IS" BASIS,
241
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
242
+
* See the License for the specific language governing permissions and
243
+
* limitations under the License.
244
+
*
245
+
*
246
+
* ## Notice
247
+
*
248
+
* The original C code and copyright notice are from the [PFFFT library]{@link https://github.com/marton78/pffft/blob/master/fftpack.c}. The implementation follows the original, but has been modified for JavaScript.
249
+
*
250
+
* ```text
251
+
* Copyright (c) 2004 the University Corporation for Atmospheric
252
+
* Research ("UCAR"). All rights reserved. Developed by NCAR's
253
+
* Computational and Information Systems Laboratory, UCAR,
254
+
* www.cisl.ucar.edu.
255
+
*
256
+
* Redistribution and use of the Software in source and binary forms,
257
+
* with or without modification, is permitted provided that the
258
+
* following conditions are met:
259
+
*
260
+
* - Neither the names of NCAR's Computational and Information Systems
261
+
* Laboratory, the University Corporation for Atmospheric Research,
262
+
* nor the names of its sponsors or contributors may be used to
263
+
* endorse or promote products derived from this Software without
264
+
* specific prior written permission.
265
+
*
266
+
* - Redistributions of source code must retain the above copyright
267
+
* notices, this list of conditions, and the disclaimer below.
268
+
*
269
+
* - Redistributions in binary form must reproduce the above copyright
270
+
* notice, this list of conditions, and the disclaimer below in the
271
+
* documentation and/or other materials provided with the
272
+
* distribution.
273
+
*
274
+
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
275
+
* EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO THE WARRANTIES OF
276
+
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
277
+
* NONINFRINGEMENT. IN NO EVENT SHALL THE CONTRIBUTORS OR COPYRIGHT
278
+
* HOLDERS BE LIABLE FOR ANY CLAIM, INDIRECT, INCIDENTAL, SPECIAL,
279
+
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES OR OTHER LIABILITY, WHETHER IN AN
280
+
* ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
281
+
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE
282
+
* SOFTWARE.
283
+
* ```
284
+
*/
285
+
286
+
'use strict';
287
+
288
+
// MAIN //
289
+
290
+
/**
291
+
* Computes an index into the intermediate array `c1`.
292
+
*
293
+
* @private
294
+
* @param {NonNegativeInteger} a1 - index of first dimension
295
+
* @param {NonNegativeInteger} a2 - index of second dimension
296
+
* @param {NonNegativeInteger} a3 - index of third dimension
297
+
* @param {NonNegativeInteger} l1 - length parameter related to the FFT stage
298
+
* @param {NonNegativeInteger} ido - dimension order
299
+
* @returns {NonNegativeInteger} computed index
300
+
*/
301
+
<spanclass="cstat-no" title="statement not covered" ><spanclass="fstat-no" title="function not covered" >function c1Ref( a1, a2, a3, l1, ido ) {</span></span>
0 commit comments