115 lines
1.7 KiB
JavaScript
115 lines
1.7 KiB
JavaScript
|
/**
|
||
|
* @license Apache-2.0
|
||
|
*
|
||
|
* Copyright (c) 2021 The Stdlib Authors.
|
||
|
*
|
||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
|
* you may not use this file except in compliance with the License.
|
||
|
* You may obtain a copy of the License at
|
||
|
*
|
||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||
|
*
|
||
|
* Unless required by applicable law or agreed to in writing, software
|
||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
|
* See the License for the specific language governing permissions and
|
||
|
* limitations under the License.
|
||
|
*/
|
||
|
|
||
|
/* eslint-disable stdlib/capitalized-comments */
|
||
|
|
||
|
'use strict';
|
||
|
|
||
|
// MODULES //
|
||
|
|
||
|
var abs = require( './../../../base/special/abs' );
|
||
|
var absf = require( './../../../base/special/absf' );
|
||
|
var labs = require( './../../../base/special/labs' );
|
||
|
var identity = require( './../../../base/special/identity' );
|
||
|
|
||
|
|
||
|
// MAIN //
|
||
|
|
||
|
var data = [
|
||
|
// 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`).
|
||
|
|
||
|
// float64
|
||
|
abs,
|
||
|
abs,
|
||
|
|
||
|
// float32
|
||
|
absf,
|
||
|
absf,
|
||
|
absf,
|
||
|
|
||
|
// generic
|
||
|
abs,
|
||
|
|
||
|
// int32
|
||
|
labs,
|
||
|
labs,
|
||
|
labs,
|
||
|
labs,
|
||
|
|
||
|
// int16
|
||
|
abs,
|
||
|
abs,
|
||
|
abs,
|
||
|
abs,
|
||
|
abs,
|
||
|
abs,
|
||
|
abs,
|
||
|
|
||
|
// int8
|
||
|
abs,
|
||
|
abs,
|
||
|
abs,
|
||
|
abs,
|
||
|
abs,
|
||
|
abs,
|
||
|
abs,
|
||
|
abs,
|
||
|
abs,
|
||
|
abs,
|
||
|
|
||
|
// uint32
|
||
|
identity,
|
||
|
identity,
|
||
|
identity,
|
||
|
|
||
|
// uint16
|
||
|
identity,
|
||
|
identity,
|
||
|
identity,
|
||
|
identity,
|
||
|
identity,
|
||
|
identity,
|
||
|
|
||
|
// uint8
|
||
|
identity,
|
||
|
identity,
|
||
|
identity,
|
||
|
identity,
|
||
|
identity,
|
||
|
identity,
|
||
|
identity,
|
||
|
identity,
|
||
|
identity,
|
||
|
|
||
|
// uint8c
|
||
|
identity,
|
||
|
identity,
|
||
|
identity,
|
||
|
identity,
|
||
|
identity,
|
||
|
identity,
|
||
|
identity,
|
||
|
identity,
|
||
|
identity
|
||
|
];
|
||
|
|
||
|
|
||
|
// EXPORTS //
|
||
|
|
||
|
module.exports = data;
|