11-29-2013 02:18 AM
If you use booleans, why don't you use an boolean array.
11-29-2013 02:22 AM
Hi,
I tried your solution but there is is 2 in there in the result
11-29-2013 02:29 AM - edited 11-29-2013 02:31 AM
Hi sumalama,
yes, you're working with DBL values and perform a cross product operation...
Please define your desired operation more carefully. What will be the expected result for a given input? Until now you always presented "unexpected results"...
- Please state clearly: do you want a plain element-by-element multiplication or do you want to perform a matrix cross product?
- Please provided an expected result (maybe along with some explanation of the math behind) for some example inputs!
11-29-2013 02:30 AM
11-29-2013 03:39 AM
Hi,
I want simple binary multiplication(AND) between the binary bits inside the array(matrix). The expected result is a matrix with binary values inside it which is shown in the figure-
11-29-2013 03:53 AM - edited 11-29-2013 03:55 AM
Hi sumalama,
???
Your inputs are two arrays (8×3 and 3×6 "bits"), the result should be an array of 8×6 bits.
Which bits are multiplied in that "simple multiplication"?
Can you write the formula to calculate the upper left bit (index 0,0) of the resulting array? And additionally the formula for calculating the lower right bit (index 5,7)?
11-29-2013 04:07 AM
What do you mean? the array X has dimension with 8 rows and 3 column so its 8x3 array (or matrix), isn't it? and similarly goes for Y.
11-29-2013 04:14 AM - edited 11-29-2013 04:15 AM
what about values at 2x1 and 2x6???
11-29-2013 05:00 AM
Hi,
Could anybody give me the solution to my problem. One thing is how do I get the boolean array? I cannot find it?
thanks
11-29-2013 05:04 AM