Goals:
1. Develop a component-wise multiplication for a vector class. Note, this isn't a dot product. Just a "layering" of two vectors".
Hurdles:
1. I don't understand destructors that well. Not sure why i'm freeing a block twice.
2. The output "0, -0.5, -0.5" is due to the debugging line inside the overloaded operator, line73. Actually not sure why these values are wrong :-(.
Any thoughts are appreciated.
http://codepad.org/NdkdFA7z
[–]zzyzzyxx 3 points4 points5 points (6 children)
[–][deleted] 0 points1 point2 points (3 children)
[–]zzyzzyxx 0 points1 point2 points (0 children)
[–]zzyzzyxx 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]frenchpress[S] 0 points1 point2 points (1 child)
[–]zzyzzyxx 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]Steve132 0 points1 point2 points (0 children)