This is a pre-release version (latest).Go to latest (1.18.0)
{ } Raw JSON

bundles / scipy latest / scipy / optimize / _linprog_util / _round_to_power_of_two

function

scipy.optimize._linprog_util:_round_to_power_of_two

source: build-install/usr/lib/python3.14/site-packages/scipy/optimize/_linprog_util.py:1226

Signature

def _round_to_power_of_two(x)

Summary

Round elements of the array to the nearest power of two.

Aliases

  • scipy.optimize._linprog_util._round_to_power_of_two