Esempio n. 1
0
def mul(R, fact):
    for field_name, field in R.items():
        numpy.multiply(field, fact, out=field)
Esempio n. 2
0
def check_except_c128(R, expected):
    for field_name, field in R.items():
        print(field_name, field)
        assert field[0] == expected
Esempio n. 3
0
def inc(R, step):
    for field_name, field in R.items():
        numpy.add(field, step, out=field)