Convert matrix to float

d_s's icon

Hi There,

I have a matrix from a jit.histogram object and want to multiply all the values in that matrix by a float, say 0.65 When I use jit.op to do this I get integer math. I know this is a dumb question... just need to find the type converter object and for some reason I'm not seeing it.

thanks,
d_s

patch:

Max Patch
Copy patch and select New From Clipboard in Max.

d_s's icon

Nevermind... figured it out. Pipe the histogram output into a matrix of type float32.