Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert error #227

Closed
wenquan opened this issue Nov 26, 2018 · 0 comments
Closed

Convert error #227

wenquan opened this issue Nov 26, 2018 · 0 comments

Comments

@wenquan
Copy link

wenquan commented Nov 26, 2018

When I am trying to run the following code in an function

 ObjReconTmp[Nxysub+1:Nxy-Nxysub,Nxysub+1:Nxy-Nxysub] = resize(S_B,Nxy-Nxysub*2,Nxy-Nxysub*2,AF_INTERP_BILINEAR) 

It throws me the error

ERROR: LoadError: MethodError: Cannot convert an object of type ArrayFire.AFArray{Float64,2} to an object of type ArrayFire.AFArray{Float32,N} where N
This may have arisen from a call to the constructor ArrayFire.AFArray{Float32,N} where N(...), since type constructors fall back to convert methods.

Any idea how to fix this problem? Note that S_B and ObjReconTmp have exactly the same size and the same type.

@wenquan wenquan closed this as completed Nov 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant