convolver 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/convolver/convolver.c +10 -0
- data/lib/convolver/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 88d7660efc3504ac86b924689050754185e69f8c
|
4
|
+
data.tar.gz: 69786c83e478d75db709e00d46346ec6f0bbef8f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 58bf4eb7b7b44fae9f46b79e33e62b2a8148cb9f9d8f40525c74e152b1d3b3ffabfdbb106cce09af350e30bd923fe40d62f38b24f19ef8ee169bc0c5696315f6
|
7
|
+
data.tar.gz: 4cbafca71dc5399d05950c6ebda268f5533541069bd71130388634edd4530101dc16e689abdd9393493de2e299cf89e7d189a3a510c0deecc491bf9314a0dc4a
|
data/ext/convolver/convolver.c
CHANGED
@@ -14,6 +14,16 @@
|
|
14
14
|
// To hold the module object
|
15
15
|
VALUE Convolver = Qnil;
|
16
16
|
|
17
|
+
/* @overload fit_kernel_backwards( fft_temp_space, kernel )
|
18
|
+
* @!visibility private
|
19
|
+
* Over-writes fft_temp_space at edges with a reversed copy of kernel, in such a way that
|
20
|
+
* an FFTW3-based convolve has a result set in an easy-to-extract position later. This is
|
21
|
+
* implemented as a native extension for convenience and speed - to do this with methods provided
|
22
|
+
* by narray gem would take several complex steps and be inefficient.
|
23
|
+
* @param [NArray<sfloat>] fft_temp_space target array for pre-fft copy of kernel, is over-written
|
24
|
+
* @param [NArray] kernel must be same size or smaller than fft_temp_space in each dimension
|
25
|
+
* @return [nil]
|
26
|
+
*/
|
17
27
|
static VALUE narray_fit_backwards( VALUE self, VALUE a, VALUE b ) {
|
18
28
|
struct NARRAY *na_a, *na_b;
|
19
29
|
volatile VALUE val_a, val_b;
|
data/lib/convolver/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: convolver
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Neil Slater
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-10-
|
11
|
+
date: 2013-10-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: narray
|