KKernelQuay
Product

Product features · Full discrete convolution

01

Check empty inputs, a single value and an asymmetric kernel, keeping output length equal to the sum of nonempty input lengths minus one.

01

Connection

Base URL, credentials and a reachable server.

02

Selection

A model available through the configured endpoint.

03

Capabilities

Context limits and tool support are determined by the model and server.

Full discrete convolution

● ● ●KernelQuay●
A concrete starting point · Full discrete convolution ×
import math
def convolve(values, kernel):
    if not all(map(math.isfinite, [*values, *kernel])):
        raise ValueError("finite inputs required")
    if not values or not kernel: return []
    result = [0] * (len(values) + len(kernel) - 1)
    for i, value in enumerate(values):
        for j, weight in enumerate(kernel):
            result[i + j] += value * weight
    if not all(map(math.isfinite, result)):
        raise ValueError("non-finite result")
    return result
✳Compute a full discrete convolution of two finite numeric sequences.
✓ ChangesReview before applying ↗
Illustrative workspace
AI coding workspace

Your next change starts here.

Get the Windows app ↗