Skip to content

Commit 0789a30

Browse files
committed
Remove fromcanonical in points for BivariateSpace
1 parent 9d017b6 commit 0789a30

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

src/Multivariate/TensorSpace.jl

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -565,10 +565,18 @@ end
565565
points(d::Union{EuclideanDomain{2},BivariateSpace},n,m) = points(d,n,m,1),points(d,n,m,2)
566566

567567
function points(d::BivariateSpace,n,m,k)
568-
ptsx=points(columnspace(d,1),n)
569-
ptst=points(factor(d,2),m)
568+
k (1,2) || throw(ArgumentError("k must be 1 or 2"))
570569

571-
promote_type(eltype(ptsx),eltype(ptst))[fromcanonical(d,x,t)[k] for x in ptsx, t in ptst]
570+
ptsx = points(columnspace(d,1), n)
571+
ptst = points(factor(d,2), m)
572+
573+
T = promote_eltypeof(ptsx, ptst)
574+
575+
if k == 1
576+
repeat(ptsx, 1, m)
577+
else # k == 2
578+
repeat(reshape(ptst, 1, m), n)
579+
end
572580
end
573581

574582

0 commit comments

Comments
 (0)