changeset 200:12818af285cc

More type declarations
author Chris Cannam
date Mon, 06 May 2013 16:56:13 +0100
parents 054855112a1c
children 71a09107ee3e
files yetilab/block/blockfuncs.yeti
diffstat 1 files changed, 11 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/yetilab/block/blockfuncs.yeti	Mon May 06 16:56:04 2013 +0100
+++ b/yetilab/block/blockfuncs.yeti	Mon May 06 16:56:13 2013 +0100
@@ -4,6 +4,8 @@
 b = load yetilab.block.block;
 vec = load yetilab.block.fvector;
 
+load yetilab.block.blocktype;
+
 sum' bl =
    (v = b.data bl;
     tot = new double[1];
@@ -51,13 +53,15 @@
     b.concat [b.rangeOf half (len-half) bl, b.rangeOf 0 half bl]);
 
 {
-sum = sum',
-mean,
-multiply, divideBy, sqr,
-sqrt = sqrt',
-rms,
-fftshift,
-ifftshift,
+sum is block -> number = sum',
+mean is block -> number,
+multiply is block -> block -> block, 
+divideBy is number -> block -> block, 
+sqr is block -> block,
+sqrt is block -> block = sqrt',
+rms is block -> number,
+fftshift is block -> block,
+ifftshift is block -> block,
 }