UNPKG

@specs-feup/lara

Version:

A js port of the popular framework for building source-to-source compilers

21 lines 734 B
export default class Numbers { /** * @param number - A number to convert to indexes. * @returns An array with indexes corresponding to the active bits of the given number */ static toIndexesArray(number: number): number[]; /** * Taken from here: https://stackoverflow.com/questions/3959211/fast-factorial-function-in-javascript#3959275 */ static factorial(num: number): number; /** * @deprecated THIS IS NOT A MEAN!!! THIS CALCULATES AN AVERAGE!!!. */ static mean(values: number[]): number; static average(values: number[]): number; /** * @returns Sum of the given values. */ static sum(values: number[]): number; } //# sourceMappingURL=Numbers.d.ts.map