/** @import { Metric } from "../metrics/index.js" */ /** * Computes the norm of a vector, by computing its distance to **0**. * * @category Matrix * @param {Matrix | number[] | Float64Array} v - Vector. * @param {Metric} [metric=euclidean] - Which metric should be used to compute the norm. Default is `euclidean` * @returns {number} - The norm of `v`. */ export function norm(v: Matrix | number[] | Float64Array, metric?: Metric): number; import { Matrix } from "../matrix/index.js"; import type { Metric } from "../metrics/index.js"; //# sourceMappingURL=norm.d.ts.map