data.js (1400B)
1 /** 2 * @license Apache-2.0 3 * 4 * Copyright (c) 2020 The Stdlib Authors. 5 * 6 * Licensed under the Apache License, Version 2.0 (the "License"); 7 * you may not use this file except in compliance with the License. 8 * You may obtain a copy of the License at 9 * 10 * http://www.apache.org/licenses/LICENSE-2.0 11 * 12 * Unless required by applicable law or agreed to in writing, software 13 * distributed under the License is distributed on an "AS IS" BASIS, 14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 * See the License for the specific language governing permissions and 16 * limitations under the License. 17 */ 18 19 /* eslint-disable stdlib/capitalized-comments */ 20 21 'use strict'; 22 23 // MODULES // 24 25 var sqrt = require( './../../../../base/special/sqrt' ); 26 var sqrtf = require( './../../../../base/special/sqrtf' ); 27 28 29 // MAIN // 30 31 var data = [ 32 // NOTE: the following **must** match the order in `./types.json`. The order should be according to likelihood of use (e.g., if `float64` arrays are more likely, then `float64` types/data should come before `uint8`). 33 34 // float64 35 sqrt, 36 sqrt, 37 38 // float32 39 sqrtf, 40 sqrt, 41 sqrt, 42 43 // generic 44 sqrt, 45 46 // int32 47 sqrt, 48 sqrt, 49 50 // int16 51 sqrtf, 52 sqrt, 53 sqrt, 54 55 // int8 56 sqrtf, 57 sqrt, 58 sqrt, 59 60 // uint32 61 sqrt, 62 sqrt, 63 64 // uint16 65 sqrtf, 66 sqrt, 67 sqrt, 68 69 // uint8 70 sqrtf, 71 sqrt, 72 sqrt, 73 74 // uint8c 75 sqrtf, 76 sqrt, 77 sqrt 78 ]; 79 80 81 // EXPORTS // 82 83 module.exports = data;