MCPcopy Create free account
hub / github.com/b45ch1/algopy / _plus_const

Function _plus_const

algopy/utpm/algorithms.py:38–50  ·  view source on GitHub ↗

Constants are only added to the d=0 slice of the data array. A function like this is not so useful for multiplication by a constant, because UTPM multiplication by a constant scales the entire data array rather than acting on only the d=0 slice.

(x_data, c, out=None)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 12

test_logMethod · 0.90
test_log1pMethod · 0.90
test_expMethod · 0.90
test_expm1Method · 0.90
test_powerMethod · 0.90
test_dawsnMethod · 0.90
_expitMethod · 0.85
_pb_expitMethod · 0.85
_log1pMethod · 0.85
_pb_log1pMethod · 0.85
_dawsnMethod · 0.85
_pb_dawsnMethod · 0.85

Calls 1

copyMethod · 0.45

Tested by 6

test_logMethod · 0.72
test_log1pMethod · 0.72
test_expMethod · 0.72
test_expm1Method · 0.72
test_powerMethod · 0.72
test_dawsnMethod · 0.72