Skip to content
Snippets Groups Projects
Commit 78981535 authored by Stephan Hilb's avatar Stephan Hilb
Browse files

allow P1 elements for p2_project!()

parent 5bb94d39
No related branches found
No related tags found
No related merge requests found
......@@ -112,6 +112,7 @@ end
function p2_project!(p2, lambda)
p2.space.element == DP0() || p2.space.element == DP1() ||
p2.space.element == P1() ||
throw(ArgumentError("element unsupported"))
p2d = reshape(p2.data, prod(p2.space.size), :) # no copy
for i in axes(p2d, 2)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment