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