Team Ai
Datasetpublic

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.

sourceHugging Faceupdated 2mo agoView on Hugging Face
0likes3.1kdownloads
IntegerIndexedElementGet.js58 linesDownload Raw Back to 2016
1'use strict';2 3var $SyntaxError = require('es-errors/syntax');4var $TypeError = require('es-errors/type');5var isNegativeZero = require('math-intrinsics/isNegativeZero');6 7var GetValueFromBuffer = require('./GetValueFromBuffer');8var IsDetachedBuffer = require('./IsDetachedBuffer');9var IsInteger = require('./IsInteger');10 11var typedArrayLength = require('typed-array-length');12var typedArrayBuffer = require('typed-array-buffer');13var typedArrayByteOffset = require('typed-array-byte-offset');14var whichTypedArray = require('which-typed-array');15 16var tableTAO = require('./tables/typed-array-objects');17 18// https://262.ecma-international.org/6.0/#sec-integerindexedelementget19 20module.exports = function IntegerIndexedElementGet(O, index) {21	if (typeof index !== 'number') {22		throw new $TypeError('`index` must be a Number'); // step 123	}24	var arrayTypeName = whichTypedArray(O); // step 1025	if (!arrayTypeName) {26		throw new $TypeError('`O` must be a TypedArray'); // step 227	}28	if (arrayTypeName === 'BigInt64Array' || arrayTypeName === 'BigUint64Array') {29		throw new $SyntaxError('BigInt64Array and BigUint64Array do not exist until ES2020');30	}31 32	var buffer = typedArrayBuffer(O); // step 333 34	if (IsDetachedBuffer(buffer)) {35		throw new $TypeError('`O` has a detached buffer'); // step 436	}37 38	if (!IsInteger(index) || isNegativeZero(index)) {39		return void undefined; // steps 5 - 640	}41 42	var length = typedArrayLength(O); // step 743 44	if (index < 0 || index >= length) {45		return void undefined; // step 846	}47 48	var offset = typedArrayByteOffset(O); // step 949 50	var elementType = tableTAO.name['$' + arrayTypeName]; // step 1351 52	var elementSize = tableTAO.size['$' + elementType]; // step 1153 54	var indexedPosition = (index * elementSize) + offset; // step 1255 56	return GetValueFromBuffer(buffer, indexedPosition, elementType); // step 1457};58 
Brunobkr/llama.cpp_AlgMor24_github · Team Ai