Brunobkr/llama.cpp_AlgMor24_github
ΩFFFΣLLIa • llama.cpp • AlgMor24 ██████╗ ███████╗███████╗███████╗██╗ ██╗ ██╗ █████╗ ██╔═══██╗██╔════╝██╔════╝██╔════╝██║ ██║ ██║██╔══██╗ ██║ ██║█████╗ █████╗ █████╗ ██║ ██║ ██║███████║ ██║ ██║██╔══╝ ██╔══╝ ██╔══╝ ██║ ██║ ██║██╔══██║ ╚██████╔╝██║ ██║ ███████╗███████╗███████╗██║██║ ██║ ╚═════╝ ╚═╝ ╚═╝ ╚══════╝╚══════╝╚══════╝╚═╝╚═╝ ╚═╝ High-Performance LLM / VLM Inference & Autonomous Agentic Ecosystem… See the full description on the dataset page: https://huggingface.co/datasets/Brunobkr/llama.cpp_AlgMor24_github.
03.1k
1'use strict';2 3var $TypeError = require('es-errors/type');4 5var Call = require('./Call');6var IsLessThan = require('./IsLessThan');7var ToNumber = require('./ToNumber');8var ToString = require('./ToString');9 10var isNaN = require('math-intrinsics/isNaN');11 12// https://262.ecma-international.org/14.0/#sec-comparearrayelements13 14module.exports = function CompareArrayElements(x, y, compareFn) {15 if (typeof compareFn !== 'function' && typeof compareFn !== 'undefined') {16 throw new $TypeError('Assertion failed: `compareFn` must be a function or undefined');17 }18 19 if (typeof x === 'undefined' && typeof y === 'undefined') {20 return 0; // step 121 }22 23 if (typeof x === 'undefined') {24 return 1; // step 225 }26 27 if (typeof y === 'undefined') {28 return -1; // step 329 }30 31 if (typeof compareFn !== 'undefined') { // step 432 var v = ToNumber(Call(compareFn, void undefined, [x, y])); // step 4.a33 if (isNaN(v)) {34 return 0; // step 4.b35 }36 return v; // step 4.c37 }38 39 var xString = ToString(x); // step 540 var yString = ToString(y); // step 641 var xSmaller = IsLessThan(xString, yString, true); // step 742 if (xSmaller) {43 return -1; // step 844 }45 var ySmaller = IsLessThan(yString, xString, true); // step 946 if (ySmaller) {47 return 1; // step 1048 }49 return 0; // step 1150};51 