tiepvupsu / FISTA

FISTA implementation in MATLAB (recently updated FISTA with backtracking)
184 stars 61 forks source link

vec should be (:) #1

Closed nttruong7 closed 6 years ago

nttruong7 commented 7 years ago

in norm1.m I have to replace res = full(sum(abs(vec(X)))); to res = full(sum(abs(X(:)))); and it works! thanks for sharing

tiepvupsu commented 7 years ago

Thank you. I fixed that error. In different versions of Matlab, vec function is built-in.

But you are right, replace vec(X) by X(:) will work on any Matlab version.