Registered Member
|
Hi,
I am tring to use the < CWISE Binary Operator like this:
What's wrong here ? Thank you for your help. |
Moderator
|
hi,
mat1.cwise() < 5 returns a matrix of bool, so you have to cast it or directly do something with it, e.g.: mat2 = (mat1.cwise() < 5).cast<float>(); ma2 = (mat1.cwise() < 5).select(0.f,mat1); |
Registered Member
|
Great !
Thank you very much. This helps a lot. Best regards, Sylvain. |
Registered users: Bing [Bot], daret, Google [Bot], sandyvee, Sogou [Bot]