From 52de5a5a36f65abbc041a46076e3f1c63fa60cbc Mon Sep 17 00:00:00 2001 From: Regis Caillaud Date: Mon, 26 Oct 2020 18:17:01 +0100 Subject: [PATCH] Bump nimble --- fftw3.nimble | 4 ++-- htmldocs/fftw3.html | 6 +++--- src/fftw3.nim | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/fftw3.nimble b/fftw3.nimble index cb5ac17..a370131 100644 --- a/fftw3.nimble +++ b/fftw3.nimble @@ -1,6 +1,6 @@ # Package -version = "0.2.5" +version = "0.2.6" author = "rcaillaud" description = "Nim FFTW bindings" license = "LGPL-2.1" @@ -10,4 +10,4 @@ srcDir = "src" # Dependencies requires "nim >= 1.2.0" -requires "arraymancer" +requires "arraymancer >= 0.5.2" diff --git a/htmldocs/fftw3.html b/htmldocs/fftw3.html index 96a48d1..33ba376 100644 --- a/htmldocs/fftw3.html +++ b/htmldocs/fftw3.html @@ -877,7 +877,7 @@

Procs

Example:

import arraymancer
-let input_tensor = randomTensor(10, 10, 10, 10.0)
+let input_tensor = randomTensor[float64](10, 10, 10, 10.0)
 # output_tensor is the fftshift of input_tensor
 var output_tensor = fftshift(input_tensor)
Calculate fftshift using circshift @@ -889,7 +889,7 @@

Procs

Example:

import arraymancer
-let input_tensor = randomTensor(10, 10, 10, 10.0)
+let input_tensor = randomTensor[float64](10, 10, 10, 10.0)
 # output_tensor is the fftshift of input_tensor
 var output_tensor = ifftshift(input_tensor)
Calculate inverse fftshift using circshift @@ -1701,7 +1701,7 @@

Procs

diff --git a/src/fftw3.nim b/src/fftw3.nim index b647f91..c38c12f 100644 --- a/src/fftw3.nim +++ b/src/fftw3.nim @@ -161,7 +161,7 @@ proc circshift*[T](t: Tensor[T], shift: seq[int]): Tensor[T]= proc fftshift*[T](t: Tensor[T]): Tensor[T]= runnableExamples: import arraymancer - let input_tensor = randomTensor(10, 10, 10, 10.0) + let input_tensor = randomTensor[float64](10, 10, 10, 10.0) # output_tensor is the fftshift of input_tensor var output_tensor = fftshift(input_tensor) @@ -174,7 +174,7 @@ proc fftshift*[T](t: Tensor[T]): Tensor[T]= proc ifftshift*[T](t: Tensor[T]): Tensor[T]= runnableExamples: import arraymancer - let input_tensor = randomTensor(10, 10, 10, 10.0) + let input_tensor = randomTensor[float64](10, 10, 10, 10.0) # output_tensor is the fftshift of input_tensor var output_tensor = ifftshift(input_tensor)