Matlab GPU Matrix Multiplication with Integers inputs

1 view (last 30 days)
Hi There
I was wondering does the GPU matrix multiplication allow gpuArray matrices to have "integer" types ? I tried it and an error appeared that the input should be single or double. Any help ?

Answers (1)

Matt J
Matt J on 22 Sep 2013
Edited: Matt J on 22 Sep 2013
I think the error message answered the question for you. Matrix multiplication isn't even defined for integer types in normal CPU-based MATLAB computation.
  2 Comments
Matt J
Matt J on 22 Sep 2013
Alhassan Khedr Commented:
Thanks Matt for your Answer. Is there a way around this? do I have to multiply then element by element ?
Matt J
Matt J on 22 Sep 2013
Edited: Matt J on 22 Sep 2013
Why not just convert your matrix to singles or doubles as the error message suggests?

Sign in to comment.

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!