octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Implementation of convn


From: Søren Hauberg
Subject: Implementation of convn
Date: Sun, 23 Mar 2008 22:35:00 +0100

Hi,
  Attached is a fairly simple implementation of 'convn'. The
implementation consists of two files '__convn__.cc' and 'convn.m'. The
'__convn__' function computes the valid part of the convolution, while
the 'convn' function (the user interface) pads the data with zeros,
depending on the 'shape' argument. This split keeps the code fairly
simple, but it isn't as fast as humanly possible (fast enough though
IMHO). Is this approach acceptable?
  I should mention that the current code is missing
    * documentation
    * some optimisations to handle when B is larger than A
I'll implement this later this evening, and resend the code.

Søren

Attachment: __convn__.cc
Description: Text Data

Attachment: convn.m
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]