Skip to content

Commit

Permalink
Bump nimble
Browse files Browse the repository at this point in the history
  • Loading branch information
Clonkk committed Oct 26, 2020
1 parent b11f74a commit 52de5a5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions fftw3.nimble
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Package

version = "0.2.5"
version = "0.2.6"
author = "rcaillaud"
description = "Nim FFTW bindings"
license = "LGPL-2.1"
Expand All @@ -10,4 +10,4 @@ srcDir = "src"
# Dependencies

requires "nim >= 1.2.0"
requires "arraymancer"
requires "arraymancer >= 0.5.2"
6 changes: 3 additions & 3 deletions htmldocs/fftw3.html
Original file line number Diff line number Diff line change
Expand Up @@ -877,7 +877,7 @@ <h1><a class="toc-backref" href="#12">Procs</a></h1>

<p><strong class="examples_text">Example:</strong></p>
<pre class="listing"><span class="Keyword">import</span><span class="Whitespace"> </span><span class="Identifier">arraymancer</span><span class="Whitespace">
</span><span class="Keyword">let</span><span class="Whitespace"> </span><span class="Identifier">input_tensor</span><span class="Whitespace"> </span><span class="Operator">=</span><span class="Whitespace"> </span><span class="Identifier">randomTensor</span><span class="Punctuation">(</span><span class="DecNumber">10</span><span class="Punctuation">,</span><span class="Whitespace"> </span><span class="DecNumber">10</span><span class="Punctuation">,</span><span class="Whitespace"> </span><span class="DecNumber">10</span><span class="Punctuation">,</span><span class="Whitespace"> </span><span class="FloatNumber">10.0</span><span class="Punctuation">)</span><span class="Whitespace">
</span><span class="Keyword">let</span><span class="Whitespace"> </span><span class="Identifier">input_tensor</span><span class="Whitespace"> </span><span class="Operator">=</span><span class="Whitespace"> </span><span class="Identifier">randomTensor</span><span class="Punctuation">[</span><span class="Identifier">float64</span><span class="Punctuation">]</span><span class="Punctuation">(</span><span class="DecNumber">10</span><span class="Punctuation">,</span><span class="Whitespace"> </span><span class="DecNumber">10</span><span class="Punctuation">,</span><span class="Whitespace"> </span><span class="DecNumber">10</span><span class="Punctuation">,</span><span class="Whitespace"> </span><span class="FloatNumber">10.0</span><span class="Punctuation">)</span><span class="Whitespace">
</span><span class="Comment"># output_tensor is the fftshift of input_tensor</span><span class="Whitespace">
</span><span class="Keyword">var</span><span class="Whitespace"> </span><span class="Identifier">output_tensor</span><span class="Whitespace"> </span><span class="Operator">=</span><span class="Whitespace"> </span><span class="Identifier">fftshift</span><span class="Punctuation">(</span><span class="Identifier">input_tensor</span><span class="Punctuation">)</span></pre>Calculate fftshift using circshift

Expand All @@ -889,7 +889,7 @@ <h1><a class="toc-backref" href="#12">Procs</a></h1>

<p><strong class="examples_text">Example:</strong></p>
<pre class="listing"><span class="Keyword">import</span><span class="Whitespace"> </span><span class="Identifier">arraymancer</span><span class="Whitespace">
</span><span class="Keyword">let</span><span class="Whitespace"> </span><span class="Identifier">input_tensor</span><span class="Whitespace"> </span><span class="Operator">=</span><span class="Whitespace"> </span><span class="Identifier">randomTensor</span><span class="Punctuation">(</span><span class="DecNumber">10</span><span class="Punctuation">,</span><span class="Whitespace"> </span><span class="DecNumber">10</span><span class="Punctuation">,</span><span class="Whitespace"> </span><span class="DecNumber">10</span><span class="Punctuation">,</span><span class="Whitespace"> </span><span class="FloatNumber">10.0</span><span class="Punctuation">)</span><span class="Whitespace">
</span><span class="Keyword">let</span><span class="Whitespace"> </span><span class="Identifier">input_tensor</span><span class="Whitespace"> </span><span class="Operator">=</span><span class="Whitespace"> </span><span class="Identifier">randomTensor</span><span class="Punctuation">[</span><span class="Identifier">float64</span><span class="Punctuation">]</span><span class="Punctuation">(</span><span class="DecNumber">10</span><span class="Punctuation">,</span><span class="Whitespace"> </span><span class="DecNumber">10</span><span class="Punctuation">,</span><span class="Whitespace"> </span><span class="DecNumber">10</span><span class="Punctuation">,</span><span class="Whitespace"> </span><span class="FloatNumber">10.0</span><span class="Punctuation">)</span><span class="Whitespace">
</span><span class="Comment"># output_tensor is the fftshift of input_tensor</span><span class="Whitespace">
</span><span class="Keyword">var</span><span class="Whitespace"> </span><span class="Identifier">output_tensor</span><span class="Whitespace"> </span><span class="Operator">=</span><span class="Whitespace"> </span><span class="Identifier">ifftshift</span><span class="Punctuation">(</span><span class="Identifier">input_tensor</span><span class="Punctuation">)</span></pre>Calculate inverse fftshift using circshift

Expand Down Expand Up @@ -1701,7 +1701,7 @@ <h1><a class="toc-backref" href="#12">Procs</a></h1>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br/>
<small style="color: var(--hint);">Made with Nim. Generated: 2020-10-26 17:10:08 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2020-10-26 17:16:21 UTC</small>
</div>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/fftw3.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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)

Expand Down

0 comments on commit 52de5a5

Please sign in to comment.