Mercurial > hg > may
changeset 519:dbeb33a09d0d sized_matrix
Use mat.fromLists for a couple of things
author | Chris Cannam |
---|---|
date | Wed, 20 Nov 2013 17:44:13 +0000 |
parents | e39f31bf5d7a |
children | 30f4b03eb8c1 |
files | src/may/stream/test/test_convolve.yeti |
diffstat | 1 files changed, 2 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/may/stream/test/test_convolve.yeti Wed Nov 20 17:03:20 2013 +0000 +++ b/src/may/stream/test/test_convolve.yeti Wed Nov 20 17:44:13 2013 +0000 @@ -85,12 +85,10 @@ "convolvedImpulse-multichannel-\(name)": \( all id (map do opts: - ir = mat.fromRows - (map vec.fromList [[0,0,0,1],[8,6,4,2],[1,0,-1,0]]); + ir = mat.fromLists (Rows [[0,0,0,1],[8,6,4,2],[1,0,-1,0]]); signal = maybeDuration 4 (syn.precalculated 2 - (mat.fromRows - (map vec.fromList [[1,1,0,0],[0,1,1,0],[0,0,1,1]]))); + (mat.fromLists (Rows [[1,1,0,0],[0,1,1,0],[0,0,1,1]]))); c = convolve.convolvedWith opts ir signal; if compareClose (map vec.list (mat.asRows (c.read 7))) [[0,0,0,1,1,0,0],[0,8,14,10,6,2,0],[0,0,1,1,-1,-1,0]] and