Thread Previous • Date Previous • Date Next • Thread Next |
Hi,Regarding [*] and the comment "|the mask is the integer whose binary representation is xyz" at|[**], do we agree that
- 3 = 11 = 011 in binary [***] (and not 110) ?And that 1 = 001 (and not 100 as in [**])
- and that the comment at [**] should read "|the mask is the integer whose binary representation is zyx"|(and not xyz) ?
If yes, I'm looking forward to a "better bitmask documentation" branch (by myself, one day..., or someone else) ;-)
Jérôme [*] On 07/03/2019 11:03, Robert Caulk wrote:
stress x y 10 kpa, strain z 0.2 (bitmask -> 1 1 0): triax.stressMask = 3
[**] https://gitlab.com/yade-dev/trunk/blob/master/examples/triax-tutorial/script-session1.py#L91
[***] https://en.wikipedia.org/wiki/Binary_number#/media/File:Binary_counter.gif
Thread Previous • Date Previous • Date Next • Thread Next |