data.js (1791B)
1 /** 2 * @license Apache-2.0 3 * 4 * Copyright (c) 2021 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 abs = require( './../../../base/special/abs' ); 26 var absf = require( './../../../base/special/absf' ); 27 var labs = require( './../../../base/special/labs' ); 28 var identity = require( './../../../base/special/identity' ); 29 30 31 // MAIN // 32 33 var data = [ 34 // 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`). 35 36 // float64 37 abs, 38 abs, 39 40 // float32 41 absf, 42 absf, 43 absf, 44 45 // generic 46 abs, 47 48 // int32 49 labs, 50 labs, 51 labs, 52 labs, 53 54 // int16 55 abs, 56 abs, 57 abs, 58 abs, 59 abs, 60 abs, 61 abs, 62 63 // int8 64 abs, 65 abs, 66 abs, 67 abs, 68 abs, 69 abs, 70 abs, 71 abs, 72 abs, 73 abs, 74 75 // uint32 76 identity, 77 identity, 78 identity, 79 80 // uint16 81 identity, 82 identity, 83 identity, 84 identity, 85 identity, 86 identity, 87 88 // uint8 89 identity, 90 identity, 91 identity, 92 identity, 93 identity, 94 identity, 95 identity, 96 identity, 97 identity, 98 99 // uint8c 100 identity, 101 identity, 102 identity, 103 identity, 104 identity, 105 identity, 106 identity, 107 identity, 108 identity 109 ]; 110 111 112 // EXPORTS // 113 114 module.exports = data;