Closed christopherzimmerman closed 4 years ago
Instead of something expensive like:
1 / t + t / 2 * t
Use
t.map { |i| 1 / i + i / 2 * i }
4 times a smaller constant. Also ironic that this branch is called einsum and yet einsum has been axed.
Instead of something expensive like:
1 / t + t / 2 * t
Use
t.map { |i| 1 / i + i / 2 * i }
4 times a smaller constant. Also ironic that this branch is called einsum and yet einsum has been axed.