scalar-autograd
Version:
Scalar-based reverse-mode automatic differentiation in TypeScript.
28 lines (27 loc) • 1.08 kB
TypeScript
import { Value } from './Value';
export declare class ValueArithmetic {
static add(a: Value, b: Value): Value;
static sqrt(a: Value): Value;
static mul(a: Value, b: Value): Value;
static sub(a: Value, b: Value): Value;
static div(a: Value, b: Value, eps?: number): Value;
static pow(a: Value, exp: number): Value;
static powValue(a: Value, b: Value, eps?: number): Value;
static mod(a: Value, b: Value): Value;
static abs(a: Value): Value;
static exp(a: Value): Value;
static log(a: Value, eps?: number): Value;
static min(a: Value, b: Value): Value;
static max(a: Value, b: Value): Value;
static floor(a: Value): Value;
static ceil(a: Value): Value;
static round(a: Value): Value;
static square(a: Value): Value;
static cube(a: Value): Value;
static reciprocal(a: Value, eps?: number): Value;
static clamp(a: Value, min: number, max: number): Value;
static sum(vals: Value[]): Value;
static mean(vals: Value[]): Value;
static neg(a: Value): Value;
static sign(a: Value): Value;
}