Skip to content

Commit 0b12c85

Browse files
authored
All coeffs in fromtensor (#224)
* all coeffs in fromtensor * version bump to v0.7.17
1 parent 93a0086 commit 0b12c85

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "ApproxFunBase"
22
uuid = "fbd15aa5-315a-5a7d-a8a4-24992e37be05"
3-
version = "0.7.16"
3+
version = "0.7.17"
44

55
[deps]
66
AbstractFFTs = "621f4979-c628-5d54-868e-fcf4e3e8185c"

src/Multivariate/TensorSpace.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -472,10 +472,9 @@ end
472472
fromtensor(S::Space,M::AbstractMatrix) = fromtensor(tensorizer(S),M)
473473
totensor(S::Space,M::AbstractVector) = totensor(tensorizer(S),M)
474474

475-
# we only copy upper triangular of coefficients
476475
function fromtensor(it::Tensorizer,M::AbstractMatrix)
477476
n,m=size(M)
478-
ret=zeros(eltype(M),blockstop(it,max(n,m)))
477+
ret=zeros(eltype(M),blockstop(it,max(n,m)+1))
479478
k = 1
480479
for (K,J) in it
481480
if k > length(ret)

0 commit comments

Comments
 (0)