Mentions légales du service

Skip to content
Snippets Groups Projects
Commit e0a4a29d authored by hhakim's avatar hhakim
Browse files

Enable GPU diag_opt (butterfly optim.) for matfaust.circ/anticirc/toeplitz.

parent 7f566a14
Branches
Tags
No related merge requests found
......@@ -98,9 +98,6 @@ function A = anticirc(c, varargin)
A = left(C, N-1) * matfaust.Faust(factors(C, N) * P);
end
if startsWith(dev, 'gpu')
if diag_opt
error('diag_opt on GPU Faust is not yet implemented')
end
A = clone(A, 'dev', 'gpu');
end
end
......@@ -93,7 +93,7 @@ function C = circ(c, varargin)
end
log2c = log2(numel(c));
if(log2c ~= floor(log2c))
C = matfaust.toeplitz(c, [c(1) c(end:-1:2)]);
C = matfaust.toeplitz(c, [c(1) c(end:-1:2)], 'diag_opt', diag_opt, 'dev', dev);
return
end
if size(c, 2) == 1
......@@ -131,9 +131,6 @@ function C = circ(c, varargin)
end
C = l * r;
if startsWith(dev, 'gpu')
if diag_opt
error('diag_opt on GPU Faust is not yet implemented')
end
C = clone(C, 'dev', 'gpu');
end
end
......@@ -167,10 +167,7 @@ function T = toeplitz(c, varargin)
c_ = [c, zeros(1, N-m+1+N-n), r(end:-1:2)];
C = matfaust.circ(c_, 'diag_opt', diag_opt);
T = C(1:m, 1:n);
if startsWith(dev, 'gpu')
if diag_opt
error('diag_opt on GPU Faust is not yet implemented')
end
T = clone(T, 'dev', 'gpu');
end
if startsWith(dev, 'gpu')
T = clone(T, 'dev', 'gpu');
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment