diff --git a/python/user_packages/Python313/site-packages/mitmproxy/addons/__init__.py b/python/user_packages/Python313/site-packages/mitmproxy/addons/__init__.py
new file mode 100644
index 0000000000000000000000000000000000000000..61d1f55413afdc877ccf600a8715b940a4b849f9
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/mitmproxy/addons/__init__.py
@@ -0,0 +1,67 @@
+from mitmproxy.addons import anticache
+from mitmproxy.addons import anticomp
+from mitmproxy.addons import block
+from mitmproxy.addons import blocklist
+from mitmproxy.addons import browser
+from mitmproxy.addons import clientplayback
+from mitmproxy.addons import command_history
+from mitmproxy.addons import comment
+from mitmproxy.addons import core
+from mitmproxy.addons import cut
+from mitmproxy.addons import disable_h2c
+from mitmproxy.addons import dns_resolver
+from mitmproxy.addons import export
+from mitmproxy.addons import maplocal
+from mitmproxy.addons import mapremote
+from mitmproxy.addons import modifybody
+from mitmproxy.addons import modifyheaders
+from mitmproxy.addons import next_layer
+from mitmproxy.addons import onboarding
+from mitmproxy.addons import proxyauth
+from mitmproxy.addons import proxyserver
+from mitmproxy.addons import save
+from mitmproxy.addons import savehar
+from mitmproxy.addons import script
+from mitmproxy.addons import serverplayback
+from mitmproxy.addons import stickyauth
+from mitmproxy.addons import stickycookie
+from mitmproxy.addons import strip_dns_https_records
+from mitmproxy.addons import tlsconfig
+from mitmproxy.addons import update_alt_svc
+from mitmproxy.addons import upstream_auth
+
+
+def default_addons():
+ return [
+ core.Core(),
+ browser.Browser(),
+ block.Block(),
+ strip_dns_https_records.StripDnsHttpsRecords(),
+ blocklist.BlockList(),
+ anticache.AntiCache(),
+ anticomp.AntiComp(),
+ clientplayback.ClientPlayback(),
+ command_history.CommandHistory(),
+ comment.Comment(),
+ cut.Cut(),
+ disable_h2c.DisableH2C(),
+ export.Export(),
+ onboarding.Onboarding(),
+ proxyauth.ProxyAuth(),
+ proxyserver.Proxyserver(),
+ script.ScriptLoader(),
+ dns_resolver.DnsResolver(),
+ next_layer.NextLayer(),
+ serverplayback.ServerPlayback(),
+ mapremote.MapRemote(),
+ maplocal.MapLocal(),
+ modifybody.ModifyBody(),
+ modifyheaders.ModifyHeaders(),
+ stickyauth.StickyAuth(),
+ stickycookie.StickyCookie(),
+ save.Save(),
+ savehar.SaveHar(),
+ tlsconfig.TlsConfig(),
+ upstream_auth.UpstreamAuth(),
+ update_alt_svc.UpdateAltSvc(),
+ ]
diff --git a/python/user_packages/Python313/site-packages/mitmproxy/addons/anticache.py b/python/user_packages/Python313/site-packages/mitmproxy/addons/anticache.py
new file mode 100644
index 0000000000000000000000000000000000000000..38b636de2bd637331d01524eece0ee32be5adebf
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/mitmproxy/addons/anticache.py
@@ -0,0 +1,18 @@
+from mitmproxy import ctx
+
+
+class AntiCache:
+ def load(self, loader):
+ loader.add_option(
+ "anticache",
+ bool,
+ False,
+ """
+ Strip out request headers that might cause the server to return
+ 304-not-modified.
+ """,
+ )
+
+ def request(self, flow):
+ if ctx.options.anticache:
+ flow.request.anticache()
diff --git a/python/user_packages/Python313/site-packages/mitmproxy/addons/anticomp.py b/python/user_packages/Python313/site-packages/mitmproxy/addons/anticomp.py
new file mode 100644
index 0000000000000000000000000000000000000000..eae8bc5b6709790b787d851634c7f8abe7fe75c9
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/mitmproxy/addons/anticomp.py
@@ -0,0 +1,15 @@
+from mitmproxy import ctx
+
+
+class AntiComp:
+ def load(self, loader):
+ loader.add_option(
+ "anticomp",
+ bool,
+ False,
+ "Try to convince servers to send us un-compressed data.",
+ )
+
+ def request(self, flow):
+ if ctx.options.anticomp:
+ flow.request.anticomp()
diff --git a/python/user_packages/Python313/site-packages/mitmproxy/addons/asgiapp.py b/python/user_packages/Python313/site-packages/mitmproxy/addons/asgiapp.py
new file mode 100644
index 0000000000000000000000000000000000000000..785d7982b726ec160a25a7d42d13bc84c53f15fe
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/mitmproxy/addons/asgiapp.py
@@ -0,0 +1,144 @@
+import asyncio
+import logging
+import urllib.parse
+
+import asgiref.compatibility
+import asgiref.wsgi
+
+from mitmproxy import ctx
+from mitmproxy import http
+
+logger = logging.getLogger(__name__)
+
+
+class ASGIApp:
+ """
+ An addon that hosts an ASGI/WSGI HTTP app within mitmproxy, at a specified hostname and port.
+
+ Some important caveats:
+ - This implementation will block and wait until the entire HTTP response is completed before sending out data.
+ - It currently only implements the HTTP protocol (Lifespan and WebSocket are unimplemented).
+ """
+
+ def __init__(self, asgi_app, host: str, port: int | None):
+ asgi_app = asgiref.compatibility.guarantee_single_callable(asgi_app)
+ self.asgi_app, self.host, self.port = asgi_app, host, port
+
+ @property
+ def name(self) -> str:
+ return f"asgiapp:{self.host}:{self.port}"
+
+ def should_serve(self, flow: http.HTTPFlow) -> bool:
+ return bool(
+ flow.request.pretty_host == self.host
+ and (self.port is None or flow.request.port == self.port)
+ and flow.live
+ and not flow.error
+ and not flow.response
+ )
+
+ async def request(self, flow: http.HTTPFlow) -> None:
+ if self.should_serve(flow):
+ await serve(self.asgi_app, flow)
+
+
+class WSGIApp(ASGIApp):
+ def __init__(self, wsgi_app, host: str, port: int | None):
+ asgi_app = asgiref.wsgi.WsgiToAsgi(wsgi_app)
+ super().__init__(asgi_app, host, port)
+
+
+HTTP_VERSION_MAP = {
+ "HTTP/1.0": "1.0",
+ "HTTP/1.1": "1.1",
+ "HTTP/2.0": "2",
+}
+
+
+def make_scope(flow: http.HTTPFlow) -> dict:
+ # %3F is a quoted question mark
+ quoted_path = urllib.parse.quote_from_bytes(flow.request.data.path).split(
+ "%3F", maxsplit=1
+ )
+
+ # (Unicode string) – HTTP request target excluding any query string, with percent-encoded
+ # sequences and UTF-8 byte sequences decoded into characters.
+ path = quoted_path[0]
+
+ # (byte string) – URL portion after the ?, percent-encoded.
+ query_string: bytes
+ if len(quoted_path) > 1:
+ query_string = urllib.parse.unquote(quoted_path[1]).encode()
+ else:
+ query_string = b""
+
+ return {
+ "type": "http",
+ "asgi": {
+ "version": "3.0",
+ "spec_version": "2.1",
+ },
+ "http_version": HTTP_VERSION_MAP.get(flow.request.http_version, "1.1"),
+ "method": flow.request.method,
+ "scheme": flow.request.scheme.upper(),
+ "path": path,
+ "raw_path": flow.request.path,
+ "query_string": query_string,
+ "headers": [
+ (name.lower(), value) for (name, value) in flow.request.headers.fields
+ ],
+ "client": flow.client_conn.peername,
+ "extensions": {
+ "mitmproxy.master": ctx.master,
+ },
+ }
+
+
+async def serve(app, flow: http.HTTPFlow):
+ """
+ Serves app on flow.
+ """
+
+ scope = make_scope(flow)
+ done = asyncio.Event()
+ received_body = False
+ sent_response = False
+
+ async def receive():
+ nonlocal received_body
+ if not received_body:
+ received_body = True
+ return {
+ "type": "http.request",
+ "body": flow.request.raw_content,
+ }
+ else: # pragma: no cover
+ # We really don't expect this to be called a second time, but what to do?
+ # We just wait until the request is done before we continue here with sending a disconnect.
+ await done.wait()
+ return {"type": "http.disconnect"}
+
+ async def send(event):
+ if event["type"] == "http.response.start":
+ flow.response = http.Response.make(
+ event["status"], b"", event.get("headers", [])
+ )
+ flow.response.decode()
+ elif event["type"] == "http.response.body":
+ assert flow.response
+ flow.response.content += event.get("body", b"")
+ if not event.get("more_body", False):
+ nonlocal sent_response
+ sent_response = True
+ else:
+ raise AssertionError(f"Unexpected event: {event['type']}")
+
+ try:
+ await app(scope, receive, send)
+ if not sent_response:
+ raise RuntimeError(f"no response sent.")
+ except Exception as e:
+ logger.exception(f"Error in asgi app: {e}")
+ flow.response = http.Response.make(500, b"ASGI Error.")
+ finally:
+ done.set()
diff --git a/python/user_packages/Python313/site-packages/mitmproxy/addons/block.py b/python/user_packages/Python313/site-packages/mitmproxy/addons/block.py
new file mode 100644
index 0000000000000000000000000000000000000000..cdd68bf97ee86609f77bcdb3d765e3667eee5c64
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/mitmproxy/addons/block.py
@@ -0,0 +1,48 @@
+import ipaddress
+import logging
+
+from mitmproxy import ctx
+from mitmproxy.proxy import mode_specs
+
+
+class Block:
+ def load(self, loader):
+ loader.add_option(
+ "block_global",
+ bool,
+ True,
+ """
+ Block connections from public IP addresses.
+ """,
+ )
+ loader.add_option(
+ "block_private",
+ bool,
+ False,
+ """
+ Block connections from local (private) IP addresses.
+ This option does not affect loopback addresses (connections from the local machine),
+ which are always permitted.
+ """,
+ )
+
+ def client_connected(self, client):
+ parts = client.peername[0].rsplit("%", 1)
+ address = ipaddress.ip_address(parts[0])
+ if isinstance(address, ipaddress.IPv6Address):
+ address = address.ipv4_mapped or address
+
+ if address.is_loopback or isinstance(client.proxy_mode, mode_specs.LocalMode):
+ return
+
+ if ctx.options.block_private and address.is_private:
+ logging.warning(
+ f"Client connection from {client.peername[0]} killed by block_private option."
+ )
+ client.error = "Connection killed by block_private."
+
+ if ctx.options.block_global and address.is_global:
+ logging.warning(
+ f"Client connection from {client.peername[0]} killed by block_global option."
+ )
+ client.error = "Connection killed by block_global."
diff --git a/python/user_packages/Python313/site-packages/mitmproxy/addons/blocklist.py b/python/user_packages/Python313/site-packages/mitmproxy/addons/blocklist.py
new file mode 100644
index 0000000000000000000000000000000000000000..9fac5efe2ad0de25fa2a0669b4fec73ff1122bfb
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/mitmproxy/addons/blocklist.py
@@ -0,0 +1,81 @@
+from collections.abc import Sequence
+from typing import NamedTuple
+
+from mitmproxy import ctx
+from mitmproxy import exceptions
+from mitmproxy import flowfilter
+from mitmproxy import http
+from mitmproxy import version
+from mitmproxy.net.http.status_codes import NO_RESPONSE
+
+
+class BlockSpec(NamedTuple):
+ matches: flowfilter.TFilter
+ status_code: int
+
+
+def parse_spec(option: str) -> BlockSpec:
+ """
+ Parses strings in the following format, enforces number of segments:
+
+ /flow-filter/status
+
+ """
+ sep, rem = option[0], option[1:]
+
+ parts = rem.split(sep, 2)
+ if len(parts) != 2:
+ raise ValueError("Invalid number of parameters (2 are expected)")
+ flow_patt, status = parts
+ try:
+ status_code = int(status)
+ except ValueError:
+ raise ValueError(f"Invalid HTTP status code: {status}")
+ flow_filter = flowfilter.parse(flow_patt)
+
+ return BlockSpec(matches=flow_filter, status_code=status_code)
+
+
+class BlockList:
+ def __init__(self) -> None:
+ self.items: list[BlockSpec] = []
+
+ def load(self, loader):
+ loader.add_option(
+ "block_list",
+ Sequence[str],
+ [],
+ """
+ Block matching requests and return an empty response with the specified HTTP status.
+ Option syntax is "/flow-filter/status-code", where flow-filter describes
+ which requests this rule should be applied to and status-code is the HTTP status code to return for
+ blocked requests. The separator ("/" in the example) can be any character.
+ Setting a non-standard status code of 444 will close the connection without sending a response.
+ """,
+ )
+
+ def configure(self, updated):
+ if "block_list" in updated:
+ self.items = []
+ for option in ctx.options.block_list:
+ try:
+ spec = parse_spec(option)
+ except ValueError as e:
+ raise exceptions.OptionsError(
+ f"Cannot parse block_list option {option}: {e}"
+ ) from e
+ self.items.append(spec)
+
+ def request(self, flow: http.HTTPFlow) -> None:
+ if flow.response or flow.error or not flow.live:
+ return
+
+ for spec in self.items:
+ if spec.matches(flow):
+ flow.metadata["blocklisted"] = True
+ if spec.status_code == NO_RESPONSE:
+ flow.kill()
+ else:
+ flow.response = http.Response.make(
+ spec.status_code, headers={"Server": version.MITMPROXY}
+ )
diff --git a/python/user_packages/Python313/site-packages/mitmproxy/addons/browser.py b/python/user_packages/Python313/site-packages/mitmproxy/addons/browser.py
new file mode 100644
index 0000000000000000000000000000000000000000..ccc9209536be34aba7f8734f81ad17df713655c8
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/mitmproxy/addons/browser.py
@@ -0,0 +1,186 @@
+import logging
+import shutil
+import subprocess
+import tempfile
+
+from mitmproxy import command
+from mitmproxy import ctx
+from mitmproxy.log import ALERT
+
+
+def find_executable_cmd(*search_paths) -> list[str] | None:
+ for browser in search_paths:
+ if shutil.which(browser):
+ return [browser]
+
+ return None
+
+
+def find_flatpak_cmd(*search_paths) -> list[str] | None:
+ if shutil.which("flatpak"):
+ for browser in search_paths:
+ if (
+ subprocess.run(
+ ["flatpak", "info", browser],
+ stdout=subprocess.DEVNULL,
+ stderr=subprocess.DEVNULL,
+ ).returncode
+ == 0
+ ):
+ return ["flatpak", "run", "-p", browser]
+
+ return None
+
+
+class Browser:
+ browser: list[subprocess.Popen] = []
+ tdir: list[tempfile.TemporaryDirectory] = []
+
+ @command.command("browser.start")
+ def start(self, browser: str = "chrome") -> None:
+ if len(self.browser) > 0:
+ logging.log(ALERT, "Starting additional browser")
+
+ if browser in ("chrome", "chromium"):
+ self.launch_chrome()
+ elif browser == "firefox":
+ self.launch_firefox()
+ else:
+ logging.log(ALERT, "Invalid browser name.")
+
+ def launch_chrome(self) -> None:
+ """
+ Start an isolated instance of Chrome that points to the currently
+ running proxy.
+ """
+ cmd = find_executable_cmd(
+ "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome",
+ # https://stackoverflow.com/questions/40674914/google-chrome-path-in-windows-10
+ r"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe",
+ r"C:\Program Files (x86)\Google\Application\chrome.exe",
+ # Linux binary names from Python's webbrowser module.
+ "google-chrome",
+ "google-chrome-stable",
+ "chrome",
+ "chromium",
+ "chromium-browser",
+ "google-chrome-unstable",
+ ) or find_flatpak_cmd(
+ "com.google.Chrome",
+ "org.chromium.Chromium",
+ "com.github.Eloston.UngoogledChromium",
+ "com.google.ChromeDev",
+ )
+
+ if not cmd:
+ logging.log(
+ ALERT, "Your platform is not supported yet - please submit a patch."
+ )
+ return
+
+ tdir = tempfile.TemporaryDirectory()
+ self.tdir.append(tdir)
+ self.browser.append(
+ subprocess.Popen(
+ [
+ *cmd,
+ "--user-data-dir=%s" % str(tdir.name),
+ "--proxy-server={}:{}".format(
+ ctx.options.listen_host or "127.0.0.1",
+ ctx.options.listen_port or "8080",
+ ),
+ "--disable-fre",
+ "--no-default-browser-check",
+ "--no-first-run",
+ "--disable-extensions",
+ "about:blank",
+ ],
+ stdout=subprocess.DEVNULL,
+ stderr=subprocess.DEVNULL,
+ )
+ )
+
+ def launch_firefox(self) -> None:
+ """
+ Start an isolated instance of Firefox that points to the currently
+ running proxy.
+ """
+ cmd = find_executable_cmd(
+ "/Applications/Firefox.app/Contents/MacOS/firefox",
+ r"C:\Program Files\Mozilla Firefox\firefox.exe",
+ "firefox",
+ "mozilla-firefox",
+ "mozilla",
+ ) or find_flatpak_cmd("org.mozilla.firefox")
+
+ if not cmd:
+ logging.log(
+ ALERT, "Your platform is not supported yet - please submit a patch."
+ )
+ return
+
+ host = ctx.options.listen_host or "127.0.0.1"
+ port = ctx.options.listen_port or 8080
+ prefs = [
+ 'user_pref("datareporting.policy.firstRunURL", "");',
+ 'user_pref("network.proxy.type", 1);',
+ 'user_pref("network.proxy.share_proxy_settings", true);',
+ 'user_pref("datareporting.healthreport.uploadEnabled", false);',
+ 'user_pref("app.normandy.enabled", false);',
+ 'user_pref("app.update.auto", false);',
+ 'user_pref("app.update.enabled", false);',
+ 'user_pref("app.update.autoInstallEnabled", false);',
+ 'user_pref("app.shield.optoutstudies.enabled", false);'
+ 'user_pref("extensions.blocklist.enabled", false);',
+ 'user_pref("browser.safebrowsing.downloads.remote.enabled", false);',
+ 'user_pref("browser.region.network.url", "");',
+ 'user_pref("browser.region.update.enabled", false);',
+ 'user_pref("browser.region.local-geocoding", false);',
+ 'user_pref("extensions.pocket.enabled", false);',
+ 'user_pref("network.captive-portal-service.enabled", false);',
+ 'user_pref("network.connectivity-service.enabled", false);',
+ 'user_pref("toolkit.telemetry.server", "");',
+ 'user_pref("dom.push.serverURL", "");',
+ 'user_pref("services.settings.enabled", false);',
+ 'user_pref("browser.newtab.preload", false);',
+ 'user_pref("browser.safebrowsing.provider.google4.updateURL", "");',
+ 'user_pref("browser.safebrowsing.provider.mozilla.updateURL", "");',
+ 'user_pref("browser.newtabpage.activity-stream.feeds.topsites", false);',
+ 'user_pref("browser.newtabpage.activity-stream.default.sites", "");',
+ 'user_pref("browser.newtabpage.activity-stream.showSponsoredTopSites", false);',
+ 'user_pref("browser.bookmarks.restore_default_bookmarks", false);',
+ 'user_pref("browser.bookmarks.file", "");',
+ ]
+ for service in ("http", "ssl"):
+ prefs += [
+ f'user_pref("network.proxy.{service}", "{host}");',
+ f'user_pref("network.proxy.{service}_port", {port});',
+ ]
+
+ tdir = tempfile.TemporaryDirectory()
+
+ with open(tdir.name + "/prefs.js", "w") as file:
+ file.writelines(prefs)
+
+ self.tdir.append(tdir)
+ self.browser.append(
+ subprocess.Popen(
+ [
+ *cmd,
+ "--profile",
+ str(tdir.name),
+ "--new-window",
+ "about:blank",
+ ],
+ stdout=subprocess.DEVNULL,
+ stderr=subprocess.DEVNULL,
+ )
+ )
+
+ def done(self):
+ for browser in self.browser:
+ browser.kill()
+ for tdir in self.tdir:
+ tdir.cleanup()
+ self.browser = []
+ self.tdir = []
diff --git a/python/user_packages/Python313/site-packages/mitmproxy/addons/clientplayback.py b/python/user_packages/Python313/site-packages/mitmproxy/addons/clientplayback.py
new file mode 100644
index 0000000000000000000000000000000000000000..64d90e5a9bb7f97b19f00b05e6101cc235677daf
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/mitmproxy/addons/clientplayback.py
@@ -0,0 +1,298 @@
+from __future__ import annotations
+
+import asyncio
+import logging
+import time
+from collections.abc import Sequence
+from types import TracebackType
+from typing import cast
+from typing import Literal
+
+import mitmproxy.types
+from mitmproxy import command
+from mitmproxy import ctx
+from mitmproxy import exceptions
+from mitmproxy import flow
+from mitmproxy import http
+from mitmproxy import io
+from mitmproxy.connection import ConnectionState
+from mitmproxy.connection import Server
+from mitmproxy.hooks import UpdateHook
+from mitmproxy.log import ALERT
+from mitmproxy.options import Options
+from mitmproxy.proxy import commands
+from mitmproxy.proxy import events
+from mitmproxy.proxy import layers
+from mitmproxy.proxy import server
+from mitmproxy.proxy.context import Context
+from mitmproxy.proxy.layer import CommandGenerator
+from mitmproxy.proxy.layers.http import HTTPMode
+from mitmproxy.proxy.mode_specs import UpstreamMode
+from mitmproxy.utils import asyncio_utils
+
+logger = logging.getLogger(__name__)
+
+
+class MockServer(layers.http.HttpConnection):
+ """
+ A mock HTTP "server" that just pretends it received a full HTTP request,
+ which is then processed by the proxy core.
+ """
+
+ flow: http.HTTPFlow
+
+ def __init__(self, flow: http.HTTPFlow, context: Context):
+ super().__init__(context, context.client)
+ self.flow = flow
+
+ def _handle_event(self, event: events.Event) -> CommandGenerator[None]:
+ if isinstance(event, events.Start):
+ content = self.flow.request.raw_content
+ self.flow.request.timestamp_start = self.flow.request.timestamp_end = (
+ time.time()
+ )
+ yield layers.http.ReceiveHttp(
+ layers.http.RequestHeaders(
+ 1,
+ self.flow.request,
+ end_stream=not (content or self.flow.request.trailers),
+ replay_flow=self.flow,
+ )
+ )
+ if content:
+ yield layers.http.ReceiveHttp(layers.http.RequestData(1, content))
+ if self.flow.request.trailers: # pragma: no cover
+ # TODO: Cover this once we support HTTP/1 trailers.
+ yield layers.http.ReceiveHttp(
+ layers.http.RequestTrailers(1, self.flow.request.trailers)
+ )
+ yield layers.http.ReceiveHttp(layers.http.RequestEndOfMessage(1))
+ elif isinstance(
+ event,
+ (
+ layers.http.ResponseHeaders,
+ layers.http.ResponseData,
+ layers.http.ResponseTrailers,
+ layers.http.ResponseEndOfMessage,
+ layers.http.ResponseProtocolError,
+ ),
+ ):
+ pass
+ else: # pragma: no cover
+ logger.warning(f"Unexpected event during replay: {event}")
+
+
+class ReplayHandler(server.ConnectionHandler):
+ layer: layers.HttpLayer
+
+ def __init__(self, flow: http.HTTPFlow, options: Options) -> None:
+ client = flow.client_conn.copy()
+ client.state = ConnectionState.OPEN
+
+ context = Context(client, options)
+ context.server = Server(address=(flow.request.host, flow.request.port))
+ if flow.request.scheme == "https":
+ context.server.tls = True
+ context.server.sni = flow.request.pretty_host
+ if options.mode and options.mode[0].startswith("upstream:"):
+ mode = UpstreamMode.parse(options.mode[0])
+ assert isinstance(mode, UpstreamMode) # remove once mypy supports Self.
+ context.server.via = flow.server_conn.via = (mode.scheme, mode.address)
+
+ super().__init__(context)
+
+ if options.mode and options.mode[0].startswith("upstream:"):
+ self.layer = layers.HttpLayer(context, HTTPMode.upstream)
+ else:
+ self.layer = layers.HttpLayer(context, HTTPMode.transparent)
+ self.layer.connections[client] = MockServer(flow, context.fork())
+ self.flow = flow
+ self.done = asyncio.Event()
+
+ async def replay(self) -> None:
+ await self.server_event(events.Start())
+ await self.done.wait()
+
+ def log(
+ self,
+ message: str,
+ level: int = logging.INFO,
+ exc_info: Literal[True]
+ | tuple[type[BaseException] | None, BaseException | None, TracebackType | None]
+ | None = None,
+ ) -> None:
+ assert isinstance(level, int)
+ logger.log(level=level, msg=f"[replay] {message}")
+
+ async def handle_hook(self, hook: commands.StartHook) -> None:
+ (data,) = hook.args()
+ await ctx.master.addons.handle_lifecycle(hook)
+ if isinstance(data, flow.Flow):
+ await data.wait_for_resume()
+ if isinstance(hook, (layers.http.HttpResponseHook, layers.http.HttpErrorHook)):
+ if self.transports:
+ # close server connections
+ for x in self.transports.values():
+ if x.handler:
+ x.handler.cancel()
+ await asyncio.wait(
+ [x.handler for x in self.transports.values() if x.handler]
+ )
+ # signal completion
+ self.done.set()
+
+
+class ClientPlayback:
+ playback_task: asyncio.Task | None = None
+ inflight: http.HTTPFlow | None
+ queue: asyncio.Queue
+ options: Options
+ replay_tasks: set[asyncio.Task]
+
+ def __init__(self):
+ self.queue = asyncio.Queue()
+ self.inflight = None
+ self.task = None
+ self.replay_tasks = set()
+
+ def running(self):
+ self.options = ctx.options
+ self.playback_task = asyncio_utils.create_task(
+ self.playback(),
+ name="client playback",
+ keep_ref=False,
+ )
+
+ async def done(self):
+ if self.playback_task:
+ self.playback_task.cancel()
+ try:
+ await self.playback_task
+ except asyncio.CancelledError:
+ pass
+
+ async def playback(self):
+ while True:
+ self.inflight = await self.queue.get()
+ try:
+ assert self.inflight
+ h = ReplayHandler(self.inflight, self.options)
+ if ctx.options.client_replay_concurrency == -1:
+ t = asyncio_utils.create_task(
+ h.replay(),
+ name="client playback awaiting response",
+ keep_ref=False,
+ )
+ # keep a reference so this is not garbage collected
+ self.replay_tasks.add(t)
+ t.add_done_callback(self.replay_tasks.remove)
+ else:
+ await h.replay()
+ except Exception:
+ logger.exception(f"Client replay has crashed!")
+ self.queue.task_done()
+ self.inflight = None
+
+ def check(self, f: flow.Flow) -> str | None:
+ if f.live or f == self.inflight:
+ return "Can't replay live flow."
+ if f.intercepted:
+ return "Can't replay intercepted flow."
+ if isinstance(f, http.HTTPFlow):
+ if not f.request:
+ return "Can't replay flow with missing request."
+ if f.request.raw_content is None:
+ return "Can't replay flow with missing content."
+ if f.websocket is not None:
+ return "Can't replay WebSocket flows."
+ else:
+ return "Can only replay HTTP flows."
+ return None
+
+ def load(self, loader):
+ loader.add_option(
+ "client_replay",
+ Sequence[str],
+ [],
+ "Replay client requests from a saved file.",
+ )
+ loader.add_option(
+ "client_replay_concurrency",
+ int,
+ 1,
+ "Concurrency limit on in-flight client replay requests. Currently the only valid values are 1 and -1 (no limit).",
+ )
+
+ def configure(self, updated):
+ if "client_replay" in updated and ctx.options.client_replay:
+ try:
+ flows = io.read_flows_from_paths(ctx.options.client_replay)
+ except exceptions.FlowReadException as e:
+ raise exceptions.OptionsError(str(e))
+ self.start_replay(flows)
+
+ if "client_replay_concurrency" in updated:
+ if ctx.options.client_replay_concurrency not in [-1, 1]:
+ raise exceptions.OptionsError(
+ "Currently the only valid client_replay_concurrency values are -1 and 1."
+ )
+
+ @command.command("replay.client.count")
+ def count(self) -> int:
+ """
+ Approximate number of flows queued for replay.
+ """
+ return self.queue.qsize() + int(bool(self.inflight))
+
+ @command.command("replay.client.stop")
+ def stop_replay(self) -> None:
+ """
+ Clear the replay queue.
+ """
+ updated = []
+ while True:
+ try:
+ f = self.queue.get_nowait()
+ except asyncio.QueueEmpty:
+ break
+ else:
+ self.queue.task_done()
+ f.revert()
+ updated.append(f)
+
+ ctx.master.addons.trigger(UpdateHook(updated))
+ logger.log(ALERT, "Client replay queue cleared.")
+
+ @command.command("replay.client")
+ def start_replay(self, flows: Sequence[flow.Flow]) -> None:
+ """
+ Add flows to the replay queue, skipping flows that can't be replayed.
+ """
+ updated: list[http.HTTPFlow] = []
+ for f in flows:
+ err = self.check(f)
+ if err:
+ logger.warning(err)
+ continue
+
+ http_flow = cast(http.HTTPFlow, f)
+
+ # Prepare the flow for replay
+ http_flow.backup()
+ http_flow.is_replay = "request"
+ http_flow.response = None
+ http_flow.error = None
+ self.queue.put_nowait(http_flow)
+ updated.append(http_flow)
+ ctx.master.addons.trigger(UpdateHook(updated))
+
+ @command.command("replay.client.file")
+ def load_file(self, path: mitmproxy.types.Path) -> None:
+ """
+ Load flows from file, and add them to the replay queue.
+ """
+ try:
+ flows = io.read_flows_from_paths([path])
+ except exceptions.FlowReadException as e:
+ raise exceptions.CommandError(str(e))
+ self.start_replay(flows)
diff --git a/python/user_packages/Python313/site-packages/mitmproxy/addons/command_history.py b/python/user_packages/Python313/site-packages/mitmproxy/addons/command_history.py
new file mode 100644
index 0000000000000000000000000000000000000000..507b60e500fa6dcc9e48b7488b3225d47dc435f5
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/mitmproxy/addons/command_history.py
@@ -0,0 +1,96 @@
+import logging
+import os
+import pathlib
+from collections.abc import Sequence
+
+from mitmproxy import command
+from mitmproxy import ctx
+
+
+class CommandHistory:
+ VACUUM_SIZE = 1024
+
+ def __init__(self) -> None:
+ self.history: list[str] = []
+ self.filtered_history: list[str] = [""]
+ self.current_index: int = 0
+
+ def load(self, loader):
+ loader.add_option(
+ "command_history",
+ bool,
+ True,
+ """Persist command history between mitmproxy invocations.""",
+ )
+
+ @property
+ def history_file(self) -> pathlib.Path:
+ return pathlib.Path(os.path.expanduser(ctx.options.confdir)) / "command_history"
+
+ def running(self):
+ # FIXME: We have a weird bug where the contract for configure is not followed and it is never called with
+ # confdir or command_history as updated.
+ self.configure("command_history") # pragma: no cover
+
+ def configure(self, updated):
+ if "command_history" in updated or "confdir" in updated:
+ if ctx.options.command_history and self.history_file.is_file():
+ self.history = self.history_file.read_text().splitlines()
+ self.set_filter("")
+
+ def done(self):
+ if ctx.options.command_history and len(self.history) >= self.VACUUM_SIZE:
+ # vacuum history so that it doesn't grow indefinitely.
+ history_str = "\n".join(self.history[-self.VACUUM_SIZE // 2 :]) + "\n"
+ try:
+ self.history_file.write_text(history_str)
+ except Exception as e:
+ logging.warning(f"Failed writing to {self.history_file}: {e}")
+
+ @command.command("commands.history.add")
+ def add_command(self, command: str) -> None:
+ if not command.strip():
+ return
+
+ self.history.append(command)
+ if ctx.options.command_history:
+ try:
+ with self.history_file.open("a") as f:
+ f.write(f"{command}\n")
+ except Exception as e:
+ logging.warning(f"Failed writing to {self.history_file}: {e}")
+
+ self.set_filter("")
+
+ @command.command("commands.history.get")
+ def get_history(self) -> Sequence[str]:
+ """Get the entire command history."""
+ return self.history.copy()
+
+ @command.command("commands.history.clear")
+ def clear_history(self):
+ if self.history_file.exists():
+ try:
+ self.history_file.unlink()
+ except Exception as e:
+ logging.warning(f"Failed deleting {self.history_file}: {e}")
+ self.history = []
+ self.set_filter("")
+
+ # Functionality to provide a filtered list that can be iterated through.
+
+ @command.command("commands.history.filter")
+ def set_filter(self, prefix: str) -> None:
+ self.filtered_history = [cmd for cmd in self.history if cmd.startswith(prefix)]
+ self.filtered_history.append(prefix)
+ self.current_index = len(self.filtered_history) - 1
+
+ @command.command("commands.history.next")
+ def get_next(self) -> str:
+ self.current_index = min(self.current_index + 1, len(self.filtered_history) - 1)
+ return self.filtered_history[self.current_index]
+
+ @command.command("commands.history.prev")
+ def get_prev(self) -> str:
+ self.current_index = max(0, self.current_index - 1)
+ return self.filtered_history[self.current_index]
diff --git a/python/user_packages/Python313/site-packages/mitmproxy/addons/comment.py b/python/user_packages/Python313/site-packages/mitmproxy/addons/comment.py
new file mode 100644
index 0000000000000000000000000000000000000000..ecb303b0c0efbcdd5a18e6c8f6b9b0a76a78ea69
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/mitmproxy/addons/comment.py
@@ -0,0 +1,19 @@
+from collections.abc import Sequence
+
+from mitmproxy import command
+from mitmproxy import ctx
+from mitmproxy import flow
+from mitmproxy.hooks import UpdateHook
+
+
+class Comment:
+ @command.command("flow.comment")
+ def comment(self, flow: Sequence[flow.Flow], comment: str) -> None:
+ "Add a comment to a flow"
+
+ updated = []
+ for f in flow:
+ f.comment = comment
+ updated.append(f)
+
+ ctx.master.addons.trigger(UpdateHook(updated))
diff --git a/python/user_packages/Python313/site-packages/mitmproxy/addons/core.py b/python/user_packages/Python313/site-packages/mitmproxy/addons/core.py
new file mode 100644
index 0000000000000000000000000000000000000000..bb842748a9dad2f67ba97e346fc7771bc460a8a6
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/mitmproxy/addons/core.py
@@ -0,0 +1,286 @@
+import logging
+import os
+from collections.abc import Sequence
+
+import mitmproxy.types
+from mitmproxy import command
+from mitmproxy import ctx
+from mitmproxy import exceptions
+from mitmproxy import flow
+from mitmproxy import hooks
+from mitmproxy import optmanager
+from mitmproxy.log import ALERT
+from mitmproxy.net.http import status_codes
+from mitmproxy.utils import emoji
+
+logger = logging.getLogger(__name__)
+
+CONF_DIR = "~/.mitmproxy"
+LISTEN_PORT = 8080
+
+
+class Core:
+ def configure(self, updated):
+ opts = ctx.options
+ if opts.add_upstream_certs_to_client_chain and not opts.upstream_cert:
+ raise exceptions.OptionsError(
+ "add_upstream_certs_to_client_chain requires the upstream_cert option to be enabled."
+ )
+ if "client_certs" in updated:
+ if opts.client_certs:
+ client_certs = os.path.expanduser(opts.client_certs)
+ if not os.path.exists(client_certs):
+ raise exceptions.OptionsError(
+ f"Client certificate path does not exist: {opts.client_certs}"
+ )
+
+ @command.command("set")
+ def set(self, option: str, *value: str) -> None:
+ """
+ Set an option. When the value is omitted, booleans are set to true,
+ strings and integers are set to None (if permitted), and sequences
+ are emptied. Boolean values can be true, false or toggle.
+ Multiple values are concatenated with a single space.
+ """
+ if value:
+ specs = [f"{option}={v}" for v in value]
+ else:
+ specs = [option]
+ try:
+ ctx.options.set(*specs)
+ except exceptions.OptionsError as e:
+ raise exceptions.CommandError(e) from e
+
+ @command.command("flow.resume")
+ def resume(self, flows: Sequence[flow.Flow]) -> None:
+ """
+ Resume flows if they are intercepted.
+ """
+ intercepted = [i for i in flows if i.intercepted]
+ for f in intercepted:
+ f.resume()
+ ctx.master.addons.trigger(hooks.UpdateHook(intercepted))
+
+ # FIXME: this will become view.mark later
+ @command.command("flow.mark")
+ def mark(self, flows: Sequence[flow.Flow], marker: mitmproxy.types.Marker) -> None:
+ """
+ Mark flows.
+ """
+ updated = []
+ if not (marker == "" or marker in emoji.emoji):
+ raise exceptions.CommandError(f"invalid marker value")
+
+ for i in flows:
+ i.marked = marker
+ updated.append(i)
+ ctx.master.addons.trigger(hooks.UpdateHook(updated))
+
+ # FIXME: this will become view.mark.toggle later
+ @command.command("flow.mark.toggle")
+ def mark_toggle(self, flows: Sequence[flow.Flow]) -> None:
+ """
+ Toggle mark for flows.
+ """
+ for i in flows:
+ if i.marked:
+ i.marked = ""
+ else:
+ i.marked = ":default:"
+ ctx.master.addons.trigger(hooks.UpdateHook(flows))
+
+ @command.command("flow.kill")
+ def kill(self, flows: Sequence[flow.Flow]) -> None:
+ """
+ Kill running flows.
+ """
+ updated = []
+ for f in flows:
+ if f.killable:
+ f.kill()
+ updated.append(f)
+ logger.log(ALERT, "Killed %s flows." % len(updated))
+ ctx.master.addons.trigger(hooks.UpdateHook(updated))
+
+ # FIXME: this will become view.revert later
+ @command.command("flow.revert")
+ def revert(self, flows: Sequence[flow.Flow]) -> None:
+ """
+ Revert flow changes.
+ """
+ updated = []
+ for f in flows:
+ if f.modified():
+ f.revert()
+ updated.append(f)
+ logger.log(ALERT, "Reverted %s flows." % len(updated))
+ ctx.master.addons.trigger(hooks.UpdateHook(updated))
+
+ @command.command("flow.set.options")
+ def flow_set_options(self) -> Sequence[str]:
+ return [
+ "host",
+ "status_code",
+ "method",
+ "path",
+ "url",
+ "reason",
+ ]
+
+ @command.command("flow.set")
+ @command.argument("attr", type=mitmproxy.types.Choice("flow.set.options"))
+ def flow_set(self, flows: Sequence[flow.Flow], attr: str, value: str) -> None:
+ """
+ Quickly set a number of common values on flows.
+ """
+ val: int | str = value
+ if attr == "status_code":
+ try:
+ val = int(val) # type: ignore
+ except ValueError as v:
+ raise exceptions.CommandError(
+ "Status code is not an integer: %s" % val
+ ) from v
+
+ updated = []
+ for f in flows:
+ req = getattr(f, "request", None)
+ rupdate = True
+ if req:
+ if attr == "method":
+ req.method = val
+ elif attr == "host":
+ req.host = val
+ elif attr == "path":
+ req.path = val
+ elif attr == "url":
+ try:
+ req.url = val
+ except ValueError as e:
+ raise exceptions.CommandError(
+ f"URL {val!r} is invalid: {e}"
+ ) from e
+ else:
+ self.rupdate = False
+
+ resp = getattr(f, "response", None)
+ supdate = True
+ if resp:
+ if attr == "status_code":
+ resp.status_code = val
+ if val in status_codes.RESPONSES:
+ resp.reason = status_codes.RESPONSES[val] # type: ignore
+ elif attr == "reason":
+ resp.reason = val
+ else:
+ supdate = False
+
+ if rupdate or supdate:
+ updated.append(f)
+
+ ctx.master.addons.trigger(hooks.UpdateHook(updated))
+ logger.log(ALERT, f"Set {attr} on {len(updated)} flows.")
+
+ @command.command("flow.decode")
+ def decode(self, flows: Sequence[flow.Flow], part: str) -> None:
+ """
+ Decode flows.
+ """
+ updated = []
+ for f in flows:
+ p = getattr(f, part, None)
+ if p:
+ f.backup()
+ p.decode()
+ updated.append(f)
+ ctx.master.addons.trigger(hooks.UpdateHook(updated))
+ logger.log(ALERT, "Decoded %s flows." % len(updated))
+
+ @command.command("flow.encode.toggle")
+ def encode_toggle(self, flows: Sequence[flow.Flow], part: str) -> None:
+ """
+ Toggle flow encoding on and off, using deflate for encoding.
+ """
+ updated = []
+ for f in flows:
+ p = getattr(f, part, None)
+ if p:
+ f.backup()
+ current_enc = p.headers.get("content-encoding", "identity")
+ if current_enc == "identity":
+ p.encode("deflate")
+ else:
+ p.decode()
+ updated.append(f)
+ ctx.master.addons.trigger(hooks.UpdateHook(updated))
+ logger.log(ALERT, "Toggled encoding on %s flows." % len(updated))
+
+ @command.command("flow.encode")
+ @command.argument("encoding", type=mitmproxy.types.Choice("flow.encode.options"))
+ def encode(
+ self,
+ flows: Sequence[flow.Flow],
+ part: str,
+ encoding: str,
+ ) -> None:
+ """
+ Encode flows with a specified encoding.
+ """
+ updated = []
+ for f in flows:
+ p = getattr(f, part, None)
+ if p:
+ current_enc = p.headers.get("content-encoding", "identity")
+ if current_enc == "identity":
+ f.backup()
+ p.encode(encoding)
+ updated.append(f)
+ ctx.master.addons.trigger(hooks.UpdateHook(updated))
+ logger.log(ALERT, "Encoded %s flows." % len(updated))
+
+ @command.command("flow.encode.options")
+ def encode_options(self) -> Sequence[str]:
+ """
+ The possible values for an encoding specification.
+ """
+ return ["gzip", "deflate", "br", "zstd"]
+
+ @command.command("options.load")
+ def options_load(self, path: mitmproxy.types.Path) -> None:
+ """
+ Load options from a file.
+ """
+ try:
+ optmanager.load_paths(ctx.options, path)
+ except (OSError, exceptions.OptionsError) as e:
+ raise exceptions.CommandError("Could not load options - %s" % e) from e
+
+ @command.command("options.save")
+ def options_save(self, path: mitmproxy.types.Path) -> None:
+ """
+ Save options to a file.
+ """
+ try:
+ optmanager.save(ctx.options, path)
+ except OSError as e:
+ raise exceptions.CommandError("Could not save options - %s" % e) from e
+
+ @command.command("options.reset")
+ def options_reset(self) -> None:
+ """
+ Reset all options to defaults.
+ """
+ ctx.options.reset()
+
+ @command.command("options.reset.one")
+ def options_reset_one(self, name: str) -> None:
+ """
+ Reset one option to its default value.
+ """
+ if name not in ctx.options:
+ raise exceptions.CommandError("No such option: %s" % name)
+ setattr(
+ ctx.options,
+ name,
+ ctx.options.default(name),
+ )
diff --git a/python/user_packages/Python313/site-packages/mitmproxy/addons/cut.py b/python/user_packages/Python313/site-packages/mitmproxy/addons/cut.py
new file mode 100644
index 0000000000000000000000000000000000000000..c8be9112720a90a9f77e93092ae18449422b9caa
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/mitmproxy/addons/cut.py
@@ -0,0 +1,176 @@
+import csv
+import io
+import logging
+import os.path
+from collections.abc import Sequence
+from typing import Any
+
+import pyperclip
+
+import mitmproxy.types
+from mitmproxy import certs
+from mitmproxy import command
+from mitmproxy import exceptions
+from mitmproxy import flow
+from mitmproxy import http
+from mitmproxy.log import ALERT
+
+logger = logging.getLogger(__name__)
+
+
+def headername(spec: str):
+ if not (spec.startswith("header[") and spec.endswith("]")):
+ raise exceptions.CommandError("Invalid header spec: %s" % spec)
+ return spec[len("header[") : -1].strip()
+
+
+def is_addr(v):
+ return isinstance(v, tuple) and len(v) > 1
+
+
+def extract(cut: str, f: flow.Flow) -> str | bytes:
+ # Hack for https://github.com/mitmproxy/mitmproxy/issues/6721:
+ # Make "save body" keybind work for WebSocket flows.
+ # Ideally the keybind would be smarter and this here can get removed.
+ if (
+ isinstance(f, http.HTTPFlow)
+ and f.websocket
+ and cut in ("request.content", "response.content")
+ ):
+ return f.websocket._get_formatted_messages()
+
+ path = cut.split(".")
+ current: Any = f
+ for i, spec in enumerate(path):
+ if spec.startswith("_"):
+ raise exceptions.CommandError("Can't access internal attribute %s" % spec)
+
+ part = getattr(current, spec, None)
+ if i == len(path) - 1:
+ if spec == "port" and is_addr(current):
+ return str(current[1])
+ if spec == "host" and is_addr(current):
+ return str(current[0])
+ elif spec.startswith("header["):
+ if not current:
+ return ""
+ return current.headers.get(headername(spec), "")
+ elif isinstance(part, bytes):
+ return part
+ elif isinstance(part, bool):
+ return "true" if part else "false"
+ elif isinstance(part, certs.Cert): # pragma: no cover
+ return part.to_pem().decode("ascii")
+ elif (
+ isinstance(part, list)
+ and len(part) > 0
+ and isinstance(part[0], certs.Cert)
+ ):
+ # TODO: currently this extracts only the very first cert as PEM-encoded string.
+ return part[0].to_pem().decode("ascii")
+ current = part
+ return str(current or "")
+
+
+def extract_str(cut: str, f: flow.Flow) -> str:
+ ret = extract(cut, f)
+ if isinstance(ret, bytes):
+ return repr(ret)
+ else:
+ return ret
+
+
+class Cut:
+ @command.command("cut")
+ def cut(
+ self,
+ flows: Sequence[flow.Flow],
+ cuts: mitmproxy.types.CutSpec,
+ ) -> mitmproxy.types.Data:
+ """
+ Cut data from a set of flows. Cut specifications are attribute paths
+ from the base of the flow object, with a few conveniences - "port"
+ and "host" retrieve parts of an address tuple, ".header[key]"
+ retrieves a header value. Return values converted to strings or
+ bytes: SSL certificates are converted to PEM format, bools are "true"
+ or "false", "bytes" are preserved, and all other values are
+ converted to strings.
+ """
+ ret: list[list[str | bytes]] = []
+ for f in flows:
+ ret.append([extract(c, f) for c in cuts])
+ return ret # type: ignore
+
+ @command.command("cut.save")
+ def save(
+ self,
+ flows: Sequence[flow.Flow],
+ cuts: mitmproxy.types.CutSpec,
+ path: mitmproxy.types.Path,
+ ) -> None:
+ """
+ Save cuts to file. If there are multiple flows or cuts, the format
+ is UTF-8 encoded CSV. If there is exactly one row and one column,
+ the data is written to file as-is, with raw bytes preserved. If the
+ path is prefixed with a "+", values are appended if there is an
+ existing file.
+ """
+ append = False
+ if path.startswith("+"):
+ append = True
+ epath = os.path.expanduser(path[1:])
+ path = mitmproxy.types.Path(epath)
+ try:
+ if len(cuts) == 1 and len(flows) == 1:
+ with open(path, "ab" if append else "wb") as fp:
+ if fp.tell() > 0:
+ # We're appending to a file that already exists and has content
+ fp.write(b"\n")
+ v = extract(cuts[0], flows[0])
+ if isinstance(v, bytes):
+ fp.write(v)
+ else:
+ fp.write(v.encode("utf8"))
+ logger.log(ALERT, "Saved single cut.")
+ else:
+ with open(
+ path, "a" if append else "w", newline="", encoding="utf8"
+ ) as tfp:
+ writer = csv.writer(tfp)
+ for f in flows:
+ vals = [extract_str(c, f) for c in cuts]
+ writer.writerow(vals)
+ logger.log(
+ ALERT,
+ "Saved %s cuts over %d flows as CSV." % (len(cuts), len(flows)),
+ )
+ except OSError as e:
+ logger.error(str(e))
+
+ @command.command("cut.clip")
+ def clip(
+ self,
+ flows: Sequence[flow.Flow],
+ cuts: mitmproxy.types.CutSpec,
+ ) -> None:
+ """
+ Send cuts to the clipboard. If there are multiple flows or cuts, the
+ format is UTF-8 encoded CSV. If there is exactly one row and one
+ column, the data is written to file as-is, with raw bytes preserved.
+ """
+ v: str | bytes
+ fp = io.StringIO(newline="")
+ if len(cuts) == 1 and len(flows) == 1:
+ v = extract_str(cuts[0], flows[0])
+ fp.write(v)
+ logger.log(ALERT, "Clipped single cut.")
+ else:
+ writer = csv.writer(fp)
+ for f in flows:
+ vals = [extract_str(c, f) for c in cuts]
+ writer.writerow(vals)
+ logger.log(ALERT, "Clipped %s cuts as CSV." % len(cuts))
+ try:
+ pyperclip.copy(fp.getvalue())
+ except pyperclip.PyperclipException as e:
+ logger.error(str(e))
diff --git a/python/user_packages/Python313/site-packages/mitmproxy/addons/disable_h2c.py b/python/user_packages/Python313/site-packages/mitmproxy/addons/disable_h2c.py
new file mode 100644
index 0000000000000000000000000000000000000000..432dc5424d471a3897d059bb66f3c6d9c5058f6f
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/mitmproxy/addons/disable_h2c.py
@@ -0,0 +1,42 @@
+import logging
+
+
+class DisableH2C:
+ """
+ We currently only support HTTP/2 over a TLS connection.
+
+ Some clients try to upgrade a connection from HTTP/1.1 to h2c. We need to
+ remove those headers to avoid protocol errors if one endpoints suddenly
+ starts sending HTTP/2 frames.
+
+ Some clients might use HTTP/2 Prior Knowledge to directly initiate a session
+ by sending the connection preface. We just kill those flows.
+ """
+
+ def process_flow(self, f):
+ if f.request.headers.get("upgrade", "") == "h2c":
+ logging.warning(
+ "HTTP/2 cleartext connections (h2c upgrade requests) are currently not supported."
+ )
+ del f.request.headers["upgrade"]
+ if "connection" in f.request.headers:
+ del f.request.headers["connection"]
+ if "http2-settings" in f.request.headers:
+ del f.request.headers["http2-settings"]
+
+ is_connection_preface = (
+ f.request.method == "PRI"
+ and f.request.path == "*"
+ and f.request.http_version == "HTTP/2.0"
+ )
+ if is_connection_preface:
+ if f.killable:
+ f.kill()
+ logging.warning(
+ "Initiating HTTP/2 connections with prior knowledge are currently not supported."
+ )
+
+ # Handlers
+
+ def request(self, f):
+ self.process_flow(f)
diff --git a/python/user_packages/Python313/site-packages/mitmproxy/addons/dns_resolver.py b/python/user_packages/Python313/site-packages/mitmproxy/addons/dns_resolver.py
new file mode 100644
index 0000000000000000000000000000000000000000..b1b4c039a2c1fb0f332639bbd2a81dff460d03b4
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/mitmproxy/addons/dns_resolver.py
@@ -0,0 +1,182 @@
+from __future__ import annotations
+
+import asyncio
+import ipaddress
+import logging
+import socket
+from collections.abc import Sequence
+from functools import cache
+from typing import Protocol
+
+import mitmproxy_rs
+from mitmproxy import ctx
+from mitmproxy import dns
+from mitmproxy.flow import Error
+from mitmproxy.proxy import mode_specs
+
+logger = logging.getLogger(__name__)
+
+
+class DnsResolver:
+ def load(self, loader):
+ loader.add_option(
+ "dns_use_hosts_file",
+ bool,
+ True,
+ "Use the hosts file for DNS lookups in regular DNS mode/wireguard mode.",
+ )
+
+ loader.add_option(
+ "dns_name_servers",
+ Sequence[str],
+ [],
+ "Name servers to use for lookups in regular DNS mode/wireguard mode. Default: operating system's name servers",
+ )
+
+ def configure(self, updated):
+ if "dns_use_hosts_file" in updated or "dns_name_servers" in updated:
+ self.resolver.cache_clear()
+ self.name_servers.cache_clear()
+
+ @cache
+ def name_servers(self) -> list[str]:
+ """
+ Returns the operating system's name servers unless custom name servers are set.
+ On error, an empty list is returned.
+ """
+ try:
+ return (
+ ctx.options.dns_name_servers
+ or mitmproxy_rs.dns.get_system_dns_servers()
+ )
+ except RuntimeError as e:
+ logger.warning(
+ f"Failed to get system dns servers: {e}\n"
+ f"The dns_name_servers option needs to be set manually."
+ )
+ return []
+
+ @cache
+ def resolver(self) -> Resolver:
+ """
+ Returns:
+ The DNS resolver to use.
+ Raises:
+ MissingNameServers, if name servers are unknown and `dns_use_hosts_file` is disabled.
+ """
+ if ns := self.name_servers():
+ # We always want to use our own resolver if name server info is available.
+ return mitmproxy_rs.dns.DnsResolver(
+ name_servers=ns,
+ use_hosts_file=ctx.options.dns_use_hosts_file,
+ )
+ elif ctx.options.dns_use_hosts_file:
+ # Fallback to getaddrinfo as hickory's resolver isn't as reliable
+ # as we would like it to be (https://github.com/mitmproxy/mitmproxy/issues/7064).
+ return GetaddrinfoFallbackResolver()
+ else:
+ raise MissingNameServers()
+
+ async def dns_request(self, flow: dns.DNSFlow) -> None:
+ if self._should_resolve(flow):
+ all_ip_lookups = (
+ flow.request.query
+ and flow.request.op_code == dns.op_codes.QUERY
+ and flow.request.question
+ and flow.request.question.class_ == dns.classes.IN
+ and flow.request.question.type in (dns.types.A, dns.types.AAAA)
+ )
+ if all_ip_lookups:
+ try:
+ flow.response = await self.resolve(flow.request)
+ except MissingNameServers:
+ flow.error = Error("Cannot resolve, dns_name_servers unknown.")
+ elif name_servers := self.name_servers():
+ # For other records, the best we can do is to forward the query
+ # to an upstream server.
+ flow.server_conn.address = (name_servers[0], 53)
+ else:
+ flow.error = Error("Cannot resolve, dns_name_servers unknown.")
+
+ @staticmethod
+ def _should_resolve(flow: dns.DNSFlow) -> bool:
+ return (
+ (
+ isinstance(flow.client_conn.proxy_mode, mode_specs.DnsMode)
+ or (
+ isinstance(flow.client_conn.proxy_mode, mode_specs.WireGuardMode)
+ and flow.server_conn.address == ("10.0.0.53", 53)
+ )
+ )
+ and flow.live
+ and not flow.response
+ and not flow.error
+ )
+
+ async def resolve(
+ self,
+ message: dns.DNSMessage,
+ ) -> dns.DNSMessage:
+ q = message.question
+ assert q
+ try:
+ if q.type == dns.types.A:
+ ip_addrs = await self.resolver().lookup_ipv4(q.name)
+ else:
+ ip_addrs = await self.resolver().lookup_ipv6(q.name)
+ except socket.gaierror as e:
+ match e.args[0]:
+ case socket.EAI_NONAME:
+ return message.fail(dns.response_codes.NXDOMAIN)
+ case socket.EAI_NODATA:
+ ip_addrs = []
+ case _:
+ return message.fail(dns.response_codes.SERVFAIL)
+
+ return message.succeed(
+ [
+ dns.ResourceRecord(
+ name=q.name,
+ type=q.type,
+ class_=q.class_,
+ ttl=dns.ResourceRecord.DEFAULT_TTL,
+ data=ipaddress.ip_address(ip).packed,
+ )
+ for ip in ip_addrs
+ ]
+ )
+
+
+class Resolver(Protocol):
+ async def lookup_ip(self, domain: str) -> list[str]: # pragma: no cover
+ ...
+
+ async def lookup_ipv4(self, domain: str) -> list[str]: # pragma: no cover
+ ...
+
+ async def lookup_ipv6(self, domain: str) -> list[str]: # pragma: no cover
+ ...
+
+
+class GetaddrinfoFallbackResolver(Resolver):
+ async def lookup_ip(self, domain: str) -> list[str]:
+ return await self._lookup(domain, socket.AF_UNSPEC)
+
+ async def lookup_ipv4(self, domain: str) -> list[str]:
+ return await self._lookup(domain, socket.AF_INET)
+
+ async def lookup_ipv6(self, domain: str) -> list[str]:
+ return await self._lookup(domain, socket.AF_INET6)
+
+ async def _lookup(self, domain: str, family: socket.AddressFamily) -> list[str]:
+ addrinfos = await asyncio.get_running_loop().getaddrinfo(
+ host=domain,
+ port=None,
+ family=family,
+ type=socket.SOCK_STREAM,
+ )
+ return [addrinfo[4][0] for addrinfo in addrinfos]
+
+
+class MissingNameServers(RuntimeError):
+ pass
diff --git a/python/user_packages/Python313/site-packages/mitmproxy/addons/dumper.py b/python/user_packages/Python313/site-packages/mitmproxy/addons/dumper.py
new file mode 100644
index 0000000000000000000000000000000000000000..30ddac38c5c4698358b19e4026f12b2a7872cc4d
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/mitmproxy/addons/dumper.py
@@ -0,0 +1,427 @@
+from __future__ import annotations
+
+import shutil
+import sys
+from typing import IO
+from typing import Optional
+
+from wsproto.frame_protocol import CloseReason
+
+import mitmproxy_rs
+from mitmproxy import contentviews
+from mitmproxy import ctx
+from mitmproxy import dns
+from mitmproxy import exceptions
+from mitmproxy import flow
+from mitmproxy import flowfilter
+from mitmproxy import http
+from mitmproxy.contrib import click as miniclick
+from mitmproxy.net.dns import response_codes
+from mitmproxy.options import CONTENT_VIEW_LINES_CUTOFF
+from mitmproxy.tcp import TCPFlow
+from mitmproxy.tcp import TCPMessage
+from mitmproxy.udp import UDPFlow
+from mitmproxy.udp import UDPMessage
+from mitmproxy.utils import human
+from mitmproxy.utils import strutils
+from mitmproxy.utils import vt_codes
+from mitmproxy.websocket import WebSocketData
+from mitmproxy.websocket import WebSocketMessage
+
+
+def indent(n: int, text: str) -> str:
+ lines = str(text).strip().splitlines()
+ pad = " " * n
+ return "\n".join(pad + i for i in lines)
+
+
+CONTENTVIEW_STYLES: dict[str, dict[str, str | bool]] = {
+ "name": dict(fg="yellow"),
+ "string": dict(fg="green"),
+ "number": dict(fg="blue"),
+ "boolean": dict(fg="magenta"),
+ "comment": dict(dim=True),
+ "error": dict(fg="red"),
+}
+
+
+class Dumper:
+ def __init__(self, outfile: IO[str] | None = None):
+ self.filter: flowfilter.TFilter | None = None
+ self.outfp: IO[str] = outfile or sys.stdout
+ self.out_has_vt_codes = vt_codes.ensure_supported(self.outfp)
+
+ def load(self, loader):
+ loader.add_option(
+ "flow_detail",
+ int,
+ 1,
+ f"""
+ The display detail level for flows in mitmdump: 0 (quiet) to 4 (very verbose).
+ 0: no output
+ 1: shortened request URL with response status code
+ 2: full request URL with response status code and HTTP headers
+ 3: 2 + truncated response content, content of WebSocket and TCP messages (content_view_lines_cutoff: {CONTENT_VIEW_LINES_CUTOFF})
+ 4: 3 + nothing is truncated
+ """,
+ )
+ loader.add_option(
+ "dumper_default_contentview",
+ str,
+ "auto",
+ "The default content view mode.",
+ choices=contentviews.registry.available_views(),
+ )
+ loader.add_option(
+ "dumper_filter", Optional[str], None, "Limit which flows are dumped."
+ )
+
+ def configure(self, updated):
+ if "dumper_filter" in updated:
+ if ctx.options.dumper_filter:
+ try:
+ self.filter = flowfilter.parse(ctx.options.dumper_filter)
+ except ValueError as e:
+ raise exceptions.OptionsError(str(e)) from e
+ else:
+ self.filter = None
+
+ def style(self, text: str, **style) -> str:
+ if style and self.out_has_vt_codes:
+ text = miniclick.style(text, **style)
+ return text
+
+ def echo(self, text: str, ident=None, **style):
+ if ident:
+ text = indent(ident, text)
+ text = self.style(text, **style)
+ print(text, file=self.outfp)
+
+ def _echo_headers(self, headers: http.Headers):
+ for k, v in headers.fields:
+ ks = strutils.bytes_to_escaped_str(k)
+ ks = self.style(ks, fg="blue")
+ vs = strutils.bytes_to_escaped_str(v)
+ self.echo(f"{ks}: {vs}", ident=4)
+
+ def _echo_trailers(self, trailers: http.Headers | None):
+ if not trailers:
+ return
+ self.echo("--- HTTP Trailers", fg="magenta", ident=4)
+ self._echo_headers(trailers)
+
+ def _echo_message(
+ self,
+ message: http.Message | TCPMessage | UDPMessage | WebSocketMessage,
+ flow: http.HTTPFlow | TCPFlow | UDPFlow,
+ ):
+ pretty = contentviews.prettify_message(
+ message,
+ flow,
+ ctx.options.dumper_default_contentview,
+ )
+
+ if ctx.options.flow_detail == 3:
+ content_to_echo = strutils.cut_after_n_lines(
+ pretty.text, ctx.options.content_view_lines_cutoff
+ )
+ else:
+ content_to_echo = pretty.text
+
+ if content_to_echo:
+ highlighted = mitmproxy_rs.syntax_highlight.highlight(
+ pretty.text, pretty.syntax_highlight
+ )
+ self.echo("")
+ self.echo(
+ "".join(
+ self.style(chunk, **CONTENTVIEW_STYLES.get(tag, {}))
+ for tag, chunk in highlighted
+ ),
+ ident=4,
+ )
+
+ if len(content_to_echo) < len(pretty.text):
+ self.echo("(cut off)", ident=4, dim=True)
+
+ if ctx.options.flow_detail >= 2:
+ self.echo("")
+
+ def _fmt_client(self, flow: flow.Flow) -> str:
+ if flow.is_replay == "request":
+ return self.style("[replay]", fg="yellow", bold=True)
+ elif flow.client_conn.peername:
+ return self.style(
+ strutils.escape_control_characters(
+ human.format_address(flow.client_conn.peername)
+ )
+ )
+ else: # pragma: no cover
+ # this should not happen, but we're defensive here.
+ return ""
+
+ def _echo_request_line(self, flow: http.HTTPFlow) -> None:
+ client = self._fmt_client(flow)
+
+ pushed = " PUSH_PROMISE" if "h2-pushed-stream" in flow.metadata else ""
+ method = flow.request.method + pushed
+ method_color = dict(GET="green", DELETE="red").get(method.upper(), "magenta")
+ method = self.style(
+ strutils.escape_control_characters(method), fg=method_color, bold=True
+ )
+ if ctx.options.showhost:
+ url = flow.request.pretty_url
+ else:
+ url = flow.request.url
+
+ if ctx.options.flow_detail == 1:
+ # We need to truncate before applying styles, so we just focus on the URL.
+ terminal_width_limit = max(shutil.get_terminal_size()[0] - 25, 50)
+ if len(url) > terminal_width_limit:
+ url = url[:terminal_width_limit] + "…"
+ url = self.style(strutils.escape_control_characters(url), bold=True)
+
+ http_version = ""
+ if not (
+ flow.request.is_http10 or flow.request.is_http11
+ ) or flow.request.http_version != getattr(
+ flow.response, "http_version", "HTTP/1.1"
+ ):
+ # Hide version for h1 <-> h1 connections.
+ http_version = " " + flow.request.http_version
+
+ self.echo(f"{client}: {method} {url}{http_version}")
+
+ def _echo_response_line(self, flow: http.HTTPFlow) -> None:
+ if flow.is_replay == "response":
+ replay_str = "[replay]"
+ replay = self.style(replay_str, fg="yellow", bold=True)
+ else:
+ replay_str = ""
+ replay = ""
+
+ assert flow.response
+ code_int = flow.response.status_code
+ code_color = None
+ if 200 <= code_int < 300:
+ code_color = "green"
+ elif 300 <= code_int < 400:
+ code_color = "magenta"
+ elif 400 <= code_int < 600:
+ code_color = "red"
+ code = self.style(
+ str(code_int),
+ fg=code_color,
+ bold=True,
+ blink=(code_int == 418),
+ )
+
+ if not (flow.response.is_http2 or flow.response.is_http3):
+ reason = flow.response.reason
+ else:
+ reason = http.status_codes.RESPONSES.get(flow.response.status_code, "")
+ reason = self.style(
+ strutils.escape_control_characters(reason), fg=code_color, bold=True
+ )
+
+ if flow.response.raw_content is None:
+ size = "(content missing)"
+ else:
+ size = human.pretty_size(len(flow.response.raw_content))
+ size = self.style(size, bold=True)
+
+ http_version = ""
+ if (
+ not (flow.response.is_http10 or flow.response.is_http11)
+ or flow.request.http_version != flow.response.http_version
+ ):
+ # Hide version for h1 <-> h1 connections.
+ http_version = f"{flow.response.http_version} "
+
+ arrows = self.style(" <<", bold=True)
+ if ctx.options.flow_detail == 1:
+ # This aligns the HTTP response code with the HTTP request method:
+ # 127.0.0.1:59519: GET http://example.com/
+ # << 304 Not Modified 0b
+ pad = max(
+ 0,
+ len(human.format_address(flow.client_conn.peername))
+ - (2 + len(http_version) + len(replay_str)),
+ )
+ arrows = " " * pad + arrows
+
+ self.echo(f"{replay}{arrows} {http_version}{code} {reason} {size}")
+
+ def echo_flow(self, f: http.HTTPFlow) -> None:
+ if f.request:
+ self._echo_request_line(f)
+ if ctx.options.flow_detail >= 2:
+ self._echo_headers(f.request.headers)
+ if ctx.options.flow_detail >= 3:
+ self._echo_message(f.request, f)
+ if ctx.options.flow_detail >= 2:
+ self._echo_trailers(f.request.trailers)
+
+ if f.response:
+ self._echo_response_line(f)
+ if ctx.options.flow_detail >= 2:
+ self._echo_headers(f.response.headers)
+ if ctx.options.flow_detail >= 3:
+ self._echo_message(f.response, f)
+ if ctx.options.flow_detail >= 2:
+ self._echo_trailers(f.response.trailers)
+
+ if f.error:
+ msg = strutils.escape_control_characters(f.error.msg)
+ self.echo(f" << {msg}", bold=True, fg="red")
+
+ self.outfp.flush()
+
+ def match(self, f):
+ if ctx.options.flow_detail == 0:
+ return False
+ if not self.filter:
+ return True
+ elif flowfilter.match(self.filter, f):
+ return True
+ return False
+
+ def response(self, f):
+ if self.match(f):
+ self.echo_flow(f)
+
+ def error(self, f):
+ if self.match(f):
+ self.echo_flow(f)
+
+ def http_connect_error(self, f):
+ if self.match(f):
+ self.echo_flow(f)
+
+ def websocket_message(self, f: http.HTTPFlow):
+ assert f.websocket is not None # satisfy type checker
+ if self.match(f):
+ message = f.websocket.messages[-1]
+
+ direction = "->" if message.from_client else "<-"
+ self.echo(
+ f"{human.format_address(f.client_conn.peername)} "
+ f"{direction} WebSocket {message.type.name.lower()} message "
+ f"{direction} {human.format_address(f.server_conn.address)}{f.request.path}"
+ )
+ if ctx.options.flow_detail >= 3:
+ self._echo_message(message, f)
+
+ def websocket_end(self, f: http.HTTPFlow):
+ assert f.websocket is not None # satisfy type checker
+ if self.match(f):
+ if f.websocket.close_code in {1000, 1001, 1005}:
+ c = "client" if f.websocket.closed_by_client else "server"
+ self.echo(
+ f"WebSocket connection closed by {c}: {f.websocket.close_code} {f.websocket.close_reason}"
+ )
+ else:
+ error = flow.Error(
+ f"WebSocket Error: {self.format_websocket_error(f.websocket)}"
+ )
+ self.echo(
+ f"Error in WebSocket connection to {human.format_address(f.server_conn.address)}: {error}",
+ fg="red",
+ )
+
+ def format_websocket_error(self, websocket: WebSocketData) -> str:
+ try:
+ ret = CloseReason(websocket.close_code).name # type: ignore
+ except ValueError:
+ ret = f"UNKNOWN_ERROR={websocket.close_code}"
+ if websocket.close_reason:
+ ret += f" (reason: {websocket.close_reason})"
+ return ret
+
+ def _proto_error(self, f):
+ if self.match(f):
+ self.echo(
+ f"Error in {f.type.upper()} connection to {human.format_address(f.server_conn.address)}: {f.error}",
+ fg="red",
+ )
+
+ def tcp_error(self, f):
+ self._proto_error(f)
+
+ def udp_error(self, f):
+ self._proto_error(f)
+
+ def _proto_message(self, f: TCPFlow | UDPFlow) -> None:
+ if self.match(f):
+ message = f.messages[-1]
+ direction = "->" if message.from_client else "<-"
+ if f.client_conn.tls_version == "QUICv1":
+ if f.type == "tcp":
+ quic_type = "stream"
+ else:
+ quic_type = "dgrams"
+ # TODO: This should not be metadata, this should be typed attributes.
+ flow_type = (
+ f"quic {quic_type} {f.metadata.get('quic_stream_id_client', '')} "
+ f"{direction} mitmproxy {direction} "
+ f"quic {quic_type} {f.metadata.get('quic_stream_id_server', '')}"
+ )
+ else:
+ flow_type = f.type
+ self.echo(
+ "{client} {direction} {type} {direction} {server}".format(
+ client=human.format_address(f.client_conn.peername),
+ server=human.format_address(f.server_conn.address),
+ direction=direction,
+ type=flow_type,
+ )
+ )
+ if ctx.options.flow_detail >= 3:
+ self._echo_message(message, f)
+
+ def tcp_message(self, f):
+ self._proto_message(f)
+
+ def udp_message(self, f):
+ self._proto_message(f)
+
+ def _echo_dns_query(self, f: dns.DNSFlow) -> None:
+ client = self._fmt_client(f)
+ opcode = dns.op_codes.to_str(f.request.op_code)
+ type = dns.types.to_str(f.request.questions[0].type)
+
+ desc = f"DNS {opcode} ({type})"
+ desc_color = {
+ "A": "green",
+ "AAAA": "magenta",
+ }.get(type, "red")
+ desc = self.style(desc, fg=desc_color)
+
+ name = self.style(f.request.questions[0].name, bold=True)
+ self.echo(f"{client}: {desc} {name}")
+
+ def dns_response(self, f: dns.DNSFlow):
+ assert f.response
+ if self.match(f):
+ self._echo_dns_query(f)
+
+ arrows = self.style(" <<", bold=True)
+ if f.response.answers:
+ answers = ", ".join(
+ self.style(str(x), fg="bright_blue") for x in f.response.answers
+ )
+ else:
+ answers = self.style(
+ response_codes.to_str(
+ f.response.response_code,
+ ),
+ fg="red",
+ )
+ self.echo(f"{arrows} {answers}")
+
+ def dns_error(self, f: dns.DNSFlow):
+ assert f.error
+ if self.match(f):
+ self._echo_dns_query(f)
+ msg = strutils.escape_control_characters(f.error.msg)
+ self.echo(f" << {msg}", bold=True, fg="red")
diff --git a/python/user_packages/Python313/site-packages/mitmproxy/addons/errorcheck.py b/python/user_packages/Python313/site-packages/mitmproxy/addons/errorcheck.py
new file mode 100644
index 0000000000000000000000000000000000000000..c46f920354d07924fbfec3d8c56093956e608c71
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/mitmproxy/addons/errorcheck.py
@@ -0,0 +1,55 @@
+import asyncio
+import logging
+import sys
+
+from mitmproxy import log
+from mitmproxy.contrib import click as miniclick
+from mitmproxy.utils import vt_codes
+
+
+class ErrorCheck:
+ """Monitor startup for error log entries, and terminate immediately if there are some."""
+
+ repeat_errors_on_stderr: bool
+ """
+ Repeat all errors on stderr before exiting.
+ This is useful for the console UI, which otherwise swallows all output.
+ """
+
+ def __init__(self, repeat_errors_on_stderr: bool = False) -> None:
+ self.repeat_errors_on_stderr = repeat_errors_on_stderr
+
+ self.logger = ErrorCheckHandler()
+ self.logger.install()
+
+ def finish(self):
+ self.logger.uninstall()
+
+ async def shutdown_if_errored(self):
+ # don't run immediately, wait for all logging tasks to finish.
+ await asyncio.sleep(0)
+ if self.logger.has_errored:
+ plural = "s" if len(self.logger.has_errored) > 1 else ""
+ if self.repeat_errors_on_stderr:
+ message = f"Error{plural} logged during startup:"
+ if vt_codes.ensure_supported(sys.stderr): # pragma: no cover
+ message = miniclick.style(message, fg="red")
+ details = "\n".join(
+ self.logger.format(r) for r in self.logger.has_errored
+ )
+ print(f"{message}\n{details}", file=sys.stderr)
+ else:
+ print(
+ f"Error{plural} logged during startup, exiting...", file=sys.stderr
+ )
+
+ sys.exit(1)
+
+
+class ErrorCheckHandler(log.MitmLogHandler):
+ def __init__(self) -> None:
+ super().__init__(logging.ERROR)
+ self.has_errored: list[logging.LogRecord] = []
+
+ def emit(self, record: logging.LogRecord) -> None:
+ self.has_errored.append(record)
diff --git a/python/user_packages/Python313/site-packages/mitmproxy/addons/eventstore.py b/python/user_packages/Python313/site-packages/mitmproxy/addons/eventstore.py
new file mode 100644
index 0000000000000000000000000000000000000000..b474a5f7c0ef8f645f665d71ff8a5ad991546192
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/mitmproxy/addons/eventstore.py
@@ -0,0 +1,56 @@
+import asyncio
+import collections
+import logging
+from collections.abc import Callable
+
+from mitmproxy import command
+from mitmproxy import log
+from mitmproxy.log import LogEntry
+from mitmproxy.utils import signals
+
+
+class EventStore:
+ def __init__(self, size: int = 10000) -> None:
+ self.data: collections.deque[LogEntry] = collections.deque(maxlen=size)
+ self.sig_add = signals.SyncSignal(lambda entry: None)
+ self.sig_refresh = signals.SyncSignal(lambda: None)
+
+ self.logger = CallbackLogger(self._add_log)
+ self.logger.install()
+
+ def done(self):
+ self.logger.uninstall()
+
+ def _add_log(self, entry: LogEntry) -> None:
+ self.data.append(entry)
+ self.sig_add.send(entry)
+
+ @property
+ def size(self) -> int | None:
+ return self.data.maxlen
+
+ @command.command("eventstore.clear")
+ def clear(self) -> None:
+ """
+ Clear the event log.
+ """
+ self.data.clear()
+ self.sig_refresh.send()
+
+
+class CallbackLogger(log.MitmLogHandler):
+ def __init__(
+ self,
+ callback: Callable[[LogEntry], None],
+ ):
+ super().__init__()
+ self.callback = callback
+ self.event_loop = asyncio.get_running_loop()
+ self.formatter = log.MitmFormatter(colorize=False)
+
+ def emit(self, record: logging.LogRecord) -> None:
+ entry = LogEntry(
+ msg=self.format(record),
+ level=log.LOGGING_LEVELS_TO_LOGENTRY.get(record.levelno, "error"),
+ )
+ self.event_loop.call_soon_threadsafe(self.callback, entry)
diff --git a/python/user_packages/Python313/site-packages/mitmproxy/addons/export.py b/python/user_packages/Python313/site-packages/mitmproxy/addons/export.py
new file mode 100644
index 0000000000000000000000000000000000000000..4f136bcbad88e922244170cd51444a7d198f8322
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/mitmproxy/addons/export.py
@@ -0,0 +1,232 @@
+import logging
+import shlex
+from collections.abc import Callable
+from collections.abc import Sequence
+
+import pyperclip
+
+import mitmproxy.types
+from mitmproxy import command
+from mitmproxy import ctx
+from mitmproxy import exceptions
+from mitmproxy import flow
+from mitmproxy import http
+from mitmproxy.net.http.http1 import assemble
+from mitmproxy.utils import strutils
+
+
+def cleanup_request(f: flow.Flow) -> http.Request:
+ if not getattr(f, "request", None):
+ raise exceptions.CommandError("Can't export flow with no request.")
+ assert isinstance(f, http.HTTPFlow)
+ request = f.request.copy()
+ request.decode(strict=False)
+ return request
+
+
+def pop_headers(request: http.Request) -> None:
+ """Remove some headers that are redundant for curl/httpie export."""
+ request.headers.pop("content-length", None)
+
+ if request.headers.get("host", "") == request.host:
+ request.headers.pop("host")
+ if request.headers.get(":authority", "") == request.host:
+ request.headers.pop(":authority")
+
+
+def cleanup_response(f: flow.Flow) -> http.Response:
+ if not getattr(f, "response", None):
+ raise exceptions.CommandError("Can't export flow with no response.")
+ assert isinstance(f, http.HTTPFlow)
+ response = f.response.copy() # type: ignore
+ response.decode(strict=False)
+ return response
+
+
+def request_content_for_console(request: http.Request) -> str:
+ try:
+ text = request.get_text(strict=True)
+ assert text
+ except ValueError:
+ # shlex.quote doesn't support a bytes object
+ # see https://github.com/python/cpython/pull/10871
+ raise exceptions.CommandError("Request content must be valid unicode")
+ escape_control_chars = {chr(i): f"\\x{i:02x}" for i in range(32)}
+ escaped_text = "".join(escape_control_chars.get(x, x) for x in text)
+ if any(char in escape_control_chars for char in text):
+ # Escaped chars need to be unescaped by the shell to be properly inperpreted by curl and httpie
+ return f'"$(printf {shlex.quote(escaped_text)})"'
+
+ return shlex.quote(escaped_text)
+
+
+def curl_command(f: flow.Flow) -> str:
+ request = cleanup_request(f)
+ pop_headers(request)
+
+ args = ["curl"]
+
+ server_addr = f.server_conn.peername[0] if f.server_conn.peername else None
+
+ if (
+ ctx.options.export_preserve_original_ip
+ and server_addr
+ and request.pretty_host != server_addr
+ ):
+ resolve = f"{request.pretty_host}:{request.port}:[{server_addr}]"
+ args.append("--resolve")
+ args.append(resolve)
+
+ for k, v in request.headers.items(multi=True):
+ if k.lower() == "accept-encoding":
+ args.append("--compressed")
+ else:
+ args += ["-H", f"{k}: {v}"]
+
+ if request.method != "GET":
+ if not request.content:
+ # curl will not calculate content-length if there is no content
+ # some server/verb combinations require content-length headers
+ # (ex. nginx and POST)
+ args += ["-H", "content-length: 0"]
+
+ args += ["-X", request.method]
+
+ args.append(request.pretty_url)
+
+ command = " ".join(shlex.quote(arg) for arg in args)
+ if request.content:
+ command += f" -d {request_content_for_console(request)}"
+ return command
+
+
+def httpie_command(f: flow.Flow) -> str:
+ request = cleanup_request(f)
+ pop_headers(request)
+
+ # TODO: Once https://github.com/httpie/httpie/issues/414 is implemented, we
+ # should ensure we always connect to the IP address specified in the flow,
+ # similar to how it's done in curl_command.
+ url = request.pretty_url
+
+ args = ["http", request.method, url]
+ for k, v in request.headers.items(multi=True):
+ args.append(f"{k}: {v}")
+ cmd = " ".join(shlex.quote(arg) for arg in args)
+ if request.content:
+ cmd += " <<< " + request_content_for_console(request)
+ return cmd
+
+
+def raw_request(f: flow.Flow) -> bytes:
+ request = cleanup_request(f)
+ if request.raw_content is None:
+ raise exceptions.CommandError("Request content missing.")
+ return assemble.assemble_request(request)
+
+
+def raw_response(f: flow.Flow) -> bytes:
+ response = cleanup_response(f)
+ if response.raw_content is None:
+ raise exceptions.CommandError("Response content missing.")
+ return assemble.assemble_response(response)
+
+
+def raw(f: flow.Flow, separator=b"\r\n\r\n") -> bytes:
+ """Return either the request or response if only one exists, otherwise return both"""
+ request_present = (
+ isinstance(f, http.HTTPFlow) and f.request and f.request.raw_content is not None
+ )
+ response_present = (
+ isinstance(f, http.HTTPFlow)
+ and f.response
+ and f.response.raw_content is not None
+ )
+
+ if request_present and response_present:
+ parts = [raw_request(f), raw_response(f)]
+ if isinstance(f, http.HTTPFlow) and f.websocket:
+ parts.append(f.websocket._get_formatted_messages())
+ return separator.join(parts)
+ elif request_present:
+ return raw_request(f)
+ elif response_present:
+ return raw_response(f)
+ else:
+ raise exceptions.CommandError("Can't export flow with no request or response.")
+
+
+formats: dict[str, Callable[[flow.Flow], str | bytes]] = dict(
+ curl=curl_command,
+ httpie=httpie_command,
+ raw=raw,
+ raw_request=raw_request,
+ raw_response=raw_response,
+)
+
+
+class Export:
+ def load(self, loader):
+ loader.add_option(
+ "export_preserve_original_ip",
+ bool,
+ False,
+ """
+ When exporting a request as an external command, make an effort to
+ connect to the same IP as in the original request. This helps with
+ reproducibility in cases where the behaviour depends on the
+ particular host we are connecting to. Currently this only affects
+ curl exports.
+ """,
+ )
+
+ @command.command("export.formats")
+ def formats(self) -> Sequence[str]:
+ """
+ Return a list of the supported export formats.
+ """
+ return list(sorted(formats.keys()))
+
+ @command.command("export.file")
+ def file(self, format: str, flow: flow.Flow, path: mitmproxy.types.Path) -> None:
+ """
+ Export a flow to path.
+ """
+ if format not in formats:
+ raise exceptions.CommandError("No such export format: %s" % format)
+ v = formats[format](flow)
+ try:
+ with open(path, "wb") as fp:
+ if isinstance(v, bytes):
+ fp.write(v)
+ else:
+ fp.write(v.encode("utf-8", "surrogateescape"))
+ except OSError as e:
+ logging.error(str(e))
+
+ @command.command("export.clip")
+ def clip(self, format: str, f: flow.Flow) -> None:
+ """
+ Export a flow to the system clipboard.
+ """
+ content = self.export_str(format, f)
+ try:
+ pyperclip.copy(content)
+ except pyperclip.PyperclipException as e:
+ logging.error(str(e))
+
+ @command.command("export")
+ def export_str(self, format: str, f: flow.Flow) -> str:
+ """
+ Export a flow and return the result.
+ """
+ if format not in formats:
+ raise exceptions.CommandError("No such export format: %s" % format)
+
+ content = formats[format](f)
+ # The individual formatters may return surrogate-escaped UTF-8, but that may blow up in later steps.
+ # For example, pyperclip on macOS does not like surrogates.
+ # To fix this, We first surrogate-encode and then backslash-decode.
+ content = strutils.always_bytes(content, "utf8", "surrogateescape")
+ content = strutils.always_str(content, "utf8", "backslashreplace")
+ return content
diff --git a/python/user_packages/Python313/site-packages/mitmproxy/addons/intercept.py b/python/user_packages/Python313/site-packages/mitmproxy/addons/intercept.py
new file mode 100644
index 0000000000000000000000000000000000000000..0749c3b17dcbd646fa575d461a0013bfe6d7decd
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/mitmproxy/addons/intercept.py
@@ -0,0 +1,63 @@
+from typing import Optional
+
+from mitmproxy import ctx
+from mitmproxy import exceptions
+from mitmproxy import flow
+from mitmproxy import flowfilter
+
+
+class Intercept:
+ filt: flowfilter.TFilter | None = None
+
+ def load(self, loader):
+ loader.add_option("intercept_active", bool, False, "Intercept toggle")
+ loader.add_option(
+ "intercept", Optional[str], None, "Intercept filter expression."
+ )
+
+ def configure(self, updated):
+ if "intercept" in updated:
+ if ctx.options.intercept:
+ try:
+ self.filt = flowfilter.parse(ctx.options.intercept)
+ except ValueError as e:
+ raise exceptions.OptionsError(str(e)) from e
+ ctx.options.intercept_active = True
+ else:
+ self.filt = None
+ ctx.options.intercept_active = False
+
+ def should_intercept(self, f: flow.Flow) -> bool:
+ return bool(
+ ctx.options.intercept_active
+ and self.filt
+ and self.filt(f)
+ and not f.is_replay
+ )
+
+ def process_flow(self, f: flow.Flow) -> None:
+ if self.should_intercept(f):
+ f.intercept()
+
+ # Handlers
+
+ def request(self, f):
+ self.process_flow(f)
+
+ def response(self, f):
+ self.process_flow(f)
+
+ def tcp_message(self, f):
+ self.process_flow(f)
+
+ def udp_message(self, f):
+ self.process_flow(f)
+
+ def dns_request(self, f):
+ self.process_flow(f)
+
+ def dns_response(self, f):
+ self.process_flow(f)
+
+ def websocket_message(self, f):
+ self.process_flow(f)
diff --git a/python/user_packages/Python313/site-packages/mitmproxy/addons/keepserving.py b/python/user_packages/Python313/site-packages/mitmproxy/addons/keepserving.py
new file mode 100644
index 0000000000000000000000000000000000000000..4e8d8188b1ae7afaed9fd137d6986281bfa12e7e
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/mitmproxy/addons/keepserving.py
@@ -0,0 +1,54 @@
+from __future__ import annotations
+
+import asyncio
+
+from mitmproxy import ctx
+from mitmproxy.utils import asyncio_utils
+
+
+class KeepServing:
+ def load(self, loader):
+ loader.add_option(
+ "keepserving",
+ bool,
+ False,
+ """
+ Continue serving after client playback, server playback or file
+ read. This option is ignored by interactive tools, which always keep
+ serving.
+ """,
+ )
+
+ def keepgoing(self) -> bool:
+ # Checking for proxyserver.active_connections is important for server replay,
+ # the addon may report that replay is finished but not the entire response has been sent yet.
+ # (https://github.com/mitmproxy/mitmproxy/issues/7569)
+ checks = [
+ "readfile.reading",
+ "replay.client.count",
+ "replay.server.count",
+ "proxyserver.active_connections",
+ ]
+ return any([ctx.master.commands.call(c) for c in checks])
+
+ def shutdown(self): # pragma: no cover
+ ctx.master.shutdown()
+
+ async def watch(self):
+ while True:
+ await asyncio.sleep(0.1)
+ if not self.keepgoing():
+ self.shutdown()
+
+ def running(self):
+ opts = [
+ ctx.options.client_replay,
+ ctx.options.server_replay,
+ ctx.options.rfile,
+ ]
+ if any(opts) and not ctx.options.keepserving:
+ asyncio_utils.create_task(
+ self.watch(),
+ name="keepserving",
+ keep_ref=True,
+ )
diff --git a/python/user_packages/Python313/site-packages/mitmproxy/addons/maplocal.py b/python/user_packages/Python313/site-packages/mitmproxy/addons/maplocal.py
new file mode 100644
index 0000000000000000000000000000000000000000..5b1abd0b5385375f3bf82a948ce722f5c5f4c601
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/mitmproxy/addons/maplocal.py
@@ -0,0 +1,151 @@
+import logging
+import mimetypes
+import re
+import urllib.parse
+from collections.abc import Sequence
+from pathlib import Path
+from typing import NamedTuple
+
+from werkzeug.security import safe_join
+
+from mitmproxy import ctx
+from mitmproxy import exceptions
+from mitmproxy import flowfilter
+from mitmproxy import http
+from mitmproxy import version
+from mitmproxy.utils.spec import parse_spec
+
+
+class MapLocalSpec(NamedTuple):
+ matches: flowfilter.TFilter
+ regex: str
+ local_path: Path
+
+
+def parse_map_local_spec(option: str) -> MapLocalSpec:
+ filter, regex, replacement = parse_spec(option)
+
+ try:
+ re.compile(regex)
+ except re.error as e:
+ raise ValueError(f"Invalid regular expression {regex!r} ({e})")
+
+ try:
+ path = Path(replacement).expanduser().resolve(strict=True)
+ except FileNotFoundError as e:
+ raise ValueError(f"Invalid file path: {replacement} ({e})")
+
+ return MapLocalSpec(filter, regex, path)
+
+
+def _safe_path_join(root: Path, untrusted: str) -> Path:
+ """Join a Path element with an untrusted str.
+
+ This is a convenience wrapper for werkzeug's safe_join,
+ raising a ValueError if the path is malformed."""
+ untrusted_parts = Path(untrusted).parts
+ joined = safe_join(root.as_posix(), *untrusted_parts)
+ if joined is None:
+ raise ValueError("Untrusted paths.")
+ return Path(joined)
+
+
+def file_candidates(url: str, spec: MapLocalSpec) -> list[Path]:
+ """
+ Get all potential file candidates given a URL and a mapping spec ordered by preference.
+ This function already assumes that the spec regex matches the URL.
+ """
+ m = re.search(spec.regex, url)
+ assert m
+ if m.groups():
+ suffix = m.group(1)
+ else:
+ suffix = re.split(spec.regex, url, maxsplit=1)[1]
+ suffix = suffix.split("?")[0] # remove query string
+ suffix = suffix.strip("/")
+
+ if suffix:
+ decoded_suffix = urllib.parse.unquote(suffix)
+ suffix_candidates = [decoded_suffix, f"{decoded_suffix}/index.html"]
+
+ escaped_suffix = re.sub(r"[^0-9a-zA-Z\-_.=(),/]", "_", decoded_suffix)
+ if decoded_suffix != escaped_suffix:
+ suffix_candidates.extend([escaped_suffix, f"{escaped_suffix}/index.html"])
+ try:
+ return [_safe_path_join(spec.local_path, x) for x in suffix_candidates]
+ except ValueError:
+ return []
+ else:
+ return [spec.local_path / "index.html"]
+
+
+class MapLocal:
+ def __init__(self) -> None:
+ self.replacements: list[MapLocalSpec] = []
+
+ def load(self, loader):
+ loader.add_option(
+ "map_local",
+ Sequence[str],
+ [],
+ """
+ Map remote resources to a local file using a pattern of the form
+ "[/flow-filter]/url-regex/file-or-directory-path", where the
+ separator can be any character.
+ """,
+ )
+
+ def configure(self, updated):
+ if "map_local" in updated:
+ self.replacements = []
+ for option in ctx.options.map_local:
+ try:
+ spec = parse_map_local_spec(option)
+ except ValueError as e:
+ raise exceptions.OptionsError(
+ f"Cannot parse map_local option {option}: {e}"
+ ) from e
+
+ self.replacements.append(spec)
+
+ def request(self, flow: http.HTTPFlow) -> None:
+ if flow.response or flow.error or not flow.live:
+ return
+
+ url = flow.request.pretty_url
+
+ all_candidates = []
+ for spec in self.replacements:
+ if spec.matches(flow) and re.search(spec.regex, url):
+ if spec.local_path.is_file():
+ candidates = [spec.local_path]
+ else:
+ candidates = file_candidates(url, spec)
+ all_candidates.extend(candidates)
+
+ local_file = None
+ for candidate in candidates:
+ if candidate.is_file():
+ local_file = candidate
+ break
+
+ if local_file:
+ headers = {"Server": version.MITMPROXY}
+ mimetype = mimetypes.guess_type(str(local_file))[0]
+ if mimetype:
+ headers["Content-Type"] = mimetype
+
+ try:
+ contents = local_file.read_bytes()
+ except OSError as e:
+ logging.warning(f"Could not read file: {e}")
+ continue
+
+ flow.response = http.Response.make(200, contents, headers)
+ # only set flow.response once, for the first matching rule
+ return
+ if all_candidates:
+ flow.response = http.Response.make(404)
+ logging.info(
+ f"None of the local file candidates exist: {', '.join(str(x) for x in all_candidates)}"
+ )
diff --git a/python/user_packages/Python313/site-packages/mitmproxy/addons/mapremote.py b/python/user_packages/Python313/site-packages/mitmproxy/addons/mapremote.py
new file mode 100644
index 0000000000000000000000000000000000000000..31a759ada47593112ba029c2a75828c76c785485
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/mitmproxy/addons/mapremote.py
@@ -0,0 +1,68 @@
+import re
+from collections.abc import Sequence
+from typing import NamedTuple
+
+from mitmproxy import ctx
+from mitmproxy import exceptions
+from mitmproxy import flowfilter
+from mitmproxy import http
+from mitmproxy.utils.spec import parse_spec
+
+
+class MapRemoteSpec(NamedTuple):
+ matches: flowfilter.TFilter
+ subject: str
+ replacement: str
+
+
+def parse_map_remote_spec(option: str) -> MapRemoteSpec:
+ spec = MapRemoteSpec(*parse_spec(option))
+
+ try:
+ re.compile(spec.subject)
+ except re.error as e:
+ raise ValueError(f"Invalid regular expression {spec.subject!r} ({e})")
+
+ return spec
+
+
+class MapRemote:
+ def __init__(self) -> None:
+ self.replacements: list[MapRemoteSpec] = []
+
+ def load(self, loader):
+ loader.add_option(
+ "map_remote",
+ Sequence[str],
+ [],
+ """
+ Map remote resources to another remote URL using a pattern of the form
+ "[/flow-filter]/url-regex/replacement", where the separator can
+ be any character.
+ """,
+ )
+
+ def configure(self, updated):
+ if "map_remote" in updated:
+ self.replacements = []
+ for option in ctx.options.map_remote:
+ try:
+ spec = parse_map_remote_spec(option)
+ except ValueError as e:
+ raise exceptions.OptionsError(
+ f"Cannot parse map_remote option {option}: {e}"
+ ) from e
+
+ self.replacements.append(spec)
+
+ def request(self, flow: http.HTTPFlow) -> None:
+ if flow.response or flow.error or not flow.live:
+ return
+ for spec in self.replacements:
+ if spec.matches(flow):
+ url = flow.request.pretty_url
+ new_url = re.sub(spec.subject, spec.replacement, url)
+ # this is a bit messy: setting .url also updates the host header,
+ # so we really only do that if the replacement affected the URL.
+ if url != new_url:
+ flow.request.url = new_url # type: ignore
diff --git a/python/user_packages/Python313/site-packages/mitmproxy/addons/modifybody.py b/python/user_packages/Python313/site-packages/mitmproxy/addons/modifybody.py
new file mode 100644
index 0000000000000000000000000000000000000000..7cef8e5872d8661d864b3059ab26b959b8b0ed2d
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/mitmproxy/addons/modifybody.py
@@ -0,0 +1,86 @@
+import logging
+import re
+from collections.abc import Sequence
+
+from mitmproxy import ctx
+from mitmproxy import exceptions
+from mitmproxy.addons.modifyheaders import ModifySpec
+from mitmproxy.addons.modifyheaders import parse_modify_spec
+from mitmproxy.log import ALERT
+
+logger = logging.getLogger(__name__)
+
+
+class ModifyBody:
+ def __init__(self) -> None:
+ self.replacements: list[ModifySpec] = []
+
+ def load(self, loader):
+ loader.add_option(
+ "modify_body",
+ Sequence[str],
+ [],
+ """
+ Replacement pattern of the form "[/flow-filter]/regex/[@]replacement", where
+ the separator can be any character. The @ allows to provide a file path that
+ is used to read the replacement string.
+ """,
+ )
+
+ def configure(self, updated):
+ if "modify_body" in updated:
+ self.replacements = []
+ for option in ctx.options.modify_body:
+ try:
+ spec = parse_modify_spec(option, True)
+ except ValueError as e:
+ raise exceptions.OptionsError(
+ f"Cannot parse modify_body option {option}: {e}"
+ ) from e
+
+ self.replacements.append(spec)
+
+ stream_and_modify_conflict = (
+ ctx.options.modify_body
+ and ctx.options.stream_large_bodies
+ and ("modify_body" in updated or "stream_large_bodies" in updated)
+ )
+ if stream_and_modify_conflict:
+ logger.log(
+ ALERT,
+ "Both modify_body and stream_large_bodies are active. "
+ "Streamed bodies will not be modified.",
+ )
+
+ def request(self, flow):
+ if flow.response or flow.error or not flow.live:
+ return
+ self.run(flow)
+
+ def response(self, flow):
+ if flow.error or not flow.live:
+ return
+ self.run(flow)
+
+ def run(self, flow):
+ for spec in self.replacements:
+ if spec.matches(flow):
+ try:
+ replacement = spec.read_replacement()
+ except OSError as e:
+ logging.warning(f"Could not read replacement file: {e}")
+ continue
+ if flow.response:
+ flow.response.content = re.sub(
+ spec.subject,
+ lambda _: replacement,
+ flow.response.content,
+ flags=re.DOTALL,
+ )
+ else:
+ flow.request.content = re.sub(
+ spec.subject,
+ lambda _: replacement,
+ flow.request.content,
+ flags=re.DOTALL,
+ )
diff --git a/python/user_packages/Python313/site-packages/mitmproxy/addons/modifyheaders.py b/python/user_packages/Python313/site-packages/mitmproxy/addons/modifyheaders.py
new file mode 100644
index 0000000000000000000000000000000000000000..503ba2282b2989e44dcbc03f17406255d450b3ab
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/mitmproxy/addons/modifyheaders.py
@@ -0,0 +1,117 @@
+import logging
+import re
+from collections.abc import Sequence
+from pathlib import Path
+from typing import NamedTuple
+
+from mitmproxy import ctx
+from mitmproxy import exceptions
+from mitmproxy import flowfilter
+from mitmproxy import http
+from mitmproxy.http import Headers
+from mitmproxy.utils import strutils
+from mitmproxy.utils.spec import parse_spec
+
+
+class ModifySpec(NamedTuple):
+ matches: flowfilter.TFilter
+ subject: bytes
+ replacement_str: str
+
+ def read_replacement(self) -> bytes:
+ """
+ Process the replacement str. This usually just involves converting it to bytes.
+ However, if it starts with `@`, we interpret the rest as a file path to read from.
+
+ Raises:
+ - IOError if the file cannot be read.
+ """
+ if self.replacement_str.startswith("@"):
+ return Path(self.replacement_str[1:]).expanduser().read_bytes()
+ else:
+ # We could cache this at some point, but unlikely to be a problem.
+ return strutils.escaped_str_to_bytes(self.replacement_str)
+
+
+def parse_modify_spec(option: str, subject_is_regex: bool) -> ModifySpec:
+ flow_filter, subject_str, replacement = parse_spec(option)
+
+ subject = strutils.escaped_str_to_bytes(subject_str)
+ if subject_is_regex:
+ try:
+ re.compile(subject)
+ except re.error as e:
+ raise ValueError(f"Invalid regular expression {subject!r} ({e})")
+
+ spec = ModifySpec(flow_filter, subject, replacement)
+
+ try:
+ spec.read_replacement()
+ except OSError as e:
+ raise ValueError(f"Invalid file path: {replacement[1:]} ({e})")
+
+ return spec
+
+
+class ModifyHeaders:
+ def __init__(self) -> None:
+ self.replacements: list[ModifySpec] = []
+
+ def load(self, loader):
+ loader.add_option(
+ "modify_headers",
+ Sequence[str],
+ [],
+ """
+ Header modify pattern of the form "[/flow-filter]/header-name/[@]header-value", where the
+ separator can be any character. The @ allows to provide a file path that is used to read
+ the header value string. An empty header-value removes existing header-name headers.
+ """,
+ )
+
+ def configure(self, updated):
+ if "modify_headers" in updated:
+ self.replacements = []
+ for option in ctx.options.modify_headers:
+ try:
+ spec = parse_modify_spec(option, False)
+ except ValueError as e:
+ raise exceptions.OptionsError(
+ f"Cannot parse modify_headers option {option}: {e}"
+ ) from e
+ self.replacements.append(spec)
+
+ def requestheaders(self, flow):
+ if flow.response or flow.error or not flow.live:
+ return
+ self.run(flow, flow.request.headers)
+
+ def responseheaders(self, flow):
+ if flow.error or not flow.live:
+ return
+ self.run(flow, flow.response.headers)
+
+ def run(self, flow: http.HTTPFlow, hdrs: Headers) -> None:
+ matches = []
+
+ # first check all the filters against the original, unmodified flow
+ for spec in self.replacements:
+ matches.append(spec.matches(flow))
+
+ # unset all specified headers
+ for i, spec in enumerate(self.replacements):
+ if matches[i]:
+ hdrs.pop(spec.subject, None)
+
+ # set all specified headers if the replacement string is not empty
+
+ for i, spec in enumerate(self.replacements):
+ if matches[i]:
+ try:
+ replacement = spec.read_replacement()
+ except OSError as e:
+ logging.warning(f"Could not read replacement file: {e}")
+ continue
+ else:
+ if replacement:
+ hdrs.add(spec.subject, replacement)
diff --git a/python/user_packages/Python313/site-packages/mitmproxy/addons/next_layer.py b/python/user_packages/Python313/site-packages/mitmproxy/addons/next_layer.py
new file mode 100644
index 0000000000000000000000000000000000000000..9f612d998c51521ca7c6a7023c8340a1f260cc25
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/mitmproxy/addons/next_layer.py
@@ -0,0 +1,474 @@
+"""
+This addon determines the next protocol layer in our proxy stack.
+Whenever a protocol layer in the proxy wants to pass a connection to a child layer and isn't sure which protocol comes
+next, it calls the `next_layer` hook, which ends up here.
+For example, if mitmproxy runs as a regular proxy, we first need to determine if
+new clients start with a TLS handshake right away (Secure Web Proxy) or send a plaintext HTTP CONNECT request.
+This addon here peeks at the incoming bytes and then makes a decision based on proxy mode, mitmproxy options, etc.
+
+For a typical HTTPS request, this addon is called a couple of times: First to determine that we start with an HTTP layer
+which processes the `CONNECT` request, a second time to determine that the client then starts negotiating TLS, and a
+third time when we check if the protocol within that TLS stream is actually HTTP or something else.
+
+Sometimes it's useful to hardcode specific logic in next_layer when one wants to do fancy things.
+In that case it's not necessary to modify mitmproxy's source, adding a custom addon with a next_layer event hook
+that sets nextlayer.layer works just as well.
+"""
+
+from __future__ import annotations
+
+import logging
+import re
+import sys
+from collections.abc import Iterable
+from collections.abc import Sequence
+from typing import Any
+from typing import cast
+
+from mitmproxy import ctx
+from mitmproxy.connection import Address
+from mitmproxy.net.tls import starts_like_dtls_record
+from mitmproxy.net.tls import starts_like_tls_record
+from mitmproxy.proxy import layer
+from mitmproxy.proxy import layers
+from mitmproxy.proxy import mode_specs
+from mitmproxy.proxy import tunnel
+from mitmproxy.proxy.context import Context
+from mitmproxy.proxy.layer import Layer
+from mitmproxy.proxy.layers import ClientQuicLayer
+from mitmproxy.proxy.layers import ClientTLSLayer
+from mitmproxy.proxy.layers import DNSLayer
+from mitmproxy.proxy.layers import HttpLayer
+from mitmproxy.proxy.layers import modes
+from mitmproxy.proxy.layers import RawQuicLayer
+from mitmproxy.proxy.layers import ServerQuicLayer
+from mitmproxy.proxy.layers import ServerTLSLayer
+from mitmproxy.proxy.layers import TCPLayer
+from mitmproxy.proxy.layers import UDPLayer
+from mitmproxy.proxy.layers.http import HTTPMode
+from mitmproxy.proxy.layers.quic import quic_parse_client_hello_from_datagrams
+from mitmproxy.proxy.layers.tls import dtls_parse_client_hello
+from mitmproxy.proxy.layers.tls import HTTP_ALPNS
+from mitmproxy.proxy.layers.tls import parse_client_hello
+from mitmproxy.tls import ClientHello
+
+if sys.version_info < (3, 11):
+ from typing_extensions import assert_never
+else:
+ from typing import assert_never
+
+logger = logging.getLogger(__name__)
+
+
+def stack_match(
+ context: Context, layers: Sequence[type[Layer] | tuple[type[Layer], ...]]
+) -> bool:
+ if len(context.layers) != len(layers):
+ return False
+ return all(
+ expected is Any or isinstance(actual, expected)
+ for actual, expected in zip(context.layers, layers)
+ )
+
+
+class NeedsMoreData(Exception):
+ """Signal that the decision on which layer to put next needs to be deferred within the NextLayer addon."""
+
+
+class NextLayer:
+ ignore_hosts: Sequence[re.Pattern] = ()
+ allow_hosts: Sequence[re.Pattern] = ()
+ tcp_hosts: Sequence[re.Pattern] = ()
+ udp_hosts: Sequence[re.Pattern] = ()
+
+ def configure(self, updated):
+ if "tcp_hosts" in updated:
+ self.tcp_hosts = [
+ re.compile(x, re.IGNORECASE) for x in ctx.options.tcp_hosts
+ ]
+ if "udp_hosts" in updated:
+ self.udp_hosts = [
+ re.compile(x, re.IGNORECASE) for x in ctx.options.udp_hosts
+ ]
+ if "allow_hosts" in updated or "ignore_hosts" in updated:
+ self.ignore_hosts = [
+ re.compile(x, re.IGNORECASE) for x in ctx.options.ignore_hosts
+ ]
+ self.allow_hosts = [
+ re.compile(x, re.IGNORECASE) for x in ctx.options.allow_hosts
+ ]
+
+ def next_layer(self, nextlayer: layer.NextLayer):
+ if nextlayer.layer:
+ return # do not override something another addon has set.
+ try:
+ nextlayer.layer = self._next_layer(
+ nextlayer.context,
+ nextlayer.data_client(),
+ nextlayer.data_server(),
+ )
+ except NeedsMoreData:
+ logger.debug(
+ f"Deferring layer decision, not enough data: {nextlayer.data_client().hex()!r}"
+ )
+
+ def _next_layer(
+ self, context: Context, data_client: bytes, data_server: bytes
+ ) -> Layer | None:
+ assert context.layers
+
+ def s(*layers):
+ return stack_match(context, layers)
+
+ tcp_based = context.client.transport_protocol == "tcp"
+ udp_based = context.client.transport_protocol == "udp"
+
+ # 1) check for --ignore/--allow
+ if self._ignore_connection(context, data_client, data_server):
+ return (
+ layers.TCPLayer(context, ignore=not ctx.options.show_ignored_hosts)
+ if tcp_based
+ else layers.UDPLayer(context, ignore=not ctx.options.show_ignored_hosts)
+ )
+
+ # 2) Handle proxy modes with well-defined next protocol
+ # 2a) Reverse proxy: derive from spec
+ if s(modes.ReverseProxy):
+ return self._setup_reverse_proxy(context, data_client)
+ # 2b) Explicit HTTP proxies
+ if s((modes.HttpProxy, modes.HttpUpstreamProxy)):
+ return self._setup_explicit_http_proxy(context, data_client)
+
+ # 3) Handle security protocols
+ # 3a) TLS/DTLS
+ is_tls_or_dtls = (
+ tcp_based
+ and starts_like_tls_record(data_client)
+ or udp_based
+ and starts_like_dtls_record(data_client)
+ )
+ if is_tls_or_dtls:
+ server_tls = ServerTLSLayer(context)
+ server_tls.child_layer = ClientTLSLayer(context)
+ return server_tls
+ # 3b) QUIC
+ if udp_based and _starts_like_quic(data_client, context.server.address):
+ server_quic = ServerQuicLayer(context)
+ server_quic.child_layer = ClientQuicLayer(context)
+ return server_quic
+
+ # 4) Check for --tcp/--udp
+ if tcp_based and self._is_destination_in_hosts(context, self.tcp_hosts):
+ return layers.TCPLayer(context)
+ if udp_based and self._is_destination_in_hosts(context, self.udp_hosts):
+ return layers.UDPLayer(context)
+
+ # 5) Handle application protocol
+ # 5a) Do we have a known ALPN negotiation?
+ if context.client.alpn:
+ if context.client.alpn in HTTP_ALPNS:
+ return layers.HttpLayer(context, HTTPMode.transparent)
+ elif context.client.tls_version == "QUICv1":
+ # TODO: Once we support more QUIC-based protocols, relax force_raw here.
+ return layers.RawQuicLayer(context, force_raw=True)
+ # 5b) Is it DNS?
+ if context.server.address and context.server.address[1] in (53, 5353):
+ return layers.DNSLayer(context)
+ # 5c) We have no other specialized layers for UDP, so we fall back to raw forwarding.
+ if udp_based:
+ return layers.UDPLayer(context)
+ # 5d) Check for raw tcp mode.
+ probably_no_http = (
+ # the first three bytes should be the HTTP verb, so A-Za-z is expected.
+ len(data_client) < 3
+ # HTTP would require whitespace...
+ or b" " not in data_client
+ # ...and that whitespace needs to be in the first line.
+ or (data_client.find(b" ") > data_client.find(b"\n"))
+ or not data_client[:3].isalpha()
+ # a server greeting would be uncharacteristic.
+ or data_server
+ or data_client.startswith(b"SSH")
+ )
+ if ctx.options.rawtcp and probably_no_http:
+ return layers.TCPLayer(context)
+ # 5c) Assume HTTP by default.
+ return layers.HttpLayer(context, HTTPMode.transparent)
+
+ def _ignore_connection(
+ self,
+ context: Context,
+ data_client: bytes,
+ data_server: bytes,
+ ) -> bool | None:
+ """
+ Returns:
+ True, if the connection should be ignored.
+ False, if it should not be ignored.
+
+ Raises:
+ NeedsMoreData, if we need to wait for more input data.
+ """
+ if not ctx.options.ignore_hosts and not ctx.options.allow_hosts:
+ return False
+ # Special handling for wireguard mode: if the hostname is "10.0.0.53", do not ignore the connection
+ if isinstance(
+ context.client.proxy_mode, mode_specs.WireGuardMode
+ ) and context.server.address == ("10.0.0.53", 53):
+ return False
+ hostnames: list[str] = []
+ if context.server.peername:
+ host, port, *_ = context.server.peername
+ hostnames.append(f"{host}:{port}")
+ if context.server.address:
+ host, port, *_ = context.server.address
+ hostnames.append(f"{host}:{port}")
+
+ # We also want to check for TLS SNI and HTTP host headers, but in order to ignore connections based on that
+ # they must have a destination address. If they don't, we don't know how to establish an upstream connection
+ # if we ignore.
+ if host_header := self._get_host_header(context, data_client, data_server):
+ if not re.search(r":\d+$", host_header):
+ host_header = f"{host_header}:{port}"
+ hostnames.append(host_header)
+ if (
+ client_hello := self._get_client_hello(context, data_client)
+ ) and client_hello.sni:
+ hostnames.append(f"{client_hello.sni}:{port}")
+ if context.client.sni:
+ # Hostname may be allowed, TLS is already established, and we have another next layer decision.
+ hostnames.append(f"{context.client.sni}:{port}")
+
+ if not hostnames:
+ return False
+
+ if ctx.options.allow_hosts:
+ not_allowed = not any(
+ re.search(rex, host, re.IGNORECASE)
+ for host in hostnames
+ for rex in ctx.options.allow_hosts
+ )
+ if not_allowed:
+ return True
+
+ if ctx.options.ignore_hosts:
+ ignored = any(
+ re.search(rex, host, re.IGNORECASE)
+ for host in hostnames
+ for rex in ctx.options.ignore_hosts
+ )
+ if ignored:
+ return True
+
+ return False
+
+ @staticmethod
+ def _get_host_header(
+ context: Context,
+ data_client: bytes,
+ data_server: bytes,
+ ) -> str | None:
+ """
+ Try to read a host header from data_client.
+
+ Returns:
+ The host header value, or None, if no host header was found.
+
+ Raises:
+ NeedsMoreData, if the HTTP request is incomplete.
+ """
+ if context.client.transport_protocol != "tcp" or data_server:
+ return None
+
+ host_header_expected = re.match(
+ rb"[A-Z]{3,}.+HTTP/", data_client, re.IGNORECASE
+ )
+ if host_header_expected:
+ if m := re.search(
+ rb"\r\n(?:Host:\s+(.+?)\s*)?\r\n", data_client, re.IGNORECASE
+ ):
+ if host := m.group(1):
+ return host.decode("utf-8", "surrogateescape")
+ else:
+ return None # \r\n\r\n - header end came first.
+ else:
+ raise NeedsMoreData
+ else:
+ return None
+
+ @staticmethod
+ def _get_client_hello(context: Context, data_client: bytes) -> ClientHello | None:
+ """
+ Try to read a TLS/DTLS/QUIC ClientHello from data_client.
+
+ Returns:
+ A complete ClientHello, or None, if no ClientHello was found.
+
+ Raises:
+ NeedsMoreData, if the ClientHello is incomplete.
+ """
+ match context.client.transport_protocol:
+ case "tcp":
+ if starts_like_tls_record(data_client):
+ try:
+ ch = parse_client_hello(data_client)
+ except ValueError:
+ pass
+ else:
+ if ch is None:
+ raise NeedsMoreData
+ return ch
+ return None
+ case "udp":
+ try:
+ return quic_parse_client_hello_from_datagrams([data_client])
+ except ValueError:
+ pass
+
+ try:
+ ch = dtls_parse_client_hello(data_client)
+ except ValueError:
+ pass
+ else:
+ if ch is None:
+ raise NeedsMoreData
+ return ch
+ return None
+ case _: # pragma: no cover
+ assert_never(context.client.transport_protocol)
+
+ @staticmethod
+ def _setup_reverse_proxy(context: Context, data_client: bytes) -> Layer:
+ spec = cast(mode_specs.ReverseMode, context.client.proxy_mode)
+ stack = tunnel.LayerStack()
+
+ match spec.scheme:
+ case "http":
+ if starts_like_tls_record(data_client):
+ stack /= ClientTLSLayer(context)
+ stack /= HttpLayer(context, HTTPMode.transparent)
+ case "https":
+ if context.client.transport_protocol == "udp":
+ stack /= ServerQuicLayer(context)
+ stack /= ClientQuicLayer(context)
+ stack /= HttpLayer(context, HTTPMode.transparent)
+ else:
+ stack /= ServerTLSLayer(context)
+ if starts_like_tls_record(data_client):
+ stack /= ClientTLSLayer(context)
+ stack /= HttpLayer(context, HTTPMode.transparent)
+
+ case "tcp":
+ if starts_like_tls_record(data_client):
+ stack /= ClientTLSLayer(context)
+ stack /= TCPLayer(context)
+ case "tls":
+ stack /= ServerTLSLayer(context)
+ if starts_like_tls_record(data_client):
+ stack /= ClientTLSLayer(context)
+ stack /= TCPLayer(context)
+
+ case "udp":
+ if starts_like_dtls_record(data_client):
+ stack /= ClientTLSLayer(context)
+ stack /= UDPLayer(context)
+ case "dtls":
+ stack /= ServerTLSLayer(context)
+ if starts_like_dtls_record(data_client):
+ stack /= ClientTLSLayer(context)
+ stack /= UDPLayer(context)
+
+ case "dns":
+ # TODO: DNS-over-TLS / DNS-over-DTLS
+ # is_tls_or_dtls = (
+ # context.client.transport_protocol == "tcp" and starts_like_tls_record(data_client)
+ # or
+ # context.client.transport_protocol == "udp" and starts_like_dtls_record(data_client)
+ # )
+ # if is_tls_or_dtls:
+ # stack /= ClientTLSLayer(context)
+ stack /= DNSLayer(context)
+
+ case "http3":
+ stack /= ServerQuicLayer(context)
+ stack /= ClientQuicLayer(context)
+ stack /= HttpLayer(context, HTTPMode.transparent)
+ case "quic":
+ stack /= ServerQuicLayer(context)
+ stack /= ClientQuicLayer(context)
+ stack /= RawQuicLayer(context, force_raw=True)
+
+ case _: # pragma: no cover
+ assert_never(spec.scheme)
+
+ return stack[0]
+
+ @staticmethod
+ def _setup_explicit_http_proxy(context: Context, data_client: bytes) -> Layer:
+ stack = tunnel.LayerStack()
+
+ if context.client.transport_protocol == "udp":
+ stack /= layers.ClientQuicLayer(context)
+ elif starts_like_tls_record(data_client):
+ stack /= layers.ClientTLSLayer(context)
+
+ if isinstance(context.layers[0], modes.HttpUpstreamProxy):
+ stack /= layers.HttpLayer(context, HTTPMode.upstream)
+ else:
+ stack /= layers.HttpLayer(context, HTTPMode.regular)
+
+ return stack[0]
+
+ @staticmethod
+ def _is_destination_in_hosts(context: Context, hosts: Iterable[re.Pattern]) -> bool:
+ return any(
+ (context.server.address and rex.search(context.server.address[0]))
+ or (context.client.sni and rex.search(context.client.sni))
+ for rex in hosts
+ )
+
+
+# https://www.iana.org/assignments/quic/quic.xhtml
+KNOWN_QUIC_VERSIONS = {
+ 0x00000001, # QUIC v1
+ 0x51303433, # Google QUIC Q043
+ 0x51303436, # Google QUIC Q046
+ 0x51303530, # Google QUIC Q050
+ 0x6B3343CF, # QUIC v2
+ 0x709A50C4, # QUIC v2 draft codepoint
+}
+
+TYPICAL_QUIC_PORTS = {80, 443, 8443}
+
+
+def _starts_like_quic(data_client: bytes, server_address: Address | None) -> bool:
+ """
+ Make an educated guess on whether this could be QUIC.
+ This turns out to be quite hard in practice as 1-RTT packets are hardly distinguishable from noise.
+
+ Returns:
+ True, if the passed bytes could be the start of a QUIC packet.
+ False, otherwise.
+ """
+ # Minimum size: 1 flag byte + 1+ packet number bytes + 16+ bytes encrypted payload
+ if len(data_client) < 18:
+ return False
+ if starts_like_dtls_record(data_client):
+ return False
+ # TODO: Add more checks here to detect true negatives.
+
+ # Long Header Packets
+ if data_client[0] & 0x80:
+ version = int.from_bytes(data_client[1:5], "big")
+ if version in KNOWN_QUIC_VERSIONS:
+ return True
+ # https://www.rfc-editor.org/rfc/rfc9000.html#name-versions
+ # Versions that follow the pattern 0x?a?a?a?a are reserved for use in forcing version negotiation
+ if version & 0x0F0F0F0F == 0x0A0A0A0A:
+ return True
+ else:
+ # ¯\_(ツ)_/¯
+ # We can't even rely on the QUIC bit, see https://datatracker.ietf.org/doc/rfc9287/.
+ pass
+
+ return bool(server_address and server_address[1] in TYPICAL_QUIC_PORTS)
diff --git a/python/user_packages/Python313/site-packages/mitmproxy/addons/onboarding.py b/python/user_packages/Python313/site-packages/mitmproxy/addons/onboarding.py
new file mode 100644
index 0000000000000000000000000000000000000000..02cf4bd204cd9ee186345b94e84c2517224c6c9e
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/mitmproxy/addons/onboarding.py
@@ -0,0 +1,34 @@
+from mitmproxy import ctx
+from mitmproxy.addons import asgiapp
+from mitmproxy.addons.onboardingapp import app
+
+APP_HOST = "mitm.it"
+
+
+class Onboarding(asgiapp.WSGIApp):
+ name = "onboarding"
+
+ def __init__(self):
+ super().__init__(app, APP_HOST, None)
+
+ def load(self, loader):
+ loader.add_option(
+ "onboarding", bool, True, "Toggle the mitmproxy onboarding app."
+ )
+ loader.add_option(
+ "onboarding_host",
+ str,
+ APP_HOST,
+ """
+ Onboarding app domain. For transparent mode, use an IP when a DNS
+ entry for the app domain is not present.
+ """,
+ )
+
+ def configure(self, updated):
+ self.host = ctx.options.onboarding_host
+ app.config["CONFDIR"] = ctx.options.confdir
+
+ async def request(self, f):
+ if ctx.options.onboarding:
+ await super().request(f)
diff --git a/python/user_packages/Python313/site-packages/mitmproxy/addons/proxyauth.py b/python/user_packages/Python313/site-packages/mitmproxy/addons/proxyauth.py
new file mode 100644
index 0000000000000000000000000000000000000000..0fd985d1532285ad9a27b4b86806a70ef6be5722
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/mitmproxy/addons/proxyauth.py
@@ -0,0 +1,298 @@
+from __future__ import annotations
+
+import binascii
+import pathlib
+import weakref
+from abc import ABC
+from abc import abstractmethod
+from collections.abc import MutableMapping
+from typing import Optional
+
+import ldap3
+
+from mitmproxy import connection
+from mitmproxy import ctx
+from mitmproxy import exceptions
+from mitmproxy import http
+from mitmproxy.net.http import status_codes
+from mitmproxy.proxy import mode_specs
+from mitmproxy.proxy.layers import modes
+from mitmproxy.utils import htpasswd
+
+REALM = "mitmproxy"
+
+
+class ProxyAuth:
+ validator: Validator | None = None
+
+ def __init__(self) -> None:
+ self.authenticated: MutableMapping[connection.Client, tuple[str, str]] = (
+ weakref.WeakKeyDictionary()
+ )
+ """Contains all connections that are permanently authenticated after an HTTP CONNECT"""
+
+ def load(self, loader):
+ loader.add_option(
+ "proxyauth",
+ Optional[str],
+ None,
+ """
+ Require proxy authentication. Format:
+ "username:pass",
+ "any" to accept any user/pass combination,
+ "@path" to use an Apache htpasswd file,
+ or "ldap[s]:url_server_ldap[:port]:dn_auth:password:dn_subtree[?search_filter_key=...]" for LDAP authentication.
+ """,
+ )
+
+ def configure(self, updated):
+ if "proxyauth" in updated:
+ auth = ctx.options.proxyauth
+ if auth:
+ if auth == "any":
+ self.validator = AcceptAll()
+ elif auth.startswith("@"):
+ self.validator = Htpasswd(auth)
+ elif ctx.options.proxyauth.startswith("ldap"):
+ self.validator = Ldap(auth)
+ elif ":" in ctx.options.proxyauth:
+ self.validator = SingleUser(auth)
+ else:
+ raise exceptions.OptionsError("Invalid proxyauth specification.")
+ else:
+ self.validator = None
+
+ def socks5_auth(self, data: modes.Socks5AuthData) -> None:
+ if self.validator and self.validator(data.username, data.password):
+ data.valid = True
+ self.authenticated[data.client_conn] = data.username, data.password
+
+ def http_connect(self, f: http.HTTPFlow) -> None:
+ if self.validator and self.authenticate_http(f):
+ # Make a note that all further requests over this connection are ok.
+ self.authenticated[f.client_conn] = f.metadata["proxyauth"]
+
+ def requestheaders(self, f: http.HTTPFlow) -> None:
+ if self.validator:
+ # Is this connection authenticated by a previous HTTP CONNECT?
+ if f.client_conn in self.authenticated:
+ f.metadata["proxyauth"] = self.authenticated[f.client_conn]
+ elif f.is_replay:
+ pass
+ else:
+ self.authenticate_http(f)
+
+ def authenticate_http(self, f: http.HTTPFlow) -> bool:
+ """
+ Authenticate an HTTP request, returns if authentication was successful.
+
+ If valid credentials are found, the matching authentication header is removed.
+ In no or invalid credentials are found, flow.response is set to an error page.
+ """
+ assert self.validator
+ username = None
+ password = None
+ is_valid = False
+
+ is_proxy = is_http_proxy(f)
+ auth_header = http_auth_header(is_proxy)
+ try:
+ auth_value = f.request.headers.get(auth_header, "")
+ scheme, username, password = parse_http_basic_auth(auth_value)
+ is_valid = self.validator(username, password)
+ except Exception:
+ pass
+
+ if is_valid:
+ f.metadata["proxyauth"] = (username, password)
+ del f.request.headers[auth_header]
+ return True
+ else:
+ f.response = make_auth_required_response(is_proxy)
+ return False
+
+
+def make_auth_required_response(is_proxy: bool) -> http.Response:
+ if is_proxy:
+ status_code = status_codes.PROXY_AUTH_REQUIRED
+ headers = {"Proxy-Authenticate": f'Basic realm="{REALM}"'}
+ else:
+ status_code = status_codes.UNAUTHORIZED
+ headers = {"WWW-Authenticate": f'Basic realm="{REALM}"'}
+
+ reason = http.status_codes.RESPONSES[status_code]
+ return http.Response.make(
+ status_code,
+ (
+ f""
+ f"
{status_code} {reason}"
+ f"{status_code} {reason}
"
+ f""
+ ),
+ headers,
+ )
+
+
+def http_auth_header(is_proxy: bool) -> str:
+ if is_proxy:
+ return "Proxy-Authorization"
+ else:
+ return "Authorization"
+
+
+def is_http_proxy(f: http.HTTPFlow) -> bool:
+ """
+ Returns:
+ - True, if authentication is done as if mitmproxy is a proxy
+ - False, if authentication is done as if mitmproxy is an HTTP server
+ """
+ return isinstance(
+ f.client_conn.proxy_mode, (mode_specs.RegularMode, mode_specs.UpstreamMode)
+ )
+
+
+def mkauth(username: str, password: str, scheme: str = "basic") -> str:
+ """
+ Craft a basic auth string
+ """
+ v = binascii.b2a_base64((username + ":" + password).encode("utf8")).decode("ascii")
+ return scheme + " " + v
+
+
+def parse_http_basic_auth(s: str) -> tuple[str, str, str]:
+ """
+ Parse a basic auth header.
+ Raises a ValueError if the input is invalid.
+ """
+ scheme, authinfo = s.split()
+ if scheme.lower() != "basic":
+ raise ValueError("Unknown scheme")
+ try:
+ user, password = (
+ binascii.a2b_base64(authinfo.encode()).decode("utf8", "replace").split(":")
+ )
+ except binascii.Error as e:
+ raise ValueError(str(e))
+ return scheme, user, password
+
+
+class Validator(ABC):
+ """Base class for all username/password validators."""
+
+ @abstractmethod
+ def __call__(self, username: str, password: str) -> bool:
+ raise NotImplementedError
+
+
+class AcceptAll(Validator):
+ def __call__(self, username: str, password: str) -> bool:
+ return True
+
+
+class SingleUser(Validator):
+ def __init__(self, proxyauth: str):
+ try:
+ self.username, self.password = proxyauth.split(":")
+ except ValueError:
+ raise exceptions.OptionsError("Invalid single-user auth specification.")
+
+ def __call__(self, username: str, password: str) -> bool:
+ return self.username == username and self.password == password
+
+
+class Htpasswd(Validator):
+ def __init__(self, proxyauth: str):
+ path = pathlib.Path(proxyauth[1:]).expanduser()
+ try:
+ self.htpasswd = htpasswd.HtpasswdFile.from_file(path)
+ except (ValueError, OSError) as e:
+ raise exceptions.OptionsError(
+ f"Could not open htpasswd file: {path}"
+ ) from e
+
+ def __call__(self, username: str, password: str) -> bool:
+ return self.htpasswd.check_password(username, password)
+
+
+class Ldap(Validator):
+ conn: ldap3.Connection
+ server: ldap3.Server
+ dn_subtree: str
+ filter_key: str
+
+ def __init__(self, proxyauth: str):
+ (
+ use_ssl,
+ url,
+ port,
+ ldap_user,
+ ldap_pass,
+ self.dn_subtree,
+ self.filter_key,
+ ) = self.parse_spec(proxyauth)
+ server = ldap3.Server(url, port=port, use_ssl=use_ssl)
+ conn = ldap3.Connection(server, ldap_user, ldap_pass, auto_bind=True)
+ self.conn = conn
+ self.server = server
+
+ @staticmethod
+ def parse_spec(spec: str) -> tuple[bool, str, int | None, str, str, str, str]:
+ try:
+ if spec.count(":") > 4:
+ (
+ security,
+ url,
+ port_str,
+ ldap_user,
+ ldap_pass,
+ dn_subtree,
+ ) = spec.split(":")
+ port = int(port_str)
+ else:
+ security, url, ldap_user, ldap_pass, dn_subtree = spec.split(":")
+ port = None
+
+ if "?" in dn_subtree:
+ dn_subtree, search_str = dn_subtree.split("?")
+ key, value = search_str.split("=")
+ if key == "search_filter_key":
+ search_filter_key = value
+ else:
+ raise ValueError
+ else:
+ search_filter_key = "cn"
+
+ if security == "ldaps":
+ use_ssl = True
+ elif security == "ldap":
+ use_ssl = False
+ else:
+ raise ValueError
+
+ return (
+ use_ssl,
+ url,
+ port,
+ ldap_user,
+ ldap_pass,
+ dn_subtree,
+ search_filter_key,
+ )
+ except ValueError:
+ raise exceptions.OptionsError(f"Invalid LDAP specification: {spec}")
+
+ def make_search_filter(self, username: str) -> str:
+ username = ldap3.utils.conv.escape_filter_chars(username)
+ return f"({self.filter_key}={username})"
+
+ def __call__(self, username: str, password: str) -> bool:
+ if not username or not password:
+ return False
+ self.conn.search(self.dn_subtree, self.make_search_filter(username))
+ if self.conn.response:
+ c = ldap3.Connection(
+ self.server, self.conn.response[0]["dn"], password, auto_bind=True
+ )
+ if c:
+ return True
+ return False
diff --git a/python/user_packages/Python313/site-packages/mitmproxy/addons/proxyserver.py b/python/user_packages/Python313/site-packages/mitmproxy/addons/proxyserver.py
new file mode 100644
index 0000000000000000000000000000000000000000..875bf8d08bdb4e63a5ac33abb75edde26c6de24a
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/mitmproxy/addons/proxyserver.py
@@ -0,0 +1,396 @@
+"""
+This addon is responsible for starting/stopping the proxy server sockets/instances specified by the mode option.
+"""
+
+from __future__ import annotations
+
+import asyncio
+import collections
+import ipaddress
+import logging
+from collections.abc import Iterable
+from collections.abc import Iterator
+from contextlib import contextmanager
+from typing import Optional
+
+from wsproto.frame_protocol import Opcode
+
+from mitmproxy import command
+from mitmproxy import ctx
+from mitmproxy import exceptions
+from mitmproxy import http
+from mitmproxy import platform
+from mitmproxy import tcp
+from mitmproxy import udp
+from mitmproxy import websocket
+from mitmproxy.connection import Address
+from mitmproxy.flow import Flow
+from mitmproxy.proxy import events
+from mitmproxy.proxy import mode_specs
+from mitmproxy.proxy import server_hooks
+from mitmproxy.proxy.layers.tcp import TcpMessageInjected
+from mitmproxy.proxy.layers.udp import UdpMessageInjected
+from mitmproxy.proxy.layers.websocket import WebSocketMessageInjected
+from mitmproxy.proxy.mode_servers import ProxyConnectionHandler
+from mitmproxy.proxy.mode_servers import ServerInstance
+from mitmproxy.proxy.mode_servers import ServerManager
+from mitmproxy.utils import asyncio_utils
+from mitmproxy.utils import human
+from mitmproxy.utils import signals
+
+logger = logging.getLogger(__name__)
+
+
+class Servers:
+ def __init__(self, manager: ServerManager):
+ self.changed = signals.AsyncSignal(lambda: None)
+ self._instances: dict[mode_specs.ProxyMode, ServerInstance] = dict()
+ self._lock = asyncio.Lock()
+ self._manager = manager
+
+ @property
+ def is_updating(self) -> bool:
+ return self._lock.locked()
+
+ async def update(self, modes: Iterable[mode_specs.ProxyMode]) -> bool:
+ all_ok = True
+
+ async with self._lock:
+ new_instances: dict[mode_specs.ProxyMode, ServerInstance] = {}
+
+ start_tasks = []
+ if ctx.options.server:
+ # Create missing modes and keep existing ones.
+ for spec in modes:
+ if spec in self._instances:
+ instance = self._instances[spec]
+ else:
+ instance = ServerInstance.make(spec, self._manager)
+ start_tasks.append(instance.start())
+ new_instances[spec] = instance
+
+ # Shutdown modes that have been removed from the list.
+ stop_tasks = [
+ s.stop()
+ for spec, s in self._instances.items()
+ if spec not in new_instances
+ ]
+
+ if not start_tasks and not stop_tasks:
+ return (
+ True # nothing to do, so we don't need to trigger `self.changed`.
+ )
+
+ self._instances = new_instances
+ # Notify listeners about the new not-yet-started servers.
+ await self.changed.send()
+
+ # We first need to free ports before starting new servers.
+ for ret in await asyncio.gather(*stop_tasks, return_exceptions=True):
+ if ret:
+ all_ok = False
+ logger.error(str(ret))
+ for ret in await asyncio.gather(*start_tasks, return_exceptions=True):
+ if ret:
+ all_ok = False
+ logger.error(str(ret))
+
+ await self.changed.send()
+ return all_ok
+
+ def __len__(self) -> int:
+ return len(self._instances)
+
+ def __iter__(self) -> Iterator[ServerInstance]:
+ return iter(self._instances.values())
+
+ def __getitem__(self, mode: str | mode_specs.ProxyMode) -> ServerInstance:
+ if isinstance(mode, str):
+ mode = mode_specs.ProxyMode.parse(mode)
+ return self._instances[mode]
+
+
+class Proxyserver(ServerManager):
+ """
+ This addon runs the actual proxy server.
+ """
+
+ connections: dict[tuple | str, ProxyConnectionHandler]
+ servers: Servers
+
+ is_running: bool
+ _connect_addr: Address | None = None
+
+ def __init__(self):
+ self.connections = {}
+ self.servers = Servers(self)
+ self.is_running = False
+
+ def __repr__(self):
+ return f"Proxyserver({len(self.connections)} active conns)"
+
+ @command.command("proxyserver.active_connections")
+ def active_connections(self) -> int:
+ return len(self.connections)
+
+ @contextmanager
+ def register_connection(
+ self, connection_id: tuple | str, handler: ProxyConnectionHandler
+ ):
+ self.connections[connection_id] = handler
+ try:
+ yield
+ finally:
+ del self.connections[connection_id]
+
+ def load(self, loader):
+ loader.add_option(
+ "store_streamed_bodies",
+ bool,
+ False,
+ "Store HTTP request and response bodies when streamed (see `stream_large_bodies`). "
+ "This increases memory consumption, but makes it possible to inspect streamed bodies.",
+ )
+ loader.add_option(
+ "connection_strategy",
+ str,
+ "eager",
+ "Determine when server connections should be established. When set to lazy, mitmproxy "
+ "tries to defer establishing an upstream connection as long as possible. This makes it possible to "
+ "use server replay while being offline. When set to eager, mitmproxy can detect protocols with "
+ "server-side greetings, as well as accurately mirror TLS ALPN negotiation.",
+ choices=("eager", "lazy"),
+ )
+ loader.add_option(
+ "stream_large_bodies",
+ Optional[str],
+ None,
+ """
+ Stream data to the client if request or response body exceeds the given
+ threshold. If streamed, the body will not be stored in any way,
+ and such responses cannot be modified. Understands k/m/g
+ suffixes, i.e. 3m for 3 megabytes. To store streamed bodies, see `store_streamed_bodies`.
+ """,
+ )
+ loader.add_option(
+ "body_size_limit",
+ Optional[str],
+ None,
+ """
+ Byte size limit of HTTP request and response bodies. Understands
+ k/m/g suffixes, i.e. 3m for 3 megabytes.
+ """,
+ )
+ loader.add_option(
+ "keep_host_header",
+ bool,
+ False,
+ """
+ Reverse Proxy: Keep the original host header instead of rewriting it
+ to the reverse proxy target.
+ """,
+ )
+ loader.add_option(
+ "proxy_debug",
+ bool,
+ False,
+ "Enable debug logs in the proxy core.",
+ )
+ loader.add_option(
+ "normalize_outbound_headers",
+ bool,
+ True,
+ """
+ Normalize outgoing HTTP/2 header names, but emit a warning when doing so.
+ HTTP/2 does not allow uppercase header names. This option makes sure that HTTP/2 headers set
+ in custom scripts are lowercased before they are sent.
+ """,
+ )
+ loader.add_option(
+ "validate_inbound_headers",
+ bool,
+ True,
+ """
+ Make sure that incoming HTTP requests are not malformed.
+ Disabling this option makes mitmproxy vulnerable to HTTP smuggling attacks.
+ """,
+ )
+ loader.add_option(
+ "connect_addr",
+ Optional[str],
+ None,
+ """Set the local IP address that mitmproxy should use when connecting to upstream servers.""",
+ )
+
+ def running(self):
+ self.is_running = True
+
+ def configure(self, updated) -> None:
+ if "stream_large_bodies" in updated:
+ try:
+ human.parse_size(ctx.options.stream_large_bodies)
+ except ValueError:
+ raise exceptions.OptionsError(
+ f"Invalid stream_large_bodies specification: "
+ f"{ctx.options.stream_large_bodies}"
+ )
+ if "body_size_limit" in updated:
+ try:
+ human.parse_size(ctx.options.body_size_limit)
+ except ValueError:
+ raise exceptions.OptionsError(
+ f"Invalid body_size_limit specification: "
+ f"{ctx.options.body_size_limit}"
+ )
+ if "connect_addr" in updated:
+ try:
+ if ctx.options.connect_addr:
+ self._connect_addr = (
+ str(ipaddress.ip_address(ctx.options.connect_addr)),
+ 0,
+ )
+ else:
+ self._connect_addr = None
+ except ValueError:
+ raise exceptions.OptionsError(
+ f"Invalid value for connect_addr: {ctx.options.connect_addr!r}. Specify a valid IP address."
+ )
+ if "mode" in updated or "server" in updated:
+ # Make sure that all modes are syntactically valid...
+ modes: list[mode_specs.ProxyMode] = []
+ for mode in ctx.options.mode:
+ try:
+ modes.append(mode_specs.ProxyMode.parse(mode))
+ except ValueError as e:
+ raise exceptions.OptionsError(
+ f"Invalid proxy mode specification: {mode} ({e})"
+ )
+
+ # ...and don't listen on the same address.
+ listen_addrs = []
+ for m in modes:
+ if m.transport_protocol == "both":
+ protocols = ["tcp", "udp"]
+ else:
+ protocols = [m.transport_protocol]
+ host = m.listen_host(ctx.options.listen_host)
+ port = m.listen_port(ctx.options.listen_port)
+ if port is None:
+ continue
+ for proto in protocols:
+ listen_addrs.append((host, port, proto))
+ if len(set(listen_addrs)) != len(listen_addrs):
+ (host, port, _) = collections.Counter(listen_addrs).most_common(1)[0][0]
+ dup_addr = human.format_address((host or "0.0.0.0", port))
+ raise exceptions.OptionsError(
+ f"Cannot spawn multiple servers on the same address: {dup_addr}"
+ )
+
+ if ctx.options.mode and not ctx.master.addons.get("nextlayer"):
+ logger.warning("Warning: Running proxyserver without nextlayer addon!")
+ if any(isinstance(m, mode_specs.TransparentMode) for m in modes):
+ if platform.original_addr:
+ platform.init_transparent_mode()
+ else:
+ raise exceptions.OptionsError(
+ "Transparent mode not supported on this platform."
+ )
+
+ if self.is_running:
+ asyncio_utils.create_task(
+ self.servers.update(modes),
+ name="update servers",
+ keep_ref=True,
+ )
+
+ async def setup_servers(self) -> bool:
+ """Setup proxy servers. This may take an indefinite amount of time to complete (e.g. on permission prompts)."""
+ return await self.servers.update(
+ [mode_specs.ProxyMode.parse(m) for m in ctx.options.mode]
+ )
+
+ def listen_addrs(self) -> list[Address]:
+ return [addr for server in self.servers for addr in server.listen_addrs]
+
+ def inject_event(self, event: events.MessageInjected):
+ connection_id: str | tuple
+ if event.flow.client_conn.transport_protocol != "udp":
+ connection_id = event.flow.client_conn.id
+ else: # pragma: no cover
+ # temporary workaround: for UDP we don't have persistent client IDs yet.
+ connection_id = (
+ event.flow.client_conn.peername,
+ event.flow.client_conn.sockname,
+ )
+ if connection_id not in self.connections:
+ raise ValueError("Flow is not from a live connection.")
+
+ asyncio_utils.create_task(
+ self.connections[connection_id].server_event(event),
+ name=f"inject_event",
+ keep_ref=True,
+ client=event.flow.client_conn.peername,
+ )
+
+ @command.command("inject.websocket")
+ def inject_websocket(
+ self, flow: Flow, to_client: bool, message: bytes, is_text: bool = True
+ ):
+ if not isinstance(flow, http.HTTPFlow) or not flow.websocket:
+ logger.warning("Cannot inject WebSocket messages into non-WebSocket flows.")
+ return
+
+ msg = websocket.WebSocketMessage(
+ Opcode.TEXT if is_text else Opcode.BINARY, not to_client, message
+ )
+ event = WebSocketMessageInjected(flow, msg)
+ try:
+ self.inject_event(event)
+ except ValueError as e:
+ logger.warning(str(e))
+
+ @command.command("inject.tcp")
+ def inject_tcp(self, flow: Flow, to_client: bool, message: bytes):
+ if not isinstance(flow, tcp.TCPFlow):
+ logger.warning("Cannot inject TCP messages into non-TCP flows.")
+ return
+
+ event = TcpMessageInjected(flow, tcp.TCPMessage(not to_client, message))
+ try:
+ self.inject_event(event)
+ except ValueError as e:
+ logger.warning(str(e))
+
+ @command.command("inject.udp")
+ def inject_udp(self, flow: Flow, to_client: bool, message: bytes):
+ if not isinstance(flow, udp.UDPFlow):
+ logger.warning("Cannot inject UDP messages into non-UDP flows.")
+ return
+
+ event = UdpMessageInjected(flow, udp.UDPMessage(not to_client, message))
+ try:
+ self.inject_event(event)
+ except ValueError as e:
+ logger.warning(str(e))
+
+ def server_connect(self, data: server_hooks.ServerConnectionHookData):
+ if data.server.sockname is None:
+ data.server.sockname = self._connect_addr
+
+ # Prevent mitmproxy from recursively connecting to itself.
+ assert data.server.address
+ connect_host, connect_port, *_ = data.server.address
+
+ for server in self.servers:
+ for listen_host, listen_port, *_ in server.listen_addrs:
+ self_connect = (
+ connect_port == listen_port
+ and connect_host in ("localhost", "127.0.0.1", "::1", listen_host)
+ and server.mode.transport_protocol == data.server.transport_protocol
+ )
+ if self_connect:
+ data.server.error = (
+ "Request destination unknown. "
+ "Unable to figure out where this request should be forwarded to."
+ )
+ return
diff --git a/python/user_packages/Python313/site-packages/mitmproxy/addons/readfile.py b/python/user_packages/Python313/site-packages/mitmproxy/addons/readfile.py
new file mode 100644
index 0000000000000000000000000000000000000000..b3248cfbb7a96f7b517853d515b11c06b860cc3e
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/mitmproxy/addons/readfile.py
@@ -0,0 +1,98 @@
+import asyncio
+import logging
+import os.path
+import sys
+from typing import BinaryIO
+from typing import Optional
+
+from mitmproxy import command
+from mitmproxy import ctx
+from mitmproxy import exceptions
+from mitmproxy import flowfilter
+from mitmproxy import io
+from mitmproxy.utils import asyncio_utils
+
+logger = logging.getLogger(__name__)
+
+
+class ReadFile:
+ """
+ An addon that handles reading from file on startup.
+ """
+
+ def __init__(self):
+ self.filter = None
+ self._read_task: asyncio.Task | None = None
+
+ def load(self, loader):
+ loader.add_option("rfile", Optional[str], None, "Read flows from file.")
+ loader.add_option(
+ "readfile_filter", Optional[str], None, "Read only matching flows."
+ )
+
+ def configure(self, updated):
+ if "readfile_filter" in updated:
+ if ctx.options.readfile_filter:
+ try:
+ self.filter = flowfilter.parse(ctx.options.readfile_filter)
+ except ValueError as e:
+ raise exceptions.OptionsError(str(e)) from e
+ else:
+ self.filter = None
+
+ async def load_flows(self, fo: BinaryIO) -> int:
+ cnt = 0
+ freader = io.FlowReader(fo)
+ try:
+ for flow in freader.stream():
+ if self.filter and not self.filter(flow):
+ continue
+ await ctx.master.load_flow(flow)
+ cnt += 1
+ except (OSError, exceptions.FlowReadException) as e:
+ if cnt:
+ logging.warning("Flow file corrupted - loaded %i flows." % cnt)
+ else:
+ logging.error("Flow file corrupted.")
+ raise exceptions.FlowReadException(str(e)) from e
+ else:
+ return cnt
+
+ async def load_flows_from_path(self, path: str) -> int:
+ path = os.path.expanduser(path)
+ try:
+ with open(path, "rb") as f:
+ return await self.load_flows(f)
+ except OSError as e:
+ logging.error(f"Cannot load flows: {e}")
+ raise exceptions.FlowReadException(str(e)) from e
+
+ async def doread(self, rfile: str) -> None:
+ try:
+ await self.load_flows_from_path(rfile)
+ except exceptions.FlowReadException as e:
+ logger.exception(f"Failed to read {ctx.options.rfile}: {e}")
+
+ def running(self):
+ if ctx.options.rfile:
+ self._read_task = asyncio_utils.create_task(
+ self.doread(ctx.options.rfile),
+ name="readfile",
+ keep_ref=False,
+ )
+
+ @command.command("readfile.reading")
+ def reading(self) -> bool:
+ return bool(self._read_task and not self._read_task.done())
+
+
+class ReadFileStdin(ReadFile):
+ """Support the special case of "-" for reading from stdin"""
+
+ async def load_flows_from_path(self, path: str) -> int:
+ if path == "-": # pragma: no cover
+ # Need to think about how to test this. This function is scheduled
+ # onto the event loop, where a sys.stdin mock has no effect.
+ return await self.load_flows(sys.stdin.buffer)
+ else:
+ return await super().load_flows_from_path(path)
diff --git a/python/user_packages/Python313/site-packages/mitmproxy/addons/save.py b/python/user_packages/Python313/site-packages/mitmproxy/addons/save.py
new file mode 100644
index 0000000000000000000000000000000000000000..0103bde60aff5863c65b8176bcedd5741e23e32a
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/mitmproxy/addons/save.py
@@ -0,0 +1,197 @@
+import logging
+import os.path
+import sys
+from collections.abc import Sequence
+from datetime import datetime
+from functools import lru_cache
+from pathlib import Path
+from typing import Literal
+from typing import Optional
+
+import mitmproxy.types
+from mitmproxy import command
+from mitmproxy import ctx
+from mitmproxy import dns
+from mitmproxy import exceptions
+from mitmproxy import flow
+from mitmproxy import flowfilter
+from mitmproxy import http
+from mitmproxy import io
+from mitmproxy import tcp
+from mitmproxy import udp
+from mitmproxy.log import ALERT
+
+
+@lru_cache
+def _path(path: str) -> str:
+ """Extract the path from a path spec (which may have an extra "+" at the front)"""
+ if path.startswith("+"):
+ path = path[1:]
+ return os.path.expanduser(path)
+
+
+@lru_cache
+def _mode(path: str) -> Literal["ab", "wb"]:
+ """Extract the writing mode (overwrite or append) from a path spec"""
+ if path.startswith("+"):
+ return "ab"
+ else:
+ return "wb"
+
+
+class Save:
+ def __init__(self) -> None:
+ self.stream: io.FilteredFlowWriter | None = None
+ self.filt: flowfilter.TFilter | None = None
+ self.active_flows: set[flow.Flow] = set()
+ self.current_path: str | None = None
+
+ def load(self, loader):
+ loader.add_option(
+ "save_stream_file",
+ Optional[str],
+ None,
+ """
+ Stream flows to file as they arrive. Prefix path with + to append.
+ The full path can use python strftime() formating, missing
+ directories are created as needed. A new file is opened every time
+ the formatted string changes.
+ """,
+ )
+ loader.add_option(
+ "save_stream_filter",
+ Optional[str],
+ None,
+ "Filter which flows are written to file.",
+ )
+
+ def configure(self, updated):
+ if "save_stream_filter" in updated:
+ if ctx.options.save_stream_filter:
+ try:
+ self.filt = flowfilter.parse(ctx.options.save_stream_filter)
+ except ValueError as e:
+ raise exceptions.OptionsError(str(e)) from e
+ else:
+ self.filt = None
+ if "save_stream_file" in updated or "save_stream_filter" in updated:
+ if ctx.options.save_stream_file:
+ try:
+ self.maybe_rotate_to_new_file()
+ except OSError as e:
+ raise exceptions.OptionsError(str(e)) from e
+ assert self.stream
+ self.stream.flt = self.filt
+ else:
+ self.done()
+
+ def maybe_rotate_to_new_file(self) -> None:
+ path = datetime.today().strftime(_path(ctx.options.save_stream_file))
+ if self.current_path == path:
+ return
+
+ if self.stream:
+ self.stream.fo.close()
+ self.stream = None
+
+ new_log_file = Path(path)
+ new_log_file.parent.mkdir(parents=True, exist_ok=True)
+
+ f = new_log_file.open(_mode(ctx.options.save_stream_file))
+ self.stream = io.FilteredFlowWriter(f, self.filt)
+ self.current_path = path
+
+ def save_flow(self, flow: flow.Flow) -> None:
+ """
+ Write the flow to the stream, but first check if we need to rotate to a new file.
+ """
+ if not self.stream:
+ return
+ try:
+ self.maybe_rotate_to_new_file()
+ self.stream.add(flow)
+ except OSError as e:
+ # If we somehow fail to write flows to a logfile, we really want to crash visibly
+ # instead of letting traffic through unrecorded.
+ # No normal logging here, that would not be triggered anymore.
+ sys.stderr.write(f"Error while writing to {self.current_path}: {e}")
+ sys.exit(1)
+ else:
+ self.active_flows.discard(flow)
+
+ def done(self) -> None:
+ if self.stream:
+ for f in self.active_flows:
+ self.stream.add(f)
+ self.active_flows.clear()
+
+ self.current_path = None
+ self.stream.fo.close()
+ self.stream = None
+
+ @command.command("save.file")
+ def save(self, flows: Sequence[flow.Flow], path: mitmproxy.types.Path) -> None:
+ """
+ Save flows to a file. If the path starts with a +, flows are
+ appended to the file, otherwise it is over-written.
+ """
+ try:
+ with open(_path(path), _mode(path)) as f:
+ stream = io.FlowWriter(f)
+ for i in flows:
+ stream.add(i)
+ except OSError as e:
+ raise exceptions.CommandError(e) from e
+ if path.endswith(".har") or path.endswith(".zhar"): # pragma: no cover
+ logging.log(
+ ALERT,
+ f"Saved as mitmproxy dump file. To save HAR files, use the `save.har` command.",
+ )
+ else:
+ logging.log(ALERT, f"Saved {len(flows)} flows.")
+
+ def tcp_start(self, flow: tcp.TCPFlow):
+ if self.stream:
+ self.active_flows.add(flow)
+
+ def tcp_end(self, flow: tcp.TCPFlow):
+ self.save_flow(flow)
+
+ def tcp_error(self, flow: tcp.TCPFlow):
+ self.tcp_end(flow)
+
+ def udp_start(self, flow: udp.UDPFlow):
+ if self.stream:
+ self.active_flows.add(flow)
+
+ def udp_end(self, flow: udp.UDPFlow):
+ self.save_flow(flow)
+
+ def udp_error(self, flow: udp.UDPFlow):
+ self.udp_end(flow)
+
+ def websocket_end(self, flow: http.HTTPFlow):
+ self.save_flow(flow)
+
+ def request(self, flow: http.HTTPFlow):
+ if self.stream:
+ self.active_flows.add(flow)
+
+ def response(self, flow: http.HTTPFlow):
+ # websocket flows will receive a websocket_end,
+ # we don't want to persist them here already
+ if flow.websocket is None:
+ self.save_flow(flow)
+
+ def error(self, flow: http.HTTPFlow):
+ self.response(flow)
+
+ def dns_request(self, flow: dns.DNSFlow):
+ if self.stream:
+ self.active_flows.add(flow)
+
+ def dns_response(self, flow: dns.DNSFlow):
+ self.save_flow(flow)
+
+ def dns_error(self, flow: dns.DNSFlow):
+ self.save_flow(flow)
diff --git a/python/user_packages/Python313/site-packages/mitmproxy/addons/savehar.py b/python/user_packages/Python313/site-packages/mitmproxy/addons/savehar.py
new file mode 100644
index 0000000000000000000000000000000000000000..d99308aaf8688b5e5716abaf7bd03fed591dfdf4
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/mitmproxy/addons/savehar.py
@@ -0,0 +1,312 @@
+"""Write flow objects to a HAR file"""
+
+import base64
+import json
+import logging
+import zlib
+from collections.abc import Sequence
+from datetime import datetime
+from datetime import timezone
+from typing import Any
+
+from mitmproxy import command
+from mitmproxy import ctx
+from mitmproxy import exceptions
+from mitmproxy import flow
+from mitmproxy import flowfilter
+from mitmproxy import http
+from mitmproxy import types
+from mitmproxy import version
+from mitmproxy.addonmanager import Loader
+from mitmproxy.connection import Server
+from mitmproxy.coretypes.multidict import _MultiDict
+from mitmproxy.log import ALERT
+from mitmproxy.utils import human
+from mitmproxy.utils import strutils
+
+logger = logging.getLogger(__name__)
+
+
+class SaveHar:
+ def __init__(self) -> None:
+ self.flows: list[flow.Flow] = []
+ self.filt: flowfilter.TFilter | None = None
+
+ @command.command("save.har")
+ def export_har(self, flows: Sequence[flow.Flow], path: types.Path) -> None:
+ """Export flows to an HAR (HTTP Archive) file."""
+
+ har = json.dumps(self.make_har(flows), indent=4).encode()
+
+ if path.endswith(".zhar"):
+ har = zlib.compress(har, 9)
+
+ with open(path, "wb") as f:
+ f.write(har)
+
+ logging.log(ALERT, f"HAR file saved ({human.pretty_size(len(har))} bytes).")
+
+ def make_har(self, flows: Sequence[flow.Flow]) -> dict:
+ entries = []
+ skipped = 0
+ # A list of server seen till now is maintained so we can avoid
+ # using 'connect' time for entries that use an existing connection.
+ servers_seen: set[Server] = set()
+
+ for f in flows:
+ if isinstance(f, http.HTTPFlow):
+ entries.append(self.flow_entry(f, servers_seen))
+ else:
+ skipped += 1
+
+ if skipped > 0:
+ logger.info(f"Skipped {skipped} flows that weren't HTTP flows.")
+
+ return {
+ "log": {
+ "version": "1.2",
+ "creator": {
+ "name": "mitmproxy",
+ "version": version.VERSION,
+ "comment": "",
+ },
+ "pages": [],
+ "entries": entries,
+ }
+ }
+
+ def load(self, loader: Loader):
+ loader.add_option(
+ "hardump",
+ str,
+ "",
+ """
+ Save a HAR file with all flows on exit.
+ You may select particular flows by setting save_stream_filter.
+ For mitmdump, enabling this option will mean that flows are kept in memory.
+ """,
+ )
+
+ def configure(self, updated):
+ if "save_stream_filter" in updated:
+ if ctx.options.save_stream_filter:
+ try:
+ self.filt = flowfilter.parse(ctx.options.save_stream_filter)
+ except ValueError as e:
+ raise exceptions.OptionsError(str(e)) from e
+ else:
+ self.filt = None
+
+ if "hardump" in updated:
+ if not ctx.options.hardump:
+ self.flows = []
+
+ def response(self, flow: http.HTTPFlow) -> None:
+ # websocket flows will receive a websocket_end,
+ # we don't want to persist them here already
+ if flow.websocket is None:
+ self._save_flow(flow)
+
+ def error(self, flow: http.HTTPFlow) -> None:
+ self.response(flow)
+
+ def websocket_end(self, flow: http.HTTPFlow) -> None:
+ self._save_flow(flow)
+
+ def _save_flow(self, flow: http.HTTPFlow) -> None:
+ if ctx.options.hardump:
+ flow_matches = self.filt is None or self.filt(flow)
+ if flow_matches:
+ self.flows.append(flow)
+
+ def done(self):
+ if ctx.options.hardump:
+ if ctx.options.hardump == "-":
+ har = self.make_har(self.flows)
+ print(json.dumps(har, indent=4))
+ else:
+ self.export_har(self.flows, ctx.options.hardump)
+
+ def flow_entry(self, flow: http.HTTPFlow, servers_seen: set[Server]) -> dict:
+ """Creates HAR entry from flow"""
+
+ if flow.server_conn in servers_seen:
+ connect_time = -1.0
+ ssl_time = -1.0
+ elif flow.server_conn.timestamp_tcp_setup:
+ assert flow.server_conn.timestamp_start
+ connect_time = 1000 * (
+ flow.server_conn.timestamp_tcp_setup - flow.server_conn.timestamp_start
+ )
+
+ if flow.server_conn.timestamp_tls_setup:
+ ssl_time = 1000 * (
+ flow.server_conn.timestamp_tls_setup
+ - flow.server_conn.timestamp_tcp_setup
+ )
+ else:
+ ssl_time = -1.0
+ servers_seen.add(flow.server_conn)
+ else:
+ connect_time = -1.0
+ ssl_time = -1.0
+
+ if flow.request.timestamp_end:
+ send = 1000 * (flow.request.timestamp_end - flow.request.timestamp_start)
+ else:
+ send = 0
+
+ if flow.response and flow.request.timestamp_end:
+ wait = 1000 * (flow.response.timestamp_start - flow.request.timestamp_end)
+ else:
+ wait = 0
+
+ if flow.response and flow.response.timestamp_end:
+ receive = 1000 * (
+ flow.response.timestamp_end - flow.response.timestamp_start
+ )
+
+ else:
+ receive = 0
+
+ timings: dict[str, float | None] = {
+ "connect": connect_time,
+ "ssl": ssl_time,
+ "send": send,
+ "receive": receive,
+ "wait": wait,
+ }
+
+ if flow.response:
+ try:
+ content = flow.response.content
+ except ValueError:
+ content = flow.response.raw_content
+ response_body_size = (
+ len(flow.response.raw_content) if flow.response.raw_content else 0
+ )
+ response_body_decoded_size = len(content) if content else 0
+ response_body_compression = response_body_decoded_size - response_body_size
+ response = {
+ "status": flow.response.status_code,
+ "statusText": flow.response.reason,
+ "httpVersion": flow.response.http_version,
+ "cookies": self.format_response_cookies(flow.response),
+ "headers": self.format_multidict(flow.response.headers),
+ "content": {
+ "size": response_body_size,
+ "compression": response_body_compression,
+ "mimeType": flow.response.headers.get("Content-Type", ""),
+ },
+ "redirectURL": flow.response.headers.get("Location", ""),
+ "headersSize": len(str(flow.response.headers)),
+ "bodySize": response_body_size,
+ }
+ if content and strutils.is_mostly_bin(content):
+ response["content"]["text"] = base64.b64encode(content).decode()
+ response["content"]["encoding"] = "base64"
+ else:
+ text_content = flow.response.get_text(strict=False)
+ if text_content is None:
+ response["content"]["text"] = ""
+ else:
+ response["content"]["text"] = text_content
+ else:
+ response = {
+ "status": 0,
+ "statusText": "",
+ "httpVersion": "",
+ "headers": [],
+ "cookies": [],
+ "content": {},
+ "redirectURL": "",
+ "headersSize": -1,
+ "bodySize": -1,
+ "_transferSize": 0,
+ "_error": None,
+ }
+ if flow.error:
+ response["_error"] = flow.error.msg
+
+ if flow.request.method == "CONNECT":
+ url = f"https://{flow.request.pretty_url}/"
+ else:
+ url = flow.request.pretty_url
+
+ entry: dict[str, Any] = {
+ "startedDateTime": datetime.fromtimestamp(
+ flow.request.timestamp_start, timezone.utc
+ ).isoformat(),
+ "time": sum(v for v in timings.values() if v is not None and v >= 0),
+ "request": {
+ "method": flow.request.method,
+ "url": url,
+ "httpVersion": flow.request.http_version,
+ "cookies": self.format_multidict(flow.request.cookies),
+ "headers": self.format_multidict(flow.request.headers),
+ "queryString": self.format_multidict(flow.request.query),
+ "headersSize": len(str(flow.request.headers)),
+ "bodySize": len(flow.request.raw_content)
+ if flow.request.raw_content
+ else 0,
+ },
+ "response": response,
+ "cache": {},
+ "timings": timings,
+ }
+
+ if flow.request.method in ["POST", "PUT", "PATCH"]:
+ params = self.format_multidict(flow.request.urlencoded_form)
+ entry["request"]["postData"] = {
+ "mimeType": flow.request.headers.get("Content-Type", ""),
+ "text": flow.request.get_text(strict=False),
+ "params": params,
+ }
+
+ if flow.server_conn.peername:
+ entry["serverIPAddress"] = str(flow.server_conn.peername[0])
+
+ websocket_messages = []
+ if flow.websocket:
+ for message in flow.websocket.messages:
+ if message.is_text:
+ data = message.text
+ else:
+ data = base64.b64encode(message.content).decode()
+ websocket_message = {
+ "type": "send" if message.from_client else "receive",
+ "time": message.timestamp,
+ "opcode": message.type.value,
+ "data": data,
+ }
+ websocket_messages.append(websocket_message)
+
+ entry["_resourceType"] = "websocket"
+ entry["_webSocketMessages"] = websocket_messages
+ return entry
+
+ def format_response_cookies(self, response: http.Response) -> list[dict]:
+ """Formats the response's cookie header to list of cookies"""
+ cookie_list = response.cookies.items(multi=True)
+ rv = []
+ for name, (value, attrs) in cookie_list:
+ cookie = {
+ "name": name,
+ "value": value,
+ "path": attrs.get("path", "/"),
+ "domain": attrs.get("domain", ""),
+ "httpOnly": "httpOnly" in attrs,
+ "secure": "secure" in attrs,
+ }
+ # TODO: handle expires attribute here.
+ # This is not quite trivial because we need to parse random date formats.
+ # For now, we just ignore the attribute.
+
+ if "sameSite" in attrs:
+ cookie["sameSite"] = attrs["sameSite"]
+
+ rv.append(cookie)
+ return rv
+
+ def format_multidict(self, obj: _MultiDict[str, str]) -> list[dict]:
+ return [{"name": k, "value": v} for k, v in obj.items(multi=True)]
diff --git a/python/user_packages/Python313/site-packages/mitmproxy/addons/script.py b/python/user_packages/Python313/site-packages/mitmproxy/addons/script.py
new file mode 100644
index 0000000000000000000000000000000000000000..e86272adeb420f873ff10bfa049c1d19617dae0e
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/mitmproxy/addons/script.py
@@ -0,0 +1,229 @@
+import asyncio
+import importlib.machinery
+import importlib.util
+import logging
+import os
+import sys
+import types
+from collections.abc import Sequence
+
+import mitmproxy.types as mtypes
+from mitmproxy import addonmanager
+from mitmproxy import command
+from mitmproxy import ctx
+from mitmproxy import eventsequence
+from mitmproxy import exceptions
+from mitmproxy import flow
+from mitmproxy import hooks
+from mitmproxy.utils import asyncio_utils
+
+logger = logging.getLogger(__name__)
+
+
+def load_script(path: str) -> types.ModuleType | None:
+ fullname = "__mitmproxy_script__.{}".format(
+ os.path.splitext(os.path.basename(path))[0]
+ )
+ # the fullname is not unique among scripts, so if there already is an existing script with said
+ # fullname, remove it.
+ sys.modules.pop(fullname, None)
+ oldpath = sys.path
+ sys.path.insert(0, os.path.dirname(path))
+
+ try:
+ loader = importlib.machinery.SourceFileLoader(fullname, path)
+ spec = importlib.util.spec_from_loader(fullname, loader=loader)
+ assert spec
+ m = importlib.util.module_from_spec(spec)
+ loader.exec_module(m)
+ if not getattr(m, "name", None):
+ m.name = path # type: ignore
+ return m
+ except ImportError as e:
+ if getattr(sys, "frozen", False):
+ e.msg += (
+ f".\n"
+ f"Note that mitmproxy's binaries include their own Python environment. "
+ f"If your addon requires the installation of additional dependencies, "
+ f"please install mitmproxy from PyPI "
+ f"(https://docs.mitmproxy.org/stable/overview-installation/#installation-from-the-python-package-index-pypi)."
+ )
+ script_error_handler(path, e)
+ return None
+ except Exception as e:
+ script_error_handler(path, e)
+ return None
+ finally:
+ sys.path[:] = oldpath
+
+
+def script_error_handler(path: str, exc: Exception) -> None:
+ """
+ Log errors during script loading.
+ """
+ tback = exc.__traceback__
+ tback = addonmanager.cut_traceback(
+ tback, "invoke_addon_sync"
+ ) # we're calling configure() on load
+ tback = addonmanager.cut_traceback(
+ tback, "_call_with_frames_removed"
+ ) # module execution from importlib
+ logger.error(f"error in script {path}", exc_info=(type(exc), exc, tback))
+
+
+ReloadInterval = 1
+
+
+class Script:
+ """
+ An addon that manages a single script.
+ """
+
+ def __init__(self, path: str, reload: bool) -> None:
+ self.name = "scriptmanager:" + path
+ self.path = path
+ self.fullpath = os.path.expanduser(path.strip("'\" "))
+ self.ns: types.ModuleType | None = None
+ self.is_running = False
+
+ if not os.path.isfile(self.fullpath):
+ raise exceptions.OptionsError(f"No such script: {self.fullpath}")
+
+ self.reloadtask = None
+ if reload:
+ self.reloadtask = asyncio_utils.create_task(
+ self.watcher(),
+ name=f"script watcher for {path}",
+ keep_ref=False,
+ )
+ else:
+ self.loadscript()
+
+ def running(self):
+ self.is_running = True
+
+ def done(self):
+ if self.reloadtask:
+ self.reloadtask.cancel()
+
+ @property
+ def addons(self):
+ return [self.ns] if self.ns else []
+
+ def loadscript(self):
+ logger.info("Loading script %s" % self.path)
+ if self.ns:
+ ctx.master.addons.remove(self.ns)
+ self.ns = None
+ with addonmanager.safecall():
+ ns = load_script(self.fullpath)
+ ctx.master.addons.register(ns)
+ self.ns = ns
+ if self.ns:
+ try:
+ ctx.master.addons.invoke_addon_sync(
+ self.ns, hooks.ConfigureHook(ctx.options.keys())
+ )
+ except Exception as e:
+ script_error_handler(self.fullpath, e)
+ if self.is_running:
+ # We're already running, so we call that on the addon now.
+ ctx.master.addons.invoke_addon_sync(self.ns, hooks.RunningHook())
+
+ async def watcher(self):
+ # Script loading is terminally confused at the moment.
+ # This here is a stopgap workaround to defer loading.
+ await asyncio.sleep(0)
+ last_mtime = 0.0
+ while True:
+ try:
+ mtime = os.stat(self.fullpath).st_mtime
+ except FileNotFoundError:
+ logger.info("Removing script %s" % self.path)
+ scripts = list(ctx.options.scripts)
+ scripts.remove(self.path)
+ ctx.options.update(scripts=scripts)
+ return
+ if mtime > last_mtime:
+ self.loadscript()
+ last_mtime = mtime
+ await asyncio.sleep(ReloadInterval)
+
+
+class ScriptLoader:
+ """
+ An addon that manages loading scripts from options.
+ """
+
+ def __init__(self):
+ self.is_running = False
+ self.addons = []
+
+ def load(self, loader):
+ loader.add_option("scripts", Sequence[str], [], "Execute a script.")
+
+ def running(self):
+ self.is_running = True
+
+ @command.command("script.run")
+ def script_run(self, flows: Sequence[flow.Flow], path: mtypes.Path) -> None:
+ """
+ Run a script on the specified flows. The script is configured with
+ the current options and all lifecycle events for each flow are
+ simulated. Note that the load event is not invoked.
+ """
+ if not os.path.isfile(path):
+ logger.error("No such script: %s" % path)
+ return
+ mod = load_script(path)
+ if mod:
+ with addonmanager.safecall():
+ ctx.master.addons.invoke_addon_sync(
+ mod,
+ hooks.ConfigureHook(ctx.options.keys()),
+ )
+ ctx.master.addons.invoke_addon_sync(mod, hooks.RunningHook())
+ for f in flows:
+ for evt in eventsequence.iterate(f):
+ ctx.master.addons.invoke_addon_sync(mod, evt)
+
+ def configure(self, updated):
+ if "scripts" in updated:
+ for s in ctx.options.scripts:
+ if ctx.options.scripts.count(s) > 1:
+ raise exceptions.OptionsError("Duplicate script")
+
+ for a in self.addons[:]:
+ if a.path not in ctx.options.scripts:
+ logger.info("Un-loading script: %s" % a.path)
+ ctx.master.addons.remove(a)
+ self.addons.remove(a)
+
+ # The machinations below are to ensure that:
+ # - Scripts remain in the same order
+ # - Scripts are not initialized un-necessarily. If only a
+ # script's order in the script list has changed, it is just
+ # moved.
+
+ current = {}
+ for a in self.addons:
+ current[a.path] = a
+
+ ordered = []
+ newscripts = []
+ for s in ctx.options.scripts:
+ if s in current:
+ ordered.append(current[s])
+ else:
+ sc = Script(s, True)
+ ordered.append(sc)
+ newscripts.append(sc)
+
+ self.addons = ordered
+
+ for s in newscripts:
+ ctx.master.addons.register(s)
+ if self.is_running:
+ # If we're already running, we configure and tell the addon
+ # we're up and running.
+ ctx.master.addons.invoke_addon_sync(s, hooks.RunningHook())
diff --git a/python/user_packages/Python313/site-packages/mitmproxy/addons/server_side_events.py b/python/user_packages/Python313/site-packages/mitmproxy/addons/server_side_events.py
new file mode 100644
index 0000000000000000000000000000000000000000..18d740d4c721e037c45e2c7e2a5a7267369ae30a
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/mitmproxy/addons/server_side_events.py
@@ -0,0 +1,23 @@
+import logging
+
+from mitmproxy import http
+
+
+class ServerSideEvents:
+ """
+ Server-Side Events are currently swallowed if there's no streaming,
+ see https://github.com/mitmproxy/mitmproxy/issues/4469.
+
+ Until this bug is fixed, this addon warns the user about this.
+ """
+
+ def response(self, flow: http.HTTPFlow):
+ assert flow.response
+ is_sse = flow.response.headers.get("content-type", "").startswith(
+ "text/event-stream"
+ )
+ if is_sse and not flow.response.stream:
+ logging.warning(
+ "mitmproxy currently does not support server side events. As a workaround, you can enable response "
+ "streaming for such flows: https://github.com/mitmproxy/mitmproxy/issues/4469"
+ )
diff --git a/python/user_packages/Python313/site-packages/mitmproxy/addons/serverplayback.py b/python/user_packages/Python313/site-packages/mitmproxy/addons/serverplayback.py
new file mode 100644
index 0000000000000000000000000000000000000000..c5b13b1a20edbfe0498c39136bed70e32037e0d7
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/mitmproxy/addons/serverplayback.py
@@ -0,0 +1,305 @@
+import hashlib
+import logging
+import urllib
+from collections.abc import Hashable
+from collections.abc import Sequence
+from typing import Any
+
+import mitmproxy.types
+from mitmproxy import command
+from mitmproxy import ctx
+from mitmproxy import exceptions
+from mitmproxy import flow
+from mitmproxy import hooks
+from mitmproxy import http
+from mitmproxy import io
+
+logger = logging.getLogger(__name__)
+
+HASH_OPTIONS = [
+ "server_replay_ignore_content",
+ "server_replay_ignore_host",
+ "server_replay_ignore_params",
+ "server_replay_ignore_payload_params",
+ "server_replay_ignore_port",
+ "server_replay_use_headers",
+]
+
+
+class ServerPlayback:
+ flowmap: dict[Hashable, list[http.HTTPFlow]]
+ configured: bool
+
+ def __init__(self):
+ self.flowmap = {}
+ self.configured = False
+
+ def load(self, loader):
+ loader.add_option(
+ "server_replay_kill_extra",
+ bool,
+ False,
+ "Kill extra requests during replay (for which no replayable response was found)."
+ "[Deprecated, prefer to use server_replay_extra='kill']",
+ )
+ loader.add_option(
+ "server_replay_extra",
+ str,
+ "forward",
+ "Behaviour for extra requests during replay for which no replayable response was found. "
+ "Setting a numeric string value will return an empty HTTP response with the respective status code.",
+ choices=["forward", "kill", "204", "400", "404", "500"],
+ )
+ loader.add_option(
+ "server_replay_reuse",
+ bool,
+ False,
+ """
+ Don't remove flows from server replay state after use. This makes it
+ possible to replay same response multiple times.
+ """,
+ )
+ loader.add_option(
+ "server_replay_nopop",
+ bool,
+ False,
+ """
+ Deprecated alias for `server_replay_reuse`.
+ """,
+ )
+ loader.add_option(
+ "server_replay_refresh",
+ bool,
+ True,
+ """
+ Refresh server replay responses by adjusting date, expires and
+ last-modified headers, as well as adjusting cookie expiration.
+ """,
+ )
+ loader.add_option(
+ "server_replay_use_headers",
+ Sequence[str],
+ [],
+ """
+ Request headers that need to match while searching for a saved flow
+ to replay.
+ """,
+ )
+ loader.add_option(
+ "server_replay",
+ Sequence[str],
+ [],
+ "Replay server responses from a saved file.",
+ )
+ loader.add_option(
+ "server_replay_ignore_content",
+ bool,
+ False,
+ "Ignore request content while searching for a saved flow to replay.",
+ )
+ loader.add_option(
+ "server_replay_ignore_params",
+ Sequence[str],
+ [],
+ """
+ Request parameters to be ignored while searching for a saved flow
+ to replay.
+ """,
+ )
+ loader.add_option(
+ "server_replay_ignore_payload_params",
+ Sequence[str],
+ [],
+ """
+ Request payload parameters (application/x-www-form-urlencoded or
+ multipart/form-data) to be ignored while searching for a saved flow
+ to replay.
+ """,
+ )
+ loader.add_option(
+ "server_replay_ignore_host",
+ bool,
+ False,
+ """
+ Ignore request destination host while searching for a saved flow
+ to replay.
+ """,
+ )
+ loader.add_option(
+ "server_replay_ignore_port",
+ bool,
+ False,
+ """
+ Ignore request destination port while searching for a saved flow
+ to replay.
+ """,
+ )
+
+ @command.command("replay.server")
+ def load_flows(self, flows: Sequence[flow.Flow]) -> None:
+ """
+ Replay server responses from flows.
+ """
+ self.flowmap = {}
+ self.add_flows(flows)
+
+ @command.command("replay.server.add")
+ def add_flows(self, flows: Sequence[flow.Flow]) -> None:
+ """
+ Add responses from flows to server replay list.
+ """
+ for f in flows:
+ if isinstance(f, http.HTTPFlow):
+ lst = self.flowmap.setdefault(self._hash(f), [])
+ lst.append(f)
+ ctx.master.addons.trigger(hooks.UpdateHook([]))
+
+ @command.command("replay.server.file")
+ def load_file(self, path: mitmproxy.types.Path) -> None:
+ try:
+ flows = io.read_flows_from_paths([path])
+ except exceptions.FlowReadException as e:
+ raise exceptions.CommandError(str(e))
+ self.load_flows(flows)
+
+ @command.command("replay.server.stop")
+ def clear(self) -> None:
+ """
+ Stop server replay.
+ """
+ self.flowmap = {}
+ ctx.master.addons.trigger(hooks.UpdateHook([]))
+
+ @command.command("replay.server.count")
+ def count(self) -> int:
+ return sum(len(i) for i in self.flowmap.values())
+
+ def _hash(self, flow: http.HTTPFlow) -> Hashable:
+ """
+ Calculates a loose hash of the flow request.
+ """
+ r = flow.request
+ _, _, path, _, query, _ = urllib.parse.urlparse(r.url)
+ queriesArray = urllib.parse.parse_qsl(query, keep_blank_values=True)
+
+ key: list[Any] = [str(r.scheme), str(r.method), str(path)]
+ if not ctx.options.server_replay_ignore_content:
+ if ctx.options.server_replay_ignore_payload_params and r.multipart_form:
+ key.extend(
+ (k, v)
+ for k, v in r.multipart_form.items(multi=True)
+ if k.decode(errors="replace")
+ not in ctx.options.server_replay_ignore_payload_params
+ )
+ elif ctx.options.server_replay_ignore_payload_params and r.urlencoded_form:
+ key.extend(
+ (k, v)
+ for k, v in r.urlencoded_form.items(multi=True)
+ if k not in ctx.options.server_replay_ignore_payload_params
+ )
+ else:
+ key.append(str(r.raw_content))
+
+ if not ctx.options.server_replay_ignore_host:
+ key.append(r.pretty_host)
+ if not ctx.options.server_replay_ignore_port:
+ key.append(r.port)
+
+ filtered = []
+ ignore_params = ctx.options.server_replay_ignore_params or []
+ for p in queriesArray:
+ if p[0] not in ignore_params:
+ filtered.append(p)
+ for p in filtered:
+ key.append(p[0])
+ key.append(p[1])
+
+ if ctx.options.server_replay_use_headers:
+ headers = []
+ for i in ctx.options.server_replay_use_headers:
+ v = r.headers.get(i)
+ headers.append((i, v))
+ key.append(headers)
+ return hashlib.sha256(repr(key).encode("utf8", "surrogateescape")).digest()
+
+ def next_flow(self, flow: http.HTTPFlow) -> http.HTTPFlow | None:
+ """
+ Returns the next flow object, or None if no matching flow was
+ found.
+ """
+ hash = self._hash(flow)
+ if hash in self.flowmap:
+ if ctx.options.server_replay_reuse or ctx.options.server_replay_nopop:
+ return next(
+ (flow for flow in self.flowmap[hash] if flow.response), None
+ )
+ else:
+ ret = self.flowmap[hash].pop(0)
+ while not ret.response:
+ if self.flowmap[hash]:
+ ret = self.flowmap[hash].pop(0)
+ else:
+ del self.flowmap[hash]
+ return None
+ if not self.flowmap[hash]:
+ del self.flowmap[hash]
+ return ret
+ else:
+ return None
+
+ def configure(self, updated):
+ if ctx.options.server_replay_kill_extra:
+ logger.warning(
+ "server_replay_kill_extra has been deprecated, "
+ "please update your config to use server_replay_extra='kill'."
+ )
+ if ctx.options.server_replay_nopop: # pragma: no cover
+ logger.error(
+ "server_replay_nopop has been renamed to server_replay_reuse, please update your config."
+ )
+ if not self.configured and ctx.options.server_replay:
+ self.configured = True
+ try:
+ flows = io.read_flows_from_paths(ctx.options.server_replay)
+ except exceptions.FlowReadException as e:
+ raise exceptions.OptionsError(str(e))
+ self.load_flows(flows)
+ if any(option in updated for option in HASH_OPTIONS):
+ self.recompute_hashes()
+
+ def recompute_hashes(self) -> None:
+ """
+ Rebuild flowmap if the hashing method has changed during execution,
+ see https://github.com/mitmproxy/mitmproxy/issues/4506
+ """
+ flows = [flow for lst in self.flowmap.values() for flow in lst]
+ self.load_flows(flows)
+
+ def request(self, f: http.HTTPFlow) -> None:
+ if self.flowmap:
+ rflow = self.next_flow(f)
+ if rflow:
+ assert rflow.response
+ response = rflow.response.copy()
+ if ctx.options.server_replay_refresh:
+ response.refresh()
+ f.response = response
+ f.is_replay = "response"
+ elif (
+ ctx.options.server_replay_kill_extra
+ or ctx.options.server_replay_extra == "kill"
+ ):
+ logging.warning(
+ "server_playback: killed non-replay request {}".format(
+ f.request.url
+ )
+ )
+ f.kill()
+ elif ctx.options.server_replay_extra != "forward":
+ logging.warning(
+ "server_playback: returned {} non-replay request {}".format(
+ ctx.options.server_replay_extra, f.request.url
+ )
+ )
+ f.response = http.Response.make(int(ctx.options.server_replay_extra))
+ f.is_replay = "response"
diff --git a/python/user_packages/Python313/site-packages/mitmproxy/addons/stickyauth.py b/python/user_packages/Python313/site-packages/mitmproxy/addons/stickyauth.py
new file mode 100644
index 0000000000000000000000000000000000000000..bd3b4e49d2c8c36608c4bbbfcd34a090fca14e49
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/mitmproxy/addons/stickyauth.py
@@ -0,0 +1,38 @@
+from typing import Optional
+
+from mitmproxy import ctx
+from mitmproxy import exceptions
+from mitmproxy import flowfilter
+
+
+class StickyAuth:
+ def __init__(self):
+ self.flt = None
+ self.hosts = {}
+
+ def load(self, loader):
+ loader.add_option(
+ "stickyauth",
+ Optional[str],
+ None,
+ "Set sticky auth filter. Matched against requests.",
+ )
+
+ def configure(self, updated):
+ if "stickyauth" in updated:
+ if ctx.options.stickyauth:
+ try:
+ self.flt = flowfilter.parse(ctx.options.stickyauth)
+ except ValueError as e:
+ raise exceptions.OptionsError(str(e)) from e
+ else:
+ self.flt = None
+
+ def request(self, flow):
+ if self.flt:
+ host = flow.request.host
+ if "authorization" in flow.request.headers:
+ self.hosts[host] = flow.request.headers["authorization"]
+ elif flowfilter.match(self.flt, flow):
+ if host in self.hosts:
+ flow.request.headers["authorization"] = self.hosts[host]
diff --git a/python/user_packages/Python313/site-packages/mitmproxy/addons/stickycookie.py b/python/user_packages/Python313/site-packages/mitmproxy/addons/stickycookie.py
new file mode 100644
index 0000000000000000000000000000000000000000..11b4773bf59b176049effa96665ef7475e09b3e7
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/mitmproxy/addons/stickycookie.py
@@ -0,0 +1,97 @@
+import collections
+from http import cookiejar
+from typing import Optional
+
+from mitmproxy import ctx
+from mitmproxy import exceptions
+from mitmproxy import flowfilter
+from mitmproxy import http
+from mitmproxy.net.http import cookies
+
+TOrigin = tuple[str, int, str]
+
+
+def ckey(attrs: dict[str, str], f: http.HTTPFlow) -> TOrigin:
+ """
+ Returns a (domain, port, path) tuple.
+ """
+ domain = f.request.host
+ path = "/"
+ if "domain" in attrs:
+ domain = attrs["domain"]
+ if "path" in attrs:
+ path = attrs["path"]
+ return (domain, f.request.port, path)
+
+
+def domain_match(a: str, b: str) -> bool:
+ if cookiejar.domain_match(a, b): # type: ignore
+ return True
+ elif cookiejar.domain_match(a, b.strip(".")): # type: ignore
+ return True
+ return False
+
+
+class StickyCookie:
+ def __init__(self) -> None:
+ self.jar: collections.defaultdict[TOrigin, dict[str, str]] = (
+ collections.defaultdict(dict)
+ )
+ self.flt: flowfilter.TFilter | None = None
+
+ def load(self, loader):
+ loader.add_option(
+ "stickycookie",
+ Optional[str],
+ None,
+ "Set sticky cookie filter. Matched against requests.",
+ )
+
+ def configure(self, updated):
+ if "stickycookie" in updated:
+ if ctx.options.stickycookie:
+ try:
+ self.flt = flowfilter.parse(ctx.options.stickycookie)
+ except ValueError as e:
+ raise exceptions.OptionsError(str(e)) from e
+ else:
+ self.flt = None
+
+ def response(self, flow: http.HTTPFlow):
+ assert flow.response
+ if self.flt:
+ for name, (value, attrs) in flow.response.cookies.items(multi=True):
+ # FIXME: We now know that Cookie.py screws up some cookies with
+ # valid RFC 822/1123 datetime specifications for expiry. Sigh.
+ dom_port_path = ckey(attrs, flow)
+
+ if domain_match(flow.request.host, dom_port_path[0]):
+ if cookies.is_expired(attrs):
+ # Remove the cookie from jar
+ self.jar[dom_port_path].pop(name, None)
+
+ # If all cookies of a dom_port_path have been removed
+ # then remove it from the jar itself
+ if not self.jar[dom_port_path]:
+ self.jar.pop(dom_port_path, None)
+ else:
+ self.jar[dom_port_path][name] = value
+
+ def request(self, flow: http.HTTPFlow):
+ if self.flt:
+ cookie_list: list[tuple[str, str]] = []
+ if flowfilter.match(self.flt, flow):
+ for (domain, port, path), c in self.jar.items():
+ match = [
+ domain_match(flow.request.host, domain),
+ flow.request.port == port,
+ flow.request.path.startswith(path),
+ ]
+ if all(match):
+ cookie_list.extend(c.items())
+ if cookie_list:
+ # FIXME: we need to formalise this...
+ flow.metadata["stickycookie"] = True
+ flow.request.headers["cookie"] = cookies.format_cookie_header(
+ cookie_list
+ )
diff --git a/python/user_packages/Python313/site-packages/mitmproxy/addons/strip_dns_https_records.py b/python/user_packages/Python313/site-packages/mitmproxy/addons/strip_dns_https_records.py
new file mode 100644
index 0000000000000000000000000000000000000000..b43383426dcafb59f01ef6f1a1b67ddf47717a49
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/mitmproxy/addons/strip_dns_https_records.py
@@ -0,0 +1,37 @@
+from mitmproxy import ctx
+from mitmproxy import dns
+from mitmproxy.net.dns import types
+
+
+class StripDnsHttpsRecords:
+ def load(self, loader):
+ loader.add_option(
+ "strip_ech",
+ bool,
+ True,
+ "Strip Encrypted ClientHello (ECH) data from DNS HTTPS records so that mitmproxy can generate matching certificates.",
+ )
+
+ def dns_response(self, flow: dns.DNSFlow):
+ assert flow.response
+ if ctx.options.strip_ech:
+ for answer in flow.response.answers:
+ if answer.type == types.HTTPS:
+ answer.https_ech = None
+ if not ctx.options.http3:
+ for answer in flow.response.answers:
+ if (
+ answer.type == types.HTTPS
+ and answer.https_alpn is not None
+ and any(
+ # HTTP/3 or any of the spec drafts (h3-...)?
+ a == b"h3" or a.startswith(b"h3-")
+ for a in answer.https_alpn
+ )
+ ):
+ alpns = tuple(
+ a
+ for a in answer.https_alpn
+ if a != b"h3" and not a.startswith(b"h3-")
+ )
+ answer.https_alpn = alpns or None
diff --git a/python/user_packages/Python313/site-packages/mitmproxy/addons/termlog.py b/python/user_packages/Python313/site-packages/mitmproxy/addons/termlog.py
new file mode 100644
index 0000000000000000000000000000000000000000..0bf1b6384842658deeaa3631fd6ded79d8deb5e8
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/mitmproxy/addons/termlog.py
@@ -0,0 +1,50 @@
+from __future__ import annotations
+
+import asyncio
+import logging
+import sys
+from typing import IO
+
+from mitmproxy import ctx
+from mitmproxy import log
+from mitmproxy.utils import vt_codes
+
+
+class TermLog:
+ _teardown_task: asyncio.Task | None = None
+
+ def __init__(self, out: IO[str] | None = None):
+ self.logger = TermLogHandler(out)
+ self.logger.install()
+
+ def load(self, loader):
+ loader.add_option(
+ "termlog_verbosity", str, "info", "Log verbosity.", choices=log.LogLevels
+ )
+ self.logger.setLevel(logging.INFO)
+
+ def configure(self, updated):
+ if "termlog_verbosity" in updated:
+ self.logger.setLevel(ctx.options.termlog_verbosity.upper())
+
+ def uninstall(self) -> None:
+ # uninstall the log dumper.
+ # This happens at the very very end after done() is completed,
+ # because we don't want to uninstall while other addons are still logging.
+ self.logger.uninstall()
+
+
+class TermLogHandler(log.MitmLogHandler):
+ def __init__(self, out: IO[str] | None = None):
+ super().__init__()
+ self.file: IO[str] = out or sys.stdout
+ self.has_vt_codes = vt_codes.ensure_supported(self.file)
+ self.formatter = log.MitmFormatter(self.has_vt_codes)
+
+ def emit(self, record: logging.LogRecord) -> None:
+ try:
+ print(self.format(record), file=self.file)
+ except OSError:
+ # We cannot print, exit immediately.
+ # See https://github.com/mitmproxy/mitmproxy/issues/4669
+ sys.exit(1)
diff --git a/python/user_packages/Python313/site-packages/mitmproxy/addons/tlsconfig.py b/python/user_packages/Python313/site-packages/mitmproxy/addons/tlsconfig.py
new file mode 100644
index 0000000000000000000000000000000000000000..89d18c33ab362aac40fb719f0ea8ef3609fed370
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/mitmproxy/addons/tlsconfig.py
@@ -0,0 +1,654 @@
+import ipaddress
+import logging
+import os
+import ssl
+import urllib.parse
+from pathlib import Path
+from typing import Any
+from typing import Literal
+from typing import TypedDict
+
+from aioquic.h3.connection import H3_ALPN
+from aioquic.tls import CipherSuite
+from cryptography import x509
+from OpenSSL import SSL
+
+from mitmproxy import certs
+from mitmproxy import connection
+from mitmproxy import ctx
+from mitmproxy import exceptions
+from mitmproxy import http
+from mitmproxy import tls
+from mitmproxy.net import tls as net_tls
+from mitmproxy.options import CONF_BASENAME
+from mitmproxy.proxy import context
+from mitmproxy.proxy.layers import modes
+from mitmproxy.proxy.layers import quic
+from mitmproxy.proxy.layers import tls as proxy_tls
+
+logger = logging.getLogger(__name__)
+
+# We manually need to specify this, otherwise OpenSSL may select a non-HTTP2 cipher by default.
+# https://ssl-config.mozilla.org/#config=old
+
+_DEFAULT_CIPHERS = (
+ "ECDHE-ECDSA-AES128-GCM-SHA256",
+ "ECDHE-RSA-AES128-GCM-SHA256",
+ "ECDHE-ECDSA-AES256-GCM-SHA384",
+ "ECDHE-RSA-AES256-GCM-SHA384",
+ "ECDHE-ECDSA-CHACHA20-POLY1305",
+ "ECDHE-RSA-CHACHA20-POLY1305",
+ "DHE-RSA-AES128-GCM-SHA256",
+ "DHE-RSA-AES256-GCM-SHA384",
+ "DHE-RSA-CHACHA20-POLY1305",
+ "ECDHE-ECDSA-AES128-SHA256",
+ "ECDHE-RSA-AES128-SHA256",
+ "ECDHE-ECDSA-AES128-SHA",
+ "ECDHE-RSA-AES128-SHA",
+ "ECDHE-ECDSA-AES256-SHA384",
+ "ECDHE-RSA-AES256-SHA384",
+ "ECDHE-ECDSA-AES256-SHA",
+ "ECDHE-RSA-AES256-SHA",
+ "DHE-RSA-AES128-SHA256",
+ "DHE-RSA-AES256-SHA256",
+ "AES128-GCM-SHA256",
+ "AES256-GCM-SHA384",
+ "AES128-SHA256",
+ "AES256-SHA256",
+ "AES128-SHA",
+ "AES256-SHA",
+ "DES-CBC3-SHA",
+)
+
+_DEFAULT_CIPHERS_WITH_SECLEVEL_0 = ("@SECLEVEL=0", *_DEFAULT_CIPHERS)
+
+
+def _default_ciphers(
+ min_tls_version: net_tls.Version,
+) -> tuple[str, ...]:
+ """
+ @SECLEVEL=0 is necessary for TLS 1.1 and below to work,
+ see https://github.com/pyca/cryptography/issues/9523
+ """
+ if min_tls_version in net_tls.INSECURE_TLS_MIN_VERSIONS:
+ return _DEFAULT_CIPHERS_WITH_SECLEVEL_0
+ else:
+ return _DEFAULT_CIPHERS
+
+
+# 2022/05: X509_CHECK_FLAG_NEVER_CHECK_SUBJECT is not available in LibreSSL, ignore gracefully as it's not critical.
+DEFAULT_HOSTFLAGS = (
+ SSL._lib.X509_CHECK_FLAG_NO_PARTIAL_WILDCARDS # type: ignore
+ | getattr(SSL._lib, "X509_CHECK_FLAG_NEVER_CHECK_SUBJECT", 0) # type: ignore
+)
+
+
+class AppData(TypedDict):
+ client_alpn: bytes | None
+ server_alpn: bytes | None
+ http2: bool
+
+
+def alpn_select_callback(conn: SSL.Connection, options: list[bytes]) -> Any:
+ app_data: AppData = conn.get_app_data()
+ client_alpn = app_data["client_alpn"]
+ server_alpn = app_data["server_alpn"]
+ http2 = app_data["http2"]
+ if client_alpn is not None:
+ if client_alpn in options:
+ return client_alpn
+ else:
+ return SSL.NO_OVERLAPPING_PROTOCOLS
+ if server_alpn and server_alpn in options:
+ return server_alpn
+ if server_alpn == b"":
+ # We do have a server connection, but the remote server refused to negotiate a protocol:
+ # We need to mirror this on the client connection.
+ return SSL.NO_OVERLAPPING_PROTOCOLS
+ http_alpns = proxy_tls.HTTP_ALPNS if http2 else proxy_tls.HTTP1_ALPNS
+ # client sends in order of preference, so we are nice and respect that.
+ for alpn in options:
+ if alpn in http_alpns:
+ return alpn
+ else:
+ return SSL.NO_OVERLAPPING_PROTOCOLS
+
+
+class TlsConfig:
+ """
+ This addon supplies the proxy core with the desired OpenSSL connection objects to negotiate TLS.
+ """
+
+ certstore: certs.CertStore = None # type: ignore
+
+ # TODO: We should support configuring TLS 1.3 cipher suites (https://github.com/mitmproxy/mitmproxy/issues/4260)
+ # TODO: We should re-use SSL.Context options here, if only for TLS session resumption.
+ # This may require patches to pyOpenSSL, as some functionality is only exposed on contexts.
+ # TODO: This addon should manage the following options itself, which are current defined in mitmproxy/options.py:
+ # - upstream_cert
+ # - add_upstream_certs_to_client_chain
+ # - key_size
+ # - certs
+ # - cert_passphrase
+ # - ssl_verify_upstream_trusted_ca
+ # - ssl_verify_upstream_trusted_confdir
+
+ def load(self, loader):
+ insecure_tls_min_versions = (
+ ", ".join(x.name for x in net_tls.INSECURE_TLS_MIN_VERSIONS[:-1])
+ + f" and {net_tls.INSECURE_TLS_MIN_VERSIONS[-1].name}"
+ )
+ loader.add_option(
+ name="tls_version_client_min",
+ typespec=str,
+ default=net_tls.DEFAULT_MIN_VERSION.name,
+ choices=[x.name for x in net_tls.Version],
+ help=f"Set the minimum TLS version for client connections. "
+ f"{insecure_tls_min_versions} are insecure.",
+ )
+ loader.add_option(
+ name="tls_version_client_max",
+ typespec=str,
+ default=net_tls.DEFAULT_MAX_VERSION.name,
+ choices=[x.name for x in net_tls.Version],
+ help=f"Set the maximum TLS version for client connections.",
+ )
+ loader.add_option(
+ name="tls_version_server_min",
+ typespec=str,
+ default=net_tls.DEFAULT_MIN_VERSION.name,
+ choices=[x.name for x in net_tls.Version],
+ help=f"Set the minimum TLS version for server connections. "
+ f"{insecure_tls_min_versions} are insecure.",
+ )
+ loader.add_option(
+ name="tls_version_server_max",
+ typespec=str,
+ default=net_tls.DEFAULT_MAX_VERSION.name,
+ choices=[x.name for x in net_tls.Version],
+ help=f"Set the maximum TLS version for server connections.",
+ )
+ loader.add_option(
+ name="tls_ecdh_curve_client",
+ typespec=str | None,
+ default=None,
+ help="Use a specific elliptic curve for ECDHE key exchange on client connections. "
+ 'OpenSSL syntax, for example "prime256v1" (see `openssl ecparam -list_curves`).',
+ )
+ loader.add_option(
+ name="tls_ecdh_curve_server",
+ typespec=str | None,
+ default=None,
+ help="Use a specific elliptic curve for ECDHE key exchange on server connections. "
+ 'OpenSSL syntax, for example "prime256v1" (see `openssl ecparam -list_curves`).',
+ )
+ loader.add_option(
+ name="request_client_cert",
+ typespec=bool,
+ default=False,
+ help=f"Requests a client certificate (TLS message 'CertificateRequest') to establish a mutual TLS connection between client and mitmproxy (combined with 'client_certs' option for mitmproxy and upstream).",
+ )
+ loader.add_option(
+ "ciphers_client",
+ str | None,
+ None,
+ "Set supported ciphers for client <-> mitmproxy connections using OpenSSL syntax.",
+ )
+ loader.add_option(
+ "ciphers_server",
+ str | None,
+ None,
+ "Set supported ciphers for mitmproxy <-> server connections using OpenSSL syntax.",
+ )
+
+ def tls_clienthello(self, tls_clienthello: tls.ClientHelloData):
+ conn_context = tls_clienthello.context
+ tls_clienthello.establish_server_tls_first = (
+ conn_context.server.tls and ctx.options.connection_strategy == "eager"
+ )
+
+ def tls_start_client(self, tls_start: tls.TlsData) -> None:
+ """Establish TLS or DTLS between client and proxy."""
+ if tls_start.ssl_conn is not None:
+ return # a user addon has already provided the pyOpenSSL context.
+
+ assert isinstance(tls_start.conn, connection.Client)
+
+ client: connection.Client = tls_start.conn
+ server: connection.Server = tls_start.context.server
+
+ entry = self.get_cert(tls_start.context)
+
+ if not client.cipher_list and ctx.options.ciphers_client:
+ client.cipher_list = ctx.options.ciphers_client.split(":")
+ # don't assign to client.cipher_list, doesn't need to be stored.
+ cipher_list = client.cipher_list or _default_ciphers(
+ net_tls.Version[ctx.options.tls_version_client_min]
+ )
+
+ if ctx.options.add_upstream_certs_to_client_chain: # pragma: no cover
+ # exempted from coverage until https://bugs.python.org/issue18233 is fixed.
+ extra_chain_certs = server.certificate_list
+ else:
+ extra_chain_certs = []
+
+ ssl_ctx = net_tls.create_client_proxy_context(
+ method=net_tls.Method.DTLS_SERVER_METHOD
+ if tls_start.is_dtls
+ else net_tls.Method.TLS_SERVER_METHOD,
+ min_version=net_tls.Version[ctx.options.tls_version_client_min],
+ max_version=net_tls.Version[ctx.options.tls_version_client_max],
+ cipher_list=tuple(cipher_list),
+ ecdh_curve=net_tls.get_curve(ctx.options.tls_ecdh_curve_client),
+ chain_file=entry.chain_file,
+ request_client_cert=ctx.options.request_client_cert,
+ alpn_select_callback=alpn_select_callback,
+ extra_chain_certs=tuple(extra_chain_certs),
+ dhparams=self.certstore.dhparams,
+ )
+ tls_start.ssl_conn = SSL.Connection(ssl_ctx)
+
+ tls_start.ssl_conn.use_certificate(entry.cert.to_cryptography())
+ tls_start.ssl_conn.use_privatekey(entry.privatekey)
+
+ # Force HTTP/1 for secure web proxies, we currently don't support CONNECT over HTTP/2.
+ # There is a proof-of-concept branch at https://github.com/mhils/mitmproxy/tree/http2-proxy,
+ # but the complexity outweighs the benefits for now.
+ if len(tls_start.context.layers) == 2 and isinstance(
+ tls_start.context.layers[0], modes.HttpProxy
+ ):
+ client_alpn: bytes | None = b"http/1.1"
+ else:
+ client_alpn = client.alpn
+
+ tls_start.ssl_conn.set_app_data(
+ AppData(
+ client_alpn=client_alpn,
+ server_alpn=server.alpn,
+ http2=ctx.options.http2,
+ )
+ )
+ tls_start.ssl_conn.set_accept_state()
+
+ def tls_start_server(self, tls_start: tls.TlsData) -> None:
+ """Establish TLS or DTLS between proxy and server."""
+ if tls_start.ssl_conn is not None:
+ return # a user addon has already provided the pyOpenSSL context.
+
+ assert isinstance(tls_start.conn, connection.Server)
+
+ client: connection.Client = tls_start.context.client
+ # tls_start.conn may be different from tls_start.context.server, e.g. an upstream HTTPS proxy.
+ server: connection.Server = tls_start.conn
+ assert server.address
+
+ if ctx.options.ssl_insecure:
+ verify = net_tls.Verify.VERIFY_NONE
+ else:
+ verify = net_tls.Verify.VERIFY_PEER
+
+ if server.sni is None:
+ server.sni = client.sni or server.address[0]
+
+ if not server.alpn_offers:
+ if client.alpn_offers:
+ if ctx.options.http2:
+ # We would perfectly support HTTP/1 -> HTTP/2, but we want to keep things on the same protocol
+ # version. There are some edge cases where we want to mirror the regular server's behavior
+ # accurately, for example header capitalization.
+ server.alpn_offers = tuple(client.alpn_offers)
+ else:
+ server.alpn_offers = tuple(
+ x for x in client.alpn_offers if x != b"h2"
+ )
+ else:
+ # We either have no client TLS or a client without ALPN.
+ # - If the client does use TLS but did not send an ALPN extension, we want to mirror that upstream.
+ # - If the client does not use TLS, there's no clear-cut answer. As a pragmatic approach, we also do
+ # not send any ALPN extension in this case, which defaults to whatever protocol we are speaking
+ # or falls back to HTTP.
+ server.alpn_offers = []
+
+ if not server.cipher_list and ctx.options.ciphers_server:
+ server.cipher_list = ctx.options.ciphers_server.split(":")
+ # don't assign to client.cipher_list, doesn't need to be stored.
+ cipher_list = server.cipher_list or _default_ciphers(
+ net_tls.Version[ctx.options.tls_version_server_min]
+ )
+
+ client_cert: str | None = None
+ if ctx.options.client_certs:
+ client_certs = os.path.expanduser(ctx.options.client_certs)
+ if os.path.isfile(client_certs):
+ client_cert = client_certs
+ else:
+ server_name: str = server.sni or server.address[0]
+ p = os.path.join(client_certs, f"{server_name}.pem")
+ if os.path.isfile(p):
+ client_cert = p
+
+ ssl_ctx = net_tls.create_proxy_server_context(
+ method=net_tls.Method.DTLS_CLIENT_METHOD
+ if tls_start.is_dtls
+ else net_tls.Method.TLS_CLIENT_METHOD,
+ min_version=net_tls.Version[ctx.options.tls_version_server_min],
+ max_version=net_tls.Version[ctx.options.tls_version_server_max],
+ cipher_list=tuple(cipher_list),
+ ecdh_curve=net_tls.get_curve(ctx.options.tls_ecdh_curve_server),
+ verify=verify,
+ ca_path=ctx.options.ssl_verify_upstream_trusted_confdir,
+ ca_pemfile=ctx.options.ssl_verify_upstream_trusted_ca,
+ client_cert=client_cert,
+ legacy_server_connect=ctx.options.ssl_insecure,
+ )
+
+ tls_start.ssl_conn = SSL.Connection(ssl_ctx)
+ if server.sni:
+ # We need to set SNI + enable hostname verification.
+ assert isinstance(server.sni, str)
+ # Manually enable hostname verification on the context object.
+ # https://wiki.openssl.org/index.php/Hostname_validation
+ param = SSL._lib.SSL_get0_param(tls_start.ssl_conn._ssl) # type: ignore
+ # Matching on the CN is disabled in both Chrome and Firefox, so we disable it, too.
+ # https://www.chromestatus.com/feature/4981025180483584
+
+ SSL._lib.X509_VERIFY_PARAM_set_hostflags(param, DEFAULT_HOSTFLAGS) # type: ignore
+
+ try:
+ ip: bytes = ipaddress.ip_address(server.sni).packed
+ except ValueError:
+ host_name = server.sni.encode("idna")
+ tls_start.ssl_conn.set_tlsext_host_name(host_name)
+ ok = SSL._lib.X509_VERIFY_PARAM_set1_host( # type: ignore
+ param, host_name, len(host_name)
+ ) # type: ignore
+ SSL._openssl_assert(ok == 1) # type: ignore
+ else:
+ # RFC 6066: Literal IPv4 and IPv6 addresses are not permitted in "HostName",
+ # so we don't call set_tlsext_host_name.
+ ok = SSL._lib.X509_VERIFY_PARAM_set1_ip(param, ip, len(ip)) # type: ignore
+ SSL._openssl_assert(ok == 1) # type: ignore
+ elif verify is not net_tls.Verify.VERIFY_NONE:
+ raise ValueError("Cannot validate certificate hostname without SNI")
+
+ if server.alpn_offers:
+ tls_start.ssl_conn.set_alpn_protos(list(server.alpn_offers))
+
+ tls_start.ssl_conn.set_connect_state()
+
+ def quic_start_client(self, tls_start: quic.QuicTlsData) -> None:
+ """Establish QUIC between client and proxy."""
+ if tls_start.settings is not None:
+ return # a user addon has already provided the settings.
+ tls_start.settings = quic.QuicTlsSettings()
+
+ # keep the following part in sync with `tls_start_client`
+ assert isinstance(tls_start.conn, connection.Client)
+
+ client: connection.Client = tls_start.conn
+ server: connection.Server = tls_start.context.server
+
+ entry = self.get_cert(tls_start.context)
+
+ if not client.cipher_list and ctx.options.ciphers_client:
+ client.cipher_list = ctx.options.ciphers_client.split(":")
+
+ if ctx.options.add_upstream_certs_to_client_chain: # pragma: no cover
+ extra_chain_certs = server.certificate_list
+ else:
+ extra_chain_certs = []
+
+ # set context parameters
+ if client.cipher_list:
+ tls_start.settings.cipher_suites = [
+ CipherSuite[cipher] for cipher in client.cipher_list
+ ]
+ # if we don't have upstream ALPN, we allow all offered by the client
+ tls_start.settings.alpn_protocols = [
+ alpn.decode("ascii")
+ for alpn in [alpn for alpn in (client.alpn, server.alpn) if alpn]
+ or client.alpn_offers
+ ]
+
+ # set the certificates
+ tls_start.settings.certificate = entry.cert._cert
+ tls_start.settings.certificate_private_key = entry.privatekey
+ tls_start.settings.certificate_chain = [
+ cert._cert for cert in (*entry.chain_certs, *extra_chain_certs)
+ ]
+
+ def quic_start_server(self, tls_start: quic.QuicTlsData) -> None:
+ """Establish QUIC between proxy and server."""
+ if tls_start.settings is not None:
+ return # a user addon has already provided the settings.
+ tls_start.settings = quic.QuicTlsSettings()
+
+ # keep the following part in sync with `tls_start_server`
+ assert isinstance(tls_start.conn, connection.Server)
+
+ client: connection.Client = tls_start.context.client
+ server: connection.Server = tls_start.conn
+ assert server.address
+
+ if ctx.options.ssl_insecure:
+ tls_start.settings.verify_mode = ssl.CERT_NONE
+ else:
+ tls_start.settings.verify_mode = ssl.CERT_REQUIRED
+
+ if server.sni is None:
+ server.sni = client.sni or server.address[0]
+
+ if not server.alpn_offers:
+ if client.alpn_offers:
+ server.alpn_offers = tuple(client.alpn_offers)
+ else:
+ # aioquic fails if no ALPN is offered, so use H3
+ server.alpn_offers = tuple(alpn.encode("ascii") for alpn in H3_ALPN)
+
+ if not server.cipher_list and ctx.options.ciphers_server:
+ server.cipher_list = ctx.options.ciphers_server.split(":")
+
+ # set context parameters
+ if server.cipher_list:
+ tls_start.settings.cipher_suites = [
+ CipherSuite[cipher] for cipher in server.cipher_list
+ ]
+ if server.alpn_offers:
+ tls_start.settings.alpn_protocols = [
+ alpn.decode("ascii") for alpn in server.alpn_offers
+ ]
+
+ # set the certificates
+ # NOTE client certificates are not supported
+ tls_start.settings.ca_path = ctx.options.ssl_verify_upstream_trusted_confdir
+ tls_start.settings.ca_file = ctx.options.ssl_verify_upstream_trusted_ca
+
+ def running(self):
+ # FIXME: We have a weird bug where the contract for configure is not followed and it is never called with
+ # confdir or command_history as updated.
+ self.configure("confdir") # pragma: no cover
+
+ def configure(self, updated):
+ if (
+ "certs" in updated
+ or "confdir" in updated
+ or "key_size" in updated
+ or "cert_passphrase" in updated
+ ):
+ certstore_path = os.path.expanduser(ctx.options.confdir)
+ self.certstore = certs.CertStore.from_store(
+ path=certstore_path,
+ basename=CONF_BASENAME,
+ key_size=ctx.options.key_size,
+ passphrase=ctx.options.cert_passphrase.encode("utf8")
+ if ctx.options.cert_passphrase
+ else None,
+ )
+ if self.certstore.default_ca.has_expired():
+ logger.warning(
+ "The mitmproxy certificate authority has expired!\n"
+ "Please delete all CA-related files in your ~/.mitmproxy folder.\n"
+ "The CA will be regenerated automatically after restarting mitmproxy.\n"
+ "See https://docs.mitmproxy.org/stable/concepts-certificates/ for additional help.",
+ )
+
+ for certspec in ctx.options.certs:
+ parts = certspec.split("=", 1)
+ if len(parts) == 1:
+ parts = ["*", parts[0]]
+
+ cert = Path(parts[1]).expanduser()
+ if not cert.exists():
+ raise exceptions.OptionsError(
+ f"Certificate file does not exist: {cert}"
+ )
+ try:
+ self.certstore.add_cert_file(
+ parts[0],
+ cert,
+ passphrase=ctx.options.cert_passphrase.encode("utf8")
+ if ctx.options.cert_passphrase
+ else None,
+ )
+ except ValueError as e:
+ raise exceptions.OptionsError(
+ f"Invalid certificate format for {cert}: {e}"
+ ) from e
+
+ if "tls_ecdh_curve_client" in updated or "tls_ecdh_curve_server" in updated:
+ for ecdh_curve in [
+ ctx.options.tls_ecdh_curve_client,
+ ctx.options.tls_ecdh_curve_server,
+ ]:
+ if ecdh_curve is not None and ecdh_curve not in net_tls.EC_CURVES:
+ raise exceptions.OptionsError(
+ f"Invalid ECDH curve: {ecdh_curve!r}. Valid curves are: {', '.join(net_tls.EC_CURVES)}"
+ )
+
+ if "tls_version_client_min" in updated:
+ self._warn_unsupported_version("tls_version_client_min", True)
+ if "tls_version_client_max" in updated:
+ self._warn_unsupported_version("tls_version_client_max", False)
+ if "tls_version_server_min" in updated:
+ self._warn_unsupported_version("tls_version_server_min", True)
+ if "tls_version_server_max" in updated:
+ self._warn_unsupported_version("tls_version_server_max", False)
+ if "tls_version_client_min" in updated or "ciphers_client" in updated:
+ self._warn_seclevel_missing("client")
+ if "tls_version_server_min" in updated or "ciphers_server" in updated:
+ self._warn_seclevel_missing("server")
+
+ def _warn_unsupported_version(self, attribute: str, warn_unbound: bool):
+ val = net_tls.Version[getattr(ctx.options, attribute)]
+ supported_versions = [
+ v for v in net_tls.Version if net_tls.is_supported_version(v)
+ ]
+ supported_versions_str = ", ".join(v.name for v in supported_versions)
+
+ if val is net_tls.Version.UNBOUNDED:
+ if warn_unbound:
+ logger.info(
+ f"{attribute} has been set to {val.name}. Note that your "
+ f"OpenSSL build only supports the following TLS versions: {supported_versions_str}"
+ )
+ elif val not in supported_versions:
+ logger.warning(
+ f"{attribute} has been set to {val.name}, which is not supported by the current OpenSSL build. "
+ f"The current build only supports the following versions: {supported_versions_str}"
+ )
+
+ def _warn_seclevel_missing(self, side: Literal["client", "server"]) -> None:
+ """
+ OpenSSL cipher spec need to specify @SECLEVEL for old TLS versions to work,
+ see https://github.com/pyca/cryptography/issues/9523.
+ """
+ if side == "client":
+ custom_ciphers = ctx.options.ciphers_client
+ min_tls_version = ctx.options.tls_version_client_min
+ else:
+ custom_ciphers = ctx.options.ciphers_server
+ min_tls_version = ctx.options.tls_version_server_min
+
+ if (
+ custom_ciphers
+ and net_tls.Version[min_tls_version] in net_tls.INSECURE_TLS_MIN_VERSIONS
+ and "@SECLEVEL=0" not in custom_ciphers
+ ):
+ logger.warning(
+ f'With tls_version_{side}_min set to {min_tls_version}, ciphers_{side} must include "@SECLEVEL=0" '
+ f"for insecure TLS versions to work."
+ )
+
+ def crl_path(self) -> str:
+ return f"/mitmproxy-{self.certstore.default_ca.serial}.crl"
+
+ def get_cert(self, conn_context: context.Context) -> certs.CertStoreEntry:
+ """
+ This function determines the Common Name (CN), Subject Alternative Names (SANs) and Organization Name
+ our certificate should have and then fetches a matching cert from the certstore.
+ """
+ altnames: list[x509.GeneralName] = []
+ organization: str | None = None
+ crl_distribution_point: str | None = None
+
+ # Use upstream certificate if available.
+ if ctx.options.upstream_cert and conn_context.server.certificate_list:
+ upstream_cert: certs.Cert = conn_context.server.certificate_list[0]
+ if upstream_cert.cn:
+ altnames.append(_ip_or_dns_name(upstream_cert.cn))
+ altnames.extend(upstream_cert.altnames)
+ if upstream_cert.organization:
+ organization = upstream_cert.organization
+
+ # Replace original URL path with the CA cert serial number, which acts as a magic token
+ if crls := upstream_cert.crl_distribution_points:
+ try:
+ scheme, netloc, *_ = urllib.parse.urlsplit(crls[0])
+ except ValueError:
+ logger.info(f"Failed to parse CRL URL: {crls[0]!r}")
+ else:
+ # noinspection PyTypeChecker
+ crl_distribution_point = urllib.parse.urlunsplit(
+ (scheme, netloc, self.crl_path(), None, None)
+ )
+
+ # Add SNI or our local IP address.
+ if conn_context.client.sni:
+ altnames.append(_ip_or_dns_name(conn_context.client.sni))
+ else:
+ altnames.append(_ip_or_dns_name(conn_context.client.sockname[0]))
+
+ # If we already know of a server address, include that in the SANs as well.
+ if conn_context.server.address:
+ altnames.append(_ip_or_dns_name(conn_context.server.address[0]))
+
+ # only keep first occurrence of each hostname
+ altnames = list(dict.fromkeys(altnames))
+
+ # RFC 2818: If a subjectAltName extension of type dNSName is present, that MUST be used as the identity.
+ # In other words, the Common Name is irrelevant then.
+ cn = next((str(x.value) for x in altnames), None)
+ return self.certstore.get_cert(
+ cn, altnames, organization, crl_distribution_point
+ )
+
+ def request(self, flow: http.HTTPFlow):
+ if not flow.live or flow.error or flow.response:
+ return
+ # Check if a request has a magic CRL token at the end
+ if flow.request.path.endswith(self.crl_path()):
+ flow.response = http.Response.make(
+ 200,
+ self.certstore.default_crl,
+ {"Content-Type": "application/pkix-crl"},
+ )
+
+
+def _ip_or_dns_name(val: str) -> x509.GeneralName:
+ """Convert a string into either an x509.IPAddress or x509.DNSName object."""
+ try:
+ ip = ipaddress.ip_address(val)
+ except ValueError:
+ return x509.DNSName(val.encode("idna").decode())
+ else:
+ return x509.IPAddress(ip)
diff --git a/python/user_packages/Python313/site-packages/mitmproxy/addons/update_alt_svc.py b/python/user_packages/Python313/site-packages/mitmproxy/addons/update_alt_svc.py
new file mode 100644
index 0000000000000000000000000000000000000000..fa514e28b199570400b4ededf696482f0af1a251
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/mitmproxy/addons/update_alt_svc.py
@@ -0,0 +1,33 @@
+import re
+
+from mitmproxy import ctx
+from mitmproxy.http import HTTPFlow
+from mitmproxy.proxy import mode_specs
+
+ALT_SVC = "alt-svc"
+HOST_PATTERN = r"([a-zA-Z0-9.-]*:\d{1,5})"
+
+
+def update_alt_svc_header(header: str, port: int) -> str:
+ return re.sub(HOST_PATTERN, f":{port}", header)
+
+
+class UpdateAltSvc:
+ def load(self, loader):
+ loader.add_option(
+ "keep_alt_svc_header",
+ bool,
+ False,
+ "Reverse Proxy: Keep Alt-Svc headers as-is, even if they do not point to mitmproxy. Enabling this option may cause clients to bypass the proxy.",
+ )
+
+ def responseheaders(self, flow: HTTPFlow):
+ assert flow.response
+ if (
+ not ctx.options.keep_alt_svc_header
+ and isinstance(flow.client_conn.proxy_mode, mode_specs.ReverseMode)
+ and ALT_SVC in flow.response.headers
+ ):
+ _, listen_port, *_ = flow.client_conn.sockname
+ headers = flow.response.headers
+ headers[ALT_SVC] = update_alt_svc_header(headers[ALT_SVC], listen_port)
diff --git a/python/user_packages/Python313/site-packages/mitmproxy/addons/upstream_auth.py b/python/user_packages/Python313/site-packages/mitmproxy/addons/upstream_auth.py
new file mode 100644
index 0000000000000000000000000000000000000000..655ca7d7526d6d9ec4d1851893b530b9523e19d8
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/mitmproxy/addons/upstream_auth.py
@@ -0,0 +1,62 @@
+import base64
+import re
+from typing import Optional
+
+from mitmproxy import ctx
+from mitmproxy import exceptions
+from mitmproxy import http
+from mitmproxy.proxy import mode_specs
+from mitmproxy.utils import strutils
+
+
+def parse_upstream_auth(auth: str) -> bytes:
+ pattern = re.compile(".+:")
+ if pattern.search(auth) is None:
+ raise exceptions.OptionsError("Invalid upstream auth specification: %s" % auth)
+ return b"Basic" + b" " + base64.b64encode(strutils.always_bytes(auth))
+
+
+class UpstreamAuth:
+ """
+ This addon handles authentication to systems upstream from us for the
+ upstream proxy and reverse proxy mode. There are 3 cases:
+
+ - Upstream proxy CONNECT requests should have authentication added, and
+ subsequent already connected requests should not.
+ - Upstream proxy regular requests
+ - Reverse proxy regular requests (CONNECT is invalid in this mode)
+ """
+
+ auth: bytes | None = None
+
+ def load(self, loader):
+ loader.add_option(
+ "upstream_auth",
+ Optional[str],
+ None,
+ """
+ Add HTTP Basic authentication to upstream proxy and reverse proxy
+ requests. Format: username:password.
+ """,
+ )
+
+ def configure(self, updated):
+ if "upstream_auth" in updated:
+ if ctx.options.upstream_auth is None:
+ self.auth = None
+ else:
+ self.auth = parse_upstream_auth(ctx.options.upstream_auth)
+
+ def http_connect_upstream(self, f: http.HTTPFlow):
+ if self.auth:
+ f.request.headers["Proxy-Authorization"] = self.auth
+
+ def requestheaders(self, f: http.HTTPFlow):
+ if self.auth:
+ if (
+ isinstance(f.client_conn.proxy_mode, mode_specs.UpstreamMode)
+ and f.request.scheme == "http"
+ ):
+ f.request.headers["Proxy-Authorization"] = self.auth
+ elif isinstance(f.client_conn.proxy_mode, mode_specs.ReverseMode):
+ f.request.headers["Authorization"] = self.auth
diff --git a/python/user_packages/Python313/site-packages/mitmproxy/addons/view.py b/python/user_packages/Python313/site-packages/mitmproxy/addons/view.py
new file mode 100644
index 0000000000000000000000000000000000000000..b9c323d9b750606afb6cd22f392db49fc3cbc5ce
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/mitmproxy/addons/view.py
@@ -0,0 +1,749 @@
+"""
+The View:
+
+- Keeps track of a store of flows
+- Maintains a filtered, ordered view onto that list of flows
+- Exposes a number of signals so the view can be monitored
+- Tracks focus within the view
+- Exposes a settings store for flows that automatically expires if the flow is
+ removed from the store.
+"""
+
+import collections
+import logging
+import re
+from collections.abc import Iterator
+from collections.abc import MutableMapping
+from collections.abc import Sequence
+from typing import Any
+from typing import Optional
+
+import sortedcontainers
+
+import mitmproxy.flow
+from mitmproxy import command
+from mitmproxy import connection
+from mitmproxy import ctx
+from mitmproxy import dns
+from mitmproxy import exceptions
+from mitmproxy import flowfilter
+from mitmproxy import hooks
+from mitmproxy import http
+from mitmproxy import io
+from mitmproxy import tcp
+from mitmproxy import udp
+from mitmproxy.log import ALERT
+from mitmproxy.utils import human
+from mitmproxy.utils import signals
+
+# The underlying sorted list implementation expects the sort key to be stable
+# for the lifetime of the object. However, if we sort by size, for instance,
+# the sort order changes as the flow progresses through its lifecycle. We
+# address this through two means:
+#
+# - Let order keys cache the sort value by flow ID.
+#
+# - Add a facility to refresh items in the list by removing and re-adding them
+# when they are updated.
+
+
+class _OrderKey:
+ def __init__(self, view):
+ self.view = view
+
+ def generate(self, f: mitmproxy.flow.Flow) -> Any: # pragma: no cover
+ pass
+
+ def refresh(self, f):
+ k = self._key()
+ old = self.view.settings[f][k]
+ new = self.generate(f)
+ if old != new:
+ self.view._view.remove(f)
+ self.view.settings[f][k] = new
+ self.view._view.add(f)
+ self.view.sig_view_refresh.send()
+
+ def _key(self):
+ return "_order_%s" % id(self)
+
+ def __call__(self, f):
+ if f.id in self.view._store:
+ k = self._key()
+ s = self.view.settings[f]
+ if k in s:
+ return s[k]
+ val = self.generate(f)
+ s[k] = val
+ return val
+ else:
+ return self.generate(f)
+
+
+class OrderRequestStart(_OrderKey):
+ def generate(self, f: mitmproxy.flow.Flow) -> float:
+ return f.timestamp_created
+
+
+class OrderRequestMethod(_OrderKey):
+ def generate(self, f: mitmproxy.flow.Flow) -> str:
+ if isinstance(f, http.HTTPFlow):
+ return f.request.method
+ elif isinstance(f, (tcp.TCPFlow, udp.UDPFlow)):
+ return f.type.upper()
+ elif isinstance(f, dns.DNSFlow):
+ return dns.op_codes.to_str(f.request.op_code)
+ else:
+ raise NotImplementedError()
+
+
+class OrderRequestURL(_OrderKey):
+ def generate(self, f: mitmproxy.flow.Flow) -> str:
+ if isinstance(f, http.HTTPFlow):
+ return f.request.url
+ elif isinstance(f, (tcp.TCPFlow, udp.UDPFlow)):
+ return human.format_address(f.server_conn.address)
+ elif isinstance(f, dns.DNSFlow):
+ return f.request.questions[0].name if f.request.questions else ""
+ else:
+ raise NotImplementedError()
+
+
+class OrderKeySize(_OrderKey):
+ def generate(self, f: mitmproxy.flow.Flow) -> int:
+ if isinstance(f, http.HTTPFlow):
+ size = 0
+ if f.request.raw_content:
+ size += len(f.request.raw_content)
+ if f.response and f.response.raw_content:
+ size += len(f.response.raw_content)
+ return size
+ elif isinstance(f, (tcp.TCPFlow, udp.UDPFlow)):
+ size = 0
+ for message in f.messages:
+ size += len(message.content)
+ return size
+ elif isinstance(f, dns.DNSFlow):
+ return f.response.size if f.response else 0
+ else:
+ raise NotImplementedError()
+
+
+orders = [
+ ("t", "time"),
+ ("m", "method"),
+ ("u", "url"),
+ ("z", "size"),
+]
+
+
+def _signal_with_flow(flow: mitmproxy.flow.Flow) -> None: ...
+
+
+def _sig_view_remove(flow: mitmproxy.flow.Flow, index: int) -> None: ...
+
+
+class View(collections.abc.Sequence):
+ def __init__(self) -> None:
+ super().__init__()
+ self._store: collections.OrderedDict[str, mitmproxy.flow.Flow] = (
+ collections.OrderedDict()
+ )
+ self.filter = flowfilter.match_all
+ # Should we show only marked flows?
+ self.show_marked = False
+
+ self.default_order = OrderRequestStart(self)
+ self.orders = dict(
+ time=OrderRequestStart(self),
+ method=OrderRequestMethod(self),
+ url=OrderRequestURL(self),
+ size=OrderKeySize(self),
+ )
+ self.order_key: _OrderKey = self.default_order
+ self.order_reversed = False
+ self.focus_follow = False
+
+ self._view = sortedcontainers.SortedListWithKey(key=self.order_key)
+
+ # The sig_view* signals broadcast events that affect the view. That is,
+ # an update to a flow in the store but not in the view does not trigger
+ # a signal. All signals are called after the view has been updated.
+ self.sig_view_update = signals.SyncSignal(_signal_with_flow)
+ self.sig_view_add = signals.SyncSignal(_signal_with_flow)
+ self.sig_view_remove = signals.SyncSignal(_sig_view_remove)
+ # Signals that the view should be refreshed completely
+ self.sig_view_refresh = signals.SyncSignal(lambda: None)
+
+ # The sig_store* signals broadcast events that affect the underlying
+ # store. If a flow is removed from just the view, sig_view_remove is
+ # triggered. If it is removed from the store while it is also in the
+ # view, both sig_store_remove and sig_view_remove are triggered.
+ self.sig_store_remove = signals.SyncSignal(_signal_with_flow)
+ # Signals that the store should be refreshed completely
+ self.sig_store_refresh = signals.SyncSignal(lambda: None)
+
+ self.focus = Focus(self)
+ self.settings = Settings(self)
+
+ def load(self, loader):
+ loader.add_option(
+ "view_filter", Optional[str], None, "Limit the view to matching flows."
+ )
+ loader.add_option(
+ "view_order",
+ str,
+ "time",
+ "Flow sort order.",
+ choices=list(map(lambda c: c[1], orders)),
+ )
+ loader.add_option(
+ "view_order_reversed", bool, False, "Reverse the sorting order."
+ )
+ loader.add_option(
+ "console_focus_follow", bool, False, "Focus follows new flows."
+ )
+
+ def store_count(self):
+ return len(self._store)
+
+ def _rev(self, idx: int) -> int:
+ """
+ Reverses an index, if needed
+ """
+ if self.order_reversed:
+ if idx < 0:
+ idx = -idx - 1
+ else:
+ idx = len(self._view) - idx - 1
+ if idx < 0:
+ raise IndexError
+ return idx
+
+ def __len__(self):
+ return len(self._view)
+
+ def __getitem__(self, offset) -> Any:
+ return self._view[self._rev(offset)]
+
+ # Reflect some methods to the efficient underlying implementation
+
+ def _bisect(self, f: mitmproxy.flow.Flow) -> int:
+ v = self._view.bisect_right(f)
+ return self._rev(v - 1) + 1
+
+ def index(
+ self, f: mitmproxy.flow.Flow, start: int = 0, stop: int | None = None
+ ) -> int:
+ return self._rev(self._view.index(f, start, stop))
+
+ def __contains__(self, f: Any) -> bool:
+ return self._view.__contains__(f)
+
+ def _order_key_name(self):
+ return "_order_%s" % id(self.order_key)
+
+ def _base_add(self, f):
+ self.settings[f][self._order_key_name()] = self.order_key(f)
+ self._view.add(f)
+
+ def _refilter(self):
+ self._view.clear()
+ for i in self._store.values():
+ if self.show_marked and not i.marked:
+ continue
+ if self.filter(i):
+ self._base_add(i)
+ self.sig_view_refresh.send()
+
+ """ View API """
+
+ # Focus
+ @command.command("view.focus.go")
+ def go(self, offset: int) -> None:
+ """
+ Go to a specified offset. Positive offests are from the beginning of
+ the view, negative from the end of the view, so that 0 is the first
+ flow, -1 is the last flow.
+ """
+ if len(self) == 0:
+ return
+ if offset < 0:
+ offset = len(self) + offset
+ if offset < 0:
+ offset = 0
+ if offset > len(self) - 1:
+ offset = len(self) - 1
+ self.focus.flow = self[offset]
+
+ @command.command("view.focus.next")
+ def focus_next(self) -> None:
+ """
+ Set focus to the next flow.
+ """
+ if self.focus.index is not None:
+ idx = self.focus.index + 1
+ if self.inbounds(idx):
+ self.focus.flow = self[idx]
+ else:
+ pass
+
+ @command.command("view.focus.prev")
+ def focus_prev(self) -> None:
+ """
+ Set focus to the previous flow.
+ """
+ if self.focus.index is not None:
+ idx = self.focus.index - 1
+ if self.inbounds(idx):
+ self.focus.flow = self[idx]
+ else:
+ pass
+
+ # Order
+ @command.command("view.order.options")
+ def order_options(self) -> Sequence[str]:
+ """
+ Choices supported by the view_order option.
+ """
+ return list(sorted(self.orders.keys()))
+
+ @command.command("view.order.reverse")
+ def set_reversed(self, boolean: bool) -> None:
+ self.order_reversed = boolean
+ self.sig_view_refresh.send()
+
+ @command.command("view.order.set")
+ def set_order(self, order_key: str) -> None:
+ """
+ Sets the current view order.
+ """
+ if order_key not in self.orders:
+ raise exceptions.CommandError("Unknown flow order: %s" % order_key)
+ key = self.orders[order_key]
+ self.order_key = key
+ newview = sortedcontainers.SortedListWithKey(key=key)
+ newview.update(self._view)
+ self._view = newview
+
+ @command.command("view.order")
+ def get_order(self) -> str:
+ """
+ Returns the current view order.
+ """
+ order = ""
+ for k in self.orders.keys():
+ if self.order_key == self.orders[k]:
+ order = k
+ return order
+
+ # Filter
+ @command.command("view.filter.set")
+ def set_filter_cmd(self, filter_expr: str) -> None:
+ """
+ Sets the current view filter.
+ """
+ filt = None
+ if filter_expr:
+ try:
+ filt = flowfilter.parse(filter_expr)
+ except ValueError as e:
+ raise exceptions.CommandError(str(e)) from e
+ self.set_filter(filt)
+
+ def set_filter(self, flt: flowfilter.TFilter | None):
+ self.filter = flt or flowfilter.match_all
+ self._refilter()
+
+ # View Updates
+ @command.command("view.clear")
+ def clear(self) -> None:
+ """
+ Clears both the store and view.
+ """
+ self._store.clear()
+ self._view.clear()
+ self.sig_view_refresh.send()
+ self.sig_store_refresh.send()
+
+ @command.command("view.clear_unmarked")
+ def clear_not_marked(self) -> None:
+ """
+ Clears only the unmarked flows.
+ """
+ for flow in self._store.copy().values():
+ if not flow.marked:
+ self._store.pop(flow.id)
+
+ self._refilter()
+ self.sig_store_refresh.send()
+
+ # View Settings
+ @command.command("view.settings.getval")
+ def getvalue(self, flow: mitmproxy.flow.Flow, key: str, default: str) -> str:
+ """
+ Get a value from the settings store for the specified flow.
+ """
+ return self.settings[flow].get(key, default)
+
+ @command.command("view.settings.setval.toggle")
+ def setvalue_toggle(self, flows: Sequence[mitmproxy.flow.Flow], key: str) -> None:
+ """
+ Toggle a boolean value in the settings store, setting the value to
+ the string "true" or "false".
+ """
+ updated = []
+ for f in flows:
+ current = self.settings[f].get(key, "false")
+ self.settings[f][key] = "false" if current == "true" else "true"
+ updated.append(f)
+ ctx.master.addons.trigger(hooks.UpdateHook(updated))
+
+ @command.command("view.settings.setval")
+ def setvalue(
+ self, flows: Sequence[mitmproxy.flow.Flow], key: str, value: str
+ ) -> None:
+ """
+ Set a value in the settings store for the specified flows.
+ """
+ updated = []
+ for f in flows:
+ self.settings[f][key] = value
+ updated.append(f)
+ ctx.master.addons.trigger(hooks.UpdateHook(updated))
+
+ # Flows
+ @command.command("view.flows.duplicate")
+ def duplicate(self, flows: Sequence[mitmproxy.flow.Flow]) -> None:
+ """
+ Duplicates the specified flows, and sets the focus to the first
+ duplicate.
+ """
+ dups = [f.copy() for f in flows]
+ if dups:
+ self.add(dups)
+ self.focus.flow = dups[0]
+ logging.log(ALERT, "Duplicated %s flows" % len(dups))
+
+ @command.command("view.flows.remove")
+ def remove(self, flows: Sequence[mitmproxy.flow.Flow]) -> None:
+ """
+ Removes the flow from the underlying store and the view.
+ """
+ for f in flows:
+ if f.id in self._store:
+ if f.killable:
+ f.kill()
+ if f in self._view:
+ # We manually pass the index here because multiple flows may have the same
+ # sorting key, and we cannot reconstruct the index from that.
+ idx = self._view.index(f)
+ self._view.remove(f)
+ self.sig_view_remove.send(flow=f, index=idx)
+ del self._store[f.id]
+ self.sig_store_remove.send(flow=f)
+ if len(flows) > 1:
+ logging.log(ALERT, "Removed %s flows" % len(flows))
+
+ @command.command("view.flows.resolve")
+ def resolve(self, flow_spec: str) -> Sequence[mitmproxy.flow.Flow]:
+ """
+ Resolve a flow list specification to an actual list of flows.
+ """
+ if flow_spec == "@all":
+ return [i for i in self._store.values()]
+ if flow_spec == "@focus":
+ return [self.focus.flow] if self.focus.flow else []
+ elif flow_spec == "@shown":
+ return [i for i in self]
+ elif flow_spec == "@hidden":
+ return [i for i in self._store.values() if i not in self._view]
+ elif flow_spec == "@marked":
+ return [i for i in self._store.values() if i.marked]
+ elif flow_spec == "@unmarked":
+ return [i for i in self._store.values() if not i.marked]
+ elif re.match(r"@[0-9a-f\-,]{36,}", flow_spec):
+ ids = flow_spec[1:].split(",")
+ return [i for i in self._store.values() if i.id in ids]
+ else:
+ try:
+ filt = flowfilter.parse(flow_spec)
+ except ValueError as e:
+ raise exceptions.CommandError(str(e)) from e
+ return [i for i in self._store.values() if filt(i)]
+
+ @command.command("view.flows.create")
+ def create(self, method: str, url: str) -> None:
+ try:
+ req = http.Request.make(method.upper(), url)
+ except ValueError as e:
+ raise exceptions.CommandError("Invalid URL: %s" % e)
+
+ c = connection.Client(
+ peername=("", 0),
+ sockname=("", 0),
+ timestamp_start=req.timestamp_start - 0.0001,
+ )
+ s = connection.Server(address=(req.host, req.port))
+
+ f = http.HTTPFlow(c, s)
+ f.request = req
+ f.request.headers["Host"] = req.host
+ self.add([f])
+
+ @command.command("view.flows.load")
+ def load_file(self, path: mitmproxy.types.Path) -> None:
+ """
+ Load flows into the view, without processing them with addons.
+ """
+ try:
+ with open(path, "rb") as f:
+ for i in io.FlowReader(f).stream():
+ # Do this to get a new ID, so we can load the same file N times and
+ # get new flows each time. It would be more efficient to just have a
+ # .newid() method or something.
+ self.add([i.copy()])
+ except OSError as e:
+ logging.error(e.strerror)
+ except exceptions.FlowReadException as e:
+ logging.error(str(e))
+
+ def add(self, flows: Sequence[mitmproxy.flow.Flow]) -> None:
+ """
+ Adds a flow to the state. If the flow already exists, it is
+ ignored.
+ """
+ for f in flows:
+ if f.id not in self._store:
+ self._store[f.id] = f
+ if self.filter(f):
+ self._base_add(f)
+ if self.focus_follow:
+ self.focus.flow = f
+ self.sig_view_add.send(flow=f)
+
+ def get_by_id(self, flow_id: str) -> mitmproxy.flow.Flow | None:
+ """
+ Get flow with the given id from the store.
+ Returns None if the flow is not found.
+ """
+ return self._store.get(flow_id)
+
+ # View Properties
+ @command.command("view.properties.length")
+ def get_length(self) -> int:
+ """
+ Returns view length.
+ """
+ return len(self)
+
+ @command.command("view.properties.marked")
+ def get_marked(self) -> bool:
+ """
+ Returns true if view is in marked mode.
+ """
+ return self.show_marked
+
+ @command.command("view.properties.marked.toggle")
+ def toggle_marked(self) -> None:
+ """
+ Toggle whether to show marked views only.
+ """
+ self.show_marked = not self.show_marked
+ self._refilter()
+
+ @command.command("view.properties.inbounds")
+ def inbounds(self, index: int) -> bool:
+ """
+ Is this 0 <= index < len(self)?
+ """
+ return 0 <= index < len(self)
+
+ # Event handlers
+ def configure(self, updated):
+ if "view_filter" in updated:
+ filt = None
+ if ctx.options.view_filter:
+ try:
+ filt = flowfilter.parse(ctx.options.view_filter)
+ except ValueError as e:
+ raise exceptions.OptionsError(str(e)) from e
+ self.set_filter(filt)
+ if "view_order" in updated:
+ if ctx.options.view_order not in self.orders:
+ raise exceptions.OptionsError(
+ "Unknown flow order: %s" % ctx.options.view_order
+ )
+ self.set_order(ctx.options.view_order)
+ if "view_order_reversed" in updated:
+ self.set_reversed(ctx.options.view_order_reversed)
+ if "console_focus_follow" in updated:
+ self.focus_follow = ctx.options.console_focus_follow
+
+ def requestheaders(self, f):
+ self.add([f])
+
+ def error(self, f):
+ self.update([f])
+
+ def response(self, f):
+ self.update([f])
+
+ def intercept(self, f):
+ self.update([f])
+
+ def resume(self, f):
+ self.update([f])
+
+ def kill(self, f):
+ self.update([f])
+
+ def tcp_start(self, f):
+ self.add([f])
+
+ def tcp_message(self, f):
+ self.update([f])
+
+ def tcp_error(self, f):
+ self.update([f])
+
+ def tcp_end(self, f):
+ self.update([f])
+
+ def udp_start(self, f):
+ self.add([f])
+
+ def udp_message(self, f):
+ self.update([f])
+
+ def udp_error(self, f):
+ self.update([f])
+
+ def udp_end(self, f):
+ self.update([f])
+
+ def dns_request(self, f):
+ self.add([f])
+
+ def dns_response(self, f):
+ self.update([f])
+
+ def dns_error(self, f):
+ self.update([f])
+
+ def update(self, flows: Sequence[mitmproxy.flow.Flow]) -> None:
+ """
+ Updates a list of flows. If flow is not in the state, it's ignored.
+ """
+ for f in flows:
+ if f.id in self._store:
+ if self.filter(f):
+ if f not in self._view:
+ self._base_add(f)
+ if self.focus_follow:
+ self.focus.flow = f
+ self.sig_view_add.send(flow=f)
+ else:
+ # This is a tad complicated. The sortedcontainers
+ # implementation assumes that the order key is stable. If
+ # it changes mid-way Very Bad Things happen. We detect when
+ # this happens, and re-fresh the item.
+ self.order_key.refresh(f)
+ self.sig_view_update.send(flow=f)
+ else:
+ try:
+ idx = self._view.index(f)
+ except ValueError:
+ pass # The value was not in the view
+ else:
+ self._view.remove(f)
+ self.sig_view_remove.send(flow=f, index=idx)
+
+
+class Focus:
+ """
+ Tracks a focus element within a View.
+ """
+
+ def __init__(self, v: View) -> None:
+ self.view = v
+ self._flow: mitmproxy.flow.Flow | None = None
+ self.sig_change = signals.SyncSignal(lambda: None)
+ if len(self.view):
+ self.flow = self.view[0]
+ v.sig_view_add.connect(self._sig_view_add)
+ v.sig_view_remove.connect(self._sig_view_remove)
+ v.sig_view_refresh.connect(self._sig_view_refresh)
+
+ @property
+ def flow(self) -> mitmproxy.flow.Flow | None:
+ return self._flow
+
+ @flow.setter
+ def flow(self, f: mitmproxy.flow.Flow | None):
+ if f is not None and f not in self.view:
+ raise ValueError("Attempt to set focus to flow not in view")
+ self._flow = f
+ self.sig_change.send()
+
+ @property
+ def index(self) -> int | None:
+ if self.flow:
+ return self.view.index(self.flow)
+ return None
+
+ @index.setter
+ def index(self, idx):
+ if idx < 0 or idx > len(self.view) - 1:
+ raise ValueError("Index out of view bounds")
+ self.flow = self.view[idx]
+
+ def _nearest(self, f, v):
+ return min(v._bisect(f), len(v) - 1)
+
+ def _sig_view_remove(self, flow, index):
+ if len(self.view) == 0:
+ self.flow = None
+ elif flow is self.flow:
+ self.index = min(index, len(self.view) - 1)
+
+ def _sig_view_refresh(self):
+ if len(self.view) == 0:
+ self.flow = None
+ elif self.flow is None:
+ self.flow = self.view[0]
+ elif self.flow not in self.view:
+ self.flow = self.view[self._nearest(self.flow, self.view)]
+
+ def _sig_view_add(self, flow):
+ # We only have to act if we don't have a focus element
+ if not self.flow:
+ self.flow = flow
+
+
+class Settings(collections.abc.Mapping):
+ def __init__(self, view: View) -> None:
+ self.view = view
+ self._values: MutableMapping[str, dict] = {}
+ view.sig_store_remove.connect(self._sig_store_remove)
+ view.sig_store_refresh.connect(self._sig_store_refresh)
+
+ def __iter__(self) -> Iterator:
+ return iter(self._values)
+
+ def __len__(self) -> int:
+ return len(self._values)
+
+ def __getitem__(self, f: mitmproxy.flow.Flow) -> dict:
+ if f.id not in self.view._store:
+ raise KeyError
+ return self._values.setdefault(f.id, {})
+
+ def _sig_store_remove(self, flow):
+ if flow.id in self._values:
+ del self._values[flow.id]
+
+ def _sig_store_refresh(self):
+ for fid in list(self._values.keys()):
+ if fid not in self.view._store:
+ del self._values[fid]
diff --git a/python/user_packages/Python313/site-packages/mitmproxy/contentviews/_api.py b/python/user_packages/Python313/site-packages/mitmproxy/contentviews/_api.py
new file mode 100644
index 0000000000000000000000000000000000000000..f2a91683e698bf020359d0a3b0a4eb9fee49ef84
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/mitmproxy/contentviews/_api.py
@@ -0,0 +1,116 @@
+from __future__ import annotations
+
+import logging
+import typing
+from abc import abstractmethod
+from dataclasses import dataclass
+from pathlib import Path
+from typing import Literal
+
+from mitmproxy import http
+from mitmproxy import tcp
+from mitmproxy import udp
+from mitmproxy.dns import DNSMessage
+from mitmproxy.flow import Flow
+from mitmproxy.websocket import WebSocketMessage
+
+logger = logging.getLogger(__name__)
+
+
+type SyntaxHighlight = Literal["css", "javascript", "xml", "yaml", "none", "error"]
+
+
+@typing.runtime_checkable
+class Contentview(typing.Protocol):
+ """
+ Base class for all contentviews.
+ """
+
+ @property
+ def name(self) -> str:
+ """
+ The name of this contentview, e.g. "XML/HTML".
+ Inferred from the class name by default.
+ """
+ return type(self).__name__.removesuffix("Contentview")
+
+ @property
+ def syntax_highlight(self) -> SyntaxHighlight:
+ """Optional syntax highlighting that should be applied to the prettified output."""
+ return "none"
+
+ @abstractmethod
+ def prettify(
+ self,
+ data: bytes,
+ metadata: Metadata,
+ ) -> str:
+ """
+ Transform raw data into human-readable output.
+ May raise an exception (e.g. `ValueError`) if data cannot be prettified.
+ """
+
+ def render_priority(
+ self,
+ data: bytes,
+ metadata: Metadata,
+ ) -> float:
+ """
+ Return the priority of this view for rendering `data`.
+ If no particular view is chosen by the user, the view with the highest priority is selected.
+ If this view does not support the given data, return a float < 0.
+ """
+ return 0
+
+ def __lt__(self, other):
+ return self.name.__lt__(other.name)
+
+
+@typing.runtime_checkable
+class InteractiveContentview(Contentview, typing.Protocol):
+ """A contentview that prettifies raw data and allows for interactive editing."""
+
+ @abstractmethod
+ def reencode(
+ self,
+ prettified: str,
+ metadata: Metadata,
+ ) -> bytes:
+ """
+ Reencode the given (modified) `prettified` output into the original data format.
+ May raise an exception (e.g. `ValueError`) if reencoding failed.
+ """
+
+
+@dataclass
+class Metadata:
+ """
+ Metadata about the data that is being prettified.
+
+ Do not rely on any given attribute to be present.
+ """
+
+ flow: Flow | None = None
+ """The flow that the data belongs to, if any."""
+
+ content_type: str | None = None
+ """The HTTP content type of the data, if any."""
+ http_message: http.Message | None = None
+ """The HTTP message that the data belongs to, if any."""
+ tcp_message: tcp.TCPMessage | None = None
+ """The TCP message that the data belongs to, if any."""
+ udp_message: udp.UDPMessage | None = None
+ """The UDP message that the data belongs to, if any."""
+ websocket_message: WebSocketMessage | None = None
+ """The websocket message that the data belongs to, if any."""
+ dns_message: DNSMessage | None = None
+ """The DNS message that the data belongs to, if any."""
+
+ protobuf_definitions: Path | None = None
+ """Path to a .proto file that's used to resolve Protobuf field names."""
+
+ original_data: bytes | None = None
+ """When reencoding: The original data that was prettified."""
+
+
+Metadata.__init__.__doc__ = "@private"
diff --git a/python/user_packages/Python313/site-packages/mitmproxy/contentviews/_compat.py b/python/user_packages/Python313/site-packages/mitmproxy/contentviews/_compat.py
new file mode 100644
index 0000000000000000000000000000000000000000..929b2035d15e27cd1e7e662e731813952e4c5960
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/mitmproxy/contentviews/_compat.py
@@ -0,0 +1,74 @@
+from __future__ import annotations
+
+import sys
+import typing
+from typing import Iterator
+
+from mitmproxy import contentviews
+from mitmproxy.contentviews import SyntaxHighlight
+from mitmproxy.contentviews._api import Contentview
+from mitmproxy.contentviews._api import Metadata
+from mitmproxy.utils.strutils import always_str
+
+if sys.version_info < (3, 13): # pragma: no cover
+ from typing_extensions import deprecated
+else:
+ from warnings import deprecated
+
+if typing.TYPE_CHECKING:
+ from mitmproxy.contentviews.base import TViewLine
+ from mitmproxy.contentviews.base import View
+
+
+class LegacyContentview(Contentview):
+ @property
+ def name(self) -> str:
+ return self.contentview.name
+
+ @property
+ def syntax_highlight(self) -> SyntaxHighlight:
+ return getattr(self.contentview, "syntax_highlight", "none")
+
+ def render_priority(
+ self,
+ data: bytes,
+ metadata: Metadata,
+ ) -> float:
+ return (
+ self.contentview.render_priority(
+ data=data,
+ content_type=metadata.content_type,
+ flow=metadata.flow,
+ http_message=metadata.http_message,
+ )
+ or 0.0
+ )
+
+ def prettify(self, data: bytes, metadata: Metadata) -> str:
+ lines: Iterator[TViewLine]
+ desc_, lines = self.contentview(
+ data,
+ content_type=metadata.content_type,
+ flow=metadata.flow,
+ http_message=metadata.http_message,
+ )
+ return "\n".join(
+ "".join(always_str(text, "utf8", "backslashescape") for tag, text in line)
+ for line in lines
+ )
+
+ def __init__(self, contentview: View):
+ self.contentview = contentview
+
+
+@deprecated("Use `mitmproxy.contentviews.registry` instead.")
+def get(name: str) -> Contentview | None:
+ try:
+ return contentviews.registry[name.lower()]
+ except KeyError:
+ return None
+
+
+@deprecated("Use `mitmproxy.contentviews.Contentview` instead.")
+def remove(view: View):
+ pass
diff --git a/python/user_packages/Python313/site-packages/mitmproxy/contentviews/_registry.py b/python/user_packages/Python313/site-packages/mitmproxy/contentviews/_registry.py
new file mode 100644
index 0000000000000000000000000000000000000000..69b475be02c518619927bc024759b21994778a9c
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/mitmproxy/contentviews/_registry.py
@@ -0,0 +1,73 @@
+from __future__ import annotations
+
+import logging
+import typing
+from collections.abc import Mapping
+
+from ..utils import signals
+from ._api import Contentview
+from ._api import Metadata
+
+logger = logging.getLogger(__name__)
+
+
+def _on_change(view: Contentview) -> None: ...
+
+
+class ContentviewRegistry(Mapping[str, Contentview]):
+ def __init__(self):
+ self._by_name: dict[str, Contentview] = {}
+ self.on_change = signals.SyncSignal(_on_change)
+
+ def register(self, instance: Contentview | type[Contentview]) -> None:
+ if isinstance(instance, type):
+ instance = instance()
+ name = instance.name.lower()
+ if name in self._by_name:
+ logger.info(f"Replacing existing {name} contentview.")
+ self._by_name[name] = instance
+ self.on_change.send(instance)
+
+ def available_views(self) -> list[str]:
+ return ["auto", *sorted(self._by_name.keys())]
+
+ def get_view(
+ self, data: bytes, metadata: Metadata, view_name: str = "auto"
+ ) -> Contentview:
+ """
+ Get the best contentview for the given data and metadata.
+
+ If `view_name` is "auto" or the provided view not found,
+ the best matching contentview based on `render_priority` will be returned.
+ """
+ if view_name != "auto":
+ try:
+ return self[view_name.lower()]
+ except KeyError:
+ logger.warning(
+ f"Unknown contentview {view_name!r}, selecting best match instead."
+ )
+
+ max_prio: tuple[float, Contentview] | None = None
+ for name, view in self._by_name.items():
+ try:
+ priority = view.render_priority(data, metadata)
+ assert isinstance(priority, (int, float)), (
+ f"render_priority for {view.name} did not return a number."
+ )
+ except Exception:
+ logger.exception(f"Error in {view.name}.render_priority")
+ else:
+ if max_prio is None or max_prio[0] < priority:
+ max_prio = (priority, view)
+ assert max_prio, "At least one view needs to have a working `render_priority`."
+ return max_prio[1]
+
+ def __iter__(self) -> typing.Iterator[str]:
+ return iter(self._by_name)
+
+ def __getitem__(self, item: str) -> Contentview:
+ return self._by_name[item.lower()]
+
+ def __len__(self):
+ return len(self._by_name)
diff --git a/python/user_packages/Python313/site-packages/mitmproxy/contentviews/_utils.py b/python/user_packages/Python313/site-packages/mitmproxy/contentviews/_utils.py
new file mode 100644
index 0000000000000000000000000000000000000000..c4dcb5491e163190a43aafd59b5db0d10890e3d0
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/mitmproxy/contentviews/_utils.py
@@ -0,0 +1,106 @@
+import io
+import typing
+from collections.abc import Iterable
+from pathlib import Path
+from typing import Any
+
+from ruamel.yaml import YAML
+
+from .. import ctx
+from .. import http
+from ..dns import DNSMessage
+from ..flow import Flow
+from ..tcp import TCPMessage
+from ..udp import UDPMessage
+from ..utils import strutils
+from ..websocket import WebSocketMessage
+from ._api import Metadata
+
+type ContentviewMessage = (
+ http.Message | TCPMessage | UDPMessage | WebSocketMessage | DNSMessage
+)
+
+
+def make_metadata(
+ message: ContentviewMessage,
+ flow: Flow,
+) -> Metadata:
+ metadata = Metadata(
+ flow=flow,
+ protobuf_definitions=Path(ctx.options.protobuf_definitions).expanduser()
+ if ctx.options.protobuf_definitions
+ else None,
+ )
+
+ match message:
+ case http.Message():
+ metadata.http_message = message
+ if ctype := message.headers.get("content-type"):
+ if ct := http.parse_content_type(ctype):
+ metadata.content_type = f"{ct[0]}/{ct[1]}"
+ case TCPMessage():
+ metadata.tcp_message = message
+ case UDPMessage():
+ metadata.udp_message = message
+ case WebSocketMessage():
+ metadata.websocket_message = message
+ case DNSMessage():
+ metadata.dns_message = message
+ case other: # pragma: no cover
+ typing.assert_never(other)
+
+ return metadata
+
+
+def get_data(
+ message: ContentviewMessage,
+) -> tuple[bytes | None, str]:
+ content: bytes | None
+ try:
+ content = message.content
+ except ValueError:
+ assert isinstance(message, http.Message)
+ content = message.raw_content
+ enc = "[cannot decode]"
+ else:
+ if isinstance(message, http.Message) and content != message.raw_content:
+ enc = "[decoded {}]".format(message.headers.get("content-encoding"))
+ else:
+ enc = ""
+
+ return content, enc
+
+
+def yaml_dumps(d: Any) -> str:
+ if not d:
+ return ""
+ out = io.StringIO()
+ YAML(typ="rt", pure=True).dump(d, out)
+ return out.getvalue()
+
+
+def yaml_loads(yaml: str) -> Any:
+ return YAML(typ="safe", pure=True).load(yaml)
+
+
+def merge_repeated_keys(items: Iterable[tuple[str, str]]) -> dict[str, str | list[str]]:
+ """
+ Helper function that takes a list of pairs and merges repeated keys.
+ """
+ ret: dict[str, str | list[str]] = {}
+ for key, value in items:
+ if existing := ret.get(key):
+ if isinstance(existing, list):
+ existing.append(value)
+ else:
+ ret[key] = [existing, value]
+ else:
+ ret[key] = value
+ return ret
+
+
+def byte_pairs_to_str_pairs(
+ items: Iterable[tuple[bytes, bytes]],
+) -> Iterable[tuple[str, str]]:
+ for key, value in items:
+ yield (strutils.bytes_to_escaped_str(key), strutils.bytes_to_escaped_str(value))
diff --git a/python/user_packages/Python313/site-packages/mitmproxy/contentviews/_view_css.py b/python/user_packages/Python313/site-packages/mitmproxy/contentviews/_view_css.py
new file mode 100644
index 0000000000000000000000000000000000000000..08ef731e5384ff2988c96488ed710a5d79ed31c9
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/mitmproxy/contentviews/_view_css.py
@@ -0,0 +1,76 @@
+import re
+import time
+
+from mitmproxy.contentviews._api import Contentview
+from mitmproxy.contentviews._api import Metadata
+from mitmproxy.utils import strutils
+
+"""
+A custom CSS prettifier. Compared to other prettifiers, its main features are:
+
+- Implemented in pure Python.
+- Modifies whitespace only.
+- Works with any input.
+- Considerably faster than e.g. cssutils.
+"""
+
+CSS_SPECIAL_AREAS = (
+ "'" + strutils.SINGLELINE_CONTENT + strutils.NO_ESCAPE + "'",
+ '"' + strutils.SINGLELINE_CONTENT + strutils.NO_ESCAPE + '"',
+ r"/\*" + strutils.MULTILINE_CONTENT + r"\*/",
+ "//" + strutils.SINGLELINE_CONTENT + "$",
+)
+CSS_SPECIAL_CHARS = "{};:"
+
+
+def beautify(data: str, indent: str = " "):
+ """Beautify a string containing CSS code"""
+ data = strutils.escape_special_areas(
+ data.strip(),
+ CSS_SPECIAL_AREAS,
+ CSS_SPECIAL_CHARS,
+ )
+
+ # Add newlines
+ data = re.sub(r"\s*;\s*", ";\n", data)
+ data = re.sub(r"\s*{\s*", " {\n", data)
+ data = re.sub(r"\s*}\s*", "\n}\n\n", data)
+
+ # Fix incorrect ":" placement
+ data = re.sub(r"\s*:\s*(?=[^{]+})", ": ", data)
+ # Fix no space after ","
+ data = re.sub(r"\s*,\s*", ", ", data)
+
+ # indent
+ data = re.sub("\n[ \t]+", "\n", data)
+ data = re.sub("\n(?![}\n])(?=[^{]*})", "\n" + indent, data)
+
+ data = strutils.unescape_special_areas(data)
+ return data.rstrip("\n") + "\n"
+
+
+class ViewCSS(Contentview):
+ syntax_highlight = "css"
+
+ def prettify(self, data: bytes, metadata: Metadata) -> str:
+ data_str = data.decode("utf8", "surrogateescape")
+ return beautify(data_str)
+
+ def render_priority(
+ self,
+ data: bytes,
+ metadata: Metadata,
+ ) -> float:
+ return float(bool(data) and metadata.content_type == "text/css")
+
+
+css = ViewCSS()
+
+
+if __name__ == "__main__": # pragma: no cover
+ with open("../tools/web/static/vendor.css") as f:
+ data = f.read()
+
+ t = time.time()
+ x = beautify(data)
+ print(f"Beautifying vendor.css took {time.time() - t:.2}s")
diff --git a/python/user_packages/Python313/site-packages/mitmproxy/contentviews/_view_dns.py b/python/user_packages/Python313/site-packages/mitmproxy/contentviews/_view_dns.py
new file mode 100644
index 0000000000000000000000000000000000000000..4672da015880c6d9ee43e593289be6b096ba068f
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/mitmproxy/contentviews/_view_dns.py
@@ -0,0 +1,53 @@
+from mitmproxy.contentviews._api import InteractiveContentview
+from mitmproxy.contentviews._api import Metadata
+from mitmproxy.contentviews._utils import yaml_dumps
+from mitmproxy.contentviews._utils import yaml_loads
+from mitmproxy.dns import DNSMessage as DNSMessage
+from mitmproxy.proxy.layers.dns import pack_message
+
+
+def _is_dns_tcp(metadata: Metadata) -> bool:
+ return bool(metadata.tcp_message or metadata.http_message)
+
+
+class DNSContentview(InteractiveContentview):
+ syntax_highlight = "yaml"
+
+ def prettify(
+ self,
+ data: bytes,
+ metadata: Metadata,
+ ) -> str:
+ if _is_dns_tcp(metadata):
+ data = data[2:] # hack: cut off length label and hope for the best
+ message = DNSMessage.unpack(data).to_json()
+ del message["status_code"]
+ message.pop("timestamp", None)
+ return yaml_dumps(message)
+
+ def reencode(
+ self,
+ prettified: str,
+ metadata: Metadata,
+ ) -> bytes:
+ data = yaml_loads(prettified)
+ message = DNSMessage.from_json(data)
+ return pack_message(message, "tcp" if _is_dns_tcp(metadata) else "udp")
+
+ def render_priority(
+ self,
+ data: bytes,
+ metadata: Metadata,
+ ) -> float:
+ return float(
+ metadata.content_type == "application/dns-message"
+ or bool(
+ metadata.flow
+ and metadata.flow.server_conn
+ and metadata.flow.server_conn.address
+ and metadata.flow.server_conn.address[1] in (53, 5353)
+ )
+ )
+
+
+dns = DNSContentview()
diff --git a/python/user_packages/Python313/site-packages/mitmproxy/contentviews/_view_graphql.py b/python/user_packages/Python313/site-packages/mitmproxy/contentviews/_view_graphql.py
new file mode 100644
index 0000000000000000000000000000000000000000..3551ec23a395609bad1892c264bf12f5ddeb8e26
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/mitmproxy/contentviews/_view_graphql.py
@@ -0,0 +1,72 @@
+import json
+from typing import Any
+
+from mitmproxy.contentviews._api import Contentview
+from mitmproxy.contentviews._api import Metadata
+
+
+def format_graphql(data):
+ query = data["query"]
+ header_data = data.copy()
+ header_data["query"] = "..."
+ return """{header}
+---
+{query}
+""".format(header=json.dumps(header_data, indent=2), query=query)
+
+
+def format_query_list(data: list[Any]):
+ num_queries = len(data) - 1
+ result = ""
+ for i, op in enumerate(data):
+ result += f"--- {i}/{num_queries}\n"
+ result += format_graphql(op)
+ return result
+
+
+def is_graphql_query(data):
+ return isinstance(data, dict) and "query" in data and "\n" in data["query"]
+
+
+def is_graphql_batch_query(data):
+ return (
+ isinstance(data, list)
+ and len(data) > 0
+ and isinstance(data[0], dict)
+ and "query" in data[0]
+ )
+
+
+class GraphQLContentview(Contentview):
+ def prettify(
+ self,
+ data: bytes,
+ metadata: Metadata,
+ ) -> str:
+ gql = json.loads(data)
+ if is_graphql_query(gql):
+ return format_graphql(gql)
+ elif is_graphql_batch_query(gql):
+ return format_query_list(gql)
+ else:
+ raise ValueError("Not a GraphQL message.")
+
+ def render_priority(
+ self,
+ data: bytes,
+ metadata: Metadata,
+ ) -> float:
+ if metadata.content_type != "application/json" or not data:
+ return 0
+
+ try:
+ data = json.loads(data)
+ if is_graphql_query(data) or is_graphql_batch_query(data):
+ return 2
+ except ValueError:
+ pass
+
+ return 0
+
+
+graphql = GraphQLContentview()
diff --git a/python/user_packages/Python313/site-packages/mitmproxy/contentviews/_view_http3.py b/python/user_packages/Python313/site-packages/mitmproxy/contentviews/_view_http3.py
new file mode 100644
index 0000000000000000000000000000000000000000..f634c06e1a603a885eec54d3e0c27b60e73d4d87
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/mitmproxy/contentviews/_view_http3.py
@@ -0,0 +1,153 @@
+from collections import defaultdict
+from dataclasses import dataclass
+from dataclasses import field
+
+import pylsqpack
+from aioquic.buffer import Buffer
+from aioquic.buffer import BufferReadError
+from aioquic.h3.connection import parse_settings
+from aioquic.h3.connection import Setting
+
+from ..proxy.layers.http import is_h3_alpn
+from mitmproxy import tcp
+from mitmproxy.contentviews._api import Contentview
+from mitmproxy.contentviews._api import Metadata
+from mitmproxy_rs.contentviews import hex_dump
+
+
+@dataclass(frozen=True)
+class Frame:
+ """Representation of an HTTP/3 frame."""
+
+ type: int
+ data: bytes
+
+ def pretty(self) -> str:
+ frame_name = f"0x{self.type:x} Frame"
+ if self.type == 0:
+ frame_name = "DATA Frame"
+ elif self.type == 1:
+ try:
+ hdrs = pylsqpack.Decoder(4096, 16).feed_header(0, self.data)[1]
+ return f"HEADERS Frame\n" + "\n".join(
+ f"{k.decode(errors='backslashreplace')}: {v.decode(errors='backslashreplace')}"
+ for k, v in hdrs
+ )
+ except Exception as e:
+ frame_name = f"HEADERS Frame (error: {e})"
+ elif self.type == 4:
+ settings = []
+ try:
+ s = parse_settings(self.data)
+ except Exception as e:
+ frame_name = f"SETTINGS Frame (error: {e})"
+ else:
+ for k, v in s.items():
+ try:
+ key = Setting(k).name
+ except ValueError:
+ key = f"0x{k:x}"
+ settings.append(f"{key}: 0x{v:x}")
+ return "SETTINGS Frame\n" + "\n".join(settings)
+ return f"{frame_name}\n" + hex_dump.prettify(self.data, Metadata())
+
+
+@dataclass(frozen=True)
+class StreamType:
+ """Representation of an HTTP/3 stream types."""
+
+ type: int
+
+ def pretty(self) -> str:
+ stream_type = {
+ 0x00: "Control Stream",
+ 0x01: "Push Stream",
+ 0x02: "QPACK Encoder Stream",
+ 0x03: "QPACK Decoder Stream",
+ }.get(self.type, f"0x{self.type:x} Stream")
+ return stream_type
+
+
+@dataclass
+class ConnectionState:
+ message_count: int = 0
+ frames: dict[int, list[Frame | StreamType]] = field(default_factory=dict)
+ client_buf: bytearray = field(default_factory=bytearray)
+ server_buf: bytearray = field(default_factory=bytearray)
+
+
+class Http3Contentview(Contentview):
+ def __init__(self) -> None:
+ self.connections: defaultdict[tcp.TCPFlow, ConnectionState] = defaultdict(
+ ConnectionState
+ )
+
+ @property
+ def name(self) -> str:
+ return "HTTP/3 Frames"
+
+ def prettify(self, data: bytes, metadata: Metadata) -> str:
+ flow = metadata.flow
+ tcp_message = metadata.tcp_message
+ assert isinstance(flow, tcp.TCPFlow)
+ assert tcp_message
+
+ state = self.connections[flow]
+
+ for message in flow.messages[state.message_count :]:
+ if message.from_client:
+ buf = state.client_buf
+ else:
+ buf = state.server_buf
+ buf += message.content
+
+ if state.message_count == 0 and flow.metadata["quic_is_unidirectional"]:
+ h3_buf = Buffer(data=bytes(buf[:8]))
+ stream_type = h3_buf.pull_uint_var()
+ consumed = h3_buf.tell()
+ del buf[:consumed]
+ state.frames[0] = [StreamType(stream_type)]
+
+ while True:
+ h3_buf = Buffer(data=bytes(buf[:16]))
+ try:
+ frame_type = h3_buf.pull_uint_var()
+ frame_size = h3_buf.pull_uint_var()
+ except BufferReadError:
+ break
+
+ consumed = h3_buf.tell()
+
+ if len(buf) < consumed + frame_size:
+ break
+
+ frame_data = bytes(buf[consumed : consumed + frame_size])
+
+ frame = Frame(frame_type, frame_data)
+
+ state.frames.setdefault(state.message_count, []).append(frame)
+
+ del buf[: consumed + frame_size]
+
+ state.message_count += 1
+
+ frames = state.frames.get(flow.messages.index(tcp_message), [])
+ if not frames:
+ return ""
+ else:
+ return "\n\n".join(frame.pretty() for frame in frames)
+
+ def render_priority(
+ self,
+ data: bytes,
+ metadata: Metadata,
+ ) -> float:
+ flow = metadata.flow
+ return (
+ 2
+ * float(bool(flow and is_h3_alpn(flow.client_conn.alpn)))
+ * float(isinstance(flow, tcp.TCPFlow))
+ )
+
+
+http3 = Http3Contentview()
diff --git a/python/user_packages/Python313/site-packages/mitmproxy/contentviews/_view_javascript.py b/python/user_packages/Python313/site-packages/mitmproxy/contentviews/_view_javascript.py
new file mode 100644
index 0000000000000000000000000000000000000000..32348312073c644e2926b089d1ce052049f3f24e
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/mitmproxy/contentviews/_view_javascript.py
@@ -0,0 +1,68 @@
+import io
+import re
+
+from mitmproxy.contentviews._api import Contentview
+from mitmproxy.contentviews._api import Metadata
+from mitmproxy.utils import strutils
+
+DELIMITERS = "{};\n"
+SPECIAL_AREAS = (
+ r"(?<=[^\w\s)])\s*/(?:[^\n/]|(? str:
+ data_str = data.decode("utf-8", "replace")
+ return beautify(data_str)
+
+ def render_priority(
+ self,
+ data: bytes,
+ metadata: Metadata,
+ ) -> float:
+ return float(bool(data) and metadata.content_type in self.__content_types)
+
+
+javascript = JavaScriptContentview()
diff --git a/python/user_packages/Python313/site-packages/mitmproxy/contentviews/_view_json.py b/python/user_packages/Python313/site-packages/mitmproxy/contentviews/_view_json.py
new file mode 100644
index 0000000000000000000000000000000000000000..25bc118466e6cccc1711a91c30cbfc4a25cfba97
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/mitmproxy/contentviews/_view_json.py
@@ -0,0 +1,31 @@
+import json
+
+from mitmproxy.contentviews._api import Contentview
+from mitmproxy.contentviews._api import Metadata
+
+
+class JSONContentview(Contentview):
+ syntax_highlight = "yaml"
+
+ def prettify(self, data: bytes, metadata: Metadata) -> str:
+ data = json.loads(data)
+ return json.dumps(data, indent=4, ensure_ascii=False)
+
+ def render_priority(self, data: bytes, metadata: Metadata) -> float:
+ if not data:
+ return 0
+ if metadata.content_type in (
+ "application/json",
+ "application/json-rpc",
+ ):
+ return 1
+ if (
+ metadata.content_type
+ and metadata.content_type.startswith("application/")
+ and metadata.content_type.endswith("json")
+ ):
+ return 1
+ return 0
+
+
+json_view = JSONContentview()
diff --git a/python/user_packages/Python313/site-packages/mitmproxy/contentviews/_view_mqtt.py b/python/user_packages/Python313/site-packages/mitmproxy/contentviews/_view_mqtt.py
new file mode 100644
index 0000000000000000000000000000000000000000..f8377af9354d0dd936b4285597b246fe8d6fa576
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/mitmproxy/contentviews/_view_mqtt.py
@@ -0,0 +1,277 @@
+import struct
+
+from mitmproxy.contentviews._api import Contentview
+from mitmproxy.contentviews._api import Metadata
+from mitmproxy.utils import strutils
+
+# from https://github.com/nikitastupin/mitmproxy-mqtt-script
+
+
+class MQTTControlPacket:
+ # Packet types
+ (
+ CONNECT,
+ CONNACK,
+ PUBLISH,
+ PUBACK,
+ PUBREC,
+ PUBREL,
+ PUBCOMP,
+ SUBSCRIBE,
+ SUBACK,
+ UNSUBSCRIBE,
+ UNSUBACK,
+ PINGREQ,
+ PINGRESP,
+ DISCONNECT,
+ ) = range(1, 15)
+
+ # http://docs.oasis-open.org/mqtt/mqtt/v3.1.1/os/mqtt-v3.1.1-os.html#_Table_2.1_-
+ Names = [
+ "reserved",
+ "CONNECT",
+ "CONNACK",
+ "PUBLISH",
+ "PUBACK",
+ "PUBREC",
+ "PUBREL",
+ "PUBCOMP",
+ "SUBSCRIBE",
+ "SUBACK",
+ "UNSUBSCRIBE",
+ "UNSUBACK",
+ "PINGREQ",
+ "PINGRESP",
+ "DISCONNECT",
+ "reserved",
+ ]
+
+ PACKETS_WITH_IDENTIFIER = [
+ PUBACK,
+ PUBREC,
+ PUBREL,
+ PUBCOMP,
+ SUBSCRIBE,
+ SUBACK,
+ UNSUBSCRIBE,
+ UNSUBACK,
+ ]
+
+ def __init__(self, packet):
+ self._packet = packet
+ # Fixed header
+ # http://docs.oasis-open.org/mqtt/mqtt/v3.1.1/os/mqtt-v3.1.1-os.html#_Toc398718020
+ self.packet_type = self._parse_packet_type()
+ self.packet_type_human = self.Names[self.packet_type]
+ self.dup, self.qos, self.retain = self._parse_flags()
+ self.remaining_length = self._parse_remaining_length()
+ # Variable header & Payload
+ # http://docs.oasis-open.org/mqtt/mqtt/v3.1.1/os/mqtt-v3.1.1-os.html#_Toc398718024
+ # http://docs.oasis-open.org/mqtt/mqtt/v3.1.1/os/mqtt-v3.1.1-os.html#_Toc398718026
+ if self.packet_type == self.CONNECT:
+ self._parse_connect_variable_headers()
+ self._parse_connect_payload()
+ elif self.packet_type == self.PUBLISH:
+ self._parse_publish_variable_headers()
+ self._parse_publish_payload()
+ elif self.packet_type == self.SUBSCRIBE:
+ self._parse_subscribe_variable_headers()
+ self._parse_subscribe_payload()
+ elif self.packet_type == self.SUBACK:
+ pass
+ elif self.packet_type == self.UNSUBSCRIBE:
+ pass
+ else:
+ self.payload = None
+
+ def pprint(self):
+ s = f"[{self.Names[self.packet_type]}]"
+
+ if self.packet_type == self.CONNECT:
+ assert self.payload
+ s += f"""
+
+Client Id: {self.payload["ClientId"]}
+Will Topic: {self.payload.get("WillTopic")}
+Will Message: {strutils.bytes_to_escaped_str(self.payload.get("WillMessage", b"None"))}
+User Name: {self.payload.get("UserName")}
+Password: {strutils.bytes_to_escaped_str(self.payload.get("Password", b"None"))}
+"""
+ elif self.packet_type == self.SUBSCRIBE:
+ s += " sent topic filters: "
+ s += ", ".join([f"'{tf}'" for tf in self.topic_filters])
+ elif self.packet_type == self.PUBLISH:
+ assert self.payload
+ topic_name = strutils.bytes_to_escaped_str(self.topic_name)
+ payload = strutils.bytes_to_escaped_str(self.payload)
+
+ s += f" '{payload}' to topic '{topic_name}'"
+ elif self.packet_type in [self.PINGREQ, self.PINGRESP]:
+ pass
+ else:
+ s = f"Packet type {self.Names[self.packet_type]} is not supported yet!"
+
+ return s
+
+ def _parse_length_prefixed_bytes(self, offset):
+ field_length_bytes = self._packet[offset : offset + 2]
+ field_length = struct.unpack("!H", field_length_bytes)[0]
+
+ field_content_bytes = self._packet[offset + 2 : offset + 2 + field_length]
+
+ return field_length + 2, field_content_bytes
+
+ def _parse_publish_variable_headers(self):
+ offset = len(self._packet) - self.remaining_length
+
+ field_length, field_content_bytes = self._parse_length_prefixed_bytes(offset)
+ self.topic_name = field_content_bytes
+
+ if self.qos in [0x01, 0x02]:
+ offset += field_length
+ self.packet_identifier = self._packet[offset : offset + 2]
+
+ def _parse_publish_payload(self):
+ fixed_header_length = len(self._packet) - self.remaining_length
+ variable_header_length = 2 + len(self.topic_name)
+
+ if self.qos in [0x01, 0x02]:
+ variable_header_length += 2
+
+ offset = fixed_header_length + variable_header_length
+
+ self.payload = self._packet[offset:]
+
+ def _parse_subscribe_variable_headers(self):
+ self._parse_packet_identifier()
+
+ def _parse_subscribe_payload(self):
+ offset = len(self._packet) - self.remaining_length + 2
+
+ self.topic_filters = {}
+
+ while len(self._packet) - offset > 0:
+ field_length, topic_filter_bytes = self._parse_length_prefixed_bytes(offset)
+ offset += field_length
+
+ qos = self._packet[offset : offset + 1]
+ offset += 1
+
+ topic_filter = topic_filter_bytes.decode("utf-8")
+ self.topic_filters[topic_filter] = {"qos": qos}
+
+ # http://docs.oasis-open.org/mqtt/mqtt/v3.1.1/os/mqtt-v3.1.1-os.html#_Toc398718030
+ def _parse_connect_variable_headers(self):
+ offset = len(self._packet) - self.remaining_length
+
+ self.variable_headers = {}
+ self.connect_flags = {}
+
+ self.variable_headers["ProtocolName"] = self._packet[offset : offset + 6]
+ self.variable_headers["ProtocolLevel"] = self._packet[offset + 6 : offset + 7]
+ self.variable_headers["ConnectFlags"] = self._packet[offset + 7 : offset + 8]
+ self.variable_headers["KeepAlive"] = self._packet[offset + 8 : offset + 10]
+ # http://docs.oasis-open.org/mqtt/mqtt/v3.1.1/os/mqtt-v3.1.1-os.html#_Toc385349229
+ self.connect_flags["CleanSession"] = bool(
+ self.variable_headers["ConnectFlags"][0] & 0x02
+ )
+ self.connect_flags["Will"] = bool(
+ self.variable_headers["ConnectFlags"][0] & 0x04
+ )
+ self.will_qos = (self.variable_headers["ConnectFlags"][0] >> 3) & 0x03
+ self.connect_flags["WillRetain"] = bool(
+ self.variable_headers["ConnectFlags"][0] & 0x20
+ )
+ self.connect_flags["Password"] = bool(
+ self.variable_headers["ConnectFlags"][0] & 0x40
+ )
+ self.connect_flags["UserName"] = bool(
+ self.variable_headers["ConnectFlags"][0] & 0x80
+ )
+
+ # http://docs.oasis-open.org/mqtt/mqtt/v3.1.1/os/mqtt-v3.1.1-os.html#_Toc398718031
+ def _parse_connect_payload(self):
+ fields = []
+ offset = len(self._packet) - self.remaining_length + 10
+
+ while len(self._packet) - offset > 0:
+ field_length, field_content = self._parse_length_prefixed_bytes(offset)
+ fields.append(field_content)
+ offset += field_length
+
+ self.payload = {}
+
+ for f in fields:
+ # http://docs.oasis-open.org/mqtt/mqtt/v3.1.1/os/mqtt-v3.1.1-os.html#_Toc385349242
+ if "ClientId" not in self.payload:
+ self.payload["ClientId"] = f.decode("utf-8")
+ # http://docs.oasis-open.org/mqtt/mqtt/v3.1.1/os/mqtt-v3.1.1-os.html#_Toc385349243
+ elif self.connect_flags["Will"] and "WillTopic" not in self.payload:
+ self.payload["WillTopic"] = f.decode("utf-8")
+ elif self.connect_flags["Will"] and "WillMessage" not in self.payload:
+ self.payload["WillMessage"] = f
+ elif (
+ self.connect_flags["UserName"] and "UserName" not in self.payload
+ ): # pragma: no cover
+ self.payload["UserName"] = f.decode("utf-8")
+ elif (
+ self.connect_flags["Password"] and "Password" not in self.payload
+ ): # pragma: no cover
+ self.payload["Password"] = f
+ else:
+ raise AssertionError(f"Unknown field in CONNECT payload: {f}")
+
+ def _parse_packet_type(self):
+ return self._packet[0] >> 4
+
+ # http://docs.oasis-open.org/mqtt/mqtt/v3.1.1/os/mqtt-v3.1.1-os.html#_Toc398718022
+ def _parse_flags(self):
+ dup = None
+ qos = None
+ retain = None
+
+ if self.packet_type == self.PUBLISH:
+ dup = (self._packet[0] >> 3) & 0x01
+ qos = (self._packet[0] >> 1) & 0x03
+ retain = self._packet[0] & 0x01
+
+ return dup, qos, retain
+
+ # http://docs.oasis-open.org/mqtt/mqtt/v3.1.1/os/mqtt-v3.1.1-os.html#_Table_2.4_Size
+ def _parse_remaining_length(self):
+ multiplier = 1
+ value = 0
+ i = 1
+
+ while True:
+ encodedByte = self._packet[i]
+ value += (encodedByte & 127) * multiplier
+ multiplier *= 128
+
+ if multiplier > 128 * 128 * 128:
+ raise ValueError("Malformed Remaining Length")
+
+ if encodedByte & 128 == 0:
+ break
+
+ i += 1
+
+ return value
+
+ # http://docs.oasis-open.org/mqtt/mqtt/v3.1.1/os/mqtt-v3.1.1-os.html#_Table_2.5_-
+ def _parse_packet_identifier(self):
+ offset = len(self._packet) - self.remaining_length
+ self.packet_identifier = self._packet[offset : offset + 2]
+
+
+class MQTTContentview(Contentview):
+ def prettify(
+ self,
+ data: bytes,
+ metadata: Metadata,
+ ) -> str:
+ mqtt_packet = MQTTControlPacket(data)
+ return mqtt_packet.pprint()
+
+
+mqtt = MQTTContentview()
diff --git a/python/user_packages/Python313/site-packages/mitmproxy/contentviews/_view_multipart.py b/python/user_packages/Python313/site-packages/mitmproxy/contentviews/_view_multipart.py
new file mode 100644
index 0000000000000000000000000000000000000000..ede2416957761def3f5f372195d66267ac0cbc9a
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/mitmproxy/contentviews/_view_multipart.py
@@ -0,0 +1,32 @@
+from ._utils import byte_pairs_to_str_pairs
+from ._utils import merge_repeated_keys
+from ._utils import yaml_dumps
+from mitmproxy.contentviews._api import Contentview
+from mitmproxy.contentviews._api import Metadata
+from mitmproxy.net.http.multipart import decode_multipart
+
+
+class MultipartContentview(Contentview):
+ name = "Multipart Form"
+ syntax_highlight = "yaml"
+
+ def prettify(
+ self,
+ data: bytes,
+ metadata: Metadata,
+ ) -> str:
+ if not metadata.http_message:
+ raise ValueError("Not an HTTP message")
+ content_type = metadata.http_message.headers["content-type"]
+ items = decode_multipart(content_type, data)
+ return yaml_dumps(merge_repeated_keys(byte_pairs_to_str_pairs(items)))
+
+ def render_priority(
+ self,
+ data: bytes,
+ metadata: Metadata,
+ ) -> float:
+ return float(bool(data) and metadata.content_type == "multipart/form-data")
+
+
+multipart = MultipartContentview()
diff --git a/python/user_packages/Python313/site-packages/mitmproxy/contentviews/_view_query.py b/python/user_packages/Python313/site-packages/mitmproxy/contentviews/_view_query.py
new file mode 100644
index 0000000000000000000000000000000000000000..ad4bd6a5b3fd1596c972fea37d15fd87bf4da294
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/mitmproxy/contentviews/_view_query.py
@@ -0,0 +1,31 @@
+from .. import http
+from ._utils import merge_repeated_keys
+from ._utils import yaml_dumps
+from mitmproxy.contentviews._api import Contentview
+from mitmproxy.contentviews._api import Metadata
+
+
+class QueryContentview(Contentview):
+ syntax_highlight = "yaml"
+
+ def prettify(
+ self,
+ data: bytes,
+ metadata: Metadata,
+ ) -> str:
+ if not isinstance(metadata.http_message, http.Request):
+ raise ValueError("Not an HTTP request.")
+ items = metadata.http_message.query.items(multi=True)
+ return yaml_dumps(merge_repeated_keys(items))
+
+ def render_priority(
+ self,
+ data: bytes,
+ metadata: Metadata,
+ ) -> float:
+ return 0.3 * float(
+ not data and bool(getattr(metadata.http_message, "query", False))
+ )
+
+
+query = QueryContentview()
diff --git a/python/user_packages/Python313/site-packages/mitmproxy/contentviews/_view_raw.py b/python/user_packages/Python313/site-packages/mitmproxy/contentviews/_view_raw.py
new file mode 100644
index 0000000000000000000000000000000000000000..9608cbf99dd27c58018f134904a6b2d13e98d1fd
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/mitmproxy/contentviews/_view_raw.py
@@ -0,0 +1,17 @@
+from ._api import Contentview
+from ._api import Metadata
+
+
+class RawContentview(Contentview):
+ def prettify(self, data: bytes, metadata: Metadata) -> str:
+ return data.decode("utf-8", "backslashreplace")
+
+ def render_priority(
+ self,
+ data: bytes,
+ metadata: Metadata,
+ ) -> float:
+ return 0.1
+
+
+raw = RawContentview()
diff --git a/python/user_packages/Python313/site-packages/mitmproxy/contentviews/_view_socketio.py b/python/user_packages/Python313/site-packages/mitmproxy/contentviews/_view_socketio.py
new file mode 100644
index 0000000000000000000000000000000000000000..1f3a107038975a1f70c28a1ef4a00eb43fb29f06
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/mitmproxy/contentviews/_view_socketio.py
@@ -0,0 +1,98 @@
+from abc import abstractmethod
+from enum import Enum
+
+from mitmproxy.contentviews._api import Contentview
+from mitmproxy.contentviews._api import Metadata
+from mitmproxy.http import HTTPFlow
+from mitmproxy.utils import strutils
+
+
+class PacketType(Enum):
+ @property
+ @abstractmethod
+ def visible(self) -> bool:
+ raise RuntimeError # pragma: no cover
+
+ def __str__(self):
+ return f"{type(self).__name__}.{self.name}"
+
+
+class EngineIO(PacketType):
+ # https://github.com/socketio/engine.io-protocol?tab=readme-ov-file#protocol
+ OPEN = ord("0")
+ CLOSE = ord("1")
+ PING = ord("2")
+ PONG = ord("3")
+ MESSAGE = ord("4")
+ UPGRADE = ord("5")
+ NOOP = ord("6")
+
+ @property
+ def visible(self):
+ return self not in (
+ self.PING,
+ self.PONG,
+ )
+
+
+class SocketIO(PacketType):
+ # https://github.com/socketio/socket.io-protocol?tab=readme-ov-file#exchange-protocol
+ CONNECT = ord("0")
+ DISCONNECT = ord("1")
+ EVENT = ord("2")
+ ACK = ord("3")
+ CONNECT_ERROR = ord("4")
+ BINARY_EVENT = ord("5")
+ BINARY_ACK = ord("6")
+
+ @property
+ def visible(self):
+ return self not in (
+ self.ACK,
+ self.BINARY_ACK,
+ )
+
+
+def parse_packet(data: bytes) -> tuple[PacketType, bytes]:
+ # throws IndexError/ValueError if invalid packet
+ engineio_type = EngineIO(data[0])
+ data = data[1:]
+
+ if engineio_type is not EngineIO.MESSAGE:
+ return engineio_type, data
+
+ socketio_type = SocketIO(data[0])
+ data = data[1:]
+
+ return socketio_type, data
+
+
+class SocketIOContentview(Contentview):
+ name = "Socket.IO"
+
+ def prettify(
+ self,
+ data: bytes,
+ metadata: Metadata,
+ ) -> str:
+ packet_type, msg = parse_packet(data)
+ if not packet_type.visible:
+ return ""
+ return f"{packet_type} {strutils.bytes_to_escaped_str(msg)}"
+
+ def render_priority(
+ self,
+ data: bytes,
+ metadata: Metadata,
+ ) -> float:
+ return float(
+ bool(
+ data
+ and isinstance(metadata.flow, HTTPFlow)
+ and metadata.flow.websocket is not None
+ and "/socket.io/?" in metadata.flow.request.path
+ )
+ )
+
+
+socket_io = SocketIOContentview()
diff --git a/python/user_packages/Python313/site-packages/mitmproxy/contentviews/_view_urlencoded.py b/python/user_packages/Python313/site-packages/mitmproxy/contentviews/_view_urlencoded.py
new file mode 100644
index 0000000000000000000000000000000000000000..cf4aa8f632a8461e9010c2dde717c099edb78042
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/mitmproxy/contentviews/_view_urlencoded.py
@@ -0,0 +1,33 @@
+import urllib
+import urllib.parse
+
+from ._utils import byte_pairs_to_str_pairs
+from ._utils import merge_repeated_keys
+from ._utils import yaml_dumps
+from mitmproxy.contentviews._api import Contentview
+from mitmproxy.contentviews._api import Metadata
+
+
+class URLEncodedContentview(Contentview):
+ name = "URL-encoded"
+ syntax_highlight = "yaml"
+
+ def prettify(
+ self,
+ data: bytes,
+ metadata: Metadata,
+ ) -> str:
+ items = urllib.parse.parse_qsl(data, keep_blank_values=True)
+ return yaml_dumps(merge_repeated_keys(byte_pairs_to_str_pairs(items)))
+
+ def render_priority(
+ self,
+ data: bytes,
+ metadata: Metadata,
+ ) -> float:
+ return float(
+ bool(data) and metadata.content_type == "application/x-www-form-urlencoded"
+ )
+
+
+urlencoded = URLEncodedContentview()
diff --git a/python/user_packages/Python313/site-packages/mitmproxy/contentviews/_view_wbxml.py b/python/user_packages/Python313/site-packages/mitmproxy/contentviews/_view_wbxml.py
new file mode 100644
index 0000000000000000000000000000000000000000..a7ad742a550dbc46c3ecd77b8c80153122cb9e84
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/mitmproxy/contentviews/_view_wbxml.py
@@ -0,0 +1,25 @@
+from mitmproxy.contentviews._api import Contentview
+from mitmproxy.contentviews._api import Metadata
+from mitmproxy.contrib.wbxml import ASCommandResponse
+
+
+class WBXMLContentview(Contentview):
+ __content_types = ("application/vnd.wap.wbxml", "application/vnd.ms-sync.wbxml")
+ syntax_highlight = "xml"
+
+ def prettify(
+ self,
+ data: bytes,
+ metadata: Metadata,
+ ) -> str:
+ return ASCommandResponse.ASCommandResponse(data).xmlString
+
+ def render_priority(
+ self,
+ data: bytes,
+ metadata: Metadata,
+ ) -> float:
+ return float(bool(data) and metadata.content_type in self.__content_types)
+
+
+wbxml = WBXMLContentview()
diff --git a/python/user_packages/Python313/site-packages/mitmproxy/contentviews/base.py b/python/user_packages/Python313/site-packages/mitmproxy/contentviews/base.py
new file mode 100644
index 0000000000000000000000000000000000000000..b8e479cc07c170ee795f35c139525f6eb23f1af4
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/mitmproxy/contentviews/base.py
@@ -0,0 +1,129 @@
+# Default view cutoff *in lines*
+import sys
+from abc import ABC
+from abc import abstractmethod
+from collections.abc import Iterable
+from collections.abc import Iterator
+from collections.abc import Mapping
+from typing import ClassVar
+from typing import Union
+
+from mitmproxy import flow
+from mitmproxy import http
+
+if sys.version_info < (3, 13): # pragma: no cover
+ from typing_extensions import deprecated
+else:
+ from warnings import deprecated
+
+KEY_MAX = 30
+
+TTextType = Union[str, bytes] # FIXME: This should be either bytes or str ultimately.
+TViewLine = list[tuple[str, TTextType]]
+TViewResult = tuple[str, Iterator[TViewLine]]
+
+
+@deprecated("Use `mitmproxy.contentviews.Contentview` instead.")
+class View(ABC):
+ """
+ Deprecated, do not use.
+ """
+
+ name: ClassVar[str]
+
+ @abstractmethod
+ def __call__(
+ self,
+ data: bytes,
+ *,
+ content_type: str | None = None,
+ flow: flow.Flow | None = None,
+ http_message: http.Message | None = None,
+ **unknown_metadata,
+ ) -> TViewResult:
+ """
+ Transform raw data into human-readable output.
+
+ Returns a (description, content generator) tuple.
+ The content generator yields lists of (style, text) tuples, where each list represents
+ a single line. ``text`` is a unfiltered string which may need to be escaped,
+ depending on the used output. For example, it may contain terminal control sequences
+ or unfiltered HTML.
+
+ Except for `data`, implementations must not rely on any given argument to be present.
+ To ensure compatibility with future mitmproxy versions, unknown keyword arguments should be ignored.
+
+ The content generator must not yield tuples of tuples, because urwid cannot process that.
+ You have to yield a *list* of tuples per line.
+ """
+ raise NotImplementedError() # pragma: no cover
+
+ def render_priority(
+ self,
+ data: bytes,
+ *,
+ content_type: str | None = None,
+ flow: flow.Flow | None = None,
+ http_message: http.Message | None = None,
+ **unknown_metadata,
+ ) -> float:
+ """
+ Return the priority of this view for rendering `data`.
+ If no particular view is chosen by the user, the view with the highest priority is selected.
+
+ Except for `data`, implementations must not rely on any given argument to be present.
+ To ensure compatibility with future mitmproxy versions, unknown keyword arguments should be ignored.
+ """
+ return 0
+
+ def __lt__(self, other):
+ assert isinstance(other, View)
+ return self.name.__lt__(other.name)
+
+
+@deprecated("Use `mitmproxy.contentviews.Contentview` instead.")
+def format_pairs(items: Iterable[tuple[TTextType, TTextType]]) -> Iterator[TViewLine]:
+ """
+ Helper function that accepts a list of (k,v) pairs into a list of
+ [
+ ("key", key )
+ ("value", value)
+ ]
+ where key is padded to a uniform width
+ """
+
+ max_key_len = max((len(k[0]) for k in items), default=0)
+ max_key_len = min((max_key_len, KEY_MAX), default=0)
+
+ for key, value in items:
+ if isinstance(key, bytes):
+ key += b":"
+ else:
+ key += ":"
+
+ key = key.ljust(max_key_len + 2)
+
+ yield [("header", key), ("text", value)]
+
+
+@deprecated("Use `mitmproxy.contentviews.Contentview` instead.")
+def format_dict(d: Mapping[TTextType, TTextType]) -> Iterator[TViewLine]:
+ """
+ Helper function that transforms the given dictionary into a list of
+ [
+ ("key", key )
+ ("value", value)
+ ]
+ entries, where key is padded to a uniform width.
+ """
+
+ return format_pairs(d.items())
+
+
+@deprecated("Use `mitmproxy.contentviews.Contentview` instead.")
+def format_text(text: TTextType) -> Iterator[TViewLine]:
+ """
+ Helper function that transforms bytes into the view output format.
+ """
+ for line in text.splitlines():
+ yield [("text", line)]
diff --git a/python/user_packages/Python313/site-packages/mitmproxy_rs/__pycache__/__init__.cpython-313.pyc b/python/user_packages/Python313/site-packages/mitmproxy_rs/__pycache__/__init__.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..36e6d1dae130e6bc214c35773f8af854b53abe7c
Binary files /dev/null and b/python/user_packages/Python313/site-packages/mitmproxy_rs/__pycache__/__init__.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/mitmproxy_rs/_pyinstaller/__init__.py b/python/user_packages/Python313/site-packages/mitmproxy_rs/_pyinstaller/__init__.py
new file mode 100644
index 0000000000000000000000000000000000000000..0a9bb3903c32dd0a7d8d97025db4004e9ca84417
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/mitmproxy_rs/_pyinstaller/__init__.py
@@ -0,0 +1,7 @@
+from pathlib import Path
+
+here = Path(__file__).parent.absolute()
+
+
+def hook_dirs() -> list[str]:
+ return [str(here)]
diff --git a/python/user_packages/Python313/site-packages/mitmproxy_rs/_pyinstaller/__pycache__/__init__.cpython-313.pyc b/python/user_packages/Python313/site-packages/mitmproxy_rs/_pyinstaller/__pycache__/__init__.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..af7bd1f19efd74eef66476e1cc6018e3af8f9e12
Binary files /dev/null and b/python/user_packages/Python313/site-packages/mitmproxy_rs/_pyinstaller/__pycache__/__init__.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/mitmproxy_rs/_pyinstaller/__pycache__/hook-mitmproxy_linux.cpython-313.pyc b/python/user_packages/Python313/site-packages/mitmproxy_rs/_pyinstaller/__pycache__/hook-mitmproxy_linux.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..826e32638f196e1bf575739dffeacc8654066738
Binary files /dev/null and b/python/user_packages/Python313/site-packages/mitmproxy_rs/_pyinstaller/__pycache__/hook-mitmproxy_linux.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/mitmproxy_rs/_pyinstaller/__pycache__/hook-mitmproxy_macos.cpython-313.pyc b/python/user_packages/Python313/site-packages/mitmproxy_rs/_pyinstaller/__pycache__/hook-mitmproxy_macos.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..6065ea0be04edb626318d6e21442bc1ceb23a754
Binary files /dev/null and b/python/user_packages/Python313/site-packages/mitmproxy_rs/_pyinstaller/__pycache__/hook-mitmproxy_macos.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/mitmproxy_rs/_pyinstaller/__pycache__/hook-mitmproxy_rs.cpython-313.pyc b/python/user_packages/Python313/site-packages/mitmproxy_rs/_pyinstaller/__pycache__/hook-mitmproxy_rs.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..fbb1b02cd408ae36343570eb7ca2079aec909f08
Binary files /dev/null and b/python/user_packages/Python313/site-packages/mitmproxy_rs/_pyinstaller/__pycache__/hook-mitmproxy_rs.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/mitmproxy_rs/_pyinstaller/__pycache__/hook-mitmproxy_windows.cpython-313.pyc b/python/user_packages/Python313/site-packages/mitmproxy_rs/_pyinstaller/__pycache__/hook-mitmproxy_windows.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..b42dacea640e660e10644c2dafa0d6b3b72b757c
Binary files /dev/null and b/python/user_packages/Python313/site-packages/mitmproxy_rs/_pyinstaller/__pycache__/hook-mitmproxy_windows.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/mitmproxy_rs/_pyinstaller/hook-mitmproxy_linux.py b/python/user_packages/Python313/site-packages/mitmproxy_rs/_pyinstaller/hook-mitmproxy_linux.py
new file mode 100644
index 0000000000000000000000000000000000000000..3423d2255b39db274eeb7c5ca2200672938a2c90
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/mitmproxy_rs/_pyinstaller/hook-mitmproxy_linux.py
@@ -0,0 +1,6 @@
+import sysconfig
+import os.path
+
+binaries = [
+ (os.path.join(sysconfig.get_path("scripts"), "mitmproxy-linux-redirector"), ".")
+]
diff --git a/python/user_packages/Python313/site-packages/mitmproxy_rs/_pyinstaller/hook-mitmproxy_macos.py b/python/user_packages/Python313/site-packages/mitmproxy_rs/_pyinstaller/hook-mitmproxy_macos.py
new file mode 100644
index 0000000000000000000000000000000000000000..e8fb2ed468c357ca103f69cd19f1f65972d4539b
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/mitmproxy_rs/_pyinstaller/hook-mitmproxy_macos.py
@@ -0,0 +1,3 @@
+from PyInstaller.utils.hooks import collect_data_files
+
+datas = collect_data_files("mitmproxy_macos")
diff --git a/python/user_packages/Python313/site-packages/mitmproxy_rs/_pyinstaller/hook-mitmproxy_rs.py b/python/user_packages/Python313/site-packages/mitmproxy_rs/_pyinstaller/hook-mitmproxy_rs.py
new file mode 100644
index 0000000000000000000000000000000000000000..0ffbdf4015bac2f873e846442c20ed8e9ceb2135
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/mitmproxy_rs/_pyinstaller/hook-mitmproxy_rs.py
@@ -0,0 +1,14 @@
+import platform
+from PyInstaller.utils.hooks import collect_data_files
+
+datas = collect_data_files("mitmproxy_rs")
+
+hiddenimports = []
+
+match platform.system():
+ case "Darwin":
+ hiddenimports.append("mitmproxy_macos")
+ case "Windows":
+ hiddenimports.append("mitmproxy_windows")
+ case "Linux":
+ hiddenimports.append("mitmproxy_linux")
diff --git a/python/user_packages/Python313/site-packages/mitmproxy_rs/_pyinstaller/hook-mitmproxy_windows.py b/python/user_packages/Python313/site-packages/mitmproxy_rs/_pyinstaller/hook-mitmproxy_windows.py
new file mode 100644
index 0000000000000000000000000000000000000000..a4be1aeaf752c4d03ec4a90bf01c876a14d9a78c
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/mitmproxy_rs/_pyinstaller/hook-mitmproxy_windows.py
@@ -0,0 +1,3 @@
+from PyInstaller.utils.hooks import collect_data_files
+
+datas = collect_data_files("mitmproxy_windows")
diff --git a/python/user_packages/Python313/site-packages/mitmproxy_windows/__pycache__/__init__.cpython-313.pyc b/python/user_packages/Python313/site-packages/mitmproxy_windows/__pycache__/__init__.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..8088f95c290a4b4d66a86dd0a23b74dee0785ade
Binary files /dev/null and b/python/user_packages/Python313/site-packages/mitmproxy_windows/__pycache__/__init__.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/mmh3-5.2.1.dist-info/licenses/LICENSE b/python/user_packages/Python313/site-packages/mmh3-5.2.1.dist-info/licenses/LICENSE
new file mode 100644
index 0000000000000000000000000000000000000000..11d319d65fa53ed5528690645a7dc2e84f0d5923
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/mmh3-5.2.1.dist-info/licenses/LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2011-2026 Hajime Senuma
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
\ No newline at end of file
diff --git a/python/user_packages/Python313/site-packages/msgpack-1.1.2.dist-info/licenses/COPYING b/python/user_packages/Python313/site-packages/msgpack-1.1.2.dist-info/licenses/COPYING
new file mode 100644
index 0000000000000000000000000000000000000000..78c4cd2dae9ab69cb6883b783c189267aa3f4fef
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/msgpack-1.1.2.dist-info/licenses/COPYING
@@ -0,0 +1,14 @@
+Copyright (C) 2008-2011 INADA Naoki
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
diff --git a/python/user_packages/Python313/site-packages/msgpack/__pycache__/__init__.cpython-313.pyc b/python/user_packages/Python313/site-packages/msgpack/__pycache__/__init__.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..ba9e3f495dd5ea033c61fd2ffd2f82a68521c07f
Binary files /dev/null and b/python/user_packages/Python313/site-packages/msgpack/__pycache__/__init__.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/msgpack/__pycache__/exceptions.cpython-313.pyc b/python/user_packages/Python313/site-packages/msgpack/__pycache__/exceptions.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..7a0495f4fb1262f707676dc79762ff5e4c21e597
Binary files /dev/null and b/python/user_packages/Python313/site-packages/msgpack/__pycache__/exceptions.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/msgpack/__pycache__/ext.cpython-313.pyc b/python/user_packages/Python313/site-packages/msgpack/__pycache__/ext.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..e6a55626504b3d052511c384d2f0250b80792b34
Binary files /dev/null and b/python/user_packages/Python313/site-packages/msgpack/__pycache__/ext.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/msgpack/__pycache__/fallback.cpython-313.pyc b/python/user_packages/Python313/site-packages/msgpack/__pycache__/fallback.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..6eeeb63002cc25688bc883a772688bed696e29ee
Binary files /dev/null and b/python/user_packages/Python313/site-packages/msgpack/__pycache__/fallback.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/multidict-6.7.1.dist-info/licenses/LICENSE b/python/user_packages/Python313/site-packages/multidict-6.7.1.dist-info/licenses/LICENSE
new file mode 100644
index 0000000000000000000000000000000000000000..8727172ae058e56805bd8ed0f988b6788711dcfd
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/multidict-6.7.1.dist-info/licenses/LICENSE
@@ -0,0 +1,13 @@
+ Copyright 2016 Andrew Svetlov and aio-libs contributors
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
diff --git a/python/user_packages/Python313/site-packages/multidict/__pycache__/__init__.cpython-313.pyc b/python/user_packages/Python313/site-packages/multidict/__pycache__/__init__.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..04f124cfd7a64ab2c1cdf8c0b81da1c292c28b95
Binary files /dev/null and b/python/user_packages/Python313/site-packages/multidict/__pycache__/__init__.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/multidict/__pycache__/_abc.cpython-313.pyc b/python/user_packages/Python313/site-packages/multidict/__pycache__/_abc.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..613173c89efbbfc0ad5a034d70cb77d07347eb58
Binary files /dev/null and b/python/user_packages/Python313/site-packages/multidict/__pycache__/_abc.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/multidict/__pycache__/_compat.cpython-313.pyc b/python/user_packages/Python313/site-packages/multidict/__pycache__/_compat.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..52f216f118c71d0afbeb6648b75988fc6f0d2dcc
Binary files /dev/null and b/python/user_packages/Python313/site-packages/multidict/__pycache__/_compat.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/multidict/__pycache__/_multidict_py.cpython-313.pyc b/python/user_packages/Python313/site-packages/multidict/__pycache__/_multidict_py.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..3d1cdf7e6aa569b15d7bc4578f5480d2f0a84627
Binary files /dev/null and b/python/user_packages/Python313/site-packages/multidict/__pycache__/_multidict_py.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/mypy_extensions-1.1.0.dist-info/licenses/LICENSE b/python/user_packages/Python313/site-packages/mypy_extensions-1.1.0.dist-info/licenses/LICENSE
new file mode 100644
index 0000000000000000000000000000000000000000..bdb7786b2322c9d2ab970bbfba8771d6e8774723
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/mypy_extensions-1.1.0.dist-info/licenses/LICENSE
@@ -0,0 +1,27 @@
+Mypy extensions are licensed under the terms of the MIT license, reproduced below.
+
+= = = = =
+
+The MIT License
+
+Copyright (c) 2016-2017 Jukka Lehtosalo and contributors
+
+Permission is hereby granted, free of charge, to any person obtaining a
+copy of this software and associated documentation files (the "Software"),
+to deal in the Software without restriction, including without limitation
+the rights to use, copy, modify, merge, publish, distribute, sublicense,
+and/or sell copies of the Software, and to permit persons to whom the
+Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+DEALINGS IN THE SOFTWARE.
+
+= = = = =
diff --git a/python/user_packages/Python313/site-packages/numpy/__pycache__/__config__.cpython-313.pyc b/python/user_packages/Python313/site-packages/numpy/__pycache__/__config__.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..1a17774641da048de0fa883d5a9b7df0eeae092a
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/__pycache__/__config__.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/numpy/__pycache__/__init__.cpython-313.pyc b/python/user_packages/Python313/site-packages/numpy/__pycache__/__init__.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..35a802bc972b9ab0fb3f70cc7fc27922b2b7bd42
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/__pycache__/__init__.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/numpy/__pycache__/_array_api_info.cpython-313.pyc b/python/user_packages/Python313/site-packages/numpy/__pycache__/_array_api_info.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..409a06164bf2220ebc8103819e5cda80f7e6ff72
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/__pycache__/_array_api_info.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/numpy/__pycache__/_configtool.cpython-313.pyc b/python/user_packages/Python313/site-packages/numpy/__pycache__/_configtool.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..42b5a8f08e5f7eba7942b4e99a87a8a9b109ed2e
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/__pycache__/_configtool.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/numpy/__pycache__/_distributor_init.cpython-313.pyc b/python/user_packages/Python313/site-packages/numpy/__pycache__/_distributor_init.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..2fd4a2701cab4f97800d8c0d9aaa740ce289ad6a
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/__pycache__/_distributor_init.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/numpy/__pycache__/_expired_attrs_2_0.cpython-313.pyc b/python/user_packages/Python313/site-packages/numpy/__pycache__/_expired_attrs_2_0.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..4211a4c9067d671842ef570b024320882d1e3757
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/__pycache__/_expired_attrs_2_0.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/numpy/__pycache__/_globals.cpython-313.pyc b/python/user_packages/Python313/site-packages/numpy/__pycache__/_globals.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..2f8e1504cc56d189794339c003e1645c55796da6
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/__pycache__/_globals.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/numpy/__pycache__/_pytesttester.cpython-313.pyc b/python/user_packages/Python313/site-packages/numpy/__pycache__/_pytesttester.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..f02ee71081c1d378503da39efac134be1806da8f
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/__pycache__/_pytesttester.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/numpy/__pycache__/conftest.cpython-313.pyc b/python/user_packages/Python313/site-packages/numpy/__pycache__/conftest.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..2b9ce66707e0f24c591571587b9910b40930f50d
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/__pycache__/conftest.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/numpy/__pycache__/dtypes.cpython-313.pyc b/python/user_packages/Python313/site-packages/numpy/__pycache__/dtypes.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..e7c569417857ff8ede317a4160de4b74b945f5f4
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/__pycache__/dtypes.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/numpy/__pycache__/exceptions.cpython-313.pyc b/python/user_packages/Python313/site-packages/numpy/__pycache__/exceptions.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..28b25553a6aae85d435779d6922535cdb40427fb
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/__pycache__/exceptions.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/numpy/__pycache__/matlib.cpython-313.pyc b/python/user_packages/Python313/site-packages/numpy/__pycache__/matlib.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..aad12d6f20233178c78aba0fee1f72b5f3cb2ba8
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/__pycache__/matlib.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/numpy/__pycache__/version.cpython-313.pyc b/python/user_packages/Python313/site-packages/numpy/__pycache__/version.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..0c7c27b07cd4b898b0143da5c0132ae25b72e653
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/__pycache__/version.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/__pycache__/__init__.cpython-313.pyc b/python/user_packages/Python313/site-packages/numpy/_core/__pycache__/__init__.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..5985f39ac49ab7758f5bd8d46fadf93fd4644715
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/_core/__pycache__/__init__.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/__pycache__/_add_newdocs_scalars.cpython-313.pyc b/python/user_packages/Python313/site-packages/numpy/_core/__pycache__/_add_newdocs_scalars.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..ff68fc09ea82eb8041a375470b7d7de9d555368a
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/_core/__pycache__/_add_newdocs_scalars.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/__pycache__/_asarray.cpython-313.pyc b/python/user_packages/Python313/site-packages/numpy/_core/__pycache__/_asarray.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..97317e7450abdb17db494667f68aa1c8c833f090
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/_core/__pycache__/_asarray.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/__pycache__/_dtype.cpython-313.pyc b/python/user_packages/Python313/site-packages/numpy/_core/__pycache__/_dtype.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..e5e17b99fdb5172a3684c061e14460ce6404f343
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/_core/__pycache__/_dtype.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/__pycache__/_dtype_ctypes.cpython-313.pyc b/python/user_packages/Python313/site-packages/numpy/_core/__pycache__/_dtype_ctypes.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..396aee58ae23c75a74593175d5fe9611bfc5cecf
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/_core/__pycache__/_dtype_ctypes.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/__pycache__/_exceptions.cpython-313.pyc b/python/user_packages/Python313/site-packages/numpy/_core/__pycache__/_exceptions.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..2a0fcfdfd104aec229e5bb3fadb6bc21b2bdbb9e
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/_core/__pycache__/_exceptions.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/__pycache__/_internal.cpython-313.pyc b/python/user_packages/Python313/site-packages/numpy/_core/__pycache__/_internal.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..8db26c9109931099e5a4a0b70eb222b3db2438b9
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/_core/__pycache__/_internal.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/__pycache__/_methods.cpython-313.pyc b/python/user_packages/Python313/site-packages/numpy/_core/__pycache__/_methods.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..566b97c974ec4d4fa3420926c0bbdc6f011a836e
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/_core/__pycache__/_methods.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/__pycache__/_string_helpers.cpython-313.pyc b/python/user_packages/Python313/site-packages/numpy/_core/__pycache__/_string_helpers.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..26a979735deacfd97ef04ab0b2fa37f7e1a3a39c
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/_core/__pycache__/_string_helpers.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/__pycache__/_type_aliases.cpython-313.pyc b/python/user_packages/Python313/site-packages/numpy/_core/__pycache__/_type_aliases.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..5a360248d3e23b7ede434022c7e1732b16b68bde
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/_core/__pycache__/_type_aliases.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/__pycache__/_ufunc_config.cpython-313.pyc b/python/user_packages/Python313/site-packages/numpy/_core/__pycache__/_ufunc_config.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..2b330f2e1a6a60ee742b1923ec883a28b5952344
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/_core/__pycache__/_ufunc_config.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/__pycache__/arrayprint.cpython-313.pyc b/python/user_packages/Python313/site-packages/numpy/_core/__pycache__/arrayprint.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..2570fc87469cd70656d31fb67681d34f6311f39a
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/_core/__pycache__/arrayprint.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/__pycache__/cversions.cpython-313.pyc b/python/user_packages/Python313/site-packages/numpy/_core/__pycache__/cversions.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..06d2e634f02700f19bd8023e1842d03124373e09
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/_core/__pycache__/cversions.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/__pycache__/defchararray.cpython-313.pyc b/python/user_packages/Python313/site-packages/numpy/_core/__pycache__/defchararray.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..803874d23d6262aa35699fb08473b18b5144628d
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/_core/__pycache__/defchararray.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/__pycache__/einsumfunc.cpython-313.pyc b/python/user_packages/Python313/site-packages/numpy/_core/__pycache__/einsumfunc.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..d5f3a14b7723e83bc369d584fb51e9748672349c
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/_core/__pycache__/einsumfunc.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/__pycache__/function_base.cpython-313.pyc b/python/user_packages/Python313/site-packages/numpy/_core/__pycache__/function_base.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..46dcb336c3c7627a50466d0c310d76a0852a1e99
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/_core/__pycache__/function_base.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/__pycache__/getlimits.cpython-313.pyc b/python/user_packages/Python313/site-packages/numpy/_core/__pycache__/getlimits.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..6a2669c7d361e96b112c76a7ad17c3ad16c21659
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/_core/__pycache__/getlimits.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/__pycache__/memmap.cpython-313.pyc b/python/user_packages/Python313/site-packages/numpy/_core/__pycache__/memmap.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..de7f53253e6b949a7c52c6d0db4f2a428242d05e
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/_core/__pycache__/memmap.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/__pycache__/multiarray.cpython-313.pyc b/python/user_packages/Python313/site-packages/numpy/_core/__pycache__/multiarray.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..a0f8f451ca64c6de10c1b588460c8260872f2b44
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/_core/__pycache__/multiarray.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/__pycache__/numeric.cpython-313.pyc b/python/user_packages/Python313/site-packages/numpy/_core/__pycache__/numeric.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..dee6546598533aae742d6b8a3f2bc33502484757
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/_core/__pycache__/numeric.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/__pycache__/numerictypes.cpython-313.pyc b/python/user_packages/Python313/site-packages/numpy/_core/__pycache__/numerictypes.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..d2f9f47c7da9f843ea0b20bfd38087cb491e8bac
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/_core/__pycache__/numerictypes.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/__pycache__/overrides.cpython-313.pyc b/python/user_packages/Python313/site-packages/numpy/_core/__pycache__/overrides.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..566864d7f35213c813660778bc82dc1a255aa418
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/_core/__pycache__/overrides.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/__pycache__/printoptions.cpython-313.pyc b/python/user_packages/Python313/site-packages/numpy/_core/__pycache__/printoptions.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..927827cd1a6369b42ab52d5ad5a5c82425cf9a4d
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/_core/__pycache__/printoptions.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/__pycache__/records.cpython-313.pyc b/python/user_packages/Python313/site-packages/numpy/_core/__pycache__/records.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..25c768fe07f3c87d3d7f097ac9f802bcb73849a3
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/_core/__pycache__/records.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/__pycache__/shape_base.cpython-313.pyc b/python/user_packages/Python313/site-packages/numpy/_core/__pycache__/shape_base.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..aadcd1c2777837f694f7630c29e8c7799ad540d6
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/_core/__pycache__/shape_base.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/__pycache__/strings.cpython-313.pyc b/python/user_packages/Python313/site-packages/numpy/_core/__pycache__/strings.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..93538dc85d208a673933cf49856df73e59d608f5
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/_core/__pycache__/strings.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/__pycache__/umath.cpython-313.pyc b/python/user_packages/Python313/site-packages/numpy/_core/__pycache__/umath.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..26e5e09a979d60544fafe181a08ae6a9307ee85b
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/_core/__pycache__/umath.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/include/numpy/__multiarray_api.c b/python/user_packages/Python313/site-packages/numpy/_core/include/numpy/__multiarray_api.c
new file mode 100644
index 0000000000000000000000000000000000000000..5296adf759a48edb0f6b0361a35f5dfeaa3a4e32
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/include/numpy/__multiarray_api.c
@@ -0,0 +1,376 @@
+
+/* These pointers will be stored in the C-object for use in other
+ extension modules
+*/
+
+void *PyArray_API[] = {
+ (void *) PyArray_GetNDArrayCVersion,
+ NULL,
+ (void *) &PyArray_Type,
+ (void *) &PyArrayDescr_Type,
+ NULL,
+ (void *) &PyArrayIter_Type,
+ (void *) &PyArrayMultiIter_Type,
+ (int *) &NPY_NUMUSERTYPES,
+ (void *) &PyBoolArrType_Type,
+ (void *) &_PyArrayScalar_BoolValues,
+ (void *) &PyGenericArrType_Type,
+ (void *) &PyNumberArrType_Type,
+ (void *) &PyIntegerArrType_Type,
+ (void *) &PySignedIntegerArrType_Type,
+ (void *) &PyUnsignedIntegerArrType_Type,
+ (void *) &PyInexactArrType_Type,
+ (void *) &PyFloatingArrType_Type,
+ (void *) &PyComplexFloatingArrType_Type,
+ (void *) &PyFlexibleArrType_Type,
+ (void *) &PyCharacterArrType_Type,
+ (void *) &PyByteArrType_Type,
+ (void *) &PyShortArrType_Type,
+ (void *) &PyIntArrType_Type,
+ (void *) &PyLongArrType_Type,
+ (void *) &PyLongLongArrType_Type,
+ (void *) &PyUByteArrType_Type,
+ (void *) &PyUShortArrType_Type,
+ (void *) &PyUIntArrType_Type,
+ (void *) &PyULongArrType_Type,
+ (void *) &PyULongLongArrType_Type,
+ (void *) &PyFloatArrType_Type,
+ (void *) &PyDoubleArrType_Type,
+ (void *) &PyLongDoubleArrType_Type,
+ (void *) &PyCFloatArrType_Type,
+ (void *) &PyCDoubleArrType_Type,
+ (void *) &PyCLongDoubleArrType_Type,
+ (void *) &PyObjectArrType_Type,
+ (void *) &PyStringArrType_Type,
+ (void *) &PyUnicodeArrType_Type,
+ (void *) &PyVoidArrType_Type,
+ NULL,
+ NULL,
+ (void *) PyArray_INCREF,
+ (void *) PyArray_XDECREF,
+ (void *) PyArray_SetStringFunction,
+ (void *) PyArray_DescrFromType,
+ (void *) PyArray_TypeObjectFromType,
+ (void *) PyArray_Zero,
+ (void *) PyArray_One,
+ (void *) PyArray_CastToType,
+ (void *) PyArray_CopyInto,
+ (void *) PyArray_CopyAnyInto,
+ (void *) PyArray_CanCastSafely,
+ (void *) PyArray_CanCastTo,
+ (void *) PyArray_ObjectType,
+ (void *) PyArray_DescrFromObject,
+ (void *) PyArray_ConvertToCommonType,
+ (void *) PyArray_DescrFromScalar,
+ (void *) PyArray_DescrFromTypeObject,
+ (void *) PyArray_Size,
+ (void *) PyArray_Scalar,
+ (void *) PyArray_FromScalar,
+ (void *) PyArray_ScalarAsCtype,
+ (void *) PyArray_CastScalarToCtype,
+ (void *) PyArray_CastScalarDirect,
+ (void *) PyArray_Pack,
+ NULL,
+ NULL,
+ NULL,
+ (void *) PyArray_FromAny,
+ (void *) PyArray_EnsureArray,
+ (void *) PyArray_EnsureAnyArray,
+ (void *) PyArray_FromFile,
+ (void *) PyArray_FromString,
+ (void *) PyArray_FromBuffer,
+ (void *) PyArray_FromIter,
+ (void *) PyArray_Return,
+ (void *) PyArray_GetField,
+ (void *) PyArray_SetField,
+ (void *) PyArray_Byteswap,
+ (void *) PyArray_Resize,
+ NULL,
+ NULL,
+ NULL,
+ (void *) PyArray_CopyObject,
+ (void *) PyArray_NewCopy,
+ (void *) PyArray_ToList,
+ (void *) PyArray_ToString,
+ (void *) PyArray_ToFile,
+ (void *) PyArray_Dump,
+ (void *) PyArray_Dumps,
+ (void *) PyArray_ValidType,
+ (void *) PyArray_UpdateFlags,
+ (void *) PyArray_New,
+ (void *) PyArray_NewFromDescr,
+ (void *) PyArray_DescrNew,
+ (void *) PyArray_DescrNewFromType,
+ (void *) PyArray_GetPriority,
+ (void *) PyArray_IterNew,
+ (void *) PyArray_MultiIterNew,
+ (void *) PyArray_PyIntAsInt,
+ (void *) PyArray_PyIntAsIntp,
+ (void *) PyArray_Broadcast,
+ NULL,
+ (void *) PyArray_FillWithScalar,
+ (void *) PyArray_CheckStrides,
+ (void *) PyArray_DescrNewByteorder,
+ (void *) PyArray_IterAllButAxis,
+ (void *) PyArray_CheckFromAny,
+ (void *) PyArray_FromArray,
+ (void *) PyArray_FromInterface,
+ (void *) PyArray_FromStructInterface,
+ (void *) PyArray_FromArrayAttr,
+ (void *) PyArray_ScalarKind,
+ (void *) PyArray_CanCoerceScalar,
+ NULL,
+ (void *) PyArray_CanCastScalar,
+ NULL,
+ (void *) PyArray_RemoveSmallest,
+ (void *) PyArray_ElementStrides,
+ (void *) PyArray_Item_INCREF,
+ (void *) PyArray_Item_XDECREF,
+ NULL,
+ (void *) PyArray_Transpose,
+ (void *) PyArray_TakeFrom,
+ (void *) PyArray_PutTo,
+ (void *) PyArray_PutMask,
+ (void *) PyArray_Repeat,
+ (void *) PyArray_Choose,
+ (void *) PyArray_Sort,
+ (void *) PyArray_ArgSort,
+ (void *) PyArray_SearchSorted,
+ (void *) PyArray_ArgMax,
+ (void *) PyArray_ArgMin,
+ (void *) PyArray_Reshape,
+ (void *) PyArray_Newshape,
+ (void *) PyArray_Squeeze,
+ (void *) PyArray_View,
+ (void *) PyArray_SwapAxes,
+ (void *) PyArray_Max,
+ (void *) PyArray_Min,
+ (void *) PyArray_Ptp,
+ (void *) PyArray_Mean,
+ (void *) PyArray_Trace,
+ (void *) PyArray_Diagonal,
+ (void *) PyArray_Clip,
+ (void *) PyArray_Conjugate,
+ (void *) PyArray_Nonzero,
+ (void *) PyArray_Std,
+ (void *) PyArray_Sum,
+ (void *) PyArray_CumSum,
+ (void *) PyArray_Prod,
+ (void *) PyArray_CumProd,
+ (void *) PyArray_All,
+ (void *) PyArray_Any,
+ (void *) PyArray_Compress,
+ (void *) PyArray_Flatten,
+ (void *) PyArray_Ravel,
+ (void *) PyArray_MultiplyList,
+ (void *) PyArray_MultiplyIntList,
+ (void *) PyArray_GetPtr,
+ (void *) PyArray_CompareLists,
+ (void *) PyArray_AsCArray,
+ NULL,
+ NULL,
+ (void *) PyArray_Free,
+ (void *) PyArray_Converter,
+ (void *) PyArray_IntpFromSequence,
+ (void *) PyArray_Concatenate,
+ (void *) PyArray_InnerProduct,
+ (void *) PyArray_MatrixProduct,
+ NULL,
+ (void *) PyArray_Correlate,
+ NULL,
+ (void *) PyArray_DescrConverter,
+ (void *) PyArray_DescrConverter2,
+ (void *) PyArray_IntpConverter,
+ (void *) PyArray_BufferConverter,
+ (void *) PyArray_AxisConverter,
+ (void *) PyArray_BoolConverter,
+ (void *) PyArray_ByteorderConverter,
+ (void *) PyArray_OrderConverter,
+ (void *) PyArray_EquivTypes,
+ (void *) PyArray_Zeros,
+ (void *) PyArray_Empty,
+ (void *) PyArray_Where,
+ (void *) PyArray_Arange,
+ (void *) PyArray_ArangeObj,
+ (void *) PyArray_SortkindConverter,
+ (void *) PyArray_LexSort,
+ (void *) PyArray_Round,
+ (void *) PyArray_EquivTypenums,
+ (void *) PyArray_RegisterDataType,
+ (void *) PyArray_RegisterCastFunc,
+ (void *) PyArray_RegisterCanCast,
+ (void *) PyArray_InitArrFuncs,
+ (void *) PyArray_IntTupleFromIntp,
+ NULL,
+ (void *) PyArray_ClipmodeConverter,
+ (void *) PyArray_OutputConverter,
+ (void *) PyArray_BroadcastToShape,
+ NULL,
+ NULL,
+ (void *) PyArray_DescrAlignConverter,
+ (void *) PyArray_DescrAlignConverter2,
+ (void *) PyArray_SearchsideConverter,
+ (void *) PyArray_CheckAxis,
+ (void *) PyArray_OverflowMultiplyList,
+ NULL,
+ (void *) PyArray_MultiIterFromObjects,
+ (void *) PyArray_GetEndianness,
+ (void *) PyArray_GetNDArrayCFeatureVersion,
+ (void *) PyArray_Correlate2,
+ (void *) PyArray_NeighborhoodIterNew,
+ (void *) &PyTimeIntegerArrType_Type,
+ (void *) &PyDatetimeArrType_Type,
+ (void *) &PyTimedeltaArrType_Type,
+ (void *) &PyHalfArrType_Type,
+ (void *) &NpyIter_Type,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ (void *) NpyIter_GetTransferFlags,
+ (void *) NpyIter_New,
+ (void *) NpyIter_MultiNew,
+ (void *) NpyIter_AdvancedNew,
+ (void *) NpyIter_Copy,
+ (void *) NpyIter_Deallocate,
+ (void *) NpyIter_HasDelayedBufAlloc,
+ (void *) NpyIter_HasExternalLoop,
+ (void *) NpyIter_EnableExternalLoop,
+ (void *) NpyIter_GetInnerStrideArray,
+ (void *) NpyIter_GetInnerLoopSizePtr,
+ (void *) NpyIter_Reset,
+ (void *) NpyIter_ResetBasePointers,
+ (void *) NpyIter_ResetToIterIndexRange,
+ (void *) NpyIter_GetNDim,
+ (void *) NpyIter_GetNOp,
+ (void *) NpyIter_GetIterNext,
+ (void *) NpyIter_GetIterSize,
+ (void *) NpyIter_GetIterIndexRange,
+ (void *) NpyIter_GetIterIndex,
+ (void *) NpyIter_GotoIterIndex,
+ (void *) NpyIter_HasMultiIndex,
+ (void *) NpyIter_GetShape,
+ (void *) NpyIter_GetGetMultiIndex,
+ (void *) NpyIter_GotoMultiIndex,
+ (void *) NpyIter_RemoveMultiIndex,
+ (void *) NpyIter_HasIndex,
+ (void *) NpyIter_IsBuffered,
+ (void *) NpyIter_IsGrowInner,
+ (void *) NpyIter_GetBufferSize,
+ (void *) NpyIter_GetIndexPtr,
+ (void *) NpyIter_GotoIndex,
+ (void *) NpyIter_GetDataPtrArray,
+ (void *) NpyIter_GetDescrArray,
+ (void *) NpyIter_GetOperandArray,
+ (void *) NpyIter_GetIterView,
+ (void *) NpyIter_GetReadFlags,
+ (void *) NpyIter_GetWriteFlags,
+ (void *) NpyIter_DebugPrint,
+ (void *) NpyIter_IterationNeedsAPI,
+ (void *) NpyIter_GetInnerFixedStrideArray,
+ (void *) NpyIter_RemoveAxis,
+ (void *) NpyIter_GetAxisStrideArray,
+ (void *) NpyIter_RequiresBuffering,
+ (void *) NpyIter_GetInitialDataPtrArray,
+ (void *) NpyIter_CreateCompatibleStrides,
+ (void *) PyArray_CastingConverter,
+ (void *) PyArray_CountNonzero,
+ (void *) PyArray_PromoteTypes,
+ (void *) PyArray_MinScalarType,
+ (void *) PyArray_ResultType,
+ (void *) PyArray_CanCastArrayTo,
+ (void *) PyArray_CanCastTypeTo,
+ (void *) PyArray_EinsteinSum,
+ (void *) PyArray_NewLikeArray,
+ NULL,
+ (void *) PyArray_ConvertClipmodeSequence,
+ (void *) PyArray_MatrixProduct2,
+ (void *) NpyIter_IsFirstVisit,
+ (void *) PyArray_SetBaseObject,
+ (void *) PyArray_CreateSortedStridePerm,
+ (void *) PyArray_RemoveAxesInPlace,
+ (void *) PyArray_DebugPrint,
+ (void *) PyArray_FailUnlessWriteable,
+ (void *) PyArray_SetUpdateIfCopyBase,
+ (void *) PyDataMem_NEW,
+ (void *) PyDataMem_FREE,
+ (void *) PyDataMem_RENEW,
+ NULL,
+ (NPY_CASTING *) &NPY_DEFAULT_ASSIGN_CASTING,
+ NULL,
+ NULL,
+ NULL,
+ (void *) PyArray_Partition,
+ (void *) PyArray_ArgPartition,
+ (void *) PyArray_SelectkindConverter,
+ (void *) PyDataMem_NEW_ZEROED,
+ (void *) PyArray_CheckAnyScalarExact,
+ NULL,
+ (void *) PyArray_ResolveWritebackIfCopy,
+ (void *) PyArray_SetWritebackIfCopyBase,
+ (void *) PyDataMem_SetHandler,
+ (void *) PyDataMem_GetHandler,
+ (PyObject* *) &PyDataMem_DefaultHandler,
+ (void *) NpyDatetime_ConvertDatetime64ToDatetimeStruct,
+ (void *) NpyDatetime_ConvertDatetimeStructToDatetime64,
+ (void *) NpyDatetime_ConvertPyDateTimeToDatetimeStruct,
+ (void *) NpyDatetime_GetDatetimeISO8601StrLen,
+ (void *) NpyDatetime_MakeISO8601Datetime,
+ (void *) NpyDatetime_ParseISO8601Datetime,
+ (void *) NpyString_load,
+ (void *) NpyString_pack,
+ (void *) NpyString_pack_null,
+ (void *) NpyString_acquire_allocator,
+ (void *) NpyString_acquire_allocators,
+ (void *) NpyString_release_allocator,
+ (void *) NpyString_release_allocators,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ (void *) PyArray_GetDefaultDescr,
+ (void *) PyArrayInitDTypeMeta_FromSpec,
+ (void *) PyArray_CommonDType,
+ (void *) PyArray_PromoteDTypeSequence,
+ (void *) _PyDataType_GetArrFuncs,
+ NULL,
+ NULL,
+ NULL
+};
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/include/numpy/__multiarray_api.h b/python/user_packages/Python313/site-packages/numpy/_core/include/numpy/__multiarray_api.h
new file mode 100644
index 0000000000000000000000000000000000000000..5bd89a3bd80f6d26c3b84ce43c84371883a518f1
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/include/numpy/__multiarray_api.h
@@ -0,0 +1,1628 @@
+
+#if defined(_MULTIARRAYMODULE) || defined(WITH_CPYCHECKER_STEALS_REFERENCE_TO_ARG_ATTRIBUTE)
+
+typedef struct {
+ PyObject_HEAD
+ npy_bool obval;
+} PyBoolScalarObject;
+
+extern NPY_NO_EXPORT PyTypeObject PyArrayNeighborhoodIter_Type;
+extern NPY_NO_EXPORT PyBoolScalarObject _PyArrayScalar_BoolValues[2];
+
+NPY_NO_EXPORT unsigned int PyArray_GetNDArrayCVersion \
+ (void);
+extern NPY_NO_EXPORT PyTypeObject PyArray_Type;
+
+extern NPY_NO_EXPORT PyArray_DTypeMeta PyArrayDescr_TypeFull;
+#define PyArrayDescr_Type (*(PyTypeObject *)(&PyArrayDescr_TypeFull))
+
+extern NPY_NO_EXPORT PyTypeObject PyArrayIter_Type;
+
+extern NPY_NO_EXPORT PyTypeObject PyArrayMultiIter_Type;
+
+extern NPY_NO_EXPORT int NPY_NUMUSERTYPES;
+
+extern NPY_NO_EXPORT PyTypeObject PyBoolArrType_Type;
+
+extern NPY_NO_EXPORT PyBoolScalarObject _PyArrayScalar_BoolValues[2];
+
+extern NPY_NO_EXPORT PyTypeObject PyGenericArrType_Type;
+
+extern NPY_NO_EXPORT PyTypeObject PyNumberArrType_Type;
+
+extern NPY_NO_EXPORT PyTypeObject PyIntegerArrType_Type;
+
+extern NPY_NO_EXPORT PyTypeObject PySignedIntegerArrType_Type;
+
+extern NPY_NO_EXPORT PyTypeObject PyUnsignedIntegerArrType_Type;
+
+extern NPY_NO_EXPORT PyTypeObject PyInexactArrType_Type;
+
+extern NPY_NO_EXPORT PyTypeObject PyFloatingArrType_Type;
+
+extern NPY_NO_EXPORT PyTypeObject PyComplexFloatingArrType_Type;
+
+extern NPY_NO_EXPORT PyTypeObject PyFlexibleArrType_Type;
+
+extern NPY_NO_EXPORT PyTypeObject PyCharacterArrType_Type;
+
+extern NPY_NO_EXPORT PyTypeObject PyByteArrType_Type;
+
+extern NPY_NO_EXPORT PyTypeObject PyShortArrType_Type;
+
+extern NPY_NO_EXPORT PyTypeObject PyIntArrType_Type;
+
+extern NPY_NO_EXPORT PyTypeObject PyLongArrType_Type;
+
+extern NPY_NO_EXPORT PyTypeObject PyLongLongArrType_Type;
+
+extern NPY_NO_EXPORT PyTypeObject PyUByteArrType_Type;
+
+extern NPY_NO_EXPORT PyTypeObject PyUShortArrType_Type;
+
+extern NPY_NO_EXPORT PyTypeObject PyUIntArrType_Type;
+
+extern NPY_NO_EXPORT PyTypeObject PyULongArrType_Type;
+
+extern NPY_NO_EXPORT PyTypeObject PyULongLongArrType_Type;
+
+extern NPY_NO_EXPORT PyTypeObject PyFloatArrType_Type;
+
+extern NPY_NO_EXPORT PyTypeObject PyDoubleArrType_Type;
+
+extern NPY_NO_EXPORT PyTypeObject PyLongDoubleArrType_Type;
+
+extern NPY_NO_EXPORT PyTypeObject PyCFloatArrType_Type;
+
+extern NPY_NO_EXPORT PyTypeObject PyCDoubleArrType_Type;
+
+extern NPY_NO_EXPORT PyTypeObject PyCLongDoubleArrType_Type;
+
+extern NPY_NO_EXPORT PyTypeObject PyObjectArrType_Type;
+
+extern NPY_NO_EXPORT PyTypeObject PyStringArrType_Type;
+
+extern NPY_NO_EXPORT PyTypeObject PyUnicodeArrType_Type;
+
+extern NPY_NO_EXPORT PyTypeObject PyVoidArrType_Type;
+
+NPY_NO_EXPORT int PyArray_INCREF \
+ (PyArrayObject *);
+NPY_NO_EXPORT int PyArray_XDECREF \
+ (PyArrayObject *);
+NPY_NO_EXPORT void PyArray_SetStringFunction \
+ (PyObject *, int);
+NPY_NO_EXPORT PyArray_Descr * PyArray_DescrFromType \
+ (int);
+NPY_NO_EXPORT PyObject * PyArray_TypeObjectFromType \
+ (int);
+NPY_NO_EXPORT char * PyArray_Zero \
+ (PyArrayObject *);
+NPY_NO_EXPORT char * PyArray_One \
+ (PyArrayObject *);
+NPY_NO_EXPORT NPY_STEALS_REF_TO_ARG(2) PyObject * PyArray_CastToType \
+ (PyArrayObject *, PyArray_Descr *, int);
+NPY_NO_EXPORT int PyArray_CopyInto \
+ (PyArrayObject *, PyArrayObject *);
+NPY_NO_EXPORT int PyArray_CopyAnyInto \
+ (PyArrayObject *, PyArrayObject *);
+NPY_NO_EXPORT int PyArray_CanCastSafely \
+ (int, int);
+NPY_NO_EXPORT npy_bool PyArray_CanCastTo \
+ (PyArray_Descr *, PyArray_Descr *);
+NPY_NO_EXPORT int PyArray_ObjectType \
+ (PyObject *, int);
+NPY_NO_EXPORT PyArray_Descr * PyArray_DescrFromObject \
+ (PyObject *, PyArray_Descr *);
+NPY_NO_EXPORT PyArrayObject ** PyArray_ConvertToCommonType \
+ (PyObject *, int *);
+NPY_NO_EXPORT PyArray_Descr * PyArray_DescrFromScalar \
+ (PyObject *);
+NPY_NO_EXPORT PyArray_Descr * PyArray_DescrFromTypeObject \
+ (PyObject *);
+NPY_NO_EXPORT npy_intp PyArray_Size \
+ (PyObject *);
+NPY_NO_EXPORT PyObject * PyArray_Scalar \
+ (void *, PyArray_Descr *, PyObject *);
+NPY_NO_EXPORT NPY_STEALS_REF_TO_ARG(2) PyObject * PyArray_FromScalar \
+ (PyObject *, PyArray_Descr *);
+NPY_NO_EXPORT void PyArray_ScalarAsCtype \
+ (PyObject *, void *);
+NPY_NO_EXPORT int PyArray_CastScalarToCtype \
+ (PyObject *, void *, PyArray_Descr *);
+NPY_NO_EXPORT int PyArray_CastScalarDirect \
+ (PyObject *, PyArray_Descr *, void *, int);
+NPY_NO_EXPORT int PyArray_Pack \
+ (PyArray_Descr *, void *, PyObject *);
+NPY_NO_EXPORT NPY_STEALS_REF_TO_ARG(2) PyObject * PyArray_FromAny \
+ (PyObject *, PyArray_Descr *, int, int, int, PyObject *);
+NPY_NO_EXPORT NPY_STEALS_REF_TO_ARG(1) PyObject * PyArray_EnsureArray \
+ (PyObject *);
+NPY_NO_EXPORT NPY_STEALS_REF_TO_ARG(1) PyObject * PyArray_EnsureAnyArray \
+ (PyObject *);
+NPY_NO_EXPORT PyObject * PyArray_FromFile \
+ (FILE *, PyArray_Descr *, npy_intp, char *);
+NPY_NO_EXPORT PyObject * PyArray_FromString \
+ (char *, npy_intp, PyArray_Descr *, npy_intp, char *);
+NPY_NO_EXPORT PyObject * PyArray_FromBuffer \
+ (PyObject *, PyArray_Descr *, npy_intp, npy_intp);
+NPY_NO_EXPORT NPY_STEALS_REF_TO_ARG(2) PyObject * PyArray_FromIter \
+ (PyObject *, PyArray_Descr *, npy_intp);
+NPY_NO_EXPORT NPY_STEALS_REF_TO_ARG(1) PyObject * PyArray_Return \
+ (PyArrayObject *);
+NPY_NO_EXPORT NPY_STEALS_REF_TO_ARG(2) PyObject * PyArray_GetField \
+ (PyArrayObject *, PyArray_Descr *, int);
+NPY_NO_EXPORT NPY_STEALS_REF_TO_ARG(2) int PyArray_SetField \
+ (PyArrayObject *, PyArray_Descr *, int, PyObject *);
+NPY_NO_EXPORT PyObject * PyArray_Byteswap \
+ (PyArrayObject *, npy_bool);
+NPY_NO_EXPORT PyObject * PyArray_Resize \
+ (PyArrayObject *, PyArray_Dims *, int, NPY_ORDER NPY_UNUSED(order));
+NPY_NO_EXPORT int PyArray_CopyObject \
+ (PyArrayObject *, PyObject *);
+NPY_NO_EXPORT PyObject * PyArray_NewCopy \
+ (PyArrayObject *, NPY_ORDER);
+NPY_NO_EXPORT PyObject * PyArray_ToList \
+ (PyArrayObject *);
+NPY_NO_EXPORT PyObject * PyArray_ToString \
+ (PyArrayObject *, NPY_ORDER);
+NPY_NO_EXPORT int PyArray_ToFile \
+ (PyArrayObject *, FILE *, char *, char *);
+NPY_NO_EXPORT int PyArray_Dump \
+ (PyObject *, PyObject *, int);
+NPY_NO_EXPORT PyObject * PyArray_Dumps \
+ (PyObject *, int);
+NPY_NO_EXPORT int PyArray_ValidType \
+ (int);
+NPY_NO_EXPORT void PyArray_UpdateFlags \
+ (PyArrayObject *, int);
+NPY_NO_EXPORT PyObject * PyArray_New \
+ (PyTypeObject *, int, npy_intp const *, int, npy_intp const *, void *, int, int, PyObject *);
+NPY_NO_EXPORT NPY_STEALS_REF_TO_ARG(2) PyObject * PyArray_NewFromDescr \
+ (PyTypeObject *, PyArray_Descr *, int, npy_intp const *, npy_intp const *, void *, int, PyObject *);
+NPY_NO_EXPORT PyArray_Descr * PyArray_DescrNew \
+ (PyArray_Descr *);
+NPY_NO_EXPORT PyArray_Descr * PyArray_DescrNewFromType \
+ (int);
+NPY_NO_EXPORT double PyArray_GetPriority \
+ (PyObject *, double);
+NPY_NO_EXPORT PyObject * PyArray_IterNew \
+ (PyObject *);
+NPY_NO_EXPORT PyObject* PyArray_MultiIterNew \
+ (int, ...);
+NPY_NO_EXPORT int PyArray_PyIntAsInt \
+ (PyObject *);
+NPY_NO_EXPORT npy_intp PyArray_PyIntAsIntp \
+ (PyObject *);
+NPY_NO_EXPORT int PyArray_Broadcast \
+ (PyArrayMultiIterObject *);
+NPY_NO_EXPORT int PyArray_FillWithScalar \
+ (PyArrayObject *, PyObject *);
+NPY_NO_EXPORT npy_bool PyArray_CheckStrides \
+ (int, int, npy_intp, npy_intp, npy_intp const *, npy_intp const *);
+NPY_NO_EXPORT PyArray_Descr * PyArray_DescrNewByteorder \
+ (PyArray_Descr *, char);
+NPY_NO_EXPORT PyObject * PyArray_IterAllButAxis \
+ (PyObject *, int *);
+NPY_NO_EXPORT NPY_STEALS_REF_TO_ARG(2) PyObject * PyArray_CheckFromAny \
+ (PyObject *, PyArray_Descr *, int, int, int, PyObject *);
+NPY_NO_EXPORT NPY_STEALS_REF_TO_ARG(2) PyObject * PyArray_FromArray \
+ (PyArrayObject *, PyArray_Descr *, int);
+NPY_NO_EXPORT PyObject * PyArray_FromInterface \
+ (PyObject *);
+NPY_NO_EXPORT PyObject * PyArray_FromStructInterface \
+ (PyObject *);
+NPY_NO_EXPORT PyObject * PyArray_FromArrayAttr \
+ (PyObject *, PyArray_Descr *, PyObject *);
+NPY_NO_EXPORT NPY_SCALARKIND PyArray_ScalarKind \
+ (int, PyArrayObject **);
+NPY_NO_EXPORT int PyArray_CanCoerceScalar \
+ (int, int, NPY_SCALARKIND);
+NPY_NO_EXPORT npy_bool PyArray_CanCastScalar \
+ (PyTypeObject *, PyTypeObject *);
+NPY_NO_EXPORT int PyArray_RemoveSmallest \
+ (PyArrayMultiIterObject *);
+NPY_NO_EXPORT int PyArray_ElementStrides \
+ (PyObject *);
+NPY_NO_EXPORT void PyArray_Item_INCREF \
+ (char *, PyArray_Descr *);
+NPY_NO_EXPORT void PyArray_Item_XDECREF \
+ (char *, PyArray_Descr *);
+NPY_NO_EXPORT PyObject * PyArray_Transpose \
+ (PyArrayObject *, PyArray_Dims *);
+NPY_NO_EXPORT PyObject * PyArray_TakeFrom \
+ (PyArrayObject *, PyObject *, int, PyArrayObject *, NPY_CLIPMODE);
+NPY_NO_EXPORT PyObject * PyArray_PutTo \
+ (PyArrayObject *, PyObject*, PyObject *, NPY_CLIPMODE);
+NPY_NO_EXPORT PyObject * PyArray_PutMask \
+ (PyArrayObject *, PyObject*, PyObject*);
+NPY_NO_EXPORT PyObject * PyArray_Repeat \
+ (PyArrayObject *, PyObject *, int);
+NPY_NO_EXPORT PyObject * PyArray_Choose \
+ (PyArrayObject *, PyObject *, PyArrayObject *, NPY_CLIPMODE);
+NPY_NO_EXPORT int PyArray_Sort \
+ (PyArrayObject *, int, NPY_SORTKIND);
+NPY_NO_EXPORT PyObject * PyArray_ArgSort \
+ (PyArrayObject *, int, NPY_SORTKIND);
+NPY_NO_EXPORT PyObject * PyArray_SearchSorted \
+ (PyArrayObject *, PyObject *, NPY_SEARCHSIDE, PyObject *);
+NPY_NO_EXPORT PyObject * PyArray_ArgMax \
+ (PyArrayObject *, int, PyArrayObject *);
+NPY_NO_EXPORT PyObject * PyArray_ArgMin \
+ (PyArrayObject *, int, PyArrayObject *);
+NPY_NO_EXPORT PyObject * PyArray_Reshape \
+ (PyArrayObject *, PyObject *);
+NPY_NO_EXPORT PyObject * PyArray_Newshape \
+ (PyArrayObject *, PyArray_Dims *, NPY_ORDER);
+NPY_NO_EXPORT PyObject * PyArray_Squeeze \
+ (PyArrayObject *);
+NPY_NO_EXPORT NPY_STEALS_REF_TO_ARG(2) PyObject * PyArray_View \
+ (PyArrayObject *, PyArray_Descr *, PyTypeObject *);
+NPY_NO_EXPORT PyObject * PyArray_SwapAxes \
+ (PyArrayObject *, int, int);
+NPY_NO_EXPORT PyObject * PyArray_Max \
+ (PyArrayObject *, int, PyArrayObject *);
+NPY_NO_EXPORT PyObject * PyArray_Min \
+ (PyArrayObject *, int, PyArrayObject *);
+NPY_NO_EXPORT PyObject * PyArray_Ptp \
+ (PyArrayObject *, int, PyArrayObject *);
+NPY_NO_EXPORT PyObject * PyArray_Mean \
+ (PyArrayObject *, int, int, PyArrayObject *);
+NPY_NO_EXPORT PyObject * PyArray_Trace \
+ (PyArrayObject *, int, int, int, int, PyArrayObject *);
+NPY_NO_EXPORT PyObject * PyArray_Diagonal \
+ (PyArrayObject *, int, int, int);
+NPY_NO_EXPORT PyObject * PyArray_Clip \
+ (PyArrayObject *, PyObject *, PyObject *, PyArrayObject *);
+NPY_NO_EXPORT PyObject * PyArray_Conjugate \
+ (PyArrayObject *, PyArrayObject *);
+NPY_NO_EXPORT PyObject * PyArray_Nonzero \
+ (PyArrayObject *);
+NPY_NO_EXPORT PyObject * PyArray_Std \
+ (PyArrayObject *, int, int, PyArrayObject *, int);
+NPY_NO_EXPORT PyObject * PyArray_Sum \
+ (PyArrayObject *, int, int, PyArrayObject *);
+NPY_NO_EXPORT PyObject * PyArray_CumSum \
+ (PyArrayObject *, int, int, PyArrayObject *);
+NPY_NO_EXPORT PyObject * PyArray_Prod \
+ (PyArrayObject *, int, int, PyArrayObject *);
+NPY_NO_EXPORT PyObject * PyArray_CumProd \
+ (PyArrayObject *, int, int, PyArrayObject *);
+NPY_NO_EXPORT PyObject * PyArray_All \
+ (PyArrayObject *, int, PyArrayObject *);
+NPY_NO_EXPORT PyObject * PyArray_Any \
+ (PyArrayObject *, int, PyArrayObject *);
+NPY_NO_EXPORT PyObject * PyArray_Compress \
+ (PyArrayObject *, PyObject *, int, PyArrayObject *);
+NPY_NO_EXPORT PyObject * PyArray_Flatten \
+ (PyArrayObject *, NPY_ORDER);
+NPY_NO_EXPORT PyObject * PyArray_Ravel \
+ (PyArrayObject *, NPY_ORDER);
+NPY_NO_EXPORT npy_intp PyArray_MultiplyList \
+ (npy_intp const *, int);
+NPY_NO_EXPORT int PyArray_MultiplyIntList \
+ (int const *, int);
+NPY_NO_EXPORT void * PyArray_GetPtr \
+ (PyArrayObject *, npy_intp const*);
+NPY_NO_EXPORT int PyArray_CompareLists \
+ (npy_intp const *, npy_intp const *, int);
+NPY_NO_EXPORT NPY_STEALS_REF_TO_ARG(5) int PyArray_AsCArray \
+ (PyObject **, void *, npy_intp *, int, PyArray_Descr*);
+NPY_NO_EXPORT int PyArray_Free \
+ (PyObject *, void *);
+NPY_NO_EXPORT int PyArray_Converter \
+ (PyObject *, PyObject **);
+NPY_NO_EXPORT int PyArray_IntpFromSequence \
+ (PyObject *, npy_intp *, int);
+NPY_NO_EXPORT PyObject * PyArray_Concatenate \
+ (PyObject *, int);
+NPY_NO_EXPORT PyObject * PyArray_InnerProduct \
+ (PyObject *, PyObject *);
+NPY_NO_EXPORT PyObject * PyArray_MatrixProduct \
+ (PyObject *, PyObject *);
+NPY_NO_EXPORT PyObject * PyArray_Correlate \
+ (PyObject *, PyObject *, int);
+NPY_NO_EXPORT int PyArray_DescrConverter \
+ (PyObject *, PyArray_Descr **);
+NPY_NO_EXPORT int PyArray_DescrConverter2 \
+ (PyObject *, PyArray_Descr **);
+NPY_NO_EXPORT int PyArray_IntpConverter \
+ (PyObject *, PyArray_Dims *);
+NPY_NO_EXPORT int PyArray_BufferConverter \
+ (PyObject *, PyArray_Chunk *);
+NPY_NO_EXPORT int PyArray_AxisConverter \
+ (PyObject *, int *);
+NPY_NO_EXPORT int PyArray_BoolConverter \
+ (PyObject *, npy_bool *);
+NPY_NO_EXPORT int PyArray_ByteorderConverter \
+ (PyObject *, char *);
+NPY_NO_EXPORT int PyArray_OrderConverter \
+ (PyObject *, NPY_ORDER *);
+NPY_NO_EXPORT unsigned char PyArray_EquivTypes \
+ (PyArray_Descr *, PyArray_Descr *);
+NPY_NO_EXPORT NPY_STEALS_REF_TO_ARG(3) PyObject * PyArray_Zeros \
+ (int, npy_intp const *, PyArray_Descr *, int);
+NPY_NO_EXPORT NPY_STEALS_REF_TO_ARG(3) PyObject * PyArray_Empty \
+ (int, npy_intp const *, PyArray_Descr *, int);
+NPY_NO_EXPORT PyObject * PyArray_Where \
+ (PyObject *, PyObject *, PyObject *);
+NPY_NO_EXPORT PyObject * PyArray_Arange \
+ (double, double, double, int);
+NPY_NO_EXPORT PyObject * PyArray_ArangeObj \
+ (PyObject *, PyObject *, PyObject *, PyArray_Descr *);
+NPY_NO_EXPORT int PyArray_SortkindConverter \
+ (PyObject *, NPY_SORTKIND *);
+NPY_NO_EXPORT PyObject * PyArray_LexSort \
+ (PyObject *, int);
+NPY_NO_EXPORT PyObject * PyArray_Round \
+ (PyArrayObject *, int, PyArrayObject *);
+NPY_NO_EXPORT unsigned char PyArray_EquivTypenums \
+ (int, int);
+NPY_NO_EXPORT int PyArray_RegisterDataType \
+ (PyArray_DescrProto *);
+NPY_NO_EXPORT int PyArray_RegisterCastFunc \
+ (PyArray_Descr *, int, PyArray_VectorUnaryFunc *);
+NPY_NO_EXPORT int PyArray_RegisterCanCast \
+ (PyArray_Descr *, int, NPY_SCALARKIND);
+NPY_NO_EXPORT void PyArray_InitArrFuncs \
+ (PyArray_ArrFuncs *);
+NPY_NO_EXPORT PyObject * PyArray_IntTupleFromIntp \
+ (int, npy_intp const *);
+NPY_NO_EXPORT int PyArray_ClipmodeConverter \
+ (PyObject *, NPY_CLIPMODE *);
+NPY_NO_EXPORT int PyArray_OutputConverter \
+ (PyObject *, PyArrayObject **);
+NPY_NO_EXPORT PyObject * PyArray_BroadcastToShape \
+ (PyObject *, npy_intp *, int);
+NPY_NO_EXPORT int PyArray_DescrAlignConverter \
+ (PyObject *, PyArray_Descr **);
+NPY_NO_EXPORT int PyArray_DescrAlignConverter2 \
+ (PyObject *, PyArray_Descr **);
+NPY_NO_EXPORT int PyArray_SearchsideConverter \
+ (PyObject *, void *);
+NPY_NO_EXPORT PyObject * PyArray_CheckAxis \
+ (PyArrayObject *, int *, int);
+NPY_NO_EXPORT npy_intp PyArray_OverflowMultiplyList \
+ (npy_intp const *, int);
+NPY_NO_EXPORT PyObject* PyArray_MultiIterFromObjects \
+ (PyObject **, int, int, ...);
+NPY_NO_EXPORT int PyArray_GetEndianness \
+ (void);
+NPY_NO_EXPORT unsigned int PyArray_GetNDArrayCFeatureVersion \
+ (void);
+NPY_NO_EXPORT PyObject * PyArray_Correlate2 \
+ (PyObject *, PyObject *, int);
+NPY_NO_EXPORT PyObject* PyArray_NeighborhoodIterNew \
+ (PyArrayIterObject *, const npy_intp *, int, PyArrayObject*);
+extern NPY_NO_EXPORT PyTypeObject PyTimeIntegerArrType_Type;
+
+extern NPY_NO_EXPORT PyTypeObject PyDatetimeArrType_Type;
+
+extern NPY_NO_EXPORT PyTypeObject PyTimedeltaArrType_Type;
+
+extern NPY_NO_EXPORT PyTypeObject PyHalfArrType_Type;
+
+extern NPY_NO_EXPORT PyTypeObject NpyIter_Type;
+
+NPY_NO_EXPORT NPY_ARRAYMETHOD_FLAGS NpyIter_GetTransferFlags \
+ (NpyIter *);
+NPY_NO_EXPORT NpyIter * NpyIter_New \
+ (PyArrayObject *, npy_uint32, NPY_ORDER, NPY_CASTING, PyArray_Descr*);
+NPY_NO_EXPORT NpyIter * NpyIter_MultiNew \
+ (int, PyArrayObject **, npy_uint32, NPY_ORDER, NPY_CASTING, npy_uint32 *, PyArray_Descr **);
+NPY_NO_EXPORT NpyIter * NpyIter_AdvancedNew \
+ (int, PyArrayObject **, npy_uint32, NPY_ORDER, NPY_CASTING, npy_uint32 *, PyArray_Descr **, int, int **, npy_intp *, npy_intp);
+NPY_NO_EXPORT NpyIter * NpyIter_Copy \
+ (NpyIter *);
+NPY_NO_EXPORT int NpyIter_Deallocate \
+ (NpyIter *);
+NPY_NO_EXPORT npy_bool NpyIter_HasDelayedBufAlloc \
+ (NpyIter *);
+NPY_NO_EXPORT npy_bool NpyIter_HasExternalLoop \
+ (NpyIter *);
+NPY_NO_EXPORT int NpyIter_EnableExternalLoop \
+ (NpyIter *);
+NPY_NO_EXPORT npy_intp * NpyIter_GetInnerStrideArray \
+ (NpyIter *);
+NPY_NO_EXPORT npy_intp * NpyIter_GetInnerLoopSizePtr \
+ (NpyIter *);
+NPY_NO_EXPORT int NpyIter_Reset \
+ (NpyIter *, char **);
+NPY_NO_EXPORT int NpyIter_ResetBasePointers \
+ (NpyIter *, char **, char **);
+NPY_NO_EXPORT int NpyIter_ResetToIterIndexRange \
+ (NpyIter *, npy_intp, npy_intp, char **);
+NPY_NO_EXPORT int NpyIter_GetNDim \
+ (NpyIter *);
+NPY_NO_EXPORT int NpyIter_GetNOp \
+ (NpyIter *);
+NPY_NO_EXPORT NpyIter_IterNextFunc * NpyIter_GetIterNext \
+ (NpyIter *, char **);
+NPY_NO_EXPORT npy_intp NpyIter_GetIterSize \
+ (NpyIter *);
+NPY_NO_EXPORT void NpyIter_GetIterIndexRange \
+ (NpyIter *, npy_intp *, npy_intp *);
+NPY_NO_EXPORT npy_intp NpyIter_GetIterIndex \
+ (NpyIter *);
+NPY_NO_EXPORT int NpyIter_GotoIterIndex \
+ (NpyIter *, npy_intp);
+NPY_NO_EXPORT npy_bool NpyIter_HasMultiIndex \
+ (NpyIter *);
+NPY_NO_EXPORT int NpyIter_GetShape \
+ (NpyIter *, npy_intp *);
+NPY_NO_EXPORT NpyIter_GetMultiIndexFunc * NpyIter_GetGetMultiIndex \
+ (NpyIter *, char **);
+NPY_NO_EXPORT int NpyIter_GotoMultiIndex \
+ (NpyIter *, npy_intp const *);
+NPY_NO_EXPORT int NpyIter_RemoveMultiIndex \
+ (NpyIter *);
+NPY_NO_EXPORT npy_bool NpyIter_HasIndex \
+ (NpyIter *);
+NPY_NO_EXPORT npy_bool NpyIter_IsBuffered \
+ (NpyIter *);
+NPY_NO_EXPORT npy_bool NpyIter_IsGrowInner \
+ (NpyIter *);
+NPY_NO_EXPORT npy_intp NpyIter_GetBufferSize \
+ (NpyIter *);
+NPY_NO_EXPORT npy_intp * NpyIter_GetIndexPtr \
+ (NpyIter *);
+NPY_NO_EXPORT int NpyIter_GotoIndex \
+ (NpyIter *, npy_intp);
+NPY_NO_EXPORT char ** NpyIter_GetDataPtrArray \
+ (NpyIter *);
+NPY_NO_EXPORT PyArray_Descr ** NpyIter_GetDescrArray \
+ (NpyIter *);
+NPY_NO_EXPORT PyArrayObject ** NpyIter_GetOperandArray \
+ (NpyIter *);
+NPY_NO_EXPORT PyArrayObject * NpyIter_GetIterView \
+ (NpyIter *, npy_intp);
+NPY_NO_EXPORT void NpyIter_GetReadFlags \
+ (NpyIter *, char *);
+NPY_NO_EXPORT void NpyIter_GetWriteFlags \
+ (NpyIter *, char *);
+NPY_NO_EXPORT void NpyIter_DebugPrint \
+ (NpyIter *);
+NPY_NO_EXPORT npy_bool NpyIter_IterationNeedsAPI \
+ (NpyIter *);
+NPY_NO_EXPORT void NpyIter_GetInnerFixedStrideArray \
+ (NpyIter *, npy_intp *);
+NPY_NO_EXPORT int NpyIter_RemoveAxis \
+ (NpyIter *, int);
+NPY_NO_EXPORT npy_intp * NpyIter_GetAxisStrideArray \
+ (NpyIter *, int);
+NPY_NO_EXPORT npy_bool NpyIter_RequiresBuffering \
+ (NpyIter *);
+NPY_NO_EXPORT char ** NpyIter_GetInitialDataPtrArray \
+ (NpyIter *);
+NPY_NO_EXPORT int NpyIter_CreateCompatibleStrides \
+ (NpyIter *, npy_intp, npy_intp *);
+NPY_NO_EXPORT int PyArray_CastingConverter \
+ (PyObject *, NPY_CASTING *);
+NPY_NO_EXPORT npy_intp PyArray_CountNonzero \
+ (PyArrayObject *);
+NPY_NO_EXPORT PyArray_Descr * PyArray_PromoteTypes \
+ (PyArray_Descr *, PyArray_Descr *);
+NPY_NO_EXPORT PyArray_Descr * PyArray_MinScalarType \
+ (PyArrayObject *);
+NPY_NO_EXPORT PyArray_Descr * PyArray_ResultType \
+ (npy_intp, PyArrayObject *arrs[], npy_intp, PyArray_Descr *descrs[]);
+NPY_NO_EXPORT npy_bool PyArray_CanCastArrayTo \
+ (PyArrayObject *, PyArray_Descr *, NPY_CASTING);
+NPY_NO_EXPORT npy_bool PyArray_CanCastTypeTo \
+ (PyArray_Descr *, PyArray_Descr *, NPY_CASTING);
+NPY_NO_EXPORT PyArrayObject * PyArray_EinsteinSum \
+ (char *, npy_intp, PyArrayObject **, PyArray_Descr *, NPY_ORDER, NPY_CASTING, PyArrayObject *);
+NPY_NO_EXPORT NPY_STEALS_REF_TO_ARG(3) PyObject * PyArray_NewLikeArray \
+ (PyArrayObject *, NPY_ORDER, PyArray_Descr *, int);
+NPY_NO_EXPORT int PyArray_ConvertClipmodeSequence \
+ (PyObject *, NPY_CLIPMODE *, int);
+NPY_NO_EXPORT PyObject * PyArray_MatrixProduct2 \
+ (PyObject *, PyObject *, PyArrayObject*);
+NPY_NO_EXPORT npy_bool NpyIter_IsFirstVisit \
+ (NpyIter *, int);
+NPY_NO_EXPORT NPY_STEALS_REF_TO_ARG(2) int PyArray_SetBaseObject \
+ (PyArrayObject *, PyObject *);
+NPY_NO_EXPORT void PyArray_CreateSortedStridePerm \
+ (int, npy_intp const *, npy_stride_sort_item *);
+NPY_NO_EXPORT void PyArray_RemoveAxesInPlace \
+ (PyArrayObject *, const npy_bool *);
+NPY_NO_EXPORT void PyArray_DebugPrint \
+ (PyArrayObject *);
+NPY_NO_EXPORT int PyArray_FailUnlessWriteable \
+ (PyArrayObject *, const char *);
+NPY_NO_EXPORT NPY_STEALS_REF_TO_ARG(2) int PyArray_SetUpdateIfCopyBase \
+ (PyArrayObject *, PyArrayObject *);
+NPY_NO_EXPORT void * PyDataMem_NEW \
+ (size_t);
+NPY_NO_EXPORT void PyDataMem_FREE \
+ (void *);
+NPY_NO_EXPORT void * PyDataMem_RENEW \
+ (void *, size_t);
+extern NPY_NO_EXPORT NPY_CASTING NPY_DEFAULT_ASSIGN_CASTING;
+
+NPY_NO_EXPORT int PyArray_Partition \
+ (PyArrayObject *, PyArrayObject *, int, NPY_SELECTKIND);
+NPY_NO_EXPORT PyObject * PyArray_ArgPartition \
+ (PyArrayObject *, PyArrayObject *, int, NPY_SELECTKIND);
+NPY_NO_EXPORT int PyArray_SelectkindConverter \
+ (PyObject *, NPY_SELECTKIND *);
+NPY_NO_EXPORT void * PyDataMem_NEW_ZEROED \
+ (size_t, size_t);
+NPY_NO_EXPORT int PyArray_CheckAnyScalarExact \
+ (PyObject *);
+NPY_NO_EXPORT int PyArray_ResolveWritebackIfCopy \
+ (PyArrayObject *);
+NPY_NO_EXPORT int PyArray_SetWritebackIfCopyBase \
+ (PyArrayObject *, PyArrayObject *);
+NPY_NO_EXPORT PyObject * PyDataMem_SetHandler \
+ (PyObject *);
+NPY_NO_EXPORT PyObject * PyDataMem_GetHandler \
+ (void);
+extern NPY_NO_EXPORT PyObject* PyDataMem_DefaultHandler;
+
+NPY_NO_EXPORT int NpyDatetime_ConvertDatetime64ToDatetimeStruct \
+ (PyArray_DatetimeMetaData *, npy_datetime, npy_datetimestruct *);
+NPY_NO_EXPORT int NpyDatetime_ConvertDatetimeStructToDatetime64 \
+ (PyArray_DatetimeMetaData *, const npy_datetimestruct *, npy_datetime *);
+NPY_NO_EXPORT int NpyDatetime_ConvertPyDateTimeToDatetimeStruct \
+ (PyObject *, npy_datetimestruct *, NPY_DATETIMEUNIT *, int);
+NPY_NO_EXPORT int NpyDatetime_GetDatetimeISO8601StrLen \
+ (int, NPY_DATETIMEUNIT);
+NPY_NO_EXPORT int NpyDatetime_MakeISO8601Datetime \
+ (npy_datetimestruct *, char *, npy_intp, int, int, NPY_DATETIMEUNIT, int, NPY_CASTING);
+NPY_NO_EXPORT int NpyDatetime_ParseISO8601Datetime \
+ (char const *, Py_ssize_t, NPY_DATETIMEUNIT, NPY_CASTING, npy_datetimestruct *, NPY_DATETIMEUNIT *, npy_bool *);
+NPY_NO_EXPORT int NpyString_load \
+ (npy_string_allocator *, const npy_packed_static_string *, npy_static_string *);
+NPY_NO_EXPORT int NpyString_pack \
+ (npy_string_allocator *, npy_packed_static_string *, const char *, size_t);
+NPY_NO_EXPORT int NpyString_pack_null \
+ (npy_string_allocator *, npy_packed_static_string *);
+NPY_NO_EXPORT npy_string_allocator * NpyString_acquire_allocator \
+ (const PyArray_StringDTypeObject *);
+NPY_NO_EXPORT void NpyString_acquire_allocators \
+ (size_t, PyArray_Descr *const descrs[], npy_string_allocator *allocators[]);
+NPY_NO_EXPORT void NpyString_release_allocator \
+ (npy_string_allocator *);
+NPY_NO_EXPORT void NpyString_release_allocators \
+ (size_t, npy_string_allocator *allocators[]);
+NPY_NO_EXPORT PyArray_Descr * PyArray_GetDefaultDescr \
+ (PyArray_DTypeMeta *);
+NPY_NO_EXPORT int PyArrayInitDTypeMeta_FromSpec \
+ (PyArray_DTypeMeta *, PyArrayDTypeMeta_Spec *);
+NPY_NO_EXPORT PyArray_DTypeMeta * PyArray_CommonDType \
+ (PyArray_DTypeMeta *, PyArray_DTypeMeta *);
+NPY_NO_EXPORT PyArray_DTypeMeta * PyArray_PromoteDTypeSequence \
+ (npy_intp, PyArray_DTypeMeta **);
+NPY_NO_EXPORT PyArray_ArrFuncs * _PyDataType_GetArrFuncs \
+ (const PyArray_Descr *);
+
+#else
+
+#if defined(PY_ARRAY_UNIQUE_SYMBOL)
+ #define PyArray_API PY_ARRAY_UNIQUE_SYMBOL
+ #define _NPY_VERSION_CONCAT_HELPER2(x, y) x ## y
+ #define _NPY_VERSION_CONCAT_HELPER(arg) \
+ _NPY_VERSION_CONCAT_HELPER2(arg, PyArray_RUNTIME_VERSION)
+ #define PyArray_RUNTIME_VERSION \
+ _NPY_VERSION_CONCAT_HELPER(PY_ARRAY_UNIQUE_SYMBOL)
+#endif
+
+/* By default do not export API in an .so (was never the case on windows) */
+#ifndef NPY_API_SYMBOL_ATTRIBUTE
+ #define NPY_API_SYMBOL_ATTRIBUTE NPY_VISIBILITY_HIDDEN
+#endif
+
+#if defined(NO_IMPORT) || defined(NO_IMPORT_ARRAY)
+extern NPY_API_SYMBOL_ATTRIBUTE void **PyArray_API;
+extern NPY_API_SYMBOL_ATTRIBUTE int PyArray_RUNTIME_VERSION;
+#else
+#if defined(PY_ARRAY_UNIQUE_SYMBOL)
+NPY_API_SYMBOL_ATTRIBUTE void **PyArray_API;
+NPY_API_SYMBOL_ATTRIBUTE int PyArray_RUNTIME_VERSION;
+#else
+static void **PyArray_API = NULL;
+static int PyArray_RUNTIME_VERSION = 0;
+#endif
+#endif
+
+#define PyArray_GetNDArrayCVersion \
+ (*(unsigned int (*)(void)) \
+ PyArray_API[0])
+#define PyArray_Type (*(PyTypeObject *)PyArray_API[2])
+#define PyArrayDescr_Type (*(PyTypeObject *)PyArray_API[3])
+#define PyArrayIter_Type (*(PyTypeObject *)PyArray_API[5])
+#define PyArrayMultiIter_Type (*(PyTypeObject *)PyArray_API[6])
+#define NPY_NUMUSERTYPES (*(int *)PyArray_API[7])
+#define PyBoolArrType_Type (*(PyTypeObject *)PyArray_API[8])
+#define _PyArrayScalar_BoolValues ((PyBoolScalarObject *)PyArray_API[9])
+#define PyGenericArrType_Type (*(PyTypeObject *)PyArray_API[10])
+#define PyNumberArrType_Type (*(PyTypeObject *)PyArray_API[11])
+#define PyIntegerArrType_Type (*(PyTypeObject *)PyArray_API[12])
+#define PySignedIntegerArrType_Type (*(PyTypeObject *)PyArray_API[13])
+#define PyUnsignedIntegerArrType_Type (*(PyTypeObject *)PyArray_API[14])
+#define PyInexactArrType_Type (*(PyTypeObject *)PyArray_API[15])
+#define PyFloatingArrType_Type (*(PyTypeObject *)PyArray_API[16])
+#define PyComplexFloatingArrType_Type (*(PyTypeObject *)PyArray_API[17])
+#define PyFlexibleArrType_Type (*(PyTypeObject *)PyArray_API[18])
+#define PyCharacterArrType_Type (*(PyTypeObject *)PyArray_API[19])
+#define PyByteArrType_Type (*(PyTypeObject *)PyArray_API[20])
+#define PyShortArrType_Type (*(PyTypeObject *)PyArray_API[21])
+#define PyIntArrType_Type (*(PyTypeObject *)PyArray_API[22])
+#define PyLongArrType_Type (*(PyTypeObject *)PyArray_API[23])
+#define PyLongLongArrType_Type (*(PyTypeObject *)PyArray_API[24])
+#define PyUByteArrType_Type (*(PyTypeObject *)PyArray_API[25])
+#define PyUShortArrType_Type (*(PyTypeObject *)PyArray_API[26])
+#define PyUIntArrType_Type (*(PyTypeObject *)PyArray_API[27])
+#define PyULongArrType_Type (*(PyTypeObject *)PyArray_API[28])
+#define PyULongLongArrType_Type (*(PyTypeObject *)PyArray_API[29])
+#define PyFloatArrType_Type (*(PyTypeObject *)PyArray_API[30])
+#define PyDoubleArrType_Type (*(PyTypeObject *)PyArray_API[31])
+#define PyLongDoubleArrType_Type (*(PyTypeObject *)PyArray_API[32])
+#define PyCFloatArrType_Type (*(PyTypeObject *)PyArray_API[33])
+#define PyCDoubleArrType_Type (*(PyTypeObject *)PyArray_API[34])
+#define PyCLongDoubleArrType_Type (*(PyTypeObject *)PyArray_API[35])
+#define PyObjectArrType_Type (*(PyTypeObject *)PyArray_API[36])
+#define PyStringArrType_Type (*(PyTypeObject *)PyArray_API[37])
+#define PyUnicodeArrType_Type (*(PyTypeObject *)PyArray_API[38])
+#define PyVoidArrType_Type (*(PyTypeObject *)PyArray_API[39])
+#define PyArray_INCREF \
+ (*(int (*)(PyArrayObject *)) \
+ PyArray_API[42])
+#define PyArray_XDECREF \
+ (*(int (*)(PyArrayObject *)) \
+ PyArray_API[43])
+#define PyArray_SetStringFunction \
+ (*(void (*)(PyObject *, int)) \
+ PyArray_API[44])
+#define PyArray_DescrFromType \
+ (*(PyArray_Descr * (*)(int)) \
+ PyArray_API[45])
+#define PyArray_TypeObjectFromType \
+ (*(PyObject * (*)(int)) \
+ PyArray_API[46])
+#define PyArray_Zero \
+ (*(char * (*)(PyArrayObject *)) \
+ PyArray_API[47])
+#define PyArray_One \
+ (*(char * (*)(PyArrayObject *)) \
+ PyArray_API[48])
+#define PyArray_CastToType \
+ (*(PyObject * (*)(PyArrayObject *, PyArray_Descr *, int)) \
+ PyArray_API[49])
+#define PyArray_CopyInto \
+ (*(int (*)(PyArrayObject *, PyArrayObject *)) \
+ PyArray_API[50])
+#define PyArray_CopyAnyInto \
+ (*(int (*)(PyArrayObject *, PyArrayObject *)) \
+ PyArray_API[51])
+#define PyArray_CanCastSafely \
+ (*(int (*)(int, int)) \
+ PyArray_API[52])
+#define PyArray_CanCastTo \
+ (*(npy_bool (*)(PyArray_Descr *, PyArray_Descr *)) \
+ PyArray_API[53])
+#define PyArray_ObjectType \
+ (*(int (*)(PyObject *, int)) \
+ PyArray_API[54])
+#define PyArray_DescrFromObject \
+ (*(PyArray_Descr * (*)(PyObject *, PyArray_Descr *)) \
+ PyArray_API[55])
+#define PyArray_ConvertToCommonType \
+ (*(PyArrayObject ** (*)(PyObject *, int *)) \
+ PyArray_API[56])
+#define PyArray_DescrFromScalar \
+ (*(PyArray_Descr * (*)(PyObject *)) \
+ PyArray_API[57])
+#define PyArray_DescrFromTypeObject \
+ (*(PyArray_Descr * (*)(PyObject *)) \
+ PyArray_API[58])
+#define PyArray_Size \
+ (*(npy_intp (*)(PyObject *)) \
+ PyArray_API[59])
+#define PyArray_Scalar \
+ (*(PyObject * (*)(void *, PyArray_Descr *, PyObject *)) \
+ PyArray_API[60])
+#define PyArray_FromScalar \
+ (*(PyObject * (*)(PyObject *, PyArray_Descr *)) \
+ PyArray_API[61])
+#define PyArray_ScalarAsCtype \
+ (*(void (*)(PyObject *, void *)) \
+ PyArray_API[62])
+#define PyArray_CastScalarToCtype \
+ (*(int (*)(PyObject *, void *, PyArray_Descr *)) \
+ PyArray_API[63])
+#define PyArray_CastScalarDirect \
+ (*(int (*)(PyObject *, PyArray_Descr *, void *, int)) \
+ PyArray_API[64])
+
+#if NPY_FEATURE_VERSION >= NPY_2_0_API_VERSION
+#define PyArray_Pack \
+ (*(int (*)(PyArray_Descr *, void *, PyObject *)) \
+ PyArray_API[65])
+#endif
+#define PyArray_FromAny \
+ (*(PyObject * (*)(PyObject *, PyArray_Descr *, int, int, int, PyObject *)) \
+ PyArray_API[69])
+#define PyArray_EnsureArray \
+ (*(PyObject * (*)(PyObject *)) \
+ PyArray_API[70])
+#define PyArray_EnsureAnyArray \
+ (*(PyObject * (*)(PyObject *)) \
+ PyArray_API[71])
+#define PyArray_FromFile \
+ (*(PyObject * (*)(FILE *, PyArray_Descr *, npy_intp, char *)) \
+ PyArray_API[72])
+#define PyArray_FromString \
+ (*(PyObject * (*)(char *, npy_intp, PyArray_Descr *, npy_intp, char *)) \
+ PyArray_API[73])
+#define PyArray_FromBuffer \
+ (*(PyObject * (*)(PyObject *, PyArray_Descr *, npy_intp, npy_intp)) \
+ PyArray_API[74])
+#define PyArray_FromIter \
+ (*(PyObject * (*)(PyObject *, PyArray_Descr *, npy_intp)) \
+ PyArray_API[75])
+#define PyArray_Return \
+ (*(PyObject * (*)(PyArrayObject *)) \
+ PyArray_API[76])
+#define PyArray_GetField \
+ (*(PyObject * (*)(PyArrayObject *, PyArray_Descr *, int)) \
+ PyArray_API[77])
+#define PyArray_SetField \
+ (*(int (*)(PyArrayObject *, PyArray_Descr *, int, PyObject *)) \
+ PyArray_API[78])
+#define PyArray_Byteswap \
+ (*(PyObject * (*)(PyArrayObject *, npy_bool)) \
+ PyArray_API[79])
+#define PyArray_Resize \
+ (*(PyObject * (*)(PyArrayObject *, PyArray_Dims *, int, NPY_ORDER NPY_UNUSED(order))) \
+ PyArray_API[80])
+#define PyArray_CopyObject \
+ (*(int (*)(PyArrayObject *, PyObject *)) \
+ PyArray_API[84])
+#define PyArray_NewCopy \
+ (*(PyObject * (*)(PyArrayObject *, NPY_ORDER)) \
+ PyArray_API[85])
+#define PyArray_ToList \
+ (*(PyObject * (*)(PyArrayObject *)) \
+ PyArray_API[86])
+#define PyArray_ToString \
+ (*(PyObject * (*)(PyArrayObject *, NPY_ORDER)) \
+ PyArray_API[87])
+#define PyArray_ToFile \
+ (*(int (*)(PyArrayObject *, FILE *, char *, char *)) \
+ PyArray_API[88])
+#define PyArray_Dump \
+ (*(int (*)(PyObject *, PyObject *, int)) \
+ PyArray_API[89])
+#define PyArray_Dumps \
+ (*(PyObject * (*)(PyObject *, int)) \
+ PyArray_API[90])
+#define PyArray_ValidType \
+ (*(int (*)(int)) \
+ PyArray_API[91])
+#define PyArray_UpdateFlags \
+ (*(void (*)(PyArrayObject *, int)) \
+ PyArray_API[92])
+#define PyArray_New \
+ (*(PyObject * (*)(PyTypeObject *, int, npy_intp const *, int, npy_intp const *, void *, int, int, PyObject *)) \
+ PyArray_API[93])
+#define PyArray_NewFromDescr \
+ (*(PyObject * (*)(PyTypeObject *, PyArray_Descr *, int, npy_intp const *, npy_intp const *, void *, int, PyObject *)) \
+ PyArray_API[94])
+#define PyArray_DescrNew \
+ (*(PyArray_Descr * (*)(PyArray_Descr *)) \
+ PyArray_API[95])
+#define PyArray_DescrNewFromType \
+ (*(PyArray_Descr * (*)(int)) \
+ PyArray_API[96])
+#define PyArray_GetPriority \
+ (*(double (*)(PyObject *, double)) \
+ PyArray_API[97])
+#define PyArray_IterNew \
+ (*(PyObject * (*)(PyObject *)) \
+ PyArray_API[98])
+#define PyArray_MultiIterNew \
+ (*(PyObject* (*)(int, ...)) \
+ PyArray_API[99])
+#define PyArray_PyIntAsInt \
+ (*(int (*)(PyObject *)) \
+ PyArray_API[100])
+#define PyArray_PyIntAsIntp \
+ (*(npy_intp (*)(PyObject *)) \
+ PyArray_API[101])
+#define PyArray_Broadcast \
+ (*(int (*)(PyArrayMultiIterObject *)) \
+ PyArray_API[102])
+#define PyArray_FillWithScalar \
+ (*(int (*)(PyArrayObject *, PyObject *)) \
+ PyArray_API[104])
+#define PyArray_CheckStrides \
+ (*(npy_bool (*)(int, int, npy_intp, npy_intp, npy_intp const *, npy_intp const *)) \
+ PyArray_API[105])
+#define PyArray_DescrNewByteorder \
+ (*(PyArray_Descr * (*)(PyArray_Descr *, char)) \
+ PyArray_API[106])
+#define PyArray_IterAllButAxis \
+ (*(PyObject * (*)(PyObject *, int *)) \
+ PyArray_API[107])
+#define PyArray_CheckFromAny \
+ (*(PyObject * (*)(PyObject *, PyArray_Descr *, int, int, int, PyObject *)) \
+ PyArray_API[108])
+#define PyArray_FromArray \
+ (*(PyObject * (*)(PyArrayObject *, PyArray_Descr *, int)) \
+ PyArray_API[109])
+#define PyArray_FromInterface \
+ (*(PyObject * (*)(PyObject *)) \
+ PyArray_API[110])
+#define PyArray_FromStructInterface \
+ (*(PyObject * (*)(PyObject *)) \
+ PyArray_API[111])
+#define PyArray_FromArrayAttr \
+ (*(PyObject * (*)(PyObject *, PyArray_Descr *, PyObject *)) \
+ PyArray_API[112])
+#define PyArray_ScalarKind \
+ (*(NPY_SCALARKIND (*)(int, PyArrayObject **)) \
+ PyArray_API[113])
+#define PyArray_CanCoerceScalar \
+ (*(int (*)(int, int, NPY_SCALARKIND)) \
+ PyArray_API[114])
+#define PyArray_CanCastScalar \
+ (*(npy_bool (*)(PyTypeObject *, PyTypeObject *)) \
+ PyArray_API[116])
+#define PyArray_RemoveSmallest \
+ (*(int (*)(PyArrayMultiIterObject *)) \
+ PyArray_API[118])
+#define PyArray_ElementStrides \
+ (*(int (*)(PyObject *)) \
+ PyArray_API[119])
+#define PyArray_Item_INCREF \
+ (*(void (*)(char *, PyArray_Descr *)) \
+ PyArray_API[120])
+#define PyArray_Item_XDECREF \
+ (*(void (*)(char *, PyArray_Descr *)) \
+ PyArray_API[121])
+#define PyArray_Transpose \
+ (*(PyObject * (*)(PyArrayObject *, PyArray_Dims *)) \
+ PyArray_API[123])
+#define PyArray_TakeFrom \
+ (*(PyObject * (*)(PyArrayObject *, PyObject *, int, PyArrayObject *, NPY_CLIPMODE)) \
+ PyArray_API[124])
+#define PyArray_PutTo \
+ (*(PyObject * (*)(PyArrayObject *, PyObject*, PyObject *, NPY_CLIPMODE)) \
+ PyArray_API[125])
+#define PyArray_PutMask \
+ (*(PyObject * (*)(PyArrayObject *, PyObject*, PyObject*)) \
+ PyArray_API[126])
+#define PyArray_Repeat \
+ (*(PyObject * (*)(PyArrayObject *, PyObject *, int)) \
+ PyArray_API[127])
+#define PyArray_Choose \
+ (*(PyObject * (*)(PyArrayObject *, PyObject *, PyArrayObject *, NPY_CLIPMODE)) \
+ PyArray_API[128])
+#define PyArray_Sort \
+ (*(int (*)(PyArrayObject *, int, NPY_SORTKIND)) \
+ PyArray_API[129])
+#define PyArray_ArgSort \
+ (*(PyObject * (*)(PyArrayObject *, int, NPY_SORTKIND)) \
+ PyArray_API[130])
+#define PyArray_SearchSorted \
+ (*(PyObject * (*)(PyArrayObject *, PyObject *, NPY_SEARCHSIDE, PyObject *)) \
+ PyArray_API[131])
+#define PyArray_ArgMax \
+ (*(PyObject * (*)(PyArrayObject *, int, PyArrayObject *)) \
+ PyArray_API[132])
+#define PyArray_ArgMin \
+ (*(PyObject * (*)(PyArrayObject *, int, PyArrayObject *)) \
+ PyArray_API[133])
+#define PyArray_Reshape \
+ (*(PyObject * (*)(PyArrayObject *, PyObject *)) \
+ PyArray_API[134])
+#define PyArray_Newshape \
+ (*(PyObject * (*)(PyArrayObject *, PyArray_Dims *, NPY_ORDER)) \
+ PyArray_API[135])
+#define PyArray_Squeeze \
+ (*(PyObject * (*)(PyArrayObject *)) \
+ PyArray_API[136])
+#define PyArray_View \
+ (*(PyObject * (*)(PyArrayObject *, PyArray_Descr *, PyTypeObject *)) \
+ PyArray_API[137])
+#define PyArray_SwapAxes \
+ (*(PyObject * (*)(PyArrayObject *, int, int)) \
+ PyArray_API[138])
+#define PyArray_Max \
+ (*(PyObject * (*)(PyArrayObject *, int, PyArrayObject *)) \
+ PyArray_API[139])
+#define PyArray_Min \
+ (*(PyObject * (*)(PyArrayObject *, int, PyArrayObject *)) \
+ PyArray_API[140])
+#define PyArray_Ptp \
+ (*(PyObject * (*)(PyArrayObject *, int, PyArrayObject *)) \
+ PyArray_API[141])
+#define PyArray_Mean \
+ (*(PyObject * (*)(PyArrayObject *, int, int, PyArrayObject *)) \
+ PyArray_API[142])
+#define PyArray_Trace \
+ (*(PyObject * (*)(PyArrayObject *, int, int, int, int, PyArrayObject *)) \
+ PyArray_API[143])
+#define PyArray_Diagonal \
+ (*(PyObject * (*)(PyArrayObject *, int, int, int)) \
+ PyArray_API[144])
+#define PyArray_Clip \
+ (*(PyObject * (*)(PyArrayObject *, PyObject *, PyObject *, PyArrayObject *)) \
+ PyArray_API[145])
+#define PyArray_Conjugate \
+ (*(PyObject * (*)(PyArrayObject *, PyArrayObject *)) \
+ PyArray_API[146])
+#define PyArray_Nonzero \
+ (*(PyObject * (*)(PyArrayObject *)) \
+ PyArray_API[147])
+#define PyArray_Std \
+ (*(PyObject * (*)(PyArrayObject *, int, int, PyArrayObject *, int)) \
+ PyArray_API[148])
+#define PyArray_Sum \
+ (*(PyObject * (*)(PyArrayObject *, int, int, PyArrayObject *)) \
+ PyArray_API[149])
+#define PyArray_CumSum \
+ (*(PyObject * (*)(PyArrayObject *, int, int, PyArrayObject *)) \
+ PyArray_API[150])
+#define PyArray_Prod \
+ (*(PyObject * (*)(PyArrayObject *, int, int, PyArrayObject *)) \
+ PyArray_API[151])
+#define PyArray_CumProd \
+ (*(PyObject * (*)(PyArrayObject *, int, int, PyArrayObject *)) \
+ PyArray_API[152])
+#define PyArray_All \
+ (*(PyObject * (*)(PyArrayObject *, int, PyArrayObject *)) \
+ PyArray_API[153])
+#define PyArray_Any \
+ (*(PyObject * (*)(PyArrayObject *, int, PyArrayObject *)) \
+ PyArray_API[154])
+#define PyArray_Compress \
+ (*(PyObject * (*)(PyArrayObject *, PyObject *, int, PyArrayObject *)) \
+ PyArray_API[155])
+#define PyArray_Flatten \
+ (*(PyObject * (*)(PyArrayObject *, NPY_ORDER)) \
+ PyArray_API[156])
+#define PyArray_Ravel \
+ (*(PyObject * (*)(PyArrayObject *, NPY_ORDER)) \
+ PyArray_API[157])
+#define PyArray_MultiplyList \
+ (*(npy_intp (*)(npy_intp const *, int)) \
+ PyArray_API[158])
+#define PyArray_MultiplyIntList \
+ (*(int (*)(int const *, int)) \
+ PyArray_API[159])
+#define PyArray_GetPtr \
+ (*(void * (*)(PyArrayObject *, npy_intp const*)) \
+ PyArray_API[160])
+#define PyArray_CompareLists \
+ (*(int (*)(npy_intp const *, npy_intp const *, int)) \
+ PyArray_API[161])
+#define PyArray_AsCArray \
+ (*(int (*)(PyObject **, void *, npy_intp *, int, PyArray_Descr*)) \
+ PyArray_API[162])
+#define PyArray_Free \
+ (*(int (*)(PyObject *, void *)) \
+ PyArray_API[165])
+#define PyArray_Converter \
+ (*(int (*)(PyObject *, PyObject **)) \
+ PyArray_API[166])
+#define PyArray_IntpFromSequence \
+ (*(int (*)(PyObject *, npy_intp *, int)) \
+ PyArray_API[167])
+#define PyArray_Concatenate \
+ (*(PyObject * (*)(PyObject *, int)) \
+ PyArray_API[168])
+#define PyArray_InnerProduct \
+ (*(PyObject * (*)(PyObject *, PyObject *)) \
+ PyArray_API[169])
+#define PyArray_MatrixProduct \
+ (*(PyObject * (*)(PyObject *, PyObject *)) \
+ PyArray_API[170])
+#define PyArray_Correlate \
+ (*(PyObject * (*)(PyObject *, PyObject *, int)) \
+ PyArray_API[172])
+#define PyArray_DescrConverter \
+ (*(int (*)(PyObject *, PyArray_Descr **)) \
+ PyArray_API[174])
+#define PyArray_DescrConverter2 \
+ (*(int (*)(PyObject *, PyArray_Descr **)) \
+ PyArray_API[175])
+#define PyArray_IntpConverter \
+ (*(int (*)(PyObject *, PyArray_Dims *)) \
+ PyArray_API[176])
+#define PyArray_BufferConverter \
+ (*(int (*)(PyObject *, PyArray_Chunk *)) \
+ PyArray_API[177])
+#define PyArray_AxisConverter \
+ (*(int (*)(PyObject *, int *)) \
+ PyArray_API[178])
+#define PyArray_BoolConverter \
+ (*(int (*)(PyObject *, npy_bool *)) \
+ PyArray_API[179])
+#define PyArray_ByteorderConverter \
+ (*(int (*)(PyObject *, char *)) \
+ PyArray_API[180])
+#define PyArray_OrderConverter \
+ (*(int (*)(PyObject *, NPY_ORDER *)) \
+ PyArray_API[181])
+#define PyArray_EquivTypes \
+ (*(unsigned char (*)(PyArray_Descr *, PyArray_Descr *)) \
+ PyArray_API[182])
+#define PyArray_Zeros \
+ (*(PyObject * (*)(int, npy_intp const *, PyArray_Descr *, int)) \
+ PyArray_API[183])
+#define PyArray_Empty \
+ (*(PyObject * (*)(int, npy_intp const *, PyArray_Descr *, int)) \
+ PyArray_API[184])
+#define PyArray_Where \
+ (*(PyObject * (*)(PyObject *, PyObject *, PyObject *)) \
+ PyArray_API[185])
+#define PyArray_Arange \
+ (*(PyObject * (*)(double, double, double, int)) \
+ PyArray_API[186])
+#define PyArray_ArangeObj \
+ (*(PyObject * (*)(PyObject *, PyObject *, PyObject *, PyArray_Descr *)) \
+ PyArray_API[187])
+#define PyArray_SortkindConverter \
+ (*(int (*)(PyObject *, NPY_SORTKIND *)) \
+ PyArray_API[188])
+#define PyArray_LexSort \
+ (*(PyObject * (*)(PyObject *, int)) \
+ PyArray_API[189])
+#define PyArray_Round \
+ (*(PyObject * (*)(PyArrayObject *, int, PyArrayObject *)) \
+ PyArray_API[190])
+#define PyArray_EquivTypenums \
+ (*(unsigned char (*)(int, int)) \
+ PyArray_API[191])
+#define PyArray_RegisterDataType \
+ (*(int (*)(PyArray_DescrProto *)) \
+ PyArray_API[192])
+#define PyArray_RegisterCastFunc \
+ (*(int (*)(PyArray_Descr *, int, PyArray_VectorUnaryFunc *)) \
+ PyArray_API[193])
+#define PyArray_RegisterCanCast \
+ (*(int (*)(PyArray_Descr *, int, NPY_SCALARKIND)) \
+ PyArray_API[194])
+#define PyArray_InitArrFuncs \
+ (*(void (*)(PyArray_ArrFuncs *)) \
+ PyArray_API[195])
+#define PyArray_IntTupleFromIntp \
+ (*(PyObject * (*)(int, npy_intp const *)) \
+ PyArray_API[196])
+#define PyArray_ClipmodeConverter \
+ (*(int (*)(PyObject *, NPY_CLIPMODE *)) \
+ PyArray_API[198])
+#define PyArray_OutputConverter \
+ (*(int (*)(PyObject *, PyArrayObject **)) \
+ PyArray_API[199])
+#define PyArray_BroadcastToShape \
+ (*(PyObject * (*)(PyObject *, npy_intp *, int)) \
+ PyArray_API[200])
+#define PyArray_DescrAlignConverter \
+ (*(int (*)(PyObject *, PyArray_Descr **)) \
+ PyArray_API[203])
+#define PyArray_DescrAlignConverter2 \
+ (*(int (*)(PyObject *, PyArray_Descr **)) \
+ PyArray_API[204])
+#define PyArray_SearchsideConverter \
+ (*(int (*)(PyObject *, void *)) \
+ PyArray_API[205])
+#define PyArray_CheckAxis \
+ (*(PyObject * (*)(PyArrayObject *, int *, int)) \
+ PyArray_API[206])
+#define PyArray_OverflowMultiplyList \
+ (*(npy_intp (*)(npy_intp const *, int)) \
+ PyArray_API[207])
+#define PyArray_MultiIterFromObjects \
+ (*(PyObject* (*)(PyObject **, int, int, ...)) \
+ PyArray_API[209])
+#define PyArray_GetEndianness \
+ (*(int (*)(void)) \
+ PyArray_API[210])
+#define PyArray_GetNDArrayCFeatureVersion \
+ (*(unsigned int (*)(void)) \
+ PyArray_API[211])
+#define PyArray_Correlate2 \
+ (*(PyObject * (*)(PyObject *, PyObject *, int)) \
+ PyArray_API[212])
+#define PyArray_NeighborhoodIterNew \
+ (*(PyObject* (*)(PyArrayIterObject *, const npy_intp *, int, PyArrayObject*)) \
+ PyArray_API[213])
+#define PyTimeIntegerArrType_Type (*(PyTypeObject *)PyArray_API[214])
+#define PyDatetimeArrType_Type (*(PyTypeObject *)PyArray_API[215])
+#define PyTimedeltaArrType_Type (*(PyTypeObject *)PyArray_API[216])
+#define PyHalfArrType_Type (*(PyTypeObject *)PyArray_API[217])
+#define NpyIter_Type (*(PyTypeObject *)PyArray_API[218])
+
+#if NPY_FEATURE_VERSION >= NPY_2_3_API_VERSION
+#define NpyIter_GetTransferFlags \
+ (*(NPY_ARRAYMETHOD_FLAGS (*)(NpyIter *)) \
+ PyArray_API[223])
+#endif
+#define NpyIter_New \
+ (*(NpyIter * (*)(PyArrayObject *, npy_uint32, NPY_ORDER, NPY_CASTING, PyArray_Descr*)) \
+ PyArray_API[224])
+#define NpyIter_MultiNew \
+ (*(NpyIter * (*)(int, PyArrayObject **, npy_uint32, NPY_ORDER, NPY_CASTING, npy_uint32 *, PyArray_Descr **)) \
+ PyArray_API[225])
+#define NpyIter_AdvancedNew \
+ (*(NpyIter * (*)(int, PyArrayObject **, npy_uint32, NPY_ORDER, NPY_CASTING, npy_uint32 *, PyArray_Descr **, int, int **, npy_intp *, npy_intp)) \
+ PyArray_API[226])
+#define NpyIter_Copy \
+ (*(NpyIter * (*)(NpyIter *)) \
+ PyArray_API[227])
+#define NpyIter_Deallocate \
+ (*(int (*)(NpyIter *)) \
+ PyArray_API[228])
+#define NpyIter_HasDelayedBufAlloc \
+ (*(npy_bool (*)(NpyIter *)) \
+ PyArray_API[229])
+#define NpyIter_HasExternalLoop \
+ (*(npy_bool (*)(NpyIter *)) \
+ PyArray_API[230])
+#define NpyIter_EnableExternalLoop \
+ (*(int (*)(NpyIter *)) \
+ PyArray_API[231])
+#define NpyIter_GetInnerStrideArray \
+ (*(npy_intp * (*)(NpyIter *)) \
+ PyArray_API[232])
+#define NpyIter_GetInnerLoopSizePtr \
+ (*(npy_intp * (*)(NpyIter *)) \
+ PyArray_API[233])
+#define NpyIter_Reset \
+ (*(int (*)(NpyIter *, char **)) \
+ PyArray_API[234])
+#define NpyIter_ResetBasePointers \
+ (*(int (*)(NpyIter *, char **, char **)) \
+ PyArray_API[235])
+#define NpyIter_ResetToIterIndexRange \
+ (*(int (*)(NpyIter *, npy_intp, npy_intp, char **)) \
+ PyArray_API[236])
+#define NpyIter_GetNDim \
+ (*(int (*)(NpyIter *)) \
+ PyArray_API[237])
+#define NpyIter_GetNOp \
+ (*(int (*)(NpyIter *)) \
+ PyArray_API[238])
+#define NpyIter_GetIterNext \
+ (*(NpyIter_IterNextFunc * (*)(NpyIter *, char **)) \
+ PyArray_API[239])
+#define NpyIter_GetIterSize \
+ (*(npy_intp (*)(NpyIter *)) \
+ PyArray_API[240])
+#define NpyIter_GetIterIndexRange \
+ (*(void (*)(NpyIter *, npy_intp *, npy_intp *)) \
+ PyArray_API[241])
+#define NpyIter_GetIterIndex \
+ (*(npy_intp (*)(NpyIter *)) \
+ PyArray_API[242])
+#define NpyIter_GotoIterIndex \
+ (*(int (*)(NpyIter *, npy_intp)) \
+ PyArray_API[243])
+#define NpyIter_HasMultiIndex \
+ (*(npy_bool (*)(NpyIter *)) \
+ PyArray_API[244])
+#define NpyIter_GetShape \
+ (*(int (*)(NpyIter *, npy_intp *)) \
+ PyArray_API[245])
+#define NpyIter_GetGetMultiIndex \
+ (*(NpyIter_GetMultiIndexFunc * (*)(NpyIter *, char **)) \
+ PyArray_API[246])
+#define NpyIter_GotoMultiIndex \
+ (*(int (*)(NpyIter *, npy_intp const *)) \
+ PyArray_API[247])
+#define NpyIter_RemoveMultiIndex \
+ (*(int (*)(NpyIter *)) \
+ PyArray_API[248])
+#define NpyIter_HasIndex \
+ (*(npy_bool (*)(NpyIter *)) \
+ PyArray_API[249])
+#define NpyIter_IsBuffered \
+ (*(npy_bool (*)(NpyIter *)) \
+ PyArray_API[250])
+#define NpyIter_IsGrowInner \
+ (*(npy_bool (*)(NpyIter *)) \
+ PyArray_API[251])
+#define NpyIter_GetBufferSize \
+ (*(npy_intp (*)(NpyIter *)) \
+ PyArray_API[252])
+#define NpyIter_GetIndexPtr \
+ (*(npy_intp * (*)(NpyIter *)) \
+ PyArray_API[253])
+#define NpyIter_GotoIndex \
+ (*(int (*)(NpyIter *, npy_intp)) \
+ PyArray_API[254])
+#define NpyIter_GetDataPtrArray \
+ (*(char ** (*)(NpyIter *)) \
+ PyArray_API[255])
+#define NpyIter_GetDescrArray \
+ (*(PyArray_Descr ** (*)(NpyIter *)) \
+ PyArray_API[256])
+#define NpyIter_GetOperandArray \
+ (*(PyArrayObject ** (*)(NpyIter *)) \
+ PyArray_API[257])
+#define NpyIter_GetIterView \
+ (*(PyArrayObject * (*)(NpyIter *, npy_intp)) \
+ PyArray_API[258])
+#define NpyIter_GetReadFlags \
+ (*(void (*)(NpyIter *, char *)) \
+ PyArray_API[259])
+#define NpyIter_GetWriteFlags \
+ (*(void (*)(NpyIter *, char *)) \
+ PyArray_API[260])
+#define NpyIter_DebugPrint \
+ (*(void (*)(NpyIter *)) \
+ PyArray_API[261])
+#define NpyIter_IterationNeedsAPI \
+ (*(npy_bool (*)(NpyIter *)) \
+ PyArray_API[262])
+#define NpyIter_GetInnerFixedStrideArray \
+ (*(void (*)(NpyIter *, npy_intp *)) \
+ PyArray_API[263])
+#define NpyIter_RemoveAxis \
+ (*(int (*)(NpyIter *, int)) \
+ PyArray_API[264])
+#define NpyIter_GetAxisStrideArray \
+ (*(npy_intp * (*)(NpyIter *, int)) \
+ PyArray_API[265])
+#define NpyIter_RequiresBuffering \
+ (*(npy_bool (*)(NpyIter *)) \
+ PyArray_API[266])
+#define NpyIter_GetInitialDataPtrArray \
+ (*(char ** (*)(NpyIter *)) \
+ PyArray_API[267])
+#define NpyIter_CreateCompatibleStrides \
+ (*(int (*)(NpyIter *, npy_intp, npy_intp *)) \
+ PyArray_API[268])
+#define PyArray_CastingConverter \
+ (*(int (*)(PyObject *, NPY_CASTING *)) \
+ PyArray_API[269])
+#define PyArray_CountNonzero \
+ (*(npy_intp (*)(PyArrayObject *)) \
+ PyArray_API[270])
+#define PyArray_PromoteTypes \
+ (*(PyArray_Descr * (*)(PyArray_Descr *, PyArray_Descr *)) \
+ PyArray_API[271])
+#define PyArray_MinScalarType \
+ (*(PyArray_Descr * (*)(PyArrayObject *)) \
+ PyArray_API[272])
+#define PyArray_ResultType \
+ (*(PyArray_Descr * (*)(npy_intp, PyArrayObject *arrs[], npy_intp, PyArray_Descr *descrs[])) \
+ PyArray_API[273])
+#define PyArray_CanCastArrayTo \
+ (*(npy_bool (*)(PyArrayObject *, PyArray_Descr *, NPY_CASTING)) \
+ PyArray_API[274])
+#define PyArray_CanCastTypeTo \
+ (*(npy_bool (*)(PyArray_Descr *, PyArray_Descr *, NPY_CASTING)) \
+ PyArray_API[275])
+#define PyArray_EinsteinSum \
+ (*(PyArrayObject * (*)(char *, npy_intp, PyArrayObject **, PyArray_Descr *, NPY_ORDER, NPY_CASTING, PyArrayObject *)) \
+ PyArray_API[276])
+#define PyArray_NewLikeArray \
+ (*(PyObject * (*)(PyArrayObject *, NPY_ORDER, PyArray_Descr *, int)) \
+ PyArray_API[277])
+#define PyArray_ConvertClipmodeSequence \
+ (*(int (*)(PyObject *, NPY_CLIPMODE *, int)) \
+ PyArray_API[279])
+#define PyArray_MatrixProduct2 \
+ (*(PyObject * (*)(PyObject *, PyObject *, PyArrayObject*)) \
+ PyArray_API[280])
+#define NpyIter_IsFirstVisit \
+ (*(npy_bool (*)(NpyIter *, int)) \
+ PyArray_API[281])
+#define PyArray_SetBaseObject \
+ (*(int (*)(PyArrayObject *, PyObject *)) \
+ PyArray_API[282])
+#define PyArray_CreateSortedStridePerm \
+ (*(void (*)(int, npy_intp const *, npy_stride_sort_item *)) \
+ PyArray_API[283])
+#define PyArray_RemoveAxesInPlace \
+ (*(void (*)(PyArrayObject *, const npy_bool *)) \
+ PyArray_API[284])
+#define PyArray_DebugPrint \
+ (*(void (*)(PyArrayObject *)) \
+ PyArray_API[285])
+#define PyArray_FailUnlessWriteable \
+ (*(int (*)(PyArrayObject *, const char *)) \
+ PyArray_API[286])
+#define PyArray_SetUpdateIfCopyBase \
+ (*(int (*)(PyArrayObject *, PyArrayObject *)) \
+ PyArray_API[287])
+#define PyDataMem_NEW \
+ (*(void * (*)(size_t)) \
+ PyArray_API[288])
+#define PyDataMem_FREE \
+ (*(void (*)(void *)) \
+ PyArray_API[289])
+#define PyDataMem_RENEW \
+ (*(void * (*)(void *, size_t)) \
+ PyArray_API[290])
+#define NPY_DEFAULT_ASSIGN_CASTING (*(NPY_CASTING *)PyArray_API[292])
+#define PyArray_Partition \
+ (*(int (*)(PyArrayObject *, PyArrayObject *, int, NPY_SELECTKIND)) \
+ PyArray_API[296])
+#define PyArray_ArgPartition \
+ (*(PyObject * (*)(PyArrayObject *, PyArrayObject *, int, NPY_SELECTKIND)) \
+ PyArray_API[297])
+#define PyArray_SelectkindConverter \
+ (*(int (*)(PyObject *, NPY_SELECTKIND *)) \
+ PyArray_API[298])
+#define PyDataMem_NEW_ZEROED \
+ (*(void * (*)(size_t, size_t)) \
+ PyArray_API[299])
+#define PyArray_CheckAnyScalarExact \
+ (*(int (*)(PyObject *)) \
+ PyArray_API[300])
+#define PyArray_ResolveWritebackIfCopy \
+ (*(int (*)(PyArrayObject *)) \
+ PyArray_API[302])
+#define PyArray_SetWritebackIfCopyBase \
+ (*(int (*)(PyArrayObject *, PyArrayObject *)) \
+ PyArray_API[303])
+
+#if NPY_FEATURE_VERSION >= NPY_1_22_API_VERSION
+#define PyDataMem_SetHandler \
+ (*(PyObject * (*)(PyObject *)) \
+ PyArray_API[304])
+#endif
+
+#if NPY_FEATURE_VERSION >= NPY_1_22_API_VERSION
+#define PyDataMem_GetHandler \
+ (*(PyObject * (*)(void)) \
+ PyArray_API[305])
+#endif
+#define PyDataMem_DefaultHandler (*(PyObject* *)PyArray_API[306])
+
+#if NPY_FEATURE_VERSION >= NPY_2_0_API_VERSION
+#define NpyDatetime_ConvertDatetime64ToDatetimeStruct \
+ (*(int (*)(PyArray_DatetimeMetaData *, npy_datetime, npy_datetimestruct *)) \
+ PyArray_API[307])
+#endif
+
+#if NPY_FEATURE_VERSION >= NPY_2_0_API_VERSION
+#define NpyDatetime_ConvertDatetimeStructToDatetime64 \
+ (*(int (*)(PyArray_DatetimeMetaData *, const npy_datetimestruct *, npy_datetime *)) \
+ PyArray_API[308])
+#endif
+
+#if NPY_FEATURE_VERSION >= NPY_2_0_API_VERSION
+#define NpyDatetime_ConvertPyDateTimeToDatetimeStruct \
+ (*(int (*)(PyObject *, npy_datetimestruct *, NPY_DATETIMEUNIT *, int)) \
+ PyArray_API[309])
+#endif
+
+#if NPY_FEATURE_VERSION >= NPY_2_0_API_VERSION
+#define NpyDatetime_GetDatetimeISO8601StrLen \
+ (*(int (*)(int, NPY_DATETIMEUNIT)) \
+ PyArray_API[310])
+#endif
+
+#if NPY_FEATURE_VERSION >= NPY_2_0_API_VERSION
+#define NpyDatetime_MakeISO8601Datetime \
+ (*(int (*)(npy_datetimestruct *, char *, npy_intp, int, int, NPY_DATETIMEUNIT, int, NPY_CASTING)) \
+ PyArray_API[311])
+#endif
+
+#if NPY_FEATURE_VERSION >= NPY_2_0_API_VERSION
+#define NpyDatetime_ParseISO8601Datetime \
+ (*(int (*)(char const *, Py_ssize_t, NPY_DATETIMEUNIT, NPY_CASTING, npy_datetimestruct *, NPY_DATETIMEUNIT *, npy_bool *)) \
+ PyArray_API[312])
+#endif
+
+#if NPY_FEATURE_VERSION >= NPY_2_0_API_VERSION
+#define NpyString_load \
+ (*(int (*)(npy_string_allocator *, const npy_packed_static_string *, npy_static_string *)) \
+ PyArray_API[313])
+#endif
+
+#if NPY_FEATURE_VERSION >= NPY_2_0_API_VERSION
+#define NpyString_pack \
+ (*(int (*)(npy_string_allocator *, npy_packed_static_string *, const char *, size_t)) \
+ PyArray_API[314])
+#endif
+
+#if NPY_FEATURE_VERSION >= NPY_2_0_API_VERSION
+#define NpyString_pack_null \
+ (*(int (*)(npy_string_allocator *, npy_packed_static_string *)) \
+ PyArray_API[315])
+#endif
+
+#if NPY_FEATURE_VERSION >= NPY_2_0_API_VERSION
+#define NpyString_acquire_allocator \
+ (*(npy_string_allocator * (*)(const PyArray_StringDTypeObject *)) \
+ PyArray_API[316])
+#endif
+
+#if NPY_FEATURE_VERSION >= NPY_2_0_API_VERSION
+#define NpyString_acquire_allocators \
+ (*(void (*)(size_t, PyArray_Descr *const descrs[], npy_string_allocator *allocators[])) \
+ PyArray_API[317])
+#endif
+
+#if NPY_FEATURE_VERSION >= NPY_2_0_API_VERSION
+#define NpyString_release_allocator \
+ (*(void (*)(npy_string_allocator *)) \
+ PyArray_API[318])
+#endif
+
+#if NPY_FEATURE_VERSION >= NPY_2_0_API_VERSION
+#define NpyString_release_allocators \
+ (*(void (*)(size_t, npy_string_allocator *allocators[])) \
+ PyArray_API[319])
+#endif
+
+#if NPY_FEATURE_VERSION >= NPY_2_0_API_VERSION
+#define PyArray_GetDefaultDescr \
+ (*(PyArray_Descr * (*)(PyArray_DTypeMeta *)) \
+ PyArray_API[361])
+#endif
+
+#if NPY_FEATURE_VERSION >= NPY_2_0_API_VERSION
+#define PyArrayInitDTypeMeta_FromSpec \
+ (*(int (*)(PyArray_DTypeMeta *, PyArrayDTypeMeta_Spec *)) \
+ PyArray_API[362])
+#endif
+
+#if NPY_FEATURE_VERSION >= NPY_2_0_API_VERSION
+#define PyArray_CommonDType \
+ (*(PyArray_DTypeMeta * (*)(PyArray_DTypeMeta *, PyArray_DTypeMeta *)) \
+ PyArray_API[363])
+#endif
+
+#if NPY_FEATURE_VERSION >= NPY_2_0_API_VERSION
+#define PyArray_PromoteDTypeSequence \
+ (*(PyArray_DTypeMeta * (*)(npy_intp, PyArray_DTypeMeta **)) \
+ PyArray_API[364])
+#endif
+#define _PyDataType_GetArrFuncs \
+ (*(PyArray_ArrFuncs * (*)(const PyArray_Descr *)) \
+ PyArray_API[365])
+
+/*
+ * The DType classes are inconvenient for the Python generation so exposed
+ * manually in the header below (may be moved).
+ */
+#include "numpy/_public_dtype_api_table.h"
+
+#if !defined(NO_IMPORT_ARRAY) && !defined(NO_IMPORT)
+static int
+_import_array(void)
+{
+ int st;
+ PyObject *numpy = PyImport_ImportModule("numpy._core._multiarray_umath");
+ PyObject *c_api;
+ if (numpy == NULL && PyErr_ExceptionMatches(PyExc_ModuleNotFoundError)) {
+ PyErr_Clear();
+ numpy = PyImport_ImportModule("numpy.core._multiarray_umath");
+ }
+
+ if (numpy == NULL) {
+ return -1;
+ }
+
+ c_api = PyObject_GetAttrString(numpy, "_ARRAY_API");
+ Py_DECREF(numpy);
+ if (c_api == NULL) {
+ return -1;
+ }
+
+ if (!PyCapsule_CheckExact(c_api)) {
+ PyErr_SetString(PyExc_RuntimeError, "_ARRAY_API is not PyCapsule object");
+ Py_DECREF(c_api);
+ return -1;
+ }
+ PyArray_API = (void **)PyCapsule_GetPointer(c_api, NULL);
+ Py_DECREF(c_api);
+ if (PyArray_API == NULL) {
+ PyErr_SetString(PyExc_RuntimeError, "_ARRAY_API is NULL pointer");
+ return -1;
+ }
+
+ /*
+ * On exceedingly few platforms these sizes may not match, in which case
+ * We do not support older NumPy versions at all.
+ */
+ if (sizeof(Py_ssize_t) != sizeof(Py_intptr_t) &&
+ PyArray_RUNTIME_VERSION < NPY_2_0_API_VERSION) {
+ PyErr_Format(PyExc_RuntimeError,
+ "module compiled against NumPy 2.0 but running on NumPy 1.x. "
+ "Unfortunately, this is not supported on niche platforms where "
+ "`sizeof(size_t) != sizeof(inptr_t)`.");
+ }
+ /*
+ * Perform runtime check of C API version. As of now NumPy 2.0 is ABI
+ * backwards compatible (in the exposed feature subset!) for all practical
+ * purposes.
+ */
+ if (NPY_VERSION < PyArray_GetNDArrayCVersion()) {
+ PyErr_Format(PyExc_RuntimeError, "module compiled against "\
+ "ABI version 0x%x but this version of numpy is 0x%x", \
+ (int) NPY_VERSION, (int) PyArray_GetNDArrayCVersion());
+ return -1;
+ }
+ PyArray_RUNTIME_VERSION = (int)PyArray_GetNDArrayCFeatureVersion();
+ if (NPY_FEATURE_VERSION > PyArray_RUNTIME_VERSION) {
+ PyErr_Format(PyExc_RuntimeError,
+ "module was compiled against NumPy C-API version 0x%x "
+ "(NumPy " NPY_FEATURE_VERSION_STRING ") "
+ "but the running NumPy has C-API version 0x%x. "
+ "Check the section C-API incompatibility at the "
+ "Troubleshooting ImportError section at "
+ "https://numpy.org/devdocs/user/troubleshooting-importerror.html"
+ "#c-api-incompatibility "
+ "for indications on how to solve this problem.",
+ (int)NPY_FEATURE_VERSION, PyArray_RUNTIME_VERSION);
+ return -1;
+ }
+
+ /*
+ * Perform runtime check of endianness and check it matches the one set by
+ * the headers (npy_endian.h) as a safeguard
+ */
+ st = PyArray_GetEndianness();
+ if (st == NPY_CPU_UNKNOWN_ENDIAN) {
+ PyErr_SetString(PyExc_RuntimeError,
+ "FATAL: module compiled as unknown endian");
+ return -1;
+ }
+#if NPY_BYTE_ORDER == NPY_BIG_ENDIAN
+ if (st != NPY_CPU_BIG) {
+ PyErr_SetString(PyExc_RuntimeError,
+ "FATAL: module compiled as big endian, but "
+ "detected different endianness at runtime");
+ return -1;
+ }
+#elif NPY_BYTE_ORDER == NPY_LITTLE_ENDIAN
+ if (st != NPY_CPU_LITTLE) {
+ PyErr_SetString(PyExc_RuntimeError,
+ "FATAL: module compiled as little endian, but "
+ "detected different endianness at runtime");
+ return -1;
+ }
+#endif
+
+ return 0;
+}
+
+#if (SWIG_VERSION < 0x040400)
+#define _RETURN_VALUE NULL
+#else
+#define _RETURN_VALUE 0
+#endif
+
+#define import_array() { \
+ if (_import_array() < 0) { \
+ PyErr_Print(); \
+ PyErr_SetString( \
+ PyExc_ImportError, \
+ "numpy._core.multiarray failed to import" \
+ ); \
+ return _RETURN_VALUE; \
+ } \
+}
+
+#define import_array1(ret) { \
+ if (_import_array() < 0) { \
+ PyErr_Print(); \
+ PyErr_SetString( \
+ PyExc_ImportError, \
+ "numpy._core.multiarray failed to import" \
+ ); \
+ return ret; \
+ } \
+}
+
+#define import_array2(msg, ret) { \
+ if (_import_array() < 0) { \
+ PyErr_Print(); \
+ PyErr_SetString(PyExc_ImportError, msg); \
+ return ret; \
+ } \
+}
+
+#endif
+
+#endif
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/include/numpy/__ufunc_api.c b/python/user_packages/Python313/site-packages/numpy/_core/include/numpy/__ufunc_api.c
new file mode 100644
index 0000000000000000000000000000000000000000..b56b62cdbf13d01a47d3e3e75792fe33a73d10d8
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/include/numpy/__ufunc_api.c
@@ -0,0 +1,55 @@
+
+/* These pointers will be stored in the C-object for use in other
+ extension modules
+*/
+
+void *PyUFunc_API[] = {
+ (void *) &PyUFunc_Type,
+ (void *) PyUFunc_FromFuncAndData,
+ (void *) PyUFunc_RegisterLoopForType,
+ NULL,
+ (void *) PyUFunc_f_f_As_d_d,
+ (void *) PyUFunc_d_d,
+ (void *) PyUFunc_f_f,
+ (void *) PyUFunc_g_g,
+ (void *) PyUFunc_F_F_As_D_D,
+ (void *) PyUFunc_F_F,
+ (void *) PyUFunc_D_D,
+ (void *) PyUFunc_G_G,
+ (void *) PyUFunc_O_O,
+ (void *) PyUFunc_ff_f_As_dd_d,
+ (void *) PyUFunc_ff_f,
+ (void *) PyUFunc_dd_d,
+ (void *) PyUFunc_gg_g,
+ (void *) PyUFunc_FF_F_As_DD_D,
+ (void *) PyUFunc_DD_D,
+ (void *) PyUFunc_FF_F,
+ (void *) PyUFunc_GG_G,
+ (void *) PyUFunc_OO_O,
+ (void *) PyUFunc_O_O_method,
+ (void *) PyUFunc_OO_O_method,
+ (void *) PyUFunc_On_Om,
+ NULL,
+ NULL,
+ (void *) PyUFunc_clearfperr,
+ (void *) PyUFunc_getfperr,
+ NULL,
+ (void *) PyUFunc_ReplaceLoopBySignature,
+ (void *) PyUFunc_FromFuncAndDataAndSignature,
+ NULL,
+ (void *) PyUFunc_e_e,
+ (void *) PyUFunc_e_e_As_f_f,
+ (void *) PyUFunc_e_e_As_d_d,
+ (void *) PyUFunc_ee_e,
+ (void *) PyUFunc_ee_e_As_ff_f,
+ (void *) PyUFunc_ee_e_As_dd_d,
+ (void *) PyUFunc_DefaultTypeResolver,
+ (void *) PyUFunc_ValidateCasting,
+ (void *) PyUFunc_RegisterLoopForDescr,
+ (void *) PyUFunc_FromFuncAndDataAndSignatureAndIdentity,
+ (void *) PyUFunc_AddLoopFromSpec,
+ (void *) PyUFunc_AddPromoter,
+ (void *) PyUFunc_AddWrappingLoop,
+ (void *) PyUFunc_GiveFloatingpointErrors,
+ (void *) PyUFunc_AddLoopsFromSpecs
+};
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/include/numpy/__ufunc_api.h b/python/user_packages/Python313/site-packages/numpy/_core/include/numpy/__ufunc_api.h
new file mode 100644
index 0000000000000000000000000000000000000000..03ad25125e927f6779666a9e0d8d5446e86b1d33
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/include/numpy/__ufunc_api.h
@@ -0,0 +1,349 @@
+
+#ifdef _UMATHMODULE
+
+extern NPY_NO_EXPORT PyTypeObject PyUFunc_Type;
+
+extern NPY_NO_EXPORT PyTypeObject PyUFunc_Type;
+
+NPY_NO_EXPORT PyObject * PyUFunc_FromFuncAndData \
+ (PyUFuncGenericFunction *, void *const *, const char *, int, int, int, int, const char *, const char *, int);
+NPY_NO_EXPORT int PyUFunc_RegisterLoopForType \
+ (PyUFuncObject *, int, PyUFuncGenericFunction, const int *, void *);
+NPY_NO_EXPORT void PyUFunc_f_f_As_d_d \
+ (char **, npy_intp const *, npy_intp const *, void *);
+NPY_NO_EXPORT void PyUFunc_d_d \
+ (char **, npy_intp const *, npy_intp const *, void *);
+NPY_NO_EXPORT void PyUFunc_f_f \
+ (char **, npy_intp const *, npy_intp const *, void *);
+NPY_NO_EXPORT void PyUFunc_g_g \
+ (char **, npy_intp const *, npy_intp const *, void *);
+NPY_NO_EXPORT void PyUFunc_F_F_As_D_D \
+ (char **, npy_intp const *, npy_intp const *, void *);
+NPY_NO_EXPORT void PyUFunc_F_F \
+ (char **, npy_intp const *, npy_intp const *, void *);
+NPY_NO_EXPORT void PyUFunc_D_D \
+ (char **, npy_intp const *, npy_intp const *, void *);
+NPY_NO_EXPORT void PyUFunc_G_G \
+ (char **, npy_intp const *, npy_intp const *, void *);
+NPY_NO_EXPORT void PyUFunc_O_O \
+ (char **, npy_intp const *, npy_intp const *, void *);
+NPY_NO_EXPORT void PyUFunc_ff_f_As_dd_d \
+ (char **, npy_intp const *, npy_intp const *, void *);
+NPY_NO_EXPORT void PyUFunc_ff_f \
+ (char **, npy_intp const *, npy_intp const *, void *);
+NPY_NO_EXPORT void PyUFunc_dd_d \
+ (char **, npy_intp const *, npy_intp const *, void *);
+NPY_NO_EXPORT void PyUFunc_gg_g \
+ (char **, npy_intp const *, npy_intp const *, void *);
+NPY_NO_EXPORT void PyUFunc_FF_F_As_DD_D \
+ (char **, npy_intp const *, npy_intp const *, void *);
+NPY_NO_EXPORT void PyUFunc_DD_D \
+ (char **, npy_intp const *, npy_intp const *, void *);
+NPY_NO_EXPORT void PyUFunc_FF_F \
+ (char **, npy_intp const *, npy_intp const *, void *);
+NPY_NO_EXPORT void PyUFunc_GG_G \
+ (char **, npy_intp const *, npy_intp const *, void *);
+NPY_NO_EXPORT void PyUFunc_OO_O \
+ (char **, npy_intp const *, npy_intp const *, void *);
+NPY_NO_EXPORT void PyUFunc_O_O_method \
+ (char **, npy_intp const *, npy_intp const *, void *);
+NPY_NO_EXPORT void PyUFunc_OO_O_method \
+ (char **, npy_intp const *, npy_intp const *, void *);
+NPY_NO_EXPORT void PyUFunc_On_Om \
+ (char **, npy_intp const *, npy_intp const *, void *);
+NPY_NO_EXPORT void PyUFunc_clearfperr \
+ (void);
+NPY_NO_EXPORT int PyUFunc_getfperr \
+ (void);
+NPY_NO_EXPORT int PyUFunc_ReplaceLoopBySignature \
+ (PyUFuncObject *, PyUFuncGenericFunction, const int *, PyUFuncGenericFunction *);
+NPY_NO_EXPORT PyObject * PyUFunc_FromFuncAndDataAndSignature \
+ (PyUFuncGenericFunction *, void *const *, const char *, int, int, int, int, const char *, const char *, int, const char *);
+NPY_NO_EXPORT void PyUFunc_e_e \
+ (char **, npy_intp const *, npy_intp const *, void *);
+NPY_NO_EXPORT void PyUFunc_e_e_As_f_f \
+ (char **, npy_intp const *, npy_intp const *, void *);
+NPY_NO_EXPORT void PyUFunc_e_e_As_d_d \
+ (char **, npy_intp const *, npy_intp const *, void *);
+NPY_NO_EXPORT void PyUFunc_ee_e \
+ (char **, npy_intp const *, npy_intp const *, void *);
+NPY_NO_EXPORT void PyUFunc_ee_e_As_ff_f \
+ (char **, npy_intp const *, npy_intp const *, void *);
+NPY_NO_EXPORT void PyUFunc_ee_e_As_dd_d \
+ (char **, npy_intp const *, npy_intp const *, void *);
+NPY_NO_EXPORT int PyUFunc_DefaultTypeResolver \
+ (PyUFuncObject *, NPY_CASTING, PyArrayObject **, PyObject *, PyArray_Descr **);
+NPY_NO_EXPORT int PyUFunc_ValidateCasting \
+ (PyUFuncObject *, NPY_CASTING, PyArrayObject **, PyArray_Descr *const *);
+NPY_NO_EXPORT int PyUFunc_RegisterLoopForDescr \
+ (PyUFuncObject *, PyArray_Descr *, PyUFuncGenericFunction, PyArray_Descr **, void *);
+NPY_NO_EXPORT PyObject * PyUFunc_FromFuncAndDataAndSignatureAndIdentity \
+ (PyUFuncGenericFunction *, void *const *, const char *, int, int, int, int, const char *, const char *, const int, const char *, PyObject *);
+NPY_NO_EXPORT int PyUFunc_AddLoopFromSpec \
+ (PyObject *, PyArrayMethod_Spec *);
+NPY_NO_EXPORT int PyUFunc_AddPromoter \
+ (PyObject *, PyObject *, PyObject *);
+NPY_NO_EXPORT int PyUFunc_AddWrappingLoop \
+ (PyObject *, PyArray_DTypeMeta *new_dtypes[], PyArray_DTypeMeta *wrapped_dtypes[], PyArrayMethod_TranslateGivenDescriptors *, PyArrayMethod_TranslateLoopDescriptors *);
+NPY_NO_EXPORT int PyUFunc_GiveFloatingpointErrors \
+ (const char *, int);
+NPY_NO_EXPORT int PyUFunc_AddLoopsFromSpecs \
+ (PyUFunc_LoopSlot *);
+
+#else
+
+#if defined(PY_UFUNC_UNIQUE_SYMBOL)
+#define PyUFunc_API PY_UFUNC_UNIQUE_SYMBOL
+#endif
+
+/* By default do not export API in an .so (was never the case on windows) */
+#ifndef NPY_API_SYMBOL_ATTRIBUTE
+ #define NPY_API_SYMBOL_ATTRIBUTE NPY_VISIBILITY_HIDDEN
+#endif
+
+#if defined(NO_IMPORT) || defined(NO_IMPORT_UFUNC)
+extern NPY_API_SYMBOL_ATTRIBUTE void **PyUFunc_API;
+#else
+#if defined(PY_UFUNC_UNIQUE_SYMBOL)
+NPY_API_SYMBOL_ATTRIBUTE void **PyUFunc_API;
+#else
+static void **PyUFunc_API=NULL;
+#endif
+#endif
+
+#define PyUFunc_Type (*(PyTypeObject *)PyUFunc_API[0])
+#define PyUFunc_FromFuncAndData \
+ (*(PyObject * (*)(PyUFuncGenericFunction *, void *const *, const char *, int, int, int, int, const char *, const char *, int)) \
+ PyUFunc_API[1])
+#define PyUFunc_RegisterLoopForType \
+ (*(int (*)(PyUFuncObject *, int, PyUFuncGenericFunction, const int *, void *)) \
+ PyUFunc_API[2])
+#define PyUFunc_f_f_As_d_d \
+ (*(void (*)(char **, npy_intp const *, npy_intp const *, void *)) \
+ PyUFunc_API[4])
+#define PyUFunc_d_d \
+ (*(void (*)(char **, npy_intp const *, npy_intp const *, void *)) \
+ PyUFunc_API[5])
+#define PyUFunc_f_f \
+ (*(void (*)(char **, npy_intp const *, npy_intp const *, void *)) \
+ PyUFunc_API[6])
+#define PyUFunc_g_g \
+ (*(void (*)(char **, npy_intp const *, npy_intp const *, void *)) \
+ PyUFunc_API[7])
+#define PyUFunc_F_F_As_D_D \
+ (*(void (*)(char **, npy_intp const *, npy_intp const *, void *)) \
+ PyUFunc_API[8])
+#define PyUFunc_F_F \
+ (*(void (*)(char **, npy_intp const *, npy_intp const *, void *)) \
+ PyUFunc_API[9])
+#define PyUFunc_D_D \
+ (*(void (*)(char **, npy_intp const *, npy_intp const *, void *)) \
+ PyUFunc_API[10])
+#define PyUFunc_G_G \
+ (*(void (*)(char **, npy_intp const *, npy_intp const *, void *)) \
+ PyUFunc_API[11])
+#define PyUFunc_O_O \
+ (*(void (*)(char **, npy_intp const *, npy_intp const *, void *)) \
+ PyUFunc_API[12])
+#define PyUFunc_ff_f_As_dd_d \
+ (*(void (*)(char **, npy_intp const *, npy_intp const *, void *)) \
+ PyUFunc_API[13])
+#define PyUFunc_ff_f \
+ (*(void (*)(char **, npy_intp const *, npy_intp const *, void *)) \
+ PyUFunc_API[14])
+#define PyUFunc_dd_d \
+ (*(void (*)(char **, npy_intp const *, npy_intp const *, void *)) \
+ PyUFunc_API[15])
+#define PyUFunc_gg_g \
+ (*(void (*)(char **, npy_intp const *, npy_intp const *, void *)) \
+ PyUFunc_API[16])
+#define PyUFunc_FF_F_As_DD_D \
+ (*(void (*)(char **, npy_intp const *, npy_intp const *, void *)) \
+ PyUFunc_API[17])
+#define PyUFunc_DD_D \
+ (*(void (*)(char **, npy_intp const *, npy_intp const *, void *)) \
+ PyUFunc_API[18])
+#define PyUFunc_FF_F \
+ (*(void (*)(char **, npy_intp const *, npy_intp const *, void *)) \
+ PyUFunc_API[19])
+#define PyUFunc_GG_G \
+ (*(void (*)(char **, npy_intp const *, npy_intp const *, void *)) \
+ PyUFunc_API[20])
+#define PyUFunc_OO_O \
+ (*(void (*)(char **, npy_intp const *, npy_intp const *, void *)) \
+ PyUFunc_API[21])
+#define PyUFunc_O_O_method \
+ (*(void (*)(char **, npy_intp const *, npy_intp const *, void *)) \
+ PyUFunc_API[22])
+#define PyUFunc_OO_O_method \
+ (*(void (*)(char **, npy_intp const *, npy_intp const *, void *)) \
+ PyUFunc_API[23])
+#define PyUFunc_On_Om \
+ (*(void (*)(char **, npy_intp const *, npy_intp const *, void *)) \
+ PyUFunc_API[24])
+#define PyUFunc_clearfperr \
+ (*(void (*)(void)) \
+ PyUFunc_API[27])
+#define PyUFunc_getfperr \
+ (*(int (*)(void)) \
+ PyUFunc_API[28])
+#define PyUFunc_ReplaceLoopBySignature \
+ (*(int (*)(PyUFuncObject *, PyUFuncGenericFunction, const int *, PyUFuncGenericFunction *)) \
+ PyUFunc_API[30])
+#define PyUFunc_FromFuncAndDataAndSignature \
+ (*(PyObject * (*)(PyUFuncGenericFunction *, void *const *, const char *, int, int, int, int, const char *, const char *, int, const char *)) \
+ PyUFunc_API[31])
+#define PyUFunc_e_e \
+ (*(void (*)(char **, npy_intp const *, npy_intp const *, void *)) \
+ PyUFunc_API[33])
+#define PyUFunc_e_e_As_f_f \
+ (*(void (*)(char **, npy_intp const *, npy_intp const *, void *)) \
+ PyUFunc_API[34])
+#define PyUFunc_e_e_As_d_d \
+ (*(void (*)(char **, npy_intp const *, npy_intp const *, void *)) \
+ PyUFunc_API[35])
+#define PyUFunc_ee_e \
+ (*(void (*)(char **, npy_intp const *, npy_intp const *, void *)) \
+ PyUFunc_API[36])
+#define PyUFunc_ee_e_As_ff_f \
+ (*(void (*)(char **, npy_intp const *, npy_intp const *, void *)) \
+ PyUFunc_API[37])
+#define PyUFunc_ee_e_As_dd_d \
+ (*(void (*)(char **, npy_intp const *, npy_intp const *, void *)) \
+ PyUFunc_API[38])
+#define PyUFunc_DefaultTypeResolver \
+ (*(int (*)(PyUFuncObject *, NPY_CASTING, PyArrayObject **, PyObject *, PyArray_Descr **)) \
+ PyUFunc_API[39])
+#define PyUFunc_ValidateCasting \
+ (*(int (*)(PyUFuncObject *, NPY_CASTING, PyArrayObject **, PyArray_Descr *const *)) \
+ PyUFunc_API[40])
+#define PyUFunc_RegisterLoopForDescr \
+ (*(int (*)(PyUFuncObject *, PyArray_Descr *, PyUFuncGenericFunction, PyArray_Descr **, void *)) \
+ PyUFunc_API[41])
+
+#if NPY_FEATURE_VERSION >= NPY_1_16_API_VERSION
+#define PyUFunc_FromFuncAndDataAndSignatureAndIdentity \
+ (*(PyObject * (*)(PyUFuncGenericFunction *, void *const *, const char *, int, int, int, int, const char *, const char *, const int, const char *, PyObject *)) \
+ PyUFunc_API[42])
+#endif
+
+#if NPY_FEATURE_VERSION >= NPY_2_0_API_VERSION
+#define PyUFunc_AddLoopFromSpec \
+ (*(int (*)(PyObject *, PyArrayMethod_Spec *)) \
+ PyUFunc_API[43])
+#endif
+
+#if NPY_FEATURE_VERSION >= NPY_2_0_API_VERSION
+#define PyUFunc_AddPromoter \
+ (*(int (*)(PyObject *, PyObject *, PyObject *)) \
+ PyUFunc_API[44])
+#endif
+
+#if NPY_FEATURE_VERSION >= NPY_2_0_API_VERSION
+#define PyUFunc_AddWrappingLoop \
+ (*(int (*)(PyObject *, PyArray_DTypeMeta *new_dtypes[], PyArray_DTypeMeta *wrapped_dtypes[], PyArrayMethod_TranslateGivenDescriptors *, PyArrayMethod_TranslateLoopDescriptors *)) \
+ PyUFunc_API[45])
+#endif
+
+#if NPY_FEATURE_VERSION >= NPY_2_0_API_VERSION
+#define PyUFunc_GiveFloatingpointErrors \
+ (*(int (*)(const char *, int)) \
+ PyUFunc_API[46])
+#endif
+
+#if NPY_FEATURE_VERSION >= NPY_2_4_API_VERSION
+#define PyUFunc_AddLoopsFromSpecs \
+ (*(int (*)(PyUFunc_LoopSlot *)) \
+ PyUFunc_API[47])
+#endif
+
+static inline int
+_import_umath(void)
+{
+ PyObject *c_api;
+ PyObject *numpy = PyImport_ImportModule("numpy._core._multiarray_umath");
+ if (numpy == NULL && PyErr_ExceptionMatches(PyExc_ModuleNotFoundError)) {
+ PyErr_Clear();
+ numpy = PyImport_ImportModule("numpy.core._multiarray_umath");
+ }
+
+ if (numpy == NULL) {
+ PyErr_SetString(PyExc_ImportError,
+ "_multiarray_umath failed to import");
+ return -1;
+ }
+
+ c_api = PyObject_GetAttrString(numpy, "_UFUNC_API");
+ Py_DECREF(numpy);
+ if (c_api == NULL) {
+ PyErr_SetString(PyExc_AttributeError, "_UFUNC_API not found");
+ return -1;
+ }
+
+ if (!PyCapsule_CheckExact(c_api)) {
+ PyErr_SetString(PyExc_RuntimeError, "_UFUNC_API is not PyCapsule object");
+ Py_DECREF(c_api);
+ return -1;
+ }
+ PyUFunc_API = (void **)PyCapsule_GetPointer(c_api, NULL);
+ Py_DECREF(c_api);
+ if (PyUFunc_API == NULL) {
+ PyErr_SetString(PyExc_RuntimeError, "_UFUNC_API is NULL pointer");
+ return -1;
+ }
+ return 0;
+}
+
+#define import_umath() \
+ do {\
+ UFUNC_NOFPE\
+ if (_import_umath() < 0) {\
+ PyErr_Print();\
+ PyErr_SetString(PyExc_ImportError,\
+ "numpy._core.umath failed to import");\
+ return NULL;\
+ }\
+ } while(0)
+
+#define import_umath1(ret) \
+ do {\
+ UFUNC_NOFPE\
+ if (_import_umath() < 0) {\
+ PyErr_Print();\
+ PyErr_SetString(PyExc_ImportError,\
+ "numpy._core.umath failed to import");\
+ return ret;\
+ }\
+ } while(0)
+
+#define import_umath2(ret, msg) \
+ do {\
+ UFUNC_NOFPE\
+ if (_import_umath() < 0) {\
+ PyErr_Print();\
+ PyErr_SetString(PyExc_ImportError, msg);\
+ return ret;\
+ }\
+ } while(0)
+
+#define import_ufunc() \
+ do {\
+ UFUNC_NOFPE\
+ if (_import_umath() < 0) {\
+ PyErr_Print();\
+ PyErr_SetString(PyExc_ImportError,\
+ "numpy._core.umath failed to import");\
+ }\
+ } while(0)
+
+
+static inline int
+PyUFunc_ImportUFuncAPI()
+{
+ if (NPY_UNLIKELY(PyUFunc_API == NULL)) {
+ import_umath1(-1);
+ }
+ return 0;
+}
+
+#endif
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/include/numpy/_neighborhood_iterator_imp.h b/python/user_packages/Python313/site-packages/numpy/_core/include/numpy/_neighborhood_iterator_imp.h
new file mode 100644
index 0000000000000000000000000000000000000000..fdd1aed9e1f3779a3cca0579185a7c3d10c6e05d
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/include/numpy/_neighborhood_iterator_imp.h
@@ -0,0 +1,90 @@
+#ifndef NUMPY_CORE_INCLUDE_NUMPY__NEIGHBORHOOD_IMP_H_
+#error You should not include this header directly
+#endif
+/*
+ * Private API (here for inline)
+ */
+static inline int
+_PyArrayNeighborhoodIter_IncrCoord(PyArrayNeighborhoodIterObject* iter);
+
+/*
+ * Update to next item of the iterator
+ *
+ * Note: this simply increment the coordinates vector, last dimension
+ * incremented first , i.e, for dimension 3
+ * ...
+ * -1, -1, -1
+ * -1, -1, 0
+ * -1, -1, 1
+ * ....
+ * -1, 0, -1
+ * -1, 0, 0
+ * ....
+ * 0, -1, -1
+ * 0, -1, 0
+ * ....
+ */
+#define _UPDATE_COORD_ITER(c) \
+ wb = iter->coordinates[c] < iter->bounds[c][1]; \
+ if (wb) { \
+ iter->coordinates[c] += 1; \
+ return 0; \
+ } \
+ else { \
+ iter->coordinates[c] = iter->bounds[c][0]; \
+ }
+
+static inline int
+_PyArrayNeighborhoodIter_IncrCoord(PyArrayNeighborhoodIterObject* iter)
+{
+ npy_intp i, wb;
+
+ for (i = iter->nd - 1; i >= 0; --i) {
+ _UPDATE_COORD_ITER(i)
+ }
+
+ return 0;
+}
+
+/*
+ * Version optimized for 2d arrays, manual loop unrolling
+ */
+static inline int
+_PyArrayNeighborhoodIter_IncrCoord2D(PyArrayNeighborhoodIterObject* iter)
+{
+ npy_intp wb;
+
+ _UPDATE_COORD_ITER(1)
+ _UPDATE_COORD_ITER(0)
+
+ return 0;
+}
+#undef _UPDATE_COORD_ITER
+
+/*
+ * Advance to the next neighbour
+ */
+static inline int
+PyArrayNeighborhoodIter_Next(PyArrayNeighborhoodIterObject* iter)
+{
+ _PyArrayNeighborhoodIter_IncrCoord (iter);
+ iter->dataptr = iter->translate((PyArrayIterObject*)iter, iter->coordinates);
+
+ return 0;
+}
+
+/*
+ * Reset functions
+ */
+static inline int
+PyArrayNeighborhoodIter_Reset(PyArrayNeighborhoodIterObject* iter)
+{
+ npy_intp i;
+
+ for (i = 0; i < iter->nd; ++i) {
+ iter->coordinates[i] = iter->bounds[i][0];
+ }
+ iter->dataptr = iter->translate((PyArrayIterObject*)iter, iter->coordinates);
+
+ return 0;
+}
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/include/numpy/_numpyconfig.h b/python/user_packages/Python313/site-packages/numpy/_core/include/numpy/_numpyconfig.h
new file mode 100644
index 0000000000000000000000000000000000000000..56cb52a47332b66180687c40fa0092e6db1daffd
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/include/numpy/_numpyconfig.h
@@ -0,0 +1,33 @@
+/* #undef NPY_HAVE_ENDIAN_H */
+
+#define NPY_SIZEOF_SHORT 2
+#define NPY_SIZEOF_INT 4
+#define NPY_SIZEOF_LONG 4
+#define NPY_SIZEOF_FLOAT 4
+#define NPY_SIZEOF_COMPLEX_FLOAT 8
+#define NPY_SIZEOF_DOUBLE 8
+#define NPY_SIZEOF_COMPLEX_DOUBLE 16
+#define NPY_SIZEOF_LONGDOUBLE 8
+#define NPY_SIZEOF_COMPLEX_LONGDOUBLE 16
+#define NPY_SIZEOF_PY_INTPTR_T 8
+#define NPY_SIZEOF_INTP 8
+#define NPY_SIZEOF_UINTP 8
+#define NPY_SIZEOF_WCHAR_T 2
+#define NPY_SIZEOF_OFF_T 4
+#define NPY_SIZEOF_PY_LONG_LONG 8
+#define NPY_SIZEOF_LONGLONG 8
+
+/*
+ * Defined to 1 or 0. Note that Pyodide hardcodes NPY_NO_SMP (and other defines
+ * in this header) for better cross-compilation, so don't rename them without a
+ * good reason.
+ */
+#define NPY_NO_SMP 0
+
+#define NPY_VISIBILITY_HIDDEN
+#define NPY_ABI_VERSION 0x02000000
+#define NPY_API_VERSION 0x00000015
+
+#ifndef __STDC_FORMAT_MACROS
+#define __STDC_FORMAT_MACROS 1
+#endif
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/include/numpy/_public_dtype_api_table.h b/python/user_packages/Python313/site-packages/numpy/_core/include/numpy/_public_dtype_api_table.h
new file mode 100644
index 0000000000000000000000000000000000000000..474b2aec38c60b11d04c23bcad8a4c564f40810c
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/include/numpy/_public_dtype_api_table.h
@@ -0,0 +1,86 @@
+/*
+ * Public exposure of the DType Classes. These are tricky to expose
+ * via the Python API, so they are exposed through this header for now.
+ *
+ * These definitions are only relevant for the public API and we reserve
+ * the slots 320-360 in the API table generation for this (currently).
+ *
+ * TODO: This file should be consolidated with the API table generation
+ * (although not sure the current generation is worth preserving).
+ */
+#ifndef NUMPY_CORE_INCLUDE_NUMPY__PUBLIC_DTYPE_API_TABLE_H_
+#define NUMPY_CORE_INCLUDE_NUMPY__PUBLIC_DTYPE_API_TABLE_H_
+
+#if !(defined(NPY_INTERNAL_BUILD) && NPY_INTERNAL_BUILD)
+
+/* All of these require NumPy 2.0 support */
+#if NPY_FEATURE_VERSION >= NPY_2_0_API_VERSION
+
+/*
+ * The type of the DType metaclass
+ */
+#define PyArrayDTypeMeta_Type (*(PyTypeObject *)(PyArray_API + 320)[0])
+/*
+ * NumPy's builtin DTypes:
+ */
+#define PyArray_BoolDType (*(PyArray_DTypeMeta *)(PyArray_API + 320)[1])
+/* Integers */
+#define PyArray_ByteDType (*(PyArray_DTypeMeta *)(PyArray_API + 320)[2])
+#define PyArray_UByteDType (*(PyArray_DTypeMeta *)(PyArray_API + 320)[3])
+#define PyArray_ShortDType (*(PyArray_DTypeMeta *)(PyArray_API + 320)[4])
+#define PyArray_UShortDType (*(PyArray_DTypeMeta *)(PyArray_API + 320)[5])
+#define PyArray_IntDType (*(PyArray_DTypeMeta *)(PyArray_API + 320)[6])
+#define PyArray_UIntDType (*(PyArray_DTypeMeta *)(PyArray_API + 320)[7])
+#define PyArray_LongDType (*(PyArray_DTypeMeta *)(PyArray_API + 320)[8])
+#define PyArray_ULongDType (*(PyArray_DTypeMeta *)(PyArray_API + 320)[9])
+#define PyArray_LongLongDType (*(PyArray_DTypeMeta *)(PyArray_API + 320)[10])
+#define PyArray_ULongLongDType (*(PyArray_DTypeMeta *)(PyArray_API + 320)[11])
+/* Integer aliases */
+#define PyArray_Int8DType (*(PyArray_DTypeMeta *)(PyArray_API + 320)[12])
+#define PyArray_UInt8DType (*(PyArray_DTypeMeta *)(PyArray_API + 320)[13])
+#define PyArray_Int16DType (*(PyArray_DTypeMeta *)(PyArray_API + 320)[14])
+#define PyArray_UInt16DType (*(PyArray_DTypeMeta *)(PyArray_API + 320)[15])
+#define PyArray_Int32DType (*(PyArray_DTypeMeta *)(PyArray_API + 320)[16])
+#define PyArray_UInt32DType (*(PyArray_DTypeMeta *)(PyArray_API + 320)[17])
+#define PyArray_Int64DType (*(PyArray_DTypeMeta *)(PyArray_API + 320)[18])
+#define PyArray_UInt64DType (*(PyArray_DTypeMeta *)(PyArray_API + 320)[19])
+#define PyArray_IntpDType (*(PyArray_DTypeMeta *)(PyArray_API + 320)[20])
+#define PyArray_UIntpDType (*(PyArray_DTypeMeta *)(PyArray_API + 320)[21])
+/* Floats */
+#define PyArray_HalfDType (*(PyArray_DTypeMeta *)(PyArray_API + 320)[22])
+#define PyArray_FloatDType (*(PyArray_DTypeMeta *)(PyArray_API + 320)[23])
+#define PyArray_DoubleDType (*(PyArray_DTypeMeta *)(PyArray_API + 320)[24])
+#define PyArray_LongDoubleDType (*(PyArray_DTypeMeta *)(PyArray_API + 320)[25])
+/* Complex */
+#define PyArray_CFloatDType (*(PyArray_DTypeMeta *)(PyArray_API + 320)[26])
+#define PyArray_CDoubleDType (*(PyArray_DTypeMeta *)(PyArray_API + 320)[27])
+#define PyArray_CLongDoubleDType (*(PyArray_DTypeMeta *)(PyArray_API + 320)[28])
+/* String/Bytes */
+#define PyArray_BytesDType (*(PyArray_DTypeMeta *)(PyArray_API + 320)[29])
+#define PyArray_UnicodeDType (*(PyArray_DTypeMeta *)(PyArray_API + 320)[30])
+/* Datetime/Timedelta */
+#define PyArray_DatetimeDType (*(PyArray_DTypeMeta *)(PyArray_API + 320)[31])
+#define PyArray_TimedeltaDType (*(PyArray_DTypeMeta *)(PyArray_API + 320)[32])
+/* Object/Void */
+#define PyArray_ObjectDType (*(PyArray_DTypeMeta *)(PyArray_API + 320)[33])
+#define PyArray_VoidDType (*(PyArray_DTypeMeta *)(PyArray_API + 320)[34])
+/* Python types (used as markers for scalars) */
+#define PyArray_PyLongDType (*(PyArray_DTypeMeta *)(PyArray_API + 320)[35])
+#define PyArray_PyFloatDType (*(PyArray_DTypeMeta *)(PyArray_API + 320)[36])
+#define PyArray_PyComplexDType (*(PyArray_DTypeMeta *)(PyArray_API + 320)[37])
+/* Default integer type */
+#define PyArray_DefaultIntDType (*(PyArray_DTypeMeta *)(PyArray_API + 320)[38])
+/* New non-legacy DTypes follow in the order they were added */
+#define PyArray_StringDType (*(PyArray_DTypeMeta *)(PyArray_API + 320)[39])
+
+/* NOTE: offset 40 is free */
+
+/* Need to start with a larger offset again for the abstract classes: */
+#define PyArray_IntAbstractDType (*(PyArray_DTypeMeta *)PyArray_API[366])
+#define PyArray_FloatAbstractDType (*(PyArray_DTypeMeta *)PyArray_API[367])
+#define PyArray_ComplexAbstractDType (*(PyArray_DTypeMeta *)PyArray_API[368])
+
+#endif /* NPY_FEATURE_VERSION >= NPY_2_0_API_VERSION */
+
+#endif /* NPY_INTERNAL_BUILD */
+#endif /* NUMPY_CORE_INCLUDE_NUMPY__PUBLIC_DTYPE_API_TABLE_H_ */
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/include/numpy/arrayobject.h b/python/user_packages/Python313/site-packages/numpy/_core/include/numpy/arrayobject.h
new file mode 100644
index 0000000000000000000000000000000000000000..d3ca0a64121d2c2185b263f64ab2a6a72a25a218
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/include/numpy/arrayobject.h
@@ -0,0 +1,7 @@
+#ifndef NUMPY_CORE_INCLUDE_NUMPY_ARRAYOBJECT_H_
+#define NUMPY_CORE_INCLUDE_NUMPY_ARRAYOBJECT_H_
+#define Py_ARRAYOBJECT_H
+
+#include "ndarrayobject.h"
+
+#endif /* NUMPY_CORE_INCLUDE_NUMPY_ARRAYOBJECT_H_ */
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/include/numpy/arrayscalars.h b/python/user_packages/Python313/site-packages/numpy/_core/include/numpy/arrayscalars.h
new file mode 100644
index 0000000000000000000000000000000000000000..61297f8693482b20ab4fce6b5673b897420dea63
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/include/numpy/arrayscalars.h
@@ -0,0 +1,198 @@
+#ifndef NUMPY_CORE_INCLUDE_NUMPY_ARRAYSCALARS_H_
+#define NUMPY_CORE_INCLUDE_NUMPY_ARRAYSCALARS_H_
+
+#ifndef _MULTIARRAYMODULE
+typedef struct {
+ PyObject_HEAD
+ npy_bool obval;
+} PyBoolScalarObject;
+#endif
+
+
+typedef struct {
+ PyObject_HEAD
+ signed char obval;
+} PyByteScalarObject;
+
+
+typedef struct {
+ PyObject_HEAD
+ short obval;
+} PyShortScalarObject;
+
+
+typedef struct {
+ PyObject_HEAD
+ int obval;
+} PyIntScalarObject;
+
+
+typedef struct {
+ PyObject_HEAD
+ long obval;
+} PyLongScalarObject;
+
+
+typedef struct {
+ PyObject_HEAD
+ npy_longlong obval;
+} PyLongLongScalarObject;
+
+
+typedef struct {
+ PyObject_HEAD
+ unsigned char obval;
+} PyUByteScalarObject;
+
+
+typedef struct {
+ PyObject_HEAD
+ unsigned short obval;
+} PyUShortScalarObject;
+
+
+typedef struct {
+ PyObject_HEAD
+ unsigned int obval;
+} PyUIntScalarObject;
+
+
+typedef struct {
+ PyObject_HEAD
+ unsigned long obval;
+} PyULongScalarObject;
+
+
+typedef struct {
+ PyObject_HEAD
+ npy_ulonglong obval;
+} PyULongLongScalarObject;
+
+
+typedef struct {
+ PyObject_HEAD
+ npy_half obval;
+} PyHalfScalarObject;
+
+
+typedef struct {
+ PyObject_HEAD
+ float obval;
+} PyFloatScalarObject;
+
+
+typedef struct {
+ PyObject_HEAD
+ double obval;
+} PyDoubleScalarObject;
+
+
+typedef struct {
+ PyObject_HEAD
+ npy_longdouble obval;
+} PyLongDoubleScalarObject;
+
+
+typedef struct {
+ PyObject_HEAD
+ npy_cfloat obval;
+} PyCFloatScalarObject;
+
+
+typedef struct {
+ PyObject_HEAD
+ npy_cdouble obval;
+} PyCDoubleScalarObject;
+
+
+typedef struct {
+ PyObject_HEAD
+ npy_clongdouble obval;
+} PyCLongDoubleScalarObject;
+
+
+typedef struct {
+ PyObject_HEAD
+ PyObject * obval;
+} PyObjectScalarObject;
+
+typedef struct {
+ PyObject_HEAD
+ npy_datetime obval;
+ PyArray_DatetimeMetaData obmeta;
+} PyDatetimeScalarObject;
+
+typedef struct {
+ PyObject_HEAD
+ npy_timedelta obval;
+ PyArray_DatetimeMetaData obmeta;
+} PyTimedeltaScalarObject;
+
+
+typedef struct {
+ PyObject_HEAD
+ char obval;
+} PyScalarObject;
+
+#define PyStringScalarObject PyBytesObject
+#ifndef Py_LIMITED_API
+typedef struct {
+ /* note that the PyObject_HEAD macro lives right here */
+ PyUnicodeObject base;
+ Py_UCS4 *obval;
+ #if NPY_FEATURE_VERSION >= NPY_1_20_API_VERSION
+ char *buffer_fmt;
+ #endif
+} PyUnicodeScalarObject;
+#endif
+
+
+typedef struct {
+ PyObject_VAR_HEAD
+ char *obval;
+#if defined(NPY_INTERNAL_BUILD) && NPY_INTERNAL_BUILD
+ /* Internally use the subclass to allow accessing names/fields */
+ _PyArray_LegacyDescr *descr;
+#else
+ PyArray_Descr *descr;
+#endif
+ int flags;
+ PyObject *base;
+ #if NPY_FEATURE_VERSION >= NPY_1_20_API_VERSION
+ void *_buffer_info; /* private buffer info, tagged to allow warning */
+ #endif
+} PyVoidScalarObject;
+
+/* Macros
+ PyScalarObject
+ PyArrType_Type
+ are defined in ndarrayobject.h
+*/
+
+#define PyArrayScalar_False ((PyObject *)(&(_PyArrayScalar_BoolValues[0])))
+#define PyArrayScalar_True ((PyObject *)(&(_PyArrayScalar_BoolValues[1])))
+#define PyArrayScalar_FromLong(i) \
+ ((PyObject *)(&(_PyArrayScalar_BoolValues[((i)!=0)])))
+#define PyArrayScalar_RETURN_BOOL_FROM_LONG(i) do { \
+ PyObject *obj = PyArrayScalar_FromLong(i); \
+ Py_INCREF(obj); \
+ return obj; \
+} while (0)
+#define PyArrayScalar_RETURN_FALSE \
+ return Py_INCREF(PyArrayScalar_False), \
+ PyArrayScalar_False
+#define PyArrayScalar_RETURN_TRUE \
+ return Py_INCREF(PyArrayScalar_True), \
+ PyArrayScalar_True
+
+#define PyArrayScalar_New(cls) \
+ Py##cls##ArrType_Type.tp_alloc(&Py##cls##ArrType_Type, 0)
+#ifndef Py_LIMITED_API
+/* For the limited API, use PyArray_ScalarAsCtype instead */
+#define PyArrayScalar_VAL(obj, cls) \
+ ((Py##cls##ScalarObject *)obj)->obval
+#define PyArrayScalar_ASSIGN(obj, cls, val) \
+ PyArrayScalar_VAL(obj, cls) = val
+#endif
+
+#endif /* NUMPY_CORE_INCLUDE_NUMPY_ARRAYSCALARS_H_ */
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/include/numpy/dtype_api.h b/python/user_packages/Python313/site-packages/numpy/_core/include/numpy/dtype_api.h
new file mode 100644
index 0000000000000000000000000000000000000000..08a9c9a8bbf7addefacef945a473a250feeba68f
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/include/numpy/dtype_api.h
@@ -0,0 +1,547 @@
+/*
+ * The public DType API
+ */
+
+#ifndef NUMPY_CORE_INCLUDE_NUMPY___DTYPE_API_H_
+#define NUMPY_CORE_INCLUDE_NUMPY___DTYPE_API_H_
+
+struct PyArrayMethodObject_tag;
+
+/*
+ * Largely opaque struct for DType classes (i.e. metaclass instances).
+ * The internal definition is currently in `ndarraytypes.h` (export is a bit
+ * more complex because `PyArray_Descr` is a DTypeMeta internally but not
+ * externally).
+ */
+#if !(defined(NPY_INTERNAL_BUILD) && NPY_INTERNAL_BUILD)
+
+#ifndef Py_LIMITED_API
+
+ typedef struct PyArray_DTypeMeta_tag {
+ PyHeapTypeObject super;
+
+ /*
+ * Most DTypes will have a singleton default instance, for the
+ * parametric legacy DTypes (bytes, string, void, datetime) this
+ * may be a pointer to the *prototype* instance?
+ */
+ PyArray_Descr *singleton;
+ /* Copy of the legacy DTypes type number, usually invalid. */
+ int type_num;
+
+ /* The type object of the scalar instances (may be NULL?) */
+ PyTypeObject *scalar_type;
+ /*
+ * DType flags to signal legacy, parametric, or
+ * abstract. But plenty of space for additional information/flags.
+ */
+ npy_uint64 flags;
+
+ /*
+ * Use indirection in order to allow a fixed size for this struct.
+ * A stable ABI size makes creating a static DType less painful
+ * while also ensuring flexibility for all opaque API (with one
+ * indirection due the pointer lookup).
+ */
+ void *dt_slots;
+ /* Allow growing (at the moment also beyond this) */
+ void *reserved[3];
+ } PyArray_DTypeMeta;
+
+#else
+
+typedef PyTypeObject PyArray_DTypeMeta;
+
+#endif /* Py_LIMITED_API */
+
+#endif /* not internal build */
+
+/*
+ * ******************************************************
+ * ArrayMethod API (Casting and UFuncs)
+ * ******************************************************
+ */
+
+
+typedef enum {
+ /* Flag for whether the GIL is required */
+ NPY_METH_REQUIRES_PYAPI = 1 << 0,
+ /*
+ * Some functions cannot set floating point error flags, this flag
+ * gives us the option (not requirement) to skip floating point error
+ * setup/check. No function should set error flags and ignore them
+ * since it would interfere with chaining operations (e.g. casting).
+ */
+ NPY_METH_NO_FLOATINGPOINT_ERRORS = 1 << 1,
+ /* Whether the method supports unaligned access (not runtime) */
+ NPY_METH_SUPPORTS_UNALIGNED = 1 << 2,
+ /*
+ * Used for reductions to allow reordering the operation. At this point
+ * assume that if set, it also applies to normal operations though!
+ */
+ NPY_METH_IS_REORDERABLE = 1 << 3,
+ /*
+ * Private flag for now for *logic* functions. The logical functions
+ * `logical_or` and `logical_and` can always cast the inputs to booleans
+ * "safely" (because that is how the cast to bool is defined).
+ * @seberg: I am not sure this is the best way to handle this, so its
+ * private for now (also it is very limited anyway).
+ * There is one "exception". NA aware dtypes cannot cast to bool
+ * (hopefully), so the `??->?` loop should error even with this flag.
+ * But a second NA fallback loop will be necessary.
+ */
+ _NPY_METH_FORCE_CAST_INPUTS = 1 << 17,
+
+ /* All flags which can change at runtime */
+ NPY_METH_RUNTIME_FLAGS = (
+ NPY_METH_REQUIRES_PYAPI |
+ NPY_METH_NO_FLOATINGPOINT_ERRORS),
+} NPY_ARRAYMETHOD_FLAGS;
+
+
+typedef enum {
+ /* Casting via same_value logic */
+ NPY_SAME_VALUE_CONTEXT_FLAG=1,
+} NPY_ARRAYMETHOD_CONTEXT_FLAGS;
+
+typedef struct PyArrayMethod_Context_tag {
+ /* The caller, which is typically the original ufunc. May be NULL */
+ PyObject *caller;
+ /* The method "self". Currently an opaque object. */
+ struct PyArrayMethodObject_tag *method;
+
+ /* Operand descriptors, filled in by resolve_descriptors */
+ PyArray_Descr *const *descriptors;
+ #if NPY_FEATURE_VERSION > NPY_2_3_API_VERSION
+ void * _reserved;
+ /*
+ * Optional flag to pass information into the inner loop
+ * NPY_ARRAYMETHOD_CONTEXT_FLAGS
+ */
+ uint64_t flags;
+
+ /*
+ * Optional run-time parameters to pass to the loop (currently used in sorting).
+ * Fixed parameters are expected to be passed via auxdata.
+ */
+ void *parameters;
+
+ /* Structure may grow (this is harmless for DType authors) */
+ #endif
+} PyArrayMethod_Context;
+
+
+/*
+ * The main object for creating a new ArrayMethod. We use the typical `slots`
+ * mechanism used by the Python limited API (see below for the slot defs).
+ */
+typedef struct {
+ const char *name;
+ int nin, nout;
+ NPY_CASTING casting;
+ NPY_ARRAYMETHOD_FLAGS flags;
+ PyArray_DTypeMeta **dtypes;
+ PyType_Slot *slots;
+} PyArrayMethod_Spec;
+
+
+// This is used for the convenience function `PyUFunc_AddLoopsFromSpecs`
+typedef struct {
+ const char *name;
+ PyArrayMethod_Spec *spec;
+} PyUFunc_LoopSlot;
+
+
+/*
+ * ArrayMethod slots
+ * -----------------
+ *
+ * SLOTS IDs For the ArrayMethod creation, once fully public, IDs are fixed
+ * but can be deprecated and arbitrarily extended.
+ */
+#define _NPY_METH_resolve_descriptors_with_scalars 1
+#define NPY_METH_resolve_descriptors 2
+#define NPY_METH_get_loop 3
+#define NPY_METH_get_reduction_initial 4
+/* specific loops for constructions/default get_loop: */
+#define NPY_METH_strided_loop 5
+#define NPY_METH_contiguous_loop 6
+#define NPY_METH_unaligned_strided_loop 7
+#define NPY_METH_unaligned_contiguous_loop 8
+#define NPY_METH_contiguous_indexed_loop 9
+#define _NPY_METH_static_data 10
+
+/*
+ * The resolve descriptors function, must be able to handle NULL values for
+ * all output (but not input) `given_descrs` and fill `loop_descrs`.
+ * Return -1 on error or 0 if the operation is not possible without an error
+ * set. (This may still be in flux.)
+ * Otherwise must return the "casting safety", for normal functions, this is
+ * almost always "safe" (or even "equivalent"?).
+ *
+ * `resolve_descriptors` is optional if all output DTypes are non-parametric.
+ */
+typedef NPY_CASTING (PyArrayMethod_ResolveDescriptors)(
+ /* "method" is currently opaque (necessary e.g. to wrap Python) */
+ struct PyArrayMethodObject_tag *method,
+ /* DTypes the method was created for */
+ PyArray_DTypeMeta *const *dtypes,
+ /* Input descriptors (instances). Outputs may be NULL. */
+ PyArray_Descr *const *given_descrs,
+ /* Exact loop descriptors to use, must not hold references on error */
+ PyArray_Descr **loop_descrs,
+ npy_intp *view_offset);
+
+
+/*
+ * Rarely needed, slightly more powerful version of `resolve_descriptors`.
+ * See also `PyArrayMethod_ResolveDescriptors` for details on shared arguments.
+ *
+ * NOTE: This function is private now as it is unclear how and what to pass
+ * exactly as additional information to allow dealing with the scalars.
+ * See also gh-24915.
+ */
+typedef NPY_CASTING (PyArrayMethod_ResolveDescriptorsWithScalar)(
+ struct PyArrayMethodObject_tag *method,
+ PyArray_DTypeMeta *const *dtypes,
+ /* Unlike above, these can have any DType and we may allow NULL. */
+ PyArray_Descr *const *given_descrs,
+ /*
+ * Input scalars or NULL. Only ever passed for python scalars.
+ * WARNING: In some cases, a loop may be explicitly selected and the
+ * value passed is not available (NULL) or does not have the
+ * expected type.
+ */
+ PyObject *const *input_scalars,
+ PyArray_Descr **loop_descrs,
+ npy_intp *view_offset);
+
+
+
+typedef int (PyArrayMethod_StridedLoop)(PyArrayMethod_Context *context,
+ char *const *data, const npy_intp *dimensions, const npy_intp *strides,
+ NpyAuxData *transferdata);
+
+
+typedef int (PyArrayMethod_GetLoop)(
+ PyArrayMethod_Context *context,
+ int aligned, int move_references,
+ const npy_intp *strides,
+ PyArrayMethod_StridedLoop **out_loop,
+ NpyAuxData **out_transferdata,
+ NPY_ARRAYMETHOD_FLAGS *flags);
+
+/**
+ * Query an ArrayMethod for the initial value for use in reduction.
+ *
+ * @param context The arraymethod context, mainly to access the descriptors.
+ * @param reduction_is_empty Whether the reduction is empty. When it is, the
+ * value returned may differ. In this case it is a "default" value that
+ * may differ from the "identity" value normally used. For example:
+ * - `0.0` is the default for `sum([])`. But `-0.0` is the correct
+ * identity otherwise as it preserves the sign for `sum([-0.0])`.
+ * - We use no identity for object, but return the default of `0` and `1`
+ * for the empty `sum([], dtype=object)` and `prod([], dtype=object)`.
+ * This allows `np.sum(np.array(["a", "b"], dtype=object))` to work.
+ * - `-inf` or `INT_MIN` for `max` is an identity, but at least `INT_MIN`
+ * not a good *default* when there are no items.
+ * @param initial Pointer to initial data to be filled (if possible)
+ *
+ * @returns -1, 0, or 1 indicating error, no initial value, and initial being
+ * successfully filled. Errors must not be given where 0 is correct, NumPy
+ * may call this even when not strictly necessary.
+ */
+typedef int (PyArrayMethod_GetReductionInitial)(
+ PyArrayMethod_Context *context, npy_bool reduction_is_empty,
+ void *initial);
+
+/*
+ * The following functions are only used by the wrapping array method defined
+ * in umath/wrapping_array_method.c
+ */
+
+
+/*
+ * The function to convert the given descriptors (passed in to
+ * `resolve_descriptors`) and translates them for the wrapped loop.
+ * The new descriptors MUST be viewable with the old ones, `NULL` must be
+ * supported (for outputs) and should normally be forwarded.
+ *
+ * The function must clean up on error.
+ *
+ * NOTE: We currently assume that this translation gives "viewable" results.
+ * I.e. there is no additional casting related to the wrapping process.
+ * In principle that could be supported, but not sure it is useful.
+ * This currently also means that e.g. alignment must apply identically
+ * to the new dtypes.
+ *
+ * TODO: Due to the fact that `resolve_descriptors` is also used for `can_cast`
+ * there is no way to "pass out" the result of this function. This means
+ * it will be called twice for every ufunc call.
+ * (I am considering including `auxdata` as an "optional" parameter to
+ * `resolve_descriptors`, so that it can be filled there if not NULL.)
+ */
+typedef int (PyArrayMethod_TranslateGivenDescriptors)(int nin, int nout,
+ PyArray_DTypeMeta *const wrapped_dtypes[],
+ PyArray_Descr *const given_descrs[], PyArray_Descr *new_descrs[]);
+
+/**
+ * The function to convert the actual loop descriptors (as returned by the
+ * original `resolve_descriptors` function) to the ones the output array
+ * should use.
+ * This function must return "viewable" types, it must not mutate them in any
+ * form that would break the inner-loop logic. Does not need to support NULL.
+ *
+ * The function must clean up on error.
+ *
+ * @param nin Number of input arguments
+ * @param nout Number of output arguments
+ * @param new_dtypes The DTypes of the output (usually probably not needed)
+ * @param given_descrs Original given_descrs to the resolver, necessary to
+ * fetch any information related to the new dtypes from the original.
+ * @param original_descrs The `loop_descrs` returned by the wrapped loop.
+ * @param loop_descrs The output descriptors, compatible to `original_descrs`.
+ *
+ * @returns 0 on success, -1 on failure.
+ */
+typedef int (PyArrayMethod_TranslateLoopDescriptors)(int nin, int nout,
+ PyArray_DTypeMeta *const new_dtypes[], PyArray_Descr *const given_descrs[],
+ PyArray_Descr *original_descrs[], PyArray_Descr *loop_descrs[]);
+
+
+
+/*
+ * A traverse loop working on a single array. This is similar to the general
+ * strided-loop function. This is designed for loops that need to visit every
+ * element of a single array.
+ *
+ * Currently this is used for array clearing, via the NPY_DT_get_clear_loop
+ * API hook, and zero-filling, via the NPY_DT_get_fill_zero_loop API hook.
+ * These are most useful for handling arrays storing embedded references to
+ * python objects or heap-allocated data.
+ *
+ * The `void *traverse_context` is passed in because we may need to pass in
+ * Interpreter state or similar in the future, but we don't want to pass in
+ * a full context (with pointers to dtypes, method, caller which all make
+ * no sense for a traverse function).
+ *
+ * We assume for now that this context can be just passed through in the
+ * the future (for structured dtypes).
+ *
+ */
+typedef int (PyArrayMethod_TraverseLoop)(
+ void *traverse_context, const PyArray_Descr *descr, char *data,
+ npy_intp size, npy_intp stride, NpyAuxData *auxdata);
+
+
+/*
+ * Simplified get_loop function specific to dtype traversal
+ *
+ * It should set the flags needed for the traversal loop and set out_loop to the
+ * loop function, which must be a valid PyArrayMethod_TraverseLoop
+ * pointer. Currently this is used for zero-filling and clearing arrays storing
+ * embedded references.
+ *
+ */
+typedef int (PyArrayMethod_GetTraverseLoop)(
+ void *traverse_context, const PyArray_Descr *descr,
+ int aligned, npy_intp fixed_stride,
+ PyArrayMethod_TraverseLoop **out_loop, NpyAuxData **out_auxdata,
+ NPY_ARRAYMETHOD_FLAGS *flags);
+
+
+/*
+ * Type of the C promoter function, which must be wrapped into a
+ * PyCapsule with name "numpy._ufunc_promoter".
+ *
+ * Note that currently the output dtypes are always NULL unless they are
+ * also part of the signature. This is an implementation detail and could
+ * change in the future. However, in general promoters should not have a
+ * need for output dtypes.
+ * (There are potential use-cases, these are currently unsupported.)
+ */
+typedef int (PyArrayMethod_PromoterFunction)(PyObject *ufunc,
+ PyArray_DTypeMeta *const op_dtypes[], PyArray_DTypeMeta *const signature[],
+ PyArray_DTypeMeta *new_op_dtypes[]);
+
+/*
+ * ****************************
+ * DTYPE API
+ * ****************************
+ */
+
+#define NPY_DT_ABSTRACT 1 << 1
+#define NPY_DT_PARAMETRIC 1 << 2
+#define NPY_DT_NUMERIC 1 << 3
+
+/*
+ * These correspond to slots in the NPY_DType_Slots struct and must
+ * be in the same order as the members of that struct. If new slots
+ * get added or old slots get removed NPY_NUM_DTYPE_SLOTS must also
+ * be updated
+ */
+
+#define NPY_DT_discover_descr_from_pyobject 1
+// this slot is considered private because its API hasn't been decided
+#define _NPY_DT_is_known_scalar_type 2
+#define NPY_DT_default_descr 3
+#define NPY_DT_common_dtype 4
+#define NPY_DT_common_instance 5
+#define NPY_DT_ensure_canonical 6
+#define NPY_DT_setitem 7
+#define NPY_DT_getitem 8
+#define NPY_DT_get_clear_loop 9
+#define NPY_DT_get_fill_zero_loop 10
+#define NPY_DT_finalize_descr 11
+#define NPY_DT_get_constant 12
+
+// These PyArray_ArrFunc slots will be deprecated and replaced eventually
+// getitem and setitem can be defined as a performance optimization;
+// by default the user dtypes call `legacy_getitem_using_DType` and
+// `legacy_setitem_using_DType`, respectively. This functionality is
+// only supported for basic NumPy DTypes.
+
+
+// used to separate dtype slots from arrfuncs slots
+// intended only for internal use but defined here for clarity
+#define _NPY_DT_ARRFUNCS_OFFSET (1 << 11)
+
+// Cast is disabled
+// #define NPY_DT_PyArray_ArrFuncs_cast 0 + _NPY_DT_ARRFUNCS_OFFSET
+
+#define NPY_DT_PyArray_ArrFuncs_getitem 1 + _NPY_DT_ARRFUNCS_OFFSET
+#define NPY_DT_PyArray_ArrFuncs_setitem 2 + _NPY_DT_ARRFUNCS_OFFSET
+
+// Copyswap is disabled
+// #define NPY_DT_PyArray_ArrFuncs_copyswapn 3 + _NPY_DT_ARRFUNCS_OFFSET
+// #define NPY_DT_PyArray_ArrFuncs_copyswap 4 + _NPY_DT_ARRFUNCS_OFFSET
+#define NPY_DT_PyArray_ArrFuncs_compare 5 + _NPY_DT_ARRFUNCS_OFFSET
+#define NPY_DT_PyArray_ArrFuncs_argmax 6 + _NPY_DT_ARRFUNCS_OFFSET
+#define NPY_DT_PyArray_ArrFuncs_dotfunc 7 + _NPY_DT_ARRFUNCS_OFFSET
+#define NPY_DT_PyArray_ArrFuncs_scanfunc 8 + _NPY_DT_ARRFUNCS_OFFSET
+#define NPY_DT_PyArray_ArrFuncs_fromstr 9 + _NPY_DT_ARRFUNCS_OFFSET
+#define NPY_DT_PyArray_ArrFuncs_nonzero 10 + _NPY_DT_ARRFUNCS_OFFSET
+#define NPY_DT_PyArray_ArrFuncs_fill 11 + _NPY_DT_ARRFUNCS_OFFSET
+#define NPY_DT_PyArray_ArrFuncs_fillwithscalar 12 + _NPY_DT_ARRFUNCS_OFFSET
+#define NPY_DT_PyArray_ArrFuncs_sort 13 + _NPY_DT_ARRFUNCS_OFFSET
+#define NPY_DT_PyArray_ArrFuncs_argsort 14 + _NPY_DT_ARRFUNCS_OFFSET
+
+// Casting related slots are disabled. See
+// https://github.com/numpy/numpy/pull/23173#discussion_r1101098163
+// #define NPY_DT_PyArray_ArrFuncs_castdict 15 + _NPY_DT_ARRFUNCS_OFFSET
+// #define NPY_DT_PyArray_ArrFuncs_scalarkind 16 + _NPY_DT_ARRFUNCS_OFFSET
+// #define NPY_DT_PyArray_ArrFuncs_cancastscalarkindto 17 + _NPY_DT_ARRFUNCS_OFFSET
+// #define NPY_DT_PyArray_ArrFuncs_cancastto 18 + _NPY_DT_ARRFUNCS_OFFSET
+
+// These are deprecated in NumPy 1.19, so are disabled here.
+// #define NPY_DT_PyArray_ArrFuncs_fastclip 19 + _NPY_DT_ARRFUNCS_OFFSET
+// #define NPY_DT_PyArray_ArrFuncs_fastputmask 20 + _NPY_DT_ARRFUNCS_OFFSET
+// #define NPY_DT_PyArray_ArrFuncs_fasttake 21 + _NPY_DT_ARRFUNCS_OFFSET
+#define NPY_DT_PyArray_ArrFuncs_argmin 22 + _NPY_DT_ARRFUNCS_OFFSET
+
+
+// TODO: These slots probably still need some thought, and/or a way to "grow"?
+typedef struct {
+ PyTypeObject *typeobj; /* type of python scalar or NULL */
+ int flags; /* flags, including parametric and abstract */
+ /* NULL terminated cast definitions. Use NULL for the newly created DType */
+ PyArrayMethod_Spec **casts;
+ PyType_Slot *slots;
+ /* Baseclass or NULL (will always subclass `np.dtype`) */
+ PyTypeObject *baseclass;
+} PyArrayDTypeMeta_Spec;
+
+
+typedef PyArray_Descr *(PyArrayDTypeMeta_DiscoverDescrFromPyobject)(
+ PyArray_DTypeMeta *cls, PyObject *obj);
+
+/*
+ * Before making this public, we should decide whether it should pass
+ * the type, or allow looking at the object. A possible use-case:
+ * `np.array(np.array([0]), dtype=np.ndarray)`
+ * Could consider arrays that are not `dtype=ndarray` "scalars".
+ */
+typedef int (PyArrayDTypeMeta_IsKnownScalarType)(
+ PyArray_DTypeMeta *cls, PyTypeObject *obj);
+
+typedef PyArray_Descr *(PyArrayDTypeMeta_DefaultDescriptor)(PyArray_DTypeMeta *cls);
+typedef PyArray_DTypeMeta *(PyArrayDTypeMeta_CommonDType)(
+ PyArray_DTypeMeta *dtype1, PyArray_DTypeMeta *dtype2);
+
+
+/*
+ * Convenience utility for getting a reference to the DType metaclass associated
+ * with a dtype instance.
+ */
+#define NPY_DTYPE(descr) ((PyArray_DTypeMeta *)Py_TYPE(descr))
+
+static inline PyArray_DTypeMeta *
+NPY_DT_NewRef(PyArray_DTypeMeta *o) {
+ Py_INCREF((PyObject *)o);
+ return o;
+}
+
+
+typedef PyArray_Descr *(PyArrayDTypeMeta_CommonInstance)(
+ PyArray_Descr *dtype1, PyArray_Descr *dtype2);
+typedef PyArray_Descr *(PyArrayDTypeMeta_EnsureCanonical)(PyArray_Descr *dtype);
+/*
+ * Returns either a new reference to *dtype* or a new descriptor instance
+ * initialized with the same parameters as *dtype*. The caller cannot know
+ * which choice a dtype will make. This function is called just before the
+ * array buffer is created for a newly created array, it is not called for
+ * views and the descriptor returned by this function is attached to the array.
+ */
+typedef PyArray_Descr *(PyArrayDTypeMeta_FinalizeDescriptor)(PyArray_Descr *dtype);
+
+/*
+ * Constants that can be queried and used e.g. by reduce identies defaults.
+ * These are also used to expose .finfo and .iinfo for example.
+ */
+/* Numerical constants */
+#define NPY_CONSTANT_zero 1
+#define NPY_CONSTANT_one 2
+#define NPY_CONSTANT_all_bits_set 3
+#define NPY_CONSTANT_maximum_finite 4
+#define NPY_CONSTANT_minimum_finite 5
+#define NPY_CONSTANT_inf 6
+#define NPY_CONSTANT_ninf 7
+#define NPY_CONSTANT_nan 8
+#define NPY_CONSTANT_finfo_radix 9
+#define NPY_CONSTANT_finfo_eps 10
+#define NPY_CONSTANT_finfo_smallest_normal 11
+#define NPY_CONSTANT_finfo_smallest_subnormal 12
+/* Constants that are always of integer type, value is `npy_intp/Py_ssize_t` */
+#define NPY_CONSTANT_finfo_nmant (1 << 16) + 0
+#define NPY_CONSTANT_finfo_min_exp (1 << 16) + 1
+#define NPY_CONSTANT_finfo_max_exp (1 << 16) + 2
+#define NPY_CONSTANT_finfo_decimal_digits (1 << 16) + 3
+
+/* It may make sense to continue with other constants here, e.g. pi, etc? */
+
+/*
+ * Function to get a constant value for the dtype. Data may be unaligned, the
+ * function is always called with the GIL held.
+ *
+ * @param descr The dtype instance (i.e. self)
+ * @param ID The ID of the constant to get.
+ * @param data Pointer to the data to be written too, may be unaligned.
+ * @returns 1 on success, 0 if the constant is not available, or -1 with an error set.
+ */
+typedef int (PyArrayDTypeMeta_GetConstant)(PyArray_Descr *descr, int ID, void *data);
+
+/*
+ * TODO: These two functions are currently only used for experimental DType
+ * API support. Their relation should be "reversed": NumPy should
+ * always use them internally.
+ * There are open points about "casting safety" though, e.g. setting
+ * elements is currently always unsafe.
+ */
+typedef int(PyArrayDTypeMeta_SetItem)(PyArray_Descr *, PyObject *, char *);
+typedef PyObject *(PyArrayDTypeMeta_GetItem)(PyArray_Descr *, char *);
+
+typedef struct {
+ NPY_SORTKIND flags;
+} PyArrayMethod_SortParameters;
+
+#endif /* NUMPY_CORE_INCLUDE_NUMPY___DTYPE_API_H_ */
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/include/numpy/halffloat.h b/python/user_packages/Python313/site-packages/numpy/_core/include/numpy/halffloat.h
new file mode 100644
index 0000000000000000000000000000000000000000..1365dc0e4f3c3523b32d6d7cbebc0d107627cf40
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/include/numpy/halffloat.h
@@ -0,0 +1,70 @@
+#ifndef NUMPY_CORE_INCLUDE_NUMPY_HALFFLOAT_H_
+#define NUMPY_CORE_INCLUDE_NUMPY_HALFFLOAT_H_
+
+#include
+#include
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/*
+ * Half-precision routines
+ */
+
+/* Conversions */
+float npy_half_to_float(npy_half h);
+double npy_half_to_double(npy_half h);
+npy_half npy_float_to_half(float f);
+npy_half npy_double_to_half(double d);
+/* Comparisons */
+int npy_half_eq(npy_half h1, npy_half h2);
+int npy_half_ne(npy_half h1, npy_half h2);
+int npy_half_le(npy_half h1, npy_half h2);
+int npy_half_lt(npy_half h1, npy_half h2);
+int npy_half_ge(npy_half h1, npy_half h2);
+int npy_half_gt(npy_half h1, npy_half h2);
+/* faster *_nonan variants for when you know h1 and h2 are not NaN */
+int npy_half_eq_nonan(npy_half h1, npy_half h2);
+int npy_half_lt_nonan(npy_half h1, npy_half h2);
+int npy_half_le_nonan(npy_half h1, npy_half h2);
+/* Miscellaneous functions */
+int npy_half_iszero(npy_half h);
+int npy_half_isnan(npy_half h);
+int npy_half_isinf(npy_half h);
+int npy_half_isfinite(npy_half h);
+int npy_half_signbit(npy_half h);
+npy_half npy_half_copysign(npy_half x, npy_half y);
+npy_half npy_half_spacing(npy_half h);
+npy_half npy_half_nextafter(npy_half x, npy_half y);
+npy_half npy_half_divmod(npy_half x, npy_half y, npy_half *modulus);
+
+/*
+ * Half-precision constants
+ */
+
+#define NPY_HALF_ZERO (0x0000u)
+#define NPY_HALF_PZERO (0x0000u)
+#define NPY_HALF_NZERO (0x8000u)
+#define NPY_HALF_ONE (0x3c00u)
+#define NPY_HALF_NEGONE (0xbc00u)
+#define NPY_HALF_PINF (0x7c00u)
+#define NPY_HALF_NINF (0xfc00u)
+#define NPY_HALF_NAN (0x7e00u)
+
+#define NPY_MAX_HALF (0x7bffu)
+
+/*
+ * Bit-level conversions
+ */
+
+npy_uint16 npy_floatbits_to_halfbits(npy_uint32 f);
+npy_uint16 npy_doublebits_to_halfbits(npy_uint64 d);
+npy_uint32 npy_halfbits_to_floatbits(npy_uint16 h);
+npy_uint64 npy_halfbits_to_doublebits(npy_uint16 h);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* NUMPY_CORE_INCLUDE_NUMPY_HALFFLOAT_H_ */
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/include/numpy/ndarrayobject.h b/python/user_packages/Python313/site-packages/numpy/_core/include/numpy/ndarrayobject.h
new file mode 100644
index 0000000000000000000000000000000000000000..accc67e4c6e8cf8c3cdd1d444811a59fc08d2fe9
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/include/numpy/ndarrayobject.h
@@ -0,0 +1,304 @@
+/*
+ * DON'T INCLUDE THIS DIRECTLY.
+ */
+#ifndef NUMPY_CORE_INCLUDE_NUMPY_NDARRAYOBJECT_H_
+#define NUMPY_CORE_INCLUDE_NUMPY_NDARRAYOBJECT_H_
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include
+#include "ndarraytypes.h"
+#include "dtype_api.h"
+
+/* Includes the "function" C-API -- these are all stored in a
+ list of pointers --- one for each file
+ The two lists are concatenated into one in multiarray.
+
+ They are available as import_array()
+*/
+
+#include "__multiarray_api.h"
+
+/*
+ * Include any definitions which are defined differently for 1.x and 2.x
+ * (Symbols only available on 2.x are not there, but rather guarded.)
+ */
+#include "npy_2_compat.h"
+
+/* C-API that requires previous API to be defined */
+
+#define PyArray_DescrCheck(op) PyObject_TypeCheck(op, &PyArrayDescr_Type)
+
+#define PyArray_Check(op) PyObject_TypeCheck(op, &PyArray_Type)
+#define PyArray_CheckExact(op) (Py_TYPE((PyObject*)(op)) == &PyArray_Type)
+
+#define PyArray_HasArrayInterfaceType(op, type, context, out) \
+ ((((out)=PyArray_FromStructInterface(op)) != Py_NotImplemented) || \
+ (((out)=PyArray_FromInterface(op)) != Py_NotImplemented) || \
+ (((out)=PyArray_FromArrayAttr(op, type, context)) != \
+ Py_NotImplemented))
+
+#define PyArray_HasArrayInterface(op, out) \
+ PyArray_HasArrayInterfaceType(op, NULL, NULL, out)
+
+#define PyArray_IsZeroDim(op) (PyArray_Check(op) && \
+ (PyArray_NDIM((PyArrayObject *)op) == 0))
+
+#define PyArray_IsScalar(obj, cls) \
+ (PyObject_TypeCheck(obj, &Py##cls##ArrType_Type))
+
+#define PyArray_CheckScalar(m) (PyArray_IsScalar(m, Generic) || \
+ PyArray_IsZeroDim(m))
+#define PyArray_IsPythonNumber(obj) \
+ (PyFloat_Check(obj) || PyComplex_Check(obj) || \
+ PyLong_Check(obj) || PyBool_Check(obj))
+#define PyArray_IsIntegerScalar(obj) (PyLong_Check(obj) \
+ || PyArray_IsScalar((obj), Integer))
+#define PyArray_IsPythonScalar(obj) \
+ (PyArray_IsPythonNumber(obj) || PyBytes_Check(obj) || \
+ PyUnicode_Check(obj))
+
+#define PyArray_IsAnyScalar(obj) \
+ (PyArray_IsScalar(obj, Generic) || PyArray_IsPythonScalar(obj))
+
+#define PyArray_CheckAnyScalar(obj) (PyArray_IsPythonScalar(obj) || \
+ PyArray_CheckScalar(obj))
+
+
+#define PyArray_GETCONTIGUOUS(m) (PyArray_ISCONTIGUOUS(m) ? \
+ Py_INCREF(m), (m) : \
+ (PyArrayObject *)(PyArray_Copy(m)))
+
+#define PyArray_SAMESHAPE(a1,a2) ((PyArray_NDIM(a1) == PyArray_NDIM(a2)) && \
+ PyArray_CompareLists(PyArray_DIMS(a1), \
+ PyArray_DIMS(a2), \
+ PyArray_NDIM(a1)))
+
+#define PyArray_SIZE(m) PyArray_MultiplyList(PyArray_DIMS(m), PyArray_NDIM(m))
+#define PyArray_NBYTES(m) (PyArray_ITEMSIZE(m) * PyArray_SIZE(m))
+#define PyArray_FROM_O(m) PyArray_FromAny(m, NULL, 0, 0, 0, NULL)
+
+#define PyArray_FROM_OF(m,flags) PyArray_CheckFromAny(m, NULL, 0, 0, flags, \
+ NULL)
+
+#define PyArray_FROM_OT(m,type) PyArray_FromAny(m, \
+ PyArray_DescrFromType(type), 0, 0, 0, NULL)
+
+#define PyArray_FROM_OTF(m, type, flags) \
+ PyArray_FromAny(m, PyArray_DescrFromType(type), 0, 0, \
+ (((flags) & NPY_ARRAY_ENSURECOPY) ? \
+ ((flags) | NPY_ARRAY_DEFAULT) : (flags)), NULL)
+
+#define PyArray_FROMANY(m, type, min, max, flags) \
+ PyArray_FromAny(m, PyArray_DescrFromType(type), min, max, \
+ (((flags) & NPY_ARRAY_ENSURECOPY) ? \
+ (flags) | NPY_ARRAY_DEFAULT : (flags)), NULL)
+
+#define PyArray_ZEROS(m, dims, type, is_f_order) \
+ PyArray_Zeros(m, dims, PyArray_DescrFromType(type), is_f_order)
+
+#define PyArray_EMPTY(m, dims, type, is_f_order) \
+ PyArray_Empty(m, dims, PyArray_DescrFromType(type), is_f_order)
+
+#define PyArray_FILLWBYTE(obj, val) memset(PyArray_DATA(obj), val, \
+ PyArray_NBYTES(obj))
+
+#define PyArray_ContiguousFromAny(op, type, min_depth, max_depth) \
+ PyArray_FromAny(op, PyArray_DescrFromType(type), min_depth, \
+ max_depth, NPY_ARRAY_DEFAULT, NULL)
+
+#define PyArray_EquivArrTypes(a1, a2) \
+ PyArray_EquivTypes(PyArray_DESCR(a1), PyArray_DESCR(a2))
+
+#define PyArray_EquivByteorders(b1, b2) \
+ (((b1) == (b2)) || (PyArray_ISNBO(b1) == PyArray_ISNBO(b2)))
+
+#define PyArray_SimpleNew(nd, dims, typenum) \
+ PyArray_New(&PyArray_Type, nd, dims, typenum, NULL, NULL, 0, 0, NULL)
+
+#define PyArray_SimpleNewFromData(nd, dims, typenum, data) \
+ PyArray_New(&PyArray_Type, nd, dims, typenum, NULL, \
+ data, 0, NPY_ARRAY_CARRAY, NULL)
+
+#define PyArray_SimpleNewFromDescr(nd, dims, descr) \
+ PyArray_NewFromDescr(&PyArray_Type, descr, nd, dims, \
+ NULL, NULL, 0, NULL)
+
+#define PyArray_ToScalar(data, arr) \
+ PyArray_Scalar(data, PyArray_DESCR(arr), (PyObject *)arr)
+
+
+/* These might be faster without the dereferencing of obj
+ going on inside -- of course an optimizing compiler should
+ inline the constants inside a for loop making it a moot point
+*/
+
+#define PyArray_GETPTR1(obj, i) ((void *)(PyArray_BYTES(obj) + \
+ (i)*PyArray_STRIDES(obj)[0]))
+
+#define PyArray_GETPTR2(obj, i, j) ((void *)(PyArray_BYTES(obj) + \
+ (i)*PyArray_STRIDES(obj)[0] + \
+ (j)*PyArray_STRIDES(obj)[1]))
+
+#define PyArray_GETPTR3(obj, i, j, k) ((void *)(PyArray_BYTES(obj) + \
+ (i)*PyArray_STRIDES(obj)[0] + \
+ (j)*PyArray_STRIDES(obj)[1] + \
+ (k)*PyArray_STRIDES(obj)[2]))
+
+#define PyArray_GETPTR4(obj, i, j, k, l) ((void *)(PyArray_BYTES(obj) + \
+ (i)*PyArray_STRIDES(obj)[0] + \
+ (j)*PyArray_STRIDES(obj)[1] + \
+ (k)*PyArray_STRIDES(obj)[2] + \
+ (l)*PyArray_STRIDES(obj)[3]))
+
+static inline void
+PyArray_DiscardWritebackIfCopy(PyArrayObject *arr)
+{
+ PyArrayObject_fields *fa = (PyArrayObject_fields *)arr;
+ if (fa && fa->base) {
+ if (fa->flags & NPY_ARRAY_WRITEBACKIFCOPY) {
+ PyArray_ENABLEFLAGS((PyArrayObject*)fa->base, NPY_ARRAY_WRITEABLE);
+ Py_DECREF(fa->base);
+ fa->base = NULL;
+ PyArray_CLEARFLAGS(arr, NPY_ARRAY_WRITEBACKIFCOPY);
+ }
+ }
+}
+
+#define PyArray_DESCR_REPLACE(descr) do { \
+ PyArray_Descr *_new_; \
+ _new_ = PyArray_DescrNew(descr); \
+ Py_XDECREF(descr); \
+ descr = _new_; \
+ } while(0)
+
+/* Copy should always return contiguous array */
+#define PyArray_Copy(obj) PyArray_NewCopy(obj, NPY_CORDER)
+
+#define PyArray_FromObject(op, type, min_depth, max_depth) \
+ PyArray_FromAny(op, PyArray_DescrFromType(type), min_depth, \
+ max_depth, NPY_ARRAY_BEHAVED | \
+ NPY_ARRAY_ENSUREARRAY, NULL)
+
+#define PyArray_ContiguousFromObject(op, type, min_depth, max_depth) \
+ PyArray_FromAny(op, PyArray_DescrFromType(type), min_depth, \
+ max_depth, NPY_ARRAY_DEFAULT | \
+ NPY_ARRAY_ENSUREARRAY, NULL)
+
+#define PyArray_CopyFromObject(op, type, min_depth, max_depth) \
+ PyArray_FromAny(op, PyArray_DescrFromType(type), min_depth, \
+ max_depth, NPY_ARRAY_ENSURECOPY | \
+ NPY_ARRAY_DEFAULT | \
+ NPY_ARRAY_ENSUREARRAY, NULL)
+
+#define PyArray_Cast(mp, type_num) \
+ PyArray_CastToType(mp, PyArray_DescrFromType(type_num), 0)
+
+#define PyArray_Take(ap, items, axis) \
+ PyArray_TakeFrom(ap, items, axis, NULL, NPY_RAISE)
+
+#define PyArray_Put(ap, items, values) \
+ PyArray_PutTo(ap, items, values, NPY_RAISE)
+
+
+/*
+ Check to see if this key in the dictionary is the "title"
+ entry of the tuple (i.e. a duplicate dictionary entry in the fields
+ dict).
+*/
+
+static inline int
+NPY_TITLE_KEY_check(PyObject *key, PyObject *value)
+{
+ PyObject *title;
+ if (PyTuple_Size(value) != 3) {
+ return 0;
+ }
+ title = PyTuple_GetItem(value, 2);
+ if (key == title) {
+ return 1;
+ }
+#ifdef PYPY_VERSION
+ /*
+ * On PyPy, dictionary keys do not always preserve object identity.
+ * Fall back to comparison by value.
+ */
+ if (PyUnicode_Check(title) && PyUnicode_Check(key)) {
+ return PyUnicode_Compare(title, key) == 0 ? 1 : 0;
+ }
+#endif
+ return 0;
+}
+
+/* Macro, for backward compat with "if NPY_TITLE_KEY(key, value) { ..." */
+#define NPY_TITLE_KEY(key, value) (NPY_TITLE_KEY_check((key), (value)))
+
+#define DEPRECATE(msg) PyErr_WarnEx(PyExc_DeprecationWarning,msg,1)
+#define DEPRECATE_FUTUREWARNING(msg) PyErr_WarnEx(PyExc_FutureWarning,msg,1)
+
+
+/*
+ * These macros and functions unfortunately require runtime version checks
+ * that are only defined in `npy_2_compat.h`. For that reasons they cannot be
+ * part of `ndarraytypes.h` which tries to be self contained.
+ */
+
+static inline npy_intp
+PyArray_ITEMSIZE(const PyArrayObject *arr)
+{
+ return PyDataType_ELSIZE(((PyArrayObject_fields *)arr)->descr);
+}
+
+#define PyDataType_HASFIELDS(obj) (PyDataType_ISLEGACY((PyArray_Descr*)(obj)) && PyDataType_NAMES((PyArray_Descr*)(obj)) != NULL)
+#define PyDataType_HASSUBARRAY(dtype) (PyDataType_ISLEGACY(dtype) && PyDataType_SUBARRAY(dtype) != NULL)
+#define PyDataType_ISUNSIZED(dtype) ((dtype)->elsize == 0 && \
+ !PyDataType_HASFIELDS(dtype))
+
+#define PyDataType_FLAGCHK(dtype, flag) \
+ ((PyDataType_FLAGS(dtype) & (flag)) == (flag))
+
+#define PyDataType_REFCHK(dtype) \
+ PyDataType_FLAGCHK(dtype, NPY_ITEM_REFCOUNT)
+
+#define NPY_BEGIN_THREADS_DESCR(dtype) \
+ do {if (!(PyDataType_FLAGCHK((dtype), NPY_NEEDS_PYAPI))) \
+ NPY_BEGIN_THREADS;} while (0);
+
+#define NPY_END_THREADS_DESCR(dtype) \
+ do {if (!(PyDataType_FLAGCHK((dtype), NPY_NEEDS_PYAPI))) \
+ NPY_END_THREADS; } while (0);
+
+#if !(defined(NPY_INTERNAL_BUILD) && NPY_INTERNAL_BUILD)
+/* The internal copy of this is now defined in `dtypemeta.h` */
+/*
+ * `PyArray_Scalar` is the same as this function but converts will convert
+ * most NumPy types to Python scalars.
+ */
+static inline PyObject *
+PyArray_GETITEM(const PyArrayObject *arr, const char *itemptr)
+{
+ return PyDataType_GetArrFuncs(((PyArrayObject_fields *)arr)->descr)->getitem(
+ (void *)itemptr, (PyArrayObject *)arr);
+}
+
+/*
+ * SETITEM should only be used if it is known that the value is a scalar
+ * and of a type understood by the arrays dtype.
+ * Use `PyArray_Pack` if the value may be of a different dtype.
+ */
+static inline int
+PyArray_SETITEM(PyArrayObject *arr, char *itemptr, PyObject *v)
+{
+ return PyDataType_GetArrFuncs(((PyArrayObject_fields *)arr)->descr)->setitem(v, itemptr, arr);
+}
+#endif /* not internal */
+
+
+#ifdef __cplusplus
+}
+#endif
+
+
+#endif /* NUMPY_CORE_INCLUDE_NUMPY_NDARRAYOBJECT_H_ */
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/include/numpy/ndarraytypes.h b/python/user_packages/Python313/site-packages/numpy/_core/include/numpy/ndarraytypes.h
new file mode 100644
index 0000000000000000000000000000000000000000..5dfb746b497b2ee9b86c725e769ed40f59a3ed34
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/include/numpy/ndarraytypes.h
@@ -0,0 +1,1982 @@
+#ifndef NUMPY_CORE_INCLUDE_NUMPY_NDARRAYTYPES_H_
+#define NUMPY_CORE_INCLUDE_NUMPY_NDARRAYTYPES_H_
+
+#include "npy_common.h"
+#include "npy_endian.h"
+#include "npy_cpu.h"
+#include "utils.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define NPY_NO_EXPORT NPY_VISIBILITY_HIDDEN
+
+/* Always allow threading unless it was explicitly disabled at build time */
+#if !NPY_NO_SMP
+ #define NPY_ALLOW_THREADS 1
+#else
+ #define NPY_ALLOW_THREADS 0
+#endif
+
+#ifndef __has_extension
+#define __has_extension(x) 0
+#endif
+
+/*
+ * There are several places in the code where an array of dimensions
+ * is allocated statically. This is the size of that static
+ * allocation.
+ *
+ * The array creation itself could have arbitrary dimensions but all
+ * the places where static allocation is used would need to be changed
+ * to dynamic (including inside of several structures)
+ *
+ * As of NumPy 2.0, we strongly discourage the downstream use of NPY_MAXDIMS,
+ * but since auditing everything seems a big ask, define it as 64.
+ * A future version could:
+ * - Increase or remove the limit and require recompilation (like 2.0 did)
+ * - Deprecate or remove the macro but keep the limit (at basically any time)
+ */
+#define NPY_MAXDIMS 64
+/* We cannot change this as it would break ABI: */
+#define NPY_MAXDIMS_LEGACY_ITERS 32
+/* NPY_MAXARGS is version dependent and defined in npy_2_compat.h */
+
+/* Used for Converter Functions "O&" code in ParseTuple */
+#define NPY_FAIL 0
+#define NPY_SUCCEED 1
+
+
+enum NPY_TYPES { NPY_BOOL=0,
+ NPY_BYTE, NPY_UBYTE,
+ NPY_SHORT, NPY_USHORT,
+ NPY_INT, NPY_UINT,
+ NPY_LONG, NPY_ULONG,
+ NPY_LONGLONG, NPY_ULONGLONG,
+ NPY_FLOAT, NPY_DOUBLE, NPY_LONGDOUBLE,
+ NPY_CFLOAT, NPY_CDOUBLE, NPY_CLONGDOUBLE,
+ NPY_OBJECT=17,
+ NPY_STRING, NPY_UNICODE,
+ NPY_VOID,
+ /*
+ * New 1.6 types appended, may be integrated
+ * into the above in 2.0.
+ */
+ NPY_DATETIME, NPY_TIMEDELTA, NPY_HALF,
+
+ NPY_CHAR, /* Deprecated, will raise if used */
+
+ /* The number of *legacy* dtypes */
+ NPY_NTYPES_LEGACY=24,
+
+ /* assign a high value to avoid changing this in the
+ future when new dtypes are added */
+ NPY_NOTYPE=25,
+
+ NPY_USERDEF=256, /* leave room for characters */
+
+ /* The number of types not including the new 1.6 types */
+ NPY_NTYPES_ABI_COMPATIBLE=21,
+
+ /*
+ * New DTypes which do not share the legacy layout
+ * (added after NumPy 2.0). VSTRING is the first of these
+ * we may open up a block for user-defined dtypes in the
+ * future.
+ */
+ NPY_VSTRING=2056,
+};
+
+
+/* basetype array priority */
+#define NPY_PRIORITY 0.0
+
+/* default subtype priority */
+#define NPY_SUBTYPE_PRIORITY 1.0
+
+/* default scalar priority */
+#define NPY_SCALAR_PRIORITY -1000000.0
+
+/* How many floating point types are there (excluding half) */
+#define NPY_NUM_FLOATTYPE 3
+
+/*
+ * These characters correspond to the array type and the struct
+ * module
+ */
+
+enum NPY_TYPECHAR {
+ NPY_BOOLLTR = '?',
+ NPY_BYTELTR = 'b',
+ NPY_UBYTELTR = 'B',
+ NPY_SHORTLTR = 'h',
+ NPY_USHORTLTR = 'H',
+ NPY_INTLTR = 'i',
+ NPY_UINTLTR = 'I',
+ NPY_LONGLTR = 'l',
+ NPY_ULONGLTR = 'L',
+ NPY_LONGLONGLTR = 'q',
+ NPY_ULONGLONGLTR = 'Q',
+ NPY_HALFLTR = 'e',
+ NPY_FLOATLTR = 'f',
+ NPY_DOUBLELTR = 'd',
+ NPY_LONGDOUBLELTR = 'g',
+ NPY_CFLOATLTR = 'F',
+ NPY_CDOUBLELTR = 'D',
+ NPY_CLONGDOUBLELTR = 'G',
+ NPY_OBJECTLTR = 'O',
+ NPY_STRINGLTR = 'S',
+ NPY_DEPRECATED_STRINGLTR2 = 'a',
+ NPY_UNICODELTR = 'U',
+ NPY_VOIDLTR = 'V',
+ NPY_DATETIMELTR = 'M',
+ NPY_TIMEDELTALTR = 'm',
+ NPY_CHARLTR = 'c',
+
+ /*
+ * New non-legacy DTypes
+ */
+ NPY_VSTRINGLTR = 'T',
+
+ /*
+ * Note, we removed `NPY_INTPLTR` due to changing its definition
+ * to 'n', rather than 'p'. On any typical platform this is the
+ * same integer. 'n' should be used for the `np.intp` with the same
+ * size as `size_t` while 'p' remains pointer sized.
+ *
+ * 'p', 'P', 'n', and 'N' are valid and defined explicitly
+ * in `arraytypes.c.src`.
+ */
+
+ /*
+ * These are for dtype 'kinds', not dtype 'typecodes'
+ * as the above are for.
+ */
+ NPY_GENBOOLLTR ='b',
+ NPY_SIGNEDLTR = 'i',
+ NPY_UNSIGNEDLTR = 'u',
+ NPY_FLOATINGLTR = 'f',
+ NPY_COMPLEXLTR = 'c',
+
+};
+
+/*
+ * Changing this may break Numpy API compatibility due to changing offsets in
+ * PyArray_ArrFuncs, so be careful. Here we have reused the mergesort slot for
+ * any kind of stable sort, the actual implementation will depend on the data
+ * type.
+ *
+ * Updated in NumPy 2.4
+ *
+ * Updated with new names denoting requirements rather than specifying a
+ * particular algorithm. All the previous values are reused in a way that
+ * should be downstream compatible, but the actual algorithms used may be
+ * different than before. The new approach should be more flexible and easier
+ * to update.
+ *
+ * Names with a leading underscore are private, and should only be used
+ * internally by NumPy.
+ *
+ * NPY_NSORTS remains the same for backwards compatibility, it should not be
+ * changed.
+ */
+
+typedef enum {
+ _NPY_SORT_UNDEFINED = -1,
+ NPY_QUICKSORT = 0,
+ NPY_HEAPSORT = 1,
+ NPY_MERGESORT = 2,
+ NPY_STABLESORT = 2,
+ // new style names
+ _NPY_SORT_HEAPSORT = 1,
+ NPY_SORT_DEFAULT = 0,
+ NPY_SORT_STABLE = 2,
+ NPY_SORT_DESCENDING = 4,
+} NPY_SORTKIND;
+#define NPY_NSORTS (NPY_STABLESORT + 1)
+
+
+typedef enum {
+ NPY_INTROSELECT=0
+} NPY_SELECTKIND;
+#define NPY_NSELECTS (NPY_INTROSELECT + 1)
+
+
+typedef enum {
+ NPY_SEARCHLEFT=0,
+ NPY_SEARCHRIGHT=1
+} NPY_SEARCHSIDE;
+#define NPY_NSEARCHSIDES (NPY_SEARCHRIGHT + 1)
+
+
+typedef enum {
+ NPY_NOSCALAR=-1,
+ NPY_BOOL_SCALAR,
+ NPY_INTPOS_SCALAR,
+ NPY_INTNEG_SCALAR,
+ NPY_FLOAT_SCALAR,
+ NPY_COMPLEX_SCALAR,
+ NPY_OBJECT_SCALAR
+} NPY_SCALARKIND;
+#define NPY_NSCALARKINDS (NPY_OBJECT_SCALAR + 1)
+
+/* For specifying array memory layout or iteration order */
+typedef enum {
+ /* Fortran order if inputs are all Fortran, C otherwise */
+ NPY_ANYORDER=-1,
+ /* C order */
+ NPY_CORDER=0,
+ /* Fortran order */
+ NPY_FORTRANORDER=1,
+ /* An order as close to the inputs as possible */
+ NPY_KEEPORDER=2
+} NPY_ORDER;
+
+#if NPY_FEATURE_VERSION >= NPY_2_4_API_VERSION
+/*
+ * check that no values overflow/change during casting
+ * Used explicitly only in the ArrayMethod creation or resolve_dtypes functions to
+ * indicate that a same-value cast is supported. In external APIs, use only
+ * NPY_SAME_VALUE_CASTING
+ */
+#define NPY_SAME_VALUE_CASTING_FLAG 64
+#endif
+
+/* For specifying allowed casting in operations which support it */
+typedef enum {
+ _NPY_ERROR_OCCURRED_IN_CAST = -1,
+ /* Only allow identical types */
+ NPY_NO_CASTING=0,
+ /* Allow identical and byte swapped types */
+ NPY_EQUIV_CASTING=1,
+ /* Only allow safe casts */
+ NPY_SAFE_CASTING=2,
+ /* Allow safe casts or casts within the same kind */
+ NPY_SAME_KIND_CASTING=3,
+ /* Allow any casts */
+ NPY_UNSAFE_CASTING=4,
+#if NPY_FEATURE_VERSION >= NPY_2_4_API_VERSION
+ NPY_SAME_VALUE_CASTING=NPY_UNSAFE_CASTING | NPY_SAME_VALUE_CASTING_FLAG,
+#endif
+} NPY_CASTING;
+
+typedef enum {
+ NPY_CLIP=0,
+ NPY_WRAP=1,
+ NPY_RAISE=2
+} NPY_CLIPMODE;
+
+typedef enum {
+ NPY_VALID=0,
+ NPY_SAME=1,
+ NPY_FULL=2
+} NPY_CORRELATEMODE;
+
+/* The special not-a-time (NaT) value */
+#define NPY_DATETIME_NAT NPY_MIN_INT64
+
+/*
+ * Upper bound on the length of a DATETIME ISO 8601 string
+ * YEAR: 21 (64-bit year)
+ * MONTH: 3
+ * DAY: 3
+ * HOURS: 3
+ * MINUTES: 3
+ * SECONDS: 3
+ * ATTOSECONDS: 1 + 3*6
+ * TIMEZONE: 5
+ * NULL TERMINATOR: 1
+ */
+#define NPY_DATETIME_MAX_ISO8601_STRLEN (21 + 3*5 + 1 + 3*6 + 6 + 1)
+
+/* The FR in the unit names stands for frequency */
+typedef enum {
+ /* Force signed enum type, must be -1 for code compatibility */
+ NPY_FR_ERROR = -1, /* error or undetermined */
+
+ /* Start of valid units */
+ NPY_FR_Y = 0, /* Years */
+ NPY_FR_M = 1, /* Months */
+ NPY_FR_W = 2, /* Weeks */
+ /* Gap where 1.6 NPY_FR_B (value 3) was */
+ NPY_FR_D = 4, /* Days */
+ NPY_FR_h = 5, /* hours */
+ NPY_FR_m = 6, /* minutes */
+ NPY_FR_s = 7, /* seconds */
+ NPY_FR_ms = 8, /* milliseconds */
+ NPY_FR_us = 9, /* microseconds */
+ NPY_FR_ns = 10, /* nanoseconds */
+ NPY_FR_ps = 11, /* picoseconds */
+ NPY_FR_fs = 12, /* femtoseconds */
+ NPY_FR_as = 13, /* attoseconds */
+ NPY_FR_GENERIC = 14 /* unbound units, can convert to anything */
+} NPY_DATETIMEUNIT;
+
+/*
+ * NOTE: With the NPY_FR_B gap for 1.6 ABI compatibility, NPY_DATETIME_NUMUNITS
+ * is technically one more than the actual number of units.
+ */
+#define NPY_DATETIME_NUMUNITS (NPY_FR_GENERIC + 1)
+#define NPY_DATETIME_DEFAULTUNIT NPY_FR_GENERIC
+
+/*
+ * Business day conventions for mapping invalid business
+ * days to valid business days.
+ */
+typedef enum {
+ /* Go forward in time to the following business day. */
+ NPY_BUSDAY_FORWARD,
+ NPY_BUSDAY_FOLLOWING = NPY_BUSDAY_FORWARD,
+ /* Go backward in time to the preceding business day. */
+ NPY_BUSDAY_BACKWARD,
+ NPY_BUSDAY_PRECEDING = NPY_BUSDAY_BACKWARD,
+ /*
+ * Go forward in time to the following business day, unless it
+ * crosses a month boundary, in which case go backward
+ */
+ NPY_BUSDAY_MODIFIEDFOLLOWING,
+ /*
+ * Go backward in time to the preceding business day, unless it
+ * crosses a month boundary, in which case go forward.
+ */
+ NPY_BUSDAY_MODIFIEDPRECEDING,
+ /* Produce a NaT for non-business days. */
+ NPY_BUSDAY_NAT,
+ /* Raise an exception for non-business days. */
+ NPY_BUSDAY_RAISE
+} NPY_BUSDAY_ROLL;
+
+
+/************************************************************
+ * NumPy Auxiliary Data for inner loops, sort functions, etc.
+ ************************************************************/
+
+/*
+ * When creating an auxiliary data struct, this should always appear
+ * as the first member, like this:
+ *
+ * typedef struct {
+ * NpyAuxData base;
+ * double constant;
+ * } constant_multiplier_aux_data;
+ */
+typedef struct NpyAuxData_tag NpyAuxData;
+
+/* Function pointers for freeing or cloning auxiliary data */
+typedef void (NpyAuxData_FreeFunc) (NpyAuxData *);
+typedef NpyAuxData *(NpyAuxData_CloneFunc) (NpyAuxData *);
+
+struct NpyAuxData_tag {
+ NpyAuxData_FreeFunc *free;
+ NpyAuxData_CloneFunc *clone;
+ /* To allow for a bit of expansion without breaking the ABI */
+ void *reserved[2];
+};
+
+/* Macros to use for freeing and cloning auxiliary data */
+#define NPY_AUXDATA_FREE(auxdata) \
+ do { \
+ if ((auxdata) != NULL) { \
+ (auxdata)->free(auxdata); \
+ } \
+ } while(0)
+#define NPY_AUXDATA_CLONE(auxdata) \
+ ((auxdata)->clone(auxdata))
+
+#define NPY_ERR(str) fprintf(stderr, #str); fflush(stderr);
+#define NPY_ERR2(str) fprintf(stderr, str); fflush(stderr);
+
+/*
+* Macros to define how array, and dimension/strides data is
+* allocated. These should be made private
+*/
+
+#define NPY_USE_PYMEM 1
+
+
+#if NPY_USE_PYMEM == 1
+/* use the Raw versions which are safe to call with the GIL released */
+#define PyArray_malloc PyMem_RawMalloc
+#define PyArray_free PyMem_RawFree
+#define PyArray_realloc PyMem_RawRealloc
+#else
+#define PyArray_malloc malloc
+#define PyArray_free free
+#define PyArray_realloc realloc
+#endif
+
+/* Dimensions and strides */
+#define PyDimMem_NEW(size) \
+ ((npy_intp *)PyArray_malloc(size*sizeof(npy_intp)))
+
+#define PyDimMem_FREE(ptr) PyArray_free(ptr)
+
+#define PyDimMem_RENEW(ptr,size) \
+ ((npy_intp *)PyArray_realloc(ptr,size*sizeof(npy_intp)))
+
+/* forward declaration */
+struct _PyArray_Descr;
+
+/* These must deal with unaligned and swapped data if necessary */
+typedef PyObject * (PyArray_GetItemFunc) (void *, void *);
+typedef int (PyArray_SetItemFunc)(PyObject *, void *, void *);
+
+typedef void (PyArray_CopySwapNFunc)(void *, npy_intp, void *, npy_intp,
+ npy_intp, int, void *);
+
+typedef void (PyArray_CopySwapFunc)(void *, void *, int, void *);
+typedef npy_bool (PyArray_NonzeroFunc)(void *, void *);
+
+
+/*
+ * These assume aligned and notswapped data -- a buffer will be used
+ * before or contiguous data will be obtained
+ */
+
+typedef int (PyArray_CompareFunc)(const void *, const void *, void *);
+typedef int (PyArray_ArgFunc)(void*, npy_intp, npy_intp*, void *);
+
+typedef void (PyArray_DotFunc)(void *, npy_intp, void *, npy_intp, void *,
+ npy_intp, void *);
+
+typedef void (PyArray_VectorUnaryFunc)(void *, void *, npy_intp, void *,
+ void *);
+
+/*
+ * XXX the ignore argument should be removed next time the API version
+ * is bumped. It used to be the separator.
+ */
+typedef int (PyArray_ScanFunc)(FILE *fp, void *dptr,
+ char *ignore, struct _PyArray_Descr *);
+typedef int (PyArray_FromStrFunc)(char *s, void *dptr, char **endptr,
+ struct _PyArray_Descr *);
+
+typedef int (PyArray_FillFunc)(void *, npy_intp, void *);
+
+typedef int (PyArray_SortFunc)(void *, npy_intp, void *);
+typedef int (PyArray_ArgSortFunc)(void *, npy_intp *, npy_intp, void *);
+
+typedef int (PyArray_FillWithScalarFunc)(void *, npy_intp, void *, void *);
+
+typedef int (PyArray_ScalarKindFunc)(void *);
+
+typedef struct {
+ npy_intp *ptr;
+ int len;
+} PyArray_Dims;
+
+typedef struct {
+ /*
+ * Functions to cast to most other standard types
+ * Can have some NULL entries. The types
+ * DATETIME, TIMEDELTA, and HALF go into the castdict
+ * even though they are built-in.
+ */
+ PyArray_VectorUnaryFunc *cast[NPY_NTYPES_ABI_COMPATIBLE];
+
+ /* The next four functions *cannot* be NULL */
+
+ /*
+ * Functions to get and set items with standard Python types
+ * -- not array scalars
+ */
+ PyArray_GetItemFunc *getitem;
+ PyArray_SetItemFunc *setitem;
+
+ /*
+ * Copy and/or swap data. Memory areas may not overlap
+ * Use memmove first if they might
+ */
+ PyArray_CopySwapNFunc *copyswapn;
+ PyArray_CopySwapFunc *copyswap;
+
+ /*
+ * Function to compare items
+ * Can be NULL
+ */
+ PyArray_CompareFunc *compare;
+
+ /*
+ * Function to select largest
+ * Can be NULL
+ */
+ PyArray_ArgFunc *argmax;
+
+ /*
+ * Function to compute dot product
+ * Can be NULL
+ */
+ PyArray_DotFunc *dotfunc;
+
+ /*
+ * Function to scan an ASCII file and
+ * place a single value plus possible separator
+ * Can be NULL
+ */
+ PyArray_ScanFunc *scanfunc;
+
+ /*
+ * Function to read a single value from a string
+ * and adjust the pointer; Can be NULL
+ */
+ PyArray_FromStrFunc *fromstr;
+
+ /*
+ * Function to determine if data is zero or not
+ * If NULL a default version is
+ * used at Registration time.
+ */
+ PyArray_NonzeroFunc *nonzero;
+
+ /*
+ * Used for arange. Should return 0 on success
+ * and -1 on failure.
+ * Can be NULL.
+ */
+ PyArray_FillFunc *fill;
+
+ /*
+ * Function to fill arrays with scalar values
+ * Can be NULL
+ */
+ PyArray_FillWithScalarFunc *fillwithscalar;
+
+ /*
+ * Sorting functions
+ * Can be NULL
+ */
+ PyArray_SortFunc *sort[NPY_NSORTS];
+ PyArray_ArgSortFunc *argsort[NPY_NSORTS];
+
+ /*
+ * Dictionary of additional casting functions
+ * PyArray_VectorUnaryFuncs
+ * which can be populated to support casting
+ * to other registered types. Can be NULL
+ */
+ PyObject *castdict;
+
+ /*
+ * Functions useful for generalizing
+ * the casting rules.
+ * Can be NULL;
+ */
+ PyArray_ScalarKindFunc *scalarkind;
+ int **cancastscalarkindto;
+ int *cancastto;
+
+ void *_unused1;
+ void *_unused2;
+ void *_unused3;
+
+ /*
+ * Function to select smallest
+ * Can be NULL
+ */
+ PyArray_ArgFunc *argmin;
+
+} PyArray_ArrFuncs;
+
+
+/* The item must be reference counted when it is inserted or extracted. */
+#define NPY_ITEM_REFCOUNT 0x01
+/* Same as needing REFCOUNT */
+#define NPY_ITEM_HASOBJECT 0x01
+/* Convert to list for pickling */
+#define NPY_LIST_PICKLE 0x02
+/* The item is a POINTER */
+#define NPY_ITEM_IS_POINTER 0x04
+/* memory needs to be initialized for this data-type */
+#define NPY_NEEDS_INIT 0x08
+/* operations need Python C-API so don't give-up thread. */
+#define NPY_NEEDS_PYAPI 0x10
+/* Use f.getitem when extracting elements of this data-type */
+#define NPY_USE_GETITEM 0x20
+/* Use f.setitem when setting creating 0-d array from this data-type.*/
+#define NPY_USE_SETITEM 0x40
+/* A sticky flag specifically for structured arrays */
+#define NPY_ALIGNED_STRUCT 0x80
+
+/*
+ *These are inherited for global data-type if any data-types in the
+ * field have them
+ */
+#define NPY_FROM_FIELDS (NPY_NEEDS_INIT | NPY_LIST_PICKLE | \
+ NPY_ITEM_REFCOUNT | NPY_NEEDS_PYAPI)
+
+#define NPY_OBJECT_DTYPE_FLAGS (NPY_LIST_PICKLE | NPY_USE_GETITEM | \
+ NPY_ITEM_IS_POINTER | NPY_ITEM_REFCOUNT | \
+ NPY_NEEDS_INIT | NPY_NEEDS_PYAPI)
+
+#if NPY_FEATURE_VERSION >= NPY_2_0_API_VERSION
+/*
+ * Public version of the Descriptor struct as of 2.x
+ */
+typedef struct _PyArray_Descr {
+ PyObject_HEAD
+ /*
+ * the type object representing an
+ * instance of this type -- should not
+ * be two type_numbers with the same type
+ * object.
+ */
+ PyTypeObject *typeobj;
+ /* kind for this type */
+ char kind;
+ /* unique-character representing this type */
+ char type;
+ /*
+ * '>' (big), '<' (little), '|'
+ * (not-applicable), or '=' (native).
+ */
+ char byteorder;
+ /* Former flags flags space (unused) to ensure type_num is stable. */
+ char _former_flags;
+ /* number representing this type */
+ int type_num;
+ /* Space for dtype instance specific flags. */
+ npy_uint64 flags;
+ /* element size (itemsize) for this type */
+ npy_intp elsize;
+ /* alignment needed for this type */
+ npy_intp alignment;
+ /* metadata dict or NULL */
+ PyObject *metadata;
+ /* Cached hash value (-1 if not yet computed). */
+ npy_hash_t hash;
+ /* Unused slot (must be initialized to NULL) for future use */
+ void *reserved_null[2];
+} PyArray_Descr;
+
+#else /* 1.x and 2.x compatible version (only shared fields): */
+
+typedef struct _PyArray_Descr {
+ PyObject_HEAD
+ PyTypeObject *typeobj;
+ char kind;
+ char type;
+ char byteorder;
+ char _former_flags;
+ int type_num;
+} PyArray_Descr;
+
+/* To access modified fields, define the full 2.0 struct: */
+typedef struct {
+ PyObject_HEAD
+ PyTypeObject *typeobj;
+ char kind;
+ char type;
+ char byteorder;
+ char _former_flags;
+ int type_num;
+ npy_uint64 flags;
+ npy_intp elsize;
+ npy_intp alignment;
+ PyObject *metadata;
+ npy_hash_t hash;
+ void *reserved_null[2];
+} _PyArray_DescrNumPy2;
+
+#endif /* 1.x and 2.x compatible version */
+
+/*
+ * Semi-private struct with additional field of legacy descriptors (must
+ * check NPY_DT_is_legacy before casting/accessing). The struct is also not
+ * valid when running on 1.x (i.e. in public API use).
+ */
+typedef struct {
+ PyObject_HEAD
+ PyTypeObject *typeobj;
+ char kind;
+ char type;
+ char byteorder;
+ char _former_flags;
+ int type_num;
+ npy_uint64 flags;
+ npy_intp elsize;
+ npy_intp alignment;
+ PyObject *metadata;
+ npy_hash_t hash;
+ void *reserved_null[2];
+ struct _arr_descr *subarray;
+ PyObject *fields;
+ PyObject *names;
+ NpyAuxData *c_metadata;
+} _PyArray_LegacyDescr;
+
+
+/*
+ * Umodified PyArray_Descr struct identical to NumPy 1.x. This struct is
+ * used as a prototype for registering a new legacy DType.
+ * It is also used to access the fields in user code running on 1.x.
+ */
+typedef struct {
+ PyObject_HEAD
+ PyTypeObject *typeobj;
+ char kind;
+ char type;
+ char byteorder;
+ char flags;
+ int type_num;
+ int elsize;
+ int alignment;
+ struct _arr_descr *subarray;
+ PyObject *fields;
+ PyObject *names;
+ PyArray_ArrFuncs *f;
+ PyObject *metadata;
+ NpyAuxData *c_metadata;
+ npy_hash_t hash;
+} PyArray_DescrProto;
+
+
+typedef struct _arr_descr {
+ PyArray_Descr *base;
+ PyObject *shape; /* a tuple */
+} PyArray_ArrayDescr;
+
+/*
+ * Memory handler structure for array data.
+ */
+/* The declaration of free differs from PyMemAllocatorEx */
+typedef struct {
+ void *ctx;
+ void* (*malloc) (void *ctx, size_t size);
+ void* (*calloc) (void *ctx, size_t nelem, size_t elsize);
+ void* (*realloc) (void *ctx, void *ptr, size_t new_size);
+ void (*free) (void *ctx, void *ptr, size_t size);
+ /*
+ * This is the end of the version=1 struct. Only add new fields after
+ * this line
+ */
+} PyDataMemAllocator;
+
+typedef struct {
+ char name[127]; /* multiple of 64 to keep the struct aligned */
+ uint8_t version; /* currently 1 */
+ PyDataMemAllocator allocator;
+} PyDataMem_Handler;
+
+
+/*
+ * The main array object structure.
+ *
+ * It has been recommended to use the inline functions defined below
+ * (PyArray_DATA and friends) to access fields here for a number of
+ * releases. Direct access to the members themselves is deprecated.
+ * To ensure that your code does not use deprecated access,
+ * #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
+ * (or NPY_1_8_API_VERSION or higher as required).
+ */
+/* This struct will be moved to a private header in a future release */
+typedef struct tagPyArrayObject_fields {
+ PyObject_HEAD
+ /* Pointer to the raw data buffer */
+ char *data;
+ /* The number of dimensions, also called 'ndim' */
+ int nd;
+ /* The size in each dimension, also called 'shape' */
+ npy_intp *dimensions;
+ /*
+ * Number of bytes to jump to get to the
+ * next element in each dimension
+ */
+ npy_intp *strides;
+ /*
+ * This object is decref'd upon
+ * deletion of array. Except in the
+ * case of WRITEBACKIFCOPY which has
+ * special handling.
+ *
+ * For views it points to the original
+ * array, collapsed so no chains of
+ * views occur.
+ *
+ * For creation from buffer object it
+ * points to an object that should be
+ * decref'd on deletion
+ *
+ * For WRITEBACKIFCOPY flag this is an
+ * array to-be-updated upon calling
+ * PyArray_ResolveWritebackIfCopy
+ */
+ PyObject *base;
+ /* Pointer to type structure */
+ PyArray_Descr *descr;
+ /* Flags describing array -- see below */
+ int flags;
+ /* For weak references */
+ PyObject *weakreflist;
+#if NPY_FEATURE_VERSION >= NPY_1_20_API_VERSION
+ void *_buffer_info; /* private buffer info, tagged to allow warning */
+#endif
+ /*
+ * For malloc/calloc/realloc/free per object
+ */
+#if NPY_FEATURE_VERSION >= NPY_1_22_API_VERSION
+ PyObject *mem_handler;
+#endif
+} PyArrayObject_fields;
+
+/*
+ * To hide the implementation details, we only expose
+ * the Python struct HEAD.
+ */
+#if !defined(NPY_NO_DEPRECATED_API) || \
+ (NPY_NO_DEPRECATED_API < NPY_1_7_API_VERSION)
+/*
+ * Can't put this in npy_deprecated_api.h like the others.
+ * PyArrayObject field access is deprecated as of NumPy 1.7.
+ */
+typedef PyArrayObject_fields PyArrayObject;
+#else
+typedef struct tagPyArrayObject {
+ PyObject_HEAD
+} PyArrayObject;
+#endif
+
+/*
+ * Removed 2020-Nov-25, NumPy 1.20
+ * #define NPY_SIZEOF_PYARRAYOBJECT (sizeof(PyArrayObject_fields))
+ *
+ * The above macro was removed as it gave a false sense of a stable ABI
+ * with respect to the structures size. If you require a runtime constant,
+ * you can use `PyArray_Type.tp_basicsize` instead. Otherwise, please
+ * see the PyArrayObject documentation or ask the NumPy developers for
+ * information on how to correctly replace the macro in a way that is
+ * compatible with multiple NumPy versions.
+ */
+
+/* Mirrors buffer object to ptr */
+
+typedef struct {
+ PyObject_HEAD
+ PyObject *base;
+ void *ptr;
+ npy_intp len;
+ int flags;
+} PyArray_Chunk;
+
+typedef struct {
+ NPY_DATETIMEUNIT base;
+ int num;
+} PyArray_DatetimeMetaData;
+
+typedef struct {
+ NpyAuxData base;
+ PyArray_DatetimeMetaData meta;
+} PyArray_DatetimeDTypeMetaData;
+
+/*
+ * This structure contains an exploded view of a date-time value.
+ * NaT is represented by year == NPY_DATETIME_NAT.
+ */
+typedef struct {
+ npy_int64 year;
+ npy_int32 month, day, hour, min, sec, us, ps, as;
+} npy_datetimestruct;
+
+/* This structure contains an exploded view of a timedelta value */
+typedef struct {
+ npy_int64 day;
+ npy_int32 sec, us, ps, as;
+} npy_timedeltastruct;
+
+typedef int (PyArray_FinalizeFunc)(PyArrayObject *, PyObject *);
+
+/*
+ * Means c-style contiguous (last index varies the fastest). The data
+ * elements right after each other.
+ *
+ * This flag may be requested in constructor functions.
+ * This flag may be tested for in PyArray_FLAGS(arr).
+ */
+#define NPY_ARRAY_C_CONTIGUOUS 0x0001
+
+/*
+ * Set if array is a contiguous Fortran array: the first index varies
+ * the fastest in memory (strides array is reverse of C-contiguous
+ * array)
+ *
+ * This flag may be requested in constructor functions.
+ * This flag may be tested for in PyArray_FLAGS(arr).
+ */
+#define NPY_ARRAY_F_CONTIGUOUS 0x0002
+
+/*
+ * Note: all 0-d arrays are C_CONTIGUOUS and F_CONTIGUOUS. If a
+ * 1-d array is C_CONTIGUOUS it is also F_CONTIGUOUS. Arrays with
+ * more then one dimension can be C_CONTIGUOUS and F_CONTIGUOUS
+ * at the same time if they have either zero or one element.
+ * A higher dimensional array always has the same contiguity flags as
+ * `array.squeeze()`; dimensions with `array.shape[dimension] == 1` are
+ * effectively ignored when checking for contiguity.
+ */
+
+/*
+ * If set, the array owns the data: it will be free'd when the array
+ * is deleted.
+ *
+ * This flag may be tested for in PyArray_FLAGS(arr).
+ */
+#define NPY_ARRAY_OWNDATA 0x0004
+
+/*
+ * An array never has the next four set; they're only used as parameter
+ * flags to the various FromAny functions
+ *
+ * This flag may be requested in constructor functions.
+ */
+
+/* Cause a cast to occur regardless of whether or not it is safe. */
+#define NPY_ARRAY_FORCECAST 0x0010
+
+/*
+ * Always copy the array. Returned arrays are always CONTIGUOUS,
+ * ALIGNED, and WRITEABLE. See also: NPY_ARRAY_ENSURENOCOPY = 0x4000.
+ *
+ * This flag may be requested in constructor functions.
+ */
+#define NPY_ARRAY_ENSURECOPY 0x0020
+
+/*
+ * Make sure the returned array is a base-class ndarray
+ *
+ * This flag may be requested in constructor functions.
+ */
+#define NPY_ARRAY_ENSUREARRAY 0x0040
+
+/*
+ * Make sure that the strides are in units of the element size Needed
+ * for some operations with record-arrays.
+ *
+ * This flag may be requested in constructor functions.
+ */
+#define NPY_ARRAY_ELEMENTSTRIDES 0x0080
+
+/*
+ * Array data is aligned on the appropriate memory address for the type
+ * stored according to how the compiler would align things (e.g., an
+ * array of integers (4 bytes each) starts on a memory address that's
+ * a multiple of 4)
+ *
+ * This flag may be requested in constructor functions.
+ * This flag may be tested for in PyArray_FLAGS(arr).
+ */
+#define NPY_ARRAY_ALIGNED 0x0100
+
+/*
+ * Array data has the native endianness
+ *
+ * This flag may be requested in constructor functions.
+ */
+#define NPY_ARRAY_NOTSWAPPED 0x0200
+
+/*
+ * Array data is writeable
+ *
+ * This flag may be requested in constructor functions.
+ * This flag may be tested for in PyArray_FLAGS(arr).
+ */
+#define NPY_ARRAY_WRITEABLE 0x0400
+
+/*
+ * If this flag is set, then base contains a pointer to an array of
+ * the same size that should be updated with the current contents of
+ * this array when PyArray_ResolveWritebackIfCopy is called.
+ *
+ * This flag may be requested in constructor functions.
+ * This flag may be tested for in PyArray_FLAGS(arr).
+ */
+#define NPY_ARRAY_WRITEBACKIFCOPY 0x2000
+
+/*
+ * No copy may be made while converting from an object/array (result is a view)
+ *
+ * This flag may be requested in constructor functions.
+ */
+#define NPY_ARRAY_ENSURENOCOPY 0x4000
+
+/*
+ * NOTE: there are also internal flags defined in multiarray/arrayobject.h,
+ * which start at bit 31 and work down.
+ */
+
+#define NPY_ARRAY_BEHAVED (NPY_ARRAY_ALIGNED | \
+ NPY_ARRAY_WRITEABLE)
+#define NPY_ARRAY_BEHAVED_NS (NPY_ARRAY_ALIGNED | \
+ NPY_ARRAY_WRITEABLE | \
+ NPY_ARRAY_NOTSWAPPED)
+#define NPY_ARRAY_CARRAY (NPY_ARRAY_C_CONTIGUOUS | \
+ NPY_ARRAY_BEHAVED)
+#define NPY_ARRAY_CARRAY_RO (NPY_ARRAY_C_CONTIGUOUS | \
+ NPY_ARRAY_ALIGNED)
+#define NPY_ARRAY_FARRAY (NPY_ARRAY_F_CONTIGUOUS | \
+ NPY_ARRAY_BEHAVED)
+#define NPY_ARRAY_FARRAY_RO (NPY_ARRAY_F_CONTIGUOUS | \
+ NPY_ARRAY_ALIGNED)
+#define NPY_ARRAY_DEFAULT (NPY_ARRAY_CARRAY)
+#define NPY_ARRAY_IN_ARRAY (NPY_ARRAY_CARRAY_RO)
+#define NPY_ARRAY_OUT_ARRAY (NPY_ARRAY_CARRAY)
+#define NPY_ARRAY_INOUT_ARRAY (NPY_ARRAY_CARRAY)
+#define NPY_ARRAY_INOUT_ARRAY2 (NPY_ARRAY_CARRAY | \
+ NPY_ARRAY_WRITEBACKIFCOPY)
+#define NPY_ARRAY_IN_FARRAY (NPY_ARRAY_FARRAY_RO)
+#define NPY_ARRAY_OUT_FARRAY (NPY_ARRAY_FARRAY)
+#define NPY_ARRAY_INOUT_FARRAY (NPY_ARRAY_FARRAY)
+#define NPY_ARRAY_INOUT_FARRAY2 (NPY_ARRAY_FARRAY | \
+ NPY_ARRAY_WRITEBACKIFCOPY)
+
+#define NPY_ARRAY_UPDATE_ALL (NPY_ARRAY_C_CONTIGUOUS | \
+ NPY_ARRAY_F_CONTIGUOUS | \
+ NPY_ARRAY_ALIGNED)
+
+/* This flag is for the array interface, not PyArrayObject */
+#define NPY_ARR_HAS_DESCR 0x0800
+
+
+
+
+/*
+ * Size of internal buffers used for alignment Make BUFSIZE a multiple
+ * of sizeof(npy_cdouble) -- usually 16 so that ufunc buffers are aligned
+ */
+#define NPY_MIN_BUFSIZE ((int)sizeof(npy_cdouble))
+#define NPY_MAX_BUFSIZE (((int)sizeof(npy_cdouble))*1000000)
+#define NPY_BUFSIZE 8192
+/* buffer stress test size: */
+/*#define NPY_BUFSIZE 17*/
+
+/*
+ * C API: consists of Macros and functions. The MACROS are defined
+ * here.
+ */
+
+
+#define PyArray_ISCONTIGUOUS(m) PyArray_CHKFLAGS((m), NPY_ARRAY_C_CONTIGUOUS)
+#define PyArray_ISWRITEABLE(m) PyArray_CHKFLAGS((m), NPY_ARRAY_WRITEABLE)
+#define PyArray_ISALIGNED(m) PyArray_CHKFLAGS((m), NPY_ARRAY_ALIGNED)
+
+#define PyArray_IS_C_CONTIGUOUS(m) PyArray_CHKFLAGS((m), NPY_ARRAY_C_CONTIGUOUS)
+#define PyArray_IS_F_CONTIGUOUS(m) PyArray_CHKFLAGS((m), NPY_ARRAY_F_CONTIGUOUS)
+
+/* the variable is used in some places, so always define it */
+#define NPY_BEGIN_THREADS_DEF PyThreadState *_save=NULL;
+#if NPY_ALLOW_THREADS
+#define NPY_BEGIN_ALLOW_THREADS Py_BEGIN_ALLOW_THREADS
+#define NPY_END_ALLOW_THREADS Py_END_ALLOW_THREADS
+#define NPY_BEGIN_THREADS do {_save = PyEval_SaveThread();} while (0);
+#define NPY_END_THREADS do { if (_save) \
+ { PyEval_RestoreThread(_save); _save = NULL;} } while (0);
+#define NPY_BEGIN_THREADS_THRESHOLDED(loop_size) do { if ((loop_size) > 500) \
+ { _save = PyEval_SaveThread();} } while (0);
+
+
+#define NPY_ALLOW_C_API_DEF PyGILState_STATE __save__;
+#define NPY_ALLOW_C_API do {__save__ = PyGILState_Ensure();} while (0);
+#define NPY_DISABLE_C_API do {PyGILState_Release(__save__);} while (0);
+#else
+#define NPY_BEGIN_ALLOW_THREADS
+#define NPY_END_ALLOW_THREADS
+#define NPY_BEGIN_THREADS
+#define NPY_END_THREADS
+#define NPY_BEGIN_THREADS_THRESHOLDED(loop_size)
+#define NPY_BEGIN_THREADS_DESCR(dtype)
+#define NPY_END_THREADS_DESCR(dtype)
+#define NPY_ALLOW_C_API_DEF
+#define NPY_ALLOW_C_API
+#define NPY_DISABLE_C_API
+#endif
+
+/**********************************
+ * The nditer object, added in 1.6
+ **********************************/
+
+/* The actual structure of the iterator is an internal detail */
+typedef struct NpyIter_InternalOnly NpyIter;
+
+/* Iterator function pointers that may be specialized */
+typedef int (NpyIter_IterNextFunc)(NpyIter *iter);
+typedef void (NpyIter_GetMultiIndexFunc)(NpyIter *iter,
+ npy_intp *outcoords);
+
+/*** Global flags that may be passed to the iterator constructors ***/
+
+/* Track an index representing C order */
+#define NPY_ITER_C_INDEX 0x00000001
+/* Track an index representing Fortran order */
+#define NPY_ITER_F_INDEX 0x00000002
+/* Track a multi-index */
+#define NPY_ITER_MULTI_INDEX 0x00000004
+/* User code external to the iterator does the 1-dimensional innermost loop */
+#define NPY_ITER_EXTERNAL_LOOP 0x00000008
+/* Convert all the operands to a common data type */
+#define NPY_ITER_COMMON_DTYPE 0x00000010
+/* Operands may hold references, requiring API access during iteration */
+#define NPY_ITER_REFS_OK 0x00000020
+/* Zero-sized operands should be permitted, iteration checks IterSize for 0 */
+#define NPY_ITER_ZEROSIZE_OK 0x00000040
+/* Permits reductions (size-0 stride with dimension size > 1) */
+#define NPY_ITER_REDUCE_OK 0x00000080
+/* Enables sub-range iteration */
+#define NPY_ITER_RANGED 0x00000100
+/* Enables buffering */
+#define NPY_ITER_BUFFERED 0x00000200
+/* When buffering is enabled, grows the inner loop if possible */
+#define NPY_ITER_GROWINNER 0x00000400
+/* Delay allocation of buffers until first Reset* call */
+#define NPY_ITER_DELAY_BUFALLOC 0x00000800
+/* When NPY_KEEPORDER is specified, disable reversing negative-stride axes */
+#define NPY_ITER_DONT_NEGATE_STRIDES 0x00001000
+/*
+ * If output operands overlap with other operands (based on heuristics that
+ * has false positives but no false negatives), make temporary copies to
+ * eliminate overlap.
+ */
+#define NPY_ITER_COPY_IF_OVERLAP 0x00002000
+
+/*** Per-operand flags that may be passed to the iterator constructors ***/
+
+/* The operand will be read from and written to */
+#define NPY_ITER_READWRITE 0x00010000
+/* The operand will only be read from */
+#define NPY_ITER_READONLY 0x00020000
+/* The operand will only be written to */
+#define NPY_ITER_WRITEONLY 0x00040000
+/* The operand's data must be in native byte order */
+#define NPY_ITER_NBO 0x00080000
+/* The operand's data must be aligned */
+#define NPY_ITER_ALIGNED 0x00100000
+/* The operand's data must be contiguous (within the inner loop) */
+#define NPY_ITER_CONTIG 0x00200000
+/* The operand may be copied to satisfy requirements */
+#define NPY_ITER_COPY 0x00400000
+/* The operand may be copied with WRITEBACKIFCOPY to satisfy requirements */
+#define NPY_ITER_UPDATEIFCOPY 0x00800000
+/* Allocate the operand if it is NULL */
+#define NPY_ITER_ALLOCATE 0x01000000
+/* If an operand is allocated, don't use any subtype */
+#define NPY_ITER_NO_SUBTYPE 0x02000000
+/* This is a virtual array slot, operand is NULL but temporary data is there */
+#define NPY_ITER_VIRTUAL 0x04000000
+/* Require that the dimension match the iterator dimensions exactly */
+#define NPY_ITER_NO_BROADCAST 0x08000000
+/* A mask is being used on this array, affects buffer -> array copy */
+#define NPY_ITER_WRITEMASKED 0x10000000
+/* This array is the mask for all WRITEMASKED operands */
+#define NPY_ITER_ARRAYMASK 0x20000000
+/* Assume iterator order data access for COPY_IF_OVERLAP */
+#define NPY_ITER_OVERLAP_ASSUME_ELEMENTWISE 0x40000000
+
+#define NPY_ITER_GLOBAL_FLAGS 0x0000ffff
+#define NPY_ITER_PER_OP_FLAGS 0xffff0000
+
+
+/*****************************
+ * Basic iterator object
+ *****************************/
+
+/* FWD declaration */
+typedef struct PyArrayIterObject_tag PyArrayIterObject;
+
+/*
+ * type of the function which translates a set of coordinates to a
+ * pointer to the data
+ */
+typedef char* (*npy_iter_get_dataptr_t)(
+ PyArrayIterObject* iter, const npy_intp*);
+
+struct PyArrayIterObject_tag {
+ PyObject_HEAD
+ int nd_m1; /* number of dimensions - 1 */
+ npy_intp index, size;
+ npy_intp coordinates[NPY_MAXDIMS_LEGACY_ITERS];/* N-dimensional loop */
+ npy_intp dims_m1[NPY_MAXDIMS_LEGACY_ITERS]; /* ao->dimensions - 1 */
+ npy_intp strides[NPY_MAXDIMS_LEGACY_ITERS]; /* ao->strides or fake */
+ npy_intp backstrides[NPY_MAXDIMS_LEGACY_ITERS];/* how far to jump back */
+ npy_intp factors[NPY_MAXDIMS_LEGACY_ITERS]; /* shape factors */
+ PyArrayObject *ao;
+ char *dataptr; /* pointer to current item*/
+ npy_bool contiguous;
+
+ npy_intp bounds[NPY_MAXDIMS_LEGACY_ITERS][2];
+ npy_intp limits[NPY_MAXDIMS_LEGACY_ITERS][2];
+ npy_intp limits_sizes[NPY_MAXDIMS_LEGACY_ITERS];
+ npy_iter_get_dataptr_t translate;
+} ;
+
+
+/* Iterator API */
+#define PyArrayIter_Check(op) PyObject_TypeCheck((op), &PyArrayIter_Type)
+
+#define _PyAIT(it) ((PyArrayIterObject *)(it))
+#define PyArray_ITER_RESET(it) do { \
+ _PyAIT(it)->index = 0; \
+ _PyAIT(it)->dataptr = PyArray_BYTES(_PyAIT(it)->ao); \
+ memset(_PyAIT(it)->coordinates, 0, \
+ (_PyAIT(it)->nd_m1+1)*sizeof(npy_intp)); \
+} while (0)
+
+#define _PyArray_ITER_NEXT1(it) do { \
+ (it)->dataptr += _PyAIT(it)->strides[0]; \
+ (it)->coordinates[0]++; \
+} while (0)
+
+#define _PyArray_ITER_NEXT2(it) do { \
+ if ((it)->coordinates[1] < (it)->dims_m1[1]) { \
+ (it)->coordinates[1]++; \
+ (it)->dataptr += (it)->strides[1]; \
+ } \
+ else { \
+ (it)->coordinates[1] = 0; \
+ (it)->coordinates[0]++; \
+ (it)->dataptr += (it)->strides[0] - \
+ (it)->backstrides[1]; \
+ } \
+} while (0)
+
+#define PyArray_ITER_NEXT(it) do { \
+ _PyAIT(it)->index++; \
+ if (_PyAIT(it)->nd_m1 == 0) { \
+ _PyArray_ITER_NEXT1(_PyAIT(it)); \
+ } \
+ else if (_PyAIT(it)->contiguous) \
+ _PyAIT(it)->dataptr += PyArray_ITEMSIZE(_PyAIT(it)->ao); \
+ else if (_PyAIT(it)->nd_m1 == 1) { \
+ _PyArray_ITER_NEXT2(_PyAIT(it)); \
+ } \
+ else { \
+ int __npy_i; \
+ for (__npy_i=_PyAIT(it)->nd_m1; __npy_i >= 0; __npy_i--) { \
+ if (_PyAIT(it)->coordinates[__npy_i] < \
+ _PyAIT(it)->dims_m1[__npy_i]) { \
+ _PyAIT(it)->coordinates[__npy_i]++; \
+ _PyAIT(it)->dataptr += \
+ _PyAIT(it)->strides[__npy_i]; \
+ break; \
+ } \
+ else { \
+ _PyAIT(it)->coordinates[__npy_i] = 0; \
+ _PyAIT(it)->dataptr -= \
+ _PyAIT(it)->backstrides[__npy_i]; \
+ } \
+ } \
+ } \
+} while (0)
+
+#define PyArray_ITER_GOTO(it, destination) do { \
+ int __npy_i; \
+ _PyAIT(it)->index = 0; \
+ _PyAIT(it)->dataptr = PyArray_BYTES(_PyAIT(it)->ao); \
+ for (__npy_i = _PyAIT(it)->nd_m1; __npy_i>=0; __npy_i--) { \
+ if (destination[__npy_i] < 0) { \
+ destination[__npy_i] += \
+ _PyAIT(it)->dims_m1[__npy_i]+1; \
+ } \
+ _PyAIT(it)->dataptr += destination[__npy_i] * \
+ _PyAIT(it)->strides[__npy_i]; \
+ _PyAIT(it)->coordinates[__npy_i] = \
+ destination[__npy_i]; \
+ _PyAIT(it)->index += destination[__npy_i] * \
+ ( __npy_i==_PyAIT(it)->nd_m1 ? 1 : \
+ _PyAIT(it)->dims_m1[__npy_i+1]+1) ; \
+ } \
+} while (0)
+
+#define PyArray_ITER_GOTO1D(it, ind) do { \
+ int __npy_i; \
+ npy_intp __npy_ind = (npy_intp)(ind); \
+ if (__npy_ind < 0) __npy_ind += _PyAIT(it)->size; \
+ _PyAIT(it)->index = __npy_ind; \
+ if (_PyAIT(it)->nd_m1 == 0) { \
+ _PyAIT(it)->dataptr = PyArray_BYTES(_PyAIT(it)->ao) + \
+ __npy_ind * _PyAIT(it)->strides[0]; \
+ } \
+ else if (_PyAIT(it)->contiguous) \
+ _PyAIT(it)->dataptr = PyArray_BYTES(_PyAIT(it)->ao) + \
+ __npy_ind * PyArray_ITEMSIZE(_PyAIT(it)->ao); \
+ else { \
+ _PyAIT(it)->dataptr = PyArray_BYTES(_PyAIT(it)->ao); \
+ for (__npy_i = 0; __npy_i<=_PyAIT(it)->nd_m1; \
+ __npy_i++) { \
+ _PyAIT(it)->coordinates[__npy_i] = \
+ (__npy_ind / _PyAIT(it)->factors[__npy_i]); \
+ _PyAIT(it)->dataptr += \
+ (__npy_ind / _PyAIT(it)->factors[__npy_i]) \
+ * _PyAIT(it)->strides[__npy_i]; \
+ __npy_ind %= _PyAIT(it)->factors[__npy_i]; \
+ } \
+ } \
+} while (0)
+
+#define PyArray_ITER_DATA(it) ((void *)(_PyAIT(it)->dataptr))
+
+#define PyArray_ITER_NOTDONE(it) (_PyAIT(it)->index < _PyAIT(it)->size)
+
+
+/*
+ * Any object passed to PyArray_Broadcast must be binary compatible
+ * with this structure.
+ */
+
+typedef struct {
+ PyObject_HEAD
+ int numiter; /* number of iters */
+ npy_intp size; /* broadcasted size */
+ npy_intp index; /* current index */
+ int nd; /* number of dims */
+ npy_intp dimensions[NPY_MAXDIMS_LEGACY_ITERS]; /* dimensions */
+ /*
+ * Space for the individual iterators, do not specify size publicly
+ * to allow changing it more easily.
+ * One reason is that Cython uses this for checks and only allows
+ * growing structs (as of Cython 3.0.6). It also allows NPY_MAXARGS
+ * to be runtime dependent.
+ */
+#if (defined(NPY_INTERNAL_BUILD) && NPY_INTERNAL_BUILD)
+ PyArrayIterObject *iters[64];
+#elif defined(__cplusplus)
+ /*
+ * C++ doesn't strictly support flexible members and gives compilers
+ * warnings (pedantic only), so we lie. We can't make it 64 because
+ * then Cython is unhappy (larger struct at runtime is OK smaller not).
+ */
+ PyArrayIterObject *iters[32];
+#else
+ PyArrayIterObject *iters[];
+#endif
+} PyArrayMultiIterObject;
+
+#define _PyMIT(m) ((PyArrayMultiIterObject *)(m))
+#define PyArray_MultiIter_RESET(multi) do { \
+ int __npy_mi; \
+ _PyMIT(multi)->index = 0; \
+ for (__npy_mi=0; __npy_mi < _PyMIT(multi)->numiter; __npy_mi++) { \
+ PyArray_ITER_RESET(_PyMIT(multi)->iters[__npy_mi]); \
+ } \
+} while (0)
+
+#define PyArray_MultiIter_NEXT(multi) do { \
+ int __npy_mi; \
+ _PyMIT(multi)->index++; \
+ for (__npy_mi=0; __npy_mi < _PyMIT(multi)->numiter; __npy_mi++) { \
+ PyArray_ITER_NEXT(_PyMIT(multi)->iters[__npy_mi]); \
+ } \
+} while (0)
+
+#define PyArray_MultiIter_GOTO(multi, dest) do { \
+ int __npy_mi; \
+ for (__npy_mi=0; __npy_mi < _PyMIT(multi)->numiter; __npy_mi++) { \
+ PyArray_ITER_GOTO(_PyMIT(multi)->iters[__npy_mi], dest); \
+ } \
+ _PyMIT(multi)->index = _PyMIT(multi)->iters[0]->index; \
+} while (0)
+
+#define PyArray_MultiIter_GOTO1D(multi, ind) do { \
+ int __npy_mi; \
+ for (__npy_mi=0; __npy_mi < _PyMIT(multi)->numiter; __npy_mi++) { \
+ PyArray_ITER_GOTO1D(_PyMIT(multi)->iters[__npy_mi], ind); \
+ } \
+ _PyMIT(multi)->index = _PyMIT(multi)->iters[0]->index; \
+} while (0)
+
+#define PyArray_MultiIter_DATA(multi, i) \
+ ((void *)(_PyMIT(multi)->iters[i]->dataptr))
+
+#define PyArray_MultiIter_NEXTi(multi, i) \
+ PyArray_ITER_NEXT(_PyMIT(multi)->iters[i])
+
+#define PyArray_MultiIter_NOTDONE(multi) \
+ (_PyMIT(multi)->index < _PyMIT(multi)->size)
+
+
+static NPY_INLINE int
+PyArray_MultiIter_NUMITER(PyArrayMultiIterObject *multi)
+{
+ return multi->numiter;
+}
+
+
+static NPY_INLINE npy_intp
+PyArray_MultiIter_SIZE(PyArrayMultiIterObject *multi)
+{
+ return multi->size;
+}
+
+
+static NPY_INLINE npy_intp
+PyArray_MultiIter_INDEX(PyArrayMultiIterObject *multi)
+{
+ return multi->index;
+}
+
+
+static NPY_INLINE int
+PyArray_MultiIter_NDIM(PyArrayMultiIterObject *multi)
+{
+ return multi->nd;
+}
+
+
+static NPY_INLINE npy_intp *
+PyArray_MultiIter_DIMS(PyArrayMultiIterObject *multi)
+{
+ return multi->dimensions;
+}
+
+
+static NPY_INLINE void **
+PyArray_MultiIter_ITERS(PyArrayMultiIterObject *multi)
+{
+ return (void**)multi->iters;
+}
+
+
+enum {
+ NPY_NEIGHBORHOOD_ITER_ZERO_PADDING,
+ NPY_NEIGHBORHOOD_ITER_ONE_PADDING,
+ NPY_NEIGHBORHOOD_ITER_CONSTANT_PADDING,
+ NPY_NEIGHBORHOOD_ITER_CIRCULAR_PADDING,
+ NPY_NEIGHBORHOOD_ITER_MIRROR_PADDING
+};
+
+typedef struct {
+ PyObject_HEAD
+
+ /*
+ * PyArrayIterObject part: keep this in this exact order
+ */
+ int nd_m1; /* number of dimensions - 1 */
+ npy_intp index, size;
+ npy_intp coordinates[NPY_MAXDIMS_LEGACY_ITERS];/* N-dimensional loop */
+ npy_intp dims_m1[NPY_MAXDIMS_LEGACY_ITERS]; /* ao->dimensions - 1 */
+ npy_intp strides[NPY_MAXDIMS_LEGACY_ITERS]; /* ao->strides or fake */
+ npy_intp backstrides[NPY_MAXDIMS_LEGACY_ITERS];/* how far to jump back */
+ npy_intp factors[NPY_MAXDIMS_LEGACY_ITERS]; /* shape factors */
+ PyArrayObject *ao;
+ char *dataptr; /* pointer to current item*/
+ npy_bool contiguous;
+
+ npy_intp bounds[NPY_MAXDIMS_LEGACY_ITERS][2];
+ npy_intp limits[NPY_MAXDIMS_LEGACY_ITERS][2];
+ npy_intp limits_sizes[NPY_MAXDIMS_LEGACY_ITERS];
+ npy_iter_get_dataptr_t translate;
+
+ /*
+ * New members
+ */
+ npy_intp nd;
+
+ /* Dimensions is the dimension of the array */
+ npy_intp dimensions[NPY_MAXDIMS_LEGACY_ITERS];
+
+ /*
+ * Neighborhood points coordinates are computed relatively to the
+ * point pointed by _internal_iter
+ */
+ PyArrayIterObject* _internal_iter;
+ /*
+ * To keep a reference to the representation of the constant value
+ * for constant padding
+ */
+ char* constant;
+
+ int mode;
+} PyArrayNeighborhoodIterObject;
+
+/*
+ * Neighborhood iterator API
+ */
+
+/* General: those work for any mode */
+static inline int
+PyArrayNeighborhoodIter_Reset(PyArrayNeighborhoodIterObject* iter);
+static inline int
+PyArrayNeighborhoodIter_Next(PyArrayNeighborhoodIterObject* iter);
+#if 0
+static inline int
+PyArrayNeighborhoodIter_Next2D(PyArrayNeighborhoodIterObject* iter);
+#endif
+
+/*
+ * Include inline implementations - functions defined there are not
+ * considered public API
+ */
+#define NUMPY_CORE_INCLUDE_NUMPY__NEIGHBORHOOD_IMP_H_
+#include "_neighborhood_iterator_imp.h"
+#undef NUMPY_CORE_INCLUDE_NUMPY__NEIGHBORHOOD_IMP_H_
+
+
+
+/* The default array type */
+#define NPY_DEFAULT_TYPE NPY_DOUBLE
+/* default integer type defined in npy_2_compat header */
+
+/*
+ * All sorts of useful ways to look into a PyArrayObject. It is recommended
+ * to use PyArrayObject * objects instead of always casting from PyObject *,
+ * for improved type checking.
+ *
+ * In many cases here the macro versions of the accessors are deprecated,
+ * but can't be immediately changed to inline functions because the
+ * preexisting macros accept PyObject * and do automatic casts. Inline
+ * functions accepting PyArrayObject * provides for some compile-time
+ * checking of correctness when working with these objects in C.
+ */
+
+#define PyArray_ISONESEGMENT(m) (PyArray_CHKFLAGS(m, NPY_ARRAY_C_CONTIGUOUS) || \
+ PyArray_CHKFLAGS(m, NPY_ARRAY_F_CONTIGUOUS))
+
+#define PyArray_ISFORTRAN(m) (PyArray_CHKFLAGS(m, NPY_ARRAY_F_CONTIGUOUS) && \
+ (!PyArray_CHKFLAGS(m, NPY_ARRAY_C_CONTIGUOUS)))
+
+#define PyArray_FORTRAN_IF(m) ((PyArray_CHKFLAGS(m, NPY_ARRAY_F_CONTIGUOUS) ? \
+ NPY_ARRAY_F_CONTIGUOUS : 0))
+
+static inline int
+PyArray_NDIM(const PyArrayObject *arr)
+{
+ return ((PyArrayObject_fields *)arr)->nd;
+}
+
+static inline void *
+PyArray_DATA(const PyArrayObject *arr)
+{
+ return ((PyArrayObject_fields *)arr)->data;
+}
+
+static inline char *
+PyArray_BYTES(const PyArrayObject *arr)
+{
+ return ((PyArrayObject_fields *)arr)->data;
+}
+
+static inline npy_intp *
+PyArray_DIMS(const PyArrayObject *arr)
+{
+ return ((PyArrayObject_fields *)arr)->dimensions;
+}
+
+static inline npy_intp *
+PyArray_STRIDES(const PyArrayObject *arr)
+{
+ return ((PyArrayObject_fields *)arr)->strides;
+}
+
+static inline npy_intp
+PyArray_DIM(const PyArrayObject *arr, int idim)
+{
+ return ((PyArrayObject_fields *)arr)->dimensions[idim];
+}
+
+static inline npy_intp
+PyArray_STRIDE(const PyArrayObject *arr, int istride)
+{
+ return ((PyArrayObject_fields *)arr)->strides[istride];
+}
+
+static inline NPY_RETURNS_BORROWED_REF PyObject *
+PyArray_BASE(const PyArrayObject *arr)
+{
+ return ((PyArrayObject_fields *)arr)->base;
+}
+
+static inline NPY_RETURNS_BORROWED_REF PyArray_Descr *
+PyArray_DESCR(const PyArrayObject *arr)
+{
+ return ((PyArrayObject_fields *)arr)->descr;
+}
+
+static inline int
+PyArray_FLAGS(const PyArrayObject *arr)
+{
+ return ((PyArrayObject_fields *)arr)->flags;
+}
+
+
+static inline int
+PyArray_TYPE(const PyArrayObject *arr)
+{
+ return ((PyArrayObject_fields *)arr)->descr->type_num;
+}
+
+static inline int
+PyArray_CHKFLAGS(const PyArrayObject *arr, int flags)
+{
+ return (PyArray_FLAGS(arr) & flags) == flags;
+}
+
+static inline PyArray_Descr *
+PyArray_DTYPE(const PyArrayObject *arr)
+{
+ return ((PyArrayObject_fields *)arr)->descr;
+}
+
+static inline npy_intp *
+PyArray_SHAPE(const PyArrayObject *arr)
+{
+ return ((PyArrayObject_fields *)arr)->dimensions;
+}
+
+/*
+ * Enables the specified array flags. Does no checking,
+ * assumes you know what you're doing.
+ */
+static inline void
+PyArray_ENABLEFLAGS(PyArrayObject *arr, int flags)
+{
+ ((PyArrayObject_fields *)arr)->flags |= flags;
+}
+
+/*
+ * Clears the specified array flags. Does no checking,
+ * assumes you know what you're doing.
+ */
+static inline void
+PyArray_CLEARFLAGS(PyArrayObject *arr, int flags)
+{
+ ((PyArrayObject_fields *)arr)->flags &= ~flags;
+}
+
+#if NPY_FEATURE_VERSION >= NPY_1_22_API_VERSION
+ static inline NPY_RETURNS_BORROWED_REF PyObject *
+ PyArray_HANDLER(PyArrayObject *arr)
+ {
+ return ((PyArrayObject_fields *)arr)->mem_handler;
+ }
+#endif
+
+#define PyTypeNum_ISBOOL(type) ((type) == NPY_BOOL)
+
+#define PyTypeNum_ISUNSIGNED(type) (((type) == NPY_UBYTE) || \
+ ((type) == NPY_USHORT) || \
+ ((type) == NPY_UINT) || \
+ ((type) == NPY_ULONG) || \
+ ((type) == NPY_ULONGLONG))
+
+#define PyTypeNum_ISSIGNED(type) (((type) == NPY_BYTE) || \
+ ((type) == NPY_SHORT) || \
+ ((type) == NPY_INT) || \
+ ((type) == NPY_LONG) || \
+ ((type) == NPY_LONGLONG))
+
+#define PyTypeNum_ISINTEGER(type) (((type) >= NPY_BYTE) && \
+ ((type) <= NPY_ULONGLONG))
+
+#define PyTypeNum_ISFLOAT(type) ((((type) >= NPY_FLOAT) && \
+ ((type) <= NPY_LONGDOUBLE)) || \
+ ((type) == NPY_HALF))
+
+#define PyTypeNum_ISNUMBER(type) (((type) <= NPY_CLONGDOUBLE) || \
+ ((type) == NPY_HALF))
+
+#define PyTypeNum_ISSTRING(type) (((type) == NPY_STRING) || \
+ ((type) == NPY_UNICODE))
+
+#define PyTypeNum_ISCOMPLEX(type) (((type) >= NPY_CFLOAT) && \
+ ((type) <= NPY_CLONGDOUBLE))
+
+#define PyTypeNum_ISFLEXIBLE(type) (((type) >=NPY_STRING) && \
+ ((type) <=NPY_VOID))
+
+#define PyTypeNum_ISDATETIME(type) (((type) >=NPY_DATETIME) && \
+ ((type) <=NPY_TIMEDELTA))
+
+#define PyTypeNum_ISUSERDEF(type) (((type) >= NPY_USERDEF) && \
+ ((type) < NPY_USERDEF+ \
+ NPY_NUMUSERTYPES))
+
+#define PyTypeNum_ISEXTENDED(type) (PyTypeNum_ISFLEXIBLE(type) || \
+ PyTypeNum_ISUSERDEF(type))
+
+#define PyTypeNum_ISOBJECT(type) ((type) == NPY_OBJECT)
+
+
+#define PyDataType_ISLEGACY(dtype) ((dtype)->type_num < NPY_VSTRING && ((dtype)->type_num >= 0))
+#define PyDataType_ISBOOL(obj) PyTypeNum_ISBOOL(((PyArray_Descr*)(obj))->type_num)
+#define PyDataType_ISUNSIGNED(obj) PyTypeNum_ISUNSIGNED(((PyArray_Descr*)(obj))->type_num)
+#define PyDataType_ISSIGNED(obj) PyTypeNum_ISSIGNED(((PyArray_Descr*)(obj))->type_num)
+#define PyDataType_ISINTEGER(obj) PyTypeNum_ISINTEGER(((PyArray_Descr*)(obj))->type_num )
+#define PyDataType_ISFLOAT(obj) PyTypeNum_ISFLOAT(((PyArray_Descr*)(obj))->type_num)
+#define PyDataType_ISNUMBER(obj) PyTypeNum_ISNUMBER(((PyArray_Descr*)(obj))->type_num)
+#define PyDataType_ISSTRING(obj) PyTypeNum_ISSTRING(((PyArray_Descr*)(obj))->type_num)
+#define PyDataType_ISCOMPLEX(obj) PyTypeNum_ISCOMPLEX(((PyArray_Descr*)(obj))->type_num)
+#define PyDataType_ISFLEXIBLE(obj) PyTypeNum_ISFLEXIBLE(((PyArray_Descr*)(obj))->type_num)
+#define PyDataType_ISDATETIME(obj) PyTypeNum_ISDATETIME(((PyArray_Descr*)(obj))->type_num)
+#define PyDataType_ISUSERDEF(obj) PyTypeNum_ISUSERDEF(((PyArray_Descr*)(obj))->type_num)
+#define PyDataType_ISEXTENDED(obj) PyTypeNum_ISEXTENDED(((PyArray_Descr*)(obj))->type_num)
+#define PyDataType_ISOBJECT(obj) PyTypeNum_ISOBJECT(((PyArray_Descr*)(obj))->type_num)
+#define PyDataType_MAKEUNSIZED(dtype) ((dtype)->elsize = 0)
+/*
+ * PyDataType_* FLAGS, FLACHK, REFCHK, HASFIELDS, HASSUBARRAY, UNSIZED,
+ * SUBARRAY, NAMES, FIELDS, C_METADATA, and METADATA require version specific
+ * lookup and are defined in npy_2_compat.h.
+ */
+
+
+#define PyArray_ISBOOL(obj) PyTypeNum_ISBOOL(PyArray_TYPE(obj))
+#define PyArray_ISUNSIGNED(obj) PyTypeNum_ISUNSIGNED(PyArray_TYPE(obj))
+#define PyArray_ISSIGNED(obj) PyTypeNum_ISSIGNED(PyArray_TYPE(obj))
+#define PyArray_ISINTEGER(obj) PyTypeNum_ISINTEGER(PyArray_TYPE(obj))
+#define PyArray_ISFLOAT(obj) PyTypeNum_ISFLOAT(PyArray_TYPE(obj))
+#define PyArray_ISNUMBER(obj) PyTypeNum_ISNUMBER(PyArray_TYPE(obj))
+#define PyArray_ISSTRING(obj) PyTypeNum_ISSTRING(PyArray_TYPE(obj))
+#define PyArray_ISCOMPLEX(obj) PyTypeNum_ISCOMPLEX(PyArray_TYPE(obj))
+#define PyArray_ISFLEXIBLE(obj) PyTypeNum_ISFLEXIBLE(PyArray_TYPE(obj))
+#define PyArray_ISDATETIME(obj) PyTypeNum_ISDATETIME(PyArray_TYPE(obj))
+#define PyArray_ISUSERDEF(obj) PyTypeNum_ISUSERDEF(PyArray_TYPE(obj))
+#define PyArray_ISEXTENDED(obj) PyTypeNum_ISEXTENDED(PyArray_TYPE(obj))
+#define PyArray_ISOBJECT(obj) PyTypeNum_ISOBJECT(PyArray_TYPE(obj))
+#define PyArray_HASFIELDS(obj) PyDataType_HASFIELDS(PyArray_DESCR(obj))
+
+ /*
+ * FIXME: This should check for a flag on the data-type that
+ * states whether or not it is variable length. Because the
+ * ISFLEXIBLE check is hard-coded to the built-in data-types.
+ */
+#define PyArray_ISVARIABLE(obj) PyTypeNum_ISFLEXIBLE(PyArray_TYPE(obj))
+
+#define PyArray_SAFEALIGNEDCOPY(obj) (PyArray_ISALIGNED(obj) && !PyArray_ISVARIABLE(obj))
+
+
+#define NPY_LITTLE '<'
+#define NPY_BIG '>'
+#define NPY_NATIVE '='
+#define NPY_SWAP 's'
+#define NPY_IGNORE '|'
+
+#if NPY_BYTE_ORDER == NPY_BIG_ENDIAN
+#define NPY_NATBYTE NPY_BIG
+#define NPY_OPPBYTE NPY_LITTLE
+#else
+#define NPY_NATBYTE NPY_LITTLE
+#define NPY_OPPBYTE NPY_BIG
+#endif
+
+#define PyArray_ISNBO(arg) ((arg) != NPY_OPPBYTE)
+#define PyArray_IsNativeByteOrder PyArray_ISNBO
+#define PyArray_ISNOTSWAPPED(m) PyArray_ISNBO(PyArray_DESCR(m)->byteorder)
+#define PyArray_ISBYTESWAPPED(m) (!PyArray_ISNOTSWAPPED(m))
+
+#define PyArray_FLAGSWAP(m, flags) (PyArray_CHKFLAGS(m, flags) && \
+ PyArray_ISNOTSWAPPED(m))
+
+#define PyArray_ISCARRAY(m) PyArray_FLAGSWAP(m, NPY_ARRAY_CARRAY)
+#define PyArray_ISCARRAY_RO(m) PyArray_FLAGSWAP(m, NPY_ARRAY_CARRAY_RO)
+#define PyArray_ISFARRAY(m) PyArray_FLAGSWAP(m, NPY_ARRAY_FARRAY)
+#define PyArray_ISFARRAY_RO(m) PyArray_FLAGSWAP(m, NPY_ARRAY_FARRAY_RO)
+#define PyArray_ISBEHAVED(m) PyArray_FLAGSWAP(m, NPY_ARRAY_BEHAVED)
+#define PyArray_ISBEHAVED_RO(m) PyArray_FLAGSWAP(m, NPY_ARRAY_ALIGNED)
+
+
+#define PyDataType_ISNOTSWAPPED(d) PyArray_ISNBO(((PyArray_Descr *)(d))->byteorder)
+#define PyDataType_ISBYTESWAPPED(d) (!PyDataType_ISNOTSWAPPED(d))
+
+/************************************************************
+ * A struct used by PyArray_CreateSortedStridePerm, new in 1.7.
+ ************************************************************/
+
+typedef struct {
+ npy_intp perm, stride;
+} npy_stride_sort_item;
+
+/************************************************************
+ * This is the form of the struct that's stored in the
+ * PyCapsule returned by an array's __array_struct__ attribute. See
+ * https://docs.scipy.org/doc/numpy/reference/arrays.interface.html for the full
+ * documentation.
+ ************************************************************/
+typedef struct {
+ int two; /*
+ * contains the integer 2 as a sanity
+ * check
+ */
+
+ int nd; /* number of dimensions */
+
+ char typekind; /*
+ * kind in array --- character code of
+ * typestr
+ */
+
+ int itemsize; /* size of each element */
+
+ int flags; /*
+ * how should be data interpreted. Valid
+ * flags are CONTIGUOUS (1), F_CONTIGUOUS (2),
+ * ALIGNED (0x100), NOTSWAPPED (0x200), and
+ * WRITEABLE (0x400). ARR_HAS_DESCR (0x800)
+ * states that arrdescr field is present in
+ * structure
+ */
+
+ npy_intp *shape; /*
+ * A length-nd array of shape
+ * information
+ */
+
+ npy_intp *strides; /* A length-nd array of stride information */
+
+ void *data; /* A pointer to the first element of the array */
+
+ PyObject *descr; /*
+ * A list of fields or NULL (ignored if flags
+ * does not have ARR_HAS_DESCR flag set)
+ */
+} PyArrayInterface;
+
+
+/****************************************
+ * NpyString
+ *
+ * Types used by the NpyString API.
+ ****************************************/
+
+/*
+ * A "packed" encoded string. The string data must be accessed by first unpacking the string.
+ */
+typedef struct npy_packed_static_string npy_packed_static_string;
+
+/*
+ * An unpacked read-only view onto the data in a packed string
+ */
+typedef struct npy_unpacked_static_string {
+ size_t size;
+ const char *buf;
+} npy_static_string;
+
+/*
+ * Handles heap allocations for static strings.
+ */
+typedef struct npy_string_allocator npy_string_allocator;
+
+typedef struct {
+ PyArray_Descr base;
+ // The object representing a null value
+ PyObject *na_object;
+ // Flag indicating whether or not to coerce arbitrary objects to strings
+ char coerce;
+ // Flag indicating the na object is NaN-like
+ char has_nan_na;
+ // Flag indicating the na object is a string
+ char has_string_na;
+ // If nonzero, indicates that this instance is owned by an array already
+ char array_owned;
+ // The string data to use when a default string is needed
+ npy_static_string default_string;
+ // The name of the missing data object, if any
+ npy_static_string na_name;
+ // the allocator should only be directly accessed after
+ // acquiring the allocator_lock and the lock should
+ // be released immediately after the allocator is
+ // no longer needed
+ npy_string_allocator *allocator;
+} PyArray_StringDTypeObject;
+
+/*
+ * PyArray_DTypeMeta related definitions.
+ *
+ * As of now, this API is preliminary and will be extended as necessary.
+ */
+#if defined(NPY_INTERNAL_BUILD) && NPY_INTERNAL_BUILD
+ /*
+ * The Structures defined in this block are currently considered
+ * private API and may change without warning!
+ * Part of this (at least the size) is expected to be public API without
+ * further modifications.
+ */
+ /* TODO: Make this definition public in the API, as soon as its settled */
+ NPY_NO_EXPORT extern PyTypeObject PyArrayDTypeMeta_Type;
+
+ /*
+ * While NumPy DTypes would not need to be heap types the plan is to
+ * make DTypes available in Python at which point they will be heap types.
+ * Since we also wish to add fields to the DType class, this looks like
+ * a typical instance definition, but with PyHeapTypeObject instead of
+ * only the PyObject_HEAD.
+ * This must only be exposed very extremely careful consideration, since
+ * it is a fairly complex construct which may be better to allow
+ * refactoring of.
+ */
+ typedef struct {
+ PyHeapTypeObject super;
+
+ /*
+ * Most DTypes will have a singleton default instance, for the
+ * parametric legacy DTypes (bytes, string, void, datetime) this
+ * may be a pointer to the *prototype* instance?
+ */
+ PyArray_Descr *singleton;
+ /* Copy of the legacy DTypes type number, usually invalid. */
+ int type_num;
+
+ /* The type object of the scalar instances (may be NULL?) */
+ PyTypeObject *scalar_type;
+ /*
+ * DType flags to signal legacy, parametric, or
+ * abstract. But plenty of space for additional information/flags.
+ */
+ npy_uint64 flags;
+
+ /*
+ * Use indirection in order to allow a fixed size for this struct.
+ * A stable ABI size makes creating a static DType less painful
+ * while also ensuring flexibility for all opaque API (with one
+ * indirection due the pointer lookup).
+ */
+ void *dt_slots;
+ void *reserved[3];
+ } PyArray_DTypeMeta;
+
+#endif /* NPY_INTERNAL_BUILD */
+
+
+/*
+ * Use the keyword NPY_DEPRECATED_INCLUDES to ensure that the header files
+ * npy_*_*_deprecated_api.h are only included from here and nowhere else.
+ */
+#ifdef NPY_DEPRECATED_INCLUDES
+#error "Do not use the reserved keyword NPY_DEPRECATED_INCLUDES."
+#endif
+#define NPY_DEPRECATED_INCLUDES
+/*
+ * There is no file npy_1_8_deprecated_api.h since there are no additional
+ * deprecated API features in NumPy 1.8.
+ *
+ * Note to maintainers: insert code like the following in future NumPy
+ * versions.
+ *
+ * #if !defined(NPY_NO_DEPRECATED_API) || \
+ * (NPY_NO_DEPRECATED_API < NPY_1_9_API_VERSION)
+ * #include "npy_1_9_deprecated_api.h"
+ * #endif
+ * Then in the npy_1_9_deprecated_api.h header add something like this
+ * --------------------
+ * #ifndef NPY_DEPRECATED_INCLUDES
+ * #error "Should never include npy_*_*_deprecated_api directly."
+ * #endif
+ * #ifndef NUMPY_CORE_INCLUDE_NUMPY_NPY_1_7_DEPRECATED_API_H_
+ * #define NUMPY_CORE_INCLUDE_NUMPY_NPY_1_7_DEPRECATED_API_H_
+ *
+ * #ifndef NPY_NO_DEPRECATED_API
+ * #if defined(_WIN32)
+ * #define _WARN___STR2__(x) #x
+ * #define _WARN___STR1__(x) _WARN___STR2__(x)
+ * #define _WARN___LOC__ __FILE__ "(" _WARN___STR1__(__LINE__) ") : Warning Msg: "
+ * #pragma message(_WARN___LOC__"Using deprecated NumPy API, disable it with " \
+ * "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION")
+ * #else
+ * #warning "Using deprecated NumPy API, disable it with " \
+ * "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION"
+ * #endif
+ * #endif
+ * --------------------
+ */
+#undef NPY_DEPRECATED_INCLUDES
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* NUMPY_CORE_INCLUDE_NUMPY_NDARRAYTYPES_H_ */
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/include/numpy/npy_2_compat.h b/python/user_packages/Python313/site-packages/numpy/_core/include/numpy/npy_2_compat.h
new file mode 100644
index 0000000000000000000000000000000000000000..6a002f115b72318759fb5997835894b3610a4e23
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/include/numpy/npy_2_compat.h
@@ -0,0 +1,249 @@
+/*
+ * This header file defines relevant features which:
+ * - Require runtime inspection depending on the NumPy version.
+ * - May be needed when compiling with an older version of NumPy to allow
+ * a smooth transition.
+ *
+ * As such, it is shipped with NumPy 2.0, but designed to be vendored in full
+ * or parts by downstream projects.
+ *
+ * It must be included after any other includes. `import_array()` must have
+ * been called in the scope or version dependency will misbehave, even when
+ * only `PyUFunc_` API is used.
+ *
+ * If required complicated defs (with inline functions) should be written as:
+ *
+ * #if NPY_FEATURE_VERSION >= NPY_2_0_API_VERSION
+ * Simple definition when NumPy 2.0 API is guaranteed.
+ * #else
+ * static inline definition of a 1.x compatibility shim
+ * #if NPY_ABI_VERSION < 0x02000000
+ * Make 1.x compatibility shim the public API (1.x only branch)
+ * #else
+ * Runtime dispatched version (1.x or 2.x)
+ * #endif
+ * #endif
+ *
+ * An internal build always passes NPY_FEATURE_VERSION >= NPY_2_0_API_VERSION
+ */
+
+#ifndef NUMPY_CORE_INCLUDE_NUMPY_NPY_2_COMPAT_H_
+#define NUMPY_CORE_INCLUDE_NUMPY_NPY_2_COMPAT_H_
+
+/*
+ * New macros for accessing real and complex part of a complex number can be
+ * found in "npy_2_complexcompat.h".
+ */
+
+
+/*
+ * This header is meant to be included by downstream directly for 1.x compat.
+ * In that case we need to ensure that users first included the full headers
+ * and not just `ndarraytypes.h`.
+ */
+
+#ifndef NPY_FEATURE_VERSION
+ #error "The NumPy 2 compat header requires `import_array()` for which " \
+ "the `ndarraytypes.h` header include is not sufficient. Please " \
+ "include it after `numpy/ndarrayobject.h` or similar.\n" \
+ "To simplify inclusion, you may use `PyArray_ImportNumPy()` " \
+ "which is defined in the compat header and is lightweight (can be)."
+#endif
+
+#if NPY_ABI_VERSION < 0x02000000
+ /*
+ * Define 2.0 feature version as it is needed below to decide whether we
+ * compile for both 1.x and 2.x (defining it guarantees 1.x only).
+ */
+ #define NPY_2_0_API_VERSION 0x00000012
+ /*
+ * If we are compiling with NumPy 1.x, PyArray_RUNTIME_VERSION so we
+ * pretend the `PyArray_RUNTIME_VERSION` is `NPY_FEATURE_VERSION`.
+ * This allows downstream to use `PyArray_RUNTIME_VERSION` if they need to.
+ */
+ #define PyArray_RUNTIME_VERSION NPY_FEATURE_VERSION
+ /* Compiling on NumPy 1.x where these are the same: */
+ #define PyArray_DescrProto PyArray_Descr
+#endif
+
+
+/*
+ * Define a better way to call `_import_array()` to simplify backporting as
+ * we now require imports more often (necessary to make ABI flexible).
+ */
+#ifdef import_array1
+
+static inline int
+PyArray_ImportNumPyAPI(void)
+{
+ if (NPY_UNLIKELY(PyArray_API == NULL)) {
+ import_array1(-1);
+ }
+ return 0;
+}
+
+#endif /* import_array1 */
+
+
+/*
+ * NPY_DEFAULT_INT
+ *
+ * The default integer has changed, `NPY_DEFAULT_INT` is available at runtime
+ * for use as type number, e.g. `PyArray_DescrFromType(NPY_DEFAULT_INT)`.
+ *
+ * NPY_RAVEL_AXIS
+ *
+ * This was introduced in NumPy 2.0 to allow indicating that an axis should be
+ * raveled in an operation. Before NumPy 2.0, NPY_MAXDIMS was used for this purpose.
+ *
+ * NPY_MAXDIMS
+ *
+ * A constant indicating the maximum number dimensions allowed when creating
+ * an ndarray.
+ *
+ * NPY_NTYPES_LEGACY
+ *
+ * The number of built-in NumPy dtypes.
+ */
+#if NPY_FEATURE_VERSION >= NPY_2_0_API_VERSION
+ #define NPY_DEFAULT_INT NPY_INTP
+ #define NPY_RAVEL_AXIS NPY_MIN_INT
+ #define NPY_MAXARGS 64
+
+#elif NPY_ABI_VERSION < 0x02000000
+ #define NPY_DEFAULT_INT NPY_LONG
+ #define NPY_RAVEL_AXIS 32
+ #define NPY_MAXARGS 32
+
+ /* Aliases of 2.x names to 1.x only equivalent names */
+ #define NPY_NTYPES NPY_NTYPES_LEGACY
+ #define PyArray_DescrProto PyArray_Descr
+ #define _PyArray_LegacyDescr PyArray_Descr
+ /* NumPy 2 definition always works, but add it for 1.x only */
+ #define PyDataType_ISLEGACY(dtype) (1)
+#else
+ #define NPY_DEFAULT_INT \
+ (PyArray_RUNTIME_VERSION >= NPY_2_0_API_VERSION ? NPY_INTP : NPY_LONG)
+ #define NPY_RAVEL_AXIS \
+ (PyArray_RUNTIME_VERSION >= NPY_2_0_API_VERSION ? NPY_MIN_INT : 32)
+ #define NPY_MAXARGS \
+ (PyArray_RUNTIME_VERSION >= NPY_2_0_API_VERSION ? 64 : 32)
+#endif
+
+
+/*
+ * Access inline functions for descriptor fields. Except for the first
+ * few fields, these needed to be moved (elsize, alignment) for
+ * additional space. Or they are descriptor specific and are not generally
+ * available anymore (metadata, c_metadata, subarray, names, fields).
+ *
+ * Most of these are defined via the `DESCR_ACCESSOR` macro helper.
+ */
+#if NPY_FEATURE_VERSION >= NPY_2_0_API_VERSION || NPY_ABI_VERSION < 0x02000000
+ /* Compiling for 1.x or 2.x only, direct field access is OK: */
+
+ static inline void
+ PyDataType_SET_ELSIZE(PyArray_Descr *dtype, npy_intp size)
+ {
+ dtype->elsize = size;
+ }
+
+ static inline npy_uint64
+ PyDataType_FLAGS(const PyArray_Descr *dtype)
+ {
+ #if NPY_FEATURE_VERSION >= NPY_2_0_API_VERSION
+ return dtype->flags;
+ #else
+ return (unsigned char)dtype->flags; /* Need unsigned cast on 1.x */
+ #endif
+ }
+
+ #define DESCR_ACCESSOR(FIELD, field, type, legacy_only) \
+ static inline type \
+ PyDataType_##FIELD(const PyArray_Descr *dtype) { \
+ if (legacy_only && !PyDataType_ISLEGACY(dtype)) { \
+ return (type)0; \
+ } \
+ return ((_PyArray_LegacyDescr *)dtype)->field; \
+ }
+#else /* compiling for both 1.x and 2.x */
+
+ static inline void
+ PyDataType_SET_ELSIZE(PyArray_Descr *dtype, npy_intp size)
+ {
+ if (PyArray_RUNTIME_VERSION >= NPY_2_0_API_VERSION) {
+ ((_PyArray_DescrNumPy2 *)dtype)->elsize = size;
+ }
+ else {
+ ((PyArray_DescrProto *)dtype)->elsize = (int)size;
+ }
+ }
+
+ static inline npy_uint64
+ PyDataType_FLAGS(const PyArray_Descr *dtype)
+ {
+ if (PyArray_RUNTIME_VERSION >= NPY_2_0_API_VERSION) {
+ return ((_PyArray_DescrNumPy2 *)dtype)->flags;
+ }
+ else {
+ return (unsigned char)((PyArray_DescrProto *)dtype)->flags;
+ }
+ }
+
+ /* Cast to LegacyDescr always fine but needed when `legacy_only` */
+ #define DESCR_ACCESSOR(FIELD, field, type, legacy_only) \
+ static inline type \
+ PyDataType_##FIELD(const PyArray_Descr *dtype) { \
+ if (legacy_only && !PyDataType_ISLEGACY(dtype)) { \
+ return (type)0; \
+ } \
+ if (PyArray_RUNTIME_VERSION >= NPY_2_0_API_VERSION) { \
+ return ((_PyArray_LegacyDescr *)dtype)->field; \
+ } \
+ else { \
+ return ((PyArray_DescrProto *)dtype)->field; \
+ } \
+ }
+#endif
+
+DESCR_ACCESSOR(ELSIZE, elsize, npy_intp, 0)
+DESCR_ACCESSOR(ALIGNMENT, alignment, npy_intp, 0)
+DESCR_ACCESSOR(METADATA, metadata, PyObject *, 1)
+DESCR_ACCESSOR(SUBARRAY, subarray, PyArray_ArrayDescr *, 1)
+DESCR_ACCESSOR(NAMES, names, PyObject *, 1)
+DESCR_ACCESSOR(FIELDS, fields, PyObject *, 1)
+DESCR_ACCESSOR(C_METADATA, c_metadata, NpyAuxData *, 1)
+
+#undef DESCR_ACCESSOR
+
+
+#if !(defined(NPY_INTERNAL_BUILD) && NPY_INTERNAL_BUILD)
+#if NPY_FEATURE_VERSION >= NPY_2_0_API_VERSION
+ static inline PyArray_ArrFuncs *
+ PyDataType_GetArrFuncs(const PyArray_Descr *descr)
+ {
+ return _PyDataType_GetArrFuncs(descr);
+ }
+#elif NPY_ABI_VERSION < 0x02000000
+ static inline PyArray_ArrFuncs *
+ PyDataType_GetArrFuncs(const PyArray_Descr *descr)
+ {
+ return descr->f;
+ }
+#else
+ static inline PyArray_ArrFuncs *
+ PyDataType_GetArrFuncs(const PyArray_Descr *descr)
+ {
+ if (PyArray_RUNTIME_VERSION >= NPY_2_0_API_VERSION) {
+ return _PyDataType_GetArrFuncs(descr);
+ }
+ else {
+ return ((PyArray_DescrProto *)descr)->f;
+ }
+ }
+#endif
+
+
+#endif /* not internal build */
+
+#endif /* NUMPY_CORE_INCLUDE_NUMPY_NPY_2_COMPAT_H_ */
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/include/numpy/npy_2_complexcompat.h b/python/user_packages/Python313/site-packages/numpy/_core/include/numpy/npy_2_complexcompat.h
new file mode 100644
index 0000000000000000000000000000000000000000..9002d5e13fe1222b241c9c0b61ac23936643968c
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/include/numpy/npy_2_complexcompat.h
@@ -0,0 +1,28 @@
+/* This header is designed to be copy-pasted into downstream packages, since it provides
+ a compatibility layer between the old C struct complex types and the new native C99
+ complex types. The new macros are in numpy/npy_math.h, which is why it is included here. */
+#ifndef NUMPY_CORE_INCLUDE_NUMPY_NPY_2_COMPLEXCOMPAT_H_
+#define NUMPY_CORE_INCLUDE_NUMPY_NPY_2_COMPLEXCOMPAT_H_
+
+#include
+
+#ifndef NPY_CSETREALF
+#define NPY_CSETREALF(c, r) (c)->real = (r)
+#endif
+#ifndef NPY_CSETIMAGF
+#define NPY_CSETIMAGF(c, i) (c)->imag = (i)
+#endif
+#ifndef NPY_CSETREAL
+#define NPY_CSETREAL(c, r) (c)->real = (r)
+#endif
+#ifndef NPY_CSETIMAG
+#define NPY_CSETIMAG(c, i) (c)->imag = (i)
+#endif
+#ifndef NPY_CSETREALL
+#define NPY_CSETREALL(c, r) (c)->real = (r)
+#endif
+#ifndef NPY_CSETIMAGL
+#define NPY_CSETIMAGL(c, i) (c)->imag = (i)
+#endif
+
+#endif
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/include/numpy/npy_3kcompat.h b/python/user_packages/Python313/site-packages/numpy/_core/include/numpy/npy_3kcompat.h
new file mode 100644
index 0000000000000000000000000000000000000000..1c4ba37d9a1676ec63d1c6580479f928859b3ee9
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/include/numpy/npy_3kcompat.h
@@ -0,0 +1,374 @@
+/*
+ * This is a convenience header file providing compatibility utilities
+ * for supporting different minor versions of Python 3.
+ * It was originally used to support the transition from Python 2,
+ * hence the "3k" naming.
+ *
+ * If you want to use this for your own projects, it's recommended to make a
+ * copy of it. We don't provide backwards compatibility guarantees.
+ */
+
+#ifndef NUMPY_CORE_INCLUDE_NUMPY_NPY_3KCOMPAT_H_
+#define NUMPY_CORE_INCLUDE_NUMPY_NPY_3KCOMPAT_H_
+
+#include
+#include
+
+#include "npy_common.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/* Python13 removes _PyLong_AsInt */
+static inline int
+Npy__PyLong_AsInt(PyObject *obj)
+{
+ int overflow;
+ long result = PyLong_AsLongAndOverflow(obj, &overflow);
+
+ /* INT_MAX and INT_MIN are defined in Python.h */
+ if (overflow || result > INT_MAX || result < INT_MIN) {
+ /* XXX: could be cute and give a different
+ message for overflow == -1 */
+ PyErr_SetString(PyExc_OverflowError,
+ "Python int too large to convert to C int");
+ return -1;
+ }
+ return (int)result;
+}
+
+#if defined _MSC_VER && _MSC_VER >= 1900
+
+#include
+
+/*
+ * Macros to protect CRT calls against instant termination when passed an
+ * invalid parameter (https://bugs.python.org/issue23524).
+ */
+extern _invalid_parameter_handler _Py_silent_invalid_parameter_handler;
+#define NPY_BEGIN_SUPPRESS_IPH { _invalid_parameter_handler _Py_old_handler = \
+ _set_thread_local_invalid_parameter_handler(_Py_silent_invalid_parameter_handler);
+#define NPY_END_SUPPRESS_IPH _set_thread_local_invalid_parameter_handler(_Py_old_handler); }
+
+#else
+
+#define NPY_BEGIN_SUPPRESS_IPH
+#define NPY_END_SUPPRESS_IPH
+
+#endif /* _MSC_VER >= 1900 */
+
+/*
+ * PyFile_* compatibility
+ */
+
+/*
+ * Get a FILE* handle to the file represented by the Python object
+ */
+static inline FILE*
+npy_PyFile_Dup2(PyObject *file, char *mode, npy_off_t *orig_pos)
+{
+ int fd, fd2, unbuf;
+ Py_ssize_t fd2_tmp;
+ PyObject *ret, *os, *io, *io_raw;
+ npy_off_t pos;
+ FILE *handle;
+
+ /* Flush first to ensure things end up in the file in the correct order */
+ ret = PyObject_CallMethod(file, "flush", "");
+ if (ret == NULL) {
+ return NULL;
+ }
+ Py_DECREF(ret);
+ fd = PyObject_AsFileDescriptor(file);
+ if (fd == -1) {
+ return NULL;
+ }
+
+ /*
+ * The handle needs to be dup'd because we have to call fclose
+ * at the end
+ */
+ os = PyImport_ImportModule("os");
+ if (os == NULL) {
+ return NULL;
+ }
+ ret = PyObject_CallMethod(os, "dup", "i", fd);
+ Py_DECREF(os);
+ if (ret == NULL) {
+ return NULL;
+ }
+ fd2_tmp = PyNumber_AsSsize_t(ret, PyExc_IOError);
+ Py_DECREF(ret);
+ if (fd2_tmp == -1 && PyErr_Occurred()) {
+ return NULL;
+ }
+ if (fd2_tmp < INT_MIN || fd2_tmp > INT_MAX) {
+ PyErr_SetString(PyExc_IOError,
+ "Getting an 'int' from os.dup() failed");
+ return NULL;
+ }
+ fd2 = (int)fd2_tmp;
+
+ /* Convert to FILE* handle */
+#ifdef _WIN32
+ NPY_BEGIN_SUPPRESS_IPH
+ handle = _fdopen(fd2, mode);
+ NPY_END_SUPPRESS_IPH
+#else
+ handle = fdopen(fd2, mode);
+#endif
+ if (handle == NULL) {
+ PyErr_SetString(PyExc_IOError,
+ "Getting a FILE* from a Python file object via "
+ "_fdopen failed. If you built NumPy, you probably "
+ "linked with the wrong debug/release runtime");
+ return NULL;
+ }
+
+ /* Record the original raw file handle position */
+ *orig_pos = npy_ftell(handle);
+ if (*orig_pos == -1) {
+ /* The io module is needed to determine if buffering is used */
+ io = PyImport_ImportModule("io");
+ if (io == NULL) {
+ fclose(handle);
+ return NULL;
+ }
+ /* File object instances of RawIOBase are unbuffered */
+ io_raw = PyObject_GetAttrString(io, "RawIOBase");
+ Py_DECREF(io);
+ if (io_raw == NULL) {
+ fclose(handle);
+ return NULL;
+ }
+ unbuf = PyObject_IsInstance(file, io_raw);
+ Py_DECREF(io_raw);
+ if (unbuf == 1) {
+ /* Succeed if the IO is unbuffered */
+ return handle;
+ }
+ else {
+ PyErr_SetString(PyExc_IOError, "obtaining file position failed");
+ fclose(handle);
+ return NULL;
+ }
+ }
+
+ /* Seek raw handle to the Python-side position */
+ ret = PyObject_CallMethod(file, "tell", "");
+ if (ret == NULL) {
+ fclose(handle);
+ return NULL;
+ }
+ pos = PyLong_AsLongLong(ret);
+ Py_DECREF(ret);
+ if (PyErr_Occurred()) {
+ fclose(handle);
+ return NULL;
+ }
+ if (npy_fseek(handle, pos, SEEK_SET) == -1) {
+ PyErr_SetString(PyExc_IOError, "seeking file failed");
+ fclose(handle);
+ return NULL;
+ }
+ return handle;
+}
+
+/*
+ * Close the dup-ed file handle, and seek the Python one to the current position
+ */
+static inline int
+npy_PyFile_DupClose2(PyObject *file, FILE* handle, npy_off_t orig_pos)
+{
+ int fd, unbuf;
+ PyObject *ret, *io, *io_raw;
+ npy_off_t position;
+
+ position = npy_ftell(handle);
+
+ /* Close the FILE* handle */
+ fclose(handle);
+
+ /*
+ * Restore original file handle position, in order to not confuse
+ * Python-side data structures
+ */
+ fd = PyObject_AsFileDescriptor(file);
+ if (fd == -1) {
+ return -1;
+ }
+
+ if (npy_lseek(fd, orig_pos, SEEK_SET) == -1) {
+
+ /* The io module is needed to determine if buffering is used */
+ io = PyImport_ImportModule("io");
+ if (io == NULL) {
+ return -1;
+ }
+ /* File object instances of RawIOBase are unbuffered */
+ io_raw = PyObject_GetAttrString(io, "RawIOBase");
+ Py_DECREF(io);
+ if (io_raw == NULL) {
+ return -1;
+ }
+ unbuf = PyObject_IsInstance(file, io_raw);
+ Py_DECREF(io_raw);
+ if (unbuf == 1) {
+ /* Succeed if the IO is unbuffered */
+ return 0;
+ }
+ else {
+ PyErr_SetString(PyExc_IOError, "seeking file failed");
+ return -1;
+ }
+ }
+
+ if (position == -1) {
+ PyErr_SetString(PyExc_IOError, "obtaining file position failed");
+ return -1;
+ }
+
+ /* Seek Python-side handle to the FILE* handle position */
+ ret = PyObject_CallMethod(file, "seek", NPY_OFF_T_PYFMT "i", position, 0);
+ if (ret == NULL) {
+ return -1;
+ }
+ Py_DECREF(ret);
+ return 0;
+}
+
+static inline PyObject*
+npy_PyFile_OpenFile(PyObject *filename, const char *mode)
+{
+ PyObject *open;
+ open = PyDict_GetItemString(PyEval_GetBuiltins(), "open"); // noqa: borrowed-ref OK
+ if (open == NULL) {
+ return NULL;
+ }
+ return PyObject_CallFunction(open, "Os", filename, mode);
+}
+
+static inline int
+npy_PyFile_CloseFile(PyObject *file)
+{
+ PyObject *ret;
+
+ ret = PyObject_CallMethod(file, "close", NULL);
+ if (ret == NULL) {
+ return -1;
+ }
+ Py_DECREF(ret);
+ return 0;
+}
+
+/* This is a copy of _PyErr_ChainExceptions, which
+ * is no longer exported from Python3.12
+ */
+static inline void
+npy_PyErr_ChainExceptions(PyObject *exc, PyObject *val, PyObject *tb)
+{
+ if (exc == NULL)
+ return;
+
+ if (PyErr_Occurred()) {
+ PyObject *exc2, *val2, *tb2;
+ PyErr_Fetch(&exc2, &val2, &tb2);
+ PyErr_NormalizeException(&exc, &val, &tb);
+ if (tb != NULL) {
+ PyException_SetTraceback(val, tb);
+ Py_DECREF(tb);
+ }
+ Py_DECREF(exc);
+ PyErr_NormalizeException(&exc2, &val2, &tb2);
+ PyException_SetContext(val2, val);
+ PyErr_Restore(exc2, val2, tb2);
+ }
+ else {
+ PyErr_Restore(exc, val, tb);
+ }
+}
+
+/* This is a copy of _PyErr_ChainExceptions, with:
+ * __cause__ used instead of __context__
+ */
+static inline void
+npy_PyErr_ChainExceptionsCause(PyObject *exc, PyObject *val, PyObject *tb)
+{
+ if (exc == NULL)
+ return;
+
+ if (PyErr_Occurred()) {
+ PyObject *exc2, *val2, *tb2;
+ PyErr_Fetch(&exc2, &val2, &tb2);
+ PyErr_NormalizeException(&exc, &val, &tb);
+ if (tb != NULL) {
+ PyException_SetTraceback(val, tb);
+ Py_DECREF(tb);
+ }
+ Py_DECREF(exc);
+ PyErr_NormalizeException(&exc2, &val2, &tb2);
+ PyException_SetCause(val2, val);
+ PyErr_Restore(exc2, val2, tb2);
+ }
+ else {
+ PyErr_Restore(exc, val, tb);
+ }
+}
+
+/*
+ * PyCObject functions adapted to PyCapsules.
+ *
+ * The main job here is to get rid of the improved error handling
+ * of PyCapsules. It's a shame...
+ */
+static inline PyObject *
+NpyCapsule_FromVoidPtr(void *ptr, void (*dtor)(PyObject *))
+{
+ PyObject *ret = PyCapsule_New(ptr, NULL, dtor);
+ if (ret == NULL) {
+ PyErr_Clear();
+ }
+ return ret;
+}
+
+static inline PyObject *
+NpyCapsule_FromVoidPtrAndDesc(void *ptr, void* context, void (*dtor)(PyObject *))
+{
+ PyObject *ret = NpyCapsule_FromVoidPtr(ptr, dtor);
+ if (ret != NULL && PyCapsule_SetContext(ret, context) != 0) {
+ PyErr_Clear();
+ Py_DECREF(ret);
+ ret = NULL;
+ }
+ return ret;
+}
+
+static inline void *
+NpyCapsule_AsVoidPtr(PyObject *obj)
+{
+ void *ret = PyCapsule_GetPointer(obj, NULL);
+ if (ret == NULL) {
+ PyErr_Clear();
+ }
+ return ret;
+}
+
+static inline void *
+NpyCapsule_GetDesc(PyObject *obj)
+{
+ return PyCapsule_GetContext(obj);
+}
+
+static inline int
+NpyCapsule_Check(PyObject *ptr)
+{
+ return PyCapsule_CheckExact(ptr);
+}
+
+#ifdef __cplusplus
+}
+#endif
+
+
+#endif /* NUMPY_CORE_INCLUDE_NUMPY_NPY_3KCOMPAT_H_ */
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/include/numpy/npy_common.h b/python/user_packages/Python313/site-packages/numpy/_core/include/numpy/npy_common.h
new file mode 100644
index 0000000000000000000000000000000000000000..7b2bd29e974b58c2c5f698a5502934bb347b4a00
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/include/numpy/npy_common.h
@@ -0,0 +1,989 @@
+#ifndef NUMPY_CORE_INCLUDE_NUMPY_NPY_COMMON_H_
+#define NUMPY_CORE_INCLUDE_NUMPY_NPY_COMMON_H_
+
+/* need Python.h for npy_intp, npy_uintp */
+#include
+
+/* numpconfig.h is auto-generated */
+#include "numpyconfig.h"
+#ifdef HAVE_NPY_CONFIG_H
+#include
+#endif
+
+/*
+ * using static inline modifiers when defining npy_math functions
+ * allows the compiler to make optimizations when possible
+ */
+#ifndef NPY_INLINE_MATH
+#if defined(NPY_INTERNAL_BUILD) && NPY_INTERNAL_BUILD
+ #define NPY_INLINE_MATH 1
+#else
+ #define NPY_INLINE_MATH 0
+#endif
+#endif
+
+/*
+ * gcc does not unroll even with -O3
+ * use with care, unrolling on modern cpus rarely speeds things up
+ */
+#ifdef HAVE_ATTRIBUTE_OPTIMIZE_UNROLL_LOOPS
+#define NPY_GCC_UNROLL_LOOPS \
+ __attribute__((optimize("unroll-loops")))
+#else
+#define NPY_GCC_UNROLL_LOOPS
+#endif
+
+/* highest gcc optimization level, enabled autovectorizer */
+#ifdef HAVE_ATTRIBUTE_OPTIMIZE_OPT_3
+#define NPY_GCC_OPT_3 __attribute__((optimize("O3")))
+#else
+#define NPY_GCC_OPT_3
+#endif
+
+/*
+ * mark an argument (starting from 1) that must not be NULL and is not checked
+ * DO NOT USE IF FUNCTION CHECKS FOR NULL!! the compiler will remove the check
+ */
+#ifdef HAVE_ATTRIBUTE_NONNULL
+#define NPY_GCC_NONNULL(n) __attribute__((nonnull(n)))
+#else
+#define NPY_GCC_NONNULL(n)
+#endif
+
+/*
+ * give a hint to the compiler which branch is more likely or unlikely
+ * to occur, e.g. rare error cases:
+ *
+ * if (NPY_UNLIKELY(failure == 0))
+ * return NULL;
+ *
+ * the double !! is to cast the expression (e.g. NULL) to a boolean required by
+ * the intrinsic
+ */
+#ifdef HAVE___BUILTIN_EXPECT
+#define NPY_LIKELY(x) __builtin_expect(!!(x), 1)
+#define NPY_UNLIKELY(x) __builtin_expect(!!(x), 0)
+#else
+#define NPY_LIKELY(x) (x)
+#define NPY_UNLIKELY(x) (x)
+#endif
+
+#ifdef HAVE___BUILTIN_PREFETCH
+/* unlike _mm_prefetch also works on non-x86 */
+#define NPY_PREFETCH(x, rw, loc) __builtin_prefetch((x), (rw), (loc))
+#else
+#ifdef NPY_HAVE_SSE
+/* _MM_HINT_ET[01] (rw = 1) unsupported, only available in gcc >= 4.9 */
+#define NPY_PREFETCH(x, rw, loc) _mm_prefetch((x), loc == 0 ? _MM_HINT_NTA : \
+ (loc == 1 ? _MM_HINT_T2 : \
+ (loc == 2 ? _MM_HINT_T1 : \
+ (loc == 3 ? _MM_HINT_T0 : -1))))
+#else
+#define NPY_PREFETCH(x, rw,loc)
+#endif
+#endif
+
+/* `NPY_INLINE` kept for backwards compatibility; use `inline` instead */
+#if defined(_MSC_VER) && !defined(__clang__)
+ #define NPY_INLINE __inline
+/* clang included here to handle clang-cl on Windows */
+#elif defined(__GNUC__) || defined(__clang__)
+ #if defined(__STRICT_ANSI__)
+ #define NPY_INLINE __inline__
+ #else
+ #define NPY_INLINE inline
+ #endif
+#else
+ #define NPY_INLINE
+#endif
+
+#ifdef _MSC_VER
+ #ifdef __cplusplus
+ #define NPY_FINLINE __forceinline
+ #else
+ #define NPY_FINLINE static __forceinline
+ #endif
+#elif defined(__GNUC__)
+ #ifdef __cplusplus
+ #define NPY_FINLINE inline __attribute__((always_inline))
+ #else
+ #define NPY_FINLINE static inline __attribute__((always_inline))
+ #endif
+#else
+ #ifdef __cplusplus
+ #define NPY_FINLINE inline
+ #else
+ #define NPY_FINLINE static NPY_INLINE
+ #endif
+#endif
+
+#if defined(_MSC_VER)
+ #define NPY_NOINLINE static __declspec(noinline)
+#elif defined(__GNUC__) || defined(__clang__)
+ #define NPY_NOINLINE static __attribute__((noinline))
+#else
+ #define NPY_NOINLINE static
+#endif
+
+#ifdef __cplusplus
+ #define NPY_TLS thread_local
+#elif defined(HAVE_THREAD_LOCAL)
+ #define NPY_TLS thread_local
+#elif defined(HAVE__THREAD_LOCAL)
+ #define NPY_TLS _Thread_local
+#elif defined(HAVE___THREAD)
+ #define NPY_TLS __thread
+#elif defined(HAVE___DECLSPEC_THREAD_)
+ #define NPY_TLS __declspec(thread)
+#else
+ #define NPY_TLS
+#endif
+
+#ifdef WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE
+ #define NPY_RETURNS_BORROWED_REF \
+ __attribute__((cpychecker_returns_borrowed_ref))
+#else
+ #define NPY_RETURNS_BORROWED_REF
+#endif
+
+#ifdef WITH_CPYCHECKER_STEALS_REFERENCE_TO_ARG_ATTRIBUTE
+ #define NPY_STEALS_REF_TO_ARG(n) \
+ __attribute__((cpychecker_steals_reference_to_arg(n)))
+#else
+ #define NPY_STEALS_REF_TO_ARG(n)
+#endif
+
+/* 64 bit file position support, also on win-amd64. Issue gh-2256 */
+#if defined(_MSC_VER) && defined(_WIN64) && (_MSC_VER > 1400) || \
+ defined(__MINGW32__) || defined(__MINGW64__)
+ #include
+
+ #define npy_fseek _fseeki64
+ #define npy_ftell _ftelli64
+ #define npy_lseek _lseeki64
+ #define npy_off_t npy_int64
+
+ #if NPY_SIZEOF_INT == 8
+ #define NPY_OFF_T_PYFMT "i"
+ #elif NPY_SIZEOF_LONG == 8
+ #define NPY_OFF_T_PYFMT "l"
+ #elif NPY_SIZEOF_LONGLONG == 8
+ #define NPY_OFF_T_PYFMT "L"
+ #else
+ #error Unsupported size for type off_t
+ #endif
+#else
+#ifdef HAVE_FSEEKO
+ #define npy_fseek fseeko
+#else
+ #define npy_fseek fseek
+#endif
+#ifdef HAVE_FTELLO
+ #define npy_ftell ftello
+#else
+ #define npy_ftell ftell
+#endif
+ #include
+ #ifndef _WIN32
+ #include
+ #endif
+ #define npy_lseek lseek
+ #define npy_off_t off_t
+
+ #if NPY_SIZEOF_OFF_T == NPY_SIZEOF_SHORT
+ #define NPY_OFF_T_PYFMT "h"
+ #elif NPY_SIZEOF_OFF_T == NPY_SIZEOF_INT
+ #define NPY_OFF_T_PYFMT "i"
+ #elif NPY_SIZEOF_OFF_T == NPY_SIZEOF_LONG
+ #define NPY_OFF_T_PYFMT "l"
+ #elif NPY_SIZEOF_OFF_T == NPY_SIZEOF_LONGLONG
+ #define NPY_OFF_T_PYFMT "L"
+ #else
+ #error Unsupported size for type off_t
+ #endif
+#endif
+
+/* enums for detected endianness */
+enum {
+ NPY_CPU_UNKNOWN_ENDIAN,
+ NPY_CPU_LITTLE,
+ NPY_CPU_BIG
+};
+
+/*
+ * This is to typedef npy_intp to the appropriate size for Py_ssize_t.
+ * (Before NumPy 2.0 we used Py_intptr_t and Py_uintptr_t from `pyport.h`.)
+ */
+typedef Py_ssize_t npy_intp;
+typedef size_t npy_uintp;
+
+/*
+ * Define sizes that were not defined in numpyconfig.h.
+ */
+#define NPY_SIZEOF_CHAR 1
+#define NPY_SIZEOF_BYTE 1
+#define NPY_SIZEOF_DATETIME 8
+#define NPY_SIZEOF_TIMEDELTA 8
+#define NPY_SIZEOF_HALF 2
+#define NPY_SIZEOF_CFLOAT NPY_SIZEOF_COMPLEX_FLOAT
+#define NPY_SIZEOF_CDOUBLE NPY_SIZEOF_COMPLEX_DOUBLE
+#define NPY_SIZEOF_CLONGDOUBLE NPY_SIZEOF_COMPLEX_LONGDOUBLE
+
+#ifdef constchar
+#undef constchar
+#endif
+
+#define NPY_SSIZE_T_PYFMT "n"
+#define constchar char
+
+/* NPY_INTP_FMT Note:
+ * Unlike the other NPY_*_FMT macros, which are used with PyOS_snprintf,
+ * NPY_INTP_FMT is used with PyErr_Format and PyUnicode_FromFormat. Those
+ * functions use different formatting codes that are portably specified
+ * according to the Python documentation. See issue gh-2388.
+ */
+#if NPY_SIZEOF_INTP == NPY_SIZEOF_LONG
+ #define NPY_INTP NPY_LONG
+ #define NPY_UINTP NPY_ULONG
+ #define PyIntpArrType_Type PyLongArrType_Type
+ #define PyUIntpArrType_Type PyULongArrType_Type
+ #define NPY_MAX_INTP NPY_MAX_LONG
+ #define NPY_MIN_INTP NPY_MIN_LONG
+ #define NPY_MAX_UINTP NPY_MAX_ULONG
+ #define NPY_INTP_FMT "ld"
+#elif NPY_SIZEOF_INTP == NPY_SIZEOF_INT
+ #define NPY_INTP NPY_INT
+ #define NPY_UINTP NPY_UINT
+ #define PyIntpArrType_Type PyIntArrType_Type
+ #define PyUIntpArrType_Type PyUIntArrType_Type
+ #define NPY_MAX_INTP NPY_MAX_INT
+ #define NPY_MIN_INTP NPY_MIN_INT
+ #define NPY_MAX_UINTP NPY_MAX_UINT
+ #define NPY_INTP_FMT "d"
+#elif defined(PY_LONG_LONG) && (NPY_SIZEOF_INTP == NPY_SIZEOF_LONGLONG)
+ #define NPY_INTP NPY_LONGLONG
+ #define NPY_UINTP NPY_ULONGLONG
+ #define PyIntpArrType_Type PyLongLongArrType_Type
+ #define PyUIntpArrType_Type PyULongLongArrType_Type
+ #define NPY_MAX_INTP NPY_MAX_LONGLONG
+ #define NPY_MIN_INTP NPY_MIN_LONGLONG
+ #define NPY_MAX_UINTP NPY_MAX_ULONGLONG
+ #define NPY_INTP_FMT "lld"
+#else
+ #error "Failed to correctly define NPY_INTP and NPY_UINTP"
+#endif
+
+
+/*
+ * Some platforms don't define bool, long long, or long double.
+ * Handle that here.
+ */
+#define NPY_BYTE_FMT "hhd"
+#define NPY_UBYTE_FMT "hhu"
+#define NPY_SHORT_FMT "hd"
+#define NPY_USHORT_FMT "hu"
+#define NPY_INT_FMT "d"
+#define NPY_UINT_FMT "u"
+#define NPY_LONG_FMT "ld"
+#define NPY_ULONG_FMT "lu"
+#define NPY_HALF_FMT "g"
+#define NPY_FLOAT_FMT "g"
+#define NPY_DOUBLE_FMT "g"
+
+
+#ifdef PY_LONG_LONG
+typedef PY_LONG_LONG npy_longlong;
+typedef unsigned PY_LONG_LONG npy_ulonglong;
+# ifdef _MSC_VER
+# define NPY_LONGLONG_FMT "I64d"
+# define NPY_ULONGLONG_FMT "I64u"
+# else
+# define NPY_LONGLONG_FMT "lld"
+# define NPY_ULONGLONG_FMT "llu"
+# endif
+# ifdef _MSC_VER
+# define NPY_LONGLONG_SUFFIX(x) (x##i64)
+# define NPY_ULONGLONG_SUFFIX(x) (x##Ui64)
+# else
+# define NPY_LONGLONG_SUFFIX(x) (x##LL)
+# define NPY_ULONGLONG_SUFFIX(x) (x##ULL)
+# endif
+#else
+typedef long npy_longlong;
+typedef unsigned long npy_ulonglong;
+# define NPY_LONGLONG_SUFFIX(x) (x##L)
+# define NPY_ULONGLONG_SUFFIX(x) (x##UL)
+#endif
+
+
+typedef unsigned char npy_bool;
+#define NPY_FALSE 0
+#define NPY_TRUE 1
+/*
+ * `NPY_SIZEOF_LONGDOUBLE` isn't usually equal to sizeof(long double).
+ * In some certain cases, it may forced to be equal to sizeof(double)
+ * even against the compiler implementation and the same goes for
+ * `complex long double`.
+ *
+ * Therefore, avoid `long double`, use `npy_longdouble` instead,
+ * and when it comes to standard math functions make sure of using
+ * the double version when `NPY_SIZEOF_LONGDOUBLE` == `NPY_SIZEOF_DOUBLE`.
+ * For example:
+ * npy_longdouble *ptr, x;
+ * #if NPY_SIZEOF_LONGDOUBLE == NPY_SIZEOF_DOUBLE
+ * npy_longdouble r = modf(x, ptr);
+ * #else
+ * npy_longdouble r = modfl(x, ptr);
+ * #endif
+ *
+ * See https://github.com/numpy/numpy/issues/20348
+ */
+#if NPY_SIZEOF_LONGDOUBLE == NPY_SIZEOF_DOUBLE
+ #define NPY_LONGDOUBLE_FMT "g"
+ #define longdouble_t double
+ typedef double npy_longdouble;
+#else
+ #define NPY_LONGDOUBLE_FMT "Lg"
+ #define longdouble_t long double
+ typedef long double npy_longdouble;
+#endif
+
+#ifndef Py_USING_UNICODE
+#error Must use Python with unicode enabled.
+#endif
+
+
+typedef signed char npy_byte;
+typedef unsigned char npy_ubyte;
+typedef unsigned short npy_ushort;
+typedef unsigned int npy_uint;
+typedef unsigned long npy_ulong;
+
+/* These are for completeness */
+typedef char npy_char;
+typedef short npy_short;
+typedef int npy_int;
+typedef long npy_long;
+typedef float npy_float;
+typedef double npy_double;
+
+typedef Py_hash_t npy_hash_t;
+#define NPY_SIZEOF_HASH_T NPY_SIZEOF_INTP
+
+#if defined(__cplusplus)
+
+typedef struct
+{
+ double _Val[2];
+} npy_cdouble;
+
+typedef struct
+{
+ float _Val[2];
+} npy_cfloat;
+
+typedef struct
+{
+ long double _Val[2];
+} npy_clongdouble;
+
+#else
+
+#include
+
+
+#if defined(_MSC_VER) && !defined(__INTEL_COMPILER)
+typedef _Dcomplex npy_cdouble;
+typedef _Fcomplex npy_cfloat;
+typedef _Lcomplex npy_clongdouble;
+#else /* !defined(_MSC_VER) || defined(__INTEL_COMPILER) */
+typedef double _Complex npy_cdouble;
+typedef float _Complex npy_cfloat;
+typedef longdouble_t _Complex npy_clongdouble;
+#endif
+
+#endif
+
+/*
+ * numarray-style bit-width typedefs
+ */
+#define NPY_MAX_INT8 127
+#define NPY_MIN_INT8 -128
+#define NPY_MAX_UINT8 255
+#define NPY_MAX_INT16 32767
+#define NPY_MIN_INT16 -32768
+#define NPY_MAX_UINT16 65535
+#define NPY_MAX_INT32 2147483647
+#define NPY_MIN_INT32 (-NPY_MAX_INT32 - 1)
+#define NPY_MAX_UINT32 4294967295U
+#define NPY_MAX_INT64 NPY_LONGLONG_SUFFIX(9223372036854775807)
+#define NPY_MIN_INT64 (-NPY_MAX_INT64 - NPY_LONGLONG_SUFFIX(1))
+#define NPY_MAX_UINT64 NPY_ULONGLONG_SUFFIX(18446744073709551615)
+#define NPY_MAX_INT128 NPY_LONGLONG_SUFFIX(85070591730234615865843651857942052864)
+#define NPY_MIN_INT128 (-NPY_MAX_INT128 - NPY_LONGLONG_SUFFIX(1))
+#define NPY_MAX_UINT128 NPY_ULONGLONG_SUFFIX(170141183460469231731687303715884105728)
+#define NPY_MIN_DATETIME NPY_MIN_INT64
+#define NPY_MAX_DATETIME NPY_MAX_INT64
+#define NPY_MIN_TIMEDELTA NPY_MIN_INT64
+#define NPY_MAX_TIMEDELTA NPY_MAX_INT64
+
+ /* Need to find the number of bits for each type and
+ make definitions accordingly.
+
+ C states that sizeof(char) == 1 by definition
+
+ So, just using the sizeof keyword won't help.
+
+ It also looks like Python itself uses sizeof(char) quite a
+ bit, which by definition should be 1 all the time.
+
+ Idea: Make Use of CHAR_BIT which should tell us how many
+ BITS per CHARACTER
+ */
+
+ /* Include platform definitions -- These are in the C89/90 standard */
+#include
+#define NPY_MAX_BYTE SCHAR_MAX
+#define NPY_MIN_BYTE SCHAR_MIN
+#define NPY_MAX_UBYTE UCHAR_MAX
+#define NPY_MAX_SHORT SHRT_MAX
+#define NPY_MIN_SHORT SHRT_MIN
+#define NPY_MAX_USHORT USHRT_MAX
+#define NPY_MAX_INT INT_MAX
+#ifndef INT_MIN
+#define INT_MIN (-INT_MAX - 1)
+#endif
+#define NPY_MIN_INT INT_MIN
+#define NPY_MAX_UINT UINT_MAX
+#define NPY_MAX_LONG LONG_MAX
+#define NPY_MIN_LONG LONG_MIN
+#define NPY_MAX_ULONG ULONG_MAX
+
+#define NPY_BITSOF_BOOL (sizeof(npy_bool) * CHAR_BIT)
+#define NPY_BITSOF_CHAR CHAR_BIT
+#define NPY_BITSOF_BYTE (NPY_SIZEOF_BYTE * CHAR_BIT)
+#define NPY_BITSOF_SHORT (NPY_SIZEOF_SHORT * CHAR_BIT)
+#define NPY_BITSOF_INT (NPY_SIZEOF_INT * CHAR_BIT)
+#define NPY_BITSOF_LONG (NPY_SIZEOF_LONG * CHAR_BIT)
+#define NPY_BITSOF_LONGLONG (NPY_SIZEOF_LONGLONG * CHAR_BIT)
+#define NPY_BITSOF_INTP (NPY_SIZEOF_INTP * CHAR_BIT)
+#define NPY_BITSOF_HALF (NPY_SIZEOF_HALF * CHAR_BIT)
+#define NPY_BITSOF_FLOAT (NPY_SIZEOF_FLOAT * CHAR_BIT)
+#define NPY_BITSOF_DOUBLE (NPY_SIZEOF_DOUBLE * CHAR_BIT)
+#define NPY_BITSOF_LONGDOUBLE (NPY_SIZEOF_LONGDOUBLE * CHAR_BIT)
+#define NPY_BITSOF_CFLOAT (NPY_SIZEOF_CFLOAT * CHAR_BIT)
+#define NPY_BITSOF_CDOUBLE (NPY_SIZEOF_CDOUBLE * CHAR_BIT)
+#define NPY_BITSOF_CLONGDOUBLE (NPY_SIZEOF_CLONGDOUBLE * CHAR_BIT)
+#define NPY_BITSOF_DATETIME (NPY_SIZEOF_DATETIME * CHAR_BIT)
+#define NPY_BITSOF_TIMEDELTA (NPY_SIZEOF_TIMEDELTA * CHAR_BIT)
+
+#if NPY_BITSOF_LONG == 8
+#define NPY_INT8 NPY_LONG
+#define NPY_UINT8 NPY_ULONG
+ typedef long npy_int8;
+ typedef unsigned long npy_uint8;
+#define PyInt8ScalarObject PyLongScalarObject
+#define PyInt8ArrType_Type PyLongArrType_Type
+#define PyUInt8ScalarObject PyULongScalarObject
+#define PyUInt8ArrType_Type PyULongArrType_Type
+#define NPY_INT8_FMT NPY_LONG_FMT
+#define NPY_UINT8_FMT NPY_ULONG_FMT
+#elif NPY_BITSOF_LONG == 16
+#define NPY_INT16 NPY_LONG
+#define NPY_UINT16 NPY_ULONG
+ typedef long npy_int16;
+ typedef unsigned long npy_uint16;
+#define PyInt16ScalarObject PyLongScalarObject
+#define PyInt16ArrType_Type PyLongArrType_Type
+#define PyUInt16ScalarObject PyULongScalarObject
+#define PyUInt16ArrType_Type PyULongArrType_Type
+#define NPY_INT16_FMT NPY_LONG_FMT
+#define NPY_UINT16_FMT NPY_ULONG_FMT
+#elif NPY_BITSOF_LONG == 32
+#define NPY_INT32 NPY_LONG
+#define NPY_UINT32 NPY_ULONG
+ typedef long npy_int32;
+ typedef unsigned long npy_uint32;
+ typedef unsigned long npy_ucs4;
+#define PyInt32ScalarObject PyLongScalarObject
+#define PyInt32ArrType_Type PyLongArrType_Type
+#define PyUInt32ScalarObject PyULongScalarObject
+#define PyUInt32ArrType_Type PyULongArrType_Type
+#define NPY_INT32_FMT NPY_LONG_FMT
+#define NPY_UINT32_FMT NPY_ULONG_FMT
+#elif NPY_BITSOF_LONG == 64
+#define NPY_INT64 NPY_LONG
+#define NPY_UINT64 NPY_ULONG
+ typedef long npy_int64;
+ typedef unsigned long npy_uint64;
+#define PyInt64ScalarObject PyLongScalarObject
+#define PyInt64ArrType_Type PyLongArrType_Type
+#define PyUInt64ScalarObject PyULongScalarObject
+#define PyUInt64ArrType_Type PyULongArrType_Type
+#define NPY_INT64_FMT NPY_LONG_FMT
+#define NPY_UINT64_FMT NPY_ULONG_FMT
+#define MyPyLong_FromInt64 PyLong_FromLong
+#define MyPyLong_AsInt64 PyLong_AsLong
+#endif
+
+#if NPY_BITSOF_LONGLONG == 8
+# ifndef NPY_INT8
+# define NPY_INT8 NPY_LONGLONG
+# define NPY_UINT8 NPY_ULONGLONG
+ typedef npy_longlong npy_int8;
+ typedef npy_ulonglong npy_uint8;
+# define PyInt8ScalarObject PyLongLongScalarObject
+# define PyInt8ArrType_Type PyLongLongArrType_Type
+# define PyUInt8ScalarObject PyULongLongScalarObject
+# define PyUInt8ArrType_Type PyULongLongArrType_Type
+#define NPY_INT8_FMT NPY_LONGLONG_FMT
+#define NPY_UINT8_FMT NPY_ULONGLONG_FMT
+# endif
+# define NPY_MAX_LONGLONG NPY_MAX_INT8
+# define NPY_MIN_LONGLONG NPY_MIN_INT8
+# define NPY_MAX_ULONGLONG NPY_MAX_UINT8
+#elif NPY_BITSOF_LONGLONG == 16
+# ifndef NPY_INT16
+# define NPY_INT16 NPY_LONGLONG
+# define NPY_UINT16 NPY_ULONGLONG
+ typedef npy_longlong npy_int16;
+ typedef npy_ulonglong npy_uint16;
+# define PyInt16ScalarObject PyLongLongScalarObject
+# define PyInt16ArrType_Type PyLongLongArrType_Type
+# define PyUInt16ScalarObject PyULongLongScalarObject
+# define PyUInt16ArrType_Type PyULongLongArrType_Type
+#define NPY_INT16_FMT NPY_LONGLONG_FMT
+#define NPY_UINT16_FMT NPY_ULONGLONG_FMT
+# endif
+# define NPY_MAX_LONGLONG NPY_MAX_INT16
+# define NPY_MIN_LONGLONG NPY_MIN_INT16
+# define NPY_MAX_ULONGLONG NPY_MAX_UINT16
+#elif NPY_BITSOF_LONGLONG == 32
+# ifndef NPY_INT32
+# define NPY_INT32 NPY_LONGLONG
+# define NPY_UINT32 NPY_ULONGLONG
+ typedef npy_longlong npy_int32;
+ typedef npy_ulonglong npy_uint32;
+ typedef npy_ulonglong npy_ucs4;
+# define PyInt32ScalarObject PyLongLongScalarObject
+# define PyInt32ArrType_Type PyLongLongArrType_Type
+# define PyUInt32ScalarObject PyULongLongScalarObject
+# define PyUInt32ArrType_Type PyULongLongArrType_Type
+#define NPY_INT32_FMT NPY_LONGLONG_FMT
+#define NPY_UINT32_FMT NPY_ULONGLONG_FMT
+# endif
+# define NPY_MAX_LONGLONG NPY_MAX_INT32
+# define NPY_MIN_LONGLONG NPY_MIN_INT32
+# define NPY_MAX_ULONGLONG NPY_MAX_UINT32
+#elif NPY_BITSOF_LONGLONG == 64
+# ifndef NPY_INT64
+# define NPY_INT64 NPY_LONGLONG
+# define NPY_UINT64 NPY_ULONGLONG
+ typedef npy_longlong npy_int64;
+ typedef npy_ulonglong npy_uint64;
+# define PyInt64ScalarObject PyLongLongScalarObject
+# define PyInt64ArrType_Type PyLongLongArrType_Type
+# define PyUInt64ScalarObject PyULongLongScalarObject
+# define PyUInt64ArrType_Type PyULongLongArrType_Type
+#define NPY_INT64_FMT NPY_LONGLONG_FMT
+#define NPY_UINT64_FMT NPY_ULONGLONG_FMT
+# define MyPyLong_FromInt64 PyLong_FromLongLong
+# define MyPyLong_AsInt64 PyLong_AsLongLong
+# endif
+# define NPY_MAX_LONGLONG NPY_MAX_INT64
+# define NPY_MIN_LONGLONG NPY_MIN_INT64
+# define NPY_MAX_ULONGLONG NPY_MAX_UINT64
+#endif
+
+#if NPY_BITSOF_INT == 8
+#ifndef NPY_INT8
+#define NPY_INT8 NPY_INT
+#define NPY_UINT8 NPY_UINT
+ typedef int npy_int8;
+ typedef unsigned int npy_uint8;
+# define PyInt8ScalarObject PyIntScalarObject
+# define PyInt8ArrType_Type PyIntArrType_Type
+# define PyUInt8ScalarObject PyUIntScalarObject
+# define PyUInt8ArrType_Type PyUIntArrType_Type
+#define NPY_INT8_FMT NPY_INT_FMT
+#define NPY_UINT8_FMT NPY_UINT_FMT
+#endif
+#elif NPY_BITSOF_INT == 16
+#ifndef NPY_INT16
+#define NPY_INT16 NPY_INT
+#define NPY_UINT16 NPY_UINT
+ typedef int npy_int16;
+ typedef unsigned int npy_uint16;
+# define PyInt16ScalarObject PyIntScalarObject
+# define PyInt16ArrType_Type PyIntArrType_Type
+# define PyUInt16ScalarObject PyIntUScalarObject
+# define PyUInt16ArrType_Type PyIntUArrType_Type
+#define NPY_INT16_FMT NPY_INT_FMT
+#define NPY_UINT16_FMT NPY_UINT_FMT
+#endif
+#elif NPY_BITSOF_INT == 32
+#ifndef NPY_INT32
+#define NPY_INT32 NPY_INT
+#define NPY_UINT32 NPY_UINT
+ typedef int npy_int32;
+ typedef unsigned int npy_uint32;
+ typedef unsigned int npy_ucs4;
+# define PyInt32ScalarObject PyIntScalarObject
+# define PyInt32ArrType_Type PyIntArrType_Type
+# define PyUInt32ScalarObject PyUIntScalarObject
+# define PyUInt32ArrType_Type PyUIntArrType_Type
+#define NPY_INT32_FMT NPY_INT_FMT
+#define NPY_UINT32_FMT NPY_UINT_FMT
+#endif
+#elif NPY_BITSOF_INT == 64
+#ifndef NPY_INT64
+#define NPY_INT64 NPY_INT
+#define NPY_UINT64 NPY_UINT
+ typedef int npy_int64;
+ typedef unsigned int npy_uint64;
+# define PyInt64ScalarObject PyIntScalarObject
+# define PyInt64ArrType_Type PyIntArrType_Type
+# define PyUInt64ScalarObject PyUIntScalarObject
+# define PyUInt64ArrType_Type PyUIntArrType_Type
+#define NPY_INT64_FMT NPY_INT_FMT
+#define NPY_UINT64_FMT NPY_UINT_FMT
+# define MyPyLong_FromInt64 PyLong_FromLong
+# define MyPyLong_AsInt64 PyLong_AsLong
+#endif
+#endif
+
+#if NPY_BITSOF_SHORT == 8
+#ifndef NPY_INT8
+#define NPY_INT8 NPY_SHORT
+#define NPY_UINT8 NPY_USHORT
+ typedef short npy_int8;
+ typedef unsigned short npy_uint8;
+# define PyInt8ScalarObject PyShortScalarObject
+# define PyInt8ArrType_Type PyShortArrType_Type
+# define PyUInt8ScalarObject PyUShortScalarObject
+# define PyUInt8ArrType_Type PyUShortArrType_Type
+#define NPY_INT8_FMT NPY_SHORT_FMT
+#define NPY_UINT8_FMT NPY_USHORT_FMT
+#endif
+#elif NPY_BITSOF_SHORT == 16
+#ifndef NPY_INT16
+#define NPY_INT16 NPY_SHORT
+#define NPY_UINT16 NPY_USHORT
+ typedef short npy_int16;
+ typedef unsigned short npy_uint16;
+# define PyInt16ScalarObject PyShortScalarObject
+# define PyInt16ArrType_Type PyShortArrType_Type
+# define PyUInt16ScalarObject PyUShortScalarObject
+# define PyUInt16ArrType_Type PyUShortArrType_Type
+#define NPY_INT16_FMT NPY_SHORT_FMT
+#define NPY_UINT16_FMT NPY_USHORT_FMT
+#endif
+#elif NPY_BITSOF_SHORT == 32
+#ifndef NPY_INT32
+#define NPY_INT32 NPY_SHORT
+#define NPY_UINT32 NPY_USHORT
+ typedef short npy_int32;
+ typedef unsigned short npy_uint32;
+ typedef unsigned short npy_ucs4;
+# define PyInt32ScalarObject PyShortScalarObject
+# define PyInt32ArrType_Type PyShortArrType_Type
+# define PyUInt32ScalarObject PyUShortScalarObject
+# define PyUInt32ArrType_Type PyUShortArrType_Type
+#define NPY_INT32_FMT NPY_SHORT_FMT
+#define NPY_UINT32_FMT NPY_USHORT_FMT
+#endif
+#elif NPY_BITSOF_SHORT == 64
+#ifndef NPY_INT64
+#define NPY_INT64 NPY_SHORT
+#define NPY_UINT64 NPY_USHORT
+ typedef short npy_int64;
+ typedef unsigned short npy_uint64;
+# define PyInt64ScalarObject PyShortScalarObject
+# define PyInt64ArrType_Type PyShortArrType_Type
+# define PyUInt64ScalarObject PyUShortScalarObject
+# define PyUInt64ArrType_Type PyUShortArrType_Type
+#define NPY_INT64_FMT NPY_SHORT_FMT
+#define NPY_UINT64_FMT NPY_USHORT_FMT
+# define MyPyLong_FromInt64 PyLong_FromLong
+# define MyPyLong_AsInt64 PyLong_AsLong
+#endif
+#endif
+
+
+#if NPY_BITSOF_CHAR == 8
+#ifndef NPY_INT8
+#define NPY_INT8 NPY_BYTE
+#define NPY_UINT8 NPY_UBYTE
+ typedef signed char npy_int8;
+ typedef unsigned char npy_uint8;
+# define PyInt8ScalarObject PyByteScalarObject
+# define PyInt8ArrType_Type PyByteArrType_Type
+# define PyUInt8ScalarObject PyUByteScalarObject
+# define PyUInt8ArrType_Type PyUByteArrType_Type
+#define NPY_INT8_FMT NPY_BYTE_FMT
+#define NPY_UINT8_FMT NPY_UBYTE_FMT
+#endif
+#elif NPY_BITSOF_CHAR == 16
+#ifndef NPY_INT16
+#define NPY_INT16 NPY_BYTE
+#define NPY_UINT16 NPY_UBYTE
+ typedef signed char npy_int16;
+ typedef unsigned char npy_uint16;
+# define PyInt16ScalarObject PyByteScalarObject
+# define PyInt16ArrType_Type PyByteArrType_Type
+# define PyUInt16ScalarObject PyUByteScalarObject
+# define PyUInt16ArrType_Type PyUByteArrType_Type
+#define NPY_INT16_FMT NPY_BYTE_FMT
+#define NPY_UINT16_FMT NPY_UBYTE_FMT
+#endif
+#elif NPY_BITSOF_CHAR == 32
+#ifndef NPY_INT32
+#define NPY_INT32 NPY_BYTE
+#define NPY_UINT32 NPY_UBYTE
+ typedef signed char npy_int32;
+ typedef unsigned char npy_uint32;
+ typedef unsigned char npy_ucs4;
+# define PyInt32ScalarObject PyByteScalarObject
+# define PyInt32ArrType_Type PyByteArrType_Type
+# define PyUInt32ScalarObject PyUByteScalarObject
+# define PyUInt32ArrType_Type PyUByteArrType_Type
+#define NPY_INT32_FMT NPY_BYTE_FMT
+#define NPY_UINT32_FMT NPY_UBYTE_FMT
+#endif
+#elif NPY_BITSOF_CHAR == 64
+#ifndef NPY_INT64
+#define NPY_INT64 NPY_BYTE
+#define NPY_UINT64 NPY_UBYTE
+ typedef signed char npy_int64;
+ typedef unsigned char npy_uint64;
+# define PyInt64ScalarObject PyByteScalarObject
+# define PyInt64ArrType_Type PyByteArrType_Type
+# define PyUInt64ScalarObject PyUByteScalarObject
+# define PyUInt64ArrType_Type PyUByteArrType_Type
+#define NPY_INT64_FMT NPY_BYTE_FMT
+#define NPY_UINT64_FMT NPY_UBYTE_FMT
+# define MyPyLong_FromInt64 PyLong_FromLong
+# define MyPyLong_AsInt64 PyLong_AsLong
+#endif
+#elif NPY_BITSOF_CHAR == 128
+#endif
+
+
+
+#if NPY_BITSOF_DOUBLE == 32
+#ifndef NPY_FLOAT32
+#define NPY_FLOAT32 NPY_DOUBLE
+#define NPY_COMPLEX64 NPY_CDOUBLE
+ typedef double npy_float32;
+ typedef npy_cdouble npy_complex64;
+# define PyFloat32ScalarObject PyDoubleScalarObject
+# define PyComplex64ScalarObject PyCDoubleScalarObject
+# define PyFloat32ArrType_Type PyDoubleArrType_Type
+# define PyComplex64ArrType_Type PyCDoubleArrType_Type
+#define NPY_FLOAT32_FMT NPY_DOUBLE_FMT
+#define NPY_COMPLEX64_FMT NPY_CDOUBLE_FMT
+#endif
+#elif NPY_BITSOF_DOUBLE == 64
+#ifndef NPY_FLOAT64
+#define NPY_FLOAT64 NPY_DOUBLE
+#define NPY_COMPLEX128 NPY_CDOUBLE
+ typedef double npy_float64;
+ typedef npy_cdouble npy_complex128;
+# define PyFloat64ScalarObject PyDoubleScalarObject
+# define PyComplex128ScalarObject PyCDoubleScalarObject
+# define PyFloat64ArrType_Type PyDoubleArrType_Type
+# define PyComplex128ArrType_Type PyCDoubleArrType_Type
+#define NPY_FLOAT64_FMT NPY_DOUBLE_FMT
+#define NPY_COMPLEX128_FMT NPY_CDOUBLE_FMT
+#endif
+#elif NPY_BITSOF_DOUBLE == 80
+#ifndef NPY_FLOAT80
+#define NPY_FLOAT80 NPY_DOUBLE
+#define NPY_COMPLEX160 NPY_CDOUBLE
+ typedef double npy_float80;
+ typedef npy_cdouble npy_complex160;
+# define PyFloat80ScalarObject PyDoubleScalarObject
+# define PyComplex160ScalarObject PyCDoubleScalarObject
+# define PyFloat80ArrType_Type PyDoubleArrType_Type
+# define PyComplex160ArrType_Type PyCDoubleArrType_Type
+#define NPY_FLOAT80_FMT NPY_DOUBLE_FMT
+#define NPY_COMPLEX160_FMT NPY_CDOUBLE_FMT
+#endif
+#elif NPY_BITSOF_DOUBLE == 96
+#ifndef NPY_FLOAT96
+#define NPY_FLOAT96 NPY_DOUBLE
+#define NPY_COMPLEX192 NPY_CDOUBLE
+ typedef double npy_float96;
+ typedef npy_cdouble npy_complex192;
+# define PyFloat96ScalarObject PyDoubleScalarObject
+# define PyComplex192ScalarObject PyCDoubleScalarObject
+# define PyFloat96ArrType_Type PyDoubleArrType_Type
+# define PyComplex192ArrType_Type PyCDoubleArrType_Type
+#define NPY_FLOAT96_FMT NPY_DOUBLE_FMT
+#define NPY_COMPLEX192_FMT NPY_CDOUBLE_FMT
+#endif
+#elif NPY_BITSOF_DOUBLE == 128
+#ifndef NPY_FLOAT128
+#define NPY_FLOAT128 NPY_DOUBLE
+#define NPY_COMPLEX256 NPY_CDOUBLE
+ typedef double npy_float128;
+ typedef npy_cdouble npy_complex256;
+# define PyFloat128ScalarObject PyDoubleScalarObject
+# define PyComplex256ScalarObject PyCDoubleScalarObject
+# define PyFloat128ArrType_Type PyDoubleArrType_Type
+# define PyComplex256ArrType_Type PyCDoubleArrType_Type
+#define NPY_FLOAT128_FMT NPY_DOUBLE_FMT
+#define NPY_COMPLEX256_FMT NPY_CDOUBLE_FMT
+#endif
+#endif
+
+
+
+#if NPY_BITSOF_FLOAT == 32
+#ifndef NPY_FLOAT32
+#define NPY_FLOAT32 NPY_FLOAT
+#define NPY_COMPLEX64 NPY_CFLOAT
+ typedef float npy_float32;
+ typedef npy_cfloat npy_complex64;
+# define PyFloat32ScalarObject PyFloatScalarObject
+# define PyComplex64ScalarObject PyCFloatScalarObject
+# define PyFloat32ArrType_Type PyFloatArrType_Type
+# define PyComplex64ArrType_Type PyCFloatArrType_Type
+#define NPY_FLOAT32_FMT NPY_FLOAT_FMT
+#define NPY_COMPLEX64_FMT NPY_CFLOAT_FMT
+#endif
+#elif NPY_BITSOF_FLOAT == 64
+#ifndef NPY_FLOAT64
+#define NPY_FLOAT64 NPY_FLOAT
+#define NPY_COMPLEX128 NPY_CFLOAT
+ typedef float npy_float64;
+ typedef npy_cfloat npy_complex128;
+# define PyFloat64ScalarObject PyFloatScalarObject
+# define PyComplex128ScalarObject PyCFloatScalarObject
+# define PyFloat64ArrType_Type PyFloatArrType_Type
+# define PyComplex128ArrType_Type PyCFloatArrType_Type
+#define NPY_FLOAT64_FMT NPY_FLOAT_FMT
+#define NPY_COMPLEX128_FMT NPY_CFLOAT_FMT
+#endif
+#elif NPY_BITSOF_FLOAT == 80
+#ifndef NPY_FLOAT80
+#define NPY_FLOAT80 NPY_FLOAT
+#define NPY_COMPLEX160 NPY_CFLOAT
+ typedef float npy_float80;
+ typedef npy_cfloat npy_complex160;
+# define PyFloat80ScalarObject PyFloatScalarObject
+# define PyComplex160ScalarObject PyCFloatScalarObject
+# define PyFloat80ArrType_Type PyFloatArrType_Type
+# define PyComplex160ArrType_Type PyCFloatArrType_Type
+#define NPY_FLOAT80_FMT NPY_FLOAT_FMT
+#define NPY_COMPLEX160_FMT NPY_CFLOAT_FMT
+#endif
+#elif NPY_BITSOF_FLOAT == 96
+#ifndef NPY_FLOAT96
+#define NPY_FLOAT96 NPY_FLOAT
+#define NPY_COMPLEX192 NPY_CFLOAT
+ typedef float npy_float96;
+ typedef npy_cfloat npy_complex192;
+# define PyFloat96ScalarObject PyFloatScalarObject
+# define PyComplex192ScalarObject PyCFloatScalarObject
+# define PyFloat96ArrType_Type PyFloatArrType_Type
+# define PyComplex192ArrType_Type PyCFloatArrType_Type
+#define NPY_FLOAT96_FMT NPY_FLOAT_FMT
+#define NPY_COMPLEX192_FMT NPY_CFLOAT_FMT
+#endif
+#elif NPY_BITSOF_FLOAT == 128
+#ifndef NPY_FLOAT128
+#define NPY_FLOAT128 NPY_FLOAT
+#define NPY_COMPLEX256 NPY_CFLOAT
+ typedef float npy_float128;
+ typedef npy_cfloat npy_complex256;
+# define PyFloat128ScalarObject PyFloatScalarObject
+# define PyComplex256ScalarObject PyCFloatScalarObject
+# define PyFloat128ArrType_Type PyFloatArrType_Type
+# define PyComplex256ArrType_Type PyCFloatArrType_Type
+#define NPY_FLOAT128_FMT NPY_FLOAT_FMT
+#define NPY_COMPLEX256_FMT NPY_CFLOAT_FMT
+#endif
+#endif
+
+/* half/float16 isn't a floating-point type in C */
+#define NPY_FLOAT16 NPY_HALF
+typedef npy_uint16 npy_half;
+typedef npy_half npy_float16;
+
+#if NPY_BITSOF_LONGDOUBLE == 32
+#ifndef NPY_FLOAT32
+#define NPY_FLOAT32 NPY_LONGDOUBLE
+#define NPY_COMPLEX64 NPY_CLONGDOUBLE
+ typedef npy_longdouble npy_float32;
+ typedef npy_clongdouble npy_complex64;
+# define PyFloat32ScalarObject PyLongDoubleScalarObject
+# define PyComplex64ScalarObject PyCLongDoubleScalarObject
+# define PyFloat32ArrType_Type PyLongDoubleArrType_Type
+# define PyComplex64ArrType_Type PyCLongDoubleArrType_Type
+#define NPY_FLOAT32_FMT NPY_LONGDOUBLE_FMT
+#define NPY_COMPLEX64_FMT NPY_CLONGDOUBLE_FMT
+#endif
+#elif NPY_BITSOF_LONGDOUBLE == 64
+#ifndef NPY_FLOAT64
+#define NPY_FLOAT64 NPY_LONGDOUBLE
+#define NPY_COMPLEX128 NPY_CLONGDOUBLE
+ typedef npy_longdouble npy_float64;
+ typedef npy_clongdouble npy_complex128;
+# define PyFloat64ScalarObject PyLongDoubleScalarObject
+# define PyComplex128ScalarObject PyCLongDoubleScalarObject
+# define PyFloat64ArrType_Type PyLongDoubleArrType_Type
+# define PyComplex128ArrType_Type PyCLongDoubleArrType_Type
+#define NPY_FLOAT64_FMT NPY_LONGDOUBLE_FMT
+#define NPY_COMPLEX128_FMT NPY_CLONGDOUBLE_FMT
+#endif
+#elif NPY_BITSOF_LONGDOUBLE == 80
+#ifndef NPY_FLOAT80
+#define NPY_FLOAT80 NPY_LONGDOUBLE
+#define NPY_COMPLEX160 NPY_CLONGDOUBLE
+ typedef npy_longdouble npy_float80;
+ typedef npy_clongdouble npy_complex160;
+# define PyFloat80ScalarObject PyLongDoubleScalarObject
+# define PyComplex160ScalarObject PyCLongDoubleScalarObject
+# define PyFloat80ArrType_Type PyLongDoubleArrType_Type
+# define PyComplex160ArrType_Type PyCLongDoubleArrType_Type
+#define NPY_FLOAT80_FMT NPY_LONGDOUBLE_FMT
+#define NPY_COMPLEX160_FMT NPY_CLONGDOUBLE_FMT
+#endif
+#elif NPY_BITSOF_LONGDOUBLE == 96
+#ifndef NPY_FLOAT96
+#define NPY_FLOAT96 NPY_LONGDOUBLE
+#define NPY_COMPLEX192 NPY_CLONGDOUBLE
+ typedef npy_longdouble npy_float96;
+ typedef npy_clongdouble npy_complex192;
+# define PyFloat96ScalarObject PyLongDoubleScalarObject
+# define PyComplex192ScalarObject PyCLongDoubleScalarObject
+# define PyFloat96ArrType_Type PyLongDoubleArrType_Type
+# define PyComplex192ArrType_Type PyCLongDoubleArrType_Type
+#define NPY_FLOAT96_FMT NPY_LONGDOUBLE_FMT
+#define NPY_COMPLEX192_FMT NPY_CLONGDOUBLE_FMT
+#endif
+#elif NPY_BITSOF_LONGDOUBLE == 128
+#ifndef NPY_FLOAT128
+#define NPY_FLOAT128 NPY_LONGDOUBLE
+#define NPY_COMPLEX256 NPY_CLONGDOUBLE
+ typedef npy_longdouble npy_float128;
+ typedef npy_clongdouble npy_complex256;
+# define PyFloat128ScalarObject PyLongDoubleScalarObject
+# define PyComplex256ScalarObject PyCLongDoubleScalarObject
+# define PyFloat128ArrType_Type PyLongDoubleArrType_Type
+# define PyComplex256ArrType_Type PyCLongDoubleArrType_Type
+#define NPY_FLOAT128_FMT NPY_LONGDOUBLE_FMT
+#define NPY_COMPLEX256_FMT NPY_CLONGDOUBLE_FMT
+#endif
+#endif
+
+/* datetime typedefs */
+typedef npy_int64 npy_timedelta;
+typedef npy_int64 npy_datetime;
+#define NPY_DATETIME_FMT NPY_INT64_FMT
+#define NPY_TIMEDELTA_FMT NPY_INT64_FMT
+
+/* End of typedefs for numarray style bit-width names */
+
+#endif /* NUMPY_CORE_INCLUDE_NUMPY_NPY_COMMON_H_ */
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/include/numpy/npy_cpu.h b/python/user_packages/Python313/site-packages/numpy/_core/include/numpy/npy_cpu.h
new file mode 100644
index 0000000000000000000000000000000000000000..8fe62bde9b3dfa43b4408ff7241aed33ecc39367
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/include/numpy/npy_cpu.h
@@ -0,0 +1,126 @@
+/*
+ * This set (target) cpu specific macros:
+ * - Possible values:
+ * NPY_CPU_X86
+ * NPY_CPU_AMD64
+ * NPY_CPU_PPC
+ * NPY_CPU_PPC64
+ * NPY_CPU_PPC64LE
+ * NPY_CPU_SPARC
+ * NPY_CPU_S390
+ * NPY_CPU_IA64
+ * NPY_CPU_HPPA
+ * NPY_CPU_ALPHA
+ * NPY_CPU_ARMEL
+ * NPY_CPU_ARMEB
+ * NPY_CPU_SH_LE
+ * NPY_CPU_SH_BE
+ * NPY_CPU_ARCEL
+ * NPY_CPU_ARCEB
+ * NPY_CPU_RISCV64
+ * NPY_CPU_RISCV32
+ * NPY_CPU_LOONGARCH
+ * NPY_CPU_SW_64
+ * NPY_CPU_WASM
+ */
+#ifndef NUMPY_CORE_INCLUDE_NUMPY_NPY_CPU_H_
+#define NUMPY_CORE_INCLUDE_NUMPY_NPY_CPU_H_
+
+#include "numpyconfig.h"
+
+#if defined( __i386__ ) || defined(i386) || defined(_M_IX86)
+ /*
+ * __i386__ is defined by gcc and Intel compiler on Linux,
+ * _M_IX86 by VS compiler,
+ * i386 by Sun compilers on opensolaris at least
+ */
+ #define NPY_CPU_X86
+#elif defined(__x86_64__) || defined(__amd64__) || defined(__x86_64) || defined(_M_AMD64)
+ /*
+ * both __x86_64__ and __amd64__ are defined by gcc
+ * __x86_64 defined by sun compiler on opensolaris at least
+ * _M_AMD64 defined by MS compiler
+ */
+ #define NPY_CPU_AMD64
+#elif defined(__powerpc64__) && defined(__LITTLE_ENDIAN__)
+ #define NPY_CPU_PPC64LE
+#elif defined(__powerpc64__) && defined(__BIG_ENDIAN__)
+ #define NPY_CPU_PPC64
+#elif defined(__ppc__) || defined(__powerpc__) || defined(_ARCH_PPC)
+ /*
+ * __ppc__ is defined by gcc, I remember having seen __powerpc__ once,
+ * but can't find it ATM
+ * _ARCH_PPC is used by at least gcc on AIX
+ * As __powerpc__ and _ARCH_PPC are also defined by PPC64 check
+ * for those specifically first before defaulting to ppc
+ */
+ #define NPY_CPU_PPC
+#elif defined(__sparc__) || defined(__sparc)
+ /* __sparc__ is defined by gcc and Forte (e.g. Sun) compilers */
+ #define NPY_CPU_SPARC
+#elif defined(__s390__)
+ #define NPY_CPU_S390
+#elif defined(__ia64)
+ #define NPY_CPU_IA64
+#elif defined(__hppa)
+ #define NPY_CPU_HPPA
+#elif defined(__alpha__)
+ #define NPY_CPU_ALPHA
+#elif defined(__arm__) || defined(__aarch64__) || defined(_M_ARM64)
+ /* _M_ARM64 is defined in MSVC for ARM64 compilation on Windows */
+ #if defined(__ARMEB__) || defined(__AARCH64EB__)
+ #if defined(__ARM_32BIT_STATE)
+ #define NPY_CPU_ARMEB_AARCH32
+ #elif defined(__ARM_64BIT_STATE)
+ #define NPY_CPU_ARMEB_AARCH64
+ #else
+ #define NPY_CPU_ARMEB
+ #endif
+ #elif defined(__ARMEL__) || defined(__AARCH64EL__) || defined(_M_ARM64)
+ #if defined(__ARM_32BIT_STATE)
+ #define NPY_CPU_ARMEL_AARCH32
+ #elif defined(__ARM_64BIT_STATE) || defined(_M_ARM64) || defined(__AARCH64EL__)
+ #define NPY_CPU_ARMEL_AARCH64
+ #else
+ #define NPY_CPU_ARMEL
+ #endif
+ #else
+ # error Unknown ARM CPU, please report this to numpy maintainers with \
+ information about your platform (OS, CPU and compiler)
+ #endif
+#elif defined(__sh__) && defined(__LITTLE_ENDIAN__)
+ #define NPY_CPU_SH_LE
+#elif defined(__sh__) && defined(__BIG_ENDIAN__)
+ #define NPY_CPU_SH_BE
+#elif defined(__MIPSEL__)
+ #define NPY_CPU_MIPSEL
+#elif defined(__MIPSEB__)
+ #define NPY_CPU_MIPSEB
+#elif defined(__or1k__)
+ #define NPY_CPU_OR1K
+#elif defined(__mc68000__)
+ #define NPY_CPU_M68K
+#elif defined(__arc__) && defined(__LITTLE_ENDIAN__)
+ #define NPY_CPU_ARCEL
+#elif defined(__arc__) && defined(__BIG_ENDIAN__)
+ #define NPY_CPU_ARCEB
+#elif defined(__riscv)
+ #if __riscv_xlen == 64
+ #define NPY_CPU_RISCV64
+ #elif __riscv_xlen == 32
+ #define NPY_CPU_RISCV32
+ #endif
+#elif defined(__loongarch_lp64)
+ #define NPY_CPU_LOONGARCH64
+#elif defined(__sw_64__)
+ #define NPY_CPU_SW_64
+#elif defined(__EMSCRIPTEN__) || defined(__wasm__)
+ /* __EMSCRIPTEN__ is defined by emscripten: an LLVM-to-Web compiler */
+ /* __wasm__ is defined by clang when targeting wasm */
+ #define NPY_CPU_WASM
+#else
+ #error Unknown CPU, please report this to numpy maintainers with \
+ information about your platform (OS, CPU and compiler)
+#endif
+
+#endif /* NUMPY_CORE_INCLUDE_NUMPY_NPY_CPU_H_ */
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/include/numpy/npy_endian.h b/python/user_packages/Python313/site-packages/numpy/_core/include/numpy/npy_endian.h
new file mode 100644
index 0000000000000000000000000000000000000000..6fdfa6473a899ee48e609e67a8932992c146a035
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/include/numpy/npy_endian.h
@@ -0,0 +1,79 @@
+#ifndef NUMPY_CORE_INCLUDE_NUMPY_NPY_ENDIAN_H_
+#define NUMPY_CORE_INCLUDE_NUMPY_NPY_ENDIAN_H_
+
+/*
+ * NPY_BYTE_ORDER is set to the same value as BYTE_ORDER set by glibc in
+ * endian.h
+ */
+
+#if defined(NPY_HAVE_ENDIAN_H) || defined(NPY_HAVE_SYS_ENDIAN_H)
+ /* Use endian.h if available */
+
+ #if defined(NPY_HAVE_ENDIAN_H)
+ #include
+ #elif defined(NPY_HAVE_SYS_ENDIAN_H)
+ #include
+ #endif
+
+ #if defined(BYTE_ORDER) && defined(BIG_ENDIAN) && defined(LITTLE_ENDIAN)
+ #define NPY_BYTE_ORDER BYTE_ORDER
+ #define NPY_LITTLE_ENDIAN LITTLE_ENDIAN
+ #define NPY_BIG_ENDIAN BIG_ENDIAN
+ #elif defined(_BYTE_ORDER) && defined(_BIG_ENDIAN) && defined(_LITTLE_ENDIAN)
+ #define NPY_BYTE_ORDER _BYTE_ORDER
+ #define NPY_LITTLE_ENDIAN _LITTLE_ENDIAN
+ #define NPY_BIG_ENDIAN _BIG_ENDIAN
+ #elif defined(__BYTE_ORDER) && defined(__BIG_ENDIAN) && defined(__LITTLE_ENDIAN)
+ #define NPY_BYTE_ORDER __BYTE_ORDER
+ #define NPY_LITTLE_ENDIAN __LITTLE_ENDIAN
+ #define NPY_BIG_ENDIAN __BIG_ENDIAN
+ #endif
+#endif
+
+#ifndef NPY_BYTE_ORDER
+ /* Set endianness info using target CPU */
+ #include "npy_cpu.h"
+
+ #define NPY_LITTLE_ENDIAN 1234
+ #define NPY_BIG_ENDIAN 4321
+
+ #if defined(NPY_CPU_X86) \
+ || defined(NPY_CPU_AMD64) \
+ || defined(NPY_CPU_IA64) \
+ || defined(NPY_CPU_ALPHA) \
+ || defined(NPY_CPU_ARMEL) \
+ || defined(NPY_CPU_ARMEL_AARCH32) \
+ || defined(NPY_CPU_ARMEL_AARCH64) \
+ || defined(NPY_CPU_SH_LE) \
+ || defined(NPY_CPU_MIPSEL) \
+ || defined(NPY_CPU_PPC64LE) \
+ || defined(NPY_CPU_ARCEL) \
+ || defined(NPY_CPU_RISCV64) \
+ || defined(NPY_CPU_RISCV32) \
+ || defined(NPY_CPU_LOONGARCH) \
+ || defined(NPY_CPU_SW_64) \
+ || defined(NPY_CPU_WASM)
+ #define NPY_BYTE_ORDER NPY_LITTLE_ENDIAN
+
+ #elif defined(NPY_CPU_PPC) \
+ || defined(NPY_CPU_SPARC) \
+ || defined(NPY_CPU_S390) \
+ || defined(NPY_CPU_HPPA) \
+ || defined(NPY_CPU_PPC64) \
+ || defined(NPY_CPU_ARMEB) \
+ || defined(NPY_CPU_ARMEB_AARCH32) \
+ || defined(NPY_CPU_ARMEB_AARCH64) \
+ || defined(NPY_CPU_SH_BE) \
+ || defined(NPY_CPU_MIPSEB) \
+ || defined(NPY_CPU_OR1K) \
+ || defined(NPY_CPU_M68K) \
+ || defined(NPY_CPU_ARCEB)
+ #define NPY_BYTE_ORDER NPY_BIG_ENDIAN
+
+ #else
+ #error Unknown CPU: can not set endianness
+ #endif
+
+#endif
+
+#endif /* NUMPY_CORE_INCLUDE_NUMPY_NPY_ENDIAN_H_ */
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/include/numpy/npy_math.h b/python/user_packages/Python313/site-packages/numpy/_core/include/numpy/npy_math.h
new file mode 100644
index 0000000000000000000000000000000000000000..a69ffd00538168c33c83abe9ddc83536f156f591
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/include/numpy/npy_math.h
@@ -0,0 +1,602 @@
+#ifndef NUMPY_CORE_INCLUDE_NUMPY_NPY_MATH_H_
+#define NUMPY_CORE_INCLUDE_NUMPY_NPY_MATH_H_
+
+#include
+
+#include
+
+/* By adding static inline specifiers to npy_math function definitions when
+ appropriate, compiler is given the opportunity to optimize */
+#if NPY_INLINE_MATH
+#define NPY_INPLACE static inline
+#else
+#define NPY_INPLACE
+#endif
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define PyArray_MAX(a,b) (((a)>(b))?(a):(b))
+#define PyArray_MIN(a,b) (((a)<(b))?(a):(b))
+
+/*
+ * NAN and INFINITY like macros (same behavior as glibc for NAN, same as C99
+ * for INFINITY)
+ *
+ * XXX: I should test whether INFINITY and NAN are available on the platform
+ */
+static inline float __npy_inff(void)
+{
+ const union { npy_uint32 __i; float __f;} __bint = {0x7f800000UL};
+ return __bint.__f;
+}
+
+static inline float __npy_nanf(void)
+{
+ const union { npy_uint32 __i; float __f;} __bint = {0x7fc00000UL};
+ return __bint.__f;
+}
+
+static inline float __npy_pzerof(void)
+{
+ const union { npy_uint32 __i; float __f;} __bint = {0x00000000UL};
+ return __bint.__f;
+}
+
+static inline float __npy_nzerof(void)
+{
+ const union { npy_uint32 __i; float __f;} __bint = {0x80000000UL};
+ return __bint.__f;
+}
+
+#define NPY_INFINITYF __npy_inff()
+#define NPY_NANF __npy_nanf()
+#define NPY_PZEROF __npy_pzerof()
+#define NPY_NZEROF __npy_nzerof()
+
+#define NPY_INFINITY ((npy_double)NPY_INFINITYF)
+#define NPY_NAN ((npy_double)NPY_NANF)
+#define NPY_PZERO ((npy_double)NPY_PZEROF)
+#define NPY_NZERO ((npy_double)NPY_NZEROF)
+
+#define NPY_INFINITYL ((npy_longdouble)NPY_INFINITYF)
+#define NPY_NANL ((npy_longdouble)NPY_NANF)
+#define NPY_PZEROL ((npy_longdouble)NPY_PZEROF)
+#define NPY_NZEROL ((npy_longdouble)NPY_NZEROF)
+
+/*
+ * Useful constants
+ */
+#define NPY_E 2.718281828459045235360287471352662498 /* e */
+#define NPY_LOG2E 1.442695040888963407359924681001892137 /* log_2 e */
+#define NPY_LOG10E 0.434294481903251827651128918916605082 /* log_10 e */
+#define NPY_LOGE2 0.693147180559945309417232121458176568 /* log_e 2 */
+#define NPY_LOGE10 2.302585092994045684017991454684364208 /* log_e 10 */
+#define NPY_PI 3.141592653589793238462643383279502884 /* pi */
+#define NPY_PI_2 1.570796326794896619231321691639751442 /* pi/2 */
+#define NPY_PI_4 0.785398163397448309615660845819875721 /* pi/4 */
+#define NPY_1_PI 0.318309886183790671537767526745028724 /* 1/pi */
+#define NPY_2_PI 0.636619772367581343075535053490057448 /* 2/pi */
+#define NPY_EULER 0.577215664901532860606512090082402431 /* Euler constant */
+#define NPY_SQRT2 1.414213562373095048801688724209698079 /* sqrt(2) */
+#define NPY_SQRT1_2 0.707106781186547524400844362104849039 /* 1/sqrt(2) */
+
+#define NPY_Ef 2.718281828459045235360287471352662498F /* e */
+#define NPY_LOG2Ef 1.442695040888963407359924681001892137F /* log_2 e */
+#define NPY_LOG10Ef 0.434294481903251827651128918916605082F /* log_10 e */
+#define NPY_LOGE2f 0.693147180559945309417232121458176568F /* log_e 2 */
+#define NPY_LOGE10f 2.302585092994045684017991454684364208F /* log_e 10 */
+#define NPY_PIf 3.141592653589793238462643383279502884F /* pi */
+#define NPY_PI_2f 1.570796326794896619231321691639751442F /* pi/2 */
+#define NPY_PI_4f 0.785398163397448309615660845819875721F /* pi/4 */
+#define NPY_1_PIf 0.318309886183790671537767526745028724F /* 1/pi */
+#define NPY_2_PIf 0.636619772367581343075535053490057448F /* 2/pi */
+#define NPY_EULERf 0.577215664901532860606512090082402431F /* Euler constant */
+#define NPY_SQRT2f 1.414213562373095048801688724209698079F /* sqrt(2) */
+#define NPY_SQRT1_2f 0.707106781186547524400844362104849039F /* 1/sqrt(2) */
+
+#define NPY_El 2.718281828459045235360287471352662498L /* e */
+#define NPY_LOG2El 1.442695040888963407359924681001892137L /* log_2 e */
+#define NPY_LOG10El 0.434294481903251827651128918916605082L /* log_10 e */
+#define NPY_LOGE2l 0.693147180559945309417232121458176568L /* log_e 2 */
+#define NPY_LOGE10l 2.302585092994045684017991454684364208L /* log_e 10 */
+#define NPY_PIl 3.141592653589793238462643383279502884L /* pi */
+#define NPY_PI_2l 1.570796326794896619231321691639751442L /* pi/2 */
+#define NPY_PI_4l 0.785398163397448309615660845819875721L /* pi/4 */
+#define NPY_1_PIl 0.318309886183790671537767526745028724L /* 1/pi */
+#define NPY_2_PIl 0.636619772367581343075535053490057448L /* 2/pi */
+#define NPY_EULERl 0.577215664901532860606512090082402431L /* Euler constant */
+#define NPY_SQRT2l 1.414213562373095048801688724209698079L /* sqrt(2) */
+#define NPY_SQRT1_2l 0.707106781186547524400844362104849039L /* 1/sqrt(2) */
+
+/*
+ * Integer functions.
+ */
+NPY_INPLACE npy_uint npy_gcdu(npy_uint a, npy_uint b);
+NPY_INPLACE npy_uint npy_lcmu(npy_uint a, npy_uint b);
+NPY_INPLACE npy_ulong npy_gcdul(npy_ulong a, npy_ulong b);
+NPY_INPLACE npy_ulong npy_lcmul(npy_ulong a, npy_ulong b);
+NPY_INPLACE npy_ulonglong npy_gcdull(npy_ulonglong a, npy_ulonglong b);
+NPY_INPLACE npy_ulonglong npy_lcmull(npy_ulonglong a, npy_ulonglong b);
+
+NPY_INPLACE npy_int npy_gcd(npy_int a, npy_int b);
+NPY_INPLACE npy_int npy_lcm(npy_int a, npy_int b);
+NPY_INPLACE npy_long npy_gcdl(npy_long a, npy_long b);
+NPY_INPLACE npy_long npy_lcml(npy_long a, npy_long b);
+NPY_INPLACE npy_longlong npy_gcdll(npy_longlong a, npy_longlong b);
+NPY_INPLACE npy_longlong npy_lcmll(npy_longlong a, npy_longlong b);
+
+NPY_INPLACE npy_ubyte npy_rshiftuhh(npy_ubyte a, npy_ubyte b);
+NPY_INPLACE npy_ubyte npy_lshiftuhh(npy_ubyte a, npy_ubyte b);
+NPY_INPLACE npy_ushort npy_rshiftuh(npy_ushort a, npy_ushort b);
+NPY_INPLACE npy_ushort npy_lshiftuh(npy_ushort a, npy_ushort b);
+NPY_INPLACE npy_uint npy_rshiftu(npy_uint a, npy_uint b);
+NPY_INPLACE npy_uint npy_lshiftu(npy_uint a, npy_uint b);
+NPY_INPLACE npy_ulong npy_rshiftul(npy_ulong a, npy_ulong b);
+NPY_INPLACE npy_ulong npy_lshiftul(npy_ulong a, npy_ulong b);
+NPY_INPLACE npy_ulonglong npy_rshiftull(npy_ulonglong a, npy_ulonglong b);
+NPY_INPLACE npy_ulonglong npy_lshiftull(npy_ulonglong a, npy_ulonglong b);
+
+NPY_INPLACE npy_byte npy_rshifthh(npy_byte a, npy_byte b);
+NPY_INPLACE npy_byte npy_lshifthh(npy_byte a, npy_byte b);
+NPY_INPLACE npy_short npy_rshifth(npy_short a, npy_short b);
+NPY_INPLACE npy_short npy_lshifth(npy_short a, npy_short b);
+NPY_INPLACE npy_int npy_rshift(npy_int a, npy_int b);
+NPY_INPLACE npy_int npy_lshift(npy_int a, npy_int b);
+NPY_INPLACE npy_long npy_rshiftl(npy_long a, npy_long b);
+NPY_INPLACE npy_long npy_lshiftl(npy_long a, npy_long b);
+NPY_INPLACE npy_longlong npy_rshiftll(npy_longlong a, npy_longlong b);
+NPY_INPLACE npy_longlong npy_lshiftll(npy_longlong a, npy_longlong b);
+
+NPY_INPLACE uint8_t npy_popcountuhh(npy_ubyte a);
+NPY_INPLACE uint8_t npy_popcountuh(npy_ushort a);
+NPY_INPLACE uint8_t npy_popcountu(npy_uint a);
+NPY_INPLACE uint8_t npy_popcountul(npy_ulong a);
+NPY_INPLACE uint8_t npy_popcountull(npy_ulonglong a);
+NPY_INPLACE uint8_t npy_popcounthh(npy_byte a);
+NPY_INPLACE uint8_t npy_popcounth(npy_short a);
+NPY_INPLACE uint8_t npy_popcount(npy_int a);
+NPY_INPLACE uint8_t npy_popcountl(npy_long a);
+NPY_INPLACE uint8_t npy_popcountll(npy_longlong a);
+
+/*
+ * C99 double math funcs that need fixups or are blocklist-able
+ */
+NPY_INPLACE double npy_sin(double x);
+NPY_INPLACE double npy_cos(double x);
+NPY_INPLACE double npy_tan(double x);
+NPY_INPLACE double npy_hypot(double x, double y);
+NPY_INPLACE double npy_log2(double x);
+NPY_INPLACE double npy_atan2(double x, double y);
+
+/* Mandatory C99 double math funcs, no blocklisting or fixups */
+/* defined for legacy reasons, should be deprecated at some point */
+#define npy_sinh sinh
+#define npy_cosh cosh
+#define npy_tanh tanh
+#define npy_asin asin
+#define npy_acos acos
+#define npy_atan atan
+#define npy_log log
+#define npy_log10 log10
+#define npy_cbrt cbrt
+#define npy_fabs fabs
+#define npy_ceil ceil
+#define npy_fmod fmod
+#define npy_floor floor
+#define npy_expm1 expm1
+#define npy_log1p log1p
+#define npy_acosh acosh
+#define npy_asinh asinh
+#define npy_atanh atanh
+#define npy_rint rint
+#define npy_trunc trunc
+#define npy_exp2 exp2
+#define npy_frexp frexp
+#define npy_ldexp ldexp
+#define npy_copysign copysign
+#define npy_exp exp
+#define npy_sqrt sqrt
+#define npy_pow pow
+#define npy_modf modf
+#define npy_nextafter nextafter
+
+double npy_spacing(double x);
+
+/*
+ * IEEE 754 fpu handling
+ */
+
+/* use builtins to avoid function calls in tight loops
+ * only available if npy_config.h is available (= numpys own build) */
+#ifdef HAVE___BUILTIN_ISNAN
+ #define npy_isnan(x) __builtin_isnan(x)
+#else
+ #define npy_isnan(x) isnan(x)
+#endif
+
+
+/* only available if npy_config.h is available (= numpys own build) */
+#ifdef HAVE___BUILTIN_ISFINITE
+ #define npy_isfinite(x) __builtin_isfinite(x)
+#else
+ #define npy_isfinite(x) isfinite((x))
+#endif
+
+/* only available if npy_config.h is available (= numpys own build) */
+#ifdef HAVE___BUILTIN_ISINF
+ #define npy_isinf(x) __builtin_isinf(x)
+#else
+ #define npy_isinf(x) isinf((x))
+#endif
+
+#define npy_signbit(x) signbit((x))
+
+/*
+ * float C99 math funcs that need fixups or are blocklist-able
+ */
+NPY_INPLACE float npy_sinf(float x);
+NPY_INPLACE float npy_cosf(float x);
+NPY_INPLACE float npy_tanf(float x);
+NPY_INPLACE float npy_expf(float x);
+NPY_INPLACE float npy_sqrtf(float x);
+NPY_INPLACE float npy_hypotf(float x, float y);
+NPY_INPLACE float npy_log2f(float x);
+NPY_INPLACE float npy_atan2f(float x, float y);
+NPY_INPLACE float npy_powf(float x, float y);
+NPY_INPLACE float npy_modff(float x, float* y);
+
+/* Mandatory C99 float math funcs, no blocklisting or fixups */
+/* defined for legacy reasons, should be deprecated at some point */
+
+#define npy_sinhf sinhf
+#define npy_coshf coshf
+#define npy_tanhf tanhf
+#define npy_asinf asinf
+#define npy_acosf acosf
+#define npy_atanf atanf
+#define npy_logf logf
+#define npy_log10f log10f
+#define npy_cbrtf cbrtf
+#define npy_fabsf fabsf
+#define npy_ceilf ceilf
+#define npy_fmodf fmodf
+#define npy_floorf floorf
+#define npy_expm1f expm1f
+#define npy_log1pf log1pf
+#define npy_asinhf asinhf
+#define npy_acoshf acoshf
+#define npy_atanhf atanhf
+#define npy_rintf rintf
+#define npy_truncf truncf
+#define npy_exp2f exp2f
+#define npy_frexpf frexpf
+#define npy_ldexpf ldexpf
+#define npy_copysignf copysignf
+#define npy_nextafterf nextafterf
+
+float npy_spacingf(float x);
+
+/*
+ * long double C99 double math funcs that need fixups or are blocklist-able
+ */
+NPY_INPLACE npy_longdouble npy_sinl(npy_longdouble x);
+NPY_INPLACE npy_longdouble npy_cosl(npy_longdouble x);
+NPY_INPLACE npy_longdouble npy_tanl(npy_longdouble x);
+NPY_INPLACE npy_longdouble npy_expl(npy_longdouble x);
+NPY_INPLACE npy_longdouble npy_sqrtl(npy_longdouble x);
+NPY_INPLACE npy_longdouble npy_hypotl(npy_longdouble x, npy_longdouble y);
+NPY_INPLACE npy_longdouble npy_log2l(npy_longdouble x);
+NPY_INPLACE npy_longdouble npy_atan2l(npy_longdouble x, npy_longdouble y);
+NPY_INPLACE npy_longdouble npy_powl(npy_longdouble x, npy_longdouble y);
+NPY_INPLACE npy_longdouble npy_modfl(npy_longdouble x, npy_longdouble* y);
+
+/* Mandatory C99 double math funcs, no blocklisting or fixups */
+/* defined for legacy reasons, should be deprecated at some point */
+#define npy_sinhl sinhl
+#define npy_coshl coshl
+#define npy_tanhl tanhl
+#define npy_fabsl fabsl
+#define npy_floorl floorl
+#define npy_ceill ceill
+#define npy_rintl rintl
+#define npy_truncl truncl
+#define npy_cbrtl cbrtl
+#define npy_log10l log10l
+#define npy_logl logl
+#define npy_expm1l expm1l
+#define npy_asinl asinl
+#define npy_acosl acosl
+#define npy_atanl atanl
+#define npy_asinhl asinhl
+#define npy_acoshl acoshl
+#define npy_atanhl atanhl
+#define npy_log1pl log1pl
+#define npy_exp2l exp2l
+#define npy_fmodl fmodl
+#define npy_frexpl frexpl
+#define npy_ldexpl ldexpl
+#define npy_copysignl copysignl
+#define npy_nextafterl nextafterl
+
+npy_longdouble npy_spacingl(npy_longdouble x);
+
+/*
+ * Non standard functions
+ */
+NPY_INPLACE double npy_deg2rad(double x);
+NPY_INPLACE double npy_rad2deg(double x);
+NPY_INPLACE double npy_logaddexp(double x, double y);
+NPY_INPLACE double npy_logaddexp2(double x, double y);
+NPY_INPLACE double npy_divmod(double x, double y, double *modulus);
+NPY_INPLACE double npy_heaviside(double x, double h0);
+
+NPY_INPLACE float npy_deg2radf(float x);
+NPY_INPLACE float npy_rad2degf(float x);
+NPY_INPLACE float npy_logaddexpf(float x, float y);
+NPY_INPLACE float npy_logaddexp2f(float x, float y);
+NPY_INPLACE float npy_divmodf(float x, float y, float *modulus);
+NPY_INPLACE float npy_heavisidef(float x, float h0);
+
+NPY_INPLACE npy_longdouble npy_deg2radl(npy_longdouble x);
+NPY_INPLACE npy_longdouble npy_rad2degl(npy_longdouble x);
+NPY_INPLACE npy_longdouble npy_logaddexpl(npy_longdouble x, npy_longdouble y);
+NPY_INPLACE npy_longdouble npy_logaddexp2l(npy_longdouble x, npy_longdouble y);
+NPY_INPLACE npy_longdouble npy_divmodl(npy_longdouble x, npy_longdouble y,
+ npy_longdouble *modulus);
+NPY_INPLACE npy_longdouble npy_heavisidel(npy_longdouble x, npy_longdouble h0);
+
+#define npy_degrees npy_rad2deg
+#define npy_degreesf npy_rad2degf
+#define npy_degreesl npy_rad2degl
+
+#define npy_radians npy_deg2rad
+#define npy_radiansf npy_deg2radf
+#define npy_radiansl npy_deg2radl
+
+/*
+ * Complex declarations
+ */
+
+static inline double npy_creal(const npy_cdouble z)
+{
+#if defined(__cplusplus)
+ return z._Val[0];
+#else
+ return creal(z);
+#endif
+}
+
+static inline void npy_csetreal(npy_cdouble *z, const double r)
+{
+ ((double *) z)[0] = r;
+}
+
+static inline double npy_cimag(const npy_cdouble z)
+{
+#if defined(__cplusplus)
+ return z._Val[1];
+#else
+ return cimag(z);
+#endif
+}
+
+static inline void npy_csetimag(npy_cdouble *z, const double i)
+{
+ ((double *) z)[1] = i;
+}
+
+static inline float npy_crealf(const npy_cfloat z)
+{
+#if defined(__cplusplus)
+ return z._Val[0];
+#else
+ return crealf(z);
+#endif
+}
+
+static inline void npy_csetrealf(npy_cfloat *z, const float r)
+{
+ ((float *) z)[0] = r;
+}
+
+static inline float npy_cimagf(const npy_cfloat z)
+{
+#if defined(__cplusplus)
+ return z._Val[1];
+#else
+ return cimagf(z);
+#endif
+}
+
+static inline void npy_csetimagf(npy_cfloat *z, const float i)
+{
+ ((float *) z)[1] = i;
+}
+
+static inline npy_longdouble npy_creall(const npy_clongdouble z)
+{
+#if defined(__cplusplus)
+ return (npy_longdouble)z._Val[0];
+#else
+ return creall(z);
+#endif
+}
+
+static inline void npy_csetreall(npy_clongdouble *z, const longdouble_t r)
+{
+ ((longdouble_t *) z)[0] = r;
+}
+
+static inline npy_longdouble npy_cimagl(const npy_clongdouble z)
+{
+#if defined(__cplusplus)
+ return (npy_longdouble)z._Val[1];
+#else
+ return cimagl(z);
+#endif
+}
+
+static inline void npy_csetimagl(npy_clongdouble *z, const longdouble_t i)
+{
+ ((longdouble_t *) z)[1] = i;
+}
+
+#define NPY_CSETREAL(z, r) npy_csetreal(z, r)
+#define NPY_CSETIMAG(z, i) npy_csetimag(z, i)
+#define NPY_CSETREALF(z, r) npy_csetrealf(z, r)
+#define NPY_CSETIMAGF(z, i) npy_csetimagf(z, i)
+#define NPY_CSETREALL(z, r) npy_csetreall(z, r)
+#define NPY_CSETIMAGL(z, i) npy_csetimagl(z, i)
+
+static inline npy_cdouble npy_cpack(double x, double y)
+{
+ npy_cdouble z;
+ npy_csetreal(&z, x);
+ npy_csetimag(&z, y);
+ return z;
+}
+
+static inline npy_cfloat npy_cpackf(float x, float y)
+{
+ npy_cfloat z;
+ npy_csetrealf(&z, x);
+ npy_csetimagf(&z, y);
+ return z;
+}
+
+static inline npy_clongdouble npy_cpackl(npy_longdouble x, npy_longdouble y)
+{
+ npy_clongdouble z;
+ npy_csetreall(&z, x);
+ npy_csetimagl(&z, y);
+ return z;
+}
+
+/*
+ * Double precision complex functions
+ */
+double npy_cabs(npy_cdouble z);
+double npy_carg(npy_cdouble z);
+
+npy_cdouble npy_cexp(npy_cdouble z);
+npy_cdouble npy_clog(npy_cdouble z);
+npy_cdouble npy_cpow(npy_cdouble x, npy_cdouble y);
+
+npy_cdouble npy_csqrt(npy_cdouble z);
+
+npy_cdouble npy_ccos(npy_cdouble z);
+npy_cdouble npy_csin(npy_cdouble z);
+npy_cdouble npy_ctan(npy_cdouble z);
+
+npy_cdouble npy_ccosh(npy_cdouble z);
+npy_cdouble npy_csinh(npy_cdouble z);
+npy_cdouble npy_ctanh(npy_cdouble z);
+
+npy_cdouble npy_cacos(npy_cdouble z);
+npy_cdouble npy_casin(npy_cdouble z);
+npy_cdouble npy_catan(npy_cdouble z);
+
+npy_cdouble npy_cacosh(npy_cdouble z);
+npy_cdouble npy_casinh(npy_cdouble z);
+npy_cdouble npy_catanh(npy_cdouble z);
+
+/*
+ * Single precision complex functions
+ */
+float npy_cabsf(npy_cfloat z);
+float npy_cargf(npy_cfloat z);
+
+npy_cfloat npy_cexpf(npy_cfloat z);
+npy_cfloat npy_clogf(npy_cfloat z);
+npy_cfloat npy_cpowf(npy_cfloat x, npy_cfloat y);
+
+npy_cfloat npy_csqrtf(npy_cfloat z);
+
+npy_cfloat npy_ccosf(npy_cfloat z);
+npy_cfloat npy_csinf(npy_cfloat z);
+npy_cfloat npy_ctanf(npy_cfloat z);
+
+npy_cfloat npy_ccoshf(npy_cfloat z);
+npy_cfloat npy_csinhf(npy_cfloat z);
+npy_cfloat npy_ctanhf(npy_cfloat z);
+
+npy_cfloat npy_cacosf(npy_cfloat z);
+npy_cfloat npy_casinf(npy_cfloat z);
+npy_cfloat npy_catanf(npy_cfloat z);
+
+npy_cfloat npy_cacoshf(npy_cfloat z);
+npy_cfloat npy_casinhf(npy_cfloat z);
+npy_cfloat npy_catanhf(npy_cfloat z);
+
+
+/*
+ * Extended precision complex functions
+ */
+npy_longdouble npy_cabsl(npy_clongdouble z);
+npy_longdouble npy_cargl(npy_clongdouble z);
+
+npy_clongdouble npy_cexpl(npy_clongdouble z);
+npy_clongdouble npy_clogl(npy_clongdouble z);
+npy_clongdouble npy_cpowl(npy_clongdouble x, npy_clongdouble y);
+
+npy_clongdouble npy_csqrtl(npy_clongdouble z);
+
+npy_clongdouble npy_ccosl(npy_clongdouble z);
+npy_clongdouble npy_csinl(npy_clongdouble z);
+npy_clongdouble npy_ctanl(npy_clongdouble z);
+
+npy_clongdouble npy_ccoshl(npy_clongdouble z);
+npy_clongdouble npy_csinhl(npy_clongdouble z);
+npy_clongdouble npy_ctanhl(npy_clongdouble z);
+
+npy_clongdouble npy_cacosl(npy_clongdouble z);
+npy_clongdouble npy_casinl(npy_clongdouble z);
+npy_clongdouble npy_catanl(npy_clongdouble z);
+
+npy_clongdouble npy_cacoshl(npy_clongdouble z);
+npy_clongdouble npy_casinhl(npy_clongdouble z);
+npy_clongdouble npy_catanhl(npy_clongdouble z);
+
+
+/*
+ * Functions that set the floating point error
+ * status word.
+ */
+
+/*
+ * platform-dependent code translates floating point
+ * status to an integer sum of these values
+ */
+#define NPY_FPE_DIVIDEBYZERO 1
+#define NPY_FPE_OVERFLOW 2
+#define NPY_FPE_UNDERFLOW 4
+#define NPY_FPE_INVALID 8
+
+int npy_clear_floatstatus_barrier(char*);
+int npy_get_floatstatus_barrier(char*);
+/*
+ * use caution with these - clang and gcc8.1 are known to reorder calls
+ * to this form of the function which can defeat the check. The _barrier
+ * form of the call is preferable, where the argument is
+ * (char*)&local_variable
+ */
+int npy_clear_floatstatus(void);
+int npy_get_floatstatus(void);
+
+void npy_set_floatstatus_divbyzero(void);
+void npy_set_floatstatus_overflow(void);
+void npy_set_floatstatus_underflow(void);
+void npy_set_floatstatus_invalid(void);
+
+#ifdef __cplusplus
+}
+#endif
+
+#if NPY_INLINE_MATH
+#include "npy_math_internal.h"
+#endif
+
+#endif /* NUMPY_CORE_INCLUDE_NUMPY_NPY_MATH_H_ */
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/include/numpy/npy_no_deprecated_api.h b/python/user_packages/Python313/site-packages/numpy/_core/include/numpy/npy_no_deprecated_api.h
new file mode 100644
index 0000000000000000000000000000000000000000..84e483d4d2b1254b08cc0d34d6e35375ddea3335
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/include/numpy/npy_no_deprecated_api.h
@@ -0,0 +1,20 @@
+/*
+ * This include file is provided for inclusion in Cython *.pyd files where
+ * one would like to define the NPY_NO_DEPRECATED_API macro. It can be
+ * included by
+ *
+ * cdef extern from "npy_no_deprecated_api.h": pass
+ *
+ */
+#ifndef NPY_NO_DEPRECATED_API
+
+/* put this check here since there may be multiple includes in C extensions. */
+#if defined(NUMPY_CORE_INCLUDE_NUMPY_NDARRAYTYPES_H_) || \
+ defined(NUMPY_CORE_INCLUDE_NUMPY_NPY_DEPRECATED_API_H) || \
+ defined(NUMPY_CORE_INCLUDE_NUMPY_OLD_DEFINES_H_)
+#error "npy_no_deprecated_api.h" must be first among numpy includes.
+#else
+#define NPY_NO_DEPRECATED_API NPY_API_VERSION
+#endif
+
+#endif /* NPY_NO_DEPRECATED_API */
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/include/numpy/npy_os.h b/python/user_packages/Python313/site-packages/numpy/_core/include/numpy/npy_os.h
new file mode 100644
index 0000000000000000000000000000000000000000..742160b580e41d407ce390267912e77386c9ec34
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/include/numpy/npy_os.h
@@ -0,0 +1,42 @@
+#ifndef NUMPY_CORE_INCLUDE_NUMPY_NPY_OS_H_
+#define NUMPY_CORE_INCLUDE_NUMPY_NPY_OS_H_
+
+#if defined(linux) || defined(__linux) || defined(__linux__)
+ #define NPY_OS_LINUX
+#elif defined(__FreeBSD__) || defined(__NetBSD__) || \
+ defined(__OpenBSD__) || defined(__DragonFly__)
+ #define NPY_OS_BSD
+ #ifdef __FreeBSD__
+ #define NPY_OS_FREEBSD
+ #elif defined(__NetBSD__)
+ #define NPY_OS_NETBSD
+ #elif defined(__OpenBSD__)
+ #define NPY_OS_OPENBSD
+ #elif defined(__DragonFly__)
+ #define NPY_OS_DRAGONFLY
+ #endif
+#elif defined(sun) || defined(__sun)
+ #define NPY_OS_SOLARIS
+#elif defined(__CYGWIN__)
+ #define NPY_OS_CYGWIN
+/* We are on Windows.*/
+#elif defined(_WIN32)
+ /* We are using MinGW (64-bit or 32-bit)*/
+ #if defined(__MINGW32__) || defined(__MINGW64__)
+ #define NPY_OS_MINGW
+ /* Otherwise, if _WIN64 is defined, we are targeting 64-bit Windows*/
+ #elif defined(_WIN64)
+ #define NPY_OS_WIN64
+ /* Otherwise assume we are targeting 32-bit Windows*/
+ #else
+ #define NPY_OS_WIN32
+ #endif
+#elif defined(__APPLE__)
+ #define NPY_OS_DARWIN
+#elif defined(__HAIKU__)
+ #define NPY_OS_HAIKU
+#else
+ #define NPY_OS_UNKNOWN
+#endif
+
+#endif /* NUMPY_CORE_INCLUDE_NUMPY_NPY_OS_H_ */
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/include/numpy/numpyconfig.h b/python/user_packages/Python313/site-packages/numpy/_core/include/numpy/numpyconfig.h
new file mode 100644
index 0000000000000000000000000000000000000000..3489fac7090627e5c035d3f93c77af1268dc11f5
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/include/numpy/numpyconfig.h
@@ -0,0 +1,185 @@
+#ifndef NUMPY_CORE_INCLUDE_NUMPY_NPY_NUMPYCONFIG_H_
+#define NUMPY_CORE_INCLUDE_NUMPY_NPY_NUMPYCONFIG_H_
+
+#include "_numpyconfig.h"
+
+/*
+ * On Mac OS X, because there is only one configuration stage for all the archs
+ * in universal builds, any macro which depends on the arch needs to be
+ * hardcoded.
+ *
+ * Note that distutils/pip will attempt a universal2 build when Python itself
+ * is built as universal2, hence this hardcoding is needed even if we do not
+ * support universal2 wheels anymore (see gh-22796).
+ * This code block can be removed after we have dropped the setup.py based
+ * build completely.
+ */
+#ifdef __APPLE__
+ #undef NPY_SIZEOF_LONG
+
+ #ifdef __LP64__
+ #define NPY_SIZEOF_LONG 8
+ #else
+ #define NPY_SIZEOF_LONG 4
+ #endif
+
+ #undef NPY_SIZEOF_LONGDOUBLE
+ #undef NPY_SIZEOF_COMPLEX_LONGDOUBLE
+ #ifdef HAVE_LDOUBLE_IEEE_DOUBLE_LE
+ #undef HAVE_LDOUBLE_IEEE_DOUBLE_LE
+ #endif
+ #ifdef HAVE_LDOUBLE_INTEL_EXTENDED_16_BYTES_LE
+ #undef HAVE_LDOUBLE_INTEL_EXTENDED_16_BYTES_LE
+ #endif
+
+ #if defined(__arm64__)
+ #define NPY_SIZEOF_LONGDOUBLE 8
+ #define NPY_SIZEOF_COMPLEX_LONGDOUBLE 16
+ #define HAVE_LDOUBLE_IEEE_DOUBLE_LE 1
+ #elif defined(__x86_64)
+ #define NPY_SIZEOF_LONGDOUBLE 16
+ #define NPY_SIZEOF_COMPLEX_LONGDOUBLE 32
+ #define HAVE_LDOUBLE_INTEL_EXTENDED_16_BYTES_LE 1
+ #elif defined (__i386)
+ #define NPY_SIZEOF_LONGDOUBLE 12
+ #define NPY_SIZEOF_COMPLEX_LONGDOUBLE 24
+ #elif defined(__ppc__) || defined (__ppc64__)
+ #define NPY_SIZEOF_LONGDOUBLE 16
+ #define NPY_SIZEOF_COMPLEX_LONGDOUBLE 32
+ #else
+ #error "unknown architecture"
+ #endif
+#endif
+
+
+/**
+ * To help with both NPY_TARGET_VERSION and the NPY_NO_DEPRECATED_API macro,
+ * we include API version numbers for specific versions of NumPy.
+ * To exclude all API that was deprecated as of 1.7, add the following before
+ * #including any NumPy headers:
+ * #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
+ * The same is true for NPY_TARGET_VERSION, although NumPy will default to
+ * a backwards compatible build anyway.
+ */
+#define NPY_1_7_API_VERSION 0x00000007
+#define NPY_1_8_API_VERSION 0x00000008
+#define NPY_1_9_API_VERSION 0x00000009
+#define NPY_1_10_API_VERSION 0x0000000a
+#define NPY_1_11_API_VERSION 0x0000000a
+#define NPY_1_12_API_VERSION 0x0000000a
+#define NPY_1_13_API_VERSION 0x0000000b
+#define NPY_1_14_API_VERSION 0x0000000c
+#define NPY_1_15_API_VERSION 0x0000000c
+#define NPY_1_16_API_VERSION 0x0000000d
+#define NPY_1_17_API_VERSION 0x0000000d
+#define NPY_1_18_API_VERSION 0x0000000d
+#define NPY_1_19_API_VERSION 0x0000000d
+#define NPY_1_20_API_VERSION 0x0000000e
+#define NPY_1_21_API_VERSION 0x0000000e
+#define NPY_1_22_API_VERSION 0x0000000f
+#define NPY_1_23_API_VERSION 0x00000010
+#define NPY_1_24_API_VERSION 0x00000010
+#define NPY_1_25_API_VERSION 0x00000011
+#define NPY_2_0_API_VERSION 0x00000012
+#define NPY_2_1_API_VERSION 0x00000013
+#define NPY_2_2_API_VERSION 0x00000013
+#define NPY_2_3_API_VERSION 0x00000014
+#define NPY_2_4_API_VERSION 0x00000015
+
+
+/*
+ * Binary compatibility version number. This number is increased
+ * whenever the C-API is changed such that binary compatibility is
+ * broken, i.e. whenever a recompile of extension modules is needed.
+ */
+#define NPY_VERSION NPY_ABI_VERSION
+
+/*
+ * Minor API version we are compiling to be compatible with. The version
+ * Number is always increased when the API changes via: `NPY_API_VERSION`
+ * (and should maybe just track the NumPy version).
+ *
+ * If we have an internal build, we always target the current version of
+ * course.
+ *
+ * For downstream users, we default to an older version to provide them with
+ * maximum compatibility by default. Downstream can choose to extend that
+ * default, or narrow it down if they wish to use newer API. If you adjust
+ * this, consider the Python version support (example for 1.25.x):
+ *
+ * NumPy 1.25.x supports Python: 3.9 3.10 3.11 (3.12)
+ * NumPy 1.19.x supports Python: 3.6 3.7 3.8 3.9
+ * NumPy 1.17.x supports Python: 3.5 3.6 3.7 3.8
+ * NumPy 1.15.x supports Python: ... 3.6 3.7
+ *
+ * Users of the stable ABI may wish to target the last Python that is not
+ * end of life. This would be 3.8 at NumPy 1.25 release time.
+ * 1.17 as default was the choice of oldest-support-numpy at the time and
+ * has in practice no limit (compared to 1.19). Even earlier becomes legacy.
+ */
+#if defined(NPY_INTERNAL_BUILD) && NPY_INTERNAL_BUILD
+ /* NumPy internal build, always use current version. */
+ #define NPY_FEATURE_VERSION NPY_API_VERSION
+#elif defined(NPY_TARGET_VERSION) && NPY_TARGET_VERSION
+ /* user provided a target version, use it */
+ #define NPY_FEATURE_VERSION NPY_TARGET_VERSION
+#else
+ /* Use the default (increase when dropping Python 3.11 support) */
+ #define NPY_FEATURE_VERSION NPY_1_23_API_VERSION
+#endif
+
+/* Sanity check the (requested) feature version */
+#if NPY_FEATURE_VERSION > NPY_API_VERSION
+ #error "NPY_TARGET_VERSION higher than NumPy headers!"
+#elif NPY_FEATURE_VERSION < NPY_1_15_API_VERSION
+ /* No support for irrelevant old targets, no need for error, but warn. */
+ #ifndef _MSC_VER
+ #warning "Requested NumPy target lower than supported NumPy 1.15."
+ #else
+ #define _WARN___STR2__(x) #x
+ #define _WARN___STR1__(x) _WARN___STR2__(x)
+ #define _WARN___LOC__ __FILE__ "(" _WARN___STR1__(__LINE__) ") : Warning Msg: "
+ #pragma message(_WARN___LOC__"Requested NumPy target lower than supported NumPy 1.15.")
+ #endif
+#endif
+
+/*
+ * We define a human readable translation to the Python version of NumPy
+ * for error messages (and also to allow grepping the binaries for conda).
+ */
+#if NPY_FEATURE_VERSION == NPY_1_7_API_VERSION
+ #define NPY_FEATURE_VERSION_STRING "1.7"
+#elif NPY_FEATURE_VERSION == NPY_1_8_API_VERSION
+ #define NPY_FEATURE_VERSION_STRING "1.8"
+#elif NPY_FEATURE_VERSION == NPY_1_9_API_VERSION
+ #define NPY_FEATURE_VERSION_STRING "1.9"
+#elif NPY_FEATURE_VERSION == NPY_1_10_API_VERSION /* also 1.11, 1.12 */
+ #define NPY_FEATURE_VERSION_STRING "1.10"
+#elif NPY_FEATURE_VERSION == NPY_1_13_API_VERSION
+ #define NPY_FEATURE_VERSION_STRING "1.13"
+#elif NPY_FEATURE_VERSION == NPY_1_14_API_VERSION /* also 1.15 */
+ #define NPY_FEATURE_VERSION_STRING "1.14"
+#elif NPY_FEATURE_VERSION == NPY_1_16_API_VERSION /* also 1.17, 1.18, 1.19 */
+ #define NPY_FEATURE_VERSION_STRING "1.16"
+#elif NPY_FEATURE_VERSION == NPY_1_20_API_VERSION /* also 1.21 */
+ #define NPY_FEATURE_VERSION_STRING "1.20"
+#elif NPY_FEATURE_VERSION == NPY_1_22_API_VERSION
+ #define NPY_FEATURE_VERSION_STRING "1.22"
+#elif NPY_FEATURE_VERSION == NPY_1_23_API_VERSION /* also 1.24 */
+ #define NPY_FEATURE_VERSION_STRING "1.23"
+#elif NPY_FEATURE_VERSION == NPY_1_25_API_VERSION
+ #define NPY_FEATURE_VERSION_STRING "1.25"
+#elif NPY_FEATURE_VERSION == NPY_2_0_API_VERSION
+ #define NPY_FEATURE_VERSION_STRING "2.0"
+#elif NPY_FEATURE_VERSION == NPY_2_1_API_VERSION
+ #define NPY_FEATURE_VERSION_STRING "2.1"
+#elif NPY_FEATURE_VERSION == NPY_2_3_API_VERSION
+ #define NPY_FEATURE_VERSION_STRING "2.3"
+#elif NPY_FEATURE_VERSION == NPY_2_4_API_VERSION
+ #define NPY_FEATURE_VERSION_STRING "2.4"
+#else
+ #error "Missing version string define for new NumPy version."
+#endif
+
+
+#endif /* NUMPY_CORE_INCLUDE_NUMPY_NPY_NUMPYCONFIG_H_ */
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/include/numpy/random/LICENSE.txt b/python/user_packages/Python313/site-packages/numpy/_core/include/numpy/random/LICENSE.txt
new file mode 100644
index 0000000000000000000000000000000000000000..375a7faa07019536b6b9aad67949fbfa5b4c12db
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/include/numpy/random/LICENSE.txt
@@ -0,0 +1,21 @@
+ zlib License
+ ------------
+
+ Copyright (C) 2010 - 2019 ridiculous_fish,
+ Copyright (C) 2016 - 2019 Kim Walisch,
+
+ This software is provided 'as-is', without any express or implied
+ warranty. In no event will the authors be held liable for any damages
+ arising from the use of this software.
+
+ Permission is granted to anyone to use this software for any purpose,
+ including commercial applications, and to alter it and redistribute it
+ freely, subject to the following restrictions:
+
+ 1. The origin of this software must not be misrepresented; you must not
+ claim that you wrote the original software. If you use this software
+ in a product, an acknowledgment in the product documentation would be
+ appreciated but is not required.
+ 2. Altered source versions must be plainly marked as such, and must not be
+ misrepresented as being the original software.
+ 3. This notice may not be removed or altered from any source distribution.
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/include/numpy/random/bitgen.h b/python/user_packages/Python313/site-packages/numpy/_core/include/numpy/random/bitgen.h
new file mode 100644
index 0000000000000000000000000000000000000000..42c492575994a5a511d763ee1ef9fc86867a437d
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/include/numpy/random/bitgen.h
@@ -0,0 +1,20 @@
+#ifndef NUMPY_CORE_INCLUDE_NUMPY_RANDOM_BITGEN_H_
+#define NUMPY_CORE_INCLUDE_NUMPY_RANDOM_BITGEN_H_
+
+#pragma once
+#include
+#include
+#include
+
+/* Must match the declaration in numpy/random/.pxd */
+
+typedef struct bitgen {
+ void *state;
+ uint64_t (*next_uint64)(void *st);
+ uint32_t (*next_uint32)(void *st);
+ double (*next_double)(void *st);
+ uint64_t (*next_raw)(void *st);
+} bitgen_t;
+
+
+#endif /* NUMPY_CORE_INCLUDE_NUMPY_RANDOM_BITGEN_H_ */
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/include/numpy/random/distributions.h b/python/user_packages/Python313/site-packages/numpy/_core/include/numpy/random/distributions.h
new file mode 100644
index 0000000000000000000000000000000000000000..3d3d6ca8ecfd3859286525a45e6df950b15f389f
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/include/numpy/random/distributions.h
@@ -0,0 +1,209 @@
+#ifndef NUMPY_CORE_INCLUDE_NUMPY_RANDOM_DISTRIBUTIONS_H_
+#define NUMPY_CORE_INCLUDE_NUMPY_RANDOM_DISTRIBUTIONS_H_
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include
+#include "numpy/npy_common.h"
+#include
+#include
+#include
+
+#include "numpy/npy_math.h"
+#include "numpy/random/bitgen.h"
+
+/*
+ * RAND_INT_TYPE is used to share integer generators with RandomState which
+ * used long in place of int64_t. If changing a distribution that uses
+ * RAND_INT_TYPE, then the original unmodified copy must be retained for
+ * use in RandomState by copying to the legacy distributions source file.
+ */
+#ifdef NP_RANDOM_LEGACY
+#define RAND_INT_TYPE long
+#define RAND_INT_MAX LONG_MAX
+#else
+#define RAND_INT_TYPE int64_t
+#define RAND_INT_MAX INT64_MAX
+#endif
+
+#ifdef _MSC_VER
+#define DECLDIR __declspec(dllexport)
+#else
+#define DECLDIR extern
+#endif
+
+#ifndef MIN
+#define MIN(x, y) (((x) < (y)) ? x : y)
+#define MAX(x, y) (((x) > (y)) ? x : y)
+#endif
+
+#ifndef M_PI
+#define M_PI 3.14159265358979323846264338328
+#endif
+
+typedef struct s_binomial_t {
+ int has_binomial; /* !=0: following parameters initialized for binomial */
+ double psave;
+ RAND_INT_TYPE nsave;
+ double r;
+ double q;
+ double fm;
+ RAND_INT_TYPE m;
+ double p1;
+ double xm;
+ double xl;
+ double xr;
+ double c;
+ double laml;
+ double lamr;
+ double p2;
+ double p3;
+ double p4;
+} binomial_t;
+
+DECLDIR float random_standard_uniform_f(bitgen_t *bitgen_state);
+DECLDIR double random_standard_uniform(bitgen_t *bitgen_state);
+DECLDIR void random_standard_uniform_fill(bitgen_t *, npy_intp, double *);
+DECLDIR void random_standard_uniform_fill_f(bitgen_t *, npy_intp, float *);
+
+DECLDIR int64_t random_positive_int64(bitgen_t *bitgen_state);
+DECLDIR int32_t random_positive_int32(bitgen_t *bitgen_state);
+DECLDIR int64_t random_positive_int(bitgen_t *bitgen_state);
+DECLDIR uint64_t random_uint(bitgen_t *bitgen_state);
+
+DECLDIR double random_standard_exponential(bitgen_t *bitgen_state);
+DECLDIR float random_standard_exponential_f(bitgen_t *bitgen_state);
+DECLDIR void random_standard_exponential_fill(bitgen_t *, npy_intp, double *);
+DECLDIR void random_standard_exponential_fill_f(bitgen_t *, npy_intp, float *);
+DECLDIR void random_standard_exponential_inv_fill(bitgen_t *, npy_intp, double *);
+DECLDIR void random_standard_exponential_inv_fill_f(bitgen_t *, npy_intp, float *);
+
+DECLDIR double random_standard_normal(bitgen_t *bitgen_state);
+DECLDIR float random_standard_normal_f(bitgen_t *bitgen_state);
+DECLDIR void random_standard_normal_fill(bitgen_t *, npy_intp, double *);
+DECLDIR void random_standard_normal_fill_f(bitgen_t *, npy_intp, float *);
+DECLDIR double random_standard_gamma(bitgen_t *bitgen_state, double shape);
+DECLDIR float random_standard_gamma_f(bitgen_t *bitgen_state, float shape);
+
+DECLDIR double random_normal(bitgen_t *bitgen_state, double loc, double scale);
+
+DECLDIR double random_gamma(bitgen_t *bitgen_state, double shape, double scale);
+DECLDIR float random_gamma_f(bitgen_t *bitgen_state, float shape, float scale);
+
+DECLDIR double random_exponential(bitgen_t *bitgen_state, double scale);
+DECLDIR double random_uniform(bitgen_t *bitgen_state, double lower, double range);
+DECLDIR double random_beta(bitgen_t *bitgen_state, double a, double b);
+DECLDIR double random_chisquare(bitgen_t *bitgen_state, double df);
+DECLDIR double random_f(bitgen_t *bitgen_state, double dfnum, double dfden);
+DECLDIR double random_standard_cauchy(bitgen_t *bitgen_state);
+DECLDIR double random_pareto(bitgen_t *bitgen_state, double a);
+DECLDIR double random_weibull(bitgen_t *bitgen_state, double a);
+DECLDIR double random_power(bitgen_t *bitgen_state, double a);
+DECLDIR double random_laplace(bitgen_t *bitgen_state, double loc, double scale);
+DECLDIR double random_gumbel(bitgen_t *bitgen_state, double loc, double scale);
+DECLDIR double random_logistic(bitgen_t *bitgen_state, double loc, double scale);
+DECLDIR double random_lognormal(bitgen_t *bitgen_state, double mean, double sigma);
+DECLDIR double random_rayleigh(bitgen_t *bitgen_state, double mode);
+DECLDIR double random_standard_t(bitgen_t *bitgen_state, double df);
+DECLDIR double random_noncentral_chisquare(bitgen_t *bitgen_state, double df,
+ double nonc);
+DECLDIR double random_noncentral_f(bitgen_t *bitgen_state, double dfnum,
+ double dfden, double nonc);
+DECLDIR double random_wald(bitgen_t *bitgen_state, double mean, double scale);
+DECLDIR double random_vonmises(bitgen_t *bitgen_state, double mu, double kappa);
+DECLDIR double random_triangular(bitgen_t *bitgen_state, double left, double mode,
+ double right);
+
+DECLDIR RAND_INT_TYPE random_poisson(bitgen_t *bitgen_state, double lam);
+DECLDIR RAND_INT_TYPE random_negative_binomial(bitgen_t *bitgen_state, double n,
+ double p);
+
+DECLDIR int64_t random_binomial(bitgen_t *bitgen_state, double p,
+ int64_t n, binomial_t *binomial);
+
+DECLDIR int64_t random_logseries(bitgen_t *bitgen_state, double p);
+DECLDIR int64_t random_geometric(bitgen_t *bitgen_state, double p);
+DECLDIR RAND_INT_TYPE random_geometric_search(bitgen_t *bitgen_state, double p);
+DECLDIR RAND_INT_TYPE random_zipf(bitgen_t *bitgen_state, double a);
+DECLDIR int64_t random_hypergeometric(bitgen_t *bitgen_state,
+ int64_t good, int64_t bad, int64_t sample);
+DECLDIR uint64_t random_interval(bitgen_t *bitgen_state, uint64_t max);
+
+/* Generate random uint64 numbers in closed interval [off, off + rng]. */
+DECLDIR uint64_t random_bounded_uint64(bitgen_t *bitgen_state, uint64_t off,
+ uint64_t rng, uint64_t mask,
+ bool use_masked);
+
+/* Generate random uint32 numbers in closed interval [off, off + rng]. */
+DECLDIR uint32_t random_buffered_bounded_uint32(bitgen_t *bitgen_state,
+ uint32_t off, uint32_t rng,
+ uint32_t mask, bool use_masked,
+ int *bcnt, uint32_t *buf);
+DECLDIR uint16_t random_buffered_bounded_uint16(bitgen_t *bitgen_state,
+ uint16_t off, uint16_t rng,
+ uint16_t mask, bool use_masked,
+ int *bcnt, uint32_t *buf);
+DECLDIR uint8_t random_buffered_bounded_uint8(bitgen_t *bitgen_state, uint8_t off,
+ uint8_t rng, uint8_t mask,
+ bool use_masked, int *bcnt,
+ uint32_t *buf);
+DECLDIR npy_bool random_buffered_bounded_bool(bitgen_t *bitgen_state, npy_bool off,
+ npy_bool rng, npy_bool mask,
+ bool use_masked, int *bcnt,
+ uint32_t *buf);
+
+DECLDIR void random_bounded_uint64_fill(bitgen_t *bitgen_state, uint64_t off,
+ uint64_t rng, npy_intp cnt,
+ bool use_masked, uint64_t *out);
+DECLDIR void random_bounded_uint32_fill(bitgen_t *bitgen_state, uint32_t off,
+ uint32_t rng, npy_intp cnt,
+ bool use_masked, uint32_t *out);
+DECLDIR void random_bounded_uint16_fill(bitgen_t *bitgen_state, uint16_t off,
+ uint16_t rng, npy_intp cnt,
+ bool use_masked, uint16_t *out);
+DECLDIR void random_bounded_uint8_fill(bitgen_t *bitgen_state, uint8_t off,
+ uint8_t rng, npy_intp cnt,
+ bool use_masked, uint8_t *out);
+DECLDIR void random_bounded_bool_fill(bitgen_t *bitgen_state, npy_bool off,
+ npy_bool rng, npy_intp cnt,
+ bool use_masked, npy_bool *out);
+
+DECLDIR void random_multinomial(bitgen_t *bitgen_state, RAND_INT_TYPE n, RAND_INT_TYPE *mnix,
+ double *pix, npy_intp d, binomial_t *binomial);
+
+/* multivariate hypergeometric, "count" method */
+DECLDIR int random_multivariate_hypergeometric_count(bitgen_t *bitgen_state,
+ int64_t total,
+ size_t num_colors, int64_t *colors,
+ int64_t nsample,
+ size_t num_variates, int64_t *variates);
+
+/* multivariate hypergeometric, "marginals" method */
+DECLDIR void random_multivariate_hypergeometric_marginals(bitgen_t *bitgen_state,
+ int64_t total,
+ size_t num_colors, int64_t *colors,
+ int64_t nsample,
+ size_t num_variates, int64_t *variates);
+
+/* Common to legacy-distributions.c and distributions.c but not exported */
+
+RAND_INT_TYPE random_binomial_btpe(bitgen_t *bitgen_state,
+ RAND_INT_TYPE n,
+ double p,
+ binomial_t *binomial);
+RAND_INT_TYPE random_binomial_inversion(bitgen_t *bitgen_state,
+ RAND_INT_TYPE n,
+ double p,
+ binomial_t *binomial);
+double random_loggam(double x);
+static inline double next_double(bitgen_t *bitgen_state) {
+ return bitgen_state->next_double(bitgen_state->state);
+}
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* NUMPY_CORE_INCLUDE_NUMPY_RANDOM_DISTRIBUTIONS_H_ */
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/include/numpy/random/libdivide.h b/python/user_packages/Python313/site-packages/numpy/_core/include/numpy/random/libdivide.h
new file mode 100644
index 0000000000000000000000000000000000000000..3a87c57d4c855444d37ad4e0d042b7808f88f917
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/include/numpy/random/libdivide.h
@@ -0,0 +1,2079 @@
+// libdivide.h - Optimized integer division
+// https://libdivide.com
+//
+// Copyright (C) 2010 - 2019 ridiculous_fish,
+// Copyright (C) 2016 - 2019 Kim Walisch,
+//
+// libdivide is dual-licensed under the Boost or zlib licenses.
+// You may use libdivide under the terms of either of these.
+// See LICENSE.txt for more details.
+
+#ifndef NUMPY_CORE_INCLUDE_NUMPY_LIBDIVIDE_LIBDIVIDE_H_
+#define NUMPY_CORE_INCLUDE_NUMPY_LIBDIVIDE_LIBDIVIDE_H_
+
+#define LIBDIVIDE_VERSION "3.0"
+#define LIBDIVIDE_VERSION_MAJOR 3
+#define LIBDIVIDE_VERSION_MINOR 0
+
+#include
+
+#if defined(__cplusplus)
+ #include
+ #include
+ #include
+#else
+ #include
+ #include
+#endif
+
+#if defined(LIBDIVIDE_AVX512)
+ #include
+#elif defined(LIBDIVIDE_AVX2)
+ #include
+#elif defined(LIBDIVIDE_SSE2)
+ #include
+#endif
+
+#if defined(_MSC_VER)
+ #include
+ // disable warning C4146: unary minus operator applied
+ // to unsigned type, result still unsigned
+ #pragma warning(disable: 4146)
+ #define LIBDIVIDE_VC
+#endif
+
+#if !defined(__has_builtin)
+ #define __has_builtin(x) 0
+#endif
+
+#if defined(__SIZEOF_INT128__)
+ #define HAS_INT128_T
+ // clang-cl on Windows does not yet support 128-bit division
+ #if !(defined(__clang__) && defined(LIBDIVIDE_VC))
+ #define HAS_INT128_DIV
+ #endif
+#endif
+
+#if defined(__x86_64__) || defined(_M_X64)
+ #define LIBDIVIDE_X86_64
+#endif
+
+#if defined(__i386__)
+ #define LIBDIVIDE_i386
+#endif
+
+#if defined(__GNUC__) || defined(__clang__)
+ #define LIBDIVIDE_GCC_STYLE_ASM
+#endif
+
+#if defined(__cplusplus) || defined(LIBDIVIDE_VC)
+ #define LIBDIVIDE_FUNCTION __FUNCTION__
+#else
+ #define LIBDIVIDE_FUNCTION __func__
+#endif
+
+#define LIBDIVIDE_ERROR(msg) \
+ do { \
+ fprintf(stderr, "libdivide.h:%d: %s(): Error: %s\n", \
+ __LINE__, LIBDIVIDE_FUNCTION, msg); \
+ abort(); \
+ } while (0)
+
+#if defined(LIBDIVIDE_ASSERTIONS_ON)
+ #define LIBDIVIDE_ASSERT(x) \
+ do { \
+ if (!(x)) { \
+ fprintf(stderr, "libdivide.h:%d: %s(): Assertion failed: %s\n", \
+ __LINE__, LIBDIVIDE_FUNCTION, #x); \
+ abort(); \
+ } \
+ } while (0)
+#else
+ #define LIBDIVIDE_ASSERT(x)
+#endif
+
+#ifdef __cplusplus
+namespace libdivide {
+#endif
+
+// pack divider structs to prevent compilers from padding.
+// This reduces memory usage by up to 43% when using a large
+// array of libdivide dividers and improves performance
+// by up to 10% because of reduced memory bandwidth.
+#pragma pack(push, 1)
+
+struct libdivide_u32_t {
+ uint32_t magic;
+ uint8_t more;
+};
+
+struct libdivide_s32_t {
+ int32_t magic;
+ uint8_t more;
+};
+
+struct libdivide_u64_t {
+ uint64_t magic;
+ uint8_t more;
+};
+
+struct libdivide_s64_t {
+ int64_t magic;
+ uint8_t more;
+};
+
+struct libdivide_u32_branchfree_t {
+ uint32_t magic;
+ uint8_t more;
+};
+
+struct libdivide_s32_branchfree_t {
+ int32_t magic;
+ uint8_t more;
+};
+
+struct libdivide_u64_branchfree_t {
+ uint64_t magic;
+ uint8_t more;
+};
+
+struct libdivide_s64_branchfree_t {
+ int64_t magic;
+ uint8_t more;
+};
+
+#pragma pack(pop)
+
+// Explanation of the "more" field:
+//
+// * Bits 0-5 is the shift value (for shift path or mult path).
+// * Bit 6 is the add indicator for mult path.
+// * Bit 7 is set if the divisor is negative. We use bit 7 as the negative
+// divisor indicator so that we can efficiently use sign extension to
+// create a bitmask with all bits set to 1 (if the divisor is negative)
+// or 0 (if the divisor is positive).
+//
+// u32: [0-4] shift value
+// [5] ignored
+// [6] add indicator
+// magic number of 0 indicates shift path
+//
+// s32: [0-4] shift value
+// [5] ignored
+// [6] add indicator
+// [7] indicates negative divisor
+// magic number of 0 indicates shift path
+//
+// u64: [0-5] shift value
+// [6] add indicator
+// magic number of 0 indicates shift path
+//
+// s64: [0-5] shift value
+// [6] add indicator
+// [7] indicates negative divisor
+// magic number of 0 indicates shift path
+//
+// In s32 and s64 branchfree modes, the magic number is negated according to
+// whether the divisor is negated. In branchfree strategy, it is not negated.
+
+enum {
+ LIBDIVIDE_32_SHIFT_MASK = 0x1F,
+ LIBDIVIDE_64_SHIFT_MASK = 0x3F,
+ LIBDIVIDE_ADD_MARKER = 0x40,
+ LIBDIVIDE_NEGATIVE_DIVISOR = 0x80
+};
+
+static inline struct libdivide_s32_t libdivide_s32_gen(int32_t d);
+static inline struct libdivide_u32_t libdivide_u32_gen(uint32_t d);
+static inline struct libdivide_s64_t libdivide_s64_gen(int64_t d);
+static inline struct libdivide_u64_t libdivide_u64_gen(uint64_t d);
+
+static inline struct libdivide_s32_branchfree_t libdivide_s32_branchfree_gen(int32_t d);
+static inline struct libdivide_u32_branchfree_t libdivide_u32_branchfree_gen(uint32_t d);
+static inline struct libdivide_s64_branchfree_t libdivide_s64_branchfree_gen(int64_t d);
+static inline struct libdivide_u64_branchfree_t libdivide_u64_branchfree_gen(uint64_t d);
+
+static inline int32_t libdivide_s32_do(int32_t numer, const struct libdivide_s32_t *denom);
+static inline uint32_t libdivide_u32_do(uint32_t numer, const struct libdivide_u32_t *denom);
+static inline int64_t libdivide_s64_do(int64_t numer, const struct libdivide_s64_t *denom);
+static inline uint64_t libdivide_u64_do(uint64_t numer, const struct libdivide_u64_t *denom);
+
+static inline int32_t libdivide_s32_branchfree_do(int32_t numer, const struct libdivide_s32_branchfree_t *denom);
+static inline uint32_t libdivide_u32_branchfree_do(uint32_t numer, const struct libdivide_u32_branchfree_t *denom);
+static inline int64_t libdivide_s64_branchfree_do(int64_t numer, const struct libdivide_s64_branchfree_t *denom);
+static inline uint64_t libdivide_u64_branchfree_do(uint64_t numer, const struct libdivide_u64_branchfree_t *denom);
+
+static inline int32_t libdivide_s32_recover(const struct libdivide_s32_t *denom);
+static inline uint32_t libdivide_u32_recover(const struct libdivide_u32_t *denom);
+static inline int64_t libdivide_s64_recover(const struct libdivide_s64_t *denom);
+static inline uint64_t libdivide_u64_recover(const struct libdivide_u64_t *denom);
+
+static inline int32_t libdivide_s32_branchfree_recover(const struct libdivide_s32_branchfree_t *denom);
+static inline uint32_t libdivide_u32_branchfree_recover(const struct libdivide_u32_branchfree_t *denom);
+static inline int64_t libdivide_s64_branchfree_recover(const struct libdivide_s64_branchfree_t *denom);
+static inline uint64_t libdivide_u64_branchfree_recover(const struct libdivide_u64_branchfree_t *denom);
+
+//////// Internal Utility Functions
+
+static inline uint32_t libdivide_mullhi_u32(uint32_t x, uint32_t y) {
+ uint64_t xl = x, yl = y;
+ uint64_t rl = xl * yl;
+ return (uint32_t)(rl >> 32);
+}
+
+static inline int32_t libdivide_mullhi_s32(int32_t x, int32_t y) {
+ int64_t xl = x, yl = y;
+ int64_t rl = xl * yl;
+ // needs to be arithmetic shift
+ return (int32_t)(rl >> 32);
+}
+
+static inline uint64_t libdivide_mullhi_u64(uint64_t x, uint64_t y) {
+#if defined(LIBDIVIDE_VC) && \
+ defined(LIBDIVIDE_X86_64)
+ return __umulh(x, y);
+#elif defined(HAS_INT128_T)
+ __uint128_t xl = x, yl = y;
+ __uint128_t rl = xl * yl;
+ return (uint64_t)(rl >> 64);
+#else
+ // full 128 bits are x0 * y0 + (x0 * y1 << 32) + (x1 * y0 << 32) + (x1 * y1 << 64)
+ uint32_t mask = 0xFFFFFFFF;
+ uint32_t x0 = (uint32_t)(x & mask);
+ uint32_t x1 = (uint32_t)(x >> 32);
+ uint32_t y0 = (uint32_t)(y & mask);
+ uint32_t y1 = (uint32_t)(y >> 32);
+ uint32_t x0y0_hi = libdivide_mullhi_u32(x0, y0);
+ uint64_t x0y1 = x0 * (uint64_t)y1;
+ uint64_t x1y0 = x1 * (uint64_t)y0;
+ uint64_t x1y1 = x1 * (uint64_t)y1;
+ uint64_t temp = x1y0 + x0y0_hi;
+ uint64_t temp_lo = temp & mask;
+ uint64_t temp_hi = temp >> 32;
+
+ return x1y1 + temp_hi + ((temp_lo + x0y1) >> 32);
+#endif
+}
+
+static inline int64_t libdivide_mullhi_s64(int64_t x, int64_t y) {
+#if defined(LIBDIVIDE_VC) && \
+ defined(LIBDIVIDE_X86_64)
+ return __mulh(x, y);
+#elif defined(HAS_INT128_T)
+ __int128_t xl = x, yl = y;
+ __int128_t rl = xl * yl;
+ return (int64_t)(rl >> 64);
+#else
+ // full 128 bits are x0 * y0 + (x0 * y1 << 32) + (x1 * y0 << 32) + (x1 * y1 << 64)
+ uint32_t mask = 0xFFFFFFFF;
+ uint32_t x0 = (uint32_t)(x & mask);
+ uint32_t y0 = (uint32_t)(y & mask);
+ int32_t x1 = (int32_t)(x >> 32);
+ int32_t y1 = (int32_t)(y >> 32);
+ uint32_t x0y0_hi = libdivide_mullhi_u32(x0, y0);
+ int64_t t = x1 * (int64_t)y0 + x0y0_hi;
+ int64_t w1 = x0 * (int64_t)y1 + (t & mask);
+
+ return x1 * (int64_t)y1 + (t >> 32) + (w1 >> 32);
+#endif
+}
+
+static inline int32_t libdivide_count_leading_zeros32(uint32_t val) {
+#if defined(__GNUC__) || \
+ __has_builtin(__builtin_clz)
+ // Fast way to count leading zeros
+ return __builtin_clz(val);
+#elif defined(LIBDIVIDE_VC)
+ unsigned long result;
+ if (_BitScanReverse(&result, val)) {
+ return 31 - result;
+ }
+ return 0;
+#else
+ if (val == 0)
+ return 32;
+ int32_t result = 8;
+ uint32_t hi = 0xFFU << 24;
+ while ((val & hi) == 0) {
+ hi >>= 8;
+ result += 8;
+ }
+ while (val & hi) {
+ result -= 1;
+ hi <<= 1;
+ }
+ return result;
+#endif
+}
+
+static inline int32_t libdivide_count_leading_zeros64(uint64_t val) {
+#if defined(__GNUC__) || \
+ __has_builtin(__builtin_clzll)
+ // Fast way to count leading zeros
+ return __builtin_clzll(val);
+#elif defined(LIBDIVIDE_VC) && defined(_WIN64)
+ unsigned long result;
+ if (_BitScanReverse64(&result, val)) {
+ return 63 - result;
+ }
+ return 0;
+#else
+ uint32_t hi = val >> 32;
+ uint32_t lo = val & 0xFFFFFFFF;
+ if (hi != 0) return libdivide_count_leading_zeros32(hi);
+ return 32 + libdivide_count_leading_zeros32(lo);
+#endif
+}
+
+// libdivide_64_div_32_to_32: divides a 64-bit uint {u1, u0} by a 32-bit
+// uint {v}. The result must fit in 32 bits.
+// Returns the quotient directly and the remainder in *r
+static inline uint32_t libdivide_64_div_32_to_32(uint32_t u1, uint32_t u0, uint32_t v, uint32_t *r) {
+#if (defined(LIBDIVIDE_i386) || defined(LIBDIVIDE_X86_64)) && \
+ defined(LIBDIVIDE_GCC_STYLE_ASM)
+ uint32_t result;
+ __asm__("divl %[v]"
+ : "=a"(result), "=d"(*r)
+ : [v] "r"(v), "a"(u0), "d"(u1)
+ );
+ return result;
+#else
+ uint64_t n = ((uint64_t)u1 << 32) | u0;
+ uint32_t result = (uint32_t)(n / v);
+ *r = (uint32_t)(n - result * (uint64_t)v);
+ return result;
+#endif
+}
+
+// libdivide_128_div_64_to_64: divides a 128-bit uint {u1, u0} by a 64-bit
+// uint {v}. The result must fit in 64 bits.
+// Returns the quotient directly and the remainder in *r
+static uint64_t libdivide_128_div_64_to_64(uint64_t u1, uint64_t u0, uint64_t v, uint64_t *r) {
+#if defined(LIBDIVIDE_X86_64) && \
+ defined(LIBDIVIDE_GCC_STYLE_ASM)
+ uint64_t result;
+ __asm__("divq %[v]"
+ : "=a"(result), "=d"(*r)
+ : [v] "r"(v), "a"(u0), "d"(u1)
+ );
+ return result;
+#elif defined(HAS_INT128_T) && \
+ defined(HAS_INT128_DIV)
+ __uint128_t n = ((__uint128_t)u1 << 64) | u0;
+ uint64_t result = (uint64_t)(n / v);
+ *r = (uint64_t)(n - result * (__uint128_t)v);
+ return result;
+#else
+ // Code taken from Hacker's Delight:
+ // http://www.hackersdelight.org/HDcode/divlu.c.
+ // License permits inclusion here per:
+ // http://www.hackersdelight.org/permissions.htm
+
+ const uint64_t b = (1ULL << 32); // Number base (32 bits)
+ uint64_t un1, un0; // Norm. dividend LSD's
+ uint64_t vn1, vn0; // Norm. divisor digits
+ uint64_t q1, q0; // Quotient digits
+ uint64_t un64, un21, un10; // Dividend digit pairs
+ uint64_t rhat; // A remainder
+ int32_t s; // Shift amount for norm
+
+ // If overflow, set rem. to an impossible value,
+ // and return the largest possible quotient
+ if (u1 >= v) {
+ *r = (uint64_t) -1;
+ return (uint64_t) -1;
+ }
+
+ // count leading zeros
+ s = libdivide_count_leading_zeros64(v);
+ if (s > 0) {
+ // Normalize divisor
+ v = v << s;
+ un64 = (u1 << s) | (u0 >> (64 - s));
+ un10 = u0 << s; // Shift dividend left
+ } else {
+ // Avoid undefined behavior of (u0 >> 64).
+ // The behavior is undefined if the right operand is
+ // negative, or greater than or equal to the length
+ // in bits of the promoted left operand.
+ un64 = u1;
+ un10 = u0;
+ }
+
+ // Break divisor up into two 32-bit digits
+ vn1 = v >> 32;
+ vn0 = v & 0xFFFFFFFF;
+
+ // Break right half of dividend into two digits
+ un1 = un10 >> 32;
+ un0 = un10 & 0xFFFFFFFF;
+
+ // Compute the first quotient digit, q1
+ q1 = un64 / vn1;
+ rhat = un64 - q1 * vn1;
+
+ while (q1 >= b || q1 * vn0 > b * rhat + un1) {
+ q1 = q1 - 1;
+ rhat = rhat + vn1;
+ if (rhat >= b)
+ break;
+ }
+
+ // Multiply and subtract
+ un21 = un64 * b + un1 - q1 * v;
+
+ // Compute the second quotient digit
+ q0 = un21 / vn1;
+ rhat = un21 - q0 * vn1;
+
+ while (q0 >= b || q0 * vn0 > b * rhat + un0) {
+ q0 = q0 - 1;
+ rhat = rhat + vn1;
+ if (rhat >= b)
+ break;
+ }
+
+ *r = (un21 * b + un0 - q0 * v) >> s;
+ return q1 * b + q0;
+#endif
+}
+
+// Bitshift a u128 in place, left (signed_shift > 0) or right (signed_shift < 0)
+static inline void libdivide_u128_shift(uint64_t *u1, uint64_t *u0, int32_t signed_shift) {
+ if (signed_shift > 0) {
+ uint32_t shift = signed_shift;
+ *u1 <<= shift;
+ *u1 |= *u0 >> (64 - shift);
+ *u0 <<= shift;
+ }
+ else if (signed_shift < 0) {
+ uint32_t shift = -signed_shift;
+ *u0 >>= shift;
+ *u0 |= *u1 << (64 - shift);
+ *u1 >>= shift;
+ }
+}
+
+// Computes a 128 / 128 -> 64 bit division, with a 128 bit remainder.
+static uint64_t libdivide_128_div_128_to_64(uint64_t u_hi, uint64_t u_lo, uint64_t v_hi, uint64_t v_lo, uint64_t *r_hi, uint64_t *r_lo) {
+#if defined(HAS_INT128_T) && \
+ defined(HAS_INT128_DIV)
+ __uint128_t ufull = u_hi;
+ __uint128_t vfull = v_hi;
+ ufull = (ufull << 64) | u_lo;
+ vfull = (vfull << 64) | v_lo;
+ uint64_t res = (uint64_t)(ufull / vfull);
+ __uint128_t remainder = ufull - (vfull * res);
+ *r_lo = (uint64_t)remainder;
+ *r_hi = (uint64_t)(remainder >> 64);
+ return res;
+#else
+ // Adapted from "Unsigned Doubleword Division" in Hacker's Delight
+ // We want to compute u / v
+ typedef struct { uint64_t hi; uint64_t lo; } u128_t;
+ u128_t u = {u_hi, u_lo};
+ u128_t v = {v_hi, v_lo};
+
+ if (v.hi == 0) {
+ // divisor v is a 64 bit value, so we just need one 128/64 division
+ // Note that we are simpler than Hacker's Delight here, because we know
+ // the quotient fits in 64 bits whereas Hacker's Delight demands a full
+ // 128 bit quotient
+ *r_hi = 0;
+ return libdivide_128_div_64_to_64(u.hi, u.lo, v.lo, r_lo);
+ }
+ // Here v >= 2**64
+ // We know that v.hi != 0, so count leading zeros is OK
+ // We have 0 <= n <= 63
+ uint32_t n = libdivide_count_leading_zeros64(v.hi);
+
+ // Normalize the divisor so its MSB is 1
+ u128_t v1t = v;
+ libdivide_u128_shift(&v1t.hi, &v1t.lo, n);
+ uint64_t v1 = v1t.hi; // i.e. v1 = v1t >> 64
+
+ // To ensure no overflow
+ u128_t u1 = u;
+ libdivide_u128_shift(&u1.hi, &u1.lo, -1);
+
+ // Get quotient from divide unsigned insn.
+ uint64_t rem_ignored;
+ uint64_t q1 = libdivide_128_div_64_to_64(u1.hi, u1.lo, v1, &rem_ignored);
+
+ // Undo normalization and division of u by 2.
+ u128_t q0 = {0, q1};
+ libdivide_u128_shift(&q0.hi, &q0.lo, n);
+ libdivide_u128_shift(&q0.hi, &q0.lo, -63);
+
+ // Make q0 correct or too small by 1
+ // Equivalent to `if (q0 != 0) q0 = q0 - 1;`
+ if (q0.hi != 0 || q0.lo != 0) {
+ q0.hi -= (q0.lo == 0); // borrow
+ q0.lo -= 1;
+ }
+
+ // Now q0 is correct.
+ // Compute q0 * v as q0v
+ // = (q0.hi << 64 + q0.lo) * (v.hi << 64 + v.lo)
+ // = (q0.hi * v.hi << 128) + (q0.hi * v.lo << 64) +
+ // (q0.lo * v.hi << 64) + q0.lo * v.lo)
+ // Each term is 128 bit
+ // High half of full product (upper 128 bits!) are dropped
+ u128_t q0v = {0, 0};
+ q0v.hi = q0.hi*v.lo + q0.lo*v.hi + libdivide_mullhi_u64(q0.lo, v.lo);
+ q0v.lo = q0.lo*v.lo;
+
+ // Compute u - q0v as u_q0v
+ // This is the remainder
+ u128_t u_q0v = u;
+ u_q0v.hi -= q0v.hi + (u.lo < q0v.lo); // second term is borrow
+ u_q0v.lo -= q0v.lo;
+
+ // Check if u_q0v >= v
+ // This checks if our remainder is larger than the divisor
+ if ((u_q0v.hi > v.hi) ||
+ (u_q0v.hi == v.hi && u_q0v.lo >= v.lo)) {
+ // Increment q0
+ q0.lo += 1;
+ q0.hi += (q0.lo == 0); // carry
+
+ // Subtract v from remainder
+ u_q0v.hi -= v.hi + (u_q0v.lo < v.lo);
+ u_q0v.lo -= v.lo;
+ }
+
+ *r_hi = u_q0v.hi;
+ *r_lo = u_q0v.lo;
+
+ LIBDIVIDE_ASSERT(q0.hi == 0);
+ return q0.lo;
+#endif
+}
+
+////////// UINT32
+
+static inline struct libdivide_u32_t libdivide_internal_u32_gen(uint32_t d, int branchfree) {
+ if (d == 0) {
+ LIBDIVIDE_ERROR("divider must be != 0");
+ }
+
+ struct libdivide_u32_t result;
+ uint32_t floor_log_2_d = 31 - libdivide_count_leading_zeros32(d);
+
+ // Power of 2
+ if ((d & (d - 1)) == 0) {
+ // We need to subtract 1 from the shift value in case of an unsigned
+ // branchfree divider because there is a hardcoded right shift by 1
+ // in its division algorithm. Because of this we also need to add back
+ // 1 in its recovery algorithm.
+ result.magic = 0;
+ result.more = (uint8_t)(floor_log_2_d - (branchfree != 0));
+ } else {
+ uint8_t more;
+ uint32_t rem, proposed_m;
+ proposed_m = libdivide_64_div_32_to_32(1U << floor_log_2_d, 0, d, &rem);
+
+ LIBDIVIDE_ASSERT(rem > 0 && rem < d);
+ const uint32_t e = d - rem;
+
+ // This power works if e < 2**floor_log_2_d.
+ if (!branchfree && (e < (1U << floor_log_2_d))) {
+ // This power works
+ more = floor_log_2_d;
+ } else {
+ // We have to use the general 33-bit algorithm. We need to compute
+ // (2**power) / d. However, we already have (2**(power-1))/d and
+ // its remainder. By doubling both, and then correcting the
+ // remainder, we can compute the larger division.
+ // don't care about overflow here - in fact, we expect it
+ proposed_m += proposed_m;
+ const uint32_t twice_rem = rem + rem;
+ if (twice_rem >= d || twice_rem < rem) proposed_m += 1;
+ more = floor_log_2_d | LIBDIVIDE_ADD_MARKER;
+ }
+ result.magic = 1 + proposed_m;
+ result.more = more;
+ // result.more's shift should in general be ceil_log_2_d. But if we
+ // used the smaller power, we subtract one from the shift because we're
+ // using the smaller power. If we're using the larger power, we
+ // subtract one from the shift because it's taken care of by the add
+ // indicator. So floor_log_2_d happens to be correct in both cases.
+ }
+ return result;
+}
+
+struct libdivide_u32_t libdivide_u32_gen(uint32_t d) {
+ return libdivide_internal_u32_gen(d, 0);
+}
+
+struct libdivide_u32_branchfree_t libdivide_u32_branchfree_gen(uint32_t d) {
+ if (d == 1) {
+ LIBDIVIDE_ERROR("branchfree divider must be != 1");
+ }
+ struct libdivide_u32_t tmp = libdivide_internal_u32_gen(d, 1);
+ struct libdivide_u32_branchfree_t ret = {tmp.magic, (uint8_t)(tmp.more & LIBDIVIDE_32_SHIFT_MASK)};
+ return ret;
+}
+
+uint32_t libdivide_u32_do(uint32_t numer, const struct libdivide_u32_t *denom) {
+ uint8_t more = denom->more;
+ if (!denom->magic) {
+ return numer >> more;
+ }
+ else {
+ uint32_t q = libdivide_mullhi_u32(denom->magic, numer);
+ if (more & LIBDIVIDE_ADD_MARKER) {
+ uint32_t t = ((numer - q) >> 1) + q;
+ return t >> (more & LIBDIVIDE_32_SHIFT_MASK);
+ }
+ else {
+ // All upper bits are 0,
+ // don't need to mask them off.
+ return q >> more;
+ }
+ }
+}
+
+uint32_t libdivide_u32_branchfree_do(uint32_t numer, const struct libdivide_u32_branchfree_t *denom) {
+ uint32_t q = libdivide_mullhi_u32(denom->magic, numer);
+ uint32_t t = ((numer - q) >> 1) + q;
+ return t >> denom->more;
+}
+
+uint32_t libdivide_u32_recover(const struct libdivide_u32_t *denom) {
+ uint8_t more = denom->more;
+ uint8_t shift = more & LIBDIVIDE_32_SHIFT_MASK;
+
+ if (!denom->magic) {
+ return 1U << shift;
+ } else if (!(more & LIBDIVIDE_ADD_MARKER)) {
+ // We compute q = n/d = n*m / 2^(32 + shift)
+ // Therefore we have d = 2^(32 + shift) / m
+ // We need to ceil it.
+ // We know d is not a power of 2, so m is not a power of 2,
+ // so we can just add 1 to the floor
+ uint32_t hi_dividend = 1U << shift;
+ uint32_t rem_ignored;
+ return 1 + libdivide_64_div_32_to_32(hi_dividend, 0, denom->magic, &rem_ignored);
+ } else {
+ // Here we wish to compute d = 2^(32+shift+1)/(m+2^32).
+ // Notice (m + 2^32) is a 33 bit number. Use 64 bit division for now
+ // Also note that shift may be as high as 31, so shift + 1 will
+ // overflow. So we have to compute it as 2^(32+shift)/(m+2^32), and
+ // then double the quotient and remainder.
+ uint64_t half_n = 1ULL << (32 + shift);
+ uint64_t d = (1ULL << 32) | denom->magic;
+ // Note that the quotient is guaranteed <= 32 bits, but the remainder
+ // may need 33!
+ uint32_t half_q = (uint32_t)(half_n / d);
+ uint64_t rem = half_n % d;
+ // We computed 2^(32+shift)/(m+2^32)
+ // Need to double it, and then add 1 to the quotient if doubling th
+ // remainder would increase the quotient.
+ // Note that rem<<1 cannot overflow, since rem < d and d is 33 bits
+ uint32_t full_q = half_q + half_q + ((rem<<1) >= d);
+
+ // We rounded down in gen (hence +1)
+ return full_q + 1;
+ }
+}
+
+uint32_t libdivide_u32_branchfree_recover(const struct libdivide_u32_branchfree_t *denom) {
+ uint8_t more = denom->more;
+ uint8_t shift = more & LIBDIVIDE_32_SHIFT_MASK;
+
+ if (!denom->magic) {
+ return 1U << (shift + 1);
+ } else {
+ // Here we wish to compute d = 2^(32+shift+1)/(m+2^32).
+ // Notice (m + 2^32) is a 33 bit number. Use 64 bit division for now
+ // Also note that shift may be as high as 31, so shift + 1 will
+ // overflow. So we have to compute it as 2^(32+shift)/(m+2^32), and
+ // then double the quotient and remainder.
+ uint64_t half_n = 1ULL << (32 + shift);
+ uint64_t d = (1ULL << 32) | denom->magic;
+ // Note that the quotient is guaranteed <= 32 bits, but the remainder
+ // may need 33!
+ uint32_t half_q = (uint32_t)(half_n / d);
+ uint64_t rem = half_n % d;
+ // We computed 2^(32+shift)/(m+2^32)
+ // Need to double it, and then add 1 to the quotient if doubling th
+ // remainder would increase the quotient.
+ // Note that rem<<1 cannot overflow, since rem < d and d is 33 bits
+ uint32_t full_q = half_q + half_q + ((rem<<1) >= d);
+
+ // We rounded down in gen (hence +1)
+ return full_q + 1;
+ }
+}
+
+/////////// UINT64
+
+static inline struct libdivide_u64_t libdivide_internal_u64_gen(uint64_t d, int branchfree) {
+ if (d == 0) {
+ LIBDIVIDE_ERROR("divider must be != 0");
+ }
+
+ struct libdivide_u64_t result;
+ uint32_t floor_log_2_d = 63 - libdivide_count_leading_zeros64(d);
+
+ // Power of 2
+ if ((d & (d - 1)) == 0) {
+ // We need to subtract 1 from the shift value in case of an unsigned
+ // branchfree divider because there is a hardcoded right shift by 1
+ // in its division algorithm. Because of this we also need to add back
+ // 1 in its recovery algorithm.
+ result.magic = 0;
+ result.more = (uint8_t)(floor_log_2_d - (branchfree != 0));
+ } else {
+ uint64_t proposed_m, rem;
+ uint8_t more;
+ // (1 << (64 + floor_log_2_d)) / d
+ proposed_m = libdivide_128_div_64_to_64(1ULL << floor_log_2_d, 0, d, &rem);
+
+ LIBDIVIDE_ASSERT(rem > 0 && rem < d);
+ const uint64_t e = d - rem;
+
+ // This power works if e < 2**floor_log_2_d.
+ if (!branchfree && e < (1ULL << floor_log_2_d)) {
+ // This power works
+ more = floor_log_2_d;
+ } else {
+ // We have to use the general 65-bit algorithm. We need to compute
+ // (2**power) / d. However, we already have (2**(power-1))/d and
+ // its remainder. By doubling both, and then correcting the
+ // remainder, we can compute the larger division.
+ // don't care about overflow here - in fact, we expect it
+ proposed_m += proposed_m;
+ const uint64_t twice_rem = rem + rem;
+ if (twice_rem >= d || twice_rem < rem) proposed_m += 1;
+ more = floor_log_2_d | LIBDIVIDE_ADD_MARKER;
+ }
+ result.magic = 1 + proposed_m;
+ result.more = more;
+ // result.more's shift should in general be ceil_log_2_d. But if we
+ // used the smaller power, we subtract one from the shift because we're
+ // using the smaller power. If we're using the larger power, we
+ // subtract one from the shift because it's taken care of by the add
+ // indicator. So floor_log_2_d happens to be correct in both cases,
+ // which is why we do it outside of the if statement.
+ }
+ return result;
+}
+
+struct libdivide_u64_t libdivide_u64_gen(uint64_t d) {
+ return libdivide_internal_u64_gen(d, 0);
+}
+
+struct libdivide_u64_branchfree_t libdivide_u64_branchfree_gen(uint64_t d) {
+ if (d == 1) {
+ LIBDIVIDE_ERROR("branchfree divider must be != 1");
+ }
+ struct libdivide_u64_t tmp = libdivide_internal_u64_gen(d, 1);
+ struct libdivide_u64_branchfree_t ret = {tmp.magic, (uint8_t)(tmp.more & LIBDIVIDE_64_SHIFT_MASK)};
+ return ret;
+}
+
+uint64_t libdivide_u64_do(uint64_t numer, const struct libdivide_u64_t *denom) {
+ uint8_t more = denom->more;
+ if (!denom->magic) {
+ return numer >> more;
+ }
+ else {
+ uint64_t q = libdivide_mullhi_u64(denom->magic, numer);
+ if (more & LIBDIVIDE_ADD_MARKER) {
+ uint64_t t = ((numer - q) >> 1) + q;
+ return t >> (more & LIBDIVIDE_64_SHIFT_MASK);
+ }
+ else {
+ // All upper bits are 0,
+ // don't need to mask them off.
+ return q >> more;
+ }
+ }
+}
+
+uint64_t libdivide_u64_branchfree_do(uint64_t numer, const struct libdivide_u64_branchfree_t *denom) {
+ uint64_t q = libdivide_mullhi_u64(denom->magic, numer);
+ uint64_t t = ((numer - q) >> 1) + q;
+ return t >> denom->more;
+}
+
+uint64_t libdivide_u64_recover(const struct libdivide_u64_t *denom) {
+ uint8_t more = denom->more;
+ uint8_t shift = more & LIBDIVIDE_64_SHIFT_MASK;
+
+ if (!denom->magic) {
+ return 1ULL << shift;
+ } else if (!(more & LIBDIVIDE_ADD_MARKER)) {
+ // We compute q = n/d = n*m / 2^(64 + shift)
+ // Therefore we have d = 2^(64 + shift) / m
+ // We need to ceil it.
+ // We know d is not a power of 2, so m is not a power of 2,
+ // so we can just add 1 to the floor
+ uint64_t hi_dividend = 1ULL << shift;
+ uint64_t rem_ignored;
+ return 1 + libdivide_128_div_64_to_64(hi_dividend, 0, denom->magic, &rem_ignored);
+ } else {
+ // Here we wish to compute d = 2^(64+shift+1)/(m+2^64).
+ // Notice (m + 2^64) is a 65 bit number. This gets hairy. See
+ // libdivide_u32_recover for more on what we do here.
+ // TODO: do something better than 128 bit math
+
+ // Full n is a (potentially) 129 bit value
+ // half_n is a 128 bit value
+ // Compute the hi half of half_n. Low half is 0.
+ uint64_t half_n_hi = 1ULL << shift, half_n_lo = 0;
+ // d is a 65 bit value. The high bit is always set to 1.
+ const uint64_t d_hi = 1, d_lo = denom->magic;
+ // Note that the quotient is guaranteed <= 64 bits,
+ // but the remainder may need 65!
+ uint64_t r_hi, r_lo;
+ uint64_t half_q = libdivide_128_div_128_to_64(half_n_hi, half_n_lo, d_hi, d_lo, &r_hi, &r_lo);
+ // We computed 2^(64+shift)/(m+2^64)
+ // Double the remainder ('dr') and check if that is larger than d
+ // Note that d is a 65 bit value, so r1 is small and so r1 + r1
+ // cannot overflow
+ uint64_t dr_lo = r_lo + r_lo;
+ uint64_t dr_hi = r_hi + r_hi + (dr_lo < r_lo); // last term is carry
+ int dr_exceeds_d = (dr_hi > d_hi) || (dr_hi == d_hi && dr_lo >= d_lo);
+ uint64_t full_q = half_q + half_q + (dr_exceeds_d ? 1 : 0);
+ return full_q + 1;
+ }
+}
+
+uint64_t libdivide_u64_branchfree_recover(const struct libdivide_u64_branchfree_t *denom) {
+ uint8_t more = denom->more;
+ uint8_t shift = more & LIBDIVIDE_64_SHIFT_MASK;
+
+ if (!denom->magic) {
+ return 1ULL << (shift + 1);
+ } else {
+ // Here we wish to compute d = 2^(64+shift+1)/(m+2^64).
+ // Notice (m + 2^64) is a 65 bit number. This gets hairy. See
+ // libdivide_u32_recover for more on what we do here.
+ // TODO: do something better than 128 bit math
+
+ // Full n is a (potentially) 129 bit value
+ // half_n is a 128 bit value
+ // Compute the hi half of half_n. Low half is 0.
+ uint64_t half_n_hi = 1ULL << shift, half_n_lo = 0;
+ // d is a 65 bit value. The high bit is always set to 1.
+ const uint64_t d_hi = 1, d_lo = denom->magic;
+ // Note that the quotient is guaranteed <= 64 bits,
+ // but the remainder may need 65!
+ uint64_t r_hi, r_lo;
+ uint64_t half_q = libdivide_128_div_128_to_64(half_n_hi, half_n_lo, d_hi, d_lo, &r_hi, &r_lo);
+ // We computed 2^(64+shift)/(m+2^64)
+ // Double the remainder ('dr') and check if that is larger than d
+ // Note that d is a 65 bit value, so r1 is small and so r1 + r1
+ // cannot overflow
+ uint64_t dr_lo = r_lo + r_lo;
+ uint64_t dr_hi = r_hi + r_hi + (dr_lo < r_lo); // last term is carry
+ int dr_exceeds_d = (dr_hi > d_hi) || (dr_hi == d_hi && dr_lo >= d_lo);
+ uint64_t full_q = half_q + half_q + (dr_exceeds_d ? 1 : 0);
+ return full_q + 1;
+ }
+}
+
+/////////// SINT32
+
+static inline struct libdivide_s32_t libdivide_internal_s32_gen(int32_t d, int branchfree) {
+ if (d == 0) {
+ LIBDIVIDE_ERROR("divider must be != 0");
+ }
+
+ struct libdivide_s32_t result;
+
+ // If d is a power of 2, or negative a power of 2, we have to use a shift.
+ // This is especially important because the magic algorithm fails for -1.
+ // To check if d is a power of 2 or its inverse, it suffices to check
+ // whether its absolute value has exactly one bit set. This works even for
+ // INT_MIN, because abs(INT_MIN) == INT_MIN, and INT_MIN has one bit set
+ // and is a power of 2.
+ uint32_t ud = (uint32_t)d;
+ uint32_t absD = (d < 0) ? -ud : ud;
+ uint32_t floor_log_2_d = 31 - libdivide_count_leading_zeros32(absD);
+ // check if exactly one bit is set,
+ // don't care if absD is 0 since that's divide by zero
+ if ((absD & (absD - 1)) == 0) {
+ // Branchfree and normal paths are exactly the same
+ result.magic = 0;
+ result.more = floor_log_2_d | (d < 0 ? LIBDIVIDE_NEGATIVE_DIVISOR : 0);
+ } else {
+ LIBDIVIDE_ASSERT(floor_log_2_d >= 1);
+
+ uint8_t more;
+ // the dividend here is 2**(floor_log_2_d + 31), so the low 32 bit word
+ // is 0 and the high word is floor_log_2_d - 1
+ uint32_t rem, proposed_m;
+ proposed_m = libdivide_64_div_32_to_32(1U << (floor_log_2_d - 1), 0, absD, &rem);
+ const uint32_t e = absD - rem;
+
+ // We are going to start with a power of floor_log_2_d - 1.
+ // This works if works if e < 2**floor_log_2_d.
+ if (!branchfree && e < (1U << floor_log_2_d)) {
+ // This power works
+ more = floor_log_2_d - 1;
+ } else {
+ // We need to go one higher. This should not make proposed_m
+ // overflow, but it will make it negative when interpreted as an
+ // int32_t.
+ proposed_m += proposed_m;
+ const uint32_t twice_rem = rem + rem;
+ if (twice_rem >= absD || twice_rem < rem) proposed_m += 1;
+ more = floor_log_2_d | LIBDIVIDE_ADD_MARKER;
+ }
+
+ proposed_m += 1;
+ int32_t magic = (int32_t)proposed_m;
+
+ // Mark if we are negative. Note we only negate the magic number in the
+ // branchfull case.
+ if (d < 0) {
+ more |= LIBDIVIDE_NEGATIVE_DIVISOR;
+ if (!branchfree) {
+ magic = -magic;
+ }
+ }
+
+ result.more = more;
+ result.magic = magic;
+ }
+ return result;
+}
+
+struct libdivide_s32_t libdivide_s32_gen(int32_t d) {
+ return libdivide_internal_s32_gen(d, 0);
+}
+
+struct libdivide_s32_branchfree_t libdivide_s32_branchfree_gen(int32_t d) {
+ struct libdivide_s32_t tmp = libdivide_internal_s32_gen(d, 1);
+ struct libdivide_s32_branchfree_t result = {tmp.magic, tmp.more};
+ return result;
+}
+
+int32_t libdivide_s32_do(int32_t numer, const struct libdivide_s32_t *denom) {
+ uint8_t more = denom->more;
+ uint8_t shift = more & LIBDIVIDE_32_SHIFT_MASK;
+
+ if (!denom->magic) {
+ uint32_t sign = (int8_t)more >> 7;
+ uint32_t mask = (1U << shift) - 1;
+ uint32_t uq = numer + ((numer >> 31) & mask);
+ int32_t q = (int32_t)uq;
+ q >>= shift;
+ q = (q ^ sign) - sign;
+ return q;
+ } else {
+ uint32_t uq = (uint32_t)libdivide_mullhi_s32(denom->magic, numer);
+ if (more & LIBDIVIDE_ADD_MARKER) {
+ // must be arithmetic shift and then sign extend
+ int32_t sign = (int8_t)more >> 7;
+ // q += (more < 0 ? -numer : numer)
+ // cast required to avoid UB
+ uq += ((uint32_t)numer ^ sign) - sign;
+ }
+ int32_t q = (int32_t)uq;
+ q >>= shift;
+ q += (q < 0);
+ return q;
+ }
+}
+
+int32_t libdivide_s32_branchfree_do(int32_t numer, const struct libdivide_s32_branchfree_t *denom) {
+ uint8_t more = denom->more;
+ uint8_t shift = more & LIBDIVIDE_32_SHIFT_MASK;
+ // must be arithmetic shift and then sign extend
+ int32_t sign = (int8_t)more >> 7;
+ int32_t magic = denom->magic;
+ int32_t q = libdivide_mullhi_s32(magic, numer);
+ q += numer;
+
+ // If q is non-negative, we have nothing to do
+ // If q is negative, we want to add either (2**shift)-1 if d is a power of
+ // 2, or (2**shift) if it is not a power of 2
+ uint32_t is_power_of_2 = (magic == 0);
+ uint32_t q_sign = (uint32_t)(q >> 31);
+ q += q_sign & ((1U << shift) - is_power_of_2);
+
+ // Now arithmetic right shift
+ q >>= shift;
+ // Negate if needed
+ q = (q ^ sign) - sign;
+
+ return q;
+}
+
+int32_t libdivide_s32_recover(const struct libdivide_s32_t *denom) {
+ uint8_t more = denom->more;
+ uint8_t shift = more & LIBDIVIDE_32_SHIFT_MASK;
+ if (!denom->magic) {
+ uint32_t absD = 1U << shift;
+ if (more & LIBDIVIDE_NEGATIVE_DIVISOR) {
+ absD = -absD;
+ }
+ return (int32_t)absD;
+ } else {
+ // Unsigned math is much easier
+ // We negate the magic number only in the branchfull case, and we don't
+ // know which case we're in. However we have enough information to
+ // determine the correct sign of the magic number. The divisor was
+ // negative if LIBDIVIDE_NEGATIVE_DIVISOR is set. If ADD_MARKER is set,
+ // the magic number's sign is opposite that of the divisor.
+ // We want to compute the positive magic number.
+ int negative_divisor = (more & LIBDIVIDE_NEGATIVE_DIVISOR);
+ int magic_was_negated = (more & LIBDIVIDE_ADD_MARKER)
+ ? denom->magic > 0 : denom->magic < 0;
+
+ // Handle the power of 2 case (including branchfree)
+ if (denom->magic == 0) {
+ int32_t result = 1U << shift;
+ return negative_divisor ? -result : result;
+ }
+
+ uint32_t d = (uint32_t)(magic_was_negated ? -denom->magic : denom->magic);
+ uint64_t n = 1ULL << (32 + shift); // this shift cannot exceed 30
+ uint32_t q = (uint32_t)(n / d);
+ int32_t result = (int32_t)q;
+ result += 1;
+ return negative_divisor ? -result : result;
+ }
+}
+
+int32_t libdivide_s32_branchfree_recover(const struct libdivide_s32_branchfree_t *denom) {
+ return libdivide_s32_recover((const struct libdivide_s32_t *)denom);
+}
+
+///////////// SINT64
+
+static inline struct libdivide_s64_t libdivide_internal_s64_gen(int64_t d, int branchfree) {
+ if (d == 0) {
+ LIBDIVIDE_ERROR("divider must be != 0");
+ }
+
+ struct libdivide_s64_t result;
+
+ // If d is a power of 2, or negative a power of 2, we have to use a shift.
+ // This is especially important because the magic algorithm fails for -1.
+ // To check if d is a power of 2 or its inverse, it suffices to check
+ // whether its absolute value has exactly one bit set. This works even for
+ // INT_MIN, because abs(INT_MIN) == INT_MIN, and INT_MIN has one bit set
+ // and is a power of 2.
+ uint64_t ud = (uint64_t)d;
+ uint64_t absD = (d < 0) ? -ud : ud;
+ uint32_t floor_log_2_d = 63 - libdivide_count_leading_zeros64(absD);
+ // check if exactly one bit is set,
+ // don't care if absD is 0 since that's divide by zero
+ if ((absD & (absD - 1)) == 0) {
+ // Branchfree and non-branchfree cases are the same
+ result.magic = 0;
+ result.more = floor_log_2_d | (d < 0 ? LIBDIVIDE_NEGATIVE_DIVISOR : 0);
+ } else {
+ // the dividend here is 2**(floor_log_2_d + 63), so the low 64 bit word
+ // is 0 and the high word is floor_log_2_d - 1
+ uint8_t more;
+ uint64_t rem, proposed_m;
+ proposed_m = libdivide_128_div_64_to_64(1ULL << (floor_log_2_d - 1), 0, absD, &rem);
+ const uint64_t e = absD - rem;
+
+ // We are going to start with a power of floor_log_2_d - 1.
+ // This works if works if e < 2**floor_log_2_d.
+ if (!branchfree && e < (1ULL << floor_log_2_d)) {
+ // This power works
+ more = floor_log_2_d - 1;
+ } else {
+ // We need to go one higher. This should not make proposed_m
+ // overflow, but it will make it negative when interpreted as an
+ // int32_t.
+ proposed_m += proposed_m;
+ const uint64_t twice_rem = rem + rem;
+ if (twice_rem >= absD || twice_rem < rem) proposed_m += 1;
+ // note that we only set the LIBDIVIDE_NEGATIVE_DIVISOR bit if we
+ // also set ADD_MARKER this is an annoying optimization that
+ // enables algorithm #4 to avoid the mask. However we always set it
+ // in the branchfree case
+ more = floor_log_2_d | LIBDIVIDE_ADD_MARKER;
+ }
+ proposed_m += 1;
+ int64_t magic = (int64_t)proposed_m;
+
+ // Mark if we are negative
+ if (d < 0) {
+ more |= LIBDIVIDE_NEGATIVE_DIVISOR;
+ if (!branchfree) {
+ magic = -magic;
+ }
+ }
+
+ result.more = more;
+ result.magic = magic;
+ }
+ return result;
+}
+
+struct libdivide_s64_t libdivide_s64_gen(int64_t d) {
+ return libdivide_internal_s64_gen(d, 0);
+}
+
+struct libdivide_s64_branchfree_t libdivide_s64_branchfree_gen(int64_t d) {
+ struct libdivide_s64_t tmp = libdivide_internal_s64_gen(d, 1);
+ struct libdivide_s64_branchfree_t ret = {tmp.magic, tmp.more};
+ return ret;
+}
+
+int64_t libdivide_s64_do(int64_t numer, const struct libdivide_s64_t *denom) {
+ uint8_t more = denom->more;
+ uint8_t shift = more & LIBDIVIDE_64_SHIFT_MASK;
+
+ if (!denom->magic) { // shift path
+ uint64_t mask = (1ULL << shift) - 1;
+ uint64_t uq = numer + ((numer >> 63) & mask);
+ int64_t q = (int64_t)uq;
+ q >>= shift;
+ // must be arithmetic shift and then sign-extend
+ int64_t sign = (int8_t)more >> 7;
+ q = (q ^ sign) - sign;
+ return q;
+ } else {
+ uint64_t uq = (uint64_t)libdivide_mullhi_s64(denom->magic, numer);
+ if (more & LIBDIVIDE_ADD_MARKER) {
+ // must be arithmetic shift and then sign extend
+ int64_t sign = (int8_t)more >> 7;
+ // q += (more < 0 ? -numer : numer)
+ // cast required to avoid UB
+ uq += ((uint64_t)numer ^ sign) - sign;
+ }
+ int64_t q = (int64_t)uq;
+ q >>= shift;
+ q += (q < 0);
+ return q;
+ }
+}
+
+int64_t libdivide_s64_branchfree_do(int64_t numer, const struct libdivide_s64_branchfree_t *denom) {
+ uint8_t more = denom->more;
+ uint8_t shift = more & LIBDIVIDE_64_SHIFT_MASK;
+ // must be arithmetic shift and then sign extend
+ int64_t sign = (int8_t)more >> 7;
+ int64_t magic = denom->magic;
+ int64_t q = libdivide_mullhi_s64(magic, numer);
+ q += numer;
+
+ // If q is non-negative, we have nothing to do.
+ // If q is negative, we want to add either (2**shift)-1 if d is a power of
+ // 2, or (2**shift) if it is not a power of 2.
+ uint64_t is_power_of_2 = (magic == 0);
+ uint64_t q_sign = (uint64_t)(q >> 63);
+ q += q_sign & ((1ULL << shift) - is_power_of_2);
+
+ // Arithmetic right shift
+ q >>= shift;
+ // Negate if needed
+ q = (q ^ sign) - sign;
+
+ return q;
+}
+
+int64_t libdivide_s64_recover(const struct libdivide_s64_t *denom) {
+ uint8_t more = denom->more;
+ uint8_t shift = more & LIBDIVIDE_64_SHIFT_MASK;
+ if (denom->magic == 0) { // shift path
+ uint64_t absD = 1ULL << shift;
+ if (more & LIBDIVIDE_NEGATIVE_DIVISOR) {
+ absD = -absD;
+ }
+ return (int64_t)absD;
+ } else {
+ // Unsigned math is much easier
+ int negative_divisor = (more & LIBDIVIDE_NEGATIVE_DIVISOR);
+ int magic_was_negated = (more & LIBDIVIDE_ADD_MARKER)
+ ? denom->magic > 0 : denom->magic < 0;
+
+ uint64_t d = (uint64_t)(magic_was_negated ? -denom->magic : denom->magic);
+ uint64_t n_hi = 1ULL << shift, n_lo = 0;
+ uint64_t rem_ignored;
+ uint64_t q = libdivide_128_div_64_to_64(n_hi, n_lo, d, &rem_ignored);
+ int64_t result = (int64_t)(q + 1);
+ if (negative_divisor) {
+ result = -result;
+ }
+ return result;
+ }
+}
+
+int64_t libdivide_s64_branchfree_recover(const struct libdivide_s64_branchfree_t *denom) {
+ return libdivide_s64_recover((const struct libdivide_s64_t *)denom);
+}
+
+#if defined(LIBDIVIDE_AVX512)
+
+static inline __m512i libdivide_u32_do_vector(__m512i numers, const struct libdivide_u32_t *denom);
+static inline __m512i libdivide_s32_do_vector(__m512i numers, const struct libdivide_s32_t *denom);
+static inline __m512i libdivide_u64_do_vector(__m512i numers, const struct libdivide_u64_t *denom);
+static inline __m512i libdivide_s64_do_vector(__m512i numers, const struct libdivide_s64_t *denom);
+
+static inline __m512i libdivide_u32_branchfree_do_vector(__m512i numers, const struct libdivide_u32_branchfree_t *denom);
+static inline __m512i libdivide_s32_branchfree_do_vector(__m512i numers, const struct libdivide_s32_branchfree_t *denom);
+static inline __m512i libdivide_u64_branchfree_do_vector(__m512i numers, const struct libdivide_u64_branchfree_t *denom);
+static inline __m512i libdivide_s64_branchfree_do_vector(__m512i numers, const struct libdivide_s64_branchfree_t *denom);
+
+//////// Internal Utility Functions
+
+static inline __m512i libdivide_s64_signbits(__m512i v) {;
+ return _mm512_srai_epi64(v, 63);
+}
+
+static inline __m512i libdivide_s64_shift_right_vector(__m512i v, int amt) {
+ return _mm512_srai_epi64(v, amt);
+}
+
+// Here, b is assumed to contain one 32-bit value repeated.
+static inline __m512i libdivide_mullhi_u32_vector(__m512i a, __m512i b) {
+ __m512i hi_product_0Z2Z = _mm512_srli_epi64(_mm512_mul_epu32(a, b), 32);
+ __m512i a1X3X = _mm512_srli_epi64(a, 32);
+ __m512i mask = _mm512_set_epi32(-1, 0, -1, 0, -1, 0, -1, 0, -1, 0, -1, 0, -1, 0, -1, 0);
+ __m512i hi_product_Z1Z3 = _mm512_and_si512(_mm512_mul_epu32(a1X3X, b), mask);
+ return _mm512_or_si512(hi_product_0Z2Z, hi_product_Z1Z3);
+}
+
+// b is one 32-bit value repeated.
+static inline __m512i libdivide_mullhi_s32_vector(__m512i a, __m512i b) {
+ __m512i hi_product_0Z2Z = _mm512_srli_epi64(_mm512_mul_epi32(a, b), 32);
+ __m512i a1X3X = _mm512_srli_epi64(a, 32);
+ __m512i mask = _mm512_set_epi32(-1, 0, -1, 0, -1, 0, -1, 0, -1, 0, -1, 0, -1, 0, -1, 0);
+ __m512i hi_product_Z1Z3 = _mm512_and_si512(_mm512_mul_epi32(a1X3X, b), mask);
+ return _mm512_or_si512(hi_product_0Z2Z, hi_product_Z1Z3);
+}
+
+// Here, y is assumed to contain one 64-bit value repeated.
+// https://stackoverflow.com/a/28827013
+static inline __m512i libdivide_mullhi_u64_vector(__m512i x, __m512i y) {
+ __m512i lomask = _mm512_set1_epi64(0xffffffff);
+ __m512i xh = _mm512_shuffle_epi32(x, (_MM_PERM_ENUM) 0xB1);
+ __m512i yh = _mm512_shuffle_epi32(y, (_MM_PERM_ENUM) 0xB1);
+ __m512i w0 = _mm512_mul_epu32(x, y);
+ __m512i w1 = _mm512_mul_epu32(x, yh);
+ __m512i w2 = _mm512_mul_epu32(xh, y);
+ __m512i w3 = _mm512_mul_epu32(xh, yh);
+ __m512i w0h = _mm512_srli_epi64(w0, 32);
+ __m512i s1 = _mm512_add_epi64(w1, w0h);
+ __m512i s1l = _mm512_and_si512(s1, lomask);
+ __m512i s1h = _mm512_srli_epi64(s1, 32);
+ __m512i s2 = _mm512_add_epi64(w2, s1l);
+ __m512i s2h = _mm512_srli_epi64(s2, 32);
+ __m512i hi = _mm512_add_epi64(w3, s1h);
+ hi = _mm512_add_epi64(hi, s2h);
+
+ return hi;
+}
+
+// y is one 64-bit value repeated.
+static inline __m512i libdivide_mullhi_s64_vector(__m512i x, __m512i y) {
+ __m512i p = libdivide_mullhi_u64_vector(x, y);
+ __m512i t1 = _mm512_and_si512(libdivide_s64_signbits(x), y);
+ __m512i t2 = _mm512_and_si512(libdivide_s64_signbits(y), x);
+ p = _mm512_sub_epi64(p, t1);
+ p = _mm512_sub_epi64(p, t2);
+ return p;
+}
+
+////////// UINT32
+
+__m512i libdivide_u32_do_vector(__m512i numers, const struct libdivide_u32_t *denom) {
+ uint8_t more = denom->more;
+ if (!denom->magic) {
+ return _mm512_srli_epi32(numers, more);
+ }
+ else {
+ __m512i q = libdivide_mullhi_u32_vector(numers, _mm512_set1_epi32(denom->magic));
+ if (more & LIBDIVIDE_ADD_MARKER) {
+ // uint32_t t = ((numer - q) >> 1) + q;
+ // return t >> denom->shift;
+ uint32_t shift = more & LIBDIVIDE_32_SHIFT_MASK;
+ __m512i t = _mm512_add_epi32(_mm512_srli_epi32(_mm512_sub_epi32(numers, q), 1), q);
+ return _mm512_srli_epi32(t, shift);
+ }
+ else {
+ return _mm512_srli_epi32(q, more);
+ }
+ }
+}
+
+__m512i libdivide_u32_branchfree_do_vector(__m512i numers, const struct libdivide_u32_branchfree_t *denom) {
+ __m512i q = libdivide_mullhi_u32_vector(numers, _mm512_set1_epi32(denom->magic));
+ __m512i t = _mm512_add_epi32(_mm512_srli_epi32(_mm512_sub_epi32(numers, q), 1), q);
+ return _mm512_srli_epi32(t, denom->more);
+}
+
+////////// UINT64
+
+__m512i libdivide_u64_do_vector(__m512i numers, const struct libdivide_u64_t *denom) {
+ uint8_t more = denom->more;
+ if (!denom->magic) {
+ return _mm512_srli_epi64(numers, more);
+ }
+ else {
+ __m512i q = libdivide_mullhi_u64_vector(numers, _mm512_set1_epi64(denom->magic));
+ if (more & LIBDIVIDE_ADD_MARKER) {
+ // uint32_t t = ((numer - q) >> 1) + q;
+ // return t >> denom->shift;
+ uint32_t shift = more & LIBDIVIDE_64_SHIFT_MASK;
+ __m512i t = _mm512_add_epi64(_mm512_srli_epi64(_mm512_sub_epi64(numers, q), 1), q);
+ return _mm512_srli_epi64(t, shift);
+ }
+ else {
+ return _mm512_srli_epi64(q, more);
+ }
+ }
+}
+
+__m512i libdivide_u64_branchfree_do_vector(__m512i numers, const struct libdivide_u64_branchfree_t *denom) {
+ __m512i q = libdivide_mullhi_u64_vector(numers, _mm512_set1_epi64(denom->magic));
+ __m512i t = _mm512_add_epi64(_mm512_srli_epi64(_mm512_sub_epi64(numers, q), 1), q);
+ return _mm512_srli_epi64(t, denom->more);
+}
+
+////////// SINT32
+
+__m512i libdivide_s32_do_vector(__m512i numers, const struct libdivide_s32_t *denom) {
+ uint8_t more = denom->more;
+ if (!denom->magic) {
+ uint32_t shift = more & LIBDIVIDE_32_SHIFT_MASK;
+ uint32_t mask = (1U << shift) - 1;
+ __m512i roundToZeroTweak = _mm512_set1_epi32(mask);
+ // q = numer + ((numer >> 31) & roundToZeroTweak);
+ __m512i q = _mm512_add_epi32(numers, _mm512_and_si512(_mm512_srai_epi32(numers, 31), roundToZeroTweak));
+ q = _mm512_srai_epi32(q, shift);
+ __m512i sign = _mm512_set1_epi32((int8_t)more >> 7);
+ // q = (q ^ sign) - sign;
+ q = _mm512_sub_epi32(_mm512_xor_si512(q, sign), sign);
+ return q;
+ }
+ else {
+ __m512i q = libdivide_mullhi_s32_vector(numers, _mm512_set1_epi32(denom->magic));
+ if (more & LIBDIVIDE_ADD_MARKER) {
+ // must be arithmetic shift
+ __m512i sign = _mm512_set1_epi32((int8_t)more >> 7);
+ // q += ((numer ^ sign) - sign);
+ q = _mm512_add_epi32(q, _mm512_sub_epi32(_mm512_xor_si512(numers, sign), sign));
+ }
+ // q >>= shift
+ q = _mm512_srai_epi32(q, more & LIBDIVIDE_32_SHIFT_MASK);
+ q = _mm512_add_epi32(q, _mm512_srli_epi32(q, 31)); // q += (q < 0)
+ return q;
+ }
+}
+
+__m512i libdivide_s32_branchfree_do_vector(__m512i numers, const struct libdivide_s32_branchfree_t *denom) {
+ int32_t magic = denom->magic;
+ uint8_t more = denom->more;
+ uint8_t shift = more & LIBDIVIDE_32_SHIFT_MASK;
+ // must be arithmetic shift
+ __m512i sign = _mm512_set1_epi32((int8_t)more >> 7);
+ __m512i q = libdivide_mullhi_s32_vector(numers, _mm512_set1_epi32(magic));
+ q = _mm512_add_epi32(q, numers); // q += numers
+
+ // If q is non-negative, we have nothing to do
+ // If q is negative, we want to add either (2**shift)-1 if d is
+ // a power of 2, or (2**shift) if it is not a power of 2
+ uint32_t is_power_of_2 = (magic == 0);
+ __m512i q_sign = _mm512_srai_epi32(q, 31); // q_sign = q >> 31
+ __m512i mask = _mm512_set1_epi32((1U << shift) - is_power_of_2);
+ q = _mm512_add_epi32(q, _mm512_and_si512(q_sign, mask)); // q = q + (q_sign & mask)
+ q = _mm512_srai_epi32(q, shift); // q >>= shift
+ q = _mm512_sub_epi32(_mm512_xor_si512(q, sign), sign); // q = (q ^ sign) - sign
+ return q;
+}
+
+////////// SINT64
+
+__m512i libdivide_s64_do_vector(__m512i numers, const struct libdivide_s64_t *denom) {
+ uint8_t more = denom->more;
+ int64_t magic = denom->magic;
+ if (magic == 0) { // shift path
+ uint32_t shift = more & LIBDIVIDE_64_SHIFT_MASK;
+ uint64_t mask = (1ULL << shift) - 1;
+ __m512i roundToZeroTweak = _mm512_set1_epi64(mask);
+ // q = numer + ((numer >> 63) & roundToZeroTweak);
+ __m512i q = _mm512_add_epi64(numers, _mm512_and_si512(libdivide_s64_signbits(numers), roundToZeroTweak));
+ q = libdivide_s64_shift_right_vector(q, shift);
+ __m512i sign = _mm512_set1_epi32((int8_t)more >> 7);
+ // q = (q ^ sign) - sign;
+ q = _mm512_sub_epi64(_mm512_xor_si512(q, sign), sign);
+ return q;
+ }
+ else {
+ __m512i q = libdivide_mullhi_s64_vector(numers, _mm512_set1_epi64(magic));
+ if (more & LIBDIVIDE_ADD_MARKER) {
+ // must be arithmetic shift
+ __m512i sign = _mm512_set1_epi32((int8_t)more >> 7);
+ // q += ((numer ^ sign) - sign);
+ q = _mm512_add_epi64(q, _mm512_sub_epi64(_mm512_xor_si512(numers, sign), sign));
+ }
+ // q >>= denom->mult_path.shift
+ q = libdivide_s64_shift_right_vector(q, more & LIBDIVIDE_64_SHIFT_MASK);
+ q = _mm512_add_epi64(q, _mm512_srli_epi64(q, 63)); // q += (q < 0)
+ return q;
+ }
+}
+
+__m512i libdivide_s64_branchfree_do_vector(__m512i numers, const struct libdivide_s64_branchfree_t *denom) {
+ int64_t magic = denom->magic;
+ uint8_t more = denom->more;
+ uint8_t shift = more & LIBDIVIDE_64_SHIFT_MASK;
+ // must be arithmetic shift
+ __m512i sign = _mm512_set1_epi32((int8_t)more >> 7);
+
+ // libdivide_mullhi_s64(numers, magic);
+ __m512i q = libdivide_mullhi_s64_vector(numers, _mm512_set1_epi64(magic));
+ q = _mm512_add_epi64(q, numers); // q += numers
+
+ // If q is non-negative, we have nothing to do.
+ // If q is negative, we want to add either (2**shift)-1 if d is
+ // a power of 2, or (2**shift) if it is not a power of 2.
+ uint32_t is_power_of_2 = (magic == 0);
+ __m512i q_sign = libdivide_s64_signbits(q); // q_sign = q >> 63
+ __m512i mask = _mm512_set1_epi64((1ULL << shift) - is_power_of_2);
+ q = _mm512_add_epi64(q, _mm512_and_si512(q_sign, mask)); // q = q + (q_sign & mask)
+ q = libdivide_s64_shift_right_vector(q, shift); // q >>= shift
+ q = _mm512_sub_epi64(_mm512_xor_si512(q, sign), sign); // q = (q ^ sign) - sign
+ return q;
+}
+
+#elif defined(LIBDIVIDE_AVX2)
+
+static inline __m256i libdivide_u32_do_vector(__m256i numers, const struct libdivide_u32_t *denom);
+static inline __m256i libdivide_s32_do_vector(__m256i numers, const struct libdivide_s32_t *denom);
+static inline __m256i libdivide_u64_do_vector(__m256i numers, const struct libdivide_u64_t *denom);
+static inline __m256i libdivide_s64_do_vector(__m256i numers, const struct libdivide_s64_t *denom);
+
+static inline __m256i libdivide_u32_branchfree_do_vector(__m256i numers, const struct libdivide_u32_branchfree_t *denom);
+static inline __m256i libdivide_s32_branchfree_do_vector(__m256i numers, const struct libdivide_s32_branchfree_t *denom);
+static inline __m256i libdivide_u64_branchfree_do_vector(__m256i numers, const struct libdivide_u64_branchfree_t *denom);
+static inline __m256i libdivide_s64_branchfree_do_vector(__m256i numers, const struct libdivide_s64_branchfree_t *denom);
+
+//////// Internal Utility Functions
+
+// Implementation of _mm256_srai_epi64(v, 63) (from AVX512).
+static inline __m256i libdivide_s64_signbits(__m256i v) {
+ __m256i hiBitsDuped = _mm256_shuffle_epi32(v, _MM_SHUFFLE(3, 3, 1, 1));
+ __m256i signBits = _mm256_srai_epi32(hiBitsDuped, 31);
+ return signBits;
+}
+
+// Implementation of _mm256_srai_epi64 (from AVX512).
+static inline __m256i libdivide_s64_shift_right_vector(__m256i v, int amt) {
+ const int b = 64 - amt;
+ __m256i m = _mm256_set1_epi64x(1ULL << (b - 1));
+ __m256i x = _mm256_srli_epi64(v, amt);
+ __m256i result = _mm256_sub_epi64(_mm256_xor_si256(x, m), m);
+ return result;
+}
+
+// Here, b is assumed to contain one 32-bit value repeated.
+static inline __m256i libdivide_mullhi_u32_vector(__m256i a, __m256i b) {
+ __m256i hi_product_0Z2Z = _mm256_srli_epi64(_mm256_mul_epu32(a, b), 32);
+ __m256i a1X3X = _mm256_srli_epi64(a, 32);
+ __m256i mask = _mm256_set_epi32(-1, 0, -1, 0, -1, 0, -1, 0);
+ __m256i hi_product_Z1Z3 = _mm256_and_si256(_mm256_mul_epu32(a1X3X, b), mask);
+ return _mm256_or_si256(hi_product_0Z2Z, hi_product_Z1Z3);
+}
+
+// b is one 32-bit value repeated.
+static inline __m256i libdivide_mullhi_s32_vector(__m256i a, __m256i b) {
+ __m256i hi_product_0Z2Z = _mm256_srli_epi64(_mm256_mul_epi32(a, b), 32);
+ __m256i a1X3X = _mm256_srli_epi64(a, 32);
+ __m256i mask = _mm256_set_epi32(-1, 0, -1, 0, -1, 0, -1, 0);
+ __m256i hi_product_Z1Z3 = _mm256_and_si256(_mm256_mul_epi32(a1X3X, b), mask);
+ return _mm256_or_si256(hi_product_0Z2Z, hi_product_Z1Z3);
+}
+
+// Here, y is assumed to contain one 64-bit value repeated.
+// https://stackoverflow.com/a/28827013
+static inline __m256i libdivide_mullhi_u64_vector(__m256i x, __m256i y) {
+ __m256i lomask = _mm256_set1_epi64x(0xffffffff);
+ __m256i xh = _mm256_shuffle_epi32(x, 0xB1); // x0l, x0h, x1l, x1h
+ __m256i yh = _mm256_shuffle_epi32(y, 0xB1); // y0l, y0h, y1l, y1h
+ __m256i w0 = _mm256_mul_epu32(x, y); // x0l*y0l, x1l*y1l
+ __m256i w1 = _mm256_mul_epu32(x, yh); // x0l*y0h, x1l*y1h
+ __m256i w2 = _mm256_mul_epu32(xh, y); // x0h*y0l, x1h*y0l
+ __m256i w3 = _mm256_mul_epu32(xh, yh); // x0h*y0h, x1h*y1h
+ __m256i w0h = _mm256_srli_epi64(w0, 32);
+ __m256i s1 = _mm256_add_epi64(w1, w0h);
+ __m256i s1l = _mm256_and_si256(s1, lomask);
+ __m256i s1h = _mm256_srli_epi64(s1, 32);
+ __m256i s2 = _mm256_add_epi64(w2, s1l);
+ __m256i s2h = _mm256_srli_epi64(s2, 32);
+ __m256i hi = _mm256_add_epi64(w3, s1h);
+ hi = _mm256_add_epi64(hi, s2h);
+
+ return hi;
+}
+
+// y is one 64-bit value repeated.
+static inline __m256i libdivide_mullhi_s64_vector(__m256i x, __m256i y) {
+ __m256i p = libdivide_mullhi_u64_vector(x, y);
+ __m256i t1 = _mm256_and_si256(libdivide_s64_signbits(x), y);
+ __m256i t2 = _mm256_and_si256(libdivide_s64_signbits(y), x);
+ p = _mm256_sub_epi64(p, t1);
+ p = _mm256_sub_epi64(p, t2);
+ return p;
+}
+
+////////// UINT32
+
+__m256i libdivide_u32_do_vector(__m256i numers, const struct libdivide_u32_t *denom) {
+ uint8_t more = denom->more;
+ if (!denom->magic) {
+ return _mm256_srli_epi32(numers, more);
+ }
+ else {
+ __m256i q = libdivide_mullhi_u32_vector(numers, _mm256_set1_epi32(denom->magic));
+ if (more & LIBDIVIDE_ADD_MARKER) {
+ // uint32_t t = ((numer - q) >> 1) + q;
+ // return t >> denom->shift;
+ uint32_t shift = more & LIBDIVIDE_32_SHIFT_MASK;
+ __m256i t = _mm256_add_epi32(_mm256_srli_epi32(_mm256_sub_epi32(numers, q), 1), q);
+ return _mm256_srli_epi32(t, shift);
+ }
+ else {
+ return _mm256_srli_epi32(q, more);
+ }
+ }
+}
+
+__m256i libdivide_u32_branchfree_do_vector(__m256i numers, const struct libdivide_u32_branchfree_t *denom) {
+ __m256i q = libdivide_mullhi_u32_vector(numers, _mm256_set1_epi32(denom->magic));
+ __m256i t = _mm256_add_epi32(_mm256_srli_epi32(_mm256_sub_epi32(numers, q), 1), q);
+ return _mm256_srli_epi32(t, denom->more);
+}
+
+////////// UINT64
+
+__m256i libdivide_u64_do_vector(__m256i numers, const struct libdivide_u64_t *denom) {
+ uint8_t more = denom->more;
+ if (!denom->magic) {
+ return _mm256_srli_epi64(numers, more);
+ }
+ else {
+ __m256i q = libdivide_mullhi_u64_vector(numers, _mm256_set1_epi64x(denom->magic));
+ if (more & LIBDIVIDE_ADD_MARKER) {
+ // uint32_t t = ((numer - q) >> 1) + q;
+ // return t >> denom->shift;
+ uint32_t shift = more & LIBDIVIDE_64_SHIFT_MASK;
+ __m256i t = _mm256_add_epi64(_mm256_srli_epi64(_mm256_sub_epi64(numers, q), 1), q);
+ return _mm256_srli_epi64(t, shift);
+ }
+ else {
+ return _mm256_srli_epi64(q, more);
+ }
+ }
+}
+
+__m256i libdivide_u64_branchfree_do_vector(__m256i numers, const struct libdivide_u64_branchfree_t *denom) {
+ __m256i q = libdivide_mullhi_u64_vector(numers, _mm256_set1_epi64x(denom->magic));
+ __m256i t = _mm256_add_epi64(_mm256_srli_epi64(_mm256_sub_epi64(numers, q), 1), q);
+ return _mm256_srli_epi64(t, denom->more);
+}
+
+////////// SINT32
+
+__m256i libdivide_s32_do_vector(__m256i numers, const struct libdivide_s32_t *denom) {
+ uint8_t more = denom->more;
+ if (!denom->magic) {
+ uint32_t shift = more & LIBDIVIDE_32_SHIFT_MASK;
+ uint32_t mask = (1U << shift) - 1;
+ __m256i roundToZeroTweak = _mm256_set1_epi32(mask);
+ // q = numer + ((numer >> 31) & roundToZeroTweak);
+ __m256i q = _mm256_add_epi32(numers, _mm256_and_si256(_mm256_srai_epi32(numers, 31), roundToZeroTweak));
+ q = _mm256_srai_epi32(q, shift);
+ __m256i sign = _mm256_set1_epi32((int8_t)more >> 7);
+ // q = (q ^ sign) - sign;
+ q = _mm256_sub_epi32(_mm256_xor_si256(q, sign), sign);
+ return q;
+ }
+ else {
+ __m256i q = libdivide_mullhi_s32_vector(numers, _mm256_set1_epi32(denom->magic));
+ if (more & LIBDIVIDE_ADD_MARKER) {
+ // must be arithmetic shift
+ __m256i sign = _mm256_set1_epi32((int8_t)more >> 7);
+ // q += ((numer ^ sign) - sign);
+ q = _mm256_add_epi32(q, _mm256_sub_epi32(_mm256_xor_si256(numers, sign), sign));
+ }
+ // q >>= shift
+ q = _mm256_srai_epi32(q, more & LIBDIVIDE_32_SHIFT_MASK);
+ q = _mm256_add_epi32(q, _mm256_srli_epi32(q, 31)); // q += (q < 0)
+ return q;
+ }
+}
+
+__m256i libdivide_s32_branchfree_do_vector(__m256i numers, const struct libdivide_s32_branchfree_t *denom) {
+ int32_t magic = denom->magic;
+ uint8_t more = denom->more;
+ uint8_t shift = more & LIBDIVIDE_32_SHIFT_MASK;
+ // must be arithmetic shift
+ __m256i sign = _mm256_set1_epi32((int8_t)more >> 7);
+ __m256i q = libdivide_mullhi_s32_vector(numers, _mm256_set1_epi32(magic));
+ q = _mm256_add_epi32(q, numers); // q += numers
+
+ // If q is non-negative, we have nothing to do
+ // If q is negative, we want to add either (2**shift)-1 if d is
+ // a power of 2, or (2**shift) if it is not a power of 2
+ uint32_t is_power_of_2 = (magic == 0);
+ __m256i q_sign = _mm256_srai_epi32(q, 31); // q_sign = q >> 31
+ __m256i mask = _mm256_set1_epi32((1U << shift) - is_power_of_2);
+ q = _mm256_add_epi32(q, _mm256_and_si256(q_sign, mask)); // q = q + (q_sign & mask)
+ q = _mm256_srai_epi32(q, shift); // q >>= shift
+ q = _mm256_sub_epi32(_mm256_xor_si256(q, sign), sign); // q = (q ^ sign) - sign
+ return q;
+}
+
+////////// SINT64
+
+__m256i libdivide_s64_do_vector(__m256i numers, const struct libdivide_s64_t *denom) {
+ uint8_t more = denom->more;
+ int64_t magic = denom->magic;
+ if (magic == 0) { // shift path
+ uint32_t shift = more & LIBDIVIDE_64_SHIFT_MASK;
+ uint64_t mask = (1ULL << shift) - 1;
+ __m256i roundToZeroTweak = _mm256_set1_epi64x(mask);
+ // q = numer + ((numer >> 63) & roundToZeroTweak);
+ __m256i q = _mm256_add_epi64(numers, _mm256_and_si256(libdivide_s64_signbits(numers), roundToZeroTweak));
+ q = libdivide_s64_shift_right_vector(q, shift);
+ __m256i sign = _mm256_set1_epi32((int8_t)more >> 7);
+ // q = (q ^ sign) - sign;
+ q = _mm256_sub_epi64(_mm256_xor_si256(q, sign), sign);
+ return q;
+ }
+ else {
+ __m256i q = libdivide_mullhi_s64_vector(numers, _mm256_set1_epi64x(magic));
+ if (more & LIBDIVIDE_ADD_MARKER) {
+ // must be arithmetic shift
+ __m256i sign = _mm256_set1_epi32((int8_t)more >> 7);
+ // q += ((numer ^ sign) - sign);
+ q = _mm256_add_epi64(q, _mm256_sub_epi64(_mm256_xor_si256(numers, sign), sign));
+ }
+ // q >>= denom->mult_path.shift
+ q = libdivide_s64_shift_right_vector(q, more & LIBDIVIDE_64_SHIFT_MASK);
+ q = _mm256_add_epi64(q, _mm256_srli_epi64(q, 63)); // q += (q < 0)
+ return q;
+ }
+}
+
+__m256i libdivide_s64_branchfree_do_vector(__m256i numers, const struct libdivide_s64_branchfree_t *denom) {
+ int64_t magic = denom->magic;
+ uint8_t more = denom->more;
+ uint8_t shift = more & LIBDIVIDE_64_SHIFT_MASK;
+ // must be arithmetic shift
+ __m256i sign = _mm256_set1_epi32((int8_t)more >> 7);
+
+ // libdivide_mullhi_s64(numers, magic);
+ __m256i q = libdivide_mullhi_s64_vector(numers, _mm256_set1_epi64x(magic));
+ q = _mm256_add_epi64(q, numers); // q += numers
+
+ // If q is non-negative, we have nothing to do.
+ // If q is negative, we want to add either (2**shift)-1 if d is
+ // a power of 2, or (2**shift) if it is not a power of 2.
+ uint32_t is_power_of_2 = (magic == 0);
+ __m256i q_sign = libdivide_s64_signbits(q); // q_sign = q >> 63
+ __m256i mask = _mm256_set1_epi64x((1ULL << shift) - is_power_of_2);
+ q = _mm256_add_epi64(q, _mm256_and_si256(q_sign, mask)); // q = q + (q_sign & mask)
+ q = libdivide_s64_shift_right_vector(q, shift); // q >>= shift
+ q = _mm256_sub_epi64(_mm256_xor_si256(q, sign), sign); // q = (q ^ sign) - sign
+ return q;
+}
+
+#elif defined(LIBDIVIDE_SSE2)
+
+static inline __m128i libdivide_u32_do_vector(__m128i numers, const struct libdivide_u32_t *denom);
+static inline __m128i libdivide_s32_do_vector(__m128i numers, const struct libdivide_s32_t *denom);
+static inline __m128i libdivide_u64_do_vector(__m128i numers, const struct libdivide_u64_t *denom);
+static inline __m128i libdivide_s64_do_vector(__m128i numers, const struct libdivide_s64_t *denom);
+
+static inline __m128i libdivide_u32_branchfree_do_vector(__m128i numers, const struct libdivide_u32_branchfree_t *denom);
+static inline __m128i libdivide_s32_branchfree_do_vector(__m128i numers, const struct libdivide_s32_branchfree_t *denom);
+static inline __m128i libdivide_u64_branchfree_do_vector(__m128i numers, const struct libdivide_u64_branchfree_t *denom);
+static inline __m128i libdivide_s64_branchfree_do_vector(__m128i numers, const struct libdivide_s64_branchfree_t *denom);
+
+//////// Internal Utility Functions
+
+// Implementation of _mm_srai_epi64(v, 63) (from AVX512).
+static inline __m128i libdivide_s64_signbits(__m128i v) {
+ __m128i hiBitsDuped = _mm_shuffle_epi32(v, _MM_SHUFFLE(3, 3, 1, 1));
+ __m128i signBits = _mm_srai_epi32(hiBitsDuped, 31);
+ return signBits;
+}
+
+// Implementation of _mm_srai_epi64 (from AVX512).
+static inline __m128i libdivide_s64_shift_right_vector(__m128i v, int amt) {
+ const int b = 64 - amt;
+ __m128i m = _mm_set1_epi64x(1ULL << (b - 1));
+ __m128i x = _mm_srli_epi64(v, amt);
+ __m128i result = _mm_sub_epi64(_mm_xor_si128(x, m), m);
+ return result;
+}
+
+// Here, b is assumed to contain one 32-bit value repeated.
+static inline __m128i libdivide_mullhi_u32_vector(__m128i a, __m128i b) {
+ __m128i hi_product_0Z2Z = _mm_srli_epi64(_mm_mul_epu32(a, b), 32);
+ __m128i a1X3X = _mm_srli_epi64(a, 32);
+ __m128i mask = _mm_set_epi32(-1, 0, -1, 0);
+ __m128i hi_product_Z1Z3 = _mm_and_si128(_mm_mul_epu32(a1X3X, b), mask);
+ return _mm_or_si128(hi_product_0Z2Z, hi_product_Z1Z3);
+}
+
+// SSE2 does not have a signed multiplication instruction, but we can convert
+// unsigned to signed pretty efficiently. Again, b is just a 32 bit value
+// repeated four times.
+static inline __m128i libdivide_mullhi_s32_vector(__m128i a, __m128i b) {
+ __m128i p = libdivide_mullhi_u32_vector(a, b);
+ // t1 = (a >> 31) & y, arithmetic shift
+ __m128i t1 = _mm_and_si128(_mm_srai_epi32(a, 31), b);
+ __m128i t2 = _mm_and_si128(_mm_srai_epi32(b, 31), a);
+ p = _mm_sub_epi32(p, t1);
+ p = _mm_sub_epi32(p, t2);
+ return p;
+}
+
+// Here, y is assumed to contain one 64-bit value repeated.
+// https://stackoverflow.com/a/28827013
+static inline __m128i libdivide_mullhi_u64_vector(__m128i x, __m128i y) {
+ __m128i lomask = _mm_set1_epi64x(0xffffffff);
+ __m128i xh = _mm_shuffle_epi32(x, 0xB1); // x0l, x0h, x1l, x1h
+ __m128i yh = _mm_shuffle_epi32(y, 0xB1); // y0l, y0h, y1l, y1h
+ __m128i w0 = _mm_mul_epu32(x, y); // x0l*y0l, x1l*y1l
+ __m128i w1 = _mm_mul_epu32(x, yh); // x0l*y0h, x1l*y1h
+ __m128i w2 = _mm_mul_epu32(xh, y); // x0h*y0l, x1h*y0l
+ __m128i w3 = _mm_mul_epu32(xh, yh); // x0h*y0h, x1h*y1h
+ __m128i w0h = _mm_srli_epi64(w0, 32);
+ __m128i s1 = _mm_add_epi64(w1, w0h);
+ __m128i s1l = _mm_and_si128(s1, lomask);
+ __m128i s1h = _mm_srli_epi64(s1, 32);
+ __m128i s2 = _mm_add_epi64(w2, s1l);
+ __m128i s2h = _mm_srli_epi64(s2, 32);
+ __m128i hi = _mm_add_epi64(w3, s1h);
+ hi = _mm_add_epi64(hi, s2h);
+
+ return hi;
+}
+
+// y is one 64-bit value repeated.
+static inline __m128i libdivide_mullhi_s64_vector(__m128i x, __m128i y) {
+ __m128i p = libdivide_mullhi_u64_vector(x, y);
+ __m128i t1 = _mm_and_si128(libdivide_s64_signbits(x), y);
+ __m128i t2 = _mm_and_si128(libdivide_s64_signbits(y), x);
+ p = _mm_sub_epi64(p, t1);
+ p = _mm_sub_epi64(p, t2);
+ return p;
+}
+
+////////// UINT32
+
+__m128i libdivide_u32_do_vector(__m128i numers, const struct libdivide_u32_t *denom) {
+ uint8_t more = denom->more;
+ if (!denom->magic) {
+ return _mm_srli_epi32(numers, more);
+ }
+ else {
+ __m128i q = libdivide_mullhi_u32_vector(numers, _mm_set1_epi32(denom->magic));
+ if (more & LIBDIVIDE_ADD_MARKER) {
+ // uint32_t t = ((numer - q) >> 1) + q;
+ // return t >> denom->shift;
+ uint32_t shift = more & LIBDIVIDE_32_SHIFT_MASK;
+ __m128i t = _mm_add_epi32(_mm_srli_epi32(_mm_sub_epi32(numers, q), 1), q);
+ return _mm_srli_epi32(t, shift);
+ }
+ else {
+ return _mm_srli_epi32(q, more);
+ }
+ }
+}
+
+__m128i libdivide_u32_branchfree_do_vector(__m128i numers, const struct libdivide_u32_branchfree_t *denom) {
+ __m128i q = libdivide_mullhi_u32_vector(numers, _mm_set1_epi32(denom->magic));
+ __m128i t = _mm_add_epi32(_mm_srli_epi32(_mm_sub_epi32(numers, q), 1), q);
+ return _mm_srli_epi32(t, denom->more);
+}
+
+////////// UINT64
+
+__m128i libdivide_u64_do_vector(__m128i numers, const struct libdivide_u64_t *denom) {
+ uint8_t more = denom->more;
+ if (!denom->magic) {
+ return _mm_srli_epi64(numers, more);
+ }
+ else {
+ __m128i q = libdivide_mullhi_u64_vector(numers, _mm_set1_epi64x(denom->magic));
+ if (more & LIBDIVIDE_ADD_MARKER) {
+ // uint32_t t = ((numer - q) >> 1) + q;
+ // return t >> denom->shift;
+ uint32_t shift = more & LIBDIVIDE_64_SHIFT_MASK;
+ __m128i t = _mm_add_epi64(_mm_srli_epi64(_mm_sub_epi64(numers, q), 1), q);
+ return _mm_srli_epi64(t, shift);
+ }
+ else {
+ return _mm_srli_epi64(q, more);
+ }
+ }
+}
+
+__m128i libdivide_u64_branchfree_do_vector(__m128i numers, const struct libdivide_u64_branchfree_t *denom) {
+ __m128i q = libdivide_mullhi_u64_vector(numers, _mm_set1_epi64x(denom->magic));
+ __m128i t = _mm_add_epi64(_mm_srli_epi64(_mm_sub_epi64(numers, q), 1), q);
+ return _mm_srli_epi64(t, denom->more);
+}
+
+////////// SINT32
+
+__m128i libdivide_s32_do_vector(__m128i numers, const struct libdivide_s32_t *denom) {
+ uint8_t more = denom->more;
+ if (!denom->magic) {
+ uint32_t shift = more & LIBDIVIDE_32_SHIFT_MASK;
+ uint32_t mask = (1U << shift) - 1;
+ __m128i roundToZeroTweak = _mm_set1_epi32(mask);
+ // q = numer + ((numer >> 31) & roundToZeroTweak);
+ __m128i q = _mm_add_epi32(numers, _mm_and_si128(_mm_srai_epi32(numers, 31), roundToZeroTweak));
+ q = _mm_srai_epi32(q, shift);
+ __m128i sign = _mm_set1_epi32((int8_t)more >> 7);
+ // q = (q ^ sign) - sign;
+ q = _mm_sub_epi32(_mm_xor_si128(q, sign), sign);
+ return q;
+ }
+ else {
+ __m128i q = libdivide_mullhi_s32_vector(numers, _mm_set1_epi32(denom->magic));
+ if (more & LIBDIVIDE_ADD_MARKER) {
+ // must be arithmetic shift
+ __m128i sign = _mm_set1_epi32((int8_t)more >> 7);
+ // q += ((numer ^ sign) - sign);
+ q = _mm_add_epi32(q, _mm_sub_epi32(_mm_xor_si128(numers, sign), sign));
+ }
+ // q >>= shift
+ q = _mm_srai_epi32(q, more & LIBDIVIDE_32_SHIFT_MASK);
+ q = _mm_add_epi32(q, _mm_srli_epi32(q, 31)); // q += (q < 0)
+ return q;
+ }
+}
+
+__m128i libdivide_s32_branchfree_do_vector(__m128i numers, const struct libdivide_s32_branchfree_t *denom) {
+ int32_t magic = denom->magic;
+ uint8_t more = denom->more;
+ uint8_t shift = more & LIBDIVIDE_32_SHIFT_MASK;
+ // must be arithmetic shift
+ __m128i sign = _mm_set1_epi32((int8_t)more >> 7);
+ __m128i q = libdivide_mullhi_s32_vector(numers, _mm_set1_epi32(magic));
+ q = _mm_add_epi32(q, numers); // q += numers
+
+ // If q is non-negative, we have nothing to do
+ // If q is negative, we want to add either (2**shift)-1 if d is
+ // a power of 2, or (2**shift) if it is not a power of 2
+ uint32_t is_power_of_2 = (magic == 0);
+ __m128i q_sign = _mm_srai_epi32(q, 31); // q_sign = q >> 31
+ __m128i mask = _mm_set1_epi32((1U << shift) - is_power_of_2);
+ q = _mm_add_epi32(q, _mm_and_si128(q_sign, mask)); // q = q + (q_sign & mask)
+ q = _mm_srai_epi32(q, shift); // q >>= shift
+ q = _mm_sub_epi32(_mm_xor_si128(q, sign), sign); // q = (q ^ sign) - sign
+ return q;
+}
+
+////////// SINT64
+
+__m128i libdivide_s64_do_vector(__m128i numers, const struct libdivide_s64_t *denom) {
+ uint8_t more = denom->more;
+ int64_t magic = denom->magic;
+ if (magic == 0) { // shift path
+ uint32_t shift = more & LIBDIVIDE_64_SHIFT_MASK;
+ uint64_t mask = (1ULL << shift) - 1;
+ __m128i roundToZeroTweak = _mm_set1_epi64x(mask);
+ // q = numer + ((numer >> 63) & roundToZeroTweak);
+ __m128i q = _mm_add_epi64(numers, _mm_and_si128(libdivide_s64_signbits(numers), roundToZeroTweak));
+ q = libdivide_s64_shift_right_vector(q, shift);
+ __m128i sign = _mm_set1_epi32((int8_t)more >> 7);
+ // q = (q ^ sign) - sign;
+ q = _mm_sub_epi64(_mm_xor_si128(q, sign), sign);
+ return q;
+ }
+ else {
+ __m128i q = libdivide_mullhi_s64_vector(numers, _mm_set1_epi64x(magic));
+ if (more & LIBDIVIDE_ADD_MARKER) {
+ // must be arithmetic shift
+ __m128i sign = _mm_set1_epi32((int8_t)more >> 7);
+ // q += ((numer ^ sign) - sign);
+ q = _mm_add_epi64(q, _mm_sub_epi64(_mm_xor_si128(numers, sign), sign));
+ }
+ // q >>= denom->mult_path.shift
+ q = libdivide_s64_shift_right_vector(q, more & LIBDIVIDE_64_SHIFT_MASK);
+ q = _mm_add_epi64(q, _mm_srli_epi64(q, 63)); // q += (q < 0)
+ return q;
+ }
+}
+
+__m128i libdivide_s64_branchfree_do_vector(__m128i numers, const struct libdivide_s64_branchfree_t *denom) {
+ int64_t magic = denom->magic;
+ uint8_t more = denom->more;
+ uint8_t shift = more & LIBDIVIDE_64_SHIFT_MASK;
+ // must be arithmetic shift
+ __m128i sign = _mm_set1_epi32((int8_t)more >> 7);
+
+ // libdivide_mullhi_s64(numers, magic);
+ __m128i q = libdivide_mullhi_s64_vector(numers, _mm_set1_epi64x(magic));
+ q = _mm_add_epi64(q, numers); // q += numers
+
+ // If q is non-negative, we have nothing to do.
+ // If q is negative, we want to add either (2**shift)-1 if d is
+ // a power of 2, or (2**shift) if it is not a power of 2.
+ uint32_t is_power_of_2 = (magic == 0);
+ __m128i q_sign = libdivide_s64_signbits(q); // q_sign = q >> 63
+ __m128i mask = _mm_set1_epi64x((1ULL << shift) - is_power_of_2);
+ q = _mm_add_epi64(q, _mm_and_si128(q_sign, mask)); // q = q + (q_sign & mask)
+ q = libdivide_s64_shift_right_vector(q, shift); // q >>= shift
+ q = _mm_sub_epi64(_mm_xor_si128(q, sign), sign); // q = (q ^ sign) - sign
+ return q;
+}
+
+#endif
+
+/////////// C++ stuff
+
+#ifdef __cplusplus
+
+// The C++ divider class is templated on both an integer type
+// (like uint64_t) and an algorithm type.
+// * BRANCHFULL is the default algorithm type.
+// * BRANCHFREE is the branchfree algorithm type.
+enum {
+ BRANCHFULL,
+ BRANCHFREE
+};
+
+#if defined(LIBDIVIDE_AVX512)
+ #define LIBDIVIDE_VECTOR_TYPE __m512i
+#elif defined(LIBDIVIDE_AVX2)
+ #define LIBDIVIDE_VECTOR_TYPE __m256i
+#elif defined(LIBDIVIDE_SSE2)
+ #define LIBDIVIDE_VECTOR_TYPE __m128i
+#endif
+
+#if !defined(LIBDIVIDE_VECTOR_TYPE)
+ #define LIBDIVIDE_DIVIDE_VECTOR(ALGO)
+#else
+ #define LIBDIVIDE_DIVIDE_VECTOR(ALGO) \
+ LIBDIVIDE_VECTOR_TYPE divide(LIBDIVIDE_VECTOR_TYPE n) const { \
+ return libdivide_##ALGO##_do_vector(n, &denom); \
+ }
+#endif
+
+// The DISPATCHER_GEN() macro generates C++ methods (for the given integer
+// and algorithm types) that redirect to libdivide's C API.
+#define DISPATCHER_GEN(T, ALGO) \
+ libdivide_##ALGO##_t denom; \
+ dispatcher() { } \
+ dispatcher(T d) \
+ : denom(libdivide_##ALGO##_gen(d)) \
+ { } \
+ T divide(T n) const { \
+ return libdivide_##ALGO##_do(n, &denom); \
+ } \
+ LIBDIVIDE_DIVIDE_VECTOR(ALGO) \
+ T recover() const { \
+ return libdivide_##ALGO##_recover(&denom); \
+ }
+
+// The dispatcher selects a specific division algorithm for a given
+// type and ALGO using partial template specialization.
+template struct dispatcher { };
+
+template<> struct dispatcher { DISPATCHER_GEN(int32_t, s32) };
+template<> struct dispatcher { DISPATCHER_GEN(int32_t, s32_branchfree) };
+template<> struct dispatcher { DISPATCHER_GEN(uint32_t, u32) };
+template<> struct dispatcher { DISPATCHER_GEN(uint32_t, u32_branchfree) };
+template<> struct dispatcher { DISPATCHER_GEN(int64_t, s64) };
+template<> struct dispatcher { DISPATCHER_GEN(int64_t, s64_branchfree) };
+template<> struct dispatcher { DISPATCHER_GEN(uint64_t, u64) };
+template<> struct dispatcher { DISPATCHER_GEN(uint64_t, u64_branchfree) };
+
+// This is the main divider class for use by the user (C++ API).
+// The actual division algorithm is selected using the dispatcher struct
+// based on the integer and algorithm template parameters.
+template
+class divider {
+public:
+ // We leave the default constructor empty so that creating
+ // an array of dividers and then initializing them
+ // later doesn't slow us down.
+ divider() { }
+
+ // Constructor that takes the divisor as a parameter
+ divider(T d) : div(d) { }
+
+ // Divides n by the divisor
+ T divide(T n) const {
+ return div.divide(n);
+ }
+
+ // Recovers the divisor, returns the value that was
+ // used to initialize this divider object.
+ T recover() const {
+ return div.recover();
+ }
+
+ bool operator==(const divider& other) const {
+ return div.denom.magic == other.denom.magic &&
+ div.denom.more == other.denom.more;
+ }
+
+ bool operator!=(const divider& other) const {
+ return !(*this == other);
+ }
+
+#if defined(LIBDIVIDE_VECTOR_TYPE)
+ // Treats the vector as packed integer values with the same type as
+ // the divider (e.g. s32, u32, s64, u64) and divides each of
+ // them by the divider, returning the packed quotients.
+ LIBDIVIDE_VECTOR_TYPE divide(LIBDIVIDE_VECTOR_TYPE n) const {
+ return div.divide(n);
+ }
+#endif
+
+private:
+ // Storage for the actual divisor
+ dispatcher::value,
+ std::is_signed::value, sizeof(T), ALGO> div;
+};
+
+// Overload of operator / for scalar division
+template
+T operator/(T n, const divider& div) {
+ return div.divide(n);
+}
+
+// Overload of operator /= for scalar division
+template
+T& operator/=(T& n, const divider& div) {
+ n = div.divide(n);
+ return n;
+}
+
+#if defined(LIBDIVIDE_VECTOR_TYPE)
+ // Overload of operator / for vector division
+ template
+ LIBDIVIDE_VECTOR_TYPE operator/(LIBDIVIDE_VECTOR_TYPE n, const divider& div) {
+ return div.divide(n);
+ }
+ // Overload of operator /= for vector division
+ template
+ LIBDIVIDE_VECTOR_TYPE& operator/=(LIBDIVIDE_VECTOR_TYPE& n, const divider& div) {
+ n = div.divide(n);
+ return n;
+ }
+#endif
+
+// libdivdie::branchfree_divider
+template
+using branchfree_divider = divider;
+
+} // namespace libdivide
+
+#endif // __cplusplus
+
+#endif // NUMPY_CORE_INCLUDE_NUMPY_LIBDIVIDE_LIBDIVIDE_H_
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/include/numpy/ufuncobject.h b/python/user_packages/Python313/site-packages/numpy/_core/include/numpy/ufuncobject.h
new file mode 100644
index 0000000000000000000000000000000000000000..01696760220df993be8777518b77fa72cac3cb8d
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/include/numpy/ufuncobject.h
@@ -0,0 +1,343 @@
+#ifndef NUMPY_CORE_INCLUDE_NUMPY_UFUNCOBJECT_H_
+#define NUMPY_CORE_INCLUDE_NUMPY_UFUNCOBJECT_H_
+
+#include
+#include
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/*
+ * The legacy generic inner loop for a standard element-wise or
+ * generalized ufunc.
+ */
+typedef void (*PyUFuncGenericFunction)
+ (char **args,
+ npy_intp const *dimensions,
+ npy_intp const *strides,
+ void *innerloopdata);
+
+/*
+ * The most generic one-dimensional inner loop for
+ * a masked standard element-wise ufunc. "Masked" here means that it skips
+ * doing calculations on any items for which the maskptr array has a true
+ * value.
+ */
+typedef void (PyUFunc_MaskedStridedInnerLoopFunc)(
+ char **dataptrs, npy_intp *strides,
+ char *maskptr, npy_intp mask_stride,
+ npy_intp count,
+ NpyAuxData *innerloopdata);
+
+/* Forward declaration for the type resolver and loop selector typedefs */
+struct _tagPyUFuncObject;
+
+/*
+ * Given the operands for calling a ufunc, should determine the
+ * calculation input and output data types and return an inner loop function.
+ * This function should validate that the casting rule is being followed,
+ * and fail if it is not.
+ *
+ * For backwards compatibility, the regular type resolution function does not
+ * support auxiliary data with object semantics. The type resolution call
+ * which returns a masked generic function returns a standard NpyAuxData
+ * object, for which the NPY_AUXDATA_FREE and NPY_AUXDATA_CLONE macros
+ * work.
+ *
+ * ufunc: The ufunc object.
+ * casting: The 'casting' parameter provided to the ufunc.
+ * operands: An array of length (ufunc->nin + ufunc->nout),
+ * with the output parameters possibly NULL.
+ * type_tup: Either NULL, or the type_tup passed to the ufunc.
+ * out_dtypes: An array which should be populated with new
+ * references to (ufunc->nin + ufunc->nout) new
+ * dtypes, one for each input and output. These
+ * dtypes should all be in native-endian format.
+ *
+ * Should return 0 on success, -1 on failure (with exception set),
+ * or -2 if Py_NotImplemented should be returned.
+ */
+typedef int (PyUFunc_TypeResolutionFunc)(
+ struct _tagPyUFuncObject *ufunc,
+ NPY_CASTING casting,
+ PyArrayObject **operands,
+ PyObject *type_tup,
+ PyArray_Descr **out_dtypes);
+
+/*
+ * This is the signature for the functions that may be assigned to the
+ * `process_core_dims_func` field of the PyUFuncObject structure.
+ * Implementation of this function is optional. This function is only used
+ * by generalized ufuncs (i.e. those with the field `core_enabled` set to 1).
+ * The function is called by the ufunc during the processing of the arguments
+ * of a call of the ufunc. The function can check the core dimensions of the
+ * input and output arrays and return -1 with an exception set if any
+ * requirements are not satisfied. If the caller of the ufunc didn't provide
+ * output arrays, the core dimensions associated with the output arrays (i.e.
+ * those that are not also used in input arrays) will have the value -1 in
+ * `core_dim_sizes`. This function can replace any output core dimensions
+ * that are -1 with a value that is appropriate for the ufunc.
+ *
+ * Parameter Description
+ * --------------- ------------------------------------------------------
+ * ufunc The ufunc object
+ * core_dim_sizes An array with length `ufunc->core_num_dim_ix`.
+ * The core dimensions of the arrays passed to the ufunc
+ * will have been set. If the caller of the ufunc didn't
+ * provide the output array(s), the output-only core
+ * dimensions will have the value -1.
+ *
+ * The function must not change any element in `core_dim_sizes` that is
+ * not -1 on input. Doing so will result in incorrect output from the
+ * ufunc, and could result in a crash of the Python interpreter.
+ *
+ * The function must return 0 on success, -1 on failure (with an exception
+ * set).
+ */
+typedef int (PyUFunc_ProcessCoreDimsFunc)(
+ struct _tagPyUFuncObject *ufunc,
+ npy_intp *core_dim_sizes);
+
+typedef struct _tagPyUFuncObject {
+ PyObject_HEAD
+ /*
+ * nin: Number of inputs
+ * nout: Number of outputs
+ * nargs: Always nin + nout (Why is it stored?)
+ */
+ int nin, nout, nargs;
+
+ /*
+ * Identity for reduction, any of PyUFunc_One, PyUFunc_Zero
+ * PyUFunc_MinusOne, PyUFunc_None, PyUFunc_ReorderableNone,
+ * PyUFunc_IdentityValue.
+ */
+ int identity;
+
+ /* Array of one-dimensional core loops */
+ PyUFuncGenericFunction *functions;
+ /* Array of funcdata that gets passed into the functions */
+ void *const *data;
+ /* The number of elements in 'functions' and 'data' */
+ int ntypes;
+
+ /* Used to be unused field 'check_return' */
+ int reserved1;
+
+ /* The name of the ufunc */
+ const char *name;
+
+ /* Array of type numbers, of size ('nargs' * 'ntypes') */
+ const char *types;
+
+ /* Documentation string */
+ const char *doc;
+
+ void *ptr;
+ PyObject *obj;
+ PyObject *userloops;
+
+ /* generalized ufunc parameters */
+
+ /* 0 for scalar ufunc; 1 for generalized ufunc */
+ int core_enabled;
+ /* number of distinct dimension names in signature */
+ int core_num_dim_ix;
+
+ /*
+ * dimension indices of input/output argument k are stored in
+ * core_dim_ixs[core_offsets[k]..core_offsets[k]+core_num_dims[k]-1]
+ */
+
+ /* numbers of core dimensions of each argument */
+ int *core_num_dims;
+ /*
+ * dimension indices in a flatted form; indices
+ * are in the range of [0,core_num_dim_ix)
+ */
+ int *core_dim_ixs;
+ /*
+ * positions of 1st core dimensions of each
+ * argument in core_dim_ixs, equivalent to cumsum(core_num_dims)
+ */
+ int *core_offsets;
+ /* signature string for printing purpose */
+ char *core_signature;
+
+ /*
+ * A function which resolves the types and fills an array
+ * with the dtypes for the inputs and outputs.
+ */
+ PyUFunc_TypeResolutionFunc *type_resolver;
+
+ /* A dictionary to monkeypatch ufuncs */
+ PyObject *dict;
+
+ /*
+ * This was blocked off to be the "new" inner loop selector in 1.7,
+ * but this was never implemented. (This is also why the above
+ * selector is called the "legacy" selector.)
+ */
+ #ifndef Py_LIMITED_API
+ vectorcallfunc vectorcall;
+ #else
+ void *vectorcall;
+ #endif
+
+ /* Was previously the `PyUFunc_MaskedInnerLoopSelectionFunc` */
+ void *reserved3;
+
+ /*
+ * List of flags for each operand when ufunc is called by nditer object.
+ * These flags will be used in addition to the default flags for each
+ * operand set by nditer object.
+ */
+ npy_uint32 *op_flags;
+
+ /*
+ * List of global flags used when ufunc is called by nditer object.
+ * These flags will be used in addition to the default global flags
+ * set by nditer object.
+ */
+ npy_uint32 iter_flags;
+
+ /* New in NPY_API_VERSION 0x0000000D and above */
+ #if NPY_FEATURE_VERSION >= NPY_1_16_API_VERSION
+ /*
+ * for each core_num_dim_ix distinct dimension names,
+ * the possible "frozen" size (-1 if not frozen).
+ */
+ npy_intp *core_dim_sizes;
+
+ /*
+ * for each distinct core dimension, a set of UFUNC_CORE_DIM* flags
+ */
+ npy_uint32 *core_dim_flags;
+
+ /* Identity for reduction, when identity == PyUFunc_IdentityValue */
+ PyObject *identity_value;
+ #endif /* NPY_FEATURE_VERSION >= NPY_1_16_API_VERSION */
+
+ /* New in NPY_API_VERSION 0x0000000F and above */
+ #if NPY_FEATURE_VERSION >= NPY_1_22_API_VERSION
+ /* New private fields related to dispatching */
+ void *_dispatch_cache;
+ /* A PyListObject of `(tuple of DTypes, ArrayMethod/Promoter)` */
+ PyObject *_loops;
+ #endif
+ #if NPY_FEATURE_VERSION >= NPY_2_1_API_VERSION
+ /*
+ * Optional function to process core dimensions of a gufunc.
+ */
+ PyUFunc_ProcessCoreDimsFunc *process_core_dims_func;
+ #endif
+} PyUFuncObject;
+
+#include "arrayobject.h"
+/* Generalized ufunc; 0x0001 reserved for possible use as CORE_ENABLED */
+/* the core dimension's size will be determined by the operands. */
+#define UFUNC_CORE_DIM_SIZE_INFERRED 0x0002
+/* the core dimension may be absent */
+#define UFUNC_CORE_DIM_CAN_IGNORE 0x0004
+/* flags inferred during execution */
+#define UFUNC_CORE_DIM_MISSING 0x00040000
+
+
+#define UFUNC_OBJ_ISOBJECT 1
+#define UFUNC_OBJ_NEEDS_API 2
+
+
+#if NPY_ALLOW_THREADS
+#define NPY_LOOP_BEGIN_THREADS do {if (!(loop->obj & UFUNC_OBJ_NEEDS_API)) _save = PyEval_SaveThread();} while (0);
+#define NPY_LOOP_END_THREADS do {if (!(loop->obj & UFUNC_OBJ_NEEDS_API)) PyEval_RestoreThread(_save);} while (0);
+#else
+#define NPY_LOOP_BEGIN_THREADS
+#define NPY_LOOP_END_THREADS
+#endif
+
+/*
+ * UFunc has unit of 0, and the order of operations can be reordered
+ * This case allows reduction with multiple axes at once.
+ */
+#define PyUFunc_Zero 0
+/*
+ * UFunc has unit of 1, and the order of operations can be reordered
+ * This case allows reduction with multiple axes at once.
+ */
+#define PyUFunc_One 1
+/*
+ * UFunc has unit of -1, and the order of operations can be reordered
+ * This case allows reduction with multiple axes at once. Intended for
+ * bitwise_and reduction.
+ */
+#define PyUFunc_MinusOne 2
+/*
+ * UFunc has no unit, and the order of operations cannot be reordered.
+ * This case does not allow reduction with multiple axes at once.
+ */
+#define PyUFunc_None -1
+/*
+ * UFunc has no unit, and the order of operations can be reordered
+ * This case allows reduction with multiple axes at once.
+ */
+#define PyUFunc_ReorderableNone -2
+/*
+ * UFunc unit is an identity_value, and the order of operations can be reordered
+ * This case allows reduction with multiple axes at once.
+ */
+#define PyUFunc_IdentityValue -3
+
+
+#define UFUNC_REDUCE 0
+#define UFUNC_ACCUMULATE 1
+#define UFUNC_REDUCEAT 2
+#define UFUNC_OUTER 3
+
+
+typedef struct {
+ int nin;
+ int nout;
+ PyObject *callable;
+} PyUFunc_PyFuncData;
+
+/* A linked-list of function information for
+ user-defined 1-d loops.
+ */
+typedef struct _loop1d_info {
+ PyUFuncGenericFunction func;
+ void *data;
+ int *arg_types;
+ struct _loop1d_info *next;
+ int nargs;
+ PyArray_Descr **arg_dtypes;
+} PyUFunc_Loop1d;
+
+
+#define UFUNC_PYVALS_NAME "UFUNC_PYVALS"
+
+/* THESE MACROS ARE DEPRECATED.
+ * Use npy_set_floatstatus_* in the npymath library.
+ */
+#define UFUNC_FPE_DIVIDEBYZERO NPY_FPE_DIVIDEBYZERO
+#define UFUNC_FPE_OVERFLOW NPY_FPE_OVERFLOW
+#define UFUNC_FPE_UNDERFLOW NPY_FPE_UNDERFLOW
+#define UFUNC_FPE_INVALID NPY_FPE_INVALID
+
+/* Make sure it gets defined if it isn't already */
+#ifndef UFUNC_NOFPE
+/* Clear the floating point exception default of Borland C++ */
+#if defined(__BORLANDC__)
+#define UFUNC_NOFPE _control87(MCW_EM, MCW_EM);
+#else
+#define UFUNC_NOFPE
+#endif
+#endif
+
+#include "__ufunc_api.h"
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* NUMPY_CORE_INCLUDE_NUMPY_UFUNCOBJECT_H_ */
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/include/numpy/utils.h b/python/user_packages/Python313/site-packages/numpy/_core/include/numpy/utils.h
new file mode 100644
index 0000000000000000000000000000000000000000..f959b4dc2165ecfa58655a7c3d943c274f786765
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/include/numpy/utils.h
@@ -0,0 +1,37 @@
+#ifndef NUMPY_CORE_INCLUDE_NUMPY_UTILS_H_
+#define NUMPY_CORE_INCLUDE_NUMPY_UTILS_H_
+
+#ifndef __COMP_NPY_UNUSED
+ #if defined(__GNUC__)
+ #define __COMP_NPY_UNUSED __attribute__ ((__unused__))
+ #elif defined(__ICC)
+ #define __COMP_NPY_UNUSED __attribute__ ((__unused__))
+ #elif defined(__clang__)
+ #define __COMP_NPY_UNUSED __attribute__ ((unused))
+ #else
+ #define __COMP_NPY_UNUSED
+ #endif
+#endif
+
+#if defined(__GNUC__) || defined(__ICC) || defined(__clang__)
+ #define NPY_DECL_ALIGNED(x) __attribute__ ((aligned (x)))
+#elif defined(_MSC_VER)
+ #define NPY_DECL_ALIGNED(x) __declspec(align(x))
+#else
+ #define NPY_DECL_ALIGNED(x)
+#endif
+
+/* Use this to tag a variable as not used. It will remove unused variable
+ * warning on support platforms (see __COM_NPY_UNUSED) and mangle the variable
+ * to avoid accidental use */
+#define NPY_UNUSED(x) __NPY_UNUSED_TAGGED ## x __COMP_NPY_UNUSED
+#define NPY_EXPAND(x) x
+
+#define NPY_STRINGIFY(x) #x
+#define NPY_TOSTRING(x) NPY_STRINGIFY(x)
+
+#define NPY_CAT__(a, b) a ## b
+#define NPY_CAT_(a, b) NPY_CAT__(a, b)
+#define NPY_CAT(a, b) NPY_CAT_(a, b)
+
+#endif /* NUMPY_CORE_INCLUDE_NUMPY_UTILS_H_ */
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/lib/npy-pkg-config/mlib.ini b/python/user_packages/Python313/site-packages/numpy/_core/lib/npy-pkg-config/mlib.ini
new file mode 100644
index 0000000000000000000000000000000000000000..bd46aa8b00078adc5035078c6f5f03efd3648ebc
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/lib/npy-pkg-config/mlib.ini
@@ -0,0 +1,12 @@
+[meta]
+Name = mlib
+Description = Math library used with this version of numpy
+Version = 1.0
+
+[default]
+Libs=
+Cflags=
+
+[msvc]
+Libs=m.lib
+Cflags=
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/lib/npy-pkg-config/npymath.ini b/python/user_packages/Python313/site-packages/numpy/_core/lib/npy-pkg-config/npymath.ini
new file mode 100644
index 0000000000000000000000000000000000000000..3412b5cce3418e34fff5c81ae5801a137c75707a
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/lib/npy-pkg-config/npymath.ini
@@ -0,0 +1,20 @@
+[meta]
+Name=npymath
+Description=Portable, core math library implementing C99 standard
+Version=0.1
+
+[variables]
+pkgname=numpy._core
+prefix=${pkgdir}
+libdir=${prefix}\lib
+includedir=${prefix}\include
+
+[default]
+Libs=-L${libdir} -lnpymath
+Cflags=-I${includedir}
+Requires=mlib
+
+[msvc]
+Libs=/LIBPATH:${libdir} npymath.lib
+Cflags=/INCLUDE:${includedir}
+Requires=mlib
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/lib/pkgconfig/numpy.pc b/python/user_packages/Python313/site-packages/numpy/_core/lib/pkgconfig/numpy.pc
new file mode 100644
index 0000000000000000000000000000000000000000..bf5a8058d34884bb6b509695556b8e844e2338d0
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/lib/pkgconfig/numpy.pc
@@ -0,0 +1,7 @@
+prefix=${pcfiledir}/../..
+includedir=${prefix}/include
+
+Name: numpy
+Description: NumPy is the fundamental package for scientific computing with Python.
+Version: 2.4.4
+Cflags: -I${includedir}
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/_locales.cpython-313.pyc b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/_locales.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..3f84d145b4b1ba05f552b21dd6d0c567e45ad9c0
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/_locales.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/_natype.cpython-313.pyc b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/_natype.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..25f5b8de5fc5c52f63638b43d5f0c5dd6a3caf4e
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/_natype.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test__exceptions.cpython-313.pyc b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test__exceptions.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..b7721d9545a4c774cc341cbef7d9cf66d8483cd4
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test__exceptions.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_abc.cpython-313.pyc b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_abc.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..7a45c0b997fd10afd8a6b7cefc4a869cce7d00ed
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_abc.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_api.cpython-313.pyc b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_api.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..36a571e9aff7b3f03b37936cce7ae2ad59e2ff5e
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_api.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_argparse.cpython-313.pyc b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_argparse.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..521390cb0e495b37326fdeb4ef4417975613e055
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_argparse.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_array_api_info.cpython-313.pyc b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_array_api_info.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..2ee0e12d46f878049b576f708e1fac319c567f4f
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_array_api_info.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_array_coercion.cpython-313.pyc b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_array_coercion.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..cb9b2385bc67596acbdf3c3b7b1751f3ba776512
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_array_coercion.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_array_interface.cpython-313.pyc b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_array_interface.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..4338453967b5de609a58de62ac005feec2ef1983
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_array_interface.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_arraymethod.cpython-313.pyc b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_arraymethod.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..0ae661fdd7f1b54f44a2b2c649cba0dbf71422d1
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_arraymethod.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_arrayobject.cpython-313.pyc b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_arrayobject.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..12c6353fbe00dc27aea9dd64931a5ccc174d2e2d
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_arrayobject.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_arrayprint.cpython-313.pyc b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_arrayprint.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..a8da5c67e9ea2e199d624002a0fe4cf343a999a8
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_arrayprint.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_casting_floatingpoint_errors.cpython-313.pyc b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_casting_floatingpoint_errors.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..a38b603a3436de862562157ddd1f2442b2a7847d
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_casting_floatingpoint_errors.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_casting_unittests.cpython-313.pyc b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_casting_unittests.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..27730c38af7a587e915b28eeec7ce4419349ecd8
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_casting_unittests.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_conversion_utils.cpython-313.pyc b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_conversion_utils.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..c9f92a7a13bff796ef3bbf57f0dd902917bf1ffb
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_conversion_utils.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_cpu_dispatcher.cpython-313.pyc b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_cpu_dispatcher.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..bcf20b9a897f4965057f879c8dbe3b7c85e7498c
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_cpu_dispatcher.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_cpu_features.cpython-313.pyc b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_cpu_features.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..f041fb54c87c430ae7ef7e0da9a0b3c8a377c897
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_cpu_features.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_custom_dtypes.cpython-313.pyc b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_custom_dtypes.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..7383c562995b1100f6124728569ad73f92cd864b
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_custom_dtypes.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_cython.cpython-313.pyc b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_cython.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..9f92c047b5b772c9aa68ff1892e759f640fe36dd
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_cython.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_defchararray.cpython-313.pyc b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_defchararray.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..d5c087db26b850b6a70fea9345c126988ba7239c
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_defchararray.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_deprecations.cpython-313.pyc b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_deprecations.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..d1c9ab5048ab4050dd1dd1575c8bae17c1e8e660
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_deprecations.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_dlpack.cpython-313.pyc b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_dlpack.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..a7e7495c3cd960fe9020275f88b9fe6ee74bd433
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_dlpack.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_einsum.cpython-313.pyc b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_einsum.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..f0cb5e9317f314cb0952abb4efaa79c8bfce518a
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_einsum.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_errstate.cpython-313.pyc b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_errstate.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..ff5b7d2ad022ce34229ab80e16c56476e200a942
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_errstate.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_extint128.cpython-313.pyc b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_extint128.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..7328a29aa4e5d815e29ab277ed28886e027541c9
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_extint128.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_finfo.cpython-313.pyc b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_finfo.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..aff7936ba5f5aad964a258436d4ddda872d9471d
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_finfo.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_function_base.cpython-313.pyc b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_function_base.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..a613e6d8dc7f1845713943a7e5d7513ab63b21fd
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_function_base.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_getlimits.cpython-313.pyc b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_getlimits.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..a517597f67bc8db5f97d60a886c3b2016a497eac
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_getlimits.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_half.cpython-313.pyc b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_half.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..c1805064459bb7d2b37476ac45b202423456c215
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_half.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_hashtable.cpython-313.pyc b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_hashtable.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..f1b11441e2f0b6411ea5b6f035da627f8ad91f56
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_hashtable.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_indexerrors.cpython-313.pyc b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_indexerrors.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..5b00a99932532707211a3b373335180cd8969bdd
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_indexerrors.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_item_selection.cpython-313.pyc b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_item_selection.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..954ff684cf6f2d53c4fce0816ab552e724f96bbd
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_item_selection.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_limited_api.cpython-313.pyc b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_limited_api.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..3480add5a4f044c244d78c5b41bbc4bd56ab7c54
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_limited_api.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_longdouble.cpython-313.pyc b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_longdouble.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..1cdc72e5329b72564599fef7ce66614681c2c818
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_longdouble.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_mem_overlap.cpython-313.pyc b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_mem_overlap.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..551eb56bdc30f05751a7ee5e5548fb44f09b0802
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_mem_overlap.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_mem_policy.cpython-313.pyc b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_mem_policy.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..4bb108d6293fae70ae470cb5aa2a1407ce4cb5bc
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_mem_policy.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_memmap.cpython-313.pyc b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_memmap.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..768afef0df914e11bfc41b05a9dc0ad05d619ba0
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_memmap.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_multiprocessing.cpython-313.pyc b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_multiprocessing.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..861a3b3919abdc2bf36a144ff0b9197a478ef86c
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_multiprocessing.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_multithreading.cpython-313.pyc b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_multithreading.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..155ac60e3fbafda3c5776ea9750b629e8ad5fae6
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_multithreading.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_nep50_promotions.cpython-313.pyc b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_nep50_promotions.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..f152ddb72f6f3da2bf9cd05bf30f4c20189bd592
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_nep50_promotions.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_numerictypes.cpython-313.pyc b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_numerictypes.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..c28a0c72f7f40db3505a45b7d272deed7cadfdad
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_numerictypes.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_overrides.cpython-313.pyc b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_overrides.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..95519d13ec4247c1b60f1de46675629d77171619
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_overrides.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_print.cpython-313.pyc b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_print.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..94113747b281c7b14346659ab735e0f55dc7fb70
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_print.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_protocols.cpython-313.pyc b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_protocols.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..99ebfb339a6d72c569065dfd190e20a9da27ccee
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_protocols.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_records.cpython-313.pyc b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_records.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..8d0f9ad5393ea86ad943e6cfc60f0a585badecc7
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_records.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_scalar_ctors.cpython-313.pyc b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_scalar_ctors.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..417da1e3f7e7cb06c2a0546f27ad2732c0dbe596
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_scalar_ctors.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_scalar_methods.cpython-313.pyc b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_scalar_methods.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..679d85391a0e7c6107cfbba88a45b37fecfb80de
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_scalar_methods.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_scalarbuffer.cpython-313.pyc b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_scalarbuffer.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..589a8293bed9b89a6b5f72bbe93db24764c52f42
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_scalarbuffer.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_scalarinherit.cpython-313.pyc b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_scalarinherit.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..4bb84210d567bea78032fcee7a7a992df0930f1d
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_scalarinherit.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_scalarmath.cpython-313.pyc b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_scalarmath.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..8d9b5e0eda4b61e8a7351a8b23ee7883c16eb235
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_scalarmath.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_scalarprint.cpython-313.pyc b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_scalarprint.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..fbad43534c746950af63b9a20b113157b5e00abb
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_scalarprint.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_shape_base.cpython-313.pyc b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_shape_base.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..24a62efad139eeff7b5d0cfed2d4cefe09e456cf
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_shape_base.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_simd.cpython-313.pyc b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_simd.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..2c8de641f919fc1e5f04e0e0547999a49f8e3ec2
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_simd.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_simd_module.cpython-313.pyc b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_simd_module.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..968cb663ea29c5ddb04fc5907a85f52fe32e8169
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_simd_module.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_stringdtype.cpython-313.pyc b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_stringdtype.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..8f91470c1221606b8c98c8f9d3cc5f8bb110bc26
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_stringdtype.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_strings.cpython-313.pyc b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_strings.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..2bd0887b3266d7de77c6f8a562bbf09eb167c768
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_strings.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_umath_accuracy.cpython-313.pyc b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_umath_accuracy.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..1f6089788751d75478dc9684bac20e3b7b38bd01
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_umath_accuracy.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_umath_complex.cpython-313.pyc b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_umath_complex.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..5d5ee29659c0d986979cf41ca52862728d196b96
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_umath_complex.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_unicode.cpython-313.pyc b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_unicode.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..0bb4545ca977e8d04df8f592a88ffb21d8a88131
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/_core/tests/__pycache__/test_unicode.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/_locales.py b/python/user_packages/Python313/site-packages/numpy/_core/tests/_locales.py
new file mode 100644
index 0000000000000000000000000000000000000000..cec669d346dedf87f070793fd8939ffc548e1aa9
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/tests/_locales.py
@@ -0,0 +1,72 @@
+"""Provide class for testing in French locale
+
+"""
+import locale
+import sys
+
+import pytest
+
+__ALL__ = ['CommaDecimalPointLocale']
+
+
+def find_comma_decimal_point_locale():
+ """See if platform has a decimal point as comma locale.
+
+ Find a locale that uses a comma instead of a period as the
+ decimal point.
+
+ Returns
+ -------
+ old_locale: str
+ Locale when the function was called.
+ new_locale: {str, None)
+ First French locale found, None if none found.
+
+ """
+ if sys.platform == 'win32':
+ locales = ['FRENCH']
+ else:
+ locales = ['fr_FR', 'fr_FR.UTF-8', 'fi_FI', 'fi_FI.UTF-8']
+
+ old_locale = locale.getlocale(locale.LC_NUMERIC)
+ new_locale = None
+ try:
+ for loc in locales:
+ try:
+ locale.setlocale(locale.LC_NUMERIC, loc)
+ new_locale = loc
+ break
+ except locale.Error:
+ pass
+ finally:
+ locale.setlocale(locale.LC_NUMERIC, locale=old_locale)
+ return old_locale, new_locale
+
+
+class CommaDecimalPointLocale:
+ """Sets LC_NUMERIC to a locale with comma as decimal point.
+
+ Classes derived from this class have setup and teardown methods that run
+ tests with locale.LC_NUMERIC set to a locale where commas (',') are used as
+ the decimal point instead of periods ('.'). On exit the locale is restored
+ to the initial locale. It also serves as context manager with the same
+ effect. If no such locale is available, the test is skipped.
+
+ """
+ (cur_locale, tst_locale) = find_comma_decimal_point_locale()
+
+ def setup_method(self):
+ if self.tst_locale is None:
+ pytest.skip("No French locale available")
+ locale.setlocale(locale.LC_NUMERIC, locale=self.tst_locale)
+
+ def teardown_method(self):
+ locale.setlocale(locale.LC_NUMERIC, locale=self.cur_locale)
+
+ def __enter__(self):
+ if self.tst_locale is None:
+ pytest.skip("No French locale available")
+ locale.setlocale(locale.LC_NUMERIC, locale=self.tst_locale)
+
+ def __exit__(self, type, value, traceback):
+ locale.setlocale(locale.LC_NUMERIC, locale=self.cur_locale)
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/_natype.py b/python/user_packages/Python313/site-packages/numpy/_core/tests/_natype.py
new file mode 100644
index 0000000000000000000000000000000000000000..f8d25619b342dcc8a58ea8fa8858b260ed6931e1
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/tests/_natype.py
@@ -0,0 +1,144 @@
+# Vendored implementation of pandas.NA, adapted from pandas/_libs/missing.pyx
+#
+# This is vendored to avoid adding pandas as a test dependency.
+
+__all__ = ["pd_NA"]
+
+import numbers
+
+import numpy as np
+
+
+def _create_binary_propagating_op(name, is_divmod=False):
+ is_cmp = name.strip("_") in ["eq", "ne", "le", "lt", "ge", "gt"]
+
+ def method(self, other):
+ if (
+ other is pd_NA
+ or isinstance(other, (str, bytes, numbers.Number, np.bool))
+ or (isinstance(other, np.ndarray) and not other.shape)
+ ):
+ # Need the other.shape clause to handle NumPy scalars,
+ # since we do a setitem on `out` below, which
+ # won't work for NumPy scalars.
+ if is_divmod:
+ return pd_NA, pd_NA
+ else:
+ return pd_NA
+
+ elif isinstance(other, np.ndarray):
+ out = np.empty(other.shape, dtype=object)
+ out[:] = pd_NA
+
+ if is_divmod:
+ return out, out.copy()
+ else:
+ return out
+
+ elif is_cmp and isinstance(other, (np.datetime64, np.timedelta64)):
+ return pd_NA
+
+ elif isinstance(other, np.datetime64):
+ if name in ["__sub__", "__rsub__"]:
+ return pd_NA
+
+ elif isinstance(other, np.timedelta64):
+ if name in ["__sub__", "__rsub__", "__add__", "__radd__"]:
+ return pd_NA
+
+ return NotImplemented
+
+ method.__name__ = name
+ return method
+
+
+def _create_unary_propagating_op(name: str):
+ def method(self):
+ return pd_NA
+
+ method.__name__ = name
+ return method
+
+
+class NAType:
+ def __repr__(self) -> str:
+ return ""
+
+ def __format__(self, format_spec) -> str:
+ try:
+ return self.__repr__().__format__(format_spec)
+ except ValueError:
+ return self.__repr__()
+
+ def __bool__(self):
+ raise TypeError("boolean value of NA is ambiguous")
+
+ def __hash__(self):
+ return 2**61 - 1
+
+ def __reduce__(self):
+ return "pd_NA"
+
+ # Binary arithmetic and comparison ops -> propagate
+
+ __add__ = _create_binary_propagating_op("__add__")
+ __radd__ = _create_binary_propagating_op("__radd__")
+ __sub__ = _create_binary_propagating_op("__sub__")
+ __rsub__ = _create_binary_propagating_op("__rsub__")
+ __mul__ = _create_binary_propagating_op("__mul__")
+ __rmul__ = _create_binary_propagating_op("__rmul__")
+ __matmul__ = _create_binary_propagating_op("__matmul__")
+ __rmatmul__ = _create_binary_propagating_op("__rmatmul__")
+ __truediv__ = _create_binary_propagating_op("__truediv__")
+ __rtruediv__ = _create_binary_propagating_op("__rtruediv__")
+ __floordiv__ = _create_binary_propagating_op("__floordiv__")
+ __rfloordiv__ = _create_binary_propagating_op("__rfloordiv__")
+ __mod__ = _create_binary_propagating_op("__mod__")
+ __rmod__ = _create_binary_propagating_op("__rmod__")
+ __divmod__ = _create_binary_propagating_op("__divmod__", is_divmod=True)
+ __rdivmod__ = _create_binary_propagating_op("__rdivmod__", is_divmod=True)
+ # __lshift__ and __rshift__ are not implemented
+
+ __eq__ = _create_binary_propagating_op("__eq__")
+ __ne__ = _create_binary_propagating_op("__ne__")
+ __le__ = _create_binary_propagating_op("__le__")
+ __lt__ = _create_binary_propagating_op("__lt__")
+ __gt__ = _create_binary_propagating_op("__gt__")
+ __ge__ = _create_binary_propagating_op("__ge__")
+
+ # Unary ops
+
+ __neg__ = _create_unary_propagating_op("__neg__")
+ __pos__ = _create_unary_propagating_op("__pos__")
+ __abs__ = _create_unary_propagating_op("__abs__")
+ __invert__ = _create_unary_propagating_op("__invert__")
+
+ # Logical ops using Kleene logic
+
+ def __and__(self, other):
+ if other is False:
+ return False
+ elif other is True or other is pd_NA:
+ return pd_NA
+ return NotImplemented
+
+ __rand__ = __and__
+
+ def __or__(self, other):
+ if other is True:
+ return True
+ elif other is False or other is pd_NA:
+ return pd_NA
+ return NotImplemented
+
+ __ror__ = __or__
+
+ def __xor__(self, other):
+ if other is False or other is True or other is pd_NA:
+ return pd_NA
+ return NotImplemented
+
+ __rxor__ = __xor__
+
+
+pd_NA = NAType()
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/data/generate_umath_validation_data.cpp b/python/user_packages/Python313/site-packages/numpy/_core/tests/data/generate_umath_validation_data.cpp
new file mode 100644
index 0000000000000000000000000000000000000000..a63fbe7b7e88ccaebac26e576c26049db7971bf9
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/tests/data/generate_umath_validation_data.cpp
@@ -0,0 +1,170 @@
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+
+struct ufunc {
+ std::string name;
+ double (*f32func)(double);
+ long double (*f64func)(long double);
+ float f32ulp;
+ float f64ulp;
+};
+
+template
+T
+RandomFloat(T a, T b)
+{
+ T random = ((T)rand()) / (T)RAND_MAX;
+ T diff = b - a;
+ T r = random * diff;
+ return a + r;
+}
+
+template
+void
+append_random_array(std::vector &arr, T min, T max, size_t N)
+{
+ for (size_t ii = 0; ii < N; ++ii)
+ arr.emplace_back(RandomFloat(min, max));
+}
+
+template
+std::vector
+computeTrueVal(const std::vector &in, T2 (*mathfunc)(T2))
+{
+ std::vector out;
+ for (T1 elem : in) {
+ T2 elem_d = (T2)elem;
+ T1 out_elem = (T1)mathfunc(elem_d);
+ out.emplace_back(out_elem);
+ }
+ return out;
+}
+
+/*
+ * FP range:
+ * [-inf, -maxflt, -1., -minflt, -minden, 0., minden, minflt, 1., maxflt, inf]
+ */
+
+#define MINDEN std::numeric_limits::denorm_min()
+#define MINFLT std::numeric_limits::min()
+#define MAXFLT std::numeric_limits::max()
+#define INF std::numeric_limits::infinity()
+#define qNAN std::numeric_limits::quiet_NaN()
+#define sNAN std::numeric_limits::signaling_NaN()
+
+template
+std::vector
+generate_input_vector(std::string func)
+{
+ std::vector input = {MINDEN, -MINDEN, MINFLT, -MINFLT, MAXFLT,
+ -MAXFLT, INF, -INF, qNAN, sNAN,
+ -1.0, 1.0, 0.0, -0.0};
+
+ // [-1.0, 1.0]
+ if ((func == "arcsin") || (func == "arccos") || (func == "arctanh")) {
+ append_random_array(input, -1.0, 1.0, 700);
+ }
+ // (0.0, INF]
+ else if ((func == "log2") || (func == "log10")) {
+ append_random_array(input, 0.0, 1.0, 200);
+ append_random_array(input, MINDEN, MINFLT, 200);
+ append_random_array(input, MINFLT, 1.0, 200);
+ append_random_array(input, 1.0, MAXFLT, 200);
+ }
+ // (-1.0, INF]
+ else if (func == "log1p") {
+ append_random_array(input, -1.0, 1.0, 200);
+ append_random_array(input, -MINFLT, -MINDEN, 100);
+ append_random_array(input, -1.0, -MINFLT, 100);
+ append_random_array(input, MINDEN, MINFLT, 100);
+ append_random_array(input, MINFLT, 1.0, 100);
+ append_random_array(input, 1.0, MAXFLT, 100);
+ }
+ // [1.0, INF]
+ else if (func == "arccosh") {
+ append_random_array(input, 1.0, 2.0, 400);
+ append_random_array(input, 2.0, MAXFLT, 300);
+ }
+ // [-INF, INF]
+ else {
+ append_random_array(input, -1.0, 1.0, 100);
+ append_random_array(input, MINDEN, MINFLT, 100);
+ append_random_array(input, -MINFLT, -MINDEN, 100);
+ append_random_array(input, MINFLT, 1.0, 100);
+ append_random_array(input, -1.0, -MINFLT, 100);
+ append_random_array(input, 1.0, MAXFLT, 100);
+ append_random_array(input, -MAXFLT, -100.0, 100);
+ }
+
+ std::random_shuffle(input.begin(), input.end());
+ return input;
+}
+
+int
+main()
+{
+ srand(42);
+ std::vector umathfunc = {
+ {"sin", sin, sin, 1.49, 1.00},
+ {"cos", cos, cos, 1.49, 1.00},
+ {"tan", tan, tan, 3.91, 1.00},
+ {"arcsin", asin, asin, 3.12, 1.00},
+ {"arccos", acos, acos, 2.1, 1.00},
+ {"arctan", atan, atan, 2.3, 1.00},
+ {"sinh", sinh, sinh, 1.55, 1.00},
+ {"cosh", cosh, cosh, 2.48, 1.00},
+ {"tanh", tanh, tanh, 1.38, 2.00},
+ {"arcsinh", asinh, asinh, 1.01, 1.00},
+ {"arccosh", acosh, acosh, 1.16, 1.00},
+ {"arctanh", atanh, atanh, 1.45, 1.00},
+ {"cbrt", cbrt, cbrt, 1.94, 2.00},
+ //{"exp",exp,exp,3.76,1.00},
+ {"exp2", exp2, exp2, 1.01, 1.00},
+ {"expm1", expm1, expm1, 2.62, 1.00},
+ //{"log",log,log,1.84,1.00},
+ {"log10", log10, log10, 3.5, 1.00},
+ {"log1p", log1p, log1p, 1.96, 1.0},
+ {"log2", log2, log2, 2.12, 1.00},
+ };
+
+ for (int ii = 0; ii < umathfunc.size(); ++ii) {
+ // ignore sin/cos
+ if ((umathfunc[ii].name != "sin") && (umathfunc[ii].name != "cos")) {
+ std::string fileName =
+ "umath-validation-set-" + umathfunc[ii].name + ".csv";
+ std::ofstream txtOut;
+ txtOut.open(fileName, std::ofstream::trunc);
+ txtOut << "dtype,input,output,ulperrortol" << std::endl;
+
+ // Single Precision
+ auto f32in = generate_input_vector(umathfunc[ii].name);
+ auto f32out = computeTrueVal(f32in,
+ umathfunc[ii].f32func);
+ for (int jj = 0; jj < f32in.size(); ++jj) {
+ txtOut << "np.float32" << std::hex << ",0x"
+ << *reinterpret_cast(&f32in[jj]) << ",0x"
+ << *reinterpret_cast(&f32out[jj]) << ","
+ << ceil(umathfunc[ii].f32ulp) << std::endl;
+ }
+
+ // Double Precision
+ auto f64in = generate_input_vector(umathfunc[ii].name);
+ auto f64out = computeTrueVal(
+ f64in, umathfunc[ii].f64func);
+ for (int jj = 0; jj < f64in.size(); ++jj) {
+ txtOut << "np.float64" << std::hex << ",0x"
+ << *reinterpret_cast(&f64in[jj]) << ",0x"
+ << *reinterpret_cast(&f64out[jj]) << ","
+ << ceil(umathfunc[ii].f64ulp) << std::endl;
+ }
+ txtOut.close();
+ }
+ }
+ return 0;
+}
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/data/recarray_from_file.fits b/python/user_packages/Python313/site-packages/numpy/_core/tests/data/recarray_from_file.fits
new file mode 100644
index 0000000000000000000000000000000000000000..ca48ee85153645a7510e201d574e9b119c089dce
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/_core/tests/data/recarray_from_file.fits differ
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/data/umath-validation-set-README.txt b/python/user_packages/Python313/site-packages/numpy/_core/tests/data/umath-validation-set-README.txt
new file mode 100644
index 0000000000000000000000000000000000000000..70ac062ef6999022d5f256d22d825af96f802e2e
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/tests/data/umath-validation-set-README.txt
@@ -0,0 +1,15 @@
+Steps to validate transcendental functions:
+1) Add a file 'umath-validation-set-.txt', where ufuncname is name of
+ the function in NumPy you want to validate
+2) The file should contain 4 columns: dtype,input,expected output,ulperror
+ a. dtype: one of np.float16, np.float32, np.float64
+ b. input: floating point input to ufunc in hex. Example: 0x414570a4
+ represents 12.340000152587890625
+ c. expected output: floating point output for the corresponding input in hex.
+ This should be computed using a high(er) precision library and then rounded to
+ same format as the input.
+ d. ulperror: expected maximum ulp error of the function. This
+ should be same across all rows of the same dtype. Otherwise, the function is
+ tested for the maximum ulp error among all entries of that dtype.
+3) Add file umath-validation-set-.txt to the test file test_umath_accuracy.py
+ which will then validate your ufunc.
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/data/umath-validation-set-arccos.csv b/python/user_packages/Python313/site-packages/numpy/_core/tests/data/umath-validation-set-arccos.csv
new file mode 100644
index 0000000000000000000000000000000000000000..da33e9c56d7026a73b12232008a6c334c36c0683
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/tests/data/umath-validation-set-arccos.csv
@@ -0,0 +1,1429 @@
+dtype,input,output,ulperrortol
+np.float32,0xbddd7f50,0x3fd6eec2,3
+np.float32,0xbe32a20c,0x3fdf8182,3
+np.float32,0xbf607c09,0x4028f84f,3
+np.float32,0x3f25d906,0x3f5db544,3
+np.float32,0x3f01cec8,0x3f84febf,3
+np.float32,0x3f1d5c6e,0x3f68a735,3
+np.float32,0xbf0cab89,0x4009c36d,3
+np.float32,0xbf176b40,0x400d0941,3
+np.float32,0x3f3248b2,0x3f4ce6d4,3
+np.float32,0x3f390b48,0x3f434e0d,3
+np.float32,0xbe261698,0x3fddea43,3
+np.float32,0x3f0e1154,0x3f7b848b,3
+np.float32,0xbf379a3c,0x4017b764,3
+np.float32,0xbeda6f2c,0x4000bd62,3
+np.float32,0xbf6a0c3f,0x402e5d5a,3
+np.float32,0x3ef1d700,0x3f8a17b7,3
+np.float32,0xbf6f4f65,0x4031d30d,3
+np.float32,0x3f2c9eee,0x3f54adfd,3
+np.float32,0x3f3cfb18,0x3f3d8a1e,3
+np.float32,0x3ba80800,0x3fc867d2,3
+np.float32,0x3e723b08,0x3faa7e4d,3
+np.float32,0xbf65820f,0x402bb054,3
+np.float32,0xbee64e7a,0x40026410,3
+np.float32,0x3cb15140,0x3fc64a87,3
+np.float32,0x3f193660,0x3f6ddf2a,3
+np.float32,0xbf0e5b52,0x400a44f7,3
+np.float32,0x3ed55f14,0x3f920a4b,3
+np.float32,0x3dd11a80,0x3fbbf85c,3
+np.float32,0xbf4f5c4b,0x4020f4f9,3
+np.float32,0x3f787532,0x3e792e87,3
+np.float32,0x3f40e6ac,0x3f37a74f,3
+np.float32,0x3f1c1318,0x3f6a47b6,3
+np.float32,0xbe3c48d8,0x3fe0bb70,3
+np.float32,0xbe94d4bc,0x3feed08e,3
+np.float32,0xbe5c3688,0x3fe4ce26,3
+np.float32,0xbf6fe026,0x403239cb,3
+np.float32,0x3ea5983c,0x3f9ee7bf,3
+np.float32,0x3f1471e6,0x3f73c5bb,3
+np.float32,0x3f0e2622,0x3f7b6b87,3
+np.float32,0xbf597180,0x40257ad1,3
+np.float32,0xbeb5321c,0x3ff75d34,3
+np.float32,0x3f5afcd2,0x3f0b6012,3
+np.float32,0xbef2ff88,0x40042e14,3
+np.float32,0xbedc747e,0x400104f5,3
+np.float32,0xbee0c2f4,0x40019dfc,3
+np.float32,0xbf152cd8,0x400c57dc,3
+np.float32,0xbf6cf9e2,0x40303bbe,3
+np.float32,0x3ed9cd74,0x3f90d1a1,3
+np.float32,0xbf754406,0x4036767f,3
+np.float32,0x3f59c5c2,0x3f0db42f,3
+np.float32,0x3f2eefd8,0x3f518684,3
+np.float32,0xbf156bf9,0x400c6b49,3
+np.float32,0xbd550790,0x3fcfb8dc,3
+np.float32,0x3ede58fc,0x3f8f8f77,3
+np.float32,0xbf00ac19,0x40063c4b,3
+np.float32,0x3f4d25ba,0x3f24280e,3
+np.float32,0xbe9568be,0x3feef73c,3
+np.float32,0x3f67d154,0x3ee05547,3
+np.float32,0x3f617226,0x3efcb4f4,3
+np.float32,0xbf3ab41a,0x4018d6cc,3
+np.float32,0xbf3186fe,0x401592cd,3
+np.float32,0x3de3ba50,0x3fbacca9,3
+np.float32,0x3e789f98,0x3fa9ab97,3
+np.float32,0x3f016e08,0x3f8536d8,3
+np.float32,0x3e8b618c,0x3fa5c571,3
+np.float32,0x3eff97bc,0x3f8628a9,3
+np.float32,0xbf6729f0,0x402ca32f,3
+np.float32,0xbebec146,0x3ff9eddc,3
+np.float32,0x3ddb2e60,0x3fbb563a,3
+np.float32,0x3caa8e40,0x3fc66595,3
+np.float32,0xbf5973f2,0x40257bfa,3
+np.float32,0xbdd82c70,0x3fd69916,3
+np.float32,0xbedf4c82,0x400169ef,3
+np.float32,0x3ef8f22c,0x3f881184,3
+np.float32,0xbf1d74d4,0x400eedc9,3
+np.float32,0x3f2e10a6,0x3f52b790,3
+np.float32,0xbf08ecc0,0x4008a628,3
+np.float32,0x3ecb7db4,0x3f94be9f,3
+np.float32,0xbf052ded,0x40078bfc,3
+np.float32,0x3f2ee78a,0x3f5191e4,3
+np.float32,0xbf56f4e1,0x40245194,3
+np.float32,0x3f600a3e,0x3f014a25,3
+np.float32,0x3f3836f8,0x3f44808b,3
+np.float32,0x3ecabfbc,0x3f94f25c,3
+np.float32,0x3c70f500,0x3fc72dec,3
+np.float32,0x3f17c444,0x3f6fabf0,3
+np.float32,0xbf4c22a5,0x401f9a09,3
+np.float32,0xbe4205dc,0x3fe1765a,3
+np.float32,0x3ea49138,0x3f9f2d36,3
+np.float32,0xbece0082,0x3ffe106b,3
+np.float32,0xbe387578,0x3fe03eef,3
+np.float32,0xbf2b6466,0x40137a30,3
+np.float32,0xbe9dadb2,0x3ff12204,3
+np.float32,0xbf56b3f2,0x402433bb,3
+np.float32,0xbdf9b4d8,0x3fd8b51f,3
+np.float32,0x3f58a596,0x3f0fd4b4,3
+np.float32,0xbedf5748,0x40016b6e,3
+np.float32,0x3f446442,0x3f32476f,3
+np.float32,0x3f5be886,0x3f099658,3
+np.float32,0x3ea1e44c,0x3f9fe1de,3
+np.float32,0xbf11e9b8,0x400b585f,3
+np.float32,0xbf231f8f,0x4010befb,3
+np.float32,0xbf4395ea,0x401c2dd0,3
+np.float32,0x3e9e7784,0x3fa0c8a6,3
+np.float32,0xbe255184,0x3fddd14c,3
+np.float32,0x3f70d25e,0x3eb13148,3
+np.float32,0x3f220cdc,0x3f62a722,3
+np.float32,0xbd027bf0,0x3fcd23e7,3
+np.float32,0x3e4ef8b8,0x3faf02d2,3
+np.float32,0xbf76fc6b,0x40380728,3
+np.float32,0xbf57e761,0x4024c1cd,3
+np.float32,0x3ed4fc20,0x3f922580,3
+np.float32,0xbf09b64a,0x4008e1db,3
+np.float32,0x3f21ca62,0x3f62fcf5,3
+np.float32,0xbe55f610,0x3fe40170,3
+np.float32,0xbc0def80,0x3fca2bbb,3
+np.float32,0xbebc8764,0x3ff9547b,3
+np.float32,0x3ec1b200,0x3f9766d1,3
+np.float32,0xbf4ee44e,0x4020c1ee,3
+np.float32,0xbea85852,0x3ff3f22a,3
+np.float32,0xbf195c0c,0x400da3d3,3
+np.float32,0xbf754b5d,0x40367ce8,3
+np.float32,0xbdcbfe50,0x3fd5d52b,3
+np.float32,0xbf1adb87,0x400e1be3,3
+np.float32,0xbf6f8491,0x4031f898,3
+np.float32,0xbf6f9ae7,0x4032086e,3
+np.float32,0xbf52b3f0,0x40226790,3
+np.float32,0xbf698452,0x402e09f4,3
+np.float32,0xbf43dc9a,0x401c493a,3
+np.float32,0xbf165f7f,0x400cb664,3
+np.float32,0x3e635468,0x3fac682f,3
+np.float32,0xbe8cf2b6,0x3fecc28a,3
+np.float32,0x7f7fffff,0x7fc00000,3
+np.float32,0xbf4c6513,0x401fb597,3
+np.float32,0xbf02b8f8,0x4006d47e,3
+np.float32,0x3ed3759c,0x3f9290c8,3
+np.float32,0xbf2a7a5f,0x40132b98,3
+np.float32,0xbae65000,0x3fc9496f,3
+np.float32,0x3f65f5ea,0x3ee8ef07,3
+np.float32,0xbe7712fc,0x3fe84106,3
+np.float32,0xbb9ff700,0x3fc9afd2,3
+np.float32,0x3d8d87a0,0x3fc03592,3
+np.float32,0xbefc921c,0x40058c23,3
+np.float32,0xbf286566,0x401279d8,3
+np.float32,0x3f53857e,0x3f192eaf,3
+np.float32,0xbee9b0f4,0x4002dd90,3
+np.float32,0x3f4041f8,0x3f38a14a,3
+np.float32,0x3f54ea96,0x3f16b02d,3
+np.float32,0x3ea50ef8,0x3f9f0c01,3
+np.float32,0xbeaad2dc,0x3ff49a4a,3
+np.float32,0xbec428c8,0x3ffb636f,3
+np.float32,0xbda46178,0x3fd358c7,3
+np.float32,0xbefacfc4,0x40054b7f,3
+np.float32,0xbf7068f9,0x40329c85,3
+np.float32,0x3f70b850,0x3eb1caa7,3
+np.float32,0x7fa00000,0x7fe00000,3
+np.float32,0x80000000,0x3fc90fdb,3
+np.float32,0x3f68d5c8,0x3edb7cf3,3
+np.float32,0x3d9443d0,0x3fbfc98a,3
+np.float32,0xff7fffff,0x7fc00000,3
+np.float32,0xbeee7ba8,0x40038a5e,3
+np.float32,0xbf0aaaba,0x40092a73,3
+np.float32,0x3f36a4e8,0x3f46c0ee,3
+np.float32,0x3ed268e4,0x3f92da82,3
+np.float32,0xbee6002c,0x4002591b,3
+np.float32,0xbe8f2752,0x3fed5576,3
+np.float32,0x3f525912,0x3f1b40e0,3
+np.float32,0xbe8e151e,0x3fed0e16,3
+np.float32,0x1,0x3fc90fdb,3
+np.float32,0x3ee23b84,0x3f8e7ae1,3
+np.float32,0xbf5961ca,0x40257361,3
+np.float32,0x3f6bbca0,0x3ecd14cd,3
+np.float32,0x3e27b230,0x3fb4014d,3
+np.float32,0xbf183bb8,0x400d49fc,3
+np.float32,0x3f57759c,0x3f120b68,3
+np.float32,0xbd6994c0,0x3fd05d84,3
+np.float32,0xbf1dd684,0x400f0cc8,3
+np.float32,0xbececc1c,0x3ffe480a,3
+np.float32,0xbf48855f,0x401e206d,3
+np.float32,0x3f28c922,0x3f59d382,3
+np.float32,0xbf65c094,0x402bd3b0,3
+np.float32,0x3f657d42,0x3eeb11dd,3
+np.float32,0xbed32d4e,0x3fff7b15,3
+np.float32,0xbf31af02,0x4015a0b1,3
+np.float32,0x3d89eb00,0x3fc06f7f,3
+np.float32,0x3dac2830,0x3fbe4a17,3
+np.float32,0x3f7f7cb6,0x3d81a7df,3
+np.float32,0xbedbb570,0x4000ea82,3
+np.float32,0x3db37830,0x3fbdd4a8,3
+np.float32,0xbf376f48,0x4017a7fd,3
+np.float32,0x3f319f12,0x3f4dd2c9,3
+np.float32,0x7fc00000,0x7fc00000,3
+np.float32,0x3f1b4f70,0x3f6b3e31,3
+np.float32,0x3e33c880,0x3fb278d1,3
+np.float32,0x3f2796e0,0x3f5b69bd,3
+np.float32,0x3f4915d6,0x3f2ad4d0,3
+np.float32,0x3e4db120,0x3faf2ca0,3
+np.float32,0x3ef03dd4,0x3f8a8ba9,3
+np.float32,0x3e96ca88,0x3fa2cbf7,3
+np.float32,0xbeb136ce,0x3ff64d2b,3
+np.float32,0xbf2f3938,0x4014c75e,3
+np.float32,0x3f769dde,0x3e8b0d76,3
+np.float32,0x3f67cec8,0x3ee06148,3
+np.float32,0x3f0a1ade,0x3f80204e,3
+np.float32,0x3e4b9718,0x3faf7144,3
+np.float32,0x3cccb480,0x3fc5dcf3,3
+np.float32,0x3caeb740,0x3fc654f0,3
+np.float32,0x3f684e0e,0x3ede0678,3
+np.float32,0x3f0ba93c,0x3f7e6663,3
+np.float32,0xbf12bbc4,0x400b985e,3
+np.float32,0xbf2a8e1a,0x40133235,3
+np.float32,0x3f42029c,0x3f35f5c5,3
+np.float32,0x3eed1728,0x3f8b6f9c,3
+np.float32,0xbe5779ac,0x3fe432fd,3
+np.float32,0x3f6ed8b8,0x3ebc7e4b,3
+np.float32,0x3eea25b0,0x3f8c43c7,3
+np.float32,0x3f1988a4,0x3f6d786b,3
+np.float32,0xbe751674,0x3fe7ff8a,3
+np.float32,0xbe9f7418,0x3ff1997d,3
+np.float32,0x3dca11d0,0x3fbc6979,3
+np.float32,0x3f795226,0x3e6a6cab,3
+np.float32,0xbea780e0,0x3ff3b926,3
+np.float32,0xbed92770,0x4000901e,3
+np.float32,0xbf3e9f8c,0x401a49f8,3
+np.float32,0x3f0f7054,0x3f79ddb2,3
+np.float32,0x3a99d400,0x3fc8e966,3
+np.float32,0xbef082b0,0x4003d3c6,3
+np.float32,0xbf0d0790,0x4009defb,3
+np.float32,0xbf1649da,0x400cafb4,3
+np.float32,0xbea5aca8,0x3ff33d5c,3
+np.float32,0xbf4e1843,0x40206ba1,3
+np.float32,0xbe3d7d5c,0x3fe0e2ad,3
+np.float32,0xbf0e802d,0x400a500e,3
+np.float32,0xbf0de8f0,0x400a2295,3
+np.float32,0xbf3016ba,0x4015137e,3
+np.float32,0x3f36b1ea,0x3f46ae5d,3
+np.float32,0xbd27f170,0x3fce4fc7,3
+np.float32,0x3e96ec54,0x3fa2c31f,3
+np.float32,0x3eb4dfdc,0x3f9ad87d,3
+np.float32,0x3f5cac6c,0x3f0815cc,3
+np.float32,0xbf0489aa,0x40075bf1,3
+np.float32,0x3df010c0,0x3fba05f5,3
+np.float32,0xbf229f4a,0x4010956a,3
+np.float32,0x3f75e474,0x3e905a99,3
+np.float32,0xbcece6a0,0x3fccc397,3
+np.float32,0xbdb41528,0x3fd454e7,3
+np.float32,0x3ec8b2f8,0x3f958118,3
+np.float32,0x3f5eaa70,0x3f041a1d,3
+np.float32,0xbf32e1cc,0x40160b91,3
+np.float32,0xbe8e6026,0x3fed219c,3
+np.float32,0x3e6b3160,0x3fab65e3,3
+np.float32,0x3e6d7460,0x3fab1b81,3
+np.float32,0xbf13fbde,0x400bfa3b,3
+np.float32,0xbe8235ec,0x3fe9f9e3,3
+np.float32,0x3d71c4a0,0x3fc18096,3
+np.float32,0x3eb769d0,0x3f9a2aa0,3
+np.float32,0xbf68cb3b,0x402d99e4,3
+np.float32,0xbd917610,0x3fd22932,3
+np.float32,0x3d3cba60,0x3fc3297f,3
+np.float32,0xbf383cbe,0x4017f1cc,3
+np.float32,0xbeee96d0,0x40038e34,3
+np.float32,0x3ec89cb4,0x3f958725,3
+np.float32,0x3ebf92d8,0x3f97f95f,3
+np.float32,0x3f30f3da,0x3f4ec021,3
+np.float32,0xbd26b560,0x3fce45e4,3
+np.float32,0xbec0eb12,0x3ffa8330,3
+np.float32,0x3f6d592a,0x3ec4a6c1,3
+np.float32,0x3ea6d39c,0x3f9e9463,3
+np.float32,0x3e884184,0x3fa6951e,3
+np.float32,0x3ea566c4,0x3f9ef4d1,3
+np.float32,0x3f0c8f4c,0x3f7d5380,3
+np.float32,0x3f28e1ba,0x3f59b2cb,3
+np.float32,0x3f798538,0x3e66e1c3,3
+np.float32,0xbe2889b8,0x3fde39b8,3
+np.float32,0x3f3da05e,0x3f3c949c,3
+np.float32,0x3f24d700,0x3f5f073e,3
+np.float32,0xbe5b5768,0x3fe4b198,3
+np.float32,0xbed3b03a,0x3fff9f05,3
+np.float32,0x3e8a1c4c,0x3fa619eb,3
+np.float32,0xbf075d24,0x40083030,3
+np.float32,0x3f765648,0x3e8d1f52,3
+np.float32,0xbf70fc5e,0x403308bb,3
+np.float32,0x3f557ae8,0x3f15ab76,3
+np.float32,0x3f02f7ea,0x3f84521c,3
+np.float32,0x3f7ebbde,0x3dcbc5c5,3
+np.float32,0xbefbdfc6,0x40057285,3
+np.float32,0x3ec687ac,0x3f9617d9,3
+np.float32,0x3e4831c8,0x3fafe01b,3
+np.float32,0x3e25cde0,0x3fb43ea8,3
+np.float32,0x3e4f2ab8,0x3faefc70,3
+np.float32,0x3ea60ae4,0x3f9ec973,3
+np.float32,0xbf1ed55f,0x400f5dde,3
+np.float32,0xbf5ad4aa,0x40262479,3
+np.float32,0x3e8b3594,0x3fa5d0de,3
+np.float32,0x3f3a77aa,0x3f413c80,3
+np.float32,0xbf07512b,0x40082ca9,3
+np.float32,0x3f33d990,0x3f4ab5e5,3
+np.float32,0x3f521556,0x3f1bb78f,3
+np.float32,0xbecf6036,0x3ffe7086,3
+np.float32,0x3db91bd0,0x3fbd7a11,3
+np.float32,0x3ef63a74,0x3f88d839,3
+np.float32,0xbf2f1116,0x4014b99c,3
+np.float32,0xbf17fdc0,0x400d36b9,3
+np.float32,0xbe87df2c,0x3feb7117,3
+np.float32,0x80800000,0x3fc90fdb,3
+np.float32,0x3ee24c1c,0x3f8e7641,3
+np.float32,0x3f688dce,0x3edcd644,3
+np.float32,0xbf0f4e1c,0x400a8e1b,3
+np.float32,0x0,0x3fc90fdb,3
+np.float32,0x3f786eba,0x3e7999d4,3
+np.float32,0xbf404f80,0x401aeca8,3
+np.float32,0xbe9ffb6a,0x3ff1bd18,3
+np.float32,0x3f146bfc,0x3f73ccfd,3
+np.float32,0xbe47d630,0x3fe233ee,3
+np.float32,0xbe95847c,0x3feefe7c,3
+np.float32,0xbf135df0,0x400bc9e5,3
+np.float32,0x3ea19f3c,0x3f9ff411,3
+np.float32,0x3f235e20,0x3f60f247,3
+np.float32,0xbec789ec,0x3ffc4def,3
+np.float32,0x3f04b656,0x3f834db6,3
+np.float32,0x3dfaf440,0x3fb95679,3
+np.float32,0xbe4a7f28,0x3fe28abe,3
+np.float32,0x3ed4850c,0x3f92463b,3
+np.float32,0x3ec4ba5c,0x3f9694dd,3
+np.float32,0xbce24ca0,0x3fcc992b,3
+np.float32,0xbf5b7c6e,0x402675a0,3
+np.float32,0xbea3ce2a,0x3ff2bf04,3
+np.float32,0x3db02c60,0x3fbe0998,3
+np.float32,0x3c47b780,0x3fc78069,3
+np.float32,0x3ed33b20,0x3f92a0d5,3
+np.float32,0xbf4556d7,0x401cdcde,3
+np.float32,0xbe1b6e28,0x3fdc90ec,3
+np.float32,0xbf3289b7,0x4015ecd0,3
+np.float32,0x3df3f240,0x3fb9c76d,3
+np.float32,0x3eefa7d0,0x3f8ab61d,3
+np.float32,0xbe945838,0x3feeb006,3
+np.float32,0xbf0b1386,0x400949a3,3
+np.float32,0x3f77e546,0x3e812cc1,3
+np.float32,0x3e804ba0,0x3fa8a480,3
+np.float32,0x3f43dcea,0x3f331a06,3
+np.float32,0x3eb87450,0x3f99e33c,3
+np.float32,0x3e5f4898,0x3facecea,3
+np.float32,0x3f646640,0x3eeff10e,3
+np.float32,0x3f1aa832,0x3f6c1051,3
+np.float32,0xbebf6bfa,0x3ffa1bdc,3
+np.float32,0xbb77f300,0x3fc98bd4,3
+np.float32,0x3f3587fe,0x3f485645,3
+np.float32,0x3ef85f34,0x3f883b8c,3
+np.float32,0x3f50e584,0x3f1dc82c,3
+np.float32,0x3f1d30a8,0x3f68deb0,3
+np.float32,0x3ee75a78,0x3f8d0c86,3
+np.float32,0x3f2c023a,0x3f5581e1,3
+np.float32,0xbf074e34,0x40082bca,3
+np.float32,0xbead71f0,0x3ff54c6d,3
+np.float32,0xbf39ed88,0x40188e69,3
+np.float32,0x3f5d2fe6,0x3f07118b,3
+np.float32,0xbf1f79f8,0x400f9267,3
+np.float32,0x3e900c58,0x3fa48e99,3
+np.float32,0xbf759cb2,0x4036c47b,3
+np.float32,0x3f63329c,0x3ef5359c,3
+np.float32,0xbf5d6755,0x40276709,3
+np.float32,0x3f2ce31c,0x3f54519a,3
+np.float32,0x7f800000,0x7fc00000,3
+np.float32,0x3f1bf50e,0x3f6a6d9a,3
+np.float32,0x3f258334,0x3f5e25d8,3
+np.float32,0xbf661a3f,0x402c06ac,3
+np.float32,0x3d1654c0,0x3fc45cef,3
+np.float32,0xbef14a36,0x4003f009,3
+np.float32,0xbf356051,0x4016ec3a,3
+np.float32,0x3f6ccc42,0x3ec79193,3
+np.float32,0xbf2fe3d6,0x401501f9,3
+np.float32,0x3deedc80,0x3fba195b,3
+np.float32,0x3f2e5a28,0x3f52533e,3
+np.float32,0x3e6b68b8,0x3fab5ec8,3
+np.float32,0x3e458240,0x3fb037b7,3
+np.float32,0xbf24bab0,0x401144cb,3
+np.float32,0x3f600f4c,0x3f013fb2,3
+np.float32,0x3f021a04,0x3f84d316,3
+np.float32,0x3f741732,0x3e9cc948,3
+np.float32,0x3f0788aa,0x3f81a5b0,3
+np.float32,0x3f28802c,0x3f5a347c,3
+np.float32,0x3c9eb400,0x3fc69500,3
+np.float32,0x3e5d11e8,0x3fad357a,3
+np.float32,0x3d921250,0x3fbfecb9,3
+np.float32,0x3f354866,0x3f48b066,3
+np.float32,0xbf72cf43,0x40346d84,3
+np.float32,0x3eecdbb8,0x3f8b805f,3
+np.float32,0xbee585d0,0x400247fd,3
+np.float32,0x3e3607a8,0x3fb22fc6,3
+np.float32,0xbf0cb7d6,0x4009c71c,3
+np.float32,0xbf56b230,0x402432ec,3
+np.float32,0xbf4ced02,0x401fee29,3
+np.float32,0xbf3a325c,0x4018a776,3
+np.float32,0x3ecae8bc,0x3f94e732,3
+np.float32,0xbe48c7e8,0x3fe252bd,3
+np.float32,0xbe175d7c,0x3fdc0d5b,3
+np.float32,0x3ea78dac,0x3f9e632d,3
+np.float32,0xbe7434a8,0x3fe7e279,3
+np.float32,0x3f1f9e02,0x3f65c7b9,3
+np.float32,0xbe150f2c,0x3fdbc2c2,3
+np.float32,0x3ee13480,0x3f8ec423,3
+np.float32,0x3ecb7d54,0x3f94beb9,3
+np.float32,0x3f1cef42,0x3f693181,3
+np.float32,0xbf1ec06a,0x400f5730,3
+np.float32,0xbe112acc,0x3fdb44e8,3
+np.float32,0xbe77b024,0x3fe85545,3
+np.float32,0x3ec86fe0,0x3f959353,3
+np.float32,0x3f36b326,0x3f46ac9a,3
+np.float32,0x3e581a70,0x3fadd829,3
+np.float32,0xbf032c0c,0x4006f5f9,3
+np.float32,0xbf43b1fd,0x401c38b1,3
+np.float32,0x3f3701b4,0x3f463c5c,3
+np.float32,0x3f1a995a,0x3f6c22f1,3
+np.float32,0xbf05de0b,0x4007bf97,3
+np.float32,0x3d4bd960,0x3fc2b063,3
+np.float32,0x3f0e1618,0x3f7b7ed0,3
+np.float32,0x3edfd420,0x3f8f2628,3
+np.float32,0xbf6662fe,0x402c3047,3
+np.float32,0x3ec0690c,0x3f97bf9b,3
+np.float32,0xbeaf4146,0x3ff5c7a0,3
+np.float32,0x3f5e7764,0x3f04816d,3
+np.float32,0xbedd192c,0x40011bc5,3
+np.float32,0x3eb76350,0x3f9a2c5e,3
+np.float32,0xbed8108c,0x400069a5,3
+np.float32,0xbe59f31c,0x3fe48401,3
+np.float32,0xbea3e1e6,0x3ff2c439,3
+np.float32,0x3e26d1f8,0x3fb41db5,3
+np.float32,0x3f3a0a7c,0x3f41dba5,3
+np.float32,0x3ebae068,0x3f993ce4,3
+np.float32,0x3f2d8e30,0x3f536942,3
+np.float32,0xbe838bbe,0x3fea5247,3
+np.float32,0x3ebe4420,0x3f98538f,3
+np.float32,0xbcc59b80,0x3fcc265c,3
+np.float32,0x3eebb5c8,0x3f8bd334,3
+np.float32,0xbafc3400,0x3fc94ee8,3
+np.float32,0xbf63ddc1,0x402ac683,3
+np.float32,0xbeabdf80,0x3ff4e18f,3
+np.float32,0x3ea863f0,0x3f9e2a78,3
+np.float32,0x3f45b292,0x3f303bc1,3
+np.float32,0xbe68aa60,0x3fe666bf,3
+np.float32,0x3eb9de18,0x3f998239,3
+np.float32,0xbf719d85,0x4033815e,3
+np.float32,0x3edef9a8,0x3f8f62db,3
+np.float32,0xbd7781c0,0x3fd0cd1e,3
+np.float32,0x3f0b3b90,0x3f7ee92a,3
+np.float32,0xbe3eb3b4,0x3fe10a27,3
+np.float32,0xbf31a4c4,0x40159d23,3
+np.float32,0x3e929434,0x3fa3e5b0,3
+np.float32,0xbeb1a90e,0x3ff66b9e,3
+np.float32,0xbeba9b5e,0x3ff8d048,3
+np.float32,0xbf272a84,0x4012119e,3
+np.float32,0x3f1ebbd0,0x3f66e889,3
+np.float32,0x3ed3cdc8,0x3f927893,3
+np.float32,0xbf50dfce,0x40219b58,3
+np.float32,0x3f0c02de,0x3f7dfb62,3
+np.float32,0xbf694de3,0x402de8d2,3
+np.float32,0xbeaeb13e,0x3ff5a14f,3
+np.float32,0xbf61aa7a,0x40299702,3
+np.float32,0xbf13d159,0x400bed35,3
+np.float32,0xbeecd034,0x40034e0b,3
+np.float32,0xbe50c2e8,0x3fe35761,3
+np.float32,0x3f714406,0x3eae8e57,3
+np.float32,0xbf1ca486,0x400eabd8,3
+np.float32,0x3f5858cc,0x3f106497,3
+np.float32,0x3f670288,0x3ee41c84,3
+np.float32,0xbf20bd2c,0x400ff9f5,3
+np.float32,0xbe29afd8,0x3fde5eff,3
+np.float32,0xbf635e6a,0x402a80f3,3
+np.float32,0x3e82b7b0,0x3fa80446,3
+np.float32,0x3e982e7c,0x3fa26ece,3
+np.float32,0x3d9f0e00,0x3fbf1c6a,3
+np.float32,0x3e8299b4,0x3fa80c07,3
+np.float32,0xbf0529c1,0x40078ac3,3
+np.float32,0xbf403b8a,0x401ae519,3
+np.float32,0xbe57e09c,0x3fe44027,3
+np.float32,0x3ea1c8f4,0x3f9fe913,3
+np.float32,0xbe216a94,0x3fdd52d0,3
+np.float32,0x3f59c442,0x3f0db709,3
+np.float32,0xbd636260,0x3fd02bdd,3
+np.float32,0xbdbbc788,0x3fd4d08d,3
+np.float32,0x3dd19560,0x3fbbf0a3,3
+np.float32,0x3f060ad4,0x3f828641,3
+np.float32,0x3b102e00,0x3fc8c7c4,3
+np.float32,0x3f42b3b8,0x3f34e5a6,3
+np.float32,0x3f0255ac,0x3f84b071,3
+np.float32,0xbf014898,0x40066996,3
+np.float32,0x3e004dc0,0x3fb8fb51,3
+np.float32,0xbf594ff8,0x40256af2,3
+np.float32,0x3efafddc,0x3f877b80,3
+np.float32,0xbf5f0780,0x40283899,3
+np.float32,0x3ee95e54,0x3f8c7bcc,3
+np.float32,0x3eba2f0c,0x3f996c80,3
+np.float32,0x3f37721c,0x3f459b68,3
+np.float32,0x3e2be780,0x3fb378bf,3
+np.float32,0x3e550270,0x3fae3d69,3
+np.float32,0x3e0f9500,0x3fb70e0a,3
+np.float32,0xbf51974a,0x4021eaf4,3
+np.float32,0x3f393832,0x3f430d05,3
+np.float32,0x3f3df16a,0x3f3c1bd8,3
+np.float32,0xbd662340,0x3fd041ed,3
+np.float32,0x3f7e8418,0x3ddc9fce,3
+np.float32,0xbf392734,0x40184672,3
+np.float32,0x3ee3b278,0x3f8e124e,3
+np.float32,0x3eed4808,0x3f8b61d2,3
+np.float32,0xbf6fccbd,0x40322beb,3
+np.float32,0x3e3ecdd0,0x3fb1123b,3
+np.float32,0x3f4419e0,0x3f32bb45,3
+np.float32,0x3f595e00,0x3f0e7914,3
+np.float32,0xbe8c1486,0x3fec88c6,3
+np.float32,0xbf800000,0x40490fdb,3
+np.float32,0xbdaf5020,0x3fd4084d,3
+np.float32,0xbf407660,0x401afb63,3
+np.float32,0x3f0c3aa8,0x3f7db8b8,3
+np.float32,0xbcdb5980,0x3fcc7d5b,3
+np.float32,0x3f4738d4,0x3f2dd1ed,3
+np.float32,0x3f4d7064,0x3f23ab14,3
+np.float32,0xbeb1d576,0x3ff67774,3
+np.float32,0xbf507166,0x40216bb3,3
+np.float32,0x3e86484c,0x3fa71813,3
+np.float32,0x3f09123e,0x3f80bd35,3
+np.float32,0xbe9abe0e,0x3ff05cb2,3
+np.float32,0x3f3019dc,0x3f4fed21,3
+np.float32,0xbe99e00e,0x3ff0227d,3
+np.float32,0xbf155ec5,0x400c6739,3
+np.float32,0x3f5857ba,0x3f106698,3
+np.float32,0x3edf619c,0x3f8f45fb,3
+np.float32,0xbf5ab76a,0x40261664,3
+np.float32,0x3e54b5a8,0x3fae4738,3
+np.float32,0xbee92772,0x4002ca40,3
+np.float32,0x3f2fd610,0x3f504a7a,3
+np.float32,0xbf38521c,0x4017f97e,3
+np.float32,0xff800000,0x7fc00000,3
+np.float32,0x3e2da348,0x3fb34077,3
+np.float32,0x3f2f85fa,0x3f50b894,3
+np.float32,0x3e88f9c8,0x3fa66551,3
+np.float32,0xbf61e570,0x4029b648,3
+np.float32,0xbeab362c,0x3ff4b4a1,3
+np.float32,0x3ec6c310,0x3f9607bd,3
+np.float32,0x3f0d7bda,0x3f7c3810,3
+np.float32,0xbeba5d36,0x3ff8bf99,3
+np.float32,0x3f4b0554,0x3f27adda,3
+np.float32,0x3f60f5dc,0x3efebfb3,3
+np.float32,0x3f36ce2c,0x3f468603,3
+np.float32,0xbe70afac,0x3fe76e8e,3
+np.float32,0x3f673350,0x3ee339b5,3
+np.float32,0xbe124cf0,0x3fdb698c,3
+np.float32,0xbf1243dc,0x400b73d0,3
+np.float32,0x3f3c8850,0x3f3e3407,3
+np.float32,0x3ea02f24,0x3fa05500,3
+np.float32,0xbeffed34,0x400607db,3
+np.float32,0x3f5c75c2,0x3f08817c,3
+np.float32,0x3f4b2fbe,0x3f27682d,3
+np.float32,0x3ee47c34,0x3f8dd9f9,3
+np.float32,0x3f50d48c,0x3f1de584,3
+np.float32,0x3f12dc5e,0x3f75b628,3
+np.float32,0xbefe7e4a,0x4005d2f4,3
+np.float32,0xbec2e846,0x3ffb0cbc,3
+np.float32,0xbedc3036,0x4000fb80,3
+np.float32,0xbf48aedc,0x401e311f,3
+np.float32,0x3f6e032e,0x3ec11363,3
+np.float32,0xbf60de15,0x40292b72,3
+np.float32,0x3f06585e,0x3f8258ba,3
+np.float32,0x3ef49b98,0x3f894e66,3
+np.float32,0x3cc5fe00,0x3fc5f7cf,3
+np.float32,0xbf7525c5,0x40365c2c,3
+np.float32,0x3f64f9f8,0x3eed5fb2,3
+np.float32,0x3e8849c0,0x3fa692fb,3
+np.float32,0x3e50c878,0x3faec79e,3
+np.float32,0x3ed61530,0x3f91d831,3
+np.float32,0xbf54872e,0x40233724,3
+np.float32,0xbf52ee7f,0x4022815e,3
+np.float32,0xbe708c24,0x3fe769fc,3
+np.float32,0xbf26fc54,0x40120260,3
+np.float32,0x3f226e8a,0x3f6228db,3
+np.float32,0xbef30406,0x40042eb8,3
+np.float32,0x3f5d996c,0x3f063f5f,3
+np.float32,0xbf425f9c,0x401bb618,3
+np.float32,0x3e4bb260,0x3faf6dc9,3
+np.float32,0xbe52d5a4,0x3fe39b29,3
+np.float32,0xbe169cf0,0x3fdbf505,3
+np.float32,0xbedfc422,0x40017a8e,3
+np.float32,0x3d8ffef0,0x3fc00e05,3
+np.float32,0xbf12bdab,0x400b98f2,3
+np.float32,0x3f295d0a,0x3f590e88,3
+np.float32,0x3f49d8e4,0x3f2998aa,3
+np.float32,0xbef914f4,0x40050c12,3
+np.float32,0xbf4ea2b5,0x4020a61e,3
+np.float32,0xbf3a89e5,0x4018c762,3
+np.float32,0x3e8707b4,0x3fa6e67a,3
+np.float32,0x3ac55400,0x3fc8de86,3
+np.float32,0x800000,0x3fc90fdb,3
+np.float32,0xbeb9762c,0x3ff8819b,3
+np.float32,0xbebbe23c,0x3ff92815,3
+np.float32,0xbf598c88,0x402587a1,3
+np.float32,0x3e95d864,0x3fa30b4a,3
+np.float32,0x3f7f6f40,0x3d882486,3
+np.float32,0xbf53658c,0x4022b604,3
+np.float32,0xbf2a35f2,0x401314ad,3
+np.float32,0x3eb14380,0x3f9bcf28,3
+np.float32,0x3f0e0c64,0x3f7b8a7a,3
+np.float32,0x3d349920,0x3fc36a9a,3
+np.float32,0xbec2092c,0x3ffad071,3
+np.float32,0xbe1d08e8,0x3fdcc4e0,3
+np.float32,0xbf008968,0x40063243,3
+np.float32,0xbefad582,0x40054c51,3
+np.float32,0xbe52d010,0x3fe39a72,3
+np.float32,0x3f4afdac,0x3f27ba6b,3
+np.float32,0x3f6c483c,0x3eca4408,3
+np.float32,0xbef3cb68,0x40044b0c,3
+np.float32,0x3e94687c,0x3fa36b6f,3
+np.float32,0xbf64ae5c,0x402b39bb,3
+np.float32,0xbf0022b4,0x40061497,3
+np.float32,0x80000001,0x3fc90fdb,3
+np.float32,0x3f25bcd0,0x3f5dda4b,3
+np.float32,0x3ed91b40,0x3f9102d7,3
+np.float32,0x3f800000,0x0,3
+np.float32,0xbebc6aca,0x3ff94cca,3
+np.float32,0x3f239e9a,0x3f609e7d,3
+np.float32,0xbf7312be,0x4034a305,3
+np.float32,0x3efd16d0,0x3f86e148,3
+np.float32,0x3f52753a,0x3f1b0f72,3
+np.float32,0xbde58960,0x3fd7702c,3
+np.float32,0x3ef88580,0x3f883099,3
+np.float32,0x3eebaefc,0x3f8bd51e,3
+np.float32,0x3e877d2c,0x3fa6c807,3
+np.float32,0x3f1a0324,0x3f6cdf32,3
+np.float32,0xbedfe20a,0x40017eb6,3
+np.float32,0x3f205a3c,0x3f64d69d,3
+np.float32,0xbeed5b7c,0x400361b0,3
+np.float32,0xbf69ba10,0x402e2ad0,3
+np.float32,0x3c4fe200,0x3fc77014,3
+np.float32,0x3f043310,0x3f839a69,3
+np.float32,0xbeaf359a,0x3ff5c485,3
+np.float32,0x3db3f110,0x3fbdcd12,3
+np.float32,0x3e24af88,0x3fb462ed,3
+np.float32,0xbf34e858,0x4016c1c8,3
+np.float32,0x3f3334f2,0x3f4b9cd0,3
+np.float32,0xbf145882,0x400c16a2,3
+np.float32,0xbf541c38,0x40230748,3
+np.float32,0x3eba7e10,0x3f99574b,3
+np.float32,0xbe34c6e0,0x3fdfc731,3
+np.float32,0xbe957abe,0x3feefbf0,3
+np.float32,0xbf595a59,0x40256fdb,3
+np.float32,0xbdedc7b8,0x3fd7f4f0,3
+np.float32,0xbf627c02,0x402a06a9,3
+np.float32,0x3f339b78,0x3f4b0d18,3
+np.float32,0xbf2df6d2,0x40145929,3
+np.float32,0x3f617726,0x3efc9fd8,3
+np.float32,0xbee3a8fc,0x40020561,3
+np.float32,0x3efe9f68,0x3f867043,3
+np.float32,0xbf2c3e76,0x4013c3ba,3
+np.float32,0xbf218f28,0x40103d84,3
+np.float32,0xbf1ea847,0x400f4f7f,3
+np.float32,0x3ded9160,0x3fba2e31,3
+np.float32,0x3bce1b00,0x3fc841bf,3
+np.float32,0xbe90566e,0x3feda46a,3
+np.float32,0xbf5ea2ba,0x4028056b,3
+np.float32,0x3f538e62,0x3f191ee6,3
+np.float32,0xbf59e054,0x4025af74,3
+np.float32,0xbe8c98ba,0x3fecab24,3
+np.float32,0x3ee7bdb0,0x3f8cf0b7,3
+np.float32,0xbf2eb828,0x40149b2b,3
+np.float32,0xbe5eb904,0x3fe52068,3
+np.float32,0xbf16b422,0x400cd08d,3
+np.float32,0x3f1ab9b4,0x3f6bfa58,3
+np.float32,0x3dc23040,0x3fbce82a,3
+np.float32,0xbf29d9e7,0x4012f5e5,3
+np.float32,0xbf38f30a,0x40183393,3
+np.float32,0x3e88e798,0x3fa66a09,3
+np.float32,0x3f1d07e6,0x3f69124f,3
+np.float32,0xbe1d3d34,0x3fdccb7e,3
+np.float32,0xbf1715be,0x400ceec2,3
+np.float32,0x3f7a0eac,0x3e5d11f7,3
+np.float32,0xbe764924,0x3fe82707,3
+np.float32,0xbf01a1f8,0x4006837c,3
+np.float32,0x3f2be730,0x3f55a661,3
+np.float32,0xbf7bb070,0x403d4ce5,3
+np.float32,0xbd602110,0x3fd011c9,3
+np.float32,0x3f5d080c,0x3f07609d,3
+np.float32,0xbda20400,0x3fd332d1,3
+np.float32,0x3f1c62da,0x3f69e308,3
+np.float32,0xbf2c6916,0x4013d223,3
+np.float32,0xbf44f8fd,0x401cb816,3
+np.float32,0x3f4da392,0x3f235539,3
+np.float32,0x3e9e8aa0,0x3fa0c3a0,3
+np.float32,0x3e9633c4,0x3fa2f366,3
+np.float32,0xbf0422ab,0x40073ddd,3
+np.float32,0x3f518386,0x3f1cb603,3
+np.float32,0x3f24307a,0x3f5fe096,3
+np.float32,0xbdfb4220,0x3fd8ce24,3
+np.float32,0x3f179d28,0x3f6fdc7d,3
+np.float32,0xbecc2df0,0x3ffd911e,3
+np.float32,0x3f3dff0c,0x3f3c0782,3
+np.float32,0xbf58c4d8,0x4025295b,3
+np.float32,0xbdcf8438,0x3fd60dd3,3
+np.float32,0xbeeaf1b2,0x40030aa7,3
+np.float32,0xbf298a28,0x4012db45,3
+np.float32,0x3f6c4dec,0x3eca2678,3
+np.float32,0x3f4d1ac8,0x3f243a59,3
+np.float32,0x3f62cdfa,0x3ef6e8f8,3
+np.float32,0xbee8acce,0x4002b909,3
+np.float32,0xbd5f2af0,0x3fd00a15,3
+np.float32,0x3f5fde8e,0x3f01a453,3
+np.float32,0x3e95233c,0x3fa33aa4,3
+np.float32,0x3ecd2a60,0x3f9449be,3
+np.float32,0x3f10aa86,0x3f78619d,3
+np.float32,0x3f3888e8,0x3f440a70,3
+np.float32,0x3eeb5bfc,0x3f8bec7d,3
+np.float32,0xbe12d654,0x3fdb7ae6,3
+np.float32,0x3eca3110,0x3f951931,3
+np.float32,0xbe2d1b7c,0x3fdece05,3
+np.float32,0xbf29e9db,0x4012fb3a,3
+np.float32,0xbf0c50b8,0x4009a845,3
+np.float32,0xbed9f0e4,0x4000abef,3
+np.float64,0x3fd078ec5ba0f1d8,0x3ff4f7c00595a4d3,1
+np.float64,0xbfdbc39743b7872e,0x400027f85bce43b2,1
+np.float64,0xbfacd2707c39a4e0,0x3ffa08ae1075d766,1
+np.float64,0xbfc956890f32ad14,0x3ffc52308e7285fd,1
+np.float64,0xbf939c2298273840,0x3ff9706d18e6ea6b,1
+np.float64,0xbfe0d7048961ae09,0x4000fff4406bd395,1
+np.float64,0xbfe9d19b86f3a337,0x4004139bc683a69f,1
+np.float64,0x3fd35c7f90a6b900,0x3ff437220e9123f8,1
+np.float64,0x3fdddca171bbb944,0x3ff15da61e61ec08,1
+np.float64,0x3feb300de9f6601c,0x3fe1c6fadb68cdca,1
+np.float64,0xbfef1815327e302a,0x400739808fc6f964,1
+np.float64,0xbfe332d78e6665af,0x4001b6c4ef922f7c,1
+np.float64,0xbfedbf4dfb7b7e9c,0x40061cefed62a58b,1
+np.float64,0xbfd8dcc7e3b1b990,0x3fff84307713c2c3,1
+np.float64,0xbfedaf161c7b5e2c,0x400612027c1b2b25,1
+np.float64,0xbfed9bde897b37bd,0x4006053f05bd7d26,1
+np.float64,0xbfe081ebc26103d8,0x4000e70755eb66e0,1
+np.float64,0xbfe0366f9c606cdf,0x4000d11212f29afd,1
+np.float64,0xbfc7c115212f822c,0x3ffc1e8c9d58f7db,1
+np.float64,0x3fd8dd9a78b1bb34,0x3ff2bf8d0f4c9376,1
+np.float64,0xbfe54eff466a9dfe,0x4002655950b611f4,1
+np.float64,0xbfe4aad987e955b3,0x40022efb19882518,1
+np.float64,0x3f70231ca0204600,0x3ff911d834e7abf4,1
+np.float64,0x3fede01d047bc03a,0x3fd773cecbd8561b,1
+np.float64,0xbfd6a00d48ad401a,0x3ffee9fd7051633f,1
+np.float64,0x3fd44f3d50a89e7c,0x3ff3f74dd0fc9c91,1
+np.float64,0x3fe540f0d0ea81e2,0x3feb055a7c7d43d6,1
+np.float64,0xbf3ba2e200374800,0x3ff923b582650c6c,1
+np.float64,0x3fe93b2d3f72765a,0x3fe532fa15331072,1
+np.float64,0x3fee8ce5a17d19cc,0x3fd35666eefbe336,1
+np.float64,0x3fe55d5f8feabac0,0x3feadf3dcfe251d4,1
+np.float64,0xbfd1d2ede8a3a5dc,0x3ffda600041ac884,1
+np.float64,0xbfee41186e7c8231,0x40067a625cc6f64d,1
+np.float64,0x3fe521a8b9ea4352,0x3feb2f1a6c8084e5,1
+np.float64,0x3fc65378ef2ca6f0,0x3ff653dfe81ee9f2,1
+np.float64,0x3fdaba0fbcb57420,0x3ff23d630995c6ba,1
+np.float64,0xbfe6b7441d6d6e88,0x4002e182539a2994,1
+np.float64,0x3fda00b6dcb4016c,0x3ff2703d516f28e7,1
+np.float64,0xbfe8699f01f0d33e,0x400382326920ea9e,1
+np.float64,0xbfef5889367eb112,0x4007832af5983793,1
+np.float64,0x3fefb57c8aff6afa,0x3fc14700ab38dcef,1
+np.float64,0xbfda0dfdaab41bfc,0x3fffd75b6fd497f6,1
+np.float64,0xbfb059c36620b388,0x3ffa27c528b97a42,1
+np.float64,0xbfdd450ab1ba8a16,0x40005dcac6ab50fd,1
+np.float64,0xbfe54d6156ea9ac2,0x400264ce9f3f0fb9,1
+np.float64,0xbfe076e94760edd2,0x4000e3d1374884da,1
+np.float64,0xbfc063286720c650,0x3ffb2fd1d6bff0ef,1
+np.float64,0xbfe24680f2e48d02,0x40016ddfbb5bcc0e,1
+np.float64,0xbfdc9351d2b926a4,0x400044e3756fb765,1
+np.float64,0x3fefb173d8ff62e8,0x3fc1bd5626f80850,1
+np.float64,0x3fe77c117a6ef822,0x3fe7e57089bad2ec,1
+np.float64,0xbfddbcebf7bb79d8,0x40006eadb60406b3,1
+np.float64,0xbfecf6625ff9ecc5,0x40059e6c6961a6db,1
+np.float64,0x3fdc8950b8b912a0,0x3ff1bcfb2e27795b,1
+np.float64,0xbfeb2fa517765f4a,0x4004b00aee3e6888,1
+np.float64,0x3fd0efc88da1df90,0x3ff4d8f7cbd8248a,1
+np.float64,0xbfe6641a2becc834,0x4002c43362c1bd0f,1
+np.float64,0xbfe28aec0fe515d8,0x400182c91d4df039,1
+np.float64,0xbfd5ede8d0abdbd2,0x3ffeba7baef05ae8,1
+np.float64,0xbfbd99702a3b32e0,0x3ffafca21c1053f1,1
+np.float64,0x3f96f043f82de080,0x3ff8c6384d5eb610,1
+np.float64,0xbfe5badbc9eb75b8,0x400289c8cd5873d1,1
+np.float64,0x3fe5c6bf95eb8d80,0x3fea5093e9a3e43e,1
+np.float64,0x3fb1955486232ab0,0x3ff8086d4c3e71d5,1
+np.float64,0xbfea145f397428be,0x4004302237a35871,1
+np.float64,0xbfdabe685db57cd0,0x400003e2e29725fb,1
+np.float64,0xbfefc79758ff8f2f,0x400831814e23bfc8,1
+np.float64,0x3fd7edb66cafdb6c,0x3ff3006c5123bfaf,1
+np.float64,0xbfeaf7644bf5eec8,0x400495a7963ce4ed,1
+np.float64,0x3fdf838d78bf071c,0x3ff0e527eed73800,1
+np.float64,0xbfd1a0165ba3402c,0x3ffd98c5ab76d375,1
+np.float64,0x3fd75b67a9aeb6d0,0x3ff327c8d80b17cf,1
+np.float64,0x3fc2aa9647255530,0x3ff6ca854b157df1,1
+np.float64,0xbfe0957fd4612b00,0x4000ecbf3932becd,1
+np.float64,0x3fda1792c0b42f24,0x3ff269fbb2360487,1
+np.float64,0x3fd480706ca900e0,0x3ff3ea53a6aa3ae8,1
+np.float64,0xbfd0780ed9a0f01e,0x3ffd4bfd544c7d47,1
+np.float64,0x3feeec0cd77dd81a,0x3fd0a8a241fdb441,1
+np.float64,0x3fcfa933e93f5268,0x3ff5223478621a6b,1
+np.float64,0x3fdad2481fb5a490,0x3ff236b86c6b2b49,1
+np.float64,0x3fe03b129de07626,0x3ff09f21fb868451,1
+np.float64,0xbfc01212cd202424,0x3ffb259a07159ae9,1
+np.float64,0x3febdb912df7b722,0x3fe0768e20dac8c9,1
+np.float64,0xbfbf2148763e4290,0x3ffb154c361ce5bf,1
+np.float64,0xbfb1a7eb1e234fd8,0x3ffa3cb37ac4a176,1
+np.float64,0xbfe26ad1ec64d5a4,0x400178f480ecce8d,1
+np.float64,0x3fe6d1cd1b6da39a,0x3fe8dc20ec4dad3b,1
+np.float64,0xbfede0e53dfbc1ca,0x4006340d3bdd7c97,1
+np.float64,0xbfe8fd1bd9f1fa38,0x4003bc3477f93f40,1
+np.float64,0xbfe329d0f26653a2,0x4001b3f345af5648,1
+np.float64,0xbfe4bb20eee97642,0x40023451404d6d08,1
+np.float64,0x3fb574832e2ae900,0x3ff7ca4bed0c7110,1
+np.float64,0xbfdf3c098fbe7814,0x4000a525bb72d659,1
+np.float64,0x3fa453e6d428a7c0,0x3ff87f512bb9b0c6,1
+np.float64,0x3faaec888435d920,0x3ff84a7d9e4def63,1
+np.float64,0xbfcdc240df3b8480,0x3ffce30ece754e7f,1
+np.float64,0xbf8c3220f0386440,0x3ff95a600ae6e157,1
+np.float64,0x3fe806076c700c0e,0x3fe71784a96c76eb,1
+np.float64,0x3fedf9b0e17bf362,0x3fd6e35fc0a7b6c3,1
+np.float64,0xbfe1b48422636908,0x400141bd8ed251bc,1
+np.float64,0xbfe82e2817705c50,0x40036b5a5556d021,1
+np.float64,0xbfc8ef8ff931df20,0x3ffc450ffae7ce58,1
+np.float64,0xbfe919fa94f233f5,0x4003c7cce4697fe8,1
+np.float64,0xbfc3ace4a72759c8,0x3ffb9a197bb22651,1
+np.float64,0x3fe479f71ee8f3ee,0x3fec0bd2f59097aa,1
+np.float64,0xbfeeb54a967d6a95,0x4006da12c83649c5,1
+np.float64,0x3fe5e74ea8ebce9e,0x3fea2407cef0f08c,1
+np.float64,0x3fb382baf2270570,0x3ff7e98213b921ba,1
+np.float64,0xbfdd86fd3cbb0dfa,0x40006712952ddbcf,1
+np.float64,0xbfd250eb52a4a1d6,0x3ffdc6d56253b1cd,1
+np.float64,0x3fea30c4ed74618a,0x3fe3962deba4f30e,1
+np.float64,0x3fc895963d312b30,0x3ff60a5d52fcbccc,1
+np.float64,0x3fe9cc4f6273989e,0x3fe442740942c80f,1
+np.float64,0xbfe8769f5cf0ed3f,0x4003873b4cb5bfce,1
+np.float64,0xbfe382f3726705e7,0x4001cfeb3204d110,1
+np.float64,0x3fbfe9a9163fd350,0x3ff7220bd2b97c8f,1
+np.float64,0xbfca6162bb34c2c4,0x3ffc743f939358f1,1
+np.float64,0x3fe127a014e24f40,0x3ff0147c4bafbc39,1
+np.float64,0x3fee9cdd2a7d39ba,0x3fd2e9ef45ab122f,1
+np.float64,0x3fa9ffb97c33ff80,0x3ff851e69fa3542c,1
+np.float64,0x3fd378f393a6f1e8,0x3ff42faafa77de56,1
+np.float64,0xbfe4df1e1669be3c,0x400240284df1c321,1
+np.float64,0x3fed0ed79bfa1db0,0x3fdba89060aa96fb,1
+np.float64,0x3fdef2ee52bde5dc,0x3ff10e942244f4f1,1
+np.float64,0xbfdab38f3ab5671e,0x40000264d8d5b49b,1
+np.float64,0x3fbe95a96e3d2b50,0x3ff73774cb59ce2d,1
+np.float64,0xbfe945653af28aca,0x4003d9657bf129c2,1
+np.float64,0xbfb18f3f2a231e80,0x3ffa3b27cba23f50,1
+np.float64,0xbfef50bf22fea17e,0x40077998a850082c,1
+np.float64,0xbfc52b8c212a5718,0x3ffbca8d6560a2da,1
+np.float64,0x7ff8000000000000,0x7ff8000000000000,1
+np.float64,0x3fc1e3a02d23c740,0x3ff6e3a5fcac12a4,1
+np.float64,0xbfeb5e4ea5f6bc9d,0x4004c65abef9426f,1
+np.float64,0xbfe425b132684b62,0x400203c29608b00d,1
+np.float64,0xbfbfa1c19e3f4380,0x3ffb1d6367711158,1
+np.float64,0x3fbba2776e3744f0,0x3ff766f6df586fad,1
+np.float64,0xbfb5d0951e2ba128,0x3ffa7f712480b25e,1
+np.float64,0xbfe949fdab7293fb,0x4003db4530a18507,1
+np.float64,0xbfcf13519b3e26a4,0x3ffd0e6f0a6c38ee,1
+np.float64,0x3f91e6d72823cdc0,0x3ff8da5f08909b6e,1
+np.float64,0x3f78a2e360314600,0x3ff909586727caef,1
+np.float64,0xbfe1ae7e8fe35cfd,0x40013fef082caaa3,1
+np.float64,0x3fe97a6dd1f2f4dc,0x3fe4cb4b99863478,1
+np.float64,0xbfcc1e1e69383c3c,0x3ffcad250a949843,1
+np.float64,0x3faccb797c399700,0x3ff83b8066b49330,1
+np.float64,0x3fe7a2647a6f44c8,0x3fe7acceae6ec425,1
+np.float64,0xbfec3bfcf0f877fa,0x4005366af5a7175b,1
+np.float64,0xbfe2310b94646217,0x400167588fceb228,1
+np.float64,0x3feb167372762ce6,0x3fe1f74c0288fad8,1
+np.float64,0xbfb722b4ee2e4568,0x3ffa94a81b94dfca,1
+np.float64,0x3fc58da9712b1b50,0x3ff66cf8f072aa14,1
+np.float64,0xbfe7fff9d6effff4,0x400359d01b8141de,1
+np.float64,0xbfd56691c5aacd24,0x3ffe9686697797e8,1
+np.float64,0x3fe3ab0557e7560a,0x3fed1593959ef8e8,1
+np.float64,0x3fdd458995ba8b14,0x3ff1883d6f22a322,1
+np.float64,0x3fe7bbed2cef77da,0x3fe786d618094cda,1
+np.float64,0x3fa31a30c4263460,0x3ff88920b936fd79,1
+np.float64,0x8010000000000000,0x3ff921fb54442d18,1
+np.float64,0xbfdc5effbdb8be00,0x40003d95fe0dff11,1
+np.float64,0x3febfdad7e77fb5a,0x3fe030b5297dbbdd,1
+np.float64,0x3fe4f3f3b2e9e7e8,0x3feb6bc59eeb2be2,1
+np.float64,0xbfe44469fd6888d4,0x40020daa5488f97a,1
+np.float64,0xbfe19fddb0e33fbc,0x40013b8c902b167b,1
+np.float64,0x3fa36ad17c26d5a0,0x3ff8869b3e828134,1
+np.float64,0x3fcf23e6c93e47d0,0x3ff5336491a65d1e,1
+np.float64,0xffefffffffffffff,0x7ff8000000000000,1
+np.float64,0xbfe375f4cee6ebea,0x4001cbd2ba42e8b5,1
+np.float64,0xbfaef1215c3de240,0x3ffa19ab02081189,1
+np.float64,0xbfec39c59c78738b,0x4005353dc38e3d78,1
+np.float64,0x7ff4000000000000,0x7ffc000000000000,1
+np.float64,0xbfec09bb7b781377,0x40051c0a5754cb3a,1
+np.float64,0x3fe8301f2870603e,0x3fe6d783c5ef0944,1
+np.float64,0xbfed418c987a8319,0x4005cbae1b8693d1,1
+np.float64,0xbfdc16e7adb82dd0,0x4000338b634eaf03,1
+np.float64,0x3fd5d361bdaba6c4,0x3ff390899300a54c,1
+np.float64,0xbff0000000000000,0x400921fb54442d18,1
+np.float64,0x3fd5946232ab28c4,0x3ff3a14767813f29,1
+np.float64,0x3fe833e5fef067cc,0x3fe6d1be720edf2d,1
+np.float64,0x3fedf746a67bee8e,0x3fd6f127fdcadb7b,1
+np.float64,0x3fd90353d3b206a8,0x3ff2b54f7d369ba9,1
+np.float64,0x3fec4b4b72f89696,0x3fdf1b38d2e93532,1
+np.float64,0xbfe9c67596f38ceb,0x40040ee5f524ce03,1
+np.float64,0x3fd350d91aa6a1b4,0x3ff43a303c0da27f,1
+np.float64,0x3fd062603ba0c4c0,0x3ff4fd9514b935d8,1
+np.float64,0xbfe24c075f64980e,0x40016f8e9f2663b3,1
+np.float64,0x3fdaa546eeb54a8c,0x3ff2431a88fef1d5,1
+np.float64,0x3fe92b8151f25702,0x3fe54c67e005cbf9,1
+np.float64,0xbfe1be8b8a637d17,0x400144c078f67c6e,1
+np.float64,0xbfe468a1d7e8d144,0x40021964b118cbf4,1
+np.float64,0xbfdc6de4fab8dbca,0x40003fa9e27893d8,1
+np.float64,0xbfe3c2788ae784f1,0x4001e407ba3aa956,1
+np.float64,0xbfe2bf1542e57e2a,0x400192d4a9072016,1
+np.float64,0xbfe6982f4c6d305e,0x4002d681b1991bbb,1
+np.float64,0x3fdbceb1c4b79d64,0x3ff1f0f117b9d354,1
+np.float64,0x3fdb3705e7b66e0c,0x3ff21af01ca27ace,1
+np.float64,0x3fe3e6358ee7cc6c,0x3fecca4585053983,1
+np.float64,0xbfe16d6a9a62dad5,0x40012c7988aee247,1
+np.float64,0xbfce66e4413ccdc8,0x3ffcf83b08043a0c,1
+np.float64,0xbfeb6cd46876d9a9,0x4004cd61733bfb79,1
+np.float64,0xbfdb1cdd64b639ba,0x400010e6cf087cb7,1
+np.float64,0xbfe09e4e30e13c9c,0x4000ef5277c47721,1
+np.float64,0xbfee88dd127d11ba,0x4006b3cd443643ac,1
+np.float64,0xbf911e06c8223c00,0x3ff966744064fb05,1
+np.float64,0xbfe8f22bc471e458,0x4003b7d5513af295,1
+np.float64,0x3fe3d7329567ae66,0x3fecdd6c241f83ee,1
+np.float64,0x3fc8a9404b315280,0x3ff607dc175edf3f,1
+np.float64,0x3fe7eb80ad6fd702,0x3fe73f8fdb3e6a6c,1
+np.float64,0x3fef0931e37e1264,0x3fcf7fde80a3c5ab,1
+np.float64,0x3fe2ed3c3fe5da78,0x3fee038334cd1860,1
+np.float64,0x3fe251fdb8e4a3fc,0x3feec26dc636ac31,1
+np.float64,0x3feb239436764728,0x3fe1de9462455da7,1
+np.float64,0xbfe63fd7eeec7fb0,0x4002b78cfa3d2fa6,1
+np.float64,0x3fdd639cb5bac738,0x3ff17fc7d92b3eee,1
+np.float64,0x3fd0a7a13fa14f44,0x3ff4eba95c559c84,1
+np.float64,0x3fe804362d70086c,0x3fe71a44cd91ffa4,1
+np.float64,0xbfe0fecf6e61fd9f,0x40010bac8edbdc4f,1
+np.float64,0x3fcb74acfd36e958,0x3ff5ac84437f1b7c,1
+np.float64,0x3fe55053e1eaa0a8,0x3feaf0bf76304c30,1
+np.float64,0x3fc06b508d20d6a0,0x3ff7131da17f3902,1
+np.float64,0x3fdd78750fbaf0ec,0x3ff179e97fbf7f65,1
+np.float64,0x3fe44cb946689972,0x3fec46859b5da6be,1
+np.float64,0xbfeb165a7ff62cb5,0x4004a41c9cc9589e,1
+np.float64,0x3fe01ffb2b603ff6,0x3ff0aed52bf1c3c1,1
+np.float64,0x3f983c60a83078c0,0x3ff8c107805715ab,1
+np.float64,0x3fd8b5ff13b16c00,0x3ff2ca4a837a476a,1
+np.float64,0x3fc80510a1300a20,0x3ff61cc3b4af470b,1
+np.float64,0xbfd3935b06a726b6,0x3ffe1b3a2066f473,1
+np.float64,0xbfdd4a1f31ba943e,0x40005e81979ed445,1
+np.float64,0xbfa76afdd42ed600,0x3ff9dd63ffba72d2,1
+np.float64,0x3fe7e06d496fc0da,0x3fe7503773566707,1
+np.float64,0xbfea5fbfe874bf80,0x40045106af6c538f,1
+np.float64,0x3fee000c487c0018,0x3fd6bef1f8779d88,1
+np.float64,0xbfb39f4ee2273ea0,0x3ffa5c3f2b3888ab,1
+np.float64,0x3feb9247b0772490,0x3fe1092d2905efce,1
+np.float64,0x3fdaa39b4cb54738,0x3ff243901da0da17,1
+np.float64,0x3fcd5b2b493ab658,0x3ff56e262e65b67d,1
+np.float64,0x3fcf82512f3f04a0,0x3ff52738847c55f2,1
+np.float64,0x3fe2af5e0c655ebc,0x3fee4ffab0c82348,1
+np.float64,0xbfec0055d0f800ac,0x4005172d325933e8,1
+np.float64,0x3fe71da9336e3b52,0x3fe86f2e12f6e303,1
+np.float64,0x3fbefab0723df560,0x3ff731188ac716ec,1
+np.float64,0xbfe11dca28623b94,0x400114d3d4ad370d,1
+np.float64,0x3fbcbda8ca397b50,0x3ff755281078abd4,1
+np.float64,0x3fe687c7126d0f8e,0x3fe945099a7855cc,1
+np.float64,0xbfecde510579bca2,0x400590606e244591,1
+np.float64,0xbfd72de681ae5bce,0x3fff0ff797ad1755,1
+np.float64,0xbfe7c0f7386f81ee,0x40034226e0805309,1
+np.float64,0x3fd8d55619b1aaac,0x3ff2c1cb3267b14e,1
+np.float64,0x3fecd7a2ad79af46,0x3fdcabbffeaa279e,1
+np.float64,0x3fee7fb1a8fcff64,0x3fd3ae620286fe19,1
+np.float64,0xbfc5f3a3592be748,0x3ffbe3ed204d9842,1
+np.float64,0x3fec9e5527793caa,0x3fddb00bc8687e4b,1
+np.float64,0x3fc35dc70f26bb90,0x3ff6b3ded7191e33,1
+np.float64,0x3fda91c07ab52380,0x3ff24878848fec8f,1
+np.float64,0xbfe12cde1fe259bc,0x4001194ab99d5134,1
+np.float64,0xbfd35ab736a6b56e,0x3ffe0c5ce8356d16,1
+np.float64,0x3fc9c94123339280,0x3ff5e3239f3ad795,1
+np.float64,0xbfe72f54926e5ea9,0x40030c95d1d02b56,1
+np.float64,0xbfee283186fc5063,0x40066786bd0feb79,1
+np.float64,0xbfe7b383f56f6708,0x40033d23ef0e903d,1
+np.float64,0x3fd6037327ac06e8,0x3ff383bf2f311ddb,1
+np.float64,0x3fe0e344b561c68a,0x3ff03cd90fd4ba65,1
+np.float64,0xbfef0ff54b7e1feb,0x400730fa5fce381e,1
+np.float64,0x3fd269929da4d324,0x3ff476b230136d32,1
+np.float64,0xbfbc5fb9f638bf70,0x3ffae8e63a4e3234,1
+np.float64,0xbfe2e8bc84e5d179,0x40019fb5874f4310,1
+np.float64,0xbfd7017413ae02e8,0x3fff040d843c1531,1
+np.float64,0x3fefd362fa7fa6c6,0x3fbababc3ddbb21d,1
+np.float64,0x3fecb62ed3f96c5e,0x3fdd44ba77ccff94,1
+np.float64,0xbfb16fad5222df58,0x3ffa392d7f02b522,1
+np.float64,0x3fbcf4abc639e950,0x3ff751b23c40e27f,1
+np.float64,0x3fe128adbce2515c,0x3ff013dc91db04b5,1
+np.float64,0x3fa5dd9d842bbb40,0x3ff87300c88d512f,1
+np.float64,0xbfe61efcaf6c3dfa,0x4002ac27117f87c9,1
+np.float64,0x3feffe1233fffc24,0x3f9638d3796a4954,1
+np.float64,0xbfe78548b66f0a92,0x40032c0447b7bfe2,1
+np.float64,0x3fe7bd38416f7a70,0x3fe784e86d6546b6,1
+np.float64,0x3fe0d6bc5961ad78,0x3ff0443899e747ac,1
+np.float64,0xbfd0bb6e47a176dc,0x3ffd5d6dff390d41,1
+np.float64,0xbfec1d16b8f83a2e,0x40052620378d3b78,1
+np.float64,0x3fe9bbec20f377d8,0x3fe45e167c7a3871,1
+np.float64,0xbfeed81d9dfdb03b,0x4006f9dec2db7310,1
+np.float64,0xbfe1e35179e3c6a3,0x40014fd1b1186ac0,1
+np.float64,0xbfc9c7e605338fcc,0x3ffc60a6bd1a7126,1
+np.float64,0x3feec92810fd9250,0x3fd1afde414ab338,1
+np.float64,0xbfeb9f1d90773e3b,0x4004e606b773f5b0,1
+np.float64,0x3fcbabdf6b3757c0,0x3ff5a573866404af,1
+np.float64,0x3fe9f4e1fff3e9c4,0x3fe3fd7b6712dd7b,1
+np.float64,0xbfe6c0175ded802e,0x4002e4a4dc12f3fe,1
+np.float64,0xbfeefc96f37df92e,0x40071d367cd721ff,1
+np.float64,0xbfeaab58dc7556b2,0x400472ce37e31e50,1
+np.float64,0xbfc62668772c4cd0,0x3ffbea5e6c92010a,1
+np.float64,0x3fafe055fc3fc0a0,0x3ff822ce6502519a,1
+np.float64,0x3fd7b648ffaf6c90,0x3ff30f5a42f11418,1
+np.float64,0xbfe934fe827269fd,0x4003d2b9fed9e6ad,1
+np.float64,0xbfe6d691f2edad24,0x4002eca6a4b1797b,1
+np.float64,0x3fc7e62ced2fcc58,0x3ff620b1f44398b7,1
+np.float64,0xbfc89be9f33137d4,0x3ffc3a67a497f59c,1
+np.float64,0xbfe7793d536ef27a,0x40032794bf14dd64,1
+np.float64,0x3fde55a02dbcab40,0x3ff13b5f82d223e4,1
+np.float64,0xbfc8eabd7b31d57c,0x3ffc4472a81cb6d0,1
+np.float64,0x3fddcb5468bb96a8,0x3ff162899c381f2e,1
+np.float64,0xbfec7554d8f8eaaa,0x40055550e18ec463,1
+np.float64,0x3fd0b6e8b6a16dd0,0x3ff4e7b4781a50e3,1
+np.float64,0x3fedaae01b7b55c0,0x3fd8964916cdf53d,1
+np.float64,0x3fe0870f8a610e20,0x3ff072e7db95c2a2,1
+np.float64,0xbfec3e3ce2787c7a,0x4005379d0f6be873,1
+np.float64,0xbfe65502586caa04,0x4002beecff89147f,1
+np.float64,0xbfe0df39a961be74,0x4001025e36d1c061,1
+np.float64,0xbfb5d8edbe2bb1d8,0x3ffa7ff72b7d6a2b,1
+np.float64,0xbfde89574bbd12ae,0x40008ba4cd74544d,1
+np.float64,0xbfe72938f0ee5272,0x40030a5efd1acb6d,1
+np.float64,0xbfcd500d133aa01c,0x3ffcd462f9104689,1
+np.float64,0x3fe0350766606a0e,0x3ff0a2a3664e2c14,1
+np.float64,0xbfc892fb573125f8,0x3ffc3944641cc69d,1
+np.float64,0xbfba7dc7c634fb90,0x3ffaca9a6a0ffe61,1
+np.float64,0xbfeac94478759289,0x40048068a8b83e45,1
+np.float64,0xbfe8f60c1af1ec18,0x4003b961995b6e51,1
+np.float64,0x3fea1c0817743810,0x3fe3ba28c1643cf7,1
+np.float64,0xbfe42a0fefe85420,0x4002052aadd77f01,1
+np.float64,0x3fd2c61c56a58c38,0x3ff45e84cb9a7fa9,1
+np.float64,0xbfd83fb7cdb07f70,0x3fff59ab4790074c,1
+np.float64,0x3fd95e630fb2bcc8,0x3ff29c8bee1335ad,1
+np.float64,0x3feee88f387dd11e,0x3fd0c3ad3ded4094,1
+np.float64,0x3fe061291160c252,0x3ff0890010199bbc,1
+np.float64,0xbfdc7db3b5b8fb68,0x400041dea3759443,1
+np.float64,0x3fee23b320fc4766,0x3fd5ee73d7aa5c56,1
+np.float64,0xbfdc25c590b84b8c,0x4000359cf98a00b4,1
+np.float64,0xbfd63cbfd2ac7980,0x3ffecf7b9cf99b3c,1
+np.float64,0xbfbeb3c29a3d6788,0x3ffb0e66ecc0fc3b,1
+np.float64,0xbfd2f57fd6a5eb00,0x3ffdf1d7c79e1532,1
+np.float64,0xbfab3eda9c367db0,0x3ff9fc0c875f42e9,1
+np.float64,0xbfe12df1c6e25be4,0x4001199c673e698c,1
+np.float64,0x3fef8ab23a7f1564,0x3fc5aff358c59f1c,1
+np.float64,0x3fe562f50feac5ea,0x3fead7bce205f7d9,1
+np.float64,0x3fdc41adbeb8835c,0x3ff1d0f71341b8f2,1
+np.float64,0x3fe2748967e4e912,0x3fee9837f970ff9e,1
+np.float64,0xbfdaa89d57b5513a,0x400000e3889ba4cf,1
+np.float64,0x3fdf2a137dbe5428,0x3ff0fecfbecbbf86,1
+np.float64,0xbfea1fdcd2f43fba,0x4004351974b32163,1
+np.float64,0xbfe34a93a3e69528,0x4001be323946a3e0,1
+np.float64,0x3fe929bacff25376,0x3fe54f47bd7f4cf2,1
+np.float64,0xbfd667fbd6accff8,0x3ffedb04032b3a1a,1
+np.float64,0xbfeb695796f6d2af,0x4004cbb08ec6f525,1
+np.float64,0x3fd204df2ea409c0,0x3ff490f51e6670f5,1
+np.float64,0xbfd89a2757b1344e,0x3fff722127b988c4,1
+np.float64,0xbfd0787187a0f0e4,0x3ffd4c16dbe94f32,1
+np.float64,0x3fd44239bfa88474,0x3ff3fabbfb24b1fa,1
+np.float64,0xbfeb0b3489f61669,0x40049ee33d811d33,1
+np.float64,0x3fdcf04eaab9e09c,0x3ff1a02a29996c4e,1
+np.float64,0x3fd4c51e4fa98a3c,0x3ff3d8302c68fc9a,1
+np.float64,0x3fd1346645a268cc,0x3ff4c72b4970ecaf,1
+np.float64,0x3fd6a89d09ad513c,0x3ff357af6520afac,1
+np.float64,0xbfba0f469a341e90,0x3ffac3a8f41bed23,1
+np.float64,0xbfe13f8ddce27f1c,0x40011ed557719fd6,1
+np.float64,0x3fd43e5e26a87cbc,0x3ff3fbc040fc30dc,1
+np.float64,0x3fe838125a707024,0x3fe6cb5c987248f3,1
+np.float64,0x3fe128c30c625186,0x3ff013cff238dd1b,1
+np.float64,0xbfcd4718833a8e30,0x3ffcd33c96bde6f9,1
+np.float64,0x3fe43fcd08e87f9a,0x3fec573997456ec1,1
+np.float64,0xbfe9a29104734522,0x4003ffd502a1b57f,1
+np.float64,0xbfe4709d7968e13b,0x40021bfc5cd55af4,1
+np.float64,0x3fd21c3925a43874,0x3ff48adf48556cbb,1
+np.float64,0x3fe9a521b2734a44,0x3fe4844fc054e839,1
+np.float64,0xbfdfa6a912bf4d52,0x4000b4730ad8521e,1
+np.float64,0x3fe3740702e6e80e,0x3fed5b106283b6ed,1
+np.float64,0x3fd0a3aa36a14754,0x3ff4ecb02a5e3f49,1
+np.float64,0x3fdcb903d0b97208,0x3ff1afa5d692c5b9,1
+np.float64,0xbfe7d67839efacf0,0x40034a3146abf6f2,1
+np.float64,0x3f9981c6d8330380,0x3ff8bbf1853d7b90,1
+np.float64,0xbfe9d4191673a832,0x400414a9ab453c5d,1
+np.float64,0x3fef0a1e5c7e143c,0x3fcf70b02a54c415,1
+np.float64,0xbfd996dee6b32dbe,0x3fffb6cf707ad8e4,1
+np.float64,0x3fe19bef17e337de,0x3fef9e70d4fcedae,1
+np.float64,0x3fe34a59716694b2,0x3fed8f6d5cfba474,1
+np.float64,0x3fdf27e27cbe4fc4,0x3ff0ff70500e0c7c,1
+np.float64,0xbfe19df87fe33bf1,0x40013afb401de24c,1
+np.float64,0xbfbdfd97ba3bfb30,0x3ffb02ef8c225e57,1
+np.float64,0xbfe3d3417267a683,0x4001e95ed240b0f8,1
+np.float64,0x3fe566498b6acc94,0x3fead342957d4910,1
+np.float64,0x3ff0000000000000,0x0,1
+np.float64,0x3feb329bd8766538,0x3fe1c2225aafe3b4,1
+np.float64,0xbfc19ca703233950,0x3ffb575b5df057b9,1
+np.float64,0x3fe755027d6eaa04,0x3fe81eb99c262e00,1
+np.float64,0xbfe6c2b8306d8570,0x4002e594199f9eec,1
+np.float64,0x3fd69438e6ad2870,0x3ff35d2275ae891d,1
+np.float64,0x3fda3e7285b47ce4,0x3ff25f5573dd47ae,1
+np.float64,0x3fe7928a166f2514,0x3fe7c4490ef4b9a9,1
+np.float64,0xbfd4eb71b9a9d6e4,0x3ffe75e8ccb74be1,1
+np.float64,0xbfcc3a07f1387410,0x3ffcb0b8af914a5b,1
+np.float64,0xbfe6e80225edd004,0x4002f2e26eae8999,1
+np.float64,0xbfb347728a268ee8,0x3ffa56bd526a12db,1
+np.float64,0x3fe5140ead6a281e,0x3feb4132c9140a1c,1
+np.float64,0xbfc147f125228fe4,0x3ffb4cab18b9050f,1
+np.float64,0xbfcb9145b537228c,0x3ffc9b1b6227a8c9,1
+np.float64,0xbfda84ef4bb509de,0x3ffff7f8a674e17d,1
+np.float64,0x3fd2eb6bbfa5d6d8,0x3ff454c225529d7e,1
+np.float64,0x3fe18c95f1e3192c,0x3fefb0cf0efba75a,1
+np.float64,0x3fe78606efef0c0e,0x3fe7d6c3a092d64c,1
+np.float64,0x3fbad5119a35aa20,0x3ff773dffe3ce660,1
+np.float64,0x3fd0cf5903a19eb4,0x3ff4e15fd21fdb42,1
+np.float64,0xbfd85ce90bb0b9d2,0x3fff618ee848e974,1
+np.float64,0x3fe90e11b9f21c24,0x3fe57be62f606f4a,1
+np.float64,0x3fd7a2040faf4408,0x3ff314ce85457ec2,1
+np.float64,0xbfd73fba69ae7f74,0x3fff14bff3504811,1
+np.float64,0x3fa04b4bd42096a0,0x3ff89f9b52f521a2,1
+np.float64,0xbfd7219ce5ae433a,0x3fff0cac0b45cc18,1
+np.float64,0xbfe0cf4661e19e8d,0x4000fdadb14e3c22,1
+np.float64,0x3fd07469fea0e8d4,0x3ff4f8eaa9b2394a,1
+np.float64,0x3f9b05c5d8360b80,0x3ff8b5e10672db5c,1
+np.float64,0x3fe4c25b916984b8,0x3febad29bd0e25e2,1
+np.float64,0xbfde8b4891bd1692,0x40008beb88d5c409,1
+np.float64,0xbfe199a7efe33350,0x400139b089aee21c,1
+np.float64,0x3fecdad25cf9b5a4,0x3fdc9d062867e8c3,1
+np.float64,0xbfe979b277f2f365,0x4003eedb061e25a4,1
+np.float64,0x3fc8c7311f318e60,0x3ff6040b9aeaad9d,1
+np.float64,0x3fd2b605b8a56c0c,0x3ff462b9a955c224,1
+np.float64,0x3fc073b6ad20e770,0x3ff7120e9f2fd63c,1
+np.float64,0xbfec60ede678c1dc,0x40054a3863e24dc2,1
+np.float64,0x3fe225171be44a2e,0x3feef910dca420ea,1
+np.float64,0xbfd7529762aea52e,0x3fff19d00661f650,1
+np.float64,0xbfd781783daf02f0,0x3fff2667b90be461,1
+np.float64,0x3fe3f6ec6d67edd8,0x3fecb4e814a2e33a,1
+np.float64,0x3fece6702df9cce0,0x3fdc6719d92a50d2,1
+np.float64,0xbfb5c602ce2b8c08,0x3ffa7ec761ba856a,1
+np.float64,0xbfd61f0153ac3e02,0x3ffec78e3b1a6c4d,1
+np.float64,0xbfec3462b2f868c5,0x400532630bbd7050,1
+np.float64,0xbfdd248485ba490a,0x400059391c07c1bb,1
+np.float64,0xbfd424921fa84924,0x3ffe416a85d1dcdf,1
+np.float64,0x3fbb23a932364750,0x3ff76eef79209f7f,1
+np.float64,0x3fca248b0f344918,0x3ff5d77c5c1b4e5e,1
+np.float64,0xbfe69af4a4ed35ea,0x4002d77c2e4fbd4e,1
+np.float64,0x3fdafe3cdcb5fc78,0x3ff22a9be6efbbf2,1
+np.float64,0xbfebba3377f77467,0x4004f3836e1fe71a,1
+np.float64,0xbfe650fae06ca1f6,0x4002bd851406377c,1
+np.float64,0x3fda630007b4c600,0x3ff2554f1832bd94,1
+np.float64,0xbfda8107d9b50210,0x3ffff6e6209659f3,1
+np.float64,0x3fea759a02f4eb34,0x3fe31d1a632c9aae,1
+np.float64,0x3fbf88149e3f1030,0x3ff728313aa12ccb,1
+np.float64,0x3f7196d2a0232e00,0x3ff910647e1914c1,1
+np.float64,0x3feeae51d17d5ca4,0x3fd2709698d31f6f,1
+np.float64,0xbfd73cd663ae79ac,0x3fff13f96300b55a,1
+np.float64,0x3fd4fc5f06a9f8c0,0x3ff3c99359854b97,1
+np.float64,0x3fb29f5d6e253ec0,0x3ff7f7c20e396b20,1
+np.float64,0xbfd757c82aaeaf90,0x3fff1b34c6141e98,1
+np.float64,0x3fc56fd4cf2adfa8,0x3ff670c145122909,1
+np.float64,0x3fc609a2f52c1348,0x3ff65d3ef3cade2c,1
+np.float64,0xbfe1de631163bcc6,0x40014e5528fadb73,1
+np.float64,0xbfe7eb4a726fd695,0x40035202f49d95c4,1
+np.float64,0xbfc9223771324470,0x3ffc4b84d5e263b9,1
+np.float64,0x3fee91a8a87d2352,0x3fd3364befde8de6,1
+np.float64,0x3fbc9784fe392f10,0x3ff7578e29f6a1b2,1
+np.float64,0xbfec627c2c78c4f8,0x40054b0ff2cb9c55,1
+np.float64,0xbfb8b406a6316810,0x3ffaadd97062fb8c,1
+np.float64,0xbfecf98384f9f307,0x4005a043d9110d79,1
+np.float64,0xbfe5834bab6b0698,0x400276f114aebee4,1
+np.float64,0xbfd90f391eb21e72,0x3fff91e26a8f48f3,1
+np.float64,0xbfee288ce2fc511a,0x400667cb09aa04b3,1
+np.float64,0x3fd5aa5e32ab54bc,0x3ff39b7080a52214,1
+np.float64,0xbfee7ef907fcfdf2,0x4006ab96a8eba4c5,1
+np.float64,0x3fd6097973ac12f4,0x3ff3822486978bd1,1
+np.float64,0xbfe02d14b8e05a2a,0x4000ce5be53047b1,1
+np.float64,0xbf9c629a6838c540,0x3ff993897728c3f9,1
+np.float64,0xbfee2024667c4049,0x40066188782fb1f0,1
+np.float64,0xbfa42a88fc285510,0x3ff9c35a4bbce104,1
+np.float64,0x3fa407af5c280f60,0x3ff881b360d8eea1,1
+np.float64,0x3fed0ba42cfa1748,0x3fdbb7d55609175f,1
+np.float64,0xbfdd0b5844ba16b0,0x400055b0bb59ebb2,1
+np.float64,0x3fd88d97e6b11b30,0x3ff2d53c1ecb8f8c,1
+np.float64,0xbfeb7a915ef6f523,0x4004d410812eb84c,1
+np.float64,0xbfb5f979ca2bf2f0,0x3ffa8201d73cd4ca,1
+np.float64,0x3fb3b65dd6276cc0,0x3ff7e64576199505,1
+np.float64,0x3fcd47a7793a8f50,0x3ff570a7b672f160,1
+np.float64,0xbfa41dd30c283ba0,0x3ff9c2f488127eb3,1
+np.float64,0x3fe4b1ea1f6963d4,0x3febc2bed7760427,1
+np.float64,0xbfdd0f81d2ba1f04,0x400056463724b768,1
+np.float64,0x3fd15d93f7a2bb28,0x3ff4bc7a24eacfd7,1
+np.float64,0xbfe3213af8e64276,0x4001b14579dfded3,1
+np.float64,0x3fd90dfbeab21bf8,0x3ff2b26a6c2c3bb3,1
+np.float64,0xbfd02d54bca05aaa,0x3ffd38ab3886b203,1
+np.float64,0x3fc218dcad2431b8,0x3ff6dced56d5b417,1
+np.float64,0x3fea5edf71f4bdbe,0x3fe3455ee09f27e6,1
+np.float64,0x3fa74319042e8640,0x3ff867d224545438,1
+np.float64,0x3fd970ad92b2e15c,0x3ff2979084815dc1,1
+np.float64,0x3fce0a4bf73c1498,0x3ff557a4df32df3e,1
+np.float64,0x3fef5c8e10feb91c,0x3fc99ca0eeaaebe4,1
+np.float64,0xbfedae997ffb5d33,0x400611af18f407ab,1
+np.float64,0xbfbcf07d6239e0f8,0x3ffaf201177a2d36,1
+np.float64,0xbfc3c52541278a4c,0x3ffb9d2af0408e4a,1
+np.float64,0x3fe4ef44e4e9de8a,0x3feb71f7331255e5,1
+np.float64,0xbfccd9f5f539b3ec,0x3ffcc53a99339592,1
+np.float64,0xbfda32c745b4658e,0x3fffe16e8727ef89,1
+np.float64,0xbfef54932a7ea926,0x40077e4605e61ca1,1
+np.float64,0x3fe9d4ae3573a95c,0x3fe4344a069a3fd0,1
+np.float64,0x3fda567e73b4acfc,0x3ff258bd77a663c7,1
+np.float64,0xbfd5bcac5eab7958,0x3ffead6379c19c52,1
+np.float64,0xbfee5e56f97cbcae,0x40069131fc54018d,1
+np.float64,0x3fc2d4413925a880,0x3ff6c54163816298,1
+np.float64,0xbfe9ddf6e873bbee,0x400418d8c722f7c5,1
+np.float64,0x3fdaf2a683b5e54c,0x3ff22dcda599d69c,1
+np.float64,0xbfca69789f34d2f0,0x3ffc7547ff10b1a6,1
+np.float64,0x3fed076f62fa0ede,0x3fdbcbda03c1d72a,1
+np.float64,0xbfcb38326f367064,0x3ffc8fb55dadeae5,1
+np.float64,0x3fe1938705e3270e,0x3fefa88130c5adda,1
+np.float64,0x3feaffae3b75ff5c,0x3fe221e3da537c7e,1
+np.float64,0x3fefc94acb7f9296,0x3fbd9a360ace67b4,1
+np.float64,0xbfe8bddeb0f17bbe,0x4003a316685c767e,1
+np.float64,0x3fbe10fbee3c21f0,0x3ff73fceb10650f5,1
+np.float64,0x3fde9126c1bd224c,0x3ff12a742f734d0a,1
+np.float64,0xbfe9686c91f2d0d9,0x4003e7bc6ee77906,1
+np.float64,0xbfb1ba4892237490,0x3ffa3dda064c2509,1
+np.float64,0xbfe2879100e50f22,0x400181c1a5b16f0f,1
+np.float64,0x3fd1cd40b6a39a80,0x3ff49f70e3064e95,1
+np.float64,0xbfc965869132cb0c,0x3ffc5419f3b43701,1
+np.float64,0x3fea7a6f2874f4de,0x3fe31480fb2dd862,1
+np.float64,0x3fc3bc56892778b0,0x3ff6a7e8fa0e8b0e,1
+np.float64,0x3fec1ed451f83da8,0x3fdfd78e564b8ad7,1
+np.float64,0x3feb77d16df6efa2,0x3fe13d083344e45e,1
+np.float64,0xbfe822e7c67045d0,0x400367104a830cf6,1
+np.float64,0x8000000000000001,0x3ff921fb54442d18,1
+np.float64,0xbfd4900918a92012,0x3ffe5dc0e19737b4,1
+np.float64,0x3fed184187fa3084,0x3fdb7b7a39f234f4,1
+np.float64,0x3fecef846179df08,0x3fdc3cb2228c3682,1
+np.float64,0xbfe2d2aed165a55e,0x400198e21c5b861b,1
+np.float64,0x7ff0000000000000,0x7ff8000000000000,1
+np.float64,0xbfee9409a07d2813,0x4006bd358232d073,1
+np.float64,0xbfecedc2baf9db86,0x4005995df566fc21,1
+np.float64,0x3fe6d857396db0ae,0x3fe8d2cb8794aa99,1
+np.float64,0xbf9a579e7834af40,0x3ff98b5cc8021e1c,1
+np.float64,0x3fc664fefb2cca00,0x3ff651a664ccf8fa,1
+np.float64,0xbfe8a7aa0e714f54,0x40039a5b4df938a0,1
+np.float64,0xbfdf27d380be4fa8,0x4000a241074dbae6,1
+np.float64,0x3fe00ddf55e01bbe,0x3ff0b94eb1ea1851,1
+np.float64,0x3feb47edbff68fdc,0x3fe199822d075959,1
+np.float64,0x3fb4993822293270,0x3ff7d80c838186d0,1
+np.float64,0xbfca2cd1473459a4,0x3ffc6d88c8de3d0d,1
+np.float64,0xbfea7d9c7674fb39,0x40045e4559e9e52d,1
+np.float64,0x3fe0dce425e1b9c8,0x3ff04099cab23289,1
+np.float64,0x3fd6bb7e97ad76fc,0x3ff352a30434499c,1
+np.float64,0x3fd4a4f16da949e4,0x3ff3e0b07432c9aa,1
+np.float64,0x8000000000000000,0x3ff921fb54442d18,1
+np.float64,0x3fe688f5b56d11ec,0x3fe9435f63264375,1
+np.float64,0xbfdf5a427ebeb484,0x4000a97a6c5d4abc,1
+np.float64,0xbfd1f3483fa3e690,0x3ffdae6c8a299383,1
+np.float64,0xbfeac920db759242,0x4004805862be51ec,1
+np.float64,0x3fef5bc711feb78e,0x3fc9ac40fba5b93b,1
+np.float64,0x3fe4bd9e12e97b3c,0x3febb363c787d381,1
+np.float64,0x3fef6a59ab7ed4b4,0x3fc880f1324eafce,1
+np.float64,0x3fc07a362120f470,0x3ff7113cf2c672b3,1
+np.float64,0xbfe4d6dbe2e9adb8,0x40023d6f6bea44b7,1
+np.float64,0xbfec2d6a15785ad4,0x40052eb425cc37a2,1
+np.float64,0x3fc90dae05321b60,0x3ff5fb10015d2934,1
+np.float64,0xbfa9239f74324740,0x3ff9eb2d057068ea,1
+np.float64,0xbfeb4fc8baf69f92,0x4004bf5e17fb08a4,1
+np.float64,0x0,0x3ff921fb54442d18,1
+np.float64,0x3faaf1884c35e320,0x3ff84a5591dbe1f3,1
+np.float64,0xbfed842561fb084b,0x4005f5c0a19116ce,1
+np.float64,0xbfc64850c32c90a0,0x3ffbeeac2ee70f9a,1
+np.float64,0x3fd7d879f5afb0f4,0x3ff306254c453436,1
+np.float64,0xbfdabaa586b5754c,0x4000035e6ac83a2b,1
+np.float64,0xbfebfeefa977fddf,0x4005167446fb9faf,1
+np.float64,0xbfe9383462727069,0x4003d407aa6a1577,1
+np.float64,0x3fe108dfb6e211c0,0x3ff026ac924b281d,1
+np.float64,0xbf85096df02a12c0,0x3ff94c0e60a22ede,1
+np.float64,0xbfe3121cd566243a,0x4001ac8f90db5882,1
+np.float64,0xbfd227f62aa44fec,0x3ffdbc26bb175dcc,1
+np.float64,0x3fd931af2cb26360,0x3ff2a8b62dfe003c,1
+np.float64,0xbfd9b794e3b36f2a,0x3fffbfbc89ec013d,1
+np.float64,0x3fc89b2e6f313660,0x3ff609a6e67f15f2,1
+np.float64,0x3fc0b14a8f216298,0x3ff70a4b6905aad2,1
+np.float64,0xbfeda11a657b4235,0x400608b3f9fff574,1
+np.float64,0xbfed2ee9ec7a5dd4,0x4005c040b7c02390,1
+np.float64,0xbfef7819d8fef034,0x4007ac6bf75cf09d,1
+np.float64,0xbfcc4720fb388e40,0x3ffcb2666a00b336,1
+np.float64,0xbfe05dec4be0bbd8,0x4000dc8a25ca3760,1
+np.float64,0x3fb093416e212680,0x3ff81897b6d8b374,1
+np.float64,0xbfc6ab89332d5714,0x3ffbfb4559d143e7,1
+np.float64,0x3fc51948512a3290,0x3ff67bb9df662c0a,1
+np.float64,0x3fed4d94177a9b28,0x3fda76c92f0c0132,1
+np.float64,0x3fdd195fbeba32c0,0x3ff194a5586dd18e,1
+np.float64,0x3fe3f82799e7f050,0x3fecb354c2faf55c,1
+np.float64,0x3fecac2169f95842,0x3fdd7222296cb7a7,1
+np.float64,0x3fe3d3f36fe7a7e6,0x3fece18f45e30dd7,1
+np.float64,0x3fe31ff63d663fec,0x3fedc46c77d30c6a,1
+np.float64,0xbfe3120c83e62419,0x4001ac8a7c4aa742,1
+np.float64,0x3fe7c1a7976f8350,0x3fe77e4a9307c9f8,1
+np.float64,0x3fe226fe9de44dfe,0x3feef6c0f3cb00fa,1
+np.float64,0x3fd5c933baab9268,0x3ff3933e8a37de42,1
+np.float64,0x3feaa98496f5530a,0x3fe2c003832ebf21,1
+np.float64,0xbfc6f80a2f2df014,0x3ffc04fd54cb1317,1
+np.float64,0x3fde5e18d0bcbc30,0x3ff138f7b32a2ca3,1
+np.float64,0xbfe30c8dd566191c,0x4001aad4af935a78,1
+np.float64,0x3fbe8d196e3d1a30,0x3ff737fec8149ecc,1
+np.float64,0x3feaee6731f5dcce,0x3fe241fa42cce22d,1
+np.float64,0x3fef9cc46cff3988,0x3fc3f17b708dbdbb,1
+np.float64,0xbfdb181bdeb63038,0x4000103ecf405602,1
+np.float64,0xbfc58de0ed2b1bc0,0x3ffbd704c14e15cd,1
+np.float64,0xbfee05d5507c0bab,0x40064e480faba6d8,1
+np.float64,0x3fe27d0ffa64fa20,0x3fee8dc71ef79f2c,1
+np.float64,0xbfe4f7ad4c69ef5a,0x400248456cd09a07,1
+np.float64,0xbfe4843e91e9087d,0x4002225f3e139c84,1
+np.float64,0x3fe7158b9c6e2b18,0x3fe87ae845c5ba96,1
+np.float64,0xbfea64316074c863,0x400452fd2bc23a44,1
+np.float64,0xbfc9f3ae4133e75c,0x3ffc663d482afa42,1
+np.float64,0xbfd5e18513abc30a,0x3ffeb72fc76d7071,1
+np.float64,0xbfd52f6438aa5ec8,0x3ffe87e5b18041e5,1
+np.float64,0xbfea970650f52e0d,0x400469a4a6758154,1
+np.float64,0xbfe44321b7e88644,0x40020d404a2141b1,1
+np.float64,0x3fdf5a39bbbeb474,0x3ff0f10453059dbd,1
+np.float64,0xbfa1d4069423a810,0x3ff9b0a2eacd2ce2,1
+np.float64,0xbfc36d16a326da2c,0x3ffb92077d41d26a,1
+np.float64,0x1,0x3ff921fb54442d18,1
+np.float64,0x3feb232a79764654,0x3fe1df5beeb249d0,1
+np.float64,0xbfed2003d5fa4008,0x4005b737c2727583,1
+np.float64,0x3fd5b093a3ab6128,0x3ff399ca2db1d96d,1
+np.float64,0x3fca692c3d34d258,0x3ff5ceb86b79223e,1
+np.float64,0x3fd6bbdf89ad77c0,0x3ff3528916df652d,1
+np.float64,0xbfefdadd46ffb5bb,0x40085ee735e19f19,1
+np.float64,0x3feb69fb2676d3f6,0x3fe157ee0c15691e,1
+np.float64,0x3fe44c931f689926,0x3fec46b6f5e3f265,1
+np.float64,0xbfc43ddbcb287bb8,0x3ffbac71d268d74d,1
+np.float64,0x3fe6e16d43edc2da,0x3fe8c5cf0f0daa66,1
+np.float64,0x3fe489efc76913e0,0x3febf704ca1ac2a6,1
+np.float64,0xbfe590aadceb2156,0x40027b764205cf78,1
+np.float64,0xbf782e8aa0305d00,0x3ff93a29e81928ab,1
+np.float64,0x3fedcb80cffb9702,0x3fd7e5d1f98a418b,1
+np.float64,0x3fe075858060eb0c,0x3ff07d23ab46b60f,1
+np.float64,0x3fe62a68296c54d0,0x3fe9c77f7068043b,1
+np.float64,0x3feff16a3c7fe2d4,0x3fae8e8a739cc67a,1
+np.float64,0xbfd6ed93e3addb28,0x3ffefebab206fa99,1
+np.float64,0x3fe40d8ccf681b1a,0x3fec97e9cd29966d,1
+np.float64,0x3fd6408210ac8104,0x3ff3737a7d374107,1
+np.float64,0x3fec8023b8f90048,0x3fde35ebfb2b3afd,1
+np.float64,0xbfe13babd4627758,0x40011dae5c07c56b,1
+np.float64,0xbfd2183e61a4307c,0x3ffdb80dd747cfbe,1
+np.float64,0x3feae8eb1d75d1d6,0x3fe24c1f6e42ae77,1
+np.float64,0xbfea559b9c74ab37,0x40044c8e5e123b20,1
+np.float64,0xbfd12c9d57a2593a,0x3ffd7ac6222f561c,1
+np.float64,0x3fe32eb697e65d6e,0x3fedb202693875b6,1
+np.float64,0xbfde0808c3bc1012,0x4000794bd8616ea3,1
+np.float64,0x3fe14958a06292b2,0x3ff0007b40ac648a,1
+np.float64,0x3fe3d388a6e7a712,0x3fece21751a6dd7c,1
+np.float64,0x3fe7ad7897ef5af2,0x3fe79c5b3da302a7,1
+np.float64,0x3fec75527e78eaa4,0x3fde655de0cf0508,1
+np.float64,0x3fea920d4c75241a,0x3fe2ea48f031d908,1
+np.float64,0x7fefffffffffffff,0x7ff8000000000000,1
+np.float64,0xbfc17a68cb22f4d0,0x3ffb530925f41aa0,1
+np.float64,0xbfe1c93166e39263,0x400147f3cb435dec,1
+np.float64,0x3feb97c402f72f88,0x3fe0fe5b561bf869,1
+np.float64,0x3fb58ff5162b1ff0,0x3ff7c8933fa969dc,1
+np.float64,0x3fe68e2beded1c58,0x3fe93c075283703b,1
+np.float64,0xbf94564cc828aca0,0x3ff97355e5ee35db,1
+np.float64,0x3fd31061c9a620c4,0x3ff44b150ec96998,1
+np.float64,0xbfc7d0c89f2fa190,0x3ffc208bf4eddc4d,1
+np.float64,0x3fe5736f1d6ae6de,0x3feac18f84992d1e,1
+np.float64,0x3fdb62e480b6c5c8,0x3ff20ecfdc4afe7c,1
+np.float64,0xbfc417228b282e44,0x3ffba78afea35979,1
+np.float64,0x3f8f5ba1303eb780,0x3ff8e343714630ff,1
+np.float64,0x3fe8e99126f1d322,0x3fe5b6511d4c0798,1
+np.float64,0xbfe2ec08a1e5d812,0x4001a0bb28a85875,1
+np.float64,0x3fea3b46cf74768e,0x3fe383dceaa74296,1
+np.float64,0xbfe008b5ed60116c,0x4000c3d62c275d40,1
+np.float64,0xbfcd9f8a4b3b3f14,0x3ffcde98d6484202,1
+np.float64,0xbfdb5fb112b6bf62,0x40001a22137ef1c9,1
+np.float64,0xbfe9079565f20f2b,0x4003c0670c92e401,1
+np.float64,0xbfce250dc53c4a1c,0x3ffcefc2b3dc3332,1
+np.float64,0x3fe9ba85d373750c,0x3fe4607131b28773,1
+np.float64,0x10000000000000,0x3ff921fb54442d18,1
+np.float64,0xbfeb9ef42c773de8,0x4004e5f239203ad8,1
+np.float64,0xbfd6bf457dad7e8a,0x3ffef2563d87b18d,1
+np.float64,0x3fe4de9aa5e9bd36,0x3feb87f97defb04a,1
+np.float64,0x3fedb4f67cfb69ec,0x3fd8603c465bffac,1
+np.float64,0x3fe7b6d9506f6db2,0x3fe78e670c7bdb67,1
+np.float64,0x3fe071717460e2e2,0x3ff07f84472d9cc5,1
+np.float64,0xbfed2e79dbfa5cf4,0x4005bffc6f9ad24f,1
+np.float64,0x3febb8adc377715c,0x3fe0bcebfbd45900,1
+np.float64,0xbfee2cffd87c5a00,0x40066b20a037c478,1
+np.float64,0x3fef7e358d7efc6c,0x3fc6d0ba71a542a8,1
+np.float64,0xbfef027eef7e04fe,0x400723291cb00a7a,1
+np.float64,0x3fac96da34392dc0,0x3ff83d260a936c6a,1
+np.float64,0x3fe9dba94a73b752,0x3fe428736b94885e,1
+np.float64,0x3fed37581efa6eb0,0x3fdae49dcadf1d90,1
+np.float64,0xbfe6e61037edcc20,0x4002f23031b8d522,1
+np.float64,0xbfdea7204dbd4e40,0x40008fe1f37918b7,1
+np.float64,0x3feb9f8edb773f1e,0x3fe0eef20bd4387b,1
+np.float64,0x3feeb0b6ed7d616e,0x3fd25fb3b7a525d6,1
+np.float64,0xbfd7ce9061af9d20,0x3fff3b25d531aa2b,1
+np.float64,0xbfc806b509300d6c,0x3ffc2768743a8360,1
+np.float64,0xbfa283882c250710,0x3ff9b61fda28914a,1
+np.float64,0x3fdec70050bd8e00,0x3ff11b1d769b578f,1
+np.float64,0xbfc858a44930b148,0x3ffc31d6758b4721,1
+np.float64,0x3fdc321150b86424,0x3ff1d5504c3c91e4,1
+np.float64,0x3fd9416870b282d0,0x3ff2a46f3a850f5b,1
+np.float64,0x3fdd756968baead4,0x3ff17ac510a5573f,1
+np.float64,0xbfedfd632cfbfac6,0x400648345a2f89b0,1
+np.float64,0x3fd6874285ad0e84,0x3ff36098ebff763f,1
+np.float64,0x3fe6daacc9edb55a,0x3fe8cf75fae1e35f,1
+np.float64,0x3fe53f19766a7e32,0x3feb07d0e97cd55b,1
+np.float64,0x3fd13cc36ca27988,0x3ff4c4ff801b1faa,1
+np.float64,0x3fe4f21cbce9e43a,0x3feb6e34a72ef529,1
+np.float64,0xbfc21c1cc9243838,0x3ffb67726394ca89,1
+np.float64,0x3fe947a3f2728f48,0x3fe51eae4660e23c,1
+np.float64,0xbfce78cd653cf19c,0x3ffcfa89194b3f5e,1
+np.float64,0x3fe756f049eeade0,0x3fe81be7f2d399e2,1
+np.float64,0xbfcc727cf138e4f8,0x3ffcb7f547841bb0,1
+np.float64,0xbfc2d8d58f25b1ac,0x3ffb7f496cc72458,1
+np.float64,0xbfcfd0e4653fa1c8,0x3ffd26e1309bc80b,1
+np.float64,0xbfe2126c106424d8,0x40015e0e01db6a4a,1
+np.float64,0x3fe580e4306b01c8,0x3feaaf683ce51aa5,1
+np.float64,0x3fcea8a1b93d5140,0x3ff543456c0d28c7,1
+np.float64,0xfff0000000000000,0x7ff8000000000000,1
+np.float64,0xbfd9d5da72b3abb4,0x3fffc8013113f968,1
+np.float64,0xbfe1fdfcea63fbfa,0x400157def2e4808d,1
+np.float64,0xbfc0022e0720045c,0x3ffb239963e7cbf2,1
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/data/umath-validation-set-arccosh.csv b/python/user_packages/Python313/site-packages/numpy/_core/tests/data/umath-validation-set-arccosh.csv
new file mode 100644
index 0000000000000000000000000000000000000000..b37d3c1cc9bdfcde12ac792cf036272d93c925f0
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/tests/data/umath-validation-set-arccosh.csv
@@ -0,0 +1,1429 @@
+dtype,input,output,ulperrortol
+np.float32,0x3f83203f,0x3e61d9d6,2
+np.float32,0x3f98dea1,0x3f1d1af6,2
+np.float32,0x7fa00000,0x7fe00000,2
+np.float32,0x7eba99af,0x42b0d032,2
+np.float32,0x3fc95a13,0x3f833650,2
+np.float32,0x3fce9a45,0x3f8771e1,2
+np.float32,0x3fc1bd96,0x3f797811,2
+np.float32,0x7eba2391,0x42b0ceed,2
+np.float32,0x7d4e8f15,0x42acdb8c,2
+np.float32,0x3feca42e,0x3f9cc88e,2
+np.float32,0x7e2b314e,0x42af412e,2
+np.float32,0x7f7fffff,0x42b2d4fc,2
+np.float32,0x3f803687,0x3d6c4380,2
+np.float32,0x3fa0edbd,0x3f33e706,2
+np.float32,0x3faa8074,0x3f4b3d3c,2
+np.float32,0x3fa0c49e,0x3f337af3,2
+np.float32,0x3f8c9ec4,0x3ee18812,2
+np.float32,0x7efef78e,0x42b17006,2
+np.float32,0x3fc75720,0x3f818aa4,2
+np.float32,0x7f52d4c8,0x42b27198,2
+np.float32,0x3f88f21e,0x3ebe52b0,2
+np.float32,0x3ff7a042,0x3fa3a07a,2
+np.float32,0x7f52115c,0x42b26fbd,2
+np.float32,0x3fc6bf6f,0x3f810b42,2
+np.float32,0x3fd105d0,0x3f895649,2
+np.float32,0x3fee7c2a,0x3f9df66e,2
+np.float32,0x7f0ff9a5,0x42b1ae4f,2
+np.float32,0x7e81f075,0x42b016e7,2
+np.float32,0x3fa57d65,0x3f3f70c6,2
+np.float32,0x80800000,0xffc00000,2
+np.float32,0x7da239f5,0x42adc2bf,2
+np.float32,0x3f9e432c,0x3f2cbd80,2
+np.float32,0x3ff2839b,0x3fa07ee4,2
+np.float32,0x3fec8aef,0x3f9cb850,2
+np.float32,0x7d325893,0x42ac905b,2
+np.float32,0x3fa27431,0x3f37dade,2
+np.float32,0x3fce7408,0x3f8753ae,2
+np.float32,0x3fde6684,0x3f93353f,2
+np.float32,0x3feb9a3e,0x3f9c1cff,2
+np.float32,0x7deb34bb,0x42ae80f0,2
+np.float32,0x3fed9300,0x3f9d61b7,2
+np.float32,0x7f35e253,0x42b225fb,2
+np.float32,0x7e6db57f,0x42afe93f,2
+np.float32,0x3fa41f08,0x3f3c10bc,2
+np.float32,0x3fb0d4da,0x3f590de3,2
+np.float32,0x3fb5c690,0x3f632351,2
+np.float32,0x3fcde9ce,0x3f86e638,2
+np.float32,0x3f809c7b,0x3dc81161,2
+np.float32,0x3fd77291,0x3f8e3226,2
+np.float32,0x3fc21a06,0x3f7a1a82,2
+np.float32,0x3fba177e,0x3f6b8139,2
+np.float32,0x7f370dff,0x42b22944,2
+np.float32,0x3fe5bfcc,0x3f9841c1,2
+np.float32,0x3feb0caa,0x3f9bc139,2
+np.float32,0x7f4fe5c3,0x42b26a6c,2
+np.float32,0x7f1e1419,0x42b1de28,2
+np.float32,0x7f5e3c96,0x42b28c92,2
+np.float32,0x3f8cd313,0x3ee3521e,2
+np.float32,0x3fa97824,0x3f48e049,2
+np.float32,0x7d8ca281,0x42ad799e,2
+np.float32,0x3f96b51b,0x3f165193,2
+np.float32,0x3f81328a,0x3e0bf504,2
+np.float32,0x3ff60bf3,0x3fa2ab45,2
+np.float32,0x3ff9b629,0x3fa4e107,2
+np.float32,0x3fecacfc,0x3f9cce37,2
+np.float32,0x3fba8804,0x3f6c5600,2
+np.float32,0x3f81f752,0x3e333fdd,2
+np.float32,0x3fb5b262,0x3f62fb46,2
+np.float32,0x3fa21bc0,0x3f36f7e6,2
+np.float32,0x3fbc87bb,0x3f7011dc,2
+np.float32,0x3fe18b32,0x3f9565ae,2
+np.float32,0x7dfb6dd5,0x42aea316,2
+np.float32,0x3fb7c602,0x3f670ee3,2
+np.float32,0x7efeb6a2,0x42b16f84,2
+np.float32,0x3fa56180,0x3f3f2ca4,2
+np.float32,0x3f8dcaff,0x3eeb9ac0,2
+np.float32,0x7e876238,0x42b02beb,2
+np.float32,0x7f0bb67d,0x42b19eec,2
+np.float32,0x3faca01c,0x3f4fffa5,2
+np.float32,0x3fdb57ee,0x3f9108b8,2
+np.float32,0x3fe3bade,0x3f96e4b7,2
+np.float32,0x7f7aa2dd,0x42b2ca25,2
+np.float32,0x3fed92ec,0x3f9d61aa,2
+np.float32,0x7eb789b1,0x42b0c7b9,2
+np.float32,0x7f7f16e4,0x42b2d329,2
+np.float32,0x3fb6647e,0x3f645b84,2
+np.float32,0x3f99335e,0x3f1e1d96,2
+np.float32,0x7e690a11,0x42afdf17,2
+np.float32,0x7dff2f95,0x42aeaaae,2
+np.float32,0x7f70adfd,0x42b2b564,2
+np.float32,0x3fe92252,0x3f9a80fe,2
+np.float32,0x3fef54ce,0x3f9e7fe5,2
+np.float32,0x3ff24eaa,0x3fa05df9,2
+np.float32,0x7f04565a,0x42b18328,2
+np.float32,0x3fcb8b80,0x3f85007f,2
+np.float32,0x3fcd4d0a,0x3f866983,2
+np.float32,0x3fbe7d82,0x3f73a911,2
+np.float32,0x3f8a7a8a,0x3ecdc8f6,2
+np.float32,0x3f912441,0x3f030d56,2
+np.float32,0x3f9b29d6,0x3f23f663,2
+np.float32,0x3fab7f36,0x3f4d7c6c,2
+np.float32,0x7dfedafc,0x42aeaa04,2
+np.float32,0x3fe190c0,0x3f956982,2
+np.float32,0x3f927515,0x3f07e0bb,2
+np.float32,0x3ff6442a,0x3fa2cd7e,2
+np.float32,0x7f6656d0,0x42b29ee8,2
+np.float32,0x3fe29aa0,0x3f96201f,2
+np.float32,0x3fa4a247,0x3f3d5687,2
+np.float32,0x3fa1cf19,0x3f363226,2
+np.float32,0x3fc20037,0x3f79ed36,2
+np.float32,0x7cc1241a,0x42ab5645,2
+np.float32,0x3fafd540,0x3f56f25a,2
+np.float32,0x7e5b3f5f,0x42afbfdb,2
+np.float32,0x7f48de5f,0x42b258d0,2
+np.float32,0x3fce1ca0,0x3f870e85,2
+np.float32,0x7ee40bb2,0x42b136e4,2
+np.float32,0x7ecdb133,0x42b10212,2
+np.float32,0x3f9f181c,0x3f2f02ca,2
+np.float32,0x3f936cbf,0x3f0b4f63,2
+np.float32,0x3fa4f8ea,0x3f3e2c2f,2
+np.float32,0x3fcc03e2,0x3f8561ac,2
+np.float32,0x3fb801f2,0x3f67831b,2
+np.float32,0x7e141dad,0x42aef70c,2
+np.float32,0x3fe8c04e,0x3f9a4087,2
+np.float32,0x3f8548d5,0x3e929f37,2
+np.float32,0x7f148d7d,0x42b1be56,2
+np.float32,0x3fd2c9a2,0x3f8ab1ed,2
+np.float32,0x7eb374fd,0x42b0bc36,2
+np.float32,0x7f296d36,0x42b201a7,2
+np.float32,0x3ff138e2,0x3f9fb09d,2
+np.float32,0x3ff42898,0x3fa18347,2
+np.float32,0x7da8c5e1,0x42add700,2
+np.float32,0x7dcf72c4,0x42ae40a4,2
+np.float32,0x7ea571fc,0x42b09296,2
+np.float32,0x3fc0953d,0x3f776ba3,2
+np.float32,0x7f1773dd,0x42b1c83c,2
+np.float32,0x7ef53b68,0x42b15c17,2
+np.float32,0x3f85d69f,0x3e9a0f3a,2
+np.float32,0x7e8b9a05,0x42b03ba0,2
+np.float32,0x3ff07d20,0x3f9f3ad2,2
+np.float32,0x7e8da32c,0x42b0430a,2
+np.float32,0x7ef96004,0x42b164ab,2
+np.float32,0x3fdfaa62,0x3f941837,2
+np.float32,0x7f0057c5,0x42b17377,2
+np.float32,0x3fb2663f,0x3f5c5065,2
+np.float32,0x3fd3d8c3,0x3f8b8055,2
+np.float32,0x1,0xffc00000,2
+np.float32,0x3fd536c1,0x3f8c8862,2
+np.float32,0x3f91b953,0x3f053619,2
+np.float32,0x3fb3305c,0x3f5deee1,2
+np.float32,0x7ecd86b9,0x42b101a8,2
+np.float32,0x3fbf71c5,0x3f75624d,2
+np.float32,0x3ff5f0f4,0x3fa29ad2,2
+np.float32,0x3fe50389,0x3f97c328,2
+np.float32,0x3fa325a1,0x3f399e69,2
+np.float32,0x3fe4397a,0x3f973a9f,2
+np.float32,0x3f8684c6,0x3ea2b784,2
+np.float32,0x7f25ae00,0x42b1f634,2
+np.float32,0x3ff7cbf7,0x3fa3badb,2
+np.float32,0x7f73f0e0,0x42b2bc48,2
+np.float32,0x3fc88b70,0x3f828b92,2
+np.float32,0x3fb01c16,0x3f578886,2
+np.float32,0x7e557623,0x42afb229,2
+np.float32,0x3fcbcd5b,0x3f8535b4,2
+np.float32,0x7f7157e4,0x42b2b6cd,2
+np.float32,0x7f51d9d4,0x42b26f36,2
+np.float32,0x7f331a3b,0x42b21e17,2
+np.float32,0x7f777fb5,0x42b2c3b2,2
+np.float32,0x3f832001,0x3e61d11f,2
+np.float32,0x7f2cd055,0x42b20bca,2
+np.float32,0x3f89831f,0x3ec42f76,2
+np.float32,0x7f21da33,0x42b1ea3d,2
+np.float32,0x3f99e416,0x3f20330a,2
+np.float32,0x7f2c8ea1,0x42b20b07,2
+np.float32,0x7f462c98,0x42b251e6,2
+np.float32,0x7f4fdb3f,0x42b26a52,2
+np.float32,0x3fcc1338,0x3f856e07,2
+np.float32,0x3f823673,0x3e3e20da,2
+np.float32,0x7dbfe89d,0x42ae18c6,2
+np.float32,0x3fc9b04c,0x3f837d38,2
+np.float32,0x7dba3213,0x42ae094d,2
+np.float32,0x7ec5a483,0x42b0eda1,2
+np.float32,0x3fbc4d14,0x3f6fa543,2
+np.float32,0x3fc85ce2,0x3f8264f1,2
+np.float32,0x7f77c816,0x42b2c447,2
+np.float32,0x3f9c9281,0x3f280492,2
+np.float32,0x7f49b3e2,0x42b25aef,2
+np.float32,0x3fa7e4da,0x3f45347c,2
+np.float32,0x7e0c9df5,0x42aedc72,2
+np.float32,0x7f21fd1a,0x42b1eaab,2
+np.float32,0x7f7c63ad,0x42b2cdb6,2
+np.float32,0x7f4eb80a,0x42b26783,2
+np.float32,0x7e98038c,0x42b0673c,2
+np.float32,0x7e89ba08,0x42b034b4,2
+np.float32,0x3ffc06ba,0x3fa64094,2
+np.float32,0x3fae63f6,0x3f53db36,2
+np.float32,0x3fbc2d30,0x3f6f6a1c,2
+np.float32,0x7de0e5e5,0x42ae69fe,2
+np.float32,0x7e09ed18,0x42aed28d,2
+np.float32,0x3fea78f8,0x3f9b6129,2
+np.float32,0x7dfe0bcc,0x42aea863,2
+np.float32,0x7ee21d03,0x42b13289,2
+np.float32,0x3fcc3aed,0x3f858dfc,2
+np.float32,0x3fe6b3ba,0x3f98e4ea,2
+np.float32,0x3f90f25f,0x3f025225,2
+np.float32,0x7f1bcaf4,0x42b1d6b3,2
+np.float32,0x3f83ac81,0x3e74c20e,2
+np.float32,0x3f98681d,0x3f1bae16,2
+np.float32,0x3fe1f2d9,0x3f95ad08,2
+np.float32,0x3fa279d7,0x3f37e951,2
+np.float32,0x3feb922a,0x3f9c17c4,2
+np.float32,0x7f1c72e8,0x42b1d8da,2
+np.float32,0x3fea156b,0x3f9b2038,2
+np.float32,0x3fed6bda,0x3f9d48aa,2
+np.float32,0x3fa86142,0x3f46589c,2
+np.float32,0x3ff16bc2,0x3f9fd072,2
+np.float32,0x3fbebf65,0x3f74207b,2
+np.float32,0x7e7b78b5,0x42b00610,2
+np.float32,0x3ff51ab8,0x3fa217f0,2
+np.float32,0x3f8361bb,0x3e6adf07,2
+np.float32,0x7edbceed,0x42b1240e,2
+np.float32,0x7f10e2c0,0x42b1b18a,2
+np.float32,0x3fa7bc58,0x3f44d4ef,2
+np.float32,0x3f813bde,0x3e0e1138,2
+np.float32,0x7f30d5b9,0x42b21791,2
+np.float32,0x3fb4f450,0x3f61806a,2
+np.float32,0x7eee02c4,0x42b14cca,2
+np.float32,0x7ec74b62,0x42b0f1e4,2
+np.float32,0x3ff96bca,0x3fa4b498,2
+np.float32,0x7f50e304,0x42b26cda,2
+np.float32,0x7eb14c57,0x42b0b603,2
+np.float32,0x7c3f0733,0x42a9edbf,2
+np.float32,0x7ea57acb,0x42b092b1,2
+np.float32,0x7f2788dc,0x42b1fbe7,2
+np.float32,0x3fa39f14,0x3f3ad09b,2
+np.float32,0x3fc3a7e0,0x3f7ccfa0,2
+np.float32,0x3fe70a73,0x3f991eb0,2
+np.float32,0x7f4831f7,0x42b25718,2
+np.float32,0x3fe947d0,0x3f9a999c,2
+np.float32,0x7ef2b1c7,0x42b156c4,2
+np.float32,0x3fede0ea,0x3f9d937f,2
+np.float32,0x3f9fef8e,0x3f314637,2
+np.float32,0x3fc313c5,0x3f7bcebd,2
+np.float32,0x7ee99337,0x42b14328,2
+np.float32,0x7eb9042e,0x42b0cbd5,2
+np.float32,0x3fc9d3dc,0x3f839a69,2
+np.float32,0x3fb2c018,0x3f5d091d,2
+np.float32,0x3fcc4e8f,0x3f859dc5,2
+np.float32,0x3fa9363b,0x3f484819,2
+np.float32,0x7f72ce2e,0x42b2b9e4,2
+np.float32,0x7e639326,0x42afd2f1,2
+np.float32,0x7f4595d3,0x42b25060,2
+np.float32,0x7f6d0ac4,0x42b2ad97,2
+np.float32,0x7f1bda0d,0x42b1d6e5,2
+np.float32,0x3fd85ffd,0x3f8ee0ed,2
+np.float32,0x3f91d53f,0x3f059c8e,2
+np.float32,0x7d06e103,0x42ac0155,2
+np.float32,0x3fb83126,0x3f67de6e,2
+np.float32,0x7d81ce1f,0x42ad5097,2
+np.float32,0x7f79cb3b,0x42b2c86b,2
+np.float32,0x7f800000,0x7f800000,2
+np.float32,0x3fdbfffd,0x3f918137,2
+np.float32,0x7f4ecb1c,0x42b267b2,2
+np.float32,0x3fc2c122,0x3f7b3ed3,2
+np.float32,0x7f415854,0x42b24544,2
+np.float32,0x7e3d988b,0x42af7575,2
+np.float32,0x3f83ca99,0x3e789fcb,2
+np.float32,0x7f274f70,0x42b1fb38,2
+np.float32,0x7f0d20e6,0x42b1a416,2
+np.float32,0x3fdf3a1d,0x3f93c9c1,2
+np.float32,0x7efaa13e,0x42b1673d,2
+np.float32,0x3fb20b15,0x3f5b9434,2
+np.float32,0x3f86af9f,0x3ea4c664,2
+np.float32,0x3fe4fcb0,0x3f97be8a,2
+np.float32,0x3f920683,0x3f065085,2
+np.float32,0x3fa4b278,0x3f3d7e8b,2
+np.float32,0x3f8077a8,0x3daef77f,2
+np.float32,0x7e865be4,0x42b02807,2
+np.float32,0x3fcea7e2,0x3f877c9f,2
+np.float32,0x7e7e9db1,0x42b00c6d,2
+np.float32,0x3f9819aa,0x3f1aba7e,2
+np.float32,0x7f2b6c4b,0x42b207a7,2
+np.float32,0x7ef85e3e,0x42b16299,2
+np.float32,0x3fbd8290,0x3f71df8b,2
+np.float32,0x3fbbb615,0x3f6e8c8c,2
+np.float32,0x7f1bc7f5,0x42b1d6a9,2
+np.float32,0x3fbb4fea,0x3f6dcdad,2
+np.float32,0x3fb67e09,0x3f648dd1,2
+np.float32,0x3fc83495,0x3f824374,2
+np.float32,0x3fe52980,0x3f97dcbc,2
+np.float32,0x3f87d893,0x3eb25d7c,2
+np.float32,0x3fdb805a,0x3f9125c0,2
+np.float32,0x3fb33f0f,0x3f5e0ce1,2
+np.float32,0x3facc524,0x3f50516b,2
+np.float32,0x3ff40484,0x3fa16d0e,2
+np.float32,0x3ff078bf,0x3f9f3811,2
+np.float32,0x7f736747,0x42b2bb27,2
+np.float32,0x7f55768b,0x42b277f3,2
+np.float32,0x80000001,0xffc00000,2
+np.float32,0x7f6463d1,0x42b29a8e,2
+np.float32,0x3f8f8b59,0x3ef9d792,2
+np.float32,0x3f8a6f4d,0x3ecd5bf4,2
+np.float32,0x3fe958d9,0x3f9aa4ca,2
+np.float32,0x7f1e2ce2,0x42b1de78,2
+np.float32,0x3fb8584a,0x3f682a05,2
+np.float32,0x7dea3dc6,0x42ae7ed5,2
+np.float32,0x7f53a815,0x42b27399,2
+np.float32,0x7e0cf986,0x42aeddbf,2
+np.float32,0x7f3afb71,0x42b23422,2
+np.float32,0x3fd87d6e,0x3f8ef685,2
+np.float32,0x3ffcaa46,0x3fa6a0d7,2
+np.float32,0x7eecd276,0x42b14a3a,2
+np.float32,0x3ffc30b4,0x3fa65951,2
+np.float32,0x7e9c85e2,0x42b07634,2
+np.float32,0x3f95d862,0x3f1383de,2
+np.float32,0x7ef21410,0x42b15577,2
+np.float32,0x3fbfa1b5,0x3f75b86e,2
+np.float32,0x3fd6d90f,0x3f8dc086,2
+np.float32,0x0,0xffc00000,2
+np.float32,0x7e885dcd,0x42b02f9f,2
+np.float32,0x3fb3e057,0x3f5f54bf,2
+np.float32,0x7f40afdd,0x42b24385,2
+np.float32,0x3fb795c2,0x3f66b120,2
+np.float32,0x3fba7c11,0x3f6c3f73,2
+np.float32,0x3ffef620,0x3fa7f828,2
+np.float32,0x7d430508,0x42acbe1e,2
+np.float32,0x3f8d2892,0x3ee6369f,2
+np.float32,0x3fbea139,0x3f73e9d5,2
+np.float32,0x3ffaa928,0x3fa571b9,2
+np.float32,0x7fc00000,0x7fc00000,2
+np.float32,0x7f16f9ce,0x42b1c69f,2
+np.float32,0x3fa8f753,0x3f47b657,2
+np.float32,0x3fd48a63,0x3f8c06ac,2
+np.float32,0x7f13419e,0x42b1b9d9,2
+np.float32,0x3fdf1526,0x3f93afde,2
+np.float32,0x3f903c8b,0x3eff3be8,2
+np.float32,0x7f085323,0x42b1925b,2
+np.float32,0x7cdbe309,0x42ab98ac,2
+np.float32,0x3fba2cfd,0x3f6ba9f1,2
+np.float32,0x7f5a805d,0x42b283e4,2
+np.float32,0x7f6753dd,0x42b2a119,2
+np.float32,0x3fed9f02,0x3f9d6964,2
+np.float32,0x3f96422c,0x3f14ddba,2
+np.float32,0x7f22f2a9,0x42b1edb1,2
+np.float32,0x3fe3fcfd,0x3f97119d,2
+np.float32,0x7e018ad0,0x42aeb271,2
+np.float32,0x7db896f5,0x42ae04de,2
+np.float32,0x7e55c795,0x42afb2ec,2
+np.float32,0x7f58ef8d,0x42b28036,2
+np.float32,0x7f24a16a,0x42b1f2f3,2
+np.float32,0x3fcf714c,0x3f881b09,2
+np.float32,0x3fcdd056,0x3f86d200,2
+np.float32,0x7f02fad0,0x42b17de0,2
+np.float32,0x7eeab877,0x42b145a9,2
+np.float32,0x3fd6029d,0x3f8d20f7,2
+np.float32,0x3fd4f8cd,0x3f8c59d6,2
+np.float32,0x3fb29d4a,0x3f5cc1a5,2
+np.float32,0x3fb11e2d,0x3f59a77a,2
+np.float32,0x7eded576,0x42b12b0e,2
+np.float32,0x7f26c2a5,0x42b1f988,2
+np.float32,0x3fb6165b,0x3f63c151,2
+np.float32,0x7f3bca47,0x42b23657,2
+np.float32,0x7d8c93bf,0x42ad7968,2
+np.float32,0x3f8ede02,0x3ef47176,2
+np.float32,0x3fbef762,0x3f7485b9,2
+np.float32,0x7f1419af,0x42b1bcc6,2
+np.float32,0x7d9e8c79,0x42adb701,2
+np.float32,0x3fa26336,0x3f37af63,2
+np.float32,0x7f5f5590,0x42b28f18,2
+np.float32,0x3fddc93a,0x3f92c651,2
+np.float32,0x3ff0a5fc,0x3f9f547f,2
+np.float32,0x3fb2f6b8,0x3f5d790e,2
+np.float32,0x3ffe59a4,0x3fa79d2c,2
+np.float32,0x7e4df848,0x42af9fde,2
+np.float32,0x3fb0ab3b,0x3f58b678,2
+np.float32,0x7ea54d47,0x42b09225,2
+np.float32,0x3fdd6404,0x3f927eb2,2
+np.float32,0x3f846dc0,0x3e864caa,2
+np.float32,0x7d046aee,0x42abf7e7,2
+np.float32,0x7f7c5a05,0x42b2cda3,2
+np.float32,0x3faf6126,0x3f55fb21,2
+np.float32,0x7f36a910,0x42b22829,2
+np.float32,0x3fdc7b36,0x3f91d938,2
+np.float32,0x3fff443e,0x3fa82577,2
+np.float32,0x7ee7154a,0x42b13daa,2
+np.float32,0x3f944742,0x3f0e435c,2
+np.float32,0x7f5b510a,0x42b285cc,2
+np.float32,0x3f9bc940,0x3f25c4d2,2
+np.float32,0x3fee4782,0x3f9dd4ea,2
+np.float32,0x3fcfc2dd,0x3f885aea,2
+np.float32,0x7eab65cf,0x42b0a4af,2
+np.float32,0x3f9cf908,0x3f292689,2
+np.float32,0x7ed35501,0x42b10feb,2
+np.float32,0x7dabb70a,0x42addfd9,2
+np.float32,0x7f348919,0x42b2222b,2
+np.float32,0x3fb137d4,0x3f59dd17,2
+np.float32,0x7e7b36c9,0x42b0058a,2
+np.float32,0x7e351fa4,0x42af5e0d,2
+np.float32,0x3f973c0c,0x3f18011e,2
+np.float32,0xff800000,0xffc00000,2
+np.float32,0x3f9b0a4b,0x3f239a33,2
+np.float32,0x3f87c4cf,0x3eb17e7e,2
+np.float32,0x7ef67760,0x42b15eaa,2
+np.float32,0x3fc4d2c8,0x3f7ed20f,2
+np.float32,0x7e940dac,0x42b059b8,2
+np.float32,0x7f6e6a52,0x42b2b08d,2
+np.float32,0x3f838752,0x3e6fe4b2,2
+np.float32,0x3fd8f046,0x3f8f4a94,2
+np.float32,0x3fa82112,0x3f45c223,2
+np.float32,0x3fd49b16,0x3f8c1345,2
+np.float32,0x7f02a941,0x42b17ca1,2
+np.float32,0x3f8a9d2c,0x3ecf1768,2
+np.float32,0x7c9372e3,0x42aacc0f,2
+np.float32,0x3fd260b3,0x3f8a619a,2
+np.float32,0x3f8a1b88,0x3eca27cb,2
+np.float32,0x7d25d510,0x42ac6b1c,2
+np.float32,0x7ef5a578,0x42b15cf5,2
+np.float32,0x3fe6625d,0x3f98ae9a,2
+np.float32,0x3ff53240,0x3fa22658,2
+np.float32,0x3f8bb2e6,0x3ed944cf,2
+np.float32,0x7f4679b1,0x42b252ad,2
+np.float32,0x3fa8db30,0x3f4774fc,2
+np.float32,0x7ee5fafd,0x42b13b37,2
+np.float32,0x3fc405e0,0x3f7d71fb,2
+np.float32,0x3f9303cd,0x3f09ddfd,2
+np.float32,0x7f486e67,0x42b257b2,2
+np.float32,0x7e73f12b,0x42aff680,2
+np.float32,0x3fe80f8b,0x3f99cbe4,2
+np.float32,0x3f84200a,0x3e81a3f3,2
+np.float32,0x3fa14e5c,0x3f34e3ce,2
+np.float32,0x3fda22ec,0x3f9029bb,2
+np.float32,0x3f801772,0x3d1aef98,2
+np.float32,0x7eaa1428,0x42b0a0bb,2
+np.float32,0x3feae0b3,0x3f9ba4aa,2
+np.float32,0x7ea439b4,0x42b08ecc,2
+np.float32,0x3fa28b1c,0x3f381579,2
+np.float32,0x7e8af247,0x42b03937,2
+np.float32,0x3fd19216,0x3f89c2b7,2
+np.float32,0x7f6ea033,0x42b2b100,2
+np.float32,0x3fad4fbf,0x3f518224,2
+np.float32,0x3febd940,0x3f9c45bd,2
+np.float32,0x7f4643a3,0x42b25221,2
+np.float32,0x7ec34478,0x42b0e771,2
+np.float32,0x7f18c83b,0x42b1ccb5,2
+np.float32,0x3fc665ad,0x3f80bf94,2
+np.float32,0x3ff0a999,0x3f9f56c4,2
+np.float32,0x3faf1cd2,0x3f5568fe,2
+np.float32,0x7ecd9dc6,0x42b101e1,2
+np.float32,0x3faad282,0x3f4bf754,2
+np.float32,0x3ff905a0,0x3fa47771,2
+np.float32,0x7f596481,0x42b28149,2
+np.float32,0x7f1cb31f,0x42b1d9ac,2
+np.float32,0x7e266719,0x42af32a6,2
+np.float32,0x7eccce06,0x42b0ffdb,2
+np.float32,0x3f9b6f71,0x3f24c102,2
+np.float32,0x3f80e4ba,0x3df1d6bc,2
+np.float32,0x3f843d51,0x3e836a60,2
+np.float32,0x7f70bd88,0x42b2b585,2
+np.float32,0x3fe4cc96,0x3f979e18,2
+np.float32,0x3ff737c7,0x3fa36151,2
+np.float32,0x3ff1197e,0x3f9f9cf4,2
+np.float32,0x7f08e190,0x42b19471,2
+np.float32,0x3ff1542e,0x3f9fc1b2,2
+np.float32,0x3ff6673c,0x3fa2e2d2,2
+np.float32,0xbf800000,0xffc00000,2
+np.float32,0x7e3f9ba7,0x42af7add,2
+np.float32,0x7f658ff6,0x42b29d2d,2
+np.float32,0x3f93441c,0x3f0ac0d9,2
+np.float32,0x7f526a74,0x42b27096,2
+np.float32,0x7f5b00c8,0x42b28511,2
+np.float32,0x3ff212f8,0x3fa038cf,2
+np.float32,0x7e0bd60d,0x42aed998,2
+np.float32,0x7f71ef7f,0x42b2b80e,2
+np.float32,0x7f7a897e,0x42b2c9f1,2
+np.float32,0x7e8b76a6,0x42b03b1e,2
+np.float32,0x7efa0da3,0x42b1660f,2
+np.float32,0x3fce9166,0x3f876ae0,2
+np.float32,0x3fc4163d,0x3f7d8e30,2
+np.float32,0x3fdb3784,0x3f90f16b,2
+np.float32,0x7c5f177b,0x42aa3d30,2
+np.float32,0x3fc6276d,0x3f808af5,2
+np.float32,0x7bac9cc2,0x42a856f4,2
+np.float32,0x3fe5876f,0x3f981bea,2
+np.float32,0x3fef60e3,0x3f9e878a,2
+np.float32,0x3fb23cd8,0x3f5bfb06,2
+np.float32,0x3fe114e2,0x3f951402,2
+np.float32,0x7ca8ef04,0x42ab11b4,2
+np.float32,0x7d93c2ad,0x42ad92ec,2
+np.float32,0x3fe5bb8a,0x3f983ee6,2
+np.float32,0x7f0182fd,0x42b1781b,2
+np.float32,0x7da63bb2,0x42adcf3d,2
+np.float32,0x3fac46b7,0x3f4f399e,2
+np.float32,0x7f7a5d8f,0x42b2c997,2
+np.float32,0x7f76572e,0x42b2c14b,2
+np.float32,0x7f42d53e,0x42b24931,2
+np.float32,0x7f7ffd00,0x42b2d4f6,2
+np.float32,0x3fc346c3,0x3f7c2756,2
+np.float32,0x7f1f6ae3,0x42b1e27a,2
+np.float32,0x3f87fb56,0x3eb3e2ee,2
+np.float32,0x3fed17a2,0x3f9d12b4,2
+np.float32,0x7f5ea903,0x42b28d8c,2
+np.float32,0x3f967f82,0x3f15a4ab,2
+np.float32,0x7d3b540c,0x42aca984,2
+np.float32,0x7f56711a,0x42b27a4a,2
+np.float32,0x7f122223,0x42b1b5ee,2
+np.float32,0x3fd6fa34,0x3f8dd919,2
+np.float32,0x3fadd62e,0x3f52a7b3,2
+np.float32,0x3fb7bf0c,0x3f67015f,2
+np.float32,0x7edf4ba7,0x42b12c1d,2
+np.float32,0x7e33cc65,0x42af5a4b,2
+np.float32,0x3fa6be17,0x3f427831,2
+np.float32,0x3fa07aa8,0x3f32b7d4,2
+np.float32,0x3fa4a3af,0x3f3d5a01,2
+np.float32,0x3fdbb267,0x3f9149a8,2
+np.float32,0x7ed45e25,0x42b1126c,2
+np.float32,0x3fe3f432,0x3f970ba6,2
+np.float32,0x7f752080,0x42b2bec3,2
+np.float32,0x3f872747,0x3eaa62ea,2
+np.float32,0x7e52175d,0x42afaa03,2
+np.float32,0x3fdc766c,0x3f91d5ce,2
+np.float32,0x7ecd6841,0x42b1015c,2
+np.float32,0x7f3d6c40,0x42b23ac6,2
+np.float32,0x3fb80c14,0x3f6796b9,2
+np.float32,0x3ff6ad56,0x3fa30d68,2
+np.float32,0x3fda44c3,0x3f90423e,2
+np.float32,0x3fdcba0c,0x3f9205fc,2
+np.float32,0x7e14a720,0x42aef8e6,2
+np.float32,0x3fe9e489,0x3f9b0047,2
+np.float32,0x7e69f933,0x42afe123,2
+np.float32,0x3ff3ee6d,0x3fa15f71,2
+np.float32,0x3f8538cd,0x3e91c1a7,2
+np.float32,0x3fdc3f07,0x3f91ae46,2
+np.float32,0x3fba2ef0,0x3f6bada2,2
+np.float32,0x7da64cd8,0x42adcf71,2
+np.float32,0x3fc34bd2,0x3f7c301d,2
+np.float32,0x3fa273aa,0x3f37d984,2
+np.float32,0x3ff0338c,0x3f9f0c86,2
+np.float32,0x7ed62cef,0x42b116c3,2
+np.float32,0x3f911e7e,0x3f02f7c6,2
+np.float32,0x7c8514c9,0x42aa9792,2
+np.float32,0x3fea2a74,0x3f9b2df5,2
+np.float32,0x3fe036f8,0x3f947a25,2
+np.float32,0x7c5654bf,0x42aa28ad,2
+np.float32,0x3fd9e423,0x3f8ffc32,2
+np.float32,0x7eec0439,0x42b1487b,2
+np.float32,0x3fc580f4,0x3f7ffb62,2
+np.float32,0x3fb0e316,0x3f592bbe,2
+np.float32,0x7c4cfb7d,0x42aa11d8,2
+np.float32,0x3faf9704,0x3f566e00,2
+np.float32,0x3fa7cf8a,0x3f45023d,2
+np.float32,0x7f7b724d,0x42b2cbcc,2
+np.float32,0x7f05bfe3,0x42b18897,2
+np.float32,0x3f90bde3,0x3f018bf3,2
+np.float32,0x7c565479,0x42aa28ad,2
+np.float32,0x3f94b517,0x3f0fb8e5,2
+np.float32,0x3fd6aadd,0x3f8d9e3c,2
+np.float32,0x7f09b37c,0x42b1977f,2
+np.float32,0x7f2b45ea,0x42b20734,2
+np.float32,0x3ff1d15e,0x3fa00fe9,2
+np.float32,0x3f99bce6,0x3f1fbd6c,2
+np.float32,0x7ecd1f76,0x42b100a7,2
+np.float32,0x7f443e2b,0x42b24ce2,2
+np.float32,0x7da7d6a5,0x42add428,2
+np.float32,0x7ebe0193,0x42b0d975,2
+np.float32,0x7ee13c43,0x42b1308b,2
+np.float32,0x3f8adf1b,0x3ed18e0c,2
+np.float32,0x7f76ce65,0x42b2c242,2
+np.float32,0x7e34f43d,0x42af5d92,2
+np.float32,0x7f306b76,0x42b2165d,2
+np.float32,0x7e1fd07f,0x42af1df7,2
+np.float32,0x3fab9a41,0x3f4db909,2
+np.float32,0x3fc23d1a,0x3f7a5803,2
+np.float32,0x3f8b7403,0x3ed70245,2
+np.float32,0x3f8c4dd6,0x3edebbae,2
+np.float32,0x3fe5f411,0x3f9864cd,2
+np.float32,0x3f88128b,0x3eb4e508,2
+np.float32,0x3fcb09de,0x3f84976f,2
+np.float32,0x7f32f2f5,0x42b21da6,2
+np.float32,0x3fe75610,0x3f9950f6,2
+np.float32,0x3f993edf,0x3f1e408d,2
+np.float32,0x3fc4a9d7,0x3f7e8be9,2
+np.float32,0x7f74551a,0x42b2bd1a,2
+np.float32,0x7de87129,0x42ae7ae2,2
+np.float32,0x7f18bbbd,0x42b1cc8c,2
+np.float32,0x7e7e1dd4,0x42b00b6c,2
+np.float32,0x3ff6e55b,0x3fa32f64,2
+np.float32,0x3fa634c8,0x3f412df3,2
+np.float32,0x3fd0fb7c,0x3f894e49,2
+np.float32,0x3ff4f6a6,0x3fa201d7,2
+np.float32,0x7f69d418,0x42b2a69a,2
+np.float32,0x7cb9632d,0x42ab414a,2
+np.float32,0x3fc57d36,0x3f7ff503,2
+np.float32,0x7e9e2ed7,0x42b07b9b,2
+np.float32,0x7f2e6868,0x42b2107d,2
+np.float32,0x3fa3169a,0x3f39785d,2
+np.float32,0x7f03cde0,0x42b18117,2
+np.float32,0x7f6d75d2,0x42b2ae7f,2
+np.float32,0x3ff483f2,0x3fa1bb75,2
+np.float32,0x7f1b39f7,0x42b1d4d6,2
+np.float32,0x3f8c7a7d,0x3ee0481e,2
+np.float32,0x3f989095,0x3f1c2b19,2
+np.float32,0x3fa4cbfd,0x3f3dbd87,2
+np.float32,0x7f75b00f,0x42b2bfef,2
+np.float32,0x3f940724,0x3f0d6756,2
+np.float32,0x7f5e5a1a,0x42b28cd6,2
+np.float32,0x800000,0xffc00000,2
+np.float32,0x7edd1d29,0x42b12716,2
+np.float32,0x3fa3e9e4,0x3f3b8c16,2
+np.float32,0x7e46d70e,0x42af8dd5,2
+np.float32,0x3f824745,0x3e40ec1e,2
+np.float32,0x3fd67623,0x3f8d770a,2
+np.float32,0x3fe9a6f3,0x3f9ad7fa,2
+np.float32,0x3fdda67c,0x3f92adc1,2
+np.float32,0x7ccb6c9a,0x42ab70d4,2
+np.float32,0x3ffd364a,0x3fa6f2fe,2
+np.float32,0x7e02424c,0x42aeb545,2
+np.float32,0x3fb6d2f2,0x3f6534a1,2
+np.float32,0x3fe1fe26,0x3f95b4cc,2
+np.float32,0x7e93ac57,0x42b05867,2
+np.float32,0x7f7b3433,0x42b2cb4d,2
+np.float32,0x3fb76803,0x3f66580d,2
+np.float32,0x3f9af881,0x3f23661b,2
+np.float32,0x3fd58062,0x3f8cbf98,2
+np.float32,0x80000000,0xffc00000,2
+np.float32,0x7f1af8f4,0x42b1d3ff,2
+np.float32,0x3fe66bba,0x3f98b4dc,2
+np.float32,0x7f6bd7bf,0x42b2aaff,2
+np.float32,0x3f84f79a,0x3e8e2e49,2
+np.float32,0x7e475b06,0x42af8f28,2
+np.float32,0x3faff89b,0x3f573d5e,2
+np.float32,0x7de5aa77,0x42ae74bb,2
+np.float32,0x3f8e9e42,0x3ef26cd2,2
+np.float32,0x3fb1cec3,0x3f5b1740,2
+np.float32,0x3f8890d6,0x3eba4821,2
+np.float32,0x3f9b39e9,0x3f242547,2
+np.float32,0x3fc895a4,0x3f829407,2
+np.float32,0x7f77943c,0x42b2c3dc,2
+np.float32,0x7f390d58,0x42b22ed2,2
+np.float32,0x3fe7e160,0x3f99ad58,2
+np.float32,0x3f93d2a0,0x3f0cb205,2
+np.float32,0x7f29499b,0x42b2013c,2
+np.float32,0x3f8c11b2,0x3edca10f,2
+np.float32,0x7e898ef8,0x42b03413,2
+np.float32,0x3fdff942,0x3f944f34,2
+np.float32,0x7f3d602f,0x42b23aa5,2
+np.float32,0x3f8a50f3,0x3ecc345b,2
+np.float32,0x3fa1f86d,0x3f369ce4,2
+np.float32,0x3f97ad95,0x3f19681d,2
+np.float32,0x3ffad1e0,0x3fa589e5,2
+np.float32,0x3fa70590,0x3f432311,2
+np.float32,0x7e6840cb,0x42afdd5c,2
+np.float32,0x3fd4036d,0x3f8ba0aa,2
+np.float32,0x7f7cc953,0x42b2ce84,2
+np.float32,0x7f228e1e,0x42b1ec74,2
+np.float32,0x7e37a866,0x42af652a,2
+np.float32,0x3fda22d0,0x3f9029a7,2
+np.float32,0x7f736bff,0x42b2bb31,2
+np.float32,0x3f9833b6,0x3f1b0b8e,2
+np.float32,0x7f466001,0x42b2526a,2
+np.float32,0xff7fffff,0xffc00000,2
+np.float32,0x7dd62bcd,0x42ae50f8,2
+np.float32,0x7f1d2bfe,0x42b1db36,2
+np.float32,0x7ecffe9e,0x42b107c5,2
+np.float32,0x7ebefe0a,0x42b0dc1b,2
+np.float32,0x7f45c63d,0x42b250dd,2
+np.float32,0x7f601af0,0x42b290db,2
+np.float32,0x3fcbb88a,0x3f8524e5,2
+np.float32,0x7ede55ff,0x42b129e8,2
+np.float32,0x7ea5dd5a,0x42b093e2,2
+np.float32,0x3ff53857,0x3fa22a12,2
+np.float32,0x3f8dbd6a,0x3eeb28a4,2
+np.float32,0x3fd1b467,0x3f89dd2c,2
+np.float32,0x3fe0423f,0x3f9481fc,2
+np.float32,0x3f84b421,0x3e8a6174,2
+np.float32,0x7f4efc97,0x42b2682c,2
+np.float32,0x7f601b33,0x42b290dc,2
+np.float32,0x3f94f240,0x3f108719,2
+np.float32,0x7decd251,0x42ae8471,2
+np.float32,0x3fdc457c,0x3f91b2e2,2
+np.float32,0x3f92a966,0x3f089c5a,2
+np.float32,0x3fc9732f,0x3f834afc,2
+np.float32,0x3f97948f,0x3f19194e,2
+np.float32,0x7f0824a1,0x42b191ac,2
+np.float32,0x7f0365a5,0x42b17f81,2
+np.float32,0x3f800000,0x0,2
+np.float32,0x7f0054c6,0x42b1736b,2
+np.float32,0x3fe86544,0x3f9a0484,2
+np.float32,0x7e95f844,0x42b0604e,2
+np.float32,0x3fce8602,0x3f8761e2,2
+np.float32,0x3fc726c8,0x3f81621d,2
+np.float32,0x3fcf6b03,0x3f88161b,2
+np.float32,0x3fceb843,0x3f87898a,2
+np.float32,0x3fe2f8b2,0x3f966071,2
+np.float32,0x7f3c8e7f,0x42b2386d,2
+np.float32,0x3fcee13a,0x3f87a9d2,2
+np.float32,0x3fc4df27,0x3f7ee73c,2
+np.float32,0x3ffde486,0x3fa758e3,2
+np.float32,0x3fa91be0,0x3f480b17,2
+np.float32,0x7f2a5a7d,0x42b20472,2
+np.float32,0x7e278d80,0x42af362d,2
+np.float32,0x3f96d091,0x3f16a9d5,2
+np.float32,0x7e925225,0x42b053b2,2
+np.float32,0x7f7ef83a,0x42b2d2ec,2
+np.float32,0x7eb4923a,0x42b0bf61,2
+np.float32,0x7e98bf19,0x42b069b3,2
+np.float32,0x3fac93a2,0x3f4fe410,2
+np.float32,0x7f46389c,0x42b25205,2
+np.float32,0x3f9fd447,0x3f30fd54,2
+np.float32,0x3fef42d4,0x3f9e7483,2
+np.float32,0x7f482174,0x42b256ed,2
+np.float32,0x3f97aedb,0x3f196c1e,2
+np.float32,0x7f764edd,0x42b2c13a,2
+np.float32,0x3f9117b5,0x3f02de5c,2
+np.float32,0x3fc7984e,0x3f81c12d,2
+np.float64,0x3ff1e2cb7463c597,0x3fdec6caf39e0c0e,1
+np.float64,0x3ffe4f89789c9f13,0x3ff40f4b1da0f3e9,1
+np.float64,0x7f6a5c9ac034b935,0x408605e51703c145,1
+np.float64,0x7fdcb6ece3b96dd9,0x40862d6521e16d60,1
+np.float64,0x3ff6563e182cac7c,0x3feb9d8210f3fa88,1
+np.float64,0x7fde32025f3c6404,0x40862dcc1d1a9b7f,1
+np.float64,0x7fd755ed35aeabd9,0x40862bbc5522b779,1
+np.float64,0x3ff5c81f4bcb903e,0x3fea71f10b954ea3,1
+np.float64,0x3fffe805d35fd00c,0x3ff50463a1ba2938,1
+np.float64,0x7fd045a1c1a08b43,0x408628d9f431f2f5,1
+np.float64,0x3ff49f7dd9893efc,0x3fe7c6736e17ea8e,1
+np.float64,0x7fccfbc1fd39f783,0x408627eca79acf51,1
+np.float64,0x3ff1af0a00035e14,0x3fdd1c0e7d5706ea,1
+np.float64,0x7fe7bd17162f7a2d,0x4086316af683502b,1
+np.float64,0x3ff0941b8d012837,0x3fd128d274065ac0,1
+np.float64,0x3ffa0c5d98b418bb,0x3ff11af9c8edd17f,1
+np.float64,0x3ffad9733355b2e6,0x3ff1b6d1307acb42,1
+np.float64,0x3ffabb2a33d57654,0x3ff1a0442b034e50,1
+np.float64,0x3ff36118b0c6c231,0x3fe472b7dfb23516,1
+np.float64,0x3ff2441d3664883a,0x3fe0d61145608f0c,1
+np.float64,0x7fe039862d20730b,0x40862e5f8ed752d3,1
+np.float64,0x7fb1dde24023bbc4,0x40861e824cdb0664,1
+np.float64,0x7face6335839cc66,0x40861ccf90a26e16,1
+np.float64,0x3ffb5d0e1af6ba1c,0x3ff2170f6f42fafe,1
+np.float64,0x3ff5c2c6a50b858d,0x3fea665aabf04407,1
+np.float64,0x3ffabb409db57681,0x3ff1a054ea32bfc3,1
+np.float64,0x3ff1e054e983c0aa,0x3fdeb30c17286cb6,1
+np.float64,0x7fe467f73268cfed,0x4086303529e52e9b,1
+np.float64,0x7fe0e86bf961d0d7,0x40862eb40788b04a,1
+np.float64,0x3ffb743542f6e86a,0x3ff227b4ea5acee0,1
+np.float64,0x3ff2de6826e5bcd0,0x3fe2e31fcde0a96c,1
+np.float64,0x7fd6b27ccfad64f9,0x40862b8385697c31,1
+np.float64,0x7fe0918e8d21231c,0x40862e8a82d9517a,1
+np.float64,0x7fd0ca0395a19406,0x4086291a0696ed33,1
+np.float64,0x3ffb042496960849,0x3ff1d658c928abfc,1
+np.float64,0x3ffcd0409799a081,0x3ff31877df0cb245,1
+np.float64,0x7fe429bd06685379,0x4086301c9f259934,1
+np.float64,0x3ff933076092660f,0x3ff06d2e5f4d9ab7,1
+np.float64,0x7feaefcb28f5df95,0x4086326dccf88e6f,1
+np.float64,0x7fb5f2c1f82be583,0x40862027ac02a39d,1
+np.float64,0x3ffb5d9e3bd6bb3c,0x3ff21777501d097e,1
+np.float64,0x10000000000000,0xfff8000000000000,1
+np.float64,0x3ff70361596e06c3,0x3fecf675ceda7e19,1
+np.float64,0x3ff71a21b5ee3444,0x3fed224fa048d9a9,1
+np.float64,0x3ffb102b86762057,0x3ff1df2cc9390518,1
+np.float64,0x7feaaeb35c355d66,0x4086325a60704a90,1
+np.float64,0x7fd9a3d0a93347a0,0x40862c7d300fc076,1
+np.float64,0x7fabcf159c379e2a,0x40861c80cdbbff27,1
+np.float64,0x7fd1c066ec2380cd,0x4086298c3006fee6,1
+np.float64,0x3ff3d5ae2d67ab5c,0x3fe5bc16447428db,1
+np.float64,0x3ff4b76add696ed6,0x3fe800f5bbf21376,1
+np.float64,0x3ff60d89ee0c1b14,0x3feb063fdebe1a68,1
+np.float64,0x7f1d2648003a4c8f,0x4085eaf9238af95a,1
+np.float64,0x7fe8b45f6df168be,0x408631bca5abf6d6,1
+np.float64,0x7fe9ea5308f3d4a5,0x4086321ea2bd3af9,1
+np.float64,0x7fcb6ba5a636d74a,0x4086277b208075ed,1
+np.float64,0x3ff621cfd74c43a0,0x3feb30d59baf5919,1
+np.float64,0x3ff7bc8ca0af7919,0x3fee524da8032896,1
+np.float64,0x7fda22dd0c3445b9,0x40862ca47326d063,1
+np.float64,0x7fd02ed4b2a05da8,0x408628ceb6919421,1
+np.float64,0x3ffe64309fdcc861,0x3ff41c1b18940709,1
+np.float64,0x3ffee4042abdc808,0x3ff46a6005bccb41,1
+np.float64,0x3ff078145b00f029,0x3fceeb3d6bfae0eb,1
+np.float64,0x7fda20fd20b441f9,0x40862ca3e03b990b,1
+np.float64,0x3ffa9e9e9af53d3d,0x3ff18ade3cbee789,1
+np.float64,0x3ff0a1062501420c,0x3fd1e32de6d18c0d,1
+np.float64,0x3ff3bdf118477be2,0x3fe57ad89b7fdf8b,1
+np.float64,0x3ff101c0d5c20382,0x3fd6965d3539be47,1
+np.float64,0x7feba3b53b774769,0x408632a28c7aca4d,1
+np.float64,0x3ff598db5d4b31b7,0x3fea0aa65c0b421a,1
+np.float64,0x3ff5fdfbb72bfbf8,0x3feae55accde4a5e,1
+np.float64,0x7fe5bae53aab75c9,0x408630b5e7a5b92a,1
+np.float64,0x3ff8f668afd1ecd2,0x3ff03af686666c9c,1
+np.float64,0x3ff5ba72dd2b74e6,0x3fea5441f223c093,1
+np.float64,0x3ff8498147109302,0x3fef4e45d501601d,1
+np.float64,0x7feddcfa5efbb9f4,0x4086334106a6e76b,1
+np.float64,0x7fd1a30200234603,0x4086297ee5cc562c,1
+np.float64,0x3ffffa8ee07ff51e,0x3ff50f1dc46f1303,1
+np.float64,0x7fef7ed00ebefd9f,0x408633ae01dabe52,1
+np.float64,0x3ffb6e062276dc0c,0x3ff22344c58c2016,1
+np.float64,0x7fcf2b59943e56b2,0x4086288190dd5eeb,1
+np.float64,0x3ffa589f9254b13f,0x3ff155cc081eee0b,1
+np.float64,0x3ff05415ca60a82c,0x3fc9e45565baef0a,1
+np.float64,0x7feb34bed576697d,0x408632822d5a178c,1
+np.float64,0x3ff3993845c73270,0x3fe51423baf246c3,1
+np.float64,0x3ff88367aaf106d0,0x3fefb2d9ca9f1192,1
+np.float64,0x7fef364304fe6c85,0x4086339b7ed82997,1
+np.float64,0x7fcba2c317374585,0x4086278b24e42934,1
+np.float64,0x3ff1aef885e35df1,0x3fdd1b79f55b20c0,1
+np.float64,0x7fe19367886326ce,0x40862f035f867445,1
+np.float64,0x3ff3c8295e279053,0x3fe5970aa670d32e,1
+np.float64,0x3ff6edda164ddbb4,0x3feccca9eb59d6b9,1
+np.float64,0x7fdeaea940bd5d52,0x40862dece02d151b,1
+np.float64,0x7fea9d6324353ac5,0x408632552ddf0d4f,1
+np.float64,0x7fe60e39e66c1c73,0x408630d45b1ad0c4,1
+np.float64,0x7fde06325abc0c64,0x40862dc07910038c,1
+np.float64,0x7f9ec89d303d9139,0x408617c55ea4c576,1
+np.float64,0x3ff9801930530032,0x3ff0abe5be046051,1
+np.float64,0x3ff4d5859689ab0b,0x3fe849a7f7a19fa3,1
+np.float64,0x3ff38afbc48715f8,0x3fe4ebb7710cbab9,1
+np.float64,0x3ffd88a0e77b1142,0x3ff3916964407e21,1
+np.float64,0x1,0xfff8000000000000,1
+np.float64,0x3ff5db59e58bb6b4,0x3fea9b6b5ccc116f,1
+np.float64,0x3ffd4b05b15a960c,0x3ff369792f661a90,1
+np.float64,0x7fdcebc4fb39d789,0x40862d73cd623378,1
+np.float64,0x3ff5b56f944b6adf,0x3fea4955d6b06ca3,1
+np.float64,0x7fd4e4abf2a9c957,0x40862ad9e9da3c61,1
+np.float64,0x7fe08e0d6aa11c1a,0x40862e88d17ef277,1
+np.float64,0x3ff0dfc97da1bf93,0x3fd50f9004136d8f,1
+np.float64,0x7fdec38eaebd871c,0x40862df2511e26b4,1
+np.float64,0x7ff8000000000000,0x7ff8000000000000,1
+np.float64,0x3ff21865504430cb,0x3fe033fe3cf3947a,1
+np.float64,0x7fdc139708b8272d,0x40862d371cfbad03,1
+np.float64,0x7fe1fe3be3a3fc77,0x40862f336e3ba63a,1
+np.float64,0x7fd9fa2493b3f448,0x40862c97f2960be9,1
+np.float64,0x3ff0a027db414050,0x3fd1d6e54a707c87,1
+np.float64,0x3ff568b16f4ad163,0x3fe99f5c6d7b6e18,1
+np.float64,0x3ffe2f82877c5f05,0x3ff3fb54bd0da753,1
+np.float64,0x7fbaf5778435eaee,0x408621ccc9e2c1be,1
+np.float64,0x7fc5aaf8362b55ef,0x40862598e7072a49,1
+np.float64,0x7fe0ebfdd4a1d7fb,0x40862eb5b7bf99d5,1
+np.float64,0x7fd8efeb5931dfd6,0x40862c444636f408,1
+np.float64,0x3ff361a308c6c346,0x3fe4744cae63e6df,1
+np.float64,0x7fef287d39be50f9,0x40863397f65c807e,1
+np.float64,0x7fe72c4a14ae5893,0x4086313992e52082,1
+np.float64,0x3ffd1be44cba37c8,0x3ff34a9a45239eb9,1
+np.float64,0x3ff50369c18a06d4,0x3fe8b69319f091f1,1
+np.float64,0x3ffb333c25766678,0x3ff1f8c78eeb28f1,1
+np.float64,0x7fe12050416240a0,0x40862ece4e2f2f24,1
+np.float64,0x7fe348f5526691ea,0x40862fc16fbe7b6c,1
+np.float64,0x3ff343cc4d068799,0x3fe41c2a30cab7d2,1
+np.float64,0x7fd1b0daaa2361b4,0x408629852b3104ff,1
+np.float64,0x3ff6a41f37ad483e,0x3fec3b36ee6c6d4a,1
+np.float64,0x3ffad9439435b287,0x3ff1b6add9a1b3d7,1
+np.float64,0x7fbeb9a2f23d7345,0x408622d89ac1eaba,1
+np.float64,0x3ffab3d39fb567a7,0x3ff19ac75b4427f3,1
+np.float64,0x3ff890003ed12000,0x3fefc8844471c6ad,1
+np.float64,0x3ffc9f595e593eb2,0x3ff2f7a8699f06d8,1
+np.float64,0x7fe2224ef6e4449d,0x40862f43684a154a,1
+np.float64,0x3ffa67ba08d4cf74,0x3ff161525778df99,1
+np.float64,0x7fe87e24b570fc48,0x408631ab02b159fb,1
+np.float64,0x7fd6e99be92dd337,0x40862b96dba73685,1
+np.float64,0x7fe90f39fdf21e73,0x408631d9dbd36c1e,1
+np.float64,0x3ffb7806abd6f00e,0x3ff22a719b0f4c46,1
+np.float64,0x3ffa511ba3d4a238,0x3ff1500c124f6e17,1
+np.float64,0x3ff5d7a569abaf4b,0x3fea937391c280e8,1
+np.float64,0x7fc4279d20284f39,0x40862504a5cdcb96,1
+np.float64,0x3ffe8791b1fd0f24,0x3ff431f1ed7eaba0,1
+np.float64,0x7fe3b2f5276765e9,0x40862fecf15e2535,1
+np.float64,0x7feeab0e7abd561c,0x408633778044cfbc,1
+np.float64,0x7fdba88531375109,0x40862d1860306d7a,1
+np.float64,0x7fe7b19b3def6335,0x4086316716d6890b,1
+np.float64,0x3ff9e9437413d287,0x3ff0ff89431c748c,1
+np.float64,0x3ff960716a52c0e3,0x3ff092498028f802,1
+np.float64,0x3ff271bf56a4e37f,0x3fe1786fc8dd775d,1
+np.float64,0x3fff2a6578be54cb,0x3ff494bbe303eeb5,1
+np.float64,0x3ffd842eb5fb085e,0x3ff38e8b7ba42bc5,1
+np.float64,0x3ff91600e5d22c02,0x3ff0553c6a6b3d93,1
+np.float64,0x3ff9153f45f22a7e,0x3ff0549c0eaecf95,1
+np.float64,0x7fe0ab319da15662,0x40862e96da3b19f9,1
+np.float64,0x3ff06acd1f60d59a,0x3fcd2aca543d2772,1
+np.float64,0x3ffb3e7a54d67cf4,0x3ff200f288cd391b,1
+np.float64,0x3ffd01356f1a026b,0x3ff339003462a56c,1
+np.float64,0x3ffacd35def59a6c,0x3ff1adb8d32b3ec0,1
+np.float64,0x3ff6f953264df2a6,0x3fece2f992948d6e,1
+np.float64,0x3ff0fa91f5a1f524,0x3fd64609a28f1590,1
+np.float64,0x7fd1b7610ca36ec1,0x408629881e03dc7d,1
+np.float64,0x3ff4317fb7c86300,0x3fe6b086ed265887,1
+np.float64,0x3ff3856198070ac3,0x3fe4dbb6bc88b9e3,1
+np.float64,0x7fed7fc4573aff88,0x40863327e7013a81,1
+np.float64,0x3ffe53cbbf5ca798,0x3ff411f07a29b1f4,1
+np.float64,0x3ff092195b012433,0x3fd10b1c0b4b14fe,1
+np.float64,0x3ff1a3171163462e,0x3fdcb5c301d5d40d,1
+np.float64,0x3ffa1401f1742804,0x3ff120eb319e9faa,1
+np.float64,0x7fd352f6f426a5ed,0x40862a3a048feb6d,1
+np.float64,0x7fd4ee246fa9dc48,0x40862add895d808f,1
+np.float64,0x3ff0675cfa00ceba,0x3fccb2222c5493ca,1
+np.float64,0x3ffe5cb38f3cb967,0x3ff417773483d161,1
+np.float64,0x7fe11469ea2228d3,0x40862ec8bd3e497f,1
+np.float64,0x3fff13cba67e2798,0x3ff4872fe2c26104,1
+np.float64,0x3ffb73d3d316e7a8,0x3ff2276f08612ea2,1
+np.float64,0x7febfb70f237f6e1,0x408632bbc9450721,1
+np.float64,0x3ff84a0d87b0941b,0x3fef4f3b707e3145,1
+np.float64,0x7fd71fd5082e3fa9,0x40862ba9b4091172,1
+np.float64,0x3ff560737d8ac0e7,0x3fe98cc9c9ba2f61,1
+np.float64,0x3ff46a266ae8d44d,0x3fe74190e5234822,1
+np.float64,0x7fe8cc9225719923,0x408631c477db9708,1
+np.float64,0x3ff871de5930e3bc,0x3fef948f7d00fbef,1
+np.float64,0x3ffd0bc7895a178f,0x3ff33ffc18357721,1
+np.float64,0x3ff66099f9ccc134,0x3febb2bc775b4720,1
+np.float64,0x7fe91f1be9723e37,0x408631deec3a5c9e,1
+np.float64,0x7fd60462f12c08c5,0x40862b4537e1c1c6,1
+np.float64,0x3ff053100ba0a620,0x3fc9bc0c21e2284f,1
+np.float64,0x7fd864c611b0c98b,0x40862c1724506255,1
+np.float64,0x7fd191decb2323bd,0x408629771bfb68cc,1
+np.float64,0x3ff792a1656f2543,0x3fee054f2e135fcf,1
+np.float64,0x7fd03625cea06c4b,0x408628d253b840e3,1
+np.float64,0x7fc3967716272ced,0x408624ca35451042,1
+np.float64,0x7fe6636cb32cc6d8,0x408630f3073a22a7,1
+np.float64,0x3ffc2d3976585a73,0x3ff2a9d4c0dae607,1
+np.float64,0x3fffd10ee79fa21e,0x3ff4f70db69888be,1
+np.float64,0x3ff1d4fcae23a9f9,0x3fde57675007b23c,1
+np.float64,0x3ffa5da19e14bb43,0x3ff1599f74d1c113,1
+np.float64,0x3ff7f4eb0d6fe9d6,0x3feeb85189659e99,1
+np.float64,0x7fbcca44d8399489,0x408622536234f7c1,1
+np.float64,0x7fef5f97ec3ebf2f,0x408633a60fdde0d7,1
+np.float64,0x7fde4a66da3c94cd,0x40862dd290ebc184,1
+np.float64,0x3ff072957a40e52b,0x3fce34d913d87613,1
+np.float64,0x3ff2bc4c9dc57899,0x3fe27497e6ebe27d,1
+np.float64,0x7fd7d152b4afa2a4,0x40862be63469eecd,1
+np.float64,0x3ff957d768f2afaf,0x3ff08b4ad8062a73,1
+np.float64,0x7fe4bc5f45a978be,0x40863055fd66e4eb,1
+np.float64,0x7fc90de345321bc6,0x408626c24ce7e370,1
+np.float64,0x3ff2d7a37d85af47,0x3fe2cd6a40b544a0,1
+np.float64,0x7fe536ea1f6a6dd3,0x40863084bade76a3,1
+np.float64,0x3fff970c9cdf2e19,0x3ff4d524572356dd,1
+np.float64,0x3ffe173ae63c2e76,0x3ff3ec1ee35ad28c,1
+np.float64,0x3ff714025cce2805,0x3fed168aedff4a2b,1
+np.float64,0x7fce7b414c3cf682,0x40862853dcdd19d4,1
+np.float64,0x3ff019623f2032c4,0x3fbc7c602df0bbaf,1
+np.float64,0x3ff72f57fd0e5eb0,0x3fed4ae75f697432,1
+np.float64,0x3ff283778e8506ef,0x3fe1b5c5725b0dfd,1
+np.float64,0x3ff685a29aed0b45,0x3febfdfdedd581e2,1
+np.float64,0x3ff942d24fb285a4,0x3ff07a224c3ecfaf,1
+np.float64,0x3ff2e4a9f465c954,0x3fe2f71905399e8f,1
+np.float64,0x7fdfa1c7fa3f438f,0x40862e2b4e06f098,1
+np.float64,0x3ff49b59c26936b4,0x3fe7bc41c8c1e59d,1
+np.float64,0x3ff2102d3704205a,0x3fe014bf7e28924e,1
+np.float64,0x3ff88de3b8311bc8,0x3fefc4e3e0a15a89,1
+np.float64,0x7fea5ba25374b744,0x40863241519c9b66,1
+np.float64,0x3fffe5df637fcbbf,0x3ff5032488f570f9,1
+np.float64,0x7fe67cfefe6cf9fd,0x408630fc25333cb4,1
+np.float64,0x3ff090bf2b01217e,0x3fd0f6fcf1092b4a,1
+np.float64,0x7fecd75bc5f9aeb7,0x408632f9b6c2e013,1
+np.float64,0x7fe15df38c62bbe6,0x40862eeae5ac944b,1
+np.float64,0x3ff4757875a8eaf1,0x3fe75e0eafbe28ce,1
+np.float64,0x7fecca8a51b99514,0x408632f627c23923,1
+np.float64,0x3ff91ca529d2394a,0x3ff05abb327fd1ca,1
+np.float64,0x3ffb962993b72c53,0x3ff23ff831717579,1
+np.float64,0x3ffd548a2c7aa914,0x3ff36fac7f56d716,1
+np.float64,0x7fbafb5cb035f6b8,0x408621ce898a02fb,1
+np.float64,0x3ff1d86daca3b0db,0x3fde73536c29218c,1
+np.float64,0x7fa8d0f8f431a1f1,0x40861b97a03c3a18,1
+np.float64,0x3ff44f1067489e21,0x3fe6fcbd8144ab2a,1
+np.float64,0x7fec062b07380c55,0x408632bed9c6ce85,1
+np.float64,0x3ff7e11e0fcfc23c,0x3fee94ada7efaac4,1
+np.float64,0x7fe77505c1aeea0b,0x4086315287dda0ba,1
+np.float64,0x7fc465af2728cb5d,0x4086251d236107f7,1
+np.float64,0x3ffe811c4a7d0238,0x3ff42df7e8b6cf2d,1
+np.float64,0x7fe05a471260b48d,0x40862e6fa502738b,1
+np.float64,0x7fec32cd9778659a,0x408632cb8d98c5a3,1
+np.float64,0x7fd203a220a40743,0x408629aa43b010c0,1
+np.float64,0x7fed71f7d17ae3ef,0x4086332428207101,1
+np.float64,0x3ff3918999e72313,0x3fe4fe5e8991402f,1
+np.float64,0x3ff3ecae38c7d95c,0x3fe5fa787d887981,1
+np.float64,0x7fd65345b82ca68a,0x40862b61aed8c64e,1
+np.float64,0x3ff1efdd01c3dfba,0x3fdf2eae36139204,1
+np.float64,0x3ffba9344f375268,0x3ff24d7fdcfc313b,1
+np.float64,0x7fd0469b35208d35,0x408628da6ed24bdd,1
+np.float64,0x7fe525782daa4aef,0x4086307e240c8b30,1
+np.float64,0x3ff8e473d371c8e8,0x3ff02beebd4171c7,1
+np.float64,0x3ff59a43898b3487,0x3fea0dc0a6acea0a,1
+np.float64,0x7fef50c7263ea18d,0x408633a247d7cd42,1
+np.float64,0x7fe8b5a301f16b45,0x408631bd0e71c855,1
+np.float64,0x3ff209369de4126d,0x3fdff4264334446b,1
+np.float64,0x3ffbe2ff4437c5fe,0x3ff2763b356814c7,1
+np.float64,0x3ff55938156ab270,0x3fe97c70514f91bf,1
+np.float64,0x3fff5d8bf81ebb18,0x3ff4b333b230672a,1
+np.float64,0x3ff16a317bc2d463,0x3fdab84e7faa468f,1
+np.float64,0x3ff7e64f8dafcc9f,0x3fee9e0bd57e9566,1
+np.float64,0x7fef4dc065be9b80,0x408633a181e25abb,1
+np.float64,0x3ff64a24a62c9449,0x3feb849ced76437e,1
+np.float64,0x7fc3cb85ef27970b,0x408624dfc39c8f74,1
+np.float64,0x7fec2162a77842c4,0x408632c69b0d43b6,1
+np.float64,0x7feccee6dc399dcd,0x408632f75de98c46,1
+np.float64,0x7faff4f5f43fe9eb,0x40861d9d89be14c9,1
+np.float64,0x7fee82df60fd05be,0x4086336cfdeb7317,1
+np.float64,0x3ffe54588d9ca8b1,0x3ff41247eb2f75ca,1
+np.float64,0x3ffe5615b55cac2c,0x3ff4135c4eb11620,1
+np.float64,0x3ffdaf9a6a1b5f35,0x3ff3aa70e50d1692,1
+np.float64,0x3ff69c045f4d3809,0x3fec2b00734e2cde,1
+np.float64,0x7fd049239aa09246,0x408628dbad6dd995,1
+np.float64,0x3ff2acbe8465597d,0x3fe24138652195e1,1
+np.float64,0x3ffb288302365106,0x3ff1f0f86ca7e5d1,1
+np.float64,0x3fff6fe8d87edfd2,0x3ff4be136acf53c5,1
+np.float64,0x3ffc87c8bfb90f92,0x3ff2e7bbd65867cb,1
+np.float64,0x3ff173327ca2e665,0x3fdb0b945abb00d7,1
+np.float64,0x3ff9a5cf7a134b9f,0x3ff0ca2450f07c78,1
+np.float64,0x7faf782b043ef055,0x40861d7e0e9b35ef,1
+np.float64,0x3ffa0874975410e9,0x3ff117ee3dc8f5ba,1
+np.float64,0x7fc710fc7f2e21f8,0x40862618fed167fb,1
+np.float64,0x7feb73f4c876e7e9,0x40863294ae3ac1eb,1
+np.float64,0x8000000000000000,0xfff8000000000000,1
+np.float64,0x7fb46615c028cc2b,0x40861f91bade4dad,1
+np.float64,0x7fc26b064624d60c,0x4086244c1b76c938,1
+np.float64,0x3ff06ab9fa40d574,0x3fcd282fd971d1b4,1
+np.float64,0x3ff61da7410c3b4e,0x3feb28201031af02,1
+np.float64,0x3ffec7ba1b9d8f74,0x3ff459342511f952,1
+np.float64,0x7ff4000000000000,0x7ffc000000000000,1
+np.float64,0x7fe5d570422baae0,0x408630bfa75008c9,1
+np.float64,0x3ffa895832f512b0,0x3ff17ad41555dccb,1
+np.float64,0x7fd343ac21a68757,0x40862a33ad59947a,1
+np.float64,0x3ffc1eeb37383dd6,0x3ff29ff29e55a006,1
+np.float64,0x7fee3c5c507c78b8,0x4086335a6b768090,1
+np.float64,0x7fe96d774a32daee,0x408631f7b9937e36,1
+np.float64,0x7fb878362430f06b,0x40862106603497b6,1
+np.float64,0x7fec0a79c03814f3,0x408632c01479905e,1
+np.float64,0x3ffa2f143c145e28,0x3ff135e25d902e1a,1
+np.float64,0x3ff14ccff80299a0,0x3fd9a0cd3397b14c,1
+np.float64,0x3ff97980dcb2f302,0x3ff0a6942a8133ab,1
+np.float64,0x3ff872e2d1f0e5c6,0x3fef96526eb2f756,1
+np.float64,0x7fdf1c9b46be3936,0x40862e0957fee329,1
+np.float64,0x7fcab6525d356ca4,0x408627458791f029,1
+np.float64,0x3ff964e74a52c9ce,0x3ff095e8845d523c,1
+np.float64,0x3ffb3aa23c967544,0x3ff1fe282d897c13,1
+np.float64,0x7fdd8a36afbb146c,0x40862d9f2b05f61b,1
+np.float64,0x3ffea39f42fd473e,0x3ff4432a48176399,1
+np.float64,0x7fea614f68b4c29e,0x408632430a750385,1
+np.float64,0x7feeafb86abd5f70,0x40863378b79f70cf,1
+np.float64,0x3ff80bc94eb01792,0x3feee138e9d626bd,1
+np.float64,0x7fcaca74743594e8,0x4086274b8ce4d1e1,1
+np.float64,0x3ff8b14815316290,0x3ff000b3526c8321,1
+np.float64,0x7fc698eb5f2d31d6,0x408625eeec86cd2b,1
+np.float64,0x7fe15429a3e2a852,0x40862ee6621205b8,1
+np.float64,0x7fee37f81b7c6fef,0x4086335941ed80dd,1
+np.float64,0x3ff8097ab3f012f6,0x3feedd1bafc3196e,1
+np.float64,0x7fe7c889ceaf9113,0x4086316ed13f2394,1
+np.float64,0x7fceca94513d9528,0x4086286893a06824,1
+np.float64,0x3ff593a103cb2742,0x3fe9ff1af4f63cc9,1
+np.float64,0x7fee237d24bc46f9,0x40863353d4142c87,1
+np.float64,0x3ffbf71e4777ee3c,0x3ff2844c0ed9f4d9,1
+np.float64,0x3ff490c65c09218d,0x3fe7a2216d9f69fd,1
+np.float64,0x3fff5ceaf1feb9d6,0x3ff4b2d430a90110,1
+np.float64,0x3ff55baecceab75e,0x3fe98203980666c4,1
+np.float64,0x3ff511bc306a2378,0x3fe8d81ce7be7b50,1
+np.float64,0x3ff38f83dcc71f08,0x3fe4f89f130d5f87,1
+np.float64,0x3ff73a3676ee746d,0x3fed5f98a65107ee,1
+np.float64,0x7fc27e50c824fca1,0x408624547828bc49,1
+np.float64,0xfff0000000000000,0xfff8000000000000,1
+np.float64,0x3fff38959ebe712b,0x3ff49d362c7ba16a,1
+np.float64,0x3ffad6d23a75ada4,0x3ff1b4dda6394ed0,1
+np.float64,0x3ffe77c6c2dcef8e,0x3ff4283698835ecb,1
+np.float64,0x3fff5feb413ebfd6,0x3ff4b49bcbdb3aa9,1
+np.float64,0x3ff0d30aa161a615,0x3fd4751bcdd7d727,1
+np.float64,0x3ff51e07e00a3c10,0x3fe8f4bd1408d694,1
+np.float64,0x8010000000000000,0xfff8000000000000,1
+np.float64,0x7fd231d2fe2463a5,0x408629beaceafcba,1
+np.float64,0x3fff6b4aee1ed696,0x3ff4bb58544bf8eb,1
+np.float64,0x3ff91fcd2f323f9a,0x3ff05d56e33db6b3,1
+np.float64,0x3ff3b889ab477113,0x3fe56bdeab74cce5,1
+np.float64,0x3ff99bfe30d337fc,0x3ff0c24bbf265561,1
+np.float64,0x3ffbe9e5eaf7d3cc,0x3ff27b0fe60f827a,1
+np.float64,0x7fd65678e92cacf1,0x40862b62d44fe8b6,1
+np.float64,0x7fd9cc477233988e,0x40862c89c638ee48,1
+np.float64,0x3ffc123c72d82479,0x3ff297294d05cbc0,1
+np.float64,0x3ff58abad58b1576,0x3fe9eb65da2a867a,1
+np.float64,0x7fe534887b2a6910,0x40863083d4ec2877,1
+np.float64,0x7fe1d3dcb123a7b8,0x40862f208116c55e,1
+np.float64,0x7fd4d570dba9aae1,0x40862ad412c413cd,1
+np.float64,0x3fffce7d3fdf9cfa,0x3ff4f58f02451928,1
+np.float64,0x3ffa76901c74ed20,0x3ff16c9a5851539c,1
+np.float64,0x7fdd88ffa23b11fe,0x40862d9ed6c6f426,1
+np.float64,0x3ff09fdbb9e13fb7,0x3fd1d2ae4fcbf713,1
+np.float64,0x7fe64567772c8ace,0x408630e845dbc290,1
+np.float64,0x7fb1a849ba235092,0x40861e6a291535b2,1
+np.float64,0x3ffaddb105f5bb62,0x3ff1b9f68f4c419b,1
+np.float64,0x7fd2fc3d5025f87a,0x40862a15cbc1df75,1
+np.float64,0x7fdea7d872bd4fb0,0x40862deb190b2c50,1
+np.float64,0x7fd50ea97eaa1d52,0x40862ae9edc4c812,1
+np.float64,0x3fff659c245ecb38,0x3ff4b7fb18b31aea,1
+np.float64,0x3ff3f1fbb7c7e3f7,0x3fe608bd9d76268c,1
+np.float64,0x3ff76869d9aed0d4,0x3fedb6c23d3a317b,1
+np.float64,0x7fedd4efe93ba9df,0x4086333edeecaa43,1
+np.float64,0x3ff9a5bd4eb34b7a,0x3ff0ca15d02bc960,1
+np.float64,0x3ffd9359cc5b26b4,0x3ff39850cb1a6b6c,1
+np.float64,0x7fe912d0427225a0,0x408631db00e46272,1
+np.float64,0x3ffb3802fe567006,0x3ff1fc4093646465,1
+np.float64,0x3ff02cc38a205987,0x3fc2e8182802a07b,1
+np.float64,0x3ffda953dd1b52a8,0x3ff3a66c504cf207,1
+np.float64,0x7fe0a487e4a1490f,0x40862e93a6f20152,1
+np.float64,0x7fed265ed1fa4cbd,0x4086330f838ae431,1
+np.float64,0x7fd0000114200001,0x408628b76ec48b5c,1
+np.float64,0x3ff2c262786584c5,0x3fe288860d354b0f,1
+np.float64,0x8000000000000001,0xfff8000000000000,1
+np.float64,0x3ffdae9f075b5d3e,0x3ff3a9d006ae55c1,1
+np.float64,0x3ffb69c72156d38e,0x3ff22037cbb85e5b,1
+np.float64,0x7feeae255f7d5c4a,0x408633784e89bc05,1
+np.float64,0x7feb13927c362724,0x408632786630c55d,1
+np.float64,0x7fef49e072be93c0,0x408633a08451d476,1
+np.float64,0x3fff23d6337e47ac,0x3ff490ceb6e634ae,1
+np.float64,0x3ffba82cf8f7505a,0x3ff24cc51c73234d,1
+np.float64,0x7fe948719ef290e2,0x408631ec0b36476e,1
+np.float64,0x3ff41926c5e8324e,0x3fe670e14bbda8cd,1
+np.float64,0x3ff91f09c1523e14,0x3ff05cb5731878da,1
+np.float64,0x3ff6ae6afccd5cd6,0x3fec4fbeca764086,1
+np.float64,0x3ff927f7e0f24ff0,0x3ff06413eeb8eb1e,1
+np.float64,0x3ff19dd2b9e33ba5,0x3fdc882f97994600,1
+np.float64,0x7fe8e502c5b1ca05,0x408631cc56526fff,1
+np.float64,0x7feb49f70fb693ed,0x4086328868486fcd,1
+np.float64,0x3ffd942d535b285a,0x3ff398d8d89f52ca,1
+np.float64,0x7fc3b9c5c627738b,0x408624d893e692ca,1
+np.float64,0x7fea0780ff340f01,0x408632279fa46704,1
+np.float64,0x7fe4c90066a99200,0x4086305adb47a598,1
+np.float64,0x7fdb209113364121,0x40862cf0ab64fd7d,1
+np.float64,0x3ff38617e5470c30,0x3fe4ddc0413b524f,1
+np.float64,0x7fea1b5b803436b6,0x4086322db767f091,1
+np.float64,0x7fe2004898e40090,0x40862f3457795dc5,1
+np.float64,0x3ff3c4360ac7886c,0x3fe58c29843a4c75,1
+np.float64,0x3ff504bc168a0978,0x3fe8b9ada7f698e6,1
+np.float64,0x3ffd3e936fda7d27,0x3ff3615912c5b4ac,1
+np.float64,0x3ffbdc52fb97b8a6,0x3ff2718dae5f1f2b,1
+np.float64,0x3fffef6d84ffdedb,0x3ff508adbc8556cf,1
+np.float64,0x3ff23b65272476ca,0x3fe0b646ed2579eb,1
+np.float64,0x7fe4633068a8c660,0x408630334a4b7ff7,1
+np.float64,0x3ff769b754aed36f,0x3fedb932af0223f9,1
+np.float64,0x7fe7482d92ee905a,0x408631432de1b057,1
+np.float64,0x3ff5dd682aabbad0,0x3fea9fd5e506a86d,1
+np.float64,0x7fd68399a2ad0732,0x40862b72ed89805d,1
+np.float64,0x3ffad7acc3d5af5a,0x3ff1b57fe632c948,1
+np.float64,0x3ffc68e43698d1c8,0x3ff2d2be6f758761,1
+np.float64,0x3ff4e517fbc9ca30,0x3fe86eddf5e63a58,1
+np.float64,0x3ff34c63c56698c8,0x3fe435b74ccd6a13,1
+np.float64,0x7fea9456c17528ad,0x4086325275237015,1
+np.float64,0x7fee6573f2fccae7,0x4086336543760346,1
+np.float64,0x7fd5496fb9aa92de,0x40862b0023235667,1
+np.float64,0x7ff0000000000000,0x7ff0000000000000,1
+np.float64,0x3ffb70e31256e1c6,0x3ff22552f54b13e0,1
+np.float64,0x3ff66a33988cd467,0x3febc656da46a1ca,1
+np.float64,0x3fff0af2eb1e15e6,0x3ff481dec325f5c8,1
+np.float64,0x3ff6a0233d0d4046,0x3fec33400958eda1,1
+np.float64,0x7fdb11e2d5b623c5,0x40862cec55e405f9,1
+np.float64,0x3ffb8a015ad71402,0x3ff2374d7b563a72,1
+np.float64,0x3ff1807d8ce300fb,0x3fdb849e4bce8335,1
+np.float64,0x3ffefd535e3dfaa6,0x3ff479aaac6ffe79,1
+np.float64,0x3ff701e23a6e03c4,0x3fecf39072d96fc7,1
+np.float64,0x3ff4ac809f895901,0x3fe7e6598f2335a5,1
+np.float64,0x3ff0309f26a0613e,0x3fc3b3f4b2783690,1
+np.float64,0x3ff241dd0ce483ba,0x3fe0cde2cb639144,1
+np.float64,0x3ffabce63fb579cc,0x3ff1a18fe2a2da59,1
+np.float64,0x3ffd84b967db0973,0x3ff38ee4f240645d,1
+np.float64,0x7fc3f88b9a27f116,0x408624f1e10cdf3f,1
+np.float64,0x7fe1d5fd5923abfa,0x40862f2175714a3a,1
+np.float64,0x7fe487b145690f62,0x4086304190700183,1
+np.float64,0x7fe7997feaef32ff,0x4086315eeefdddd2,1
+np.float64,0x3ff8f853b671f0a8,0x3ff03c907353a8da,1
+np.float64,0x7fca4c23b5349846,0x408627257ace5778,1
+np.float64,0x7fe0c9bf3a21937d,0x40862ea576c3ea43,1
+np.float64,0x7fc442b389288566,0x4086250f5f126ec9,1
+np.float64,0x7fc6d382ed2da705,0x40862603900431b0,1
+np.float64,0x7fe40b069068160c,0x4086301066468124,1
+np.float64,0x3ff7f62a146fec54,0x3feeba8dfc4363fe,1
+np.float64,0x3ff721e8e94e43d2,0x3fed313a6755d34f,1
+np.float64,0x7fe579feaf2af3fc,0x4086309ddefb6112,1
+np.float64,0x3ffe2c6bde5c58d8,0x3ff3f9665dc9a16e,1
+np.float64,0x7fcf9998ed3f3331,0x4086289dab274788,1
+np.float64,0x7fdb03af2236075d,0x40862ce82252e490,1
+np.float64,0x7fe72799392e4f31,0x40863137f428ee71,1
+np.float64,0x7f9f2190603e4320,0x408617dc5b3b3c3c,1
+np.float64,0x3ff69c56d52d38ae,0x3fec2ba59fe938b2,1
+np.float64,0x7fdcde27bf39bc4e,0x40862d70086cd06d,1
+np.float64,0x3ff654d6b8eca9ae,0x3feb9aa0107609a6,1
+np.float64,0x7fdf69d967bed3b2,0x40862e1d1c2b94c2,1
+np.float64,0xffefffffffffffff,0xfff8000000000000,1
+np.float64,0x7fedfd073f3bfa0d,0x40863349980c2c8b,1
+np.float64,0x7f7c1856803830ac,0x40860bf312b458c7,1
+np.float64,0x7fe9553f1bb2aa7d,0x408631f0173eadd5,1
+np.float64,0x3ff6e92efc2dd25e,0x3fecc38f98e7e1a7,1
+np.float64,0x7fe9719ac532e335,0x408631f906cd79c3,1
+np.float64,0x3ff60e56ae4c1cad,0x3feb07ef8637ec7e,1
+np.float64,0x3ff0d0803501a100,0x3fd455c0af195a9c,1
+np.float64,0x7fe75248a3eea490,0x40863146a614aec1,1
+np.float64,0x7fdff61ead3fec3c,0x40862e408643d7aa,1
+np.float64,0x7fed4ac7a4fa958e,0x408633197b5cf6ea,1
+np.float64,0x7fe58d44562b1a88,0x408630a5098d1bbc,1
+np.float64,0x7fd89dcdb1b13b9a,0x40862c29c2979288,1
+np.float64,0x3ff205deda240bbe,0x3fdfda67c84fd3a8,1
+np.float64,0x7fdf84c15abf0982,0x40862e23f361923d,1
+np.float64,0x3ffe012b3afc0256,0x3ff3de3dfa5f47ce,1
+np.float64,0x3ffe2f3512dc5e6a,0x3ff3fb245206398e,1
+np.float64,0x7fed6174c2bac2e9,0x4086331faa699617,1
+np.float64,0x3ff1f30f8783e61f,0x3fdf47e06f2c40d1,1
+np.float64,0x3ff590da9eab21b5,0x3fe9f8f7b4baf3c2,1
+np.float64,0x3ffb3ca1eb967944,0x3ff1ff9baf66d704,1
+np.float64,0x7fe50ba9a5aa1752,0x408630745ab7fd3c,1
+np.float64,0x3ff43743a4a86e87,0x3fe6bf7ae80b1dda,1
+np.float64,0x3ff47e1a24e8fc34,0x3fe773acca44c7d6,1
+np.float64,0x3ff589ede9eb13dc,0x3fe9e99f28fab3a4,1
+np.float64,0x3ff72f2cbf8e5e5a,0x3fed4a94e7edbf24,1
+np.float64,0x3ffa4f9bbc549f38,0x3ff14ee60aea45d3,1
+np.float64,0x3ff975dae732ebb6,0x3ff0a3a1fbd7284a,1
+np.float64,0x7fbcf14ee039e29d,0x4086225e33f3793e,1
+np.float64,0x3ff10e027f621c05,0x3fd71cce2452b4e0,1
+np.float64,0x3ff33ea193067d43,0x3fe40cbac4daaddc,1
+np.float64,0x7fbef8f2263df1e3,0x408622e905c8e1b4,1
+np.float64,0x3fff7f5bfe3efeb8,0x3ff4c732e83df253,1
+np.float64,0x3ff5700a6b4ae015,0x3fe9afdd7b8b82b0,1
+np.float64,0x3ffd5099da5aa134,0x3ff36d1bf26e55bf,1
+np.float64,0x3ffed8e0f89db1c2,0x3ff4639ff065107a,1
+np.float64,0x3fff9d0c463f3a18,0x3ff4d8a9f297cf52,1
+np.float64,0x3ff23db5b2e47b6b,0x3fe0bebdd48f961a,1
+np.float64,0x3ff042bff1e08580,0x3fc713bf24cc60ef,1
+np.float64,0x7feb4fe97a769fd2,0x4086328a26675646,1
+np.float64,0x3ffeafbfeedd5f80,0x3ff44a955a553b1c,1
+np.float64,0x3ff83fb524507f6a,0x3fef3d1729ae0976,1
+np.float64,0x3ff1992294433245,0x3fdc5f5ce53dd197,1
+np.float64,0x7fe89fe629b13fcb,0x408631b601a83867,1
+np.float64,0x7fe53e4d74aa7c9a,0x40863087839b52f1,1
+np.float64,0x3ff113713e6226e2,0x3fd757631ca7cd09,1
+np.float64,0x7fd4a0b7a629416e,0x40862abfba27a09b,1
+np.float64,0x3ff184c6e2a3098e,0x3fdbab2e3966ae57,1
+np.float64,0x3ffafbbf77f5f77f,0x3ff1d02bb331d9f9,1
+np.float64,0x3ffc6099a358c134,0x3ff2cd16941613d1,1
+np.float64,0x3ffb7c441ef6f888,0x3ff22d7b12e31432,1
+np.float64,0x3ff625ba5eec4b75,0x3feb39060e55fb79,1
+np.float64,0x7fde879acbbd0f35,0x40862de2aab4d72d,1
+np.float64,0x7f930aed982615da,0x408613edb6df8528,1
+np.float64,0x7fa4b82dac29705a,0x40861a261c0a9aae,1
+np.float64,0x7fced5c16b3dab82,0x4086286b7a73e611,1
+np.float64,0x7fe133749d2266e8,0x40862ed73a41b112,1
+np.float64,0x3ff2d8146ea5b029,0x3fe2ced55dbf997d,1
+np.float64,0x3ff60dac77ac1b59,0x3feb0688b0e54c7b,1
+np.float64,0x3ff275d9b024ebb3,0x3fe186b87258b834,1
+np.float64,0x3ff533e6500a67cd,0x3fe92746c8b50ddd,1
+np.float64,0x7fe370896666e112,0x40862fd1ca144736,1
+np.float64,0x7fee7695357ced29,0x40863369c459420e,1
+np.float64,0x7fd1e0528023c0a4,0x4086299a85caffd0,1
+np.float64,0x7fd05c7b24a0b8f5,0x408628e52824386f,1
+np.float64,0x3ff11dcc3b023b98,0x3fd7c56c8cef1be1,1
+np.float64,0x7fc9d9fae933b3f5,0x408627027404bc5f,1
+np.float64,0x7fe2359981246b32,0x40862f4be675e90d,1
+np.float64,0x3ffb10a949962152,0x3ff1df88f83b8cde,1
+np.float64,0x3ffa65b53654cb6a,0x3ff15fc8956ccc87,1
+np.float64,0x3ff0000000000000,0x0,1
+np.float64,0x7fad97ef703b2fde,0x40861d002f3d02da,1
+np.float64,0x3ff57aaf93aaf55f,0x3fe9c7b01f194edb,1
+np.float64,0x7fe9ecd73f33d9ad,0x4086321f69917205,1
+np.float64,0x3ff0dcb79c61b96f,0x3fd4eac86a7a9c38,1
+np.float64,0x7fee9c12ffbd3825,0x4086337396cd706d,1
+np.float64,0x3ff52c40af4a5881,0x3fe915a8a7de8f00,1
+np.float64,0x3ffbcfff59779ffe,0x3ff268e523fe8dda,1
+np.float64,0x7fe014cb4b602996,0x40862e4d5de42a03,1
+np.float64,0x7fae2370e83c46e1,0x40861d258dd5b3ee,1
+np.float64,0x7fe9e33602f3c66b,0x4086321c704ac2bb,1
+np.float64,0x3ff648acd74c915a,0x3feb8195ca53bcaa,1
+np.float64,0x7fe385f507670be9,0x40862fda95ebaf44,1
+np.float64,0x3ffb0e382c361c70,0x3ff1ddbea963e0a7,1
+np.float64,0x3ff47d6b6ae8fad7,0x3fe771f80ad37cd2,1
+np.float64,0x3ffca7d538f94faa,0x3ff2fd5f62e851ac,1
+np.float64,0x3ff83e949c107d29,0x3fef3b1c5bbac99b,1
+np.float64,0x7fc6fb933a2df725,0x408626118e51a286,1
+np.float64,0x7fe43a1454e87428,0x4086302318512d9b,1
+np.float64,0x7fe51fe32aaa3fc5,0x4086307c07271348,1
+np.float64,0x3ff35e563966bcac,0x3fe46aa2856ef85f,1
+np.float64,0x3ff84dd4e4909baa,0x3fef55d86d1d5c2e,1
+np.float64,0x7febe3d84077c7b0,0x408632b507686f03,1
+np.float64,0x3ff6aca2e32d5946,0x3fec4c32a2368ee3,1
+np.float64,0x7fe7070e3e6e0e1b,0x4086312caddb0454,1
+np.float64,0x7fd3657f2aa6cafd,0x40862a41acf47e70,1
+np.float64,0x3ff61534456c2a68,0x3feb1663900af13b,1
+np.float64,0x3ff8bc556eb178ab,0x3ff00a16b5403f88,1
+np.float64,0x3ffa7782e3f4ef06,0x3ff16d529c94a438,1
+np.float64,0x7fc15785ed22af0b,0x408623d0cd94fb86,1
+np.float64,0x3ff2e3eeb6e5c7dd,0x3fe2f4c4876d3edf,1
+np.float64,0x3ff2e4e17e85c9c3,0x3fe2f7c9e437b22e,1
+np.float64,0x7feb3aaf67f6755e,0x40863283ec4a0d76,1
+np.float64,0x7fe89efcf7313df9,0x408631b5b5e41263,1
+np.float64,0x3ffcc6fad4f98df6,0x3ff31245778dff6d,1
+np.float64,0x3ff356114466ac22,0x3fe45253d040a024,1
+np.float64,0x3ff81c70d2d038e2,0x3feefed71ebac776,1
+np.float64,0x7fdb75c96136eb92,0x40862d09a603f03e,1
+np.float64,0x3ff340f91b8681f2,0x3fe413bb6e6d4a54,1
+np.float64,0x3fff906079df20c1,0x3ff4d13869d16bc7,1
+np.float64,0x3ff226a42d644d48,0x3fe0698d316f1ac0,1
+np.float64,0x3ff948abc3b29158,0x3ff07eeb0b3c81ba,1
+np.float64,0x3ffc25df1fb84bbe,0x3ff2a4c13ad4edad,1
+np.float64,0x7fe07ea3b960fd46,0x40862e815b4cf43d,1
+np.float64,0x3ff497d3dae92fa8,0x3fe7b3917bf10311,1
+np.float64,0x7fea561db1f4ac3a,0x4086323fa4aef2a9,1
+np.float64,0x7fd1b49051236920,0x40862986d8759ce5,1
+np.float64,0x7f7ba3bd6037477a,0x40860bd19997fd90,1
+np.float64,0x3ff01126dd00224e,0x3fb76b67938dfb11,1
+np.float64,0x3ff29e1105053c22,0x3fe2102a4c5fa102,1
+np.float64,0x3ff9de2a6553bc55,0x3ff0f6cfe4dea30e,1
+np.float64,0x7fc558e7d42ab1cf,0x4086257a608fc055,1
+np.float64,0x3ff79830a74f3061,0x3fee0f93db153d65,1
+np.float64,0x7fe2661648e4cc2c,0x40862f6117a71eb2,1
+np.float64,0x3ff140cf4262819e,0x3fd92aefedae1ab4,1
+np.float64,0x3ff5f36251abe6c5,0x3feaced481ceaee3,1
+np.float64,0x7fc80911d5301223,0x4086266d4757f768,1
+np.float64,0x3ff9079a6c320f35,0x3ff04949d21ebe1e,1
+np.float64,0x3ffde8d2e09bd1a6,0x3ff3cedca8a5db5d,1
+np.float64,0x3ffadd1de375ba3c,0x3ff1b989790e8d93,1
+np.float64,0x3ffdbc40ee1b7882,0x3ff3b286b1c7da57,1
+np.float64,0x3ff8ff514771fea2,0x3ff04264add00971,1
+np.float64,0x7fefd7d0e63fafa1,0x408633c47d9f7ae4,1
+np.float64,0x3ffc47798c588ef3,0x3ff2bbe441fa783a,1
+np.float64,0x7fe6ebc55b6dd78a,0x408631232d9abf31,1
+np.float64,0xbff0000000000000,0xfff8000000000000,1
+np.float64,0x7fd378e4afa6f1c8,0x40862a49a8f98cb4,1
+np.float64,0x0,0xfff8000000000000,1
+np.float64,0x3ffe88ed7efd11db,0x3ff432c7ecb95492,1
+np.float64,0x3ff4f5509289eaa1,0x3fe8955a11656323,1
+np.float64,0x7fda255b41344ab6,0x40862ca53676a23e,1
+np.float64,0x3ffebe85b9bd7d0c,0x3ff453992cd55dea,1
+np.float64,0x3ff5d6180b8bac30,0x3fea901c2160c3bc,1
+np.float64,0x3ffcdfb8fcf9bf72,0x3ff322c83b3bc735,1
+np.float64,0x3ff3c91c26679238,0x3fe599a652b7cf59,1
+np.float64,0x7fc389f7a62713ee,0x408624c518edef93,1
+np.float64,0x3ffe1245ba1c248c,0x3ff3e901b2c4a47a,1
+np.float64,0x7fe1e76e95e3cedc,0x40862f29446f9eff,1
+np.float64,0x3ff02ae4f92055ca,0x3fc28221abd63daa,1
+np.float64,0x7fbf648a143ec913,0x40862304a0619d03,1
+np.float64,0x3ff2be7ef8657cfe,0x3fe27bcc6c97522e,1
+np.float64,0x3ffa7595e514eb2c,0x3ff16bdc64249ad1,1
+np.float64,0x3ff4ee130049dc26,0x3fe884354cbad8c9,1
+np.float64,0x3ff19211fc232424,0x3fdc2160bf3eae40,1
+np.float64,0x3ffec215aedd842c,0x3ff455c4cdd50c32,1
+np.float64,0x7fe7cb50ffaf96a1,0x4086316fc06a53af,1
+np.float64,0x3fffa679161f4cf2,0x3ff4de30ba7ac5b8,1
+np.float64,0x7fdcb459763968b2,0x40862d646a21011d,1
+np.float64,0x3ff9f338d6d3e672,0x3ff1075835d8f64e,1
+np.float64,0x3ff8de3319d1bc66,0x3ff026ae858c0458,1
+np.float64,0x7fee0199d33c0333,0x4086334ad03ac683,1
+np.float64,0x3ffc06076c380c0f,0x3ff28eaec3814faa,1
+np.float64,0x3ffe9e2e235d3c5c,0x3ff43fd4d2191a7f,1
+np.float64,0x3ffd93b06adb2761,0x3ff398888239cde8,1
+np.float64,0x7fefe4b71cffc96d,0x408633c7ba971b92,1
+np.float64,0x7fb2940352252806,0x40861ed244bcfed6,1
+np.float64,0x3ffba4647e3748c9,0x3ff24a15f02e11b9,1
+np.float64,0x7fd2d9543725b2a7,0x40862a0708446596,1
+np.float64,0x7fc04997f120932f,0x4086235055d35251,1
+np.float64,0x3ff6d14313ada286,0x3fec94b177f5d3fc,1
+np.float64,0x3ff279fc8684f3f9,0x3fe19511c3e5b9a8,1
+np.float64,0x3ff42f4609085e8c,0x3fe6aabe526ce2bc,1
+np.float64,0x7fc1c6c62a238d8b,0x408624037de7f6ec,1
+np.float64,0x7fe31ff4b8e63fe8,0x40862fb05b40fd16,1
+np.float64,0x7fd2a8825fa55104,0x408629f234d460d6,1
+np.float64,0x3ffe8c1d725d183b,0x3ff434bdc444143f,1
+np.float64,0x3ff0e9dc3e21d3b8,0x3fd58676e2c13fc9,1
+np.float64,0x3ffed03172fda063,0x3ff45e59f7aa6c8b,1
+np.float64,0x7fd74621962e8c42,0x40862bb6e90d66f8,1
+np.float64,0x3ff1faa29663f545,0x3fdf833a2c5efde1,1
+np.float64,0x7fda02834db40506,0x40862c9a860d6747,1
+np.float64,0x7f709b2fc021365f,0x408607be328eb3eb,1
+np.float64,0x7fec0d58aa381ab0,0x408632c0e61a1af6,1
+np.float64,0x3ff524d1720a49a3,0x3fe90479968d40fd,1
+np.float64,0x7fd64cb3b32c9966,0x40862b5f53c4b0b4,1
+np.float64,0x3ff9593e3ed2b27c,0x3ff08c6eea5f6e8b,1
+np.float64,0x3ff7de8b1f6fbd16,0x3fee9007abcfdf7b,1
+np.float64,0x7fe8d816d6b1b02d,0x408631c82e38a894,1
+np.float64,0x7fd726bbe22e4d77,0x40862bac16ee8d52,1
+np.float64,0x7fa70b07d42e160f,0x40861affcc4265e2,1
+np.float64,0x7fe18b4091e31680,0x40862effa8bce66f,1
+np.float64,0x3ff830253010604a,0x3fef21b2eaa75758,1
+np.float64,0x3fffcade407f95bc,0x3ff4f3734b24c419,1
+np.float64,0x3ff8c17cecb182fa,0x3ff00e75152d7bda,1
+np.float64,0x7fdad9b9d035b373,0x40862cdbabb793ba,1
+np.float64,0x3ff9f9e154f3f3c2,0x3ff10c8dfdbd2510,1
+np.float64,0x3ff465e162e8cbc3,0x3fe736c751c75b73,1
+np.float64,0x3ff9b4cd8493699b,0x3ff0d616235544b8,1
+np.float64,0x7fe557c4a56aaf88,0x4086309114ed12d9,1
+np.float64,0x7fe5999133eb3321,0x408630a9991a9b54,1
+np.float64,0x7fe7c9009e2f9200,0x4086316ef9359a47,1
+np.float64,0x3ff8545cabd0a8ba,0x3fef6141f1030c36,1
+np.float64,0x3ffa1f1712943e2e,0x3ff129849d492ce3,1
+np.float64,0x7fea803a14750073,0x4086324c652c276c,1
+np.float64,0x3ff5b6f97fcb6df3,0x3fea4cb0b97b18e9,1
+np.float64,0x7fc2efdfc425dfbf,0x40862485036a5c6e,1
+np.float64,0x7fe2c78e5be58f1c,0x40862f8b0a5e7baf,1
+np.float64,0x7fe80d7fff301aff,0x40863185e234060a,1
+np.float64,0x3ffd895d457b12ba,0x3ff391e2cac7a3f8,1
+np.float64,0x3ff44c9764a8992f,0x3fe6f6690396c232,1
+np.float64,0x3ff731688b8e62d1,0x3fed4ed70fac3839,1
+np.float64,0x3ff060200460c040,0x3fcbad4a07d97f0e,1
+np.float64,0x3ffbd2f70a17a5ee,0x3ff26afb46ade929,1
+np.float64,0x7febe9e841f7d3d0,0x408632b6c465ddd9,1
+np.float64,0x3ff2532f8be4a65f,0x3fe10c6cd8d64cf4,1
+np.float64,0x7fefffffffffffff,0x408633ce8fb9f87e,1
+np.float64,0x3ff3a1ae3a47435c,0x3fe52c00210cc459,1
+np.float64,0x7fe9c34ae6b38695,0x408632128d150149,1
+np.float64,0x3fff311029fe6220,0x3ff498b852f30bff,1
+np.float64,0x3ffd4485a1ba890c,0x3ff3653b6fa701cd,1
+np.float64,0x7fd52718b1aa4e30,0x40862af330d9c68c,1
+np.float64,0x3ff10b695a4216d3,0x3fd7009294e367b7,1
+np.float64,0x3ffdf73de59bee7c,0x3ff3d7fa96d2c1ae,1
+np.float64,0x3ff2f1c75965e38f,0x3fe320aaff3db882,1
+np.float64,0x3ff2a56a5a854ad5,0x3fe228cc4ad7e7a5,1
+np.float64,0x7fe60cd1cf6c19a3,0x408630d3d87a04b3,1
+np.float64,0x3ff89fa65c113f4c,0x3fefe3543773180c,1
+np.float64,0x3ffd253130ba4a62,0x3ff350b76ba692a0,1
+np.float64,0x7feaad7051f55ae0,0x40863259ff932d62,1
+np.float64,0x7fd9cc37cf33986f,0x40862c89c15f963b,1
+np.float64,0x3ff8c08de771811c,0x3ff00daa9c17acd7,1
+np.float64,0x7fea58b25d34b164,0x408632406d54cc6f,1
+np.float64,0x7fe5f161fd2be2c3,0x408630c9ddf272a5,1
+np.float64,0x3ff5840dbf8b081c,0x3fe9dc9117b4cbc7,1
+np.float64,0x3ff3fd762307faec,0x3fe6277cd530c640,1
+np.float64,0x3ff9095c98b212b9,0x3ff04abff170ac24,1
+np.float64,0x7feaac66017558cb,0x40863259afb4f8ce,1
+np.float64,0x7fd78f96bcaf1f2c,0x40862bd00175fdf9,1
+np.float64,0x3ffaca27e0959450,0x3ff1ab72b8f8633e,1
+np.float64,0x3ffb7f18cb96fe32,0x3ff22f81bcb8907b,1
+np.float64,0x3ffcce48d1199c92,0x3ff317276f62c0b2,1
+np.float64,0x3ffcb9a7f3797350,0x3ff30958e0d6a34d,1
+np.float64,0x7fda569ef6b4ad3d,0x40862cb43b33275a,1
+np.float64,0x7fde9f0893bd3e10,0x40862de8cc036283,1
+np.float64,0x3ff428be3928517c,0x3fe699bb5ab58904,1
+np.float64,0x7fa4d3344029a668,0x40861a3084989291,1
+np.float64,0x3ff03607bd006c0f,0x3fc4c4840cf35f48,1
+np.float64,0x3ff2b1335c056267,0x3fe25000846b75a2,1
+np.float64,0x7fe0cb8bd8e19717,0x40862ea65237d496,1
+np.float64,0x3fff4b1b7b9e9637,0x3ff4a83fb08e7b24,1
+np.float64,0x7fe7526140aea4c2,0x40863146ae86069c,1
+np.float64,0x7fbfcfb7c23f9f6f,0x4086231fc246ede5,1
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/data/umath-validation-set-arcsin.csv b/python/user_packages/Python313/site-packages/numpy/_core/tests/data/umath-validation-set-arcsin.csv
new file mode 100644
index 0000000000000000000000000000000000000000..bdbb1efcae43e9633576e4b53f5f865814f5922b
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/tests/data/umath-validation-set-arcsin.csv
@@ -0,0 +1,1429 @@
+dtype,input,output,ulperrortol
+np.float32,0xbe7d3a7c,0xbe7fe217,4
+np.float32,0x3dc102f0,0x3dc14c60,4
+np.float32,0xbe119c28,0xbe121aef,4
+np.float32,0xbe51cd68,0xbe534c75,4
+np.float32,0x3c04a300,0x3c04a35f,4
+np.float32,0xbf4f0b62,0xbf712a69,4
+np.float32,0x3ef61a5c,0x3f005cf6,4
+np.float32,0xbf13024c,0xbf1c97df,4
+np.float32,0x3e93b580,0x3e95d6b5,4
+np.float32,0x3e44e7b8,0x3e4623a5,4
+np.float32,0xbe35df20,0xbe36d773,4
+np.float32,0x3eecd2c0,0x3ef633cf,4
+np.float32,0x3f2772ba,0x3f36862a,4
+np.float32,0x3e211ea8,0x3e21cac5,4
+np.float32,0x3e3b3d90,0x3e3c4cc6,4
+np.float32,0x3f37c962,0x3f4d018c,4
+np.float32,0x3e92ad88,0x3e94c31a,4
+np.float32,0x3f356ffc,0x3f49a766,4
+np.float32,0x3f487ba2,0x3f665254,4
+np.float32,0x3f061c46,0x3f0d27ae,4
+np.float32,0xbee340a2,0xbeeb7722,4
+np.float32,0xbe85aede,0xbe874026,4
+np.float32,0x3f34cf9a,0x3f48c474,4
+np.float32,0x3e29a690,0x3e2a6fbd,4
+np.float32,0xbeb29428,0xbeb669d1,4
+np.float32,0xbe606d40,0xbe624370,4
+np.float32,0x3dae6860,0x3dae9e85,4
+np.float32,0xbf04872b,0xbf0b4d25,4
+np.float32,0x3f2080e2,0x3f2d7ab0,4
+np.float32,0xbec77dcc,0xbecceb27,4
+np.float32,0x3e0dda10,0x3e0e4f38,4
+np.float32,0xbefaf970,0xbf03262c,4
+np.float32,0x3f576a0c,0x3f7ffee6,4
+np.float32,0x3f222382,0x3f2f95d6,4
+np.float32,0x7fc00000,0x7fc00000,4
+np.float32,0x3e41c468,0x3e42f14e,4
+np.float32,0xbf2f64dd,0xbf4139a8,4
+np.float32,0xbf60ef90,0xbf895956,4
+np.float32,0xbf67c855,0xbf90eff0,4
+np.float32,0xbed35aee,0xbed9df00,4
+np.float32,0xbf2c7d92,0xbf3d448f,4
+np.float32,0x3f7b1604,0x3faff122,4
+np.float32,0xbf7c758b,0xbfb3bf87,4
+np.float32,0x3ecda1c8,0x3ed39acf,4
+np.float32,0x3f3af8ae,0x3f519fcb,4
+np.float32,0xbf16e6a3,0xbf2160fd,4
+np.float32,0x3f0c97d2,0x3f14d668,4
+np.float32,0x3f0a8060,0x3f1257b9,4
+np.float32,0x3f27905a,0x3f36ad57,4
+np.float32,0x3eeaeba4,0x3ef40efe,4
+np.float32,0x3e58dde0,0x3e5a8580,4
+np.float32,0xbf0cabe2,0xbf14ee6b,4
+np.float32,0xbe805ca8,0xbe81bf03,4
+np.float32,0x3f5462ba,0x3f7a7b85,4
+np.float32,0xbee235d0,0xbeea4d8b,4
+np.float32,0xbe880cb0,0xbe89b426,4
+np.float32,0x80000001,0x80000001,4
+np.float32,0x3f208c00,0x3f2d88f6,4
+np.float32,0xbf34f3d2,0xbf48f7a2,4
+np.float32,0x3f629428,0x3f8b1763,4
+np.float32,0xbf52a900,0xbf776b4a,4
+np.float32,0xbd17f8d0,0xbd1801be,4
+np.float32,0xbef7cada,0xbf0153d1,4
+np.float32,0x3f7d3b90,0x3fb63967,4
+np.float32,0xbd6a20b0,0xbd6a4160,4
+np.float32,0x3f740496,0x3fa1beb7,4
+np.float32,0x3ed8762c,0x3edf7dd9,4
+np.float32,0x3f53b066,0x3f793d42,4
+np.float32,0xbe9de718,0xbea084f9,4
+np.float32,0x3ea3ae90,0x3ea69b4b,4
+np.float32,0x3f1b8f00,0x3f273183,4
+np.float32,0x3f5cd6ac,0x3f852ead,4
+np.float32,0x3f29d510,0x3f39b169,4
+np.float32,0x3ee2a934,0x3eeace33,4
+np.float32,0x3eecac94,0x3ef608c2,4
+np.float32,0xbea915e2,0xbeac5203,4
+np.float32,0xbd316e90,0xbd317cc8,4
+np.float32,0xbf70b495,0xbf9c97b6,4
+np.float32,0xbe80d976,0xbe823ff3,4
+np.float32,0x3e9205f8,0x3e94143f,4
+np.float32,0x3f49247e,0x3f676296,4
+np.float32,0x3d9030c0,0x3d904f50,4
+np.float32,0x3e4df058,0x3e4f5a5c,4
+np.float32,0xbe1fd360,0xbe207b58,4
+np.float32,0xbf69dc7c,0xbf937006,4
+np.float32,0x3f36babe,0x3f4b7df3,4
+np.float32,0xbe8c9758,0xbe8e6bb7,4
+np.float32,0xbf4de72d,0xbf6f3c20,4
+np.float32,0xbecdad68,0xbed3a780,4
+np.float32,0xbf73e2cf,0xbfa18702,4
+np.float32,0xbece16a8,0xbed41a75,4
+np.float32,0x3f618a96,0x3f89fc6d,4
+np.float32,0xbf325853,0xbf454ea9,4
+np.float32,0x3f138568,0x3f1d3828,4
+np.float32,0xbf56a6e9,0xbf7e9748,4
+np.float32,0x3ef5d594,0x3f0035bf,4
+np.float32,0xbf408220,0xbf59dfaa,4
+np.float32,0xbed120e6,0xbed76dd5,4
+np.float32,0xbf6dbda5,0xbf986cee,4
+np.float32,0x3f744a38,0x3fa23282,4
+np.float32,0xbe4b56d8,0xbe4cb329,4
+np.float32,0x3f54c5f2,0x3f7b2d97,4
+np.float32,0xbd8b1c90,0xbd8b3801,4
+np.float32,0x3ee19a48,0x3ee9a03b,4
+np.float32,0x3f48460e,0x3f65fc3d,4
+np.float32,0x3eb541c0,0x3eb9461e,4
+np.float32,0xbea7d098,0xbeaaf98c,4
+np.float32,0xbda99e40,0xbda9d00c,4
+np.float32,0xbefb2ca6,0xbf03438d,4
+np.float32,0x3f4256be,0x3f5cab0b,4
+np.float32,0xbdbdb198,0xbdbdf74d,4
+np.float32,0xbf325b5f,0xbf4552e9,4
+np.float32,0xbf704d1a,0xbf9c00b4,4
+np.float32,0x3ebb1d04,0x3ebf8cf8,4
+np.float32,0xbed03566,0xbed66bf1,4
+np.float32,0x3e8fcee8,0x3e91c501,4
+np.float32,0xbf2e1eec,0xbf3f7b9d,4
+np.float32,0x3f33c4d2,0x3f474cac,4
+np.float32,0x3f598ef4,0x3f8201b4,4
+np.float32,0x3e09bb30,0x3e0a2660,4
+np.float32,0x3ed4e228,0x3edb8cdb,4
+np.float32,0x3eb7a190,0x3ebbd0a1,4
+np.float32,0xbd9ae630,0xbd9b0c18,4
+np.float32,0x3f43020e,0x3f5db2d7,4
+np.float32,0xbec06ac0,0xbec542d4,4
+np.float32,0x3f3dfde0,0x3f561674,4
+np.float32,0xbf64084a,0xbf8cabe6,4
+np.float32,0xbd6f95b0,0xbd6fb8b7,4
+np.float32,0x3f268640,0x3f354e2d,4
+np.float32,0xbe72b4bc,0xbe7509b2,4
+np.float32,0xbf3414fa,0xbf47bd5a,4
+np.float32,0xbf375218,0xbf4c566b,4
+np.float32,0x3f203c1a,0x3f2d2273,4
+np.float32,0xbd503530,0xbd504c2b,4
+np.float32,0xbc45e540,0xbc45e67b,4
+np.float32,0xbf175c4f,0xbf21f2c6,4
+np.float32,0x3f7432a6,0x3fa20b2b,4
+np.float32,0xbf43367f,0xbf5e03d8,4
+np.float32,0x3eb3997c,0x3eb780c4,4
+np.float32,0x3e5574c8,0x3e570878,4
+np.float32,0xbf04b57b,0xbf0b8349,4
+np.float32,0x3f6216d8,0x3f8a914b,4
+np.float32,0xbf57a237,0xbf80337d,4
+np.float32,0xbee1403a,0xbee93bee,4
+np.float32,0xbeaf9b9a,0xbeb33f3b,4
+np.float32,0xbf109374,0xbf19a223,4
+np.float32,0xbeae6824,0xbeb1f810,4
+np.float32,0xbcff9320,0xbcff9dbe,4
+np.float32,0x3ed205c0,0x3ed868a9,4
+np.float32,0x3d897c30,0x3d8996ad,4
+np.float32,0xbf2899d2,0xbf380d4c,4
+np.float32,0xbf54cb0b,0xbf7b36c2,4
+np.float32,0x3ea8e8ec,0x3eac2262,4
+np.float32,0x3ef5e1a0,0x3f003c9d,4
+np.float32,0xbf00c81e,0xbf06f1e2,4
+np.float32,0xbf346775,0xbf483181,4
+np.float32,0x3f7a4fe4,0x3fae077c,4
+np.float32,0x3f00776e,0x3f06948f,4
+np.float32,0xbe0a3078,0xbe0a9cbc,4
+np.float32,0xbeba0b06,0xbebe66be,4
+np.float32,0xbdff4e38,0xbdfff8b2,4
+np.float32,0xbe927f70,0xbe9492ff,4
+np.float32,0x3ebb07e0,0x3ebf7642,4
+np.float32,0x3ebcf8e0,0x3ec18c95,4
+np.float32,0x3f49bdfc,0x3f685b51,4
+np.float32,0x3cbc29c0,0x3cbc2dfd,4
+np.float32,0xbe9e951a,0xbea13bf1,4
+np.float32,0xbe8c237c,0xbe8df33d,4
+np.float32,0x3e17f198,0x3e1881c4,4
+np.float32,0xbd0b5220,0xbd0b5902,4
+np.float32,0xbf34c4a2,0xbf48b4f5,4
+np.float32,0xbedaa814,0xbee1ea94,4
+np.float32,0x3ebf5d6c,0x3ec42053,4
+np.float32,0x3cd04b40,0x3cd050ff,4
+np.float32,0xbec33fe0,0xbec85244,4
+np.float32,0xbf00b27a,0xbf06d8d8,4
+np.float32,0x3f15d7be,0x3f201243,4
+np.float32,0xbe3debd0,0xbe3f06f7,4
+np.float32,0xbea81704,0xbeab4418,4
+np.float32,0x1,0x1,4
+np.float32,0x3f49e6ba,0x3f689d8b,4
+np.float32,0x3f351030,0x3f491fc0,4
+np.float32,0x3e607de8,0x3e625482,4
+np.float32,0xbe8dbbe4,0xbe8f9c0e,4
+np.float32,0x3edbf350,0x3ee35924,4
+np.float32,0xbf0c84c4,0xbf14bf9c,4
+np.float32,0x3eb218b0,0x3eb5e61a,4
+np.float32,0x3e466dd0,0x3e47b138,4
+np.float32,0xbe8ece94,0xbe90ba01,4
+np.float32,0xbe82ec2a,0xbe84649a,4
+np.float32,0xbf7e1f10,0xbfb98b9e,4
+np.float32,0xbf2d00ea,0xbf3df688,4
+np.float32,0x3db7cdd0,0x3db80d36,4
+np.float32,0xbe388b98,0xbe398f25,4
+np.float32,0xbd86cb40,0xbd86e436,4
+np.float32,0x7f7fffff,0x7fc00000,4
+np.float32,0x3f472a60,0x3f6436c6,4
+np.float32,0xbf5b2c1d,0xbf838d87,4
+np.float32,0x3f0409ea,0x3f0abad8,4
+np.float32,0x3f47dd0e,0x3f6553f0,4
+np.float32,0x3e3eab00,0x3e3fc98a,4
+np.float32,0xbf7c2a7f,0xbfb2e19b,4
+np.float32,0xbeda0048,0xbee13112,4
+np.float32,0x3f46600a,0x3f62f5b2,4
+np.float32,0x3f45aef4,0x3f61de43,4
+np.float32,0x3dd40a50,0x3dd46bc4,4
+np.float32,0xbf6cdd0b,0xbf974191,4
+np.float32,0x3f78de4c,0x3faac725,4
+np.float32,0x3f3c39a4,0x3f53777f,4
+np.float32,0xbe2a30ec,0xbe2afc0b,4
+np.float32,0xbf3c0ef0,0xbf533887,4
+np.float32,0x3ecb6548,0x3ed12a53,4
+np.float32,0x3eb994e8,0x3ebde7fc,4
+np.float32,0x3d4c1ee0,0x3d4c3487,4
+np.float32,0xbf52cb6d,0xbf77a7eb,4
+np.float32,0x3eb905d4,0x3ebd4e80,4
+np.float32,0x3e712428,0x3e736d72,4
+np.float32,0xbf79ee6e,0xbfad22be,4
+np.float32,0x3de6f8b0,0x3de776c1,4
+np.float32,0x3e9b2898,0x3e9da325,4
+np.float32,0x3ea09b20,0x3ea35d20,4
+np.float32,0x3d0ea9a0,0x3d0eb103,4
+np.float32,0xbd911500,0xbd913423,4
+np.float32,0x3e004618,0x3e009c97,4
+np.float32,0x3f5e0e5a,0x3f86654c,4
+np.float32,0x3f2e6300,0x3f3fd88b,4
+np.float32,0x3e0cf5d0,0x3e0d68c3,4
+np.float32,0x3d6a16c0,0x3d6a376c,4
+np.float32,0x3f7174aa,0x3f9db53c,4
+np.float32,0xbe04bba0,0xbe051b81,4
+np.float32,0xbe6fdcb4,0xbe721c92,4
+np.float32,0x3f4379f0,0x3f5e6c31,4
+np.float32,0xbf680098,0xbf913257,4
+np.float32,0xbf3c31ca,0xbf536bea,4
+np.float32,0x3f59db58,0x3f824a4e,4
+np.float32,0xbf3ffc84,0xbf591554,4
+np.float32,0x3d1d5160,0x3d1d5b48,4
+np.float32,0x3f6c64ae,0x3f96a3da,4
+np.float32,0xbf1b49fd,0xbf26daaa,4
+np.float32,0x3ec80be0,0x3ecd8576,4
+np.float32,0x3f3becc0,0x3f530629,4
+np.float32,0xbea93890,0xbeac76c1,4
+np.float32,0x3f5b3acc,0x3f839bbd,4
+np.float32,0xbf5d6818,0xbf85bef9,4
+np.float32,0x3f794266,0x3fab9fa6,4
+np.float32,0xbee8eb7c,0xbef1cf3b,4
+np.float32,0xbf360a06,0xbf4a821e,4
+np.float32,0x3f441cf6,0x3f5f693d,4
+np.float32,0x3e60de40,0x3e62b742,4
+np.float32,0xbebb3d7e,0xbebfafdc,4
+np.float32,0x3e56a3a0,0x3e583e28,4
+np.float32,0x3f375bfe,0x3f4c6499,4
+np.float32,0xbf384d7d,0xbf4dbf9a,4
+np.float32,0x3efb03a4,0x3f032c06,4
+np.float32,0x3f1d5d10,0x3f29794d,4
+np.float32,0xbe25f7dc,0xbe26b41d,4
+np.float32,0x3f6d2f88,0x3f97aebb,4
+np.float32,0xbe9fa100,0xbea255cb,4
+np.float32,0xbf21dafa,0xbf2f382a,4
+np.float32,0x3d3870e0,0x3d3880d9,4
+np.float32,0x3eeaf00c,0x3ef413f4,4
+np.float32,0xbc884ea0,0xbc88503c,4
+np.float32,0xbf7dbdad,0xbfb80b6d,4
+np.float32,0xbf4eb713,0xbf709b46,4
+np.float32,0xbf1c0ad4,0xbf27cd92,4
+np.float32,0x3f323088,0x3f451737,4
+np.float32,0x3e405d88,0x3e4183e1,4
+np.float32,0x3d7ad580,0x3d7afdb4,4
+np.float32,0xbf207338,0xbf2d6927,4
+np.float32,0xbecf7948,0xbed59e1a,4
+np.float32,0x3f16ff94,0x3f217fde,4
+np.float32,0xbdf19588,0xbdf225dd,4
+np.float32,0xbf4d9654,0xbf6eb442,4
+np.float32,0xbf390b9b,0xbf4ed220,4
+np.float32,0xbe155a74,0xbe15e354,4
+np.float32,0x3f519e4c,0x3f759850,4
+np.float32,0xbee3f08c,0xbeec3b84,4
+np.float32,0xbf478be7,0xbf64d23b,4
+np.float32,0xbefdee50,0xbf04d92a,4
+np.float32,0x3e8def78,0x3e8fd1bc,4
+np.float32,0x3e3df2a8,0x3e3f0dee,4
+np.float32,0xbf413e22,0xbf5afd97,4
+np.float32,0xbf1b8bc4,0xbf272d71,4
+np.float32,0xbf31e5be,0xbf44af22,4
+np.float32,0x3de7e080,0x3de86010,4
+np.float32,0xbf5ddf7e,0xbf863645,4
+np.float32,0x3f3eba6a,0x3f57306e,4
+np.float32,0xff7fffff,0x7fc00000,4
+np.float32,0x3ec22d5c,0x3ec72973,4
+np.float32,0x80800000,0x80800000,4
+np.float32,0x3f032e0c,0x3f09ba82,4
+np.float32,0x3d74bd60,0x3d74e2b7,4
+np.float32,0xbea0d61e,0xbea39b42,4
+np.float32,0xbefdfa78,0xbf04e02a,4
+np.float32,0x3e5cb220,0x3e5e70ec,4
+np.float32,0xbe239e54,0xbe2452a4,4
+np.float32,0x3f452738,0x3f61090e,4
+np.float32,0x3e99a2e0,0x3e9c0a66,4
+np.float32,0x3e4394d8,0x3e44ca5f,4
+np.float32,0x3f4472e2,0x3f5fef14,4
+np.float32,0xbf46bc70,0xbf638814,4
+np.float32,0xbf0b910f,0xbf139c7a,4
+np.float32,0x3f36b4a6,0x3f4b753f,4
+np.float32,0x3e0bf478,0x3e0c64f6,4
+np.float32,0x3ce02480,0x3ce02ba9,4
+np.float32,0xbd904b10,0xbd9069b1,4
+np.float32,0xbf7f5d72,0xbfc00b70,4
+np.float32,0x3f62127e,0x3f8a8ca8,4
+np.float32,0xbf320253,0xbf44d6e4,4
+np.float32,0x3f2507be,0x3f335833,4
+np.float32,0x3f299284,0x3f395887,4
+np.float32,0xbd8211b0,0xbd82281d,4
+np.float32,0xbd3374c0,0xbd338376,4
+np.float32,0x3f36c56a,0x3f4b8d30,4
+np.float32,0xbf51f704,0xbf76331f,4
+np.float32,0xbe9871ca,0xbe9acab2,4
+np.float32,0xbe818d8c,0xbe82fa0f,4
+np.float32,0x3f08b958,0x3f103c18,4
+np.float32,0x3f22559a,0x3f2fd698,4
+np.float32,0xbf11f388,0xbf1b4db8,4
+np.float32,0x3ebe1990,0x3ec2c359,4
+np.float32,0xbe75ab38,0xbe7816b6,4
+np.float32,0x3e96102c,0x3e984c99,4
+np.float32,0xbe80d9d2,0xbe824052,4
+np.float32,0x3ef47588,0x3efeda7f,4
+np.float32,0xbe45e524,0xbe4725ea,4
+np.float32,0x3f7f9e7a,0x3fc213ff,4
+np.float32,0x3f1d3c36,0x3f294faa,4
+np.float32,0xbf3c58db,0xbf53a591,4
+np.float32,0x3f0d3d20,0x3f159c69,4
+np.float32,0x3f744be6,0x3fa23552,4
+np.float32,0x3f2e0cea,0x3f3f630e,4
+np.float32,0x3e193c10,0x3e19cff7,4
+np.float32,0xbf4150ac,0xbf5b19dd,4
+np.float32,0xbf145f72,0xbf1e4355,4
+np.float32,0xbb76cc00,0xbb76cc26,4
+np.float32,0x3f756780,0x3fa41b3e,4
+np.float32,0x3ea9b868,0x3eacfe3c,4
+np.float32,0x3d07c920,0x3d07cf7f,4
+np.float32,0xbf2263d4,0xbf2fe8ff,4
+np.float32,0x3e53b3f8,0x3e553daa,4
+np.float32,0xbf785be8,0xbfa9b5ba,4
+np.float32,0x3f324f7a,0x3f454254,4
+np.float32,0xbf2188f2,0xbf2ece5b,4
+np.float32,0xbe33781c,0xbe3466a2,4
+np.float32,0xbd3cf120,0xbd3d024c,4
+np.float32,0x3f06b18a,0x3f0dd70f,4
+np.float32,0x3f40d63e,0x3f5a5f6a,4
+np.float32,0x3f752340,0x3fa3a41e,4
+np.float32,0xbe1cf1c0,0xbe1d90bc,4
+np.float32,0xbf02d948,0xbf0957d7,4
+np.float32,0x3f73bed0,0x3fa14bf7,4
+np.float32,0x3d914920,0x3d916864,4
+np.float32,0x7fa00000,0x7fe00000,4
+np.float32,0xbe67a5d8,0xbe69aba7,4
+np.float32,0x3f689c4a,0x3f91eb9f,4
+np.float32,0xbf196e00,0xbf248601,4
+np.float32,0xbf50dacb,0xbf7444fe,4
+np.float32,0x3f628b86,0x3f8b0e1e,4
+np.float32,0x3f6ee2f2,0x3f99fe7f,4
+np.float32,0x3ee5df40,0x3eee6492,4
+np.float32,0x3f501746,0x3f72f41b,4
+np.float32,0xbf1f0f18,0xbf2ba164,4
+np.float32,0xbf1a8bfd,0xbf25ec01,4
+np.float32,0xbd4926f0,0xbd493ba9,4
+np.float32,0xbf4e364f,0xbf6fc17b,4
+np.float32,0x3e50c578,0x3e523ed4,4
+np.float32,0x3f65bf10,0x3f8e95ce,4
+np.float32,0xbe8d75a2,0xbe8f52f2,4
+np.float32,0xbf3f557e,0xbf581962,4
+np.float32,0xbeff2bfc,0xbf05903a,4
+np.float32,0x3f5e8bde,0x3f86e3d8,4
+np.float32,0xbf7a0012,0xbfad4b9b,4
+np.float32,0x3edefce0,0x3ee6b790,4
+np.float32,0xbf0003de,0xbf060f09,4
+np.float32,0x3efc4650,0x3f03e548,4
+np.float32,0x3f4582e4,0x3f6198f5,4
+np.float32,0x3f10086c,0x3f18f9d0,4
+np.float32,0x3f1cd304,0x3f28ca77,4
+np.float32,0x3f683366,0x3f916e8d,4
+np.float32,0xbed49392,0xbedb3675,4
+np.float32,0xbf6fe5f6,0xbf9b6c0e,4
+np.float32,0xbf59b416,0xbf8224f6,4
+np.float32,0x3d20c960,0x3d20d3f4,4
+np.float32,0x3f6b00d6,0x3f94dbe7,4
+np.float32,0x3f6c26ae,0x3f965352,4
+np.float32,0xbf370ea6,0xbf4bf5dd,4
+np.float32,0x3dfe7230,0x3dff1af1,4
+np.float32,0xbefc21a8,0xbf03d038,4
+np.float32,0x3f16a990,0x3f21156a,4
+np.float32,0xbef8ac0c,0xbf01d48f,4
+np.float32,0x3f170de8,0x3f21919d,4
+np.float32,0x3db9ef80,0x3dba3122,4
+np.float32,0x3d696400,0x3d698461,4
+np.float32,0x3f007aa2,0x3f069843,4
+np.float32,0x3f22827c,0x3f3010a9,4
+np.float32,0x3f3650dc,0x3f4ae6f1,4
+np.float32,0xbf1d8037,0xbf29a5e1,4
+np.float32,0xbf08fdc4,0xbf108d0e,4
+np.float32,0xbd8df350,0xbd8e1079,4
+np.float32,0xbf36bb32,0xbf4b7e98,4
+np.float32,0x3f2e3756,0x3f3f9ced,4
+np.float32,0x3d5a6f20,0x3d5a89aa,4
+np.float32,0x3f55d568,0x3f7d1889,4
+np.float32,0x3e1ed110,0x3e1f75d9,4
+np.float32,0x3e7386b8,0x3e75e1dc,4
+np.float32,0x3f48ea0e,0x3f670434,4
+np.float32,0x3e921fb0,0x3e942f14,4
+np.float32,0xbf0d4d0b,0xbf15af7f,4
+np.float32,0x3f179ed2,0x3f224549,4
+np.float32,0xbf3a328e,0xbf507e6d,4
+np.float32,0xbf74591a,0xbfa24b6e,4
+np.float32,0x3ec7d1c4,0x3ecd4657,4
+np.float32,0xbf6ecbed,0xbf99de85,4
+np.float32,0x3db0bd00,0x3db0f559,4
+np.float32,0x7f800000,0x7fc00000,4
+np.float32,0x3e0373b8,0x3e03d0d6,4
+np.float32,0xbf439784,0xbf5e9a04,4
+np.float32,0xbef97a9e,0xbf024ac6,4
+np.float32,0x3e4d71a8,0x3e4ed90a,4
+np.float32,0xbf14d868,0xbf1ed7e3,4
+np.float32,0xbf776870,0xbfa7ce37,4
+np.float32,0xbe32a500,0xbe339038,4
+np.float32,0xbf326d8a,0xbf456c3d,4
+np.float32,0xbe9b758c,0xbe9df3e7,4
+np.float32,0x3d9515a0,0x3d95376a,4
+np.float32,0x3e3f7320,0x3e40953e,4
+np.float32,0xbee57e7e,0xbeedf84f,4
+np.float32,0x3e821e94,0x3e838ffd,4
+np.float32,0x3f74beaa,0x3fa2f721,4
+np.float32,0xbe9b7672,0xbe9df4d9,4
+np.float32,0x3f4041fc,0x3f597e71,4
+np.float32,0xbe9ea7c4,0xbea14f92,4
+np.float32,0xbf800000,0xbfc90fdb,4
+np.float32,0x3e04fb90,0x3e055bfd,4
+np.float32,0xbf14d3d6,0xbf1ed245,4
+np.float32,0xbe84ebec,0xbe86763e,4
+np.float32,0x3f08e568,0x3f107039,4
+np.float32,0x3d8dc9e0,0x3d8de6ef,4
+np.float32,0x3ea4549c,0x3ea74a94,4
+np.float32,0xbebd2806,0xbec1bf51,4
+np.float32,0x3f311a26,0x3f439498,4
+np.float32,0xbf3d2222,0xbf54cf7e,4
+np.float32,0x3e00c500,0x3e011c81,4
+np.float32,0xbe35ed1c,0xbe36e5a9,4
+np.float32,0xbd4ec020,0xbd4ed6a0,4
+np.float32,0x3e1eb088,0x3e1f54eb,4
+np.float32,0x3cf94840,0x3cf9521a,4
+np.float32,0xbf010c5d,0xbf0740e0,4
+np.float32,0xbf3bd63b,0xbf52e502,4
+np.float32,0x3f233f30,0x3f310542,4
+np.float32,0x3ea24128,0x3ea519d7,4
+np.float32,0x3f478b38,0x3f64d124,4
+np.float32,0x3f1e0c6c,0x3f2a57ec,4
+np.float32,0xbf3ad294,0xbf51680a,4
+np.float32,0x3ede0554,0x3ee5a4b4,4
+np.float32,0x3e451a98,0x3e46577d,4
+np.float32,0x3f520164,0x3f764542,4
+np.float32,0x0,0x0,4
+np.float32,0xbd056cd0,0xbd0572db,4
+np.float32,0xbf58b018,0xbf812f5e,4
+np.float32,0x3e036eb0,0x3e03cbc3,4
+np.float32,0x3d1377a0,0x3d137fc9,4
+np.float32,0xbf692d3a,0xbf929a2c,4
+np.float32,0xbec60fb8,0xbecb5dea,4
+np.float32,0x3ed23340,0x3ed89a8e,4
+np.float32,0x3c87f040,0x3c87f1d9,4
+np.float32,0x3dac62f0,0x3dac9737,4
+np.float32,0xbed97c16,0xbee09f02,4
+np.float32,0xbf2d5f3c,0xbf3e769c,4
+np.float32,0xbc3b7c40,0xbc3b7d4c,4
+np.float32,0x3ed998ec,0x3ee0bedd,4
+np.float32,0x3dd86630,0x3dd8cdcb,4
+np.float32,0x3e8b4304,0x3e8d09ea,4
+np.float32,0x3f51e6b0,0x3f761697,4
+np.float32,0x3ec51f24,0x3eca5923,4
+np.float32,0xbf647430,0xbf8d2307,4
+np.float32,0x3f253d9c,0x3f339eb2,4
+np.float32,0x3dc969d0,0x3dc9bd4b,4
+np.float32,0xbc2f1300,0xbc2f13da,4
+np.float32,0xbf170007,0xbf21806d,4
+np.float32,0x3f757d10,0x3fa4412e,4
+np.float32,0xbe7864ac,0xbe7ae564,4
+np.float32,0x3f2ffe90,0x3f420cfb,4
+np.float32,0xbe576138,0xbe590012,4
+np.float32,0xbf517a21,0xbf755959,4
+np.float32,0xbf159cfe,0xbf1fc9d5,4
+np.float32,0xbf638b2a,0xbf8c22cf,4
+np.float32,0xff800000,0x7fc00000,4
+np.float32,0x3ed19ca0,0x3ed7f569,4
+np.float32,0x3f7c4460,0x3fb32d26,4
+np.float32,0x3ebfae6c,0x3ec477ab,4
+np.float32,0x3dd452d0,0x3dd4b4a8,4
+np.float32,0x3f471482,0x3f6413fb,4
+np.float32,0xbf49d704,0xbf6883fe,4
+np.float32,0xbd42c4e0,0xbd42d7af,4
+np.float32,0xbeb02994,0xbeb3d668,4
+np.float32,0x3f4d1fd8,0x3f6dedd2,4
+np.float32,0x3efb591c,0x3f035d11,4
+np.float32,0x80000000,0x80000000,4
+np.float32,0xbf50f782,0xbf7476ad,4
+np.float32,0x3d7232c0,0x3d7256f0,4
+np.float32,0x3f649460,0x3f8d46bb,4
+np.float32,0x3f5561bc,0x3f7c46a9,4
+np.float32,0x3e64f6a0,0x3e66ea5d,4
+np.float32,0x3e5b0470,0x3e5cb8f9,4
+np.float32,0xbe9b6b2c,0xbe9de904,4
+np.float32,0x3f6c33f4,0x3f966486,4
+np.float32,0x3f5cee54,0x3f854613,4
+np.float32,0x3ed3e044,0x3eda716e,4
+np.float32,0xbf3cac7f,0xbf542131,4
+np.float32,0x3c723500,0x3c723742,4
+np.float32,0x3de59900,0x3de614d3,4
+np.float32,0xbdf292f8,0xbdf32517,4
+np.float32,0x3f05c8b2,0x3f0cc59b,4
+np.float32,0xbf1ab182,0xbf261b14,4
+np.float32,0xbda396f0,0xbda3c39a,4
+np.float32,0xbf270ed0,0xbf360231,4
+np.float32,0x3f2063e6,0x3f2d557e,4
+np.float32,0x3c550280,0x3c550409,4
+np.float32,0xbe103b48,0xbe10b679,4
+np.float32,0xbebae390,0xbebf4f40,4
+np.float32,0x3f3bc868,0x3f52d0aa,4
+np.float32,0xbd62f880,0xbd631647,4
+np.float32,0xbe7a38f4,0xbe7cc833,4
+np.float32,0x3f09d796,0x3f118f39,4
+np.float32,0xbf5fa558,0xbf8802d0,4
+np.float32,0x3f111cc8,0x3f1a48b0,4
+np.float32,0x3e831958,0x3e849356,4
+np.float32,0xbf614dbd,0xbf89bc3b,4
+np.float32,0xbd521510,0xbd522cac,4
+np.float32,0x3f05af22,0x3f0ca7a0,4
+np.float32,0xbf1ac60e,0xbf2634df,4
+np.float32,0xbf6bd05e,0xbf95e3fe,4
+np.float32,0xbd1fa6e0,0xbd1fb13b,4
+np.float32,0xbeb82f7a,0xbebc68b1,4
+np.float32,0xbd92aaf8,0xbd92cb23,4
+np.float32,0xbe073a54,0xbe079fbf,4
+np.float32,0xbf198655,0xbf24a468,4
+np.float32,0x3f62f6d8,0x3f8b81ba,4
+np.float32,0x3eef4310,0x3ef8f4f9,4
+np.float32,0x3e8988e0,0x3e8b3eae,4
+np.float32,0xbf3ddba5,0xbf55e367,4
+np.float32,0x3dc6d2e0,0x3dc7232b,4
+np.float32,0xbf31040e,0xbf437601,4
+np.float32,0x3f1bb74a,0x3f276442,4
+np.float32,0xbf0075d2,0xbf0692b3,4
+np.float32,0xbf606ce0,0xbf88d0ff,4
+np.float32,0xbf083856,0xbf0fa39d,4
+np.float32,0xbdb25b20,0xbdb2950a,4
+np.float32,0xbeb86860,0xbebca5ae,4
+np.float32,0x3de83160,0x3de8b176,4
+np.float32,0xbf33a98f,0xbf472664,4
+np.float32,0x3e7795f8,0x3e7a1058,4
+np.float32,0x3e0ca6f8,0x3e0d192a,4
+np.float32,0xbf1aef60,0xbf2668c3,4
+np.float32,0xbda53b58,0xbda5695e,4
+np.float32,0xbf178096,0xbf221fc5,4
+np.float32,0xbf0a4159,0xbf120ccf,4
+np.float32,0x3f7bca36,0x3fb1d0df,4
+np.float32,0xbef94360,0xbf022b26,4
+np.float32,0xbef16f36,0xbefb6ad6,4
+np.float32,0x3f53a7e6,0x3f792e25,4
+np.float32,0xbf7c536f,0xbfb35993,4
+np.float32,0xbe84aaa0,0xbe8632a2,4
+np.float32,0x3ecb3998,0x3ed0fab9,4
+np.float32,0x3f539304,0x3f79090a,4
+np.float32,0xbf3c7816,0xbf53d3b3,4
+np.float32,0xbe7a387c,0xbe7cc7b7,4
+np.float32,0x3f7000e4,0x3f9b92b1,4
+np.float32,0x3e08fd70,0x3e0966e5,4
+np.float32,0x3db97ba0,0x3db9bcc8,4
+np.float32,0xbee99056,0xbef2886a,4
+np.float32,0xbf0668da,0xbf0d819e,4
+np.float32,0x3e58a408,0x3e5a4a51,4
+np.float32,0x3f3440b8,0x3f47faed,4
+np.float32,0xbf19a2ce,0xbf24c7ff,4
+np.float32,0xbe75e990,0xbe7856ee,4
+np.float32,0x3f3c865c,0x3f53e8cb,4
+np.float32,0x3e5e03d0,0x3e5fcac9,4
+np.float32,0x3edb8e34,0x3ee2e932,4
+np.float32,0xbf7e1f5f,0xbfb98ce4,4
+np.float32,0xbf7372ff,0xbfa0d0ae,4
+np.float32,0xbf3ee850,0xbf577548,4
+np.float32,0x3ef19658,0x3efb9737,4
+np.float32,0xbe8088de,0xbe81ecaf,4
+np.float32,0x800000,0x800000,4
+np.float32,0xbde39dd8,0xbde4167a,4
+np.float32,0xbf065d7a,0xbf0d7441,4
+np.float32,0xbde52c78,0xbde5a79b,4
+np.float32,0xbe3a28c0,0xbe3b333e,4
+np.float32,0x3f6e8b3c,0x3f998516,4
+np.float32,0x3f3485c2,0x3f485c39,4
+np.float32,0x3e6f2c68,0x3e71673e,4
+np.float32,0xbe4ec9cc,0xbe50385e,4
+np.float32,0xbf1c3bb0,0xbf280b39,4
+np.float32,0x3ec8ea18,0x3ece76f7,4
+np.float32,0x3e26b5f8,0x3e2774c9,4
+np.float32,0x3e1e4a38,0x3e1eed5c,4
+np.float32,0xbee7a106,0xbef05c6b,4
+np.float32,0xbf305928,0xbf4289d8,4
+np.float32,0x3f0c431c,0x3f147118,4
+np.float32,0xbe57ba6c,0xbe595b52,4
+np.float32,0x3eabc9cc,0x3eaf2fc7,4
+np.float32,0xbef1ed24,0xbefbf9ae,4
+np.float32,0xbf61b576,0xbf8a29cc,4
+np.float32,0x3e9c1ff4,0x3e9ea6cb,4
+np.float32,0x3f6c53b2,0x3f968dbe,4
+np.float32,0x3e2d1b80,0x3e2df156,4
+np.float32,0x3e9f2f70,0x3ea1de4a,4
+np.float32,0xbf5861ee,0xbf80e61a,4
+np.float32,0x3f429144,0x3f5d0505,4
+np.float32,0x3e235cc8,0x3e24103e,4
+np.float32,0xbf354879,0xbf496f6a,4
+np.float32,0xbf20a146,0xbf2da447,4
+np.float32,0x3e8d8968,0x3e8f6785,4
+np.float32,0x3f3fbc94,0x3f58b4c1,4
+np.float32,0x3f2c5f50,0x3f3d1b9f,4
+np.float32,0x3f7bf0f8,0x3fb23d23,4
+np.float32,0xbf218282,0xbf2ec60f,4
+np.float32,0x3f2545aa,0x3f33a93e,4
+np.float32,0xbf4b17be,0xbf6a9018,4
+np.float32,0xbb9df700,0xbb9df728,4
+np.float32,0x3f685d54,0x3f91a06c,4
+np.float32,0x3efdfe2c,0x3f04e24c,4
+np.float32,0x3ef1c5a0,0x3efbccd9,4
+np.float32,0xbf41d731,0xbf5be76e,4
+np.float32,0x3ebd1360,0x3ec1a919,4
+np.float32,0xbf706bd4,0xbf9c2d58,4
+np.float32,0x3ea525e4,0x3ea8279d,4
+np.float32,0xbe51f1b0,0xbe537186,4
+np.float32,0x3f5e8cf6,0x3f86e4f4,4
+np.float32,0xbdad2520,0xbdad5a19,4
+np.float32,0xbf5c5704,0xbf84b0e5,4
+np.float32,0x3f47b54e,0x3f65145e,4
+np.float32,0x3eb4fc78,0x3eb8fc0c,4
+np.float32,0x3dca1450,0x3dca68a1,4
+np.float32,0x3eb02a74,0x3eb3d757,4
+np.float32,0x3f74ae6a,0x3fa2db75,4
+np.float32,0x3f800000,0x3fc90fdb,4
+np.float32,0xbdb46a00,0xbdb4a5f2,4
+np.float32,0xbe9f2ba6,0xbea1da4e,4
+np.float32,0x3f0afa70,0x3f12e8f7,4
+np.float32,0xbf677b20,0xbf909547,4
+np.float32,0x3eff9188,0x3f05cacf,4
+np.float32,0x3f720562,0x3f9e911b,4
+np.float32,0xbf7180d8,0xbf9dc794,4
+np.float32,0xbee7d076,0xbef0919d,4
+np.float32,0x3f0432ce,0x3f0aea95,4
+np.float32,0x3f3bc4c8,0x3f52cb54,4
+np.float32,0xbea72f30,0xbeaa4ebe,4
+np.float32,0x3e90ed00,0x3e92ef33,4
+np.float32,0xbda63670,0xbda6654a,4
+np.float32,0xbf5a6f85,0xbf82d7e0,4
+np.float32,0x3e6e8808,0x3e70be34,4
+np.float32,0xbf4f3822,0xbf71768f,4
+np.float32,0x3e5c8a68,0x3e5e483f,4
+np.float32,0xbf0669d4,0xbf0d82c4,4
+np.float32,0xbf79f77c,0xbfad37b0,4
+np.float32,0x3f25c82c,0x3f345453,4
+np.float32,0x3f1b2948,0x3f26b188,4
+np.float32,0x3ef7e288,0x3f016159,4
+np.float32,0x3c274280,0x3c27433e,4
+np.float32,0xbf4c8fa0,0xbf6cfd5e,4
+np.float32,0x3ea4ccb4,0x3ea7c966,4
+np.float32,0xbf7b157e,0xbfafefca,4
+np.float32,0xbee4c2b0,0xbeed264d,4
+np.float32,0xbc1fd640,0xbc1fd6e6,4
+np.float32,0x3e892308,0x3e8ad4f6,4
+np.float32,0xbf3f69c7,0xbf5837ed,4
+np.float32,0x3ec879e8,0x3ecdfd05,4
+np.float32,0x3f07a8c6,0x3f0efa30,4
+np.float32,0x3f67b880,0x3f90dd4d,4
+np.float32,0x3e8a11c8,0x3e8bccd5,4
+np.float32,0x3f7df6fc,0x3fb8e935,4
+np.float32,0xbef3e498,0xbefe3599,4
+np.float32,0xbf18ad7d,0xbf2395d8,4
+np.float32,0x3f2bce74,0x3f3c57f5,4
+np.float32,0xbf38086e,0xbf4d5c2e,4
+np.float32,0x3f772d7a,0x3fa75c35,4
+np.float32,0xbf3b6e24,0xbf524c00,4
+np.float32,0xbdd39108,0xbdd3f1d4,4
+np.float32,0xbf691f6b,0xbf928974,4
+np.float32,0x3f146188,0x3f1e45e4,4
+np.float32,0xbf56045b,0xbf7d6e03,4
+np.float32,0xbf4b2ee4,0xbf6ab622,4
+np.float32,0xbf3fa3f6,0xbf588f9d,4
+np.float32,0x3f127bb0,0x3f1bf398,4
+np.float32,0x3ed858a0,0x3edf5d3e,4
+np.float32,0xbd6de3b0,0xbd6e05fa,4
+np.float32,0xbecc662c,0xbed24261,4
+np.float32,0xbd6791d0,0xbd67b170,4
+np.float32,0xbf146016,0xbf1e441e,4
+np.float32,0xbf61f04c,0xbf8a6841,4
+np.float32,0xbe7f16d0,0xbe80e6e7,4
+np.float32,0xbebf93e6,0xbec45b10,4
+np.float32,0xbe8a59fc,0xbe8c17d1,4
+np.float32,0xbebc7a0c,0xbec10426,4
+np.float32,0xbf2a682e,0xbf3a7649,4
+np.float32,0xbe18d0cc,0xbe19637b,4
+np.float32,0x3d7f5100,0x3d7f7b66,4
+np.float32,0xbf10f5fa,0xbf1a1998,4
+np.float32,0x3f25e956,0x3f347fdc,4
+np.float32,0x3e6e8658,0x3e70bc78,4
+np.float32,0x3f21a5de,0x3f2ef3a5,4
+np.float32,0xbf4e71d4,0xbf702607,4
+np.float32,0xbf49d6b6,0xbf688380,4
+np.float32,0xbdb729c0,0xbdb7687c,4
+np.float32,0xbf63e1f4,0xbf8c81c7,4
+np.float32,0x3dda6cb0,0x3ddad73e,4
+np.float32,0x3ee1bc40,0x3ee9c612,4
+np.float32,0x3ebdb5f8,0x3ec2581b,4
+np.float32,0x3f7d9576,0x3fb77646,4
+np.float32,0x3e087140,0x3e08d971,4
+np.float64,0xbfdba523cfb74a48,0xbfdc960ddd9c0506,1
+np.float64,0x3fb51773622a2ee0,0x3fb51d93f77089d5,1
+np.float64,0x3fc839f6d33073f0,0x3fc85f9a47dfe8e6,1
+np.float64,0xbfecba2d82f9745b,0xbff1d55416c6c993,1
+np.float64,0x3fd520fe47aa41fc,0x3fd58867f1179634,1
+np.float64,0x3fe1b369c56366d4,0x3fe2c1ac9dd2c45a,1
+np.float64,0xbfec25a7cd784b50,0xbff133417389b12d,1
+np.float64,0xbfd286342ea50c68,0xbfd2cb0bca22e66d,1
+np.float64,0x3fd5f6fe5eabedfc,0x3fd66bad16680d08,1
+np.float64,0xbfe863a87570c751,0xbfebbb9b637eb6dc,1
+np.float64,0x3fc97f5b4d32feb8,0x3fc9ab5066d8eaec,1
+np.float64,0xbfcb667af936ccf4,0xbfcb9d3017047a1d,1
+np.float64,0xbfd1b7b9afa36f74,0xbfd1f3c175706154,1
+np.float64,0x3fef97385b7f2e70,0x3ff6922a1a6c709f,1
+np.float64,0xbfd13e4205a27c84,0xbfd1757c993cdb74,1
+np.float64,0xbfd18d88aca31b12,0xbfd1c7dd75068f7d,1
+np.float64,0x3fe040ce0f60819c,0x3fe10c59d2a27089,1
+np.float64,0xbfddc7deddbb8fbe,0xbfdef9de5baecdda,1
+np.float64,0xbfcf6e96193edd2c,0xbfcfc1bb7396b9a3,1
+np.float64,0x3fd544f494aa89e8,0x3fd5ae850e2b37dd,1
+np.float64,0x3fe15b381fe2b670,0x3fe25841c7bfe2af,1
+np.float64,0xbfde793420bcf268,0xbfdfc2ddc7b4a341,1
+np.float64,0x3fd0d5db30a1abb8,0x3fd1092cef4aa4fb,1
+np.float64,0x3fe386a08c670d42,0x3fe50059bbf7f491,1
+np.float64,0xbfe0aae3a96155c8,0xbfe1880ef13e95ce,1
+np.float64,0xbfe80eeb03f01dd6,0xbfeb39e9f107e944,1
+np.float64,0xbfd531af3caa635e,0xbfd59a178f17552a,1
+np.float64,0x3fcced14ab39da28,0x3fcd2d9a806337ef,1
+np.float64,0xbfdb4c71bcb698e4,0xbfdc33d9d9daf708,1
+np.float64,0xbfde7375ecbce6ec,0xbfdfbc5611bc48ff,1
+np.float64,0x3fecc5707a798ae0,0x3ff1e2268d778017,1
+np.float64,0x3fe8f210a1f1e422,0x3fec9b3349a5baa2,1
+np.float64,0x3fe357f9b8e6aff4,0x3fe4c5a0b89a9228,1
+np.float64,0xbfe0f863b761f0c8,0xbfe1e3283494c3d4,1
+np.float64,0x3fd017c395a02f88,0x3fd044761f2f4a66,1
+np.float64,0x3febeb4746f7d68e,0x3ff0f6b955e7feb6,1
+np.float64,0xbfbdaaeeae3b55e0,0xbfbdbc0950109261,1
+np.float64,0xbfea013095f40261,0xbfee5b8fe8ad8593,1
+np.float64,0xbfe9f87b7973f0f7,0xbfee4ca3a8438d72,1
+np.float64,0x3fd37f77cfa6fef0,0x3fd3d018c825f057,1
+np.float64,0x3fb0799cee20f340,0x3fb07c879e7cb63f,1
+np.float64,0xbfdcfd581cb9fab0,0xbfde15e35314b52d,1
+np.float64,0xbfd49781b8a92f04,0xbfd4f6fa1516fefc,1
+np.float64,0x3fb3fcb6d627f970,0x3fb401ed44a713a8,1
+np.float64,0x3fd5737ef8aae6fc,0x3fd5dfe42d4416c7,1
+np.float64,0x7ff4000000000000,0x7ffc000000000000,1
+np.float64,0xbfe56ae780ead5cf,0xbfe776ea5721b900,1
+np.float64,0x3fd4567786a8acf0,0x3fd4b255421c161a,1
+np.float64,0x3fef6fb58cfedf6c,0x3ff62012dfcf0a33,1
+np.float64,0xbfd1dbcd3da3b79a,0xbfd2194fd628f74d,1
+np.float64,0x3fd9350016b26a00,0x3fd9e8b01eb023e9,1
+np.float64,0xbfe4fb3a69e9f675,0xbfe6e1d2c9eca56c,1
+np.float64,0x3fe9fe0f73f3fc1e,0x3fee5631cfd39772,1
+np.float64,0xbfd51c1bc6aa3838,0xbfd5833b3bd53543,1
+np.float64,0x3fc64158e12c82b0,0x3fc65e7352f237d7,1
+np.float64,0x3fd0d8ee1ba1b1dc,0x3fd10c5c99a16f0e,1
+np.float64,0x3fd5554e15aaaa9c,0x3fd5bfdb9ec9e873,1
+np.float64,0x3fe61ce209ec39c4,0x3fe869bc4c28437d,1
+np.float64,0xbfe4e42c8c69c859,0xbfe6c356dac7e2db,1
+np.float64,0xbfe157021062ae04,0xbfe2533ed39f4212,1
+np.float64,0x3fe844066cf0880c,0x3feb8aea0b7bd0a4,1
+np.float64,0x3fe55016586aa02c,0x3fe752e4b2a67b9f,1
+np.float64,0x3fdabce619b579cc,0x3fdb95809bc789d9,1
+np.float64,0x3fee03bae37c0776,0x3ff3778ba38ca882,1
+np.float64,0xbfeb2f5844f65eb0,0xbff03dd1b767d3c8,1
+np.float64,0x3fedcfdbaffb9fb8,0x3ff32e81d0639164,1
+np.float64,0x3fe06fc63ee0df8c,0x3fe142fc27f92eaf,1
+np.float64,0x3fe7ce90fd6f9d22,0x3fead8f832bbbf5d,1
+np.float64,0xbfbc0015ce380028,0xbfbc0e7470e06e86,1
+np.float64,0xbfe9b3de90f367bd,0xbfedd857931dfc6b,1
+np.float64,0xbfcb588f5936b120,0xbfcb8ef0124a4f21,1
+np.float64,0x3f8d376a503a6f00,0x3f8d37ab43e7988d,1
+np.float64,0xbfdb123a40b62474,0xbfdbf38b6cf5db92,1
+np.float64,0xbfee7da6be7cfb4e,0xbff433042cd9d5eb,1
+np.float64,0xbfc4c9e01b2993c0,0xbfc4e18dbafe37ef,1
+np.float64,0x3fedd42faffba860,0x3ff334790cd18a19,1
+np.float64,0x3fe9cdf772f39bee,0x3fee044f87b856ab,1
+np.float64,0x3fe0245881e048b2,0x3fe0eb5a1f739c8d,1
+np.float64,0xbfe4712bd9e8e258,0xbfe62cb3d82034aa,1
+np.float64,0x3fe9a16b46f342d6,0x3fedb972b2542551,1
+np.float64,0xbfe57ab4536af568,0xbfe78c34b03569c2,1
+np.float64,0x3fb6d6ceb22dada0,0x3fb6de976964d6dd,1
+np.float64,0x3fc3ac23a3275848,0x3fc3c02de53919b8,1
+np.float64,0xbfccb531e7396a64,0xbfccf43ec69f6281,1
+np.float64,0xbfd2f07fc8a5e100,0xbfd33a35a8c41b62,1
+np.float64,0xbfe3e5dd04e7cbba,0xbfe57940157c27ba,1
+np.float64,0x3feefe40757dfc80,0x3ff51bc72b846af6,1
+np.float64,0x8000000000000001,0x8000000000000001,1
+np.float64,0x3fecb7b766796f6e,0x3ff1d28972a0fc7e,1
+np.float64,0xbfea1bf1357437e2,0xbfee89a6532bfd71,1
+np.float64,0xbfca3983b7347308,0xbfca696463b791ef,1
+np.float64,0x10000000000000,0x10000000000000,1
+np.float64,0xbf886b45d030d680,0xbf886b6bbc04314b,1
+np.float64,0x3fd5224bb5aa4498,0x3fd589c92e82218f,1
+np.float64,0xbfec799874f8f331,0xbff18d5158b8e640,1
+np.float64,0xbf88124410302480,0xbf88126863350a16,1
+np.float64,0xbfe37feaaa66ffd6,0xbfe4f7e24382e79d,1
+np.float64,0x3fd777eca1aeefd8,0x3fd8076ead6d55dc,1
+np.float64,0x3fecaaeb3af955d6,0x3ff1c4159fa3e965,1
+np.float64,0xbfeb81e4e6f703ca,0xbff08d4e4c77fada,1
+np.float64,0xbfd7d0a0edafa142,0xbfd866e37010312e,1
+np.float64,0x3feda48c00fb4918,0x3ff2f3fd33c36307,1
+np.float64,0x3feb87ecc4770fda,0x3ff09336e490deda,1
+np.float64,0xbfefd78ad27faf16,0xbff78abbafb50ac1,1
+np.float64,0x3fe58e918c6b1d24,0x3fe7a70b38cbf016,1
+np.float64,0x3fda163b95b42c78,0x3fdade86b88ba4ee,1
+np.float64,0x3fe8fc1aaf71f836,0x3fecab3f93b59df5,1
+np.float64,0xbf8de56f903bcac0,0xbf8de5b527cec797,1
+np.float64,0xbfec112db2f8225b,0xbff11dd648de706f,1
+np.float64,0x3fc3214713264290,0x3fc333b1c862f7d0,1
+np.float64,0xbfeb5e5836f6bcb0,0xbff06ac364b49177,1
+np.float64,0x3fc23d9777247b30,0x3fc24d8ae3bcb615,1
+np.float64,0xbfdf0eed65be1dda,0xbfe036cea9b9dfb6,1
+np.float64,0xbfb2d5c85a25ab90,0xbfb2da24bb409ff3,1
+np.float64,0xbfecdda0c3f9bb42,0xbff1fdf94fc6e89e,1
+np.float64,0x3fdfe79154bfcf24,0x3fe0b338e0476a9d,1
+np.float64,0xbfd712ac6bae2558,0xbfd79abde21f287b,1
+np.float64,0x3fea3f148a747e2a,0x3feec6bed9d4fa04,1
+np.float64,0x3fd4879e4ca90f3c,0x3fd4e632fa4e2edd,1
+np.float64,0x3fe9137a9e7226f6,0x3fecd0c441088d6a,1
+np.float64,0xbfc75bf4ef2eb7e8,0xbfc77da8347d742d,1
+np.float64,0xbfd94090a0b28122,0xbfd9f5458816ed5a,1
+np.float64,0x3fde439cbcbc8738,0x3fdf85fbf496b61f,1
+np.float64,0xbfe18bacdce3175a,0xbfe29210e01237f7,1
+np.float64,0xbfd58ec413ab1d88,0xbfd5fcd838f0a934,1
+np.float64,0xbfeae5af2d75cb5e,0xbfeff1de1b4a06be,1
+np.float64,0x3fb64d1a162c9a30,0x3fb65458fb831354,1
+np.float64,0x3fc18b1e15231640,0x3fc1994c6ffd7a6a,1
+np.float64,0xbfd7b881bcaf7104,0xbfd84ce89a9ee8c7,1
+np.float64,0x3feb916a40f722d4,0x3ff09c8aa851d7c4,1
+np.float64,0x3fdab5fbb5b56bf8,0x3fdb8de43961bbde,1
+np.float64,0x3fe4f35402e9e6a8,0x3fe6d75dc5082894,1
+np.float64,0x3fe2fdb2e5e5fb66,0x3fe454e32a5d2182,1
+np.float64,0x3fe8607195f0c0e4,0x3febb6a4c3bf6a5c,1
+np.float64,0x3fd543ca9aaa8794,0x3fd5ad49203ae572,1
+np.float64,0x3fe8e05ca1f1c0ba,0x3fec7eff123dcc58,1
+np.float64,0x3fe298b6ca65316e,0x3fe3d81d2927c4dd,1
+np.float64,0x3fcfecea733fd9d8,0x3fd0220f1d0faf78,1
+np.float64,0xbfe2e739f065ce74,0xbfe439004e73772a,1
+np.float64,0xbfd1ae6b82a35cd8,0xbfd1ea129a5ee756,1
+np.float64,0xbfeb7edff576fdc0,0xbff08a5a638b8a8b,1
+np.float64,0x3fe5b645ff6b6c8c,0x3fe7dcee1faefe3f,1
+np.float64,0xbfd478427ba8f084,0xbfd4d5fc7c239e60,1
+np.float64,0xbfe39904e3e7320a,0xbfe517972b30b1e5,1
+np.float64,0xbfd3b75b6ba76eb6,0xbfd40acf20a6e074,1
+np.float64,0x3fd596267aab2c4c,0x3fd604b01faeaf75,1
+np.float64,0x3fe134463762688c,0x3fe229fc36784a72,1
+np.float64,0x3fd25dadf7a4bb5c,0x3fd2a0b9e04ea060,1
+np.float64,0xbfc05d3e0b20ba7c,0xbfc068bd2bb9966f,1
+np.float64,0x3f8cf517b039ea00,0x3f8cf556ed74b163,1
+np.float64,0x3fda87361cb50e6c,0x3fdb5a75af897e7f,1
+np.float64,0x3fe53e1926ea7c32,0x3fe73acf01b8ff31,1
+np.float64,0x3fe2e94857e5d290,0x3fe43b8cc820f9c7,1
+np.float64,0x3fd81fe6acb03fcc,0x3fd8bc623c0068cf,1
+np.float64,0xbfddf662c3bbecc6,0xbfdf2e76dc90786e,1
+np.float64,0x3fece174fbf9c2ea,0x3ff2026a1a889580,1
+np.float64,0xbfdc83c5b8b9078c,0xbfdd8dcf6ee3b7da,1
+np.float64,0x3feaf5448f75ea8a,0x3ff0075b108bcd0d,1
+np.float64,0xbfebf32f7ef7e65f,0xbff0fed42aaa826a,1
+np.float64,0x3fe389e5e8e713cc,0x3fe5047ade055ccb,1
+np.float64,0x3f635cdcc026ba00,0x3f635cddeea082ce,1
+np.float64,0x3fae580f543cb020,0x3fae5c9d5108a796,1
+np.float64,0x3fec9fafce793f60,0x3ff1b77bec654f00,1
+np.float64,0x3fb19d226e233a40,0x3fb1a0b32531f7ee,1
+np.float64,0xbfdf9a71e7bf34e4,0xbfe086cef88626c7,1
+np.float64,0x8010000000000000,0x8010000000000000,1
+np.float64,0xbfef170ba2fe2e17,0xbff54ed4675f5b8a,1
+np.float64,0xbfcc6e2f8f38dc60,0xbfccab65fc34d183,1
+np.float64,0x3fee756c4bfcead8,0x3ff4258782c137e6,1
+np.float64,0xbfd461c218a8c384,0xbfd4be3e391f0ff4,1
+np.float64,0xbfe3b64686e76c8d,0xbfe53caa16d6c90f,1
+np.float64,0xbfc1c65d8d238cbc,0xbfc1d51e58f82403,1
+np.float64,0x3fe6e06c63edc0d8,0x3fe97cb832eeb6a2,1
+np.float64,0xbfc9fc20b933f840,0xbfca2ab004312d85,1
+np.float64,0xbfe29aa6df65354e,0xbfe3da7ecf3ba466,1
+np.float64,0x3fea4df7d1749bf0,0x3feee0d448bd4746,1
+np.float64,0xbfedec6161fbd8c3,0xbff3563e1d943aa2,1
+np.float64,0x3fdb6f0437b6de08,0x3fdc5a1888b1213d,1
+np.float64,0xbfe270cbd3e4e198,0xbfe3a72ac27a0b0c,1
+np.float64,0xbfdfff8068bfff00,0xbfe0c1088e3b8983,1
+np.float64,0xbfd28edbe6a51db8,0xbfd2d416c8ed363e,1
+np.float64,0xbfb4e35f9229c6c0,0xbfb4e9531d2a737f,1
+np.float64,0xbfee6727e97cce50,0xbff40e7717576e46,1
+np.float64,0xbfddb5fbddbb6bf8,0xbfdee5aad78f5361,1
+np.float64,0xbfdf9d3e9dbf3a7e,0xbfe0886b191f2957,1
+np.float64,0x3fa57e77042afce0,0x3fa5801518ea9342,1
+np.float64,0x3f95c4e4882b89c0,0x3f95c55003c8e714,1
+np.float64,0x3fd9b10f61b36220,0x3fda6fe5d635a8aa,1
+np.float64,0xbfe2973411652e68,0xbfe3d641fe9885fd,1
+np.float64,0xbfee87bd5a7d0f7b,0xbff443bea81b3fff,1
+np.float64,0x3f9ea064c83d40c0,0x3f9ea19025085b2f,1
+np.float64,0xbfe4b823dfe97048,0xbfe689623d30dc75,1
+np.float64,0xbfa06a326c20d460,0xbfa06aeacbcd3eb8,1
+np.float64,0x3fe1e5c4c1e3cb8a,0x3fe2fe44b822f20e,1
+np.float64,0x3f99dafaa833b600,0x3f99dbaec10a1a0a,1
+np.float64,0xbfed7cb3877af967,0xbff2bfe9e556aaf9,1
+np.float64,0x3fd604f2e2ac09e4,0x3fd67a89408ce6ba,1
+np.float64,0x3fec57b60f78af6c,0x3ff16881f46d60f7,1
+np.float64,0xbfea2e3a17745c74,0xbfeea95c7190fd42,1
+np.float64,0xbfd60a7c37ac14f8,0xbfd6806ed642de35,1
+np.float64,0xbfe544b9726a8973,0xbfe743ac399d81d7,1
+np.float64,0xbfd13520faa26a42,0xbfd16c02034a8fe0,1
+np.float64,0xbfea9ea59ff53d4b,0xbfef70538ee12e00,1
+np.float64,0x3fd66633f8accc68,0x3fd6e23c13ab0e9e,1
+np.float64,0xbfe4071bd3e80e38,0xbfe5a3c9ba897d81,1
+np.float64,0xbfbe1659fa3c2cb0,0xbfbe2831d4fed196,1
+np.float64,0xbfd3312777a6624e,0xbfd37df09b9baeba,1
+np.float64,0x3fd13997caa27330,0x3fd170a4900c8907,1
+np.float64,0xbfe7cbc235ef9784,0xbfead4c4d6cbf129,1
+np.float64,0xbfe1456571628acb,0xbfe23e4ec768c8e2,1
+np.float64,0xbfedf1a044fbe340,0xbff35da96773e176,1
+np.float64,0x3fce38b1553c7160,0x3fce8270709774f9,1
+np.float64,0xbfecb01761f9602f,0xbff1c9e9d382f1f8,1
+np.float64,0xbfe0a03560e1406b,0xbfe17b8d5a1ca662,1
+np.float64,0x3fe50f37cbea1e70,0x3fe6fc55e1ae7da6,1
+np.float64,0xbfe12d64a0625aca,0xbfe221d3a7834e43,1
+np.float64,0xbf6fb288403f6500,0xbf6fb28d6f389db6,1
+np.float64,0x3fda831765b50630,0x3fdb55eecae58ca9,1
+np.float64,0x3fe1a0fe4c6341fc,0x3fe2ab9564304425,1
+np.float64,0xbfef2678a77e4cf1,0xbff56ff42b2797bb,1
+np.float64,0xbfab269c1c364d40,0xbfab29df1cd48779,1
+np.float64,0x3fe8ec82a271d906,0x3fec92567d7a6675,1
+np.float64,0xbfc235115f246a24,0xbfc244ee567682ea,1
+np.float64,0x3feef5bf8d7deb80,0x3ff50ad4875ee9bd,1
+np.float64,0x3fe768b5486ed16a,0x3fea421356160e65,1
+np.float64,0xbfd4255684a84aae,0xbfd47e8baf7ec7f6,1
+np.float64,0x3fc7f67f2b2fed00,0x3fc81ae83cf92dd5,1
+np.float64,0x3fe9b1b19a736364,0x3fedd4b0e24ee741,1
+np.float64,0x3fb27eb9e624fd70,0x3fb282dacd89ce28,1
+np.float64,0xbfd490b710a9216e,0xbfd4efcdeb213458,1
+np.float64,0xbfd1347b2ca268f6,0xbfd16b55dece2d38,1
+np.float64,0x3fc6a5668d2d4ad0,0x3fc6c41452c0c087,1
+np.float64,0xbfca7b209f34f640,0xbfcaac710486f6bd,1
+np.float64,0x3fc23a1a47247438,0x3fc24a047fd4c27a,1
+np.float64,0x3fdb1413a8b62828,0x3fdbf595e2d994bc,1
+np.float64,0xbfea69b396f4d367,0xbfef11bdd2b0709a,1
+np.float64,0x3fd14c9958a29934,0x3fd1846161b10422,1
+np.float64,0xbfe205f44be40be8,0xbfe325283aa3c6a8,1
+np.float64,0x3fecd03c9ef9a07a,0x3ff1ee85aaf52a01,1
+np.float64,0x3fe34281d7e68504,0x3fe4aab63e6de816,1
+np.float64,0xbfe120e2376241c4,0xbfe213023ab03939,1
+np.float64,0xbfe951edc4f2a3dc,0xbfed3615e38576f8,1
+np.float64,0x3fe5a2286f6b4450,0x3fe7c196e0ec10ed,1
+np.float64,0xbfed7a3e1f7af47c,0xbff2bcc0793555d2,1
+np.float64,0x3fe050274960a04e,0x3fe11e2e256ea5cc,1
+np.float64,0xbfcfa71f653f4e40,0xbfcffc11483d6a06,1
+np.float64,0x3f6ead2e403d5a00,0x3f6ead32f314c052,1
+np.float64,0x3fe3a2a026674540,0x3fe523bfe085f6ec,1
+np.float64,0xbfe294a62e65294c,0xbfe3d31ebd0b4ca2,1
+np.float64,0xbfb4894d06291298,0xbfb48ef4b8e256b8,1
+np.float64,0xbfc0c042c1218084,0xbfc0cc98ac2767c4,1
+np.float64,0xbfc6a32cb52d4658,0xbfc6c1d1597ed06b,1
+np.float64,0xbfd30f7777a61eee,0xbfd35aa39fee34eb,1
+np.float64,0x3fe7fc2c2eeff858,0x3feb1d8a558b5537,1
+np.float64,0x7fefffffffffffff,0x7ff8000000000000,1
+np.float64,0xbfdadf917bb5bf22,0xbfdbbbae9a9f67a0,1
+np.float64,0xbfcf0395e13e072c,0xbfcf5366015f7362,1
+np.float64,0xbfe8644c9170c899,0xbfebbc98e74a227d,1
+np.float64,0x3fc3b2d8e52765b0,0x3fc3c6f7d44cffaa,1
+np.float64,0x3fc57407b92ae810,0x3fc58e12ccdd47a1,1
+np.float64,0x3fd56a560daad4ac,0x3fd5d62b8dfcc058,1
+np.float64,0x3fd595deefab2bbc,0x3fd6046420b2f79b,1
+np.float64,0xbfd5360f50aa6c1e,0xbfd59ebaacd815b8,1
+np.float64,0x3fdfb6aababf6d54,0x3fe0970b8aac9f61,1
+np.float64,0x3ff0000000000000,0x3ff921fb54442d18,1
+np.float64,0xbfeb3a8958f67513,0xbff04872e8278c79,1
+np.float64,0x3f9e1ea6683c3d40,0x3f9e1fc326186705,1
+np.float64,0x3fe6b6d5986d6dac,0x3fe94175bd60b19d,1
+np.float64,0xbfee4d90b77c9b21,0xbff3e60e9134edc2,1
+np.float64,0x3fd806ce0cb00d9c,0x3fd8a14c4855a8f5,1
+np.float64,0x3fd54acc75aa9598,0x3fd5b4b72fcbb5df,1
+np.float64,0xbfe59761f16b2ec4,0xbfe7b2fa5d0244ac,1
+np.float64,0xbfcd4fa3513a9f48,0xbfcd92d0814a5383,1
+np.float64,0xbfdc827523b904ea,0xbfdd8c577b53053c,1
+np.float64,0xbfd4bb7f34a976fe,0xbfd51d00d9a99360,1
+np.float64,0xbfe818bc87f03179,0xbfeb48d1ea0199c5,1
+np.float64,0xbfa8a2e15c3145c0,0xbfa8a5510ba0e45c,1
+np.float64,0xbfb6d15f422da2c0,0xbfb6d922689da015,1
+np.float64,0x3fcd04eaab3a09d8,0x3fcd46131746ef08,1
+np.float64,0x3fcfb5cfbb3f6ba0,0x3fd0059d308237f3,1
+np.float64,0x3fe8dcf609f1b9ec,0x3fec7997973010b6,1
+np.float64,0xbfdf1834d7be306a,0xbfe03c1d4e2b48f0,1
+np.float64,0x3fee82ae50fd055c,0x3ff43b545066fe1a,1
+np.float64,0xbfde039c08bc0738,0xbfdf3d6ed4d2ee5c,1
+np.float64,0x3fec07389bf80e72,0x3ff1137ed0acd161,1
+np.float64,0xbfef44c010fe8980,0xbff5b488ad22a4c5,1
+np.float64,0x3f76e722e02dce00,0x3f76e72ab2759d88,1
+np.float64,0xbfcaa9e6053553cc,0xbfcadc41125fca93,1
+np.float64,0x3fed6088147ac110,0x3ff29c06c4ef35fc,1
+np.float64,0x3fd32bd836a657b0,0x3fd3785fdb75909f,1
+np.float64,0xbfeedbb1d97db764,0xbff4d87f6c82a93c,1
+np.float64,0xbfe40f31d5e81e64,0xbfe5ae292cf258a2,1
+np.float64,0x7ff8000000000000,0x7ff8000000000000,1
+np.float64,0xbfeb2b25bc76564c,0xbff039d81388550c,1
+np.float64,0x3fec5008fa78a012,0x3ff1604195801da3,1
+np.float64,0x3fce2d4f293c5aa0,0x3fce76b99c2db4da,1
+np.float64,0xbfdc435412b886a8,0xbfdd45e7b7813f1e,1
+np.float64,0x3fdf2c9d06be593c,0x3fe047cb03c141b6,1
+np.float64,0x3fddefc61ebbdf8c,0x3fdf26fb8fad9fae,1
+np.float64,0x3fab50218436a040,0x3fab537395eaf3bb,1
+np.float64,0xbfd5b95a8fab72b6,0xbfd62a191a59343a,1
+np.float64,0x3fdbf803b4b7f008,0x3fdcf211578e98c3,1
+np.float64,0xbfec8c255979184b,0xbff1a1bee108ed30,1
+np.float64,0x3fe33cdaffe679b6,0x3fe4a3a318cd994f,1
+np.float64,0x3fd8cf585cb19eb0,0x3fd97a408bf3c38c,1
+np.float64,0x3fe919dde07233bc,0x3fecdb0ea13a2455,1
+np.float64,0xbfd5ba35e4ab746c,0xbfd62b024805542d,1
+np.float64,0x3fd2f933e7a5f268,0x3fd343527565e97c,1
+np.float64,0xbfe5b9f8ddeb73f2,0xbfe7e1f772c3e438,1
+np.float64,0x3fe843cd92f0879c,0x3feb8a92d68eae3e,1
+np.float64,0xbfd096b234a12d64,0xbfd0c7beca2c6605,1
+np.float64,0xbfef3363da7e66c8,0xbff58c98dde6c27c,1
+np.float64,0x3fd51b01ddaa3604,0x3fd582109d89ead1,1
+np.float64,0x3fea0f10ff741e22,0x3fee736c2d2a2067,1
+np.float64,0x3fc276e7b724edd0,0x3fc28774520bc6d4,1
+np.float64,0xbfef9abc9f7f3579,0xbff69d49762b1889,1
+np.float64,0x3fe1539ec0e2a73e,0x3fe24f370b7687d0,1
+np.float64,0x3fad72350c3ae460,0x3fad765e7766682a,1
+np.float64,0x3fa289a47c251340,0x3fa28aae12f41646,1
+np.float64,0xbfe5c488e5eb8912,0xbfe7f05d7e7dcddb,1
+np.float64,0xbfc22ef1d7245de4,0xbfc23ebeb990a1b8,1
+np.float64,0x3fe59a0b80eb3418,0x3fe7b695fdcba1de,1
+np.float64,0xbfe9cad619f395ac,0xbfedff0514d91e2c,1
+np.float64,0x3fc8bc74eb3178e8,0x3fc8e48cb22da666,1
+np.float64,0xbfc5389a3f2a7134,0xbfc551cd6febc544,1
+np.float64,0x3fce82feb33d0600,0x3fceceecce2467ef,1
+np.float64,0x3fda346791b468d0,0x3fdaff95154a4ca6,1
+np.float64,0x3fd04501fea08a04,0x3fd073397b32607e,1
+np.float64,0xbfb6be498a2d7c90,0xbfb6c5f93aeb0e57,1
+np.float64,0x3fe1f030dd63e062,0x3fe30ad8fb97cce0,1
+np.float64,0xbfee3fb36dfc7f67,0xbff3d0a5e380b86f,1
+np.float64,0xbfa876773c30ecf0,0xbfa878d9d3df6a3f,1
+np.float64,0x3fdb58296eb6b054,0x3fdc40ceffb17f82,1
+np.float64,0xbfea16b5d8742d6c,0xbfee809b99fd6adc,1
+np.float64,0xbfdc5062b6b8a0c6,0xbfdd547623275fdb,1
+np.float64,0x3fef6db242fedb64,0x3ff61ab4cdaef467,1
+np.float64,0xbfc9f778f933eef0,0xbfca25eef1088167,1
+np.float64,0xbfd22063eba440c8,0xbfd260c8766c69cf,1
+np.float64,0x3fdd2379f2ba46f4,0x3fde40b025cb1ffa,1
+np.float64,0xbfea967af2f52cf6,0xbfef61a178774636,1
+np.float64,0x3fe4f5b49fe9eb6a,0x3fe6da8311a5520e,1
+np.float64,0x3feccde17b799bc2,0x3ff1ebd0ea228b71,1
+np.float64,0x3fe1bb76506376ec,0x3fe2cb56fca01840,1
+np.float64,0xbfef94e583ff29cb,0xbff68aeab8ba75a2,1
+np.float64,0x3fed024a55fa0494,0x3ff228ea5d456e9d,1
+np.float64,0xbfe877b2a8f0ef65,0xbfebdaa1a4712459,1
+np.float64,0x3fef687a8d7ed0f6,0x3ff60cf5fef8d448,1
+np.float64,0xbfeeb2dc8afd65b9,0xbff48dda6a906cd6,1
+np.float64,0x3fdb2e28aeb65c50,0x3fdc12620655eb7a,1
+np.float64,0x3fedc1863afb830c,0x3ff31ae823315e83,1
+np.float64,0xbfe6b1bb546d6376,0xbfe93a38163e3a59,1
+np.float64,0x3fe479c78468f390,0x3fe637e5c0fc5730,1
+np.float64,0x3fbad1fade35a3f0,0x3fbade9a43ca05cf,1
+np.float64,0xbfe2d1c563e5a38b,0xbfe41e712785900c,1
+np.float64,0xbfc08c33ed211868,0xbfc09817a752d500,1
+np.float64,0xbfecce0935f99c12,0xbff1ebfe84524037,1
+np.float64,0x3fce4ef0e73c9de0,0x3fce995638a3dc48,1
+np.float64,0xbfd2fb2343a5f646,0xbfd345592517ca18,1
+np.float64,0x3fd848f7cdb091f0,0x3fd8e8bee5f7b49a,1
+np.float64,0x3fe532b7d2ea6570,0x3fe72b9ac747926a,1
+np.float64,0x3fd616aadcac2d54,0x3fd68d692c5cad42,1
+np.float64,0x3fd7720eb3aee41c,0x3fd801206a0e1e43,1
+np.float64,0x3fee835a35fd06b4,0x3ff43c7175eb7a54,1
+np.float64,0xbfe2e8f70b65d1ee,0xbfe43b2800a947a7,1
+np.float64,0xbfed38f45d7a71e9,0xbff26acd6bde7174,1
+np.float64,0xbfc0c62661218c4c,0xbfc0d28964d66120,1
+np.float64,0x3fe97940bef2f282,0x3fed76b986a74ee3,1
+np.float64,0x3fc96f7dc532def8,0x3fc99b20044c8fcf,1
+np.float64,0xbfd60201eeac0404,0xbfd677675efaaedc,1
+np.float64,0x3fe63c0867ec7810,0x3fe894f060200140,1
+np.float64,0xbfef6144b37ec289,0xbff5fa589a515ba8,1
+np.float64,0xbfde2da0c8bc5b42,0xbfdf6d0b59e3232a,1
+np.float64,0xbfd7401612ae802c,0xbfd7cb74ddd413b9,1
+np.float64,0x3fe41c012de83802,0x3fe5be9d87da3f82,1
+np.float64,0x3fdf501609bea02c,0x3fe05c1d96a2270b,1
+np.float64,0x3fcf9fa1233f3f40,0x3fcff45598e72f07,1
+np.float64,0x3fd4e3895ea9c714,0x3fd547580d8392a2,1
+np.float64,0x3fe1e8ff5fe3d1fe,0x3fe3022a0b86a2ab,1
+np.float64,0xbfe0aa55956154ab,0xbfe18768823da589,1
+np.float64,0x3fb2a0aa26254150,0x3fb2a4e1faff1c93,1
+np.float64,0x3fd3823417a70468,0x3fd3d2f808dbb167,1
+np.float64,0xbfaed323643da640,0xbfaed7e9bef69811,1
+np.float64,0x3fe661e8c4ecc3d2,0x3fe8c9c535f43c16,1
+np.float64,0xbfa429777c2852f0,0xbfa42acd38ba02a6,1
+np.float64,0x3fb5993ea22b3280,0x3fb59fd353e47397,1
+np.float64,0x3fee62d21efcc5a4,0x3ff40788f9278ade,1
+np.float64,0xbf813fb810227f80,0xbf813fc56d8f3c53,1
+np.float64,0x3fd56205deaac40c,0x3fd5cd59671ef193,1
+np.float64,0x3fd31a4de5a6349c,0x3fd365fe401b66e8,1
+np.float64,0xbfec7cc7a478f98f,0xbff190cf69703ca4,1
+np.float64,0xbf755881a02ab100,0xbf755887f52e7794,1
+np.float64,0x3fdd1c92e6ba3924,0x3fde38efb4e8605c,1
+np.float64,0x3fdf49da80be93b4,0x3fe0588af8dd4a34,1
+np.float64,0x3fe1fcdbf2e3f9b8,0x3fe31a27b9d273f2,1
+np.float64,0x3fe2a0f18be541e4,0x3fe3e23b159ce20f,1
+np.float64,0xbfed0f1561fa1e2b,0xbff23820fc0a54ca,1
+np.float64,0x3fe34a006c669400,0x3fe4b419b9ed2b83,1
+np.float64,0xbfd51be430aa37c8,0xbfd583005a4d62e7,1
+np.float64,0x3fe5ec4e336bd89c,0x3fe826caad6b0f65,1
+np.float64,0xbfdad71b1fb5ae36,0xbfdbb25bef8b53d8,1
+np.float64,0xbfe8eac2d871d586,0xbfec8f8cac7952f9,1
+np.float64,0xbfe1d5aef663ab5e,0xbfe2eae14b7ccdfd,1
+np.float64,0x3fec11d3157823a6,0x3ff11e8279506753,1
+np.float64,0xbfe67ff1166cffe2,0xbfe8f3e61c1dfd32,1
+np.float64,0xbfd101eecda203de,0xbfd136e0e9557022,1
+np.float64,0x3fde6c9e5cbcd93c,0x3fdfb48ee7efe134,1
+np.float64,0x3fec3ede9c787dbe,0x3ff14dead1e5cc1c,1
+np.float64,0x3fe7a022086f4044,0x3fea93ce2980b161,1
+np.float64,0xbfc3b2b1b7276564,0xbfc3c6d02d60bb21,1
+np.float64,0x7ff0000000000000,0x7ff8000000000000,1
+np.float64,0x3fe60b5647ec16ac,0x3fe8517ef0544b40,1
+np.float64,0xbfd20ab654a4156c,0xbfd24a2f1b8e4932,1
+np.float64,0xbfe4aa1e2f69543c,0xbfe677005cbd2646,1
+np.float64,0xbfc831cc0b306398,0xbfc8574910d0b86d,1
+np.float64,0xbfc3143495262868,0xbfc3267961b79198,1
+np.float64,0x3fc14d64c1229ac8,0x3fc15afea90a319d,1
+np.float64,0x3fc0a5a207214b48,0x3fc0b1bd2f15c1b0,1
+np.float64,0xbfc0b8351521706c,0xbfc0c4792672d6db,1
+np.float64,0xbfdc383600b8706c,0xbfdd398429e163bd,1
+np.float64,0x3fd9e17321b3c2e8,0x3fdaa4c4d140a622,1
+np.float64,0xbfd44f079ea89e10,0xbfd4aa7d6deff4ab,1
+np.float64,0xbfc3de52a927bca4,0xbfc3f2f8f65f4c3f,1
+np.float64,0x3fe7779d566eef3a,0x3fea57f8592dbaad,1
+np.float64,0xbfe309039e661207,0xbfe462f47f9a64e5,1
+np.float64,0x3fd8e06d08b1c0dc,0x3fd98cc946e440a6,1
+np.float64,0x3fdde66c9ebbccd8,0x3fdf1c68009a8dc1,1
+np.float64,0x3fd4369c6ba86d38,0x3fd490bf460a69e4,1
+np.float64,0xbfe132252fe2644a,0xbfe22775e109cc2e,1
+np.float64,0x3fee15483c7c2a90,0x3ff39111de89036f,1
+np.float64,0xbfc1d5ee8123abdc,0xbfc1e4d66c6871a5,1
+np.float64,0x3fc851c52b30a388,0x3fc877d93fb4ae1a,1
+np.float64,0x3fdaade707b55bd0,0x3fdb85001661fffe,1
+np.float64,0xbfe79fb7f96f3f70,0xbfea9330ec27ac10,1
+np.float64,0xbfe8b0f725f161ee,0xbfec3411c0e4517a,1
+np.float64,0xbfea79f5f374f3ec,0xbfef2e9dd9270488,1
+np.float64,0x3fe0b5fe5b616bfc,0x3fe19512a36a4534,1
+np.float64,0xbfad7c622c3af8c0,0xbfad808fea96a804,1
+np.float64,0xbfe3e24dbce7c49c,0xbfe574b4c1ea9818,1
+np.float64,0xbfe80b038af01607,0xbfeb33fec279576a,1
+np.float64,0xbfef69e2ea7ed3c6,0xbff610a5593a18bc,1
+np.float64,0x3fdcc0bb39b98178,0x3fddd1f8c9a46430,1
+np.float64,0xbfba39976a347330,0xbfba4563bb5369a4,1
+np.float64,0xbfebf9768ef7f2ed,0xbff10548ab725f74,1
+np.float64,0xbfec21c066f84381,0xbff12f2803ba052f,1
+np.float64,0xbfca216a6b3442d4,0xbfca50c5e1e5748e,1
+np.float64,0x3fd5e40da4abc81c,0x3fd65783f9a22946,1
+np.float64,0x3fc235ca17246b98,0x3fc245a8f453173f,1
+np.float64,0x3fecb5b867796b70,0x3ff1d046a0bfda69,1
+np.float64,0x3fcb457fef368b00,0x3fcb7b6daa8165a7,1
+np.float64,0xbfa5ed6f7c2bdae0,0xbfa5ef27244e2e42,1
+np.float64,0x3fecf618a1f9ec32,0x3ff21a86cc104542,1
+np.float64,0x3fe9d95413f3b2a8,0x3fee178dcafa11fc,1
+np.float64,0xbfe93a5357f274a7,0xbfed0f9a565da84a,1
+np.float64,0xbfeb9e45ff773c8c,0xbff0a93cab8e258d,1
+np.float64,0x3fcbd9d0bd37b3a0,0x3fcc134e87cae241,1
+np.float64,0x3fe55d4db76aba9c,0x3fe764a0e028475a,1
+np.float64,0xbfc8a6fc71314df8,0xbfc8ceaafbfc59a7,1
+np.float64,0x3fe0615fa660c2c0,0x3fe1323611c4cbc2,1
+np.float64,0x3fb965558632cab0,0x3fb9700b84de20ab,1
+np.float64,0x8000000000000000,0x8000000000000000,1
+np.float64,0x3fe76776c6eeceee,0x3fea40403e24a9f1,1
+np.float64,0x3fe3b7f672676fec,0x3fe53ece71a1a1b1,1
+np.float64,0xbfa9b82ba4337050,0xbfa9baf15394ca64,1
+np.float64,0xbfe31faf49663f5e,0xbfe47f31b1ca73dc,1
+np.float64,0xbfcc4c6beb3898d8,0xbfcc88c5f814b2c1,1
+np.float64,0x3fd481530aa902a8,0x3fd4df8df03bc155,1
+np.float64,0x3fd47593b8a8eb28,0x3fd4d327ab78a1a8,1
+np.float64,0x3fd70e6ccbae1cd8,0x3fd7962fe8b63d46,1
+np.float64,0x3fd25191f7a4a324,0x3fd2941623c88e02,1
+np.float64,0x3fd0603ef0a0c07c,0x3fd08f64e97588dc,1
+np.float64,0xbfc653bae52ca774,0xbfc6711e5e0d8ea9,1
+np.float64,0xbfd11db8fea23b72,0xbfd153b63c6e8812,1
+np.float64,0xbfea9bde25f537bc,0xbfef6b52268e139a,1
+np.float64,0x1,0x1,1
+np.float64,0xbfefd3806d7fa701,0xbff776dcef9583ca,1
+np.float64,0xbfe0fb8cfde1f71a,0xbfe1e6e2e774a8f8,1
+np.float64,0x3fea384534f4708a,0x3feebadaa389be0d,1
+np.float64,0x3feff761c97feec4,0x3ff866157b9d072d,1
+np.float64,0x3fe7131ccb6e263a,0x3fe9c58b4389f505,1
+np.float64,0x3fe9084f7872109e,0x3fecbed0355dbc8f,1
+np.float64,0x3f708e89e0211d00,0x3f708e8cd4946b9e,1
+np.float64,0xbfe39185f067230c,0xbfe50e1cd178244d,1
+np.float64,0x3fd67cc1a9acf984,0x3fd6fa514784b48c,1
+np.float64,0xbfecaef005f95de0,0xbff1c89c9c3ef94a,1
+np.float64,0xbfe12eec81e25dd9,0xbfe223a4285bba9a,1
+np.float64,0x3fbe7f9faa3cff40,0x3fbe92363525068d,1
+np.float64,0xbfe1950b2b632a16,0xbfe29d45fc1e4ce9,1
+np.float64,0x3fe45049e6e8a094,0x3fe6020de759e383,1
+np.float64,0x3fe4d10c8969a21a,0x3fe6aa1fe42cbeb9,1
+np.float64,0xbfe9d04658f3a08d,0xbfee08370a0dbf0c,1
+np.float64,0x3fe14fb314e29f66,0x3fe24a8d73663521,1
+np.float64,0xbfef4abfe4fe9580,0xbff5c2c1ff1250ca,1
+np.float64,0xbfe6162b366c2c56,0xbfe86073ac3c6243,1
+np.float64,0x3feffe781e7ffcf0,0x3ff8d2cbedd6a1b5,1
+np.float64,0xbff0000000000000,0xbff921fb54442d18,1
+np.float64,0x3fc1dc45ad23b888,0x3fc1eb3d9bddda58,1
+np.float64,0xbfe793f6fcef27ee,0xbfea81c93d65aa64,1
+np.float64,0x3fdef6d2bbbdeda4,0x3fe029079d42efb5,1
+np.float64,0xbfdf0ac479be1588,0xbfe0346dbc95963f,1
+np.float64,0xbfd33927d7a67250,0xbfd38653f90a5b73,1
+np.float64,0xbfe248b072e49161,0xbfe37631ef6572e1,1
+np.float64,0xbfc8ceb6af319d6c,0xbfc8f7288657f471,1
+np.float64,0x3fdd7277fcbae4f0,0x3fde99886e6766ef,1
+np.float64,0xbfe0d30c6561a619,0xbfe1b72f90bf53d6,1
+np.float64,0xbfcb0fe07d361fc0,0xbfcb448e2eae9542,1
+np.float64,0xbfe351f57fe6a3eb,0xbfe4be13eef250f2,1
+np.float64,0x3fe85ec02cf0bd80,0x3febb407e2e52e4c,1
+np.float64,0x3fc8bc59b53178b0,0x3fc8e470f65800ec,1
+np.float64,0xbfd278d447a4f1a8,0xbfd2bd133c9c0620,1
+np.float64,0x3feda5cfd87b4ba0,0x3ff2f5ab4324f43f,1
+np.float64,0xbfd2b32a36a56654,0xbfd2fa09c36afd34,1
+np.float64,0xbfed4a81cb7a9504,0xbff28077a4f4fff4,1
+np.float64,0x3fdf079bf9be0f38,0x3fe0329f7fb13f54,1
+np.float64,0x3fd14097f6a28130,0x3fd177e9834ec23f,1
+np.float64,0xbfaeab11843d5620,0xbfaeafc5531eb6b5,1
+np.float64,0xbfac3f8c14387f20,0xbfac433893d53360,1
+np.float64,0xbfc139d7ed2273b0,0xbfc14743adbbe660,1
+np.float64,0x3fe78cb02cef1960,0x3fea7707f76edba9,1
+np.float64,0x3fefe16b41ffc2d6,0x3ff7bff36a7aa7b8,1
+np.float64,0x3fec5260d378a4c2,0x3ff162c588b0da38,1
+np.float64,0x3fedb146f17b628e,0x3ff304f90d3a15d1,1
+np.float64,0x3fd1fd45f7a3fa8c,0x3fd23c2dc3929e20,1
+np.float64,0x3fe0898a5ee11314,0x3fe1610c63e726eb,1
+np.float64,0x3fe7719946eee332,0x3fea4f205eecb59f,1
+np.float64,0x3fe955218972aa44,0x3fed3b530c1f7651,1
+np.float64,0x3fe0ccbf4461997e,0x3fe1afc7b4587836,1
+np.float64,0xbfe9204314f24086,0xbfece5605780e346,1
+np.float64,0xbfe552017feaa403,0xbfe755773cbd74d5,1
+np.float64,0x3fd8ce4b32b19c98,0x3fd9791c8dd44eae,1
+np.float64,0x3fef89acd9ff135a,0x3ff668f78adf7ced,1
+np.float64,0x3fc9d713ad33ae28,0x3fca04da6c293bbd,1
+np.float64,0xbfe22d9c4de45b38,0xbfe3553effadcf92,1
+np.float64,0x3fa5cda38c2b9b40,0x3fa5cf53c5787482,1
+np.float64,0x3fa878ebdc30f1e0,0x3fa87b4f2bf1d4c3,1
+np.float64,0x3fe8030353700606,0x3feb27e196928789,1
+np.float64,0x3fb50607222a0c10,0x3fb50c188ce391e6,1
+np.float64,0x3fd9ba4ab4b37494,0x3fda79fa8bd40f45,1
+np.float64,0x3fb564598e2ac8b0,0x3fb56abe42d1ba13,1
+np.float64,0xbfd1177c83a22efa,0xbfd14d3d7ef30cc4,1
+np.float64,0xbfd952cec7b2a59e,0xbfda09215d17c0ac,1
+np.float64,0x3fe1d8066663b00c,0x3fe2edb35770b8dd,1
+np.float64,0xbfc89427a3312850,0xbfc8bb7a7c389497,1
+np.float64,0xbfe86ebfd3f0dd80,0xbfebccc2ba0f506c,1
+np.float64,0x3fc390578b2720b0,0x3fc3a40cb7f5f728,1
+np.float64,0xbfd122f9b8a245f4,0xbfd15929dc57a897,1
+np.float64,0x3f8d0636d03a0c80,0x3f8d06767de576df,1
+np.float64,0xbfe4b55d8b696abb,0xbfe685be537a9637,1
+np.float64,0xbfdfd51cf9bfaa3a,0xbfe0a894fcff0c76,1
+np.float64,0xbfd37c1f52a6f83e,0xbfd3cc9593c37aad,1
+np.float64,0x3fd0e8283ea1d050,0x3fd11c25c800785a,1
+np.float64,0x3fd3160784a62c10,0x3fd36183a6c2880c,1
+np.float64,0x3fd4c66e57a98cdc,0x3fd5288fe3394eff,1
+np.float64,0x3fee2f7e3afc5efc,0x3ff3b8063eb30cdc,1
+np.float64,0xbfe526773a6a4cee,0xbfe71b4364215b18,1
+np.float64,0x3fea01181e740230,0x3fee5b65eccfd130,1
+np.float64,0xbfe51c03f76a3808,0xbfe70d5919d37587,1
+np.float64,0x3fd97e1375b2fc28,0x3fda3845da40b22b,1
+np.float64,0x3fd5c14a14ab8294,0x3fd632890d07ed03,1
+np.float64,0xbfec9b474279368e,0xbff1b28f50584fe3,1
+np.float64,0x3fe0139ca860273a,0x3fe0d7fc377f001c,1
+np.float64,0x3fdb080c9db61018,0x3fdbe85056358fa0,1
+np.float64,0xbfdd72ceb1bae59e,0xbfde99ea171661eb,1
+np.float64,0xbfe64e934fec9d26,0xbfe8aec2ef24be63,1
+np.float64,0x3fd1036a93a206d4,0x3fd1386adabe01bd,1
+np.float64,0x3febc9d4a5f793aa,0x3ff0d4c069f1e67d,1
+np.float64,0xbfe547a16fea8f43,0xbfe747902fe6fb4d,1
+np.float64,0x3fc289b0f9251360,0x3fc29a709de6bdd9,1
+np.float64,0xbfe694494a6d2892,0xbfe9108f3dc133e2,1
+np.float64,0x3fd827dfe4b04fc0,0x3fd8c4fe40532b91,1
+np.float64,0xbfe8b89418f17128,0xbfec400c5a334b2e,1
+np.float64,0x3fed5605147aac0a,0x3ff28ed1f612814a,1
+np.float64,0xbfed36af31fa6d5e,0xbff26804e1f71af0,1
+np.float64,0x3fdbb01c02b76038,0x3fdca2381558bbf0,1
+np.float64,0x3fe2a951666552a2,0x3fe3ec88f780f9e6,1
+np.float64,0x3fe662defbecc5be,0x3fe8cb1dbfca98ab,1
+np.float64,0x3fd098b1b3a13164,0x3fd0c9d064e4eaf2,1
+np.float64,0x3fefa10edeff421e,0x3ff6b1c6187b18a8,1
+np.float64,0xbfec4feb7a789fd7,0xbff16021ef37a219,1
+np.float64,0x3fd8e415bbb1c82c,0x3fd990c1f8b786bd,1
+np.float64,0xbfead5a09275ab41,0xbfefd44fab5b4f6e,1
+np.float64,0xbfe8666c16f0ccd8,0xbfebbfe0c9f2a9ae,1
+np.float64,0x3fdc962132b92c44,0x3fdda2525a6f406c,1
+np.float64,0xbfe2037f03e406fe,0xbfe3222ec2a3449e,1
+np.float64,0xbfec82c27e790585,0xbff197626ea9df1e,1
+np.float64,0x3fd2b4e03ca569c0,0x3fd2fbd3c7fda23e,1
+np.float64,0xbfe9b0dee5f361be,0xbfedd34f6d3dfe8a,1
+np.float64,0x3feef45cd17de8ba,0x3ff508180687b591,1
+np.float64,0x3f82c39bf0258700,0x3f82c3ad24c3b3f1,1
+np.float64,0xbfca848cfd350918,0xbfcab612ce258546,1
+np.float64,0x3fd6442aaaac8854,0x3fd6bdea54016e48,1
+np.float64,0x3fe550799e6aa0f4,0x3fe75369c9ea5b1e,1
+np.float64,0xbfe0e9d5a361d3ac,0xbfe1d20011139d89,1
+np.float64,0x3fbfc9ff1e3f9400,0x3fbfdf0ea6885c80,1
+np.float64,0xbfa187e8b4230fd0,0xbfa188c95072092e,1
+np.float64,0x3fcd28c9533a5190,0x3fcd6ae879c21b47,1
+np.float64,0x3fc6227ec52c4500,0x3fc63f1fbb441d29,1
+np.float64,0x3fe9b7a2ed736f46,0x3feddeab49b2d176,1
+np.float64,0x3fd4aee93da95dd4,0x3fd50fb3b71e0339,1
+np.float64,0xbfe164dacf62c9b6,0xbfe263bb2f7dd5d9,1
+np.float64,0x3fec62e525f8c5ca,0x3ff17496416d9921,1
+np.float64,0x3fdd363ee0ba6c7c,0x3fde55c6a49a5f86,1
+np.float64,0x3fe65cbf75ecb97e,0x3fe8c28d31ff3ebd,1
+np.float64,0xbfe76d27ca6eda50,0xbfea4899e3661425,1
+np.float64,0xbfc305738d260ae8,0xbfc3178dcfc9d30f,1
+np.float64,0xbfd3aa2a54a75454,0xbfd3fcf1e1ce8328,1
+np.float64,0x3fd1609fc9a2c140,0x3fd1992efa539b9f,1
+np.float64,0xbfac1291bc382520,0xbfac162cc7334b4d,1
+np.float64,0xbfedb461ea7b68c4,0xbff309247850455d,1
+np.float64,0xbfe8d2adf8f1a55c,0xbfec6947be90ba92,1
+np.float64,0xbfd7128965ae2512,0xbfd79a9855bcfc5a,1
+np.float64,0x3fe8deb09471bd62,0x3fec7c56b3aee531,1
+np.float64,0xbfe5f4d329ebe9a6,0xbfe8327ea8189af8,1
+np.float64,0xbfd3b46ac9a768d6,0xbfd407b80b12ff17,1
+np.float64,0x3fec899d7cf9133a,0x3ff19ef26baca36f,1
+np.float64,0xbfec192fd5783260,0xbff126306e507fd0,1
+np.float64,0x3fe945bdaef28b7c,0x3fed222f787310bf,1
+np.float64,0xbfeff9635d7ff2c7,0xbff87d6773f318eb,1
+np.float64,0xbfd604b81cac0970,0xbfd67a4aa852559a,1
+np.float64,0x3fcd1cc9d53a3990,0x3fcd5e962e237c24,1
+np.float64,0xbfed77b0fffaef62,0xbff2b97a1c9b6483,1
+np.float64,0xbfc9c69325338d28,0xbfc9f401500402fb,1
+np.float64,0xbfdf97e246bf2fc4,0xbfe0855601ea9db3,1
+np.float64,0x3fc7e6304f2fcc60,0x3fc80a4e718504cd,1
+np.float64,0x3fec3b599e7876b4,0x3ff14a2d1b9c68e6,1
+np.float64,0xbfe98618e1f30c32,0xbfed8bfbb31c394a,1
+np.float64,0xbfe59b3c0feb3678,0xbfe7b832d6df81de,1
+np.float64,0xbfe54ce2fe6a99c6,0xbfe74e9a85be4116,1
+np.float64,0x3fc9db49cb33b690,0x3fca092737ef500a,1
+np.float64,0xbfb4a922ae295248,0xbfb4aee4e39078a9,1
+np.float64,0xbfd0e542e0a1ca86,0xbfd11925208d66af,1
+np.float64,0x3fd70543f2ae0a88,0x3fd78c5e9238a3ee,1
+np.float64,0x3fd67f7a7facfef4,0x3fd6fd3998df8545,1
+np.float64,0xbfe40b643d6816c8,0xbfe5a947e427f298,1
+np.float64,0xbfcd85f69b3b0bec,0xbfcdcaa24b75f1a3,1
+np.float64,0x3fec705fb4f8e0c0,0x3ff1833c82163ee2,1
+np.float64,0x3fb37650ea26eca0,0x3fb37b20c16fb717,1
+np.float64,0x3fe5ebfa55ebd7f4,0x3fe826578d716e70,1
+np.float64,0x3fe991dfe5f323c0,0x3fed9f8a4bf1f588,1
+np.float64,0xbfd658bd0aacb17a,0xbfd6d3dd06e54900,1
+np.float64,0xbfc24860252490c0,0xbfc258701a0b9290,1
+np.float64,0xbfefb8d763ff71af,0xbff705b6ea4a569d,1
+np.float64,0x3fb8fcb4ae31f970,0x3fb906e809e7899f,1
+np.float64,0x3fce6343cb3cc688,0x3fceae41d1629625,1
+np.float64,0xbfd43d5a11a87ab4,0xbfd497da25687e07,1
+np.float64,0xbfe9568851f2ad11,0xbfed3d9e5fe83a76,1
+np.float64,0x3fe1b66153e36cc2,0x3fe2c53c7e016271,1
+np.float64,0x3fef27452bfe4e8a,0x3ff571b3486ed416,1
+np.float64,0x3fca87c0a7350f80,0x3fcab958a7bb82d4,1
+np.float64,0xbfd8776a8fb0eed6,0xbfd91afaf2f50edf,1
+np.float64,0x3fe9522a76f2a454,0x3fed3679264e1525,1
+np.float64,0x3fea14ff2cf429fe,0x3fee7da6431cc316,1
+np.float64,0x3fe970618bf2e0c4,0x3fed68154d54dd97,1
+np.float64,0x3fd3410cfca68218,0x3fd38e9b21792240,1
+np.float64,0xbf6a8070c0350100,0xbf6a8073c7c34517,1
+np.float64,0xbfbe449de23c8938,0xbfbe56c8e5e4d98b,1
+np.float64,0x3fedbc92e27b7926,0x3ff314313216d8e6,1
+np.float64,0xbfe3be4706677c8e,0xbfe546d3ceb85aea,1
+np.float64,0x3fe30cd6d76619ae,0x3fe467b6f2664a8d,1
+np.float64,0x3fd7d69b21afad38,0x3fd86d54284d05ad,1
+np.float64,0xbfe501001fea0200,0xbfe6e978afcff4d9,1
+np.float64,0xbfe44ba3d8e89748,0xbfe5fc0a31cd1e3e,1
+np.float64,0x3fec52f7c078a5f0,0x3ff16367acb209b2,1
+np.float64,0xbfcb19efcb3633e0,0xbfcb4ed9235a7d47,1
+np.float64,0xbfab86796c370cf0,0xbfab89df7bf15710,1
+np.float64,0xbfb962feda32c600,0xbfb96db1e1679c98,1
+np.float64,0x3fe0dd14e861ba2a,0x3fe1c2fc72810567,1
+np.float64,0x3fe41bcc6de83798,0x3fe5be59b7f9003b,1
+np.float64,0x3fc82f4c4f305e98,0x3fc854bd9798939f,1
+np.float64,0xbfcd143a613a2874,0xbfcd55cbd1619d84,1
+np.float64,0xbfd52da61baa5b4c,0xbfd595d0b3543439,1
+np.float64,0xbfb71b4a8e2e3698,0xbfb7235a4ab8432f,1
+np.float64,0xbfec141a19782834,0xbff120e1e39fc856,1
+np.float64,0xbfdba9319db75264,0xbfdc9a8ca2578bb2,1
+np.float64,0xbfbce5d74639cbb0,0xbfbcf5a4878cfa51,1
+np.float64,0x3fde67f7b3bccff0,0x3fdfaf45a9f843ad,1
+np.float64,0xbfe12d87bc625b10,0xbfe221fd4476eb71,1
+np.float64,0x3fe35b8f6be6b71e,0x3fe4ca20f65179e1,1
+np.float64,0xbfdbada1d3b75b44,0xbfdc9f78b19f93d1,1
+np.float64,0xbfc60159c52c02b4,0xbfc61d79b879f598,1
+np.float64,0x3fd6b81c38ad7038,0x3fd739c27bfa16d8,1
+np.float64,0xbfd646a253ac8d44,0xbfd6c08c19612bbb,1
+np.float64,0xbfe6babef0ed757e,0xbfe94703d0bfa311,1
+np.float64,0xbfed5671f1faace4,0xbff28f5a3f3683d0,1
+np.float64,0x3fc01d1e85203a40,0x3fc02817ec0dfd38,1
+np.float64,0xbfe9188a61f23115,0xbfecd8eb5da84223,1
+np.float64,0x3fdca3bab9b94774,0x3fddb1868660c239,1
+np.float64,0xbfa255750c24aaf0,0xbfa25675f7b36343,1
+np.float64,0x3fb3602db626c060,0x3fb364ed2d5b2876,1
+np.float64,0xbfd30a14bda6142a,0xbfd354ff703b8862,1
+np.float64,0xbfe1cfe381639fc7,0xbfe2e3e720b968c8,1
+np.float64,0xbfd2af6a4fa55ed4,0xbfd2f61e190bcd1f,1
+np.float64,0xbfe93c50937278a1,0xbfed12d64bb10d73,1
+np.float64,0x3fddd8bc44bbb178,0x3fdf0ced7f9005cc,1
+np.float64,0x3fdb2bc73cb65790,0x3fdc0fc0e18e425e,1
+np.float64,0xbfd073f6aba0e7ee,0xbfd0a3cb5468a961,1
+np.float64,0x3fed4bad7b7a975a,0x3ff281ebeb75e414,1
+np.float64,0xbfdc75b50bb8eb6a,0xbfdd7e1a7631cb22,1
+np.float64,0x3fd458a90fa8b154,0x3fd4b4a5817248ce,1
+np.float64,0x3feead5db57d5abc,0x3ff484286fab55ff,1
+np.float64,0x3fb3894382271280,0x3fb38e217b4e7905,1
+np.float64,0xffefffffffffffff,0x7ff8000000000000,1
+np.float64,0xbfe428212ae85042,0xbfe5ce36f226bea8,1
+np.float64,0xbfc08b39f7211674,0xbfc0971b93ebc7ad,1
+np.float64,0xbfc2e7cf5525cfa0,0xbfc2f994eb72b623,1
+np.float64,0xbfdb0d85afb61b0c,0xbfdbee5a2de3c5db,1
+np.float64,0xfff0000000000000,0x7ff8000000000000,1
+np.float64,0xbfd0d36af7a1a6d6,0xbfd106a5f05ef6ff,1
+np.float64,0xbfc333d0912667a0,0xbfc3467162b7289a,1
+np.float64,0x3fcdababc53b5758,0x3fcdf16458c20fa8,1
+np.float64,0x3fd0821b38a10438,0x3fd0b26e3e0b9185,1
+np.float64,0x0,0x0,1
+np.float64,0x3feb7f70edf6fee2,0x3ff08ae81854bf20,1
+np.float64,0x3fe6e075716dc0ea,0x3fe97cc5254be6ff,1
+np.float64,0x3fea13b682f4276e,0x3fee7b6f18073b5b,1
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/data/umath-validation-set-arcsinh.csv b/python/user_packages/Python313/site-packages/numpy/_core/tests/data/umath-validation-set-arcsinh.csv
new file mode 100644
index 0000000000000000000000000000000000000000..4618d3fdda28aa524593a24262a05925df99cd6d
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/tests/data/umath-validation-set-arcsinh.csv
@@ -0,0 +1,1429 @@
+dtype,input,output,ulperrortol
+np.float32,0xbf24142a,0xbf1a85ef,2
+np.float32,0x3e71cf91,0x3e6f9e37,2
+np.float32,0xe52a7,0xe52a7,2
+np.float32,0x3ef1e074,0x3ee9add9,2
+np.float32,0x806160ac,0x806160ac,2
+np.float32,0x7e2d59a2,0x42af4798,2
+np.float32,0xbf32cac9,0xbf26bf96,2
+np.float32,0x3f081701,0x3f026142,2
+np.float32,0x3f23cc88,0x3f1a499c,2
+np.float32,0xbf090d94,0xbf033ad0,2
+np.float32,0x803af2fc,0x803af2fc,2
+np.float32,0x807eb17e,0x807eb17e,2
+np.float32,0x5c0d8e,0x5c0d8e,2
+np.float32,0x3f7b79d2,0x3f5e6b1d,2
+np.float32,0x806feeae,0x806feeae,2
+np.float32,0x3e4b423a,0x3e49f274,2
+np.float32,0x3f49e5ac,0x3f394a41,2
+np.float32,0x3f18cd4e,0x3f10ef35,2
+np.float32,0xbed75734,0xbed17322,2
+np.float32,0x7f591151,0x42b28085,2
+np.float32,0xfefe9da6,0xc2b16f51,2
+np.float32,0xfeac90fc,0xc2b0a82a,2
+np.float32,0x805c198e,0x805c198e,2
+np.float32,0x7f66d6df,0x42b2a004,2
+np.float32,0x505438,0x505438,2
+np.float32,0xbf39a209,0xbf2c5255,2
+np.float32,0x7fa00000,0x7fe00000,2
+np.float32,0xc84cb,0xc84cb,2
+np.float32,0x7f07d6f5,0x42b19088,2
+np.float32,0x79d7e4,0x79d7e4,2
+np.float32,0xff32f6a0,0xc2b21db1,2
+np.float32,0x7c005c05,0x42a9222e,2
+np.float32,0x3ec449aa,0x3ebfc5ae,2
+np.float32,0x800ec323,0x800ec323,2
+np.float32,0xff1c904c,0xc2b1d93a,2
+np.float32,0x7f4eca52,0x42b267b0,2
+np.float32,0x3ee06540,0x3ed9c514,2
+np.float32,0x6aab4,0x6aab4,2
+np.float32,0x3e298d8c,0x3e28c99e,2
+np.float32,0xbf38d162,0xbf2ba94a,2
+np.float32,0x2d9083,0x2d9083,2
+np.float32,0x7eae5032,0x42b0ad52,2
+np.float32,0x3ead5b3c,0x3eaa3443,2
+np.float32,0x806fef66,0x806fef66,2
+np.float32,0x3f5b614e,0x3f46ca71,2
+np.float32,0xbf4c906a,0xbf3b60fc,2
+np.float32,0x8049453e,0x8049453e,2
+np.float32,0x3d305220,0x3d304432,2
+np.float32,0x2e1a89,0x2e1a89,2
+np.float32,0xbf4e74ec,0xbf3cdacf,2
+np.float32,0x807a827a,0x807a827a,2
+np.float32,0x80070745,0x80070745,2
+np.float32,0xbe1ba2fc,0xbe1b0b28,2
+np.float32,0xbe5131d0,0xbe4fc421,2
+np.float32,0x5bfd98,0x5bfd98,2
+np.float32,0xbd8e1a48,0xbd8dfd27,2
+np.float32,0x8006c160,0x8006c160,2
+np.float32,0x346490,0x346490,2
+np.float32,0xbdbdf060,0xbdbdaaf0,2
+np.float32,0x3ea9d0c4,0x3ea6d8c7,2
+np.float32,0xbf2aaa28,0xbf200916,2
+np.float32,0xbf160c26,0xbf0e9047,2
+np.float32,0x80081fd4,0x80081fd4,2
+np.float32,0x7db44283,0x42adf8b6,2
+np.float32,0xbf1983f8,0xbf118bf5,2
+np.float32,0x2c4a35,0x2c4a35,2
+np.float32,0x6165a7,0x6165a7,2
+np.float32,0xbe776b44,0xbe75129f,2
+np.float32,0xfe81841a,0xc2b0153b,2
+np.float32,0xbf7d1b2f,0xbf5f9461,2
+np.float32,0x80602d36,0x80602d36,2
+np.float32,0xfe8d5046,0xc2b041dd,2
+np.float32,0xfe5037bc,0xc2afa56d,2
+np.float32,0x4bbea6,0x4bbea6,2
+np.float32,0xfea039de,0xc2b0822d,2
+np.float32,0x7ea627a4,0x42b094c7,2
+np.float32,0x3f556198,0x3f423591,2
+np.float32,0xfedbae04,0xc2b123c1,2
+np.float32,0xbe30432c,0xbe2f6744,2
+np.float32,0x80202c77,0x80202c77,2
+np.float32,0xff335cc1,0xc2b21ed5,2
+np.float32,0x3e1e1ebe,0x3e1d7f95,2
+np.float32,0x8021c9c0,0x8021c9c0,2
+np.float32,0x7dc978,0x7dc978,2
+np.float32,0xff6cfabc,0xc2b2ad75,2
+np.float32,0x7f2bd542,0x42b208e0,2
+np.float32,0x53bf33,0x53bf33,2
+np.float32,0x804e04bb,0x804e04bb,2
+np.float32,0x3f30d2f9,0x3f2521ca,2
+np.float32,0x3dfde876,0x3dfd4316,2
+np.float32,0x46f8b1,0x46f8b1,2
+np.float32,0xbd5f9e20,0xbd5f81ba,2
+np.float32,0x807d6a22,0x807d6a22,2
+np.float32,0xff3881da,0xc2b22d50,2
+np.float32,0x1b1cb5,0x1b1cb5,2
+np.float32,0x3f75f2d0,0x3f5a7435,2
+np.float32,0xfee39c1a,0xc2b135e9,2
+np.float32,0x7f79f14a,0x42b2c8b9,2
+np.float32,0x8000e2d1,0x8000e2d1,2
+np.float32,0xab779,0xab779,2
+np.float32,0xbede6690,0xbed7f102,2
+np.float32,0x76e20d,0x76e20d,2
+np.float32,0x3ed714cb,0x3ed135e9,2
+np.float32,0xbeaa6f44,0xbea76f31,2
+np.float32,0x7f7dc8b1,0x42b2d089,2
+np.float32,0x108cb2,0x108cb2,2
+np.float32,0x7d37ba82,0x42ac9f94,2
+np.float32,0x3f31d068,0x3f25f221,2
+np.float32,0x8010a331,0x8010a331,2
+np.float32,0x3f2fdc7c,0x3f2456cd,2
+np.float32,0x7f7a9a67,0x42b2ca13,2
+np.float32,0x3f2acb31,0x3f202492,2
+np.float32,0x7f54fa94,0x42b276c9,2
+np.float32,0x3ebf8a70,0x3ebb553c,2
+np.float32,0x7f75b1a7,0x42b2bff2,2
+np.float32,0x7daebe07,0x42ade8cc,2
+np.float32,0xbd3a3ef0,0xbd3a2e86,2
+np.float32,0x8078ec9e,0x8078ec9e,2
+np.float32,0x3eda206a,0x3ed403ec,2
+np.float32,0x3f7248f2,0x3f57cd77,2
+np.float32,0x805d55ba,0x805d55ba,2
+np.float32,0xff30dc3e,0xc2b217a3,2
+np.float32,0xbe12b27c,0xbe123333,2
+np.float32,0xbf6ed9cf,0xbf554cd0,2
+np.float32,0xbed9eb5c,0xbed3d31c,2
+np.float32,0xbf1c9aea,0xbf14307b,2
+np.float32,0x3f540ac4,0x3f412de2,2
+np.float32,0x800333ac,0x800333ac,2
+np.float32,0x3f74cdb4,0x3f59a09a,2
+np.float32,0xbf41dc41,0xbf32ee6f,2
+np.float32,0xff2c7804,0xc2b20ac4,2
+np.float32,0x514493,0x514493,2
+np.float32,0xbddf1220,0xbddea1cf,2
+np.float32,0xfeaf74de,0xc2b0b0ab,2
+np.float32,0xfe5dfb30,0xc2afc633,2
+np.float32,0xbf4785c4,0xbf376bdb,2
+np.float32,0x80191cd3,0x80191cd3,2
+np.float32,0xfe44f708,0xc2af88fb,2
+np.float32,0x3d4cd8a0,0x3d4cc2ca,2
+np.float32,0x7f572eff,0x42b27c0f,2
+np.float32,0x8031bacb,0x8031bacb,2
+np.float32,0x7f2ea684,0x42b21133,2
+np.float32,0xbea1976a,0xbe9f05bb,2
+np.float32,0x3d677b41,0x3d675bc1,2
+np.float32,0x3f61bf24,0x3f4b9870,2
+np.float32,0x7ef55ddf,0x42b15c5f,2
+np.float32,0x3eabcb20,0x3ea8b91c,2
+np.float32,0xff73d9ec,0xc2b2bc18,2
+np.float32,0x77b9f5,0x77b9f5,2
+np.float32,0x4c6c6c,0x4c6c6c,2
+np.float32,0x7ed09c94,0x42b10949,2
+np.float32,0xdeeec,0xdeeec,2
+np.float32,0x7eac5858,0x42b0a782,2
+np.float32,0x7e190658,0x42af07bd,2
+np.float32,0xbe3c8980,0xbe3b7ce2,2
+np.float32,0x8059e86e,0x8059e86e,2
+np.float32,0xff201836,0xc2b1e4a5,2
+np.float32,0xbeac109c,0xbea8fafb,2
+np.float32,0x7edd1e2b,0x42b12718,2
+np.float32,0x639cd8,0x639cd8,2
+np.float32,0x3f5e4cae,0x3f490059,2
+np.float32,0x3d84c185,0x3d84a9c4,2
+np.float32,0xbe8c1130,0xbe8a605b,2
+np.float32,0x80000000,0x80000000,2
+np.float32,0x3f1da5e4,0x3f151404,2
+np.float32,0x7f75a873,0x42b2bfdf,2
+np.float32,0xbd873540,0xbd871c28,2
+np.float32,0xbe8e5e10,0xbe8c9808,2
+np.float32,0x7f004bf2,0x42b17347,2
+np.float32,0x800000,0x800000,2
+np.float32,0xbf6d6b79,0xbf544095,2
+np.float32,0x7ed7b563,0x42b11a6a,2
+np.float32,0x80693745,0x80693745,2
+np.float32,0x3ee0f608,0x3eda49a8,2
+np.float32,0xfe1285a4,0xc2aef181,2
+np.float32,0x72d946,0x72d946,2
+np.float32,0x6a0dca,0x6a0dca,2
+np.float32,0x3f5c9df6,0x3f47ba99,2
+np.float32,0xff002af6,0xc2b172c4,2
+np.float32,0x3f4ac98f,0x3f39fd0a,2
+np.float32,0x8066acf7,0x8066acf7,2
+np.float32,0xbcaa4e60,0xbcaa4b3c,2
+np.float32,0x80162813,0x80162813,2
+np.float32,0xff34b318,0xc2b222a2,2
+np.float32,0x7f1ce33c,0x42b1da49,2
+np.float32,0x3f0e55ab,0x3f07ddb0,2
+np.float32,0x7c75d996,0x42aa6eec,2
+np.float32,0xbf221bc6,0xbf18dc89,2
+np.float32,0x3f5a1a4c,0x3f45d1d4,2
+np.float32,0x7f2451b8,0x42b1f1fb,2
+np.float32,0x3ec55ca0,0x3ec0c655,2
+np.float32,0x3f752dc2,0x3f59e600,2
+np.float32,0xbe33f638,0xbe330c4d,2
+np.float32,0x3e2a9148,0x3e29c9d8,2
+np.float32,0x3f3362a1,0x3f273c01,2
+np.float32,0x5f83b3,0x5f83b3,2
+np.float32,0x3e362488,0x3e353216,2
+np.float32,0x140bcf,0x140bcf,2
+np.float32,0x7e3e96df,0x42af7822,2
+np.float32,0xbebc7082,0xbeb86ce6,2
+np.float32,0xbe92a92e,0xbe90b9d2,2
+np.float32,0xff3d8afc,0xc2b23b19,2
+np.float32,0x804125e3,0x804125e3,2
+np.float32,0x3f3675d1,0x3f29bedb,2
+np.float32,0xff70bb09,0xc2b2b57f,2
+np.float32,0x3f29681c,0x3f1efcd2,2
+np.float32,0xbdc70380,0xbdc6b3a8,2
+np.float32,0x54e0dd,0x54e0dd,2
+np.float32,0x3d545de0,0x3d54458c,2
+np.float32,0x7f800000,0x7f800000,2
+np.float32,0x8014a4c2,0x8014a4c2,2
+np.float32,0xbe93f58a,0xbe91f938,2
+np.float32,0x17de33,0x17de33,2
+np.float32,0xfefb679a,0xc2b168d2,2
+np.float32,0xbf23423e,0xbf19d511,2
+np.float32,0x7e893fa1,0x42b032ec,2
+np.float32,0x3f44fe2d,0x3f356bda,2
+np.float32,0xbebb2e78,0xbeb73e8f,2
+np.float32,0x3f5632e0,0x3f42d633,2
+np.float32,0x3ddd8698,0x3ddd1896,2
+np.float32,0x80164ea7,0x80164ea7,2
+np.float32,0x80087b37,0x80087b37,2
+np.float32,0xbf06ab1e,0xbf011f95,2
+np.float32,0x3db95524,0x3db9149f,2
+np.float32,0x7aa1fbb3,0x42a570a1,2
+np.float32,0xbd84fc48,0xbd84e467,2
+np.float32,0x3d65c6f5,0x3d65a826,2
+np.float32,0xfe987800,0xc2b068c4,2
+np.float32,0x7ec59532,0x42b0ed7a,2
+np.float32,0x3ea0232c,0x3e9da29a,2
+np.float32,0x80292a08,0x80292a08,2
+np.float32,0x734cfe,0x734cfe,2
+np.float32,0x3f3b6d63,0x3f2dc596,2
+np.float32,0x3f27bcc1,0x3f1d97e6,2
+np.float32,0xfe1da554,0xc2af16f9,2
+np.float32,0x7c91f5,0x7c91f5,2
+np.float32,0xfe4e78cc,0xc2afa11e,2
+np.float32,0x7e4b4e08,0x42af9933,2
+np.float32,0xfe0949ec,0xc2aed02e,2
+np.float32,0x7e2f057f,0x42af4c81,2
+np.float32,0xbf200ae0,0xbf171ce1,2
+np.float32,0x3ebcc244,0x3eb8b99e,2
+np.float32,0xbf68f58d,0xbf50f7aa,2
+np.float32,0x4420b1,0x4420b1,2
+np.float32,0x3f5b61bf,0x3f46cac7,2
+np.float32,0x3fec78,0x3fec78,2
+np.float32,0x7f4183c8,0x42b245b7,2
+np.float32,0xbf10587c,0xbf099ee2,2
+np.float32,0x0,0x0,2
+np.float32,0x7ec84dc3,0x42b0f47a,2
+np.float32,0x3f5fbd7b,0x3f4a166d,2
+np.float32,0xbd884eb8,0xbd883502,2
+np.float32,0xfe3f10a4,0xc2af7969,2
+np.float32,0xff3f4920,0xc2b23fc9,2
+np.float32,0x8013900f,0x8013900f,2
+np.float32,0x8003529d,0x8003529d,2
+np.float32,0xbf032384,0xbefbfb3c,2
+np.float32,0xff418c7c,0xc2b245ce,2
+np.float32,0xbec0aad0,0xbebc633b,2
+np.float32,0xfdbff178,0xc2ae18de,2
+np.float32,0x68ab15,0x68ab15,2
+np.float32,0xbdfc4a88,0xbdfba848,2
+np.float32,0xbf5adec6,0xbf466747,2
+np.float32,0x807d5dcc,0x807d5dcc,2
+np.float32,0x61d144,0x61d144,2
+np.float32,0x807e3a03,0x807e3a03,2
+np.float32,0x1872f2,0x1872f2,2
+np.float32,0x7f2a272c,0x42b203d8,2
+np.float32,0xfe7f8314,0xc2b00e3a,2
+np.float32,0xbe42aeac,0xbe418737,2
+np.float32,0x8024b614,0x8024b614,2
+np.float32,0xbe41b6b8,0xbe40939a,2
+np.float32,0xa765c,0xa765c,2
+np.float32,0x7ea74f4b,0x42b09853,2
+np.float32,0x7f7ef631,0x42b2d2e7,2
+np.float32,0x7eaef5e6,0x42b0af38,2
+np.float32,0xff733d85,0xc2b2bacf,2
+np.float32,0x537ac0,0x537ac0,2
+np.float32,0xbeca4790,0xbec55b1d,2
+np.float32,0x80117314,0x80117314,2
+np.float32,0xfe958536,0xc2b05ec5,2
+np.float32,0x8066ecc2,0x8066ecc2,2
+np.float32,0xbf56baf3,0xbf433e82,2
+np.float32,0x1f7fd7,0x1f7fd7,2
+np.float32,0x3e942104,0x3e9222fc,2
+np.float32,0xfeaffe82,0xc2b0b23c,2
+np.float32,0xfe0e02b0,0xc2aee17e,2
+np.float32,0xbf800000,0xbf61a1b3,2
+np.float32,0x800b7e49,0x800b7e49,2
+np.float32,0x6c514f,0x6c514f,2
+np.float32,0xff800000,0xff800000,2
+np.float32,0x7f7d9a45,0x42b2d02b,2
+np.float32,0x800c9c69,0x800c9c69,2
+np.float32,0x274b14,0x274b14,2
+np.float32,0xbf4b22b0,0xbf3a42e2,2
+np.float32,0x63e5ae,0x63e5ae,2
+np.float32,0xbe18facc,0xbe186a90,2
+np.float32,0x7e137351,0x42aef4bd,2
+np.float32,0x80518ffd,0x80518ffd,2
+np.float32,0xbf0a8ffc,0xbf048f0d,2
+np.float32,0x841d,0x841d,2
+np.float32,0x7edfdc9e,0x42b12d69,2
+np.float32,0xfd1092b0,0xc2ac24de,2
+np.float32,0x7e2c9bdf,0x42af4566,2
+np.float32,0x7f7fffff,0x42b2d4fc,2
+np.float32,0x3f4954a6,0x3f38d853,2
+np.float32,0xbe83efd2,0xbe8284c3,2
+np.float32,0x800e8e02,0x800e8e02,2
+np.float32,0x78ad39,0x78ad39,2
+np.float32,0x7eb0f967,0x42b0b514,2
+np.float32,0xbe39aa94,0xbe38a9ee,2
+np.float32,0x80194e7b,0x80194e7b,2
+np.float32,0x3cf3a340,0x3cf39a0f,2
+np.float32,0x3ed3117a,0x3ecd8173,2
+np.float32,0x7f530b11,0x42b2721c,2
+np.float32,0xff756ba2,0xc2b2bf60,2
+np.float32,0x15ea25,0x15ea25,2
+np.float32,0x803cbb64,0x803cbb64,2
+np.float32,0x3f34722d,0x3f281a2c,2
+np.float32,0x3ddd88e0,0x3ddd1adb,2
+np.float32,0x3f54244c,0x3f41418b,2
+np.float32,0x3e0adb98,0x3e0a6f8b,2
+np.float32,0x80800000,0x80800000,2
+np.float32,0x58902b,0x58902b,2
+np.float32,0xfe3b50b8,0xc2af6f43,2
+np.float32,0xfe0846d0,0xc2aecc64,2
+np.float32,0xbe0299d0,0xbe023fd4,2
+np.float32,0x18dde6,0x18dde6,2
+np.float32,0x8039fe8b,0x8039fe8b,2
+np.float32,0x8015d179,0x8015d179,2
+np.float32,0x3f551322,0x3f41f947,2
+np.float32,0x2ab387,0x2ab387,2
+np.float32,0xbf7e311e,0xbf6059d0,2
+np.float32,0xbdba58a8,0xbdba1713,2
+np.float32,0xbf1d008a,0xbf148724,2
+np.float32,0xbf6b9c97,0xbf52ec98,2
+np.float32,0x802acf04,0x802acf04,2
+np.float32,0x1,0x1,2
+np.float32,0xbe9e16d6,0xbe9bade3,2
+np.float32,0xbf048a14,0xbefe78c7,2
+np.float32,0x7e432ad3,0x42af8449,2
+np.float32,0xbdcc7fe0,0xbdcc2944,2
+np.float32,0x6dfc27,0x6dfc27,2
+np.float32,0xfef6eed8,0xc2b15fa1,2
+np.float32,0xbeeff6e8,0xbee7f2e4,2
+np.float32,0x7e3a6ca8,0x42af6cd2,2
+np.float32,0xff2c82e8,0xc2b20ae4,2
+np.float32,0x3e9f8d74,0x3e9d13b0,2
+np.float32,0x7ea36191,0x42b08c29,2
+np.float32,0x7f734bed,0x42b2baed,2
+np.float32,0x7f2df96d,0x42b20f37,2
+np.float32,0x5036fd,0x5036fd,2
+np.float32,0x806eab38,0x806eab38,2
+np.float32,0xbe9db90e,0xbe9b5446,2
+np.float32,0xfeef6fac,0xc2b14fd9,2
+np.float32,0xc2bf7,0xc2bf7,2
+np.float32,0xff53ec3d,0xc2b2743d,2
+np.float32,0x7e837637,0x42b01cde,2
+np.float32,0xbefb5934,0xbef23662,2
+np.float32,0x3f6cec80,0x3f53e371,2
+np.float32,0x3e86e7de,0x3e85643f,2
+np.float32,0x3f09cb42,0x3f03e1ef,2
+np.float32,0xbec3d236,0xbebf5620,2
+np.float32,0xfedef246,0xc2b12b50,2
+np.float32,0xbf08d6a8,0xbf030a62,2
+np.float32,0x8036cbf9,0x8036cbf9,2
+np.float32,0x3f74d3e3,0x3f59a512,2
+np.float32,0x6a600c,0x6a600c,2
+np.float32,0xfd1295b0,0xc2ac2bf1,2
+np.float32,0xbeb61142,0xbeb26efa,2
+np.float32,0x80216556,0x80216556,2
+np.float32,0xbf1fa0f6,0xbf16c30a,2
+np.float32,0x3e0af8e1,0x3e0a8c90,2
+np.float32,0x80434709,0x80434709,2
+np.float32,0x49efd9,0x49efd9,2
+np.float32,0x7f7cce6c,0x42b2ce8f,2
+np.float32,0x6e5450,0x6e5450,2
+np.float32,0x7f0fc115,0x42b1ad86,2
+np.float32,0x632db0,0x632db0,2
+np.float32,0x3f6f4c2a,0x3f55a064,2
+np.float32,0x7ec4f273,0x42b0ebd3,2
+np.float32,0x61ae1e,0x61ae1e,2
+np.float32,0x5f47c4,0x5f47c4,2
+np.float32,0xbf3c8f62,0xbf2eaf54,2
+np.float32,0xfca38900,0xc2ab0113,2
+np.float32,0x3ec89d52,0x3ec3ce78,2
+np.float32,0xbe0e3f70,0xbe0dcb53,2
+np.float32,0x805d3156,0x805d3156,2
+np.float32,0x3eee33f8,0x3ee65a4e,2
+np.float32,0xbeda7e9a,0xbed45a90,2
+np.float32,0x7e2fac7b,0x42af4e69,2
+np.float32,0x7efd0e28,0x42b16c2c,2
+np.float32,0x3f0c7b17,0x3f063e46,2
+np.float32,0xbf395bec,0xbf2c198f,2
+np.float32,0xfdf1c3f8,0xc2ae8f05,2
+np.float32,0xbe11f4e4,0xbe117783,2
+np.float32,0x7eddc901,0x42b128a3,2
+np.float32,0x3f4bad09,0x3f3aaf33,2
+np.float32,0xfefb5d76,0xc2b168bd,2
+np.float32,0x3ed3a4cf,0x3ece09a3,2
+np.float32,0x7ec582e4,0x42b0ed4a,2
+np.float32,0x3dc2268a,0x3dc1dc64,2
+np.float32,0x3ef9b17c,0x3ef0b9c9,2
+np.float32,0x2748ac,0x2748ac,2
+np.float32,0xfed6a602,0xc2b117e4,2
+np.float32,0xbefc9c36,0xbef35832,2
+np.float32,0x7e0476,0x7e0476,2
+np.float32,0x804be1a0,0x804be1a0,2
+np.float32,0xbefbc1c2,0xbef2943a,2
+np.float32,0xbd4698f0,0xbd46850a,2
+np.float32,0x688627,0x688627,2
+np.float32,0x3f7f7685,0x3f61406f,2
+np.float32,0x827fb,0x827fb,2
+np.float32,0x3f503264,0x3f3e34fd,2
+np.float32,0x7f5458d1,0x42b27543,2
+np.float32,0x800ac01f,0x800ac01f,2
+np.float32,0x6188dd,0x6188dd,2
+np.float32,0x806ac0ba,0x806ac0ba,2
+np.float32,0xbe14493c,0xbe13c5cc,2
+np.float32,0x3f77542c,0x3f5b72ae,2
+np.float32,0xfeaacab6,0xc2b0a2df,2
+np.float32,0x7f2893d5,0x42b1ff15,2
+np.float32,0x66b528,0x66b528,2
+np.float32,0xbf653e24,0xbf4e3573,2
+np.float32,0x801a2853,0x801a2853,2
+np.float32,0x3f3d8c98,0x3f2f7b04,2
+np.float32,0xfdffbad8,0xc2aeabc5,2
+np.float32,0x3dd50f,0x3dd50f,2
+np.float32,0x3f325a4c,0x3f266353,2
+np.float32,0xfcc48ec0,0xc2ab5f3f,2
+np.float32,0x3e6f5b9a,0x3e6d3ae5,2
+np.float32,0x3dbcd62b,0x3dbc91ee,2
+np.float32,0xbf7458d9,0xbf594c1c,2
+np.float32,0xff5adb24,0xc2b284b9,2
+np.float32,0x807b246d,0x807b246d,2
+np.float32,0x3f800000,0x3f61a1b3,2
+np.float32,0x231a28,0x231a28,2
+np.float32,0xbdc66258,0xbdc61341,2
+np.float32,0x3c84b4b4,0x3c84b338,2
+np.float32,0xbf215894,0xbf183783,2
+np.float32,0xff4ee298,0xc2b267ec,2
+np.float32,0x801ef52e,0x801ef52e,2
+np.float32,0x1040b0,0x1040b0,2
+np.float32,0xff545582,0xc2b2753b,2
+np.float32,0x3f3b9dda,0x3f2decaf,2
+np.float32,0x730f99,0x730f99,2
+np.float32,0xff7fffff,0xc2b2d4fc,2
+np.float32,0xff24cc5e,0xc2b1f379,2
+np.float32,0xbe9b456a,0xbe98fc0b,2
+np.float32,0x188fb,0x188fb,2
+np.float32,0x3f5c7ce2,0x3f47a18a,2
+np.float32,0x7fc00000,0x7fc00000,2
+np.float32,0x806ea4da,0x806ea4da,2
+np.float32,0xfe810570,0xc2b01345,2
+np.float32,0x8036af89,0x8036af89,2
+np.float32,0x8043cec6,0x8043cec6,2
+np.float32,0x80342bb3,0x80342bb3,2
+np.float32,0x1a2bd4,0x1a2bd4,2
+np.float32,0x3f6248c2,0x3f4bff9a,2
+np.float32,0x8024eb35,0x8024eb35,2
+np.float32,0x7ea55872,0x42b09247,2
+np.float32,0x806d6e56,0x806d6e56,2
+np.float32,0x25c21a,0x25c21a,2
+np.float32,0x3f4e95f3,0x3f3cf483,2
+np.float32,0x15ca38,0x15ca38,2
+np.float32,0x803f01b2,0x803f01b2,2
+np.float32,0xbe731634,0xbe70dc10,2
+np.float32,0x3e80cee4,0x3e7ef933,2
+np.float32,0x3ef6dda5,0x3eee2e7b,2
+np.float32,0x3f3dfdc2,0x3f2fd5ed,2
+np.float32,0xff0492a7,0xc2b18411,2
+np.float32,0xbf1d0adf,0xbf148ff3,2
+np.float32,0xfcf75460,0xc2abd4e3,2
+np.float32,0x3f46fca6,0x3f36ffa6,2
+np.float32,0xbe63b5c0,0xbe61dfb3,2
+np.float32,0xff019bec,0xc2b1787d,2
+np.float32,0x801f14a9,0x801f14a9,2
+np.float32,0x3f176cfa,0x3f0fc051,2
+np.float32,0x3f69d976,0x3f51a015,2
+np.float32,0x3f4917cb,0x3f38a87a,2
+np.float32,0x3b2a0bea,0x3b2a0bdd,2
+np.float32,0xbf41d857,0xbf32eb50,2
+np.float32,0xbf08841a,0xbf02c18f,2
+np.float32,0x7ec86f14,0x42b0f4d0,2
+np.float32,0xbf7d15d1,0xbf5f9090,2
+np.float32,0xbd080550,0xbd07feea,2
+np.float32,0xbf6f1bef,0xbf557d26,2
+np.float32,0xfebc282c,0xc2b0d473,2
+np.float32,0x3e68d2f5,0x3e66dd03,2
+np.float32,0x3f3ed8fe,0x3f3085d5,2
+np.float32,0xff2f78ae,0xc2b2139a,2
+np.float32,0xff647a70,0xc2b29ac1,2
+np.float32,0xfd0859a0,0xc2ac06e2,2
+np.float32,0x3ea578a8,0x3ea2b7e1,2
+np.float32,0x6c58c6,0x6c58c6,2
+np.float32,0xff23f26a,0xc2b1f0d2,2
+np.float32,0x800902a4,0x800902a4,2
+np.float32,0xfe8ba64e,0xc2b03bcd,2
+np.float32,0x3f091143,0x3f033e0f,2
+np.float32,0x8017c4bd,0x8017c4bd,2
+np.float32,0xbf708fd4,0xbf568c8c,2
+np.float32,0x3be1d8,0x3be1d8,2
+np.float32,0x80091f07,0x80091f07,2
+np.float32,0x68eabe,0x68eabe,2
+np.float32,0xfe9ab2c8,0xc2b07033,2
+np.float32,0x3eabe752,0x3ea8d3d7,2
+np.float32,0xbf7adcb2,0xbf5dfaf5,2
+np.float32,0x801ecc01,0x801ecc01,2
+np.float32,0xbf5570a9,0xbf424123,2
+np.float32,0x3e89eecd,0x3e88510e,2
+np.float32,0xfeb2feee,0xc2b0bae4,2
+np.float32,0xbeb25ec2,0xbeaef22b,2
+np.float32,0x201e49,0x201e49,2
+np.float32,0x800a35f6,0x800a35f6,2
+np.float32,0xbf02d449,0xbefb6e2a,2
+np.float32,0x3f062bea,0x3f00aef6,2
+np.float32,0x7f5219ff,0x42b26fd2,2
+np.float32,0xbd4561d0,0xbd454e47,2
+np.float32,0x3f6c4789,0x3f536a4b,2
+np.float32,0x7f58b06d,0x42b27fa1,2
+np.float32,0x7f132f39,0x42b1b999,2
+np.float32,0x3e05dcb4,0x3e057bd8,2
+np.float32,0x7f526045,0x42b2707d,2
+np.float32,0x3f6117d0,0x3f4b1adb,2
+np.float32,0xbf21f47d,0xbf18bb57,2
+np.float32,0x1a26d6,0x1a26d6,2
+np.float32,0x46b114,0x46b114,2
+np.float32,0x3eb24518,0x3eaed9ef,2
+np.float32,0xfe2139c8,0xc2af2278,2
+np.float32,0xbf7c36fb,0xbf5ef1f6,2
+np.float32,0x3f193834,0x3f114af7,2
+np.float32,0xff3ea650,0xc2b23e14,2
+np.float32,0xfeeb3bca,0xc2b146c7,2
+np.float32,0x7e8b8ca0,0x42b03b6f,2
+np.float32,0x3eed903d,0x3ee5c5d2,2
+np.float32,0xbdc73740,0xbdc6e72a,2
+np.float32,0x7e500307,0x42afa4ec,2
+np.float32,0xe003c,0xe003c,2
+np.float32,0x3e612bb4,0x3e5f64fd,2
+np.float32,0xfd81e248,0xc2ad50e6,2
+np.float32,0x766a4f,0x766a4f,2
+np.float32,0x3e8708c9,0x3e858414,2
+np.float32,0xbf206c58,0xbf176f7f,2
+np.float32,0x7e93aeb0,0x42b0586f,2
+np.float32,0xfd9d36b8,0xc2adb2ad,2
+np.float32,0xff1f4e0e,0xc2b1e21d,2
+np.float32,0x3f22bd5a,0x3f1964f8,2
+np.float32,0x7f6a517a,0x42b2a7ad,2
+np.float32,0xff6ca773,0xc2b2acc1,2
+np.float32,0x7f6bf453,0x42b2ab3d,2
+np.float32,0x3edfdd64,0x3ed9489f,2
+np.float32,0xbeafc5ba,0xbeac7daa,2
+np.float32,0x7d862039,0x42ad615b,2
+np.float32,0xbe9d2002,0xbe9ac1fc,2
+np.float32,0xbdcc54c0,0xbdcbfe5b,2
+np.float32,0xbf1bc0aa,0xbf13762a,2
+np.float32,0xbf4679ce,0xbf36984b,2
+np.float32,0x3ef45696,0x3eebe713,2
+np.float32,0xff6eb999,0xc2b2b137,2
+np.float32,0xbe4b2e4c,0xbe49dee8,2
+np.float32,0x3f498951,0x3f3901b7,2
+np.float32,0xbe9692f4,0xbe947be1,2
+np.float32,0xbf44ce26,0xbf3545c8,2
+np.float32,0x805787a8,0x805787a8,2
+np.float32,0xbf342650,0xbf27dc26,2
+np.float32,0x3edafbf0,0x3ed4cdd2,2
+np.float32,0x3f6fb858,0x3f55ef63,2
+np.float32,0xff227d0a,0xc2b1ec3f,2
+np.float32,0xfeb9a202,0xc2b0cd89,2
+np.float32,0x7f5b12c1,0x42b2853b,2
+np.float32,0x584578,0x584578,2
+np.float32,0x7ec0b76f,0x42b0e0b5,2
+np.float32,0x3f57f54b,0x3f442f10,2
+np.float32,0x7eef3620,0x42b14f5d,2
+np.float32,0x4525b5,0x4525b5,2
+np.float32,0x801bd407,0x801bd407,2
+np.float32,0xbed1f166,0xbecc7703,2
+np.float32,0x3f57e732,0x3f442449,2
+np.float32,0x80767cd5,0x80767cd5,2
+np.float32,0xbef1a7d2,0xbee97aa3,2
+np.float32,0x3dd5b1af,0x3dd54ee6,2
+np.float32,0x960c,0x960c,2
+np.float32,0x7c392d41,0x42a9ddd1,2
+np.float32,0x3f5c9a34,0x3f47b7c1,2
+np.float32,0x3f5cecee,0x3f47f667,2
+np.float32,0xbee482ce,0xbedd8899,2
+np.float32,0x8066ba7e,0x8066ba7e,2
+np.float32,0x7ed76127,0x42b119a2,2
+np.float32,0x805ca40b,0x805ca40b,2
+np.float32,0x7f5ed5d1,0x42b28df3,2
+np.float32,0xfe9e1b1e,0xc2b07b5b,2
+np.float32,0x3f0201a2,0x3ef9f6c4,2
+np.float32,0xbf2e6430,0xbf232039,2
+np.float32,0x80326b4d,0x80326b4d,2
+np.float32,0x3f11dc7c,0x3f0af06e,2
+np.float32,0xbe89c42e,0xbe8827e6,2
+np.float32,0x3f3c69f8,0x3f2e9133,2
+np.float32,0x806326a9,0x806326a9,2
+np.float32,0x3f1c5286,0x3f13f2b6,2
+np.float32,0xff5c0ead,0xc2b28786,2
+np.float32,0xff32b952,0xc2b21d01,2
+np.float32,0x7dd27c4e,0x42ae4815,2
+np.float32,0xbf7a6816,0xbf5da7a2,2
+np.float32,0xfeac72f8,0xc2b0a7d1,2
+np.float32,0x335ad7,0x335ad7,2
+np.float32,0xbe682da4,0xbe663bcc,2
+np.float32,0x3f2df244,0x3f22c208,2
+np.float32,0x80686e8e,0x80686e8e,2
+np.float32,0x7f50120f,0x42b26ad9,2
+np.float32,0x3dbc596a,0x3dbc15b3,2
+np.float32,0xbf4f2868,0xbf3d666d,2
+np.float32,0x80000001,0x80000001,2
+np.float32,0xff66c059,0xc2b29fd2,2
+np.float32,0xfe8bbcaa,0xc2b03c1f,2
+np.float32,0x3ece6a51,0x3ec93271,2
+np.float32,0x7f06cd26,0x42b18c9a,2
+np.float32,0x7e41e6dc,0x42af80f5,2
+np.float32,0x7d878334,0x42ad669f,2
+np.float32,0xfe8c5c4c,0xc2b03e67,2
+np.float32,0x337a05,0x337a05,2
+np.float32,0x3e63801d,0x3e61ab58,2
+np.float32,0x62c315,0x62c315,2
+np.float32,0x802aa888,0x802aa888,2
+np.float32,0x80038b43,0x80038b43,2
+np.float32,0xff5c1271,0xc2b2878f,2
+np.float32,0xff4184a5,0xc2b245b9,2
+np.float32,0x7ef58f4b,0x42b15cc6,2
+np.float32,0x7f42d8ac,0x42b2493a,2
+np.float32,0x806609f2,0x806609f2,2
+np.float32,0x801e763b,0x801e763b,2
+np.float32,0x7f2bc073,0x42b208a2,2
+np.float32,0x801d7d7f,0x801d7d7f,2
+np.float32,0x7d415dc1,0x42acb9c2,2
+np.float32,0xbf624ff9,0xbf4c0502,2
+np.float32,0xbf603afd,0xbf4a74e2,2
+np.float32,0x8007fe42,0x8007fe42,2
+np.float32,0x800456db,0x800456db,2
+np.float32,0x620871,0x620871,2
+np.float32,0x3e9c6c1e,0x3e9a15fa,2
+np.float32,0x4245d,0x4245d,2
+np.float32,0x8035bde9,0x8035bde9,2
+np.float32,0xbf597418,0xbf45533c,2
+np.float32,0x3c730f80,0x3c730d38,2
+np.float32,0x3f7cd8ed,0x3f5f6540,2
+np.float32,0x807e49c3,0x807e49c3,2
+np.float32,0x3d6584c0,0x3d65660c,2
+np.float32,0xff42a744,0xc2b248b8,2
+np.float32,0xfedc6f56,0xc2b12583,2
+np.float32,0x806263a4,0x806263a4,2
+np.float32,0x175a17,0x175a17,2
+np.float32,0x3f1e8537,0x3f15d208,2
+np.float32,0x4055b5,0x4055b5,2
+np.float32,0x438aa6,0x438aa6,2
+np.float32,0x8038507f,0x8038507f,2
+np.float32,0xbed75348,0xbed16f85,2
+np.float32,0x7f07b7d6,0x42b19012,2
+np.float32,0xfe8b9d30,0xc2b03bac,2
+np.float32,0x805c501c,0x805c501c,2
+np.float32,0x3ef22b1d,0x3ee9f159,2
+np.float32,0x802b6759,0x802b6759,2
+np.float32,0x45281a,0x45281a,2
+np.float32,0xbf7e9970,0xbf60a3cf,2
+np.float32,0xbf14d152,0xbf0d8062,2
+np.float32,0x3d9ff950,0x3d9fcfc8,2
+np.float32,0x7865d9,0x7865d9,2
+np.float32,0xbee67fa4,0xbedf58eb,2
+np.float32,0x7dc822d1,0x42ae2e44,2
+np.float32,0x3f3af0fe,0x3f2d612c,2
+np.float32,0xbefea106,0xbef5274e,2
+np.float32,0xbf758a3f,0xbf5a28c5,2
+np.float32,0xbf331bdd,0xbf270209,2
+np.float32,0x7f51c901,0x42b26f0d,2
+np.float32,0x3f67c33b,0x3f5014d8,2
+np.float32,0xbbc9d980,0xbbc9d92c,2
+np.float32,0xbc407540,0xbc40741e,2
+np.float32,0x7eed9a3c,0x42b14be9,2
+np.float32,0x1be0fe,0x1be0fe,2
+np.float32,0xbf6b4913,0xbf52af1f,2
+np.float32,0xbda8eba8,0xbda8bac6,2
+np.float32,0x8004bcea,0x8004bcea,2
+np.float32,0xff6f6afe,0xc2b2b2b3,2
+np.float32,0xbf205810,0xbf175e50,2
+np.float32,0x80651944,0x80651944,2
+np.float32,0xbec73016,0xbec27a3f,2
+np.float32,0x5701b9,0x5701b9,2
+np.float32,0xbf1062ce,0xbf09a7df,2
+np.float32,0x3e0306ae,0x3e02abd1,2
+np.float32,0x7bfc62,0x7bfc62,2
+np.float32,0xbf48dd3c,0xbf387a6b,2
+np.float32,0x8009573e,0x8009573e,2
+np.float32,0x660a2c,0x660a2c,2
+np.float32,0xff2280da,0xc2b1ec4b,2
+np.float32,0xbf7034fe,0xbf564a54,2
+np.float32,0xbeeb448e,0xbee3b045,2
+np.float32,0xff4e949c,0xc2b2672b,2
+np.float32,0xbf3c4486,0xbf2e7309,2
+np.float32,0x7eb086d8,0x42b0b3c8,2
+np.float32,0x7eac8aca,0x42b0a817,2
+np.float32,0xfd3d2d60,0xc2acae8b,2
+np.float32,0xbf363226,0xbf2987bd,2
+np.float32,0x7f02e524,0x42b17d8c,2
+np.float32,0x8049a148,0x8049a148,2
+np.float32,0x147202,0x147202,2
+np.float32,0x8031d3f6,0x8031d3f6,2
+np.float32,0xfe78bf68,0xc2b0007d,2
+np.float32,0x7ebd16d0,0x42b0d6fb,2
+np.float32,0xbdaed2e8,0xbdae9cbb,2
+np.float32,0x802833ae,0x802833ae,2
+np.float32,0x7f62adf6,0x42b296b5,2
+np.float32,0xff2841c0,0xc2b1fe1b,2
+np.float32,0xbeb2c47e,0xbeaf523b,2
+np.float32,0x7e42a36e,0x42af82e6,2
+np.float32,0x41ea29,0x41ea29,2
+np.float32,0xbcaaa800,0xbcaaa4d7,2
+np.float64,0x3fed71f27ebae3e5,0x3fea5c6095012ca6,1
+np.float64,0x224dc392449b9,0x224dc392449b9,1
+np.float64,0x3fdf897a7d3f12f5,0x3fde620339360992,1
+np.float64,0xbfe1f99a5123f334,0xbfe124a57cfaf556,1
+np.float64,0xbfd9725c3bb2e4b8,0xbfd8d1e3f75110c7,1
+np.float64,0x3fe38977546712ee,0x3fe27d9d37f4b91f,1
+np.float64,0xbfc36c29e526d854,0xbfc3594743ee45c4,1
+np.float64,0xbfe5cbec332b97d8,0xbfe4638802316849,1
+np.float64,0x2ff35efe5fe6d,0x2ff35efe5fe6d,1
+np.float64,0x7fd3f828e227f051,0x40862a7d4a40b1e0,1
+np.float64,0xffd06fc11620df82,0xc08628ee8f1bf6c8,1
+np.float64,0x3fe5321bf4aa6438,0x3fe3e3d9fa453199,1
+np.float64,0xffd07a323ca0f464,0xc08628f3a2930f8c,1
+np.float64,0x3fdf7abe7abef57c,0x3fde54cb193d49cb,1
+np.float64,0x40941f1881285,0x40941f1881285,1
+np.float64,0xffef18defc7e31bd,0xc0863393f2c9f061,1
+np.float64,0xbfe379f871e6f3f1,0xbfe270620cb68347,1
+np.float64,0xffec829848f90530,0xc08632e210edaa2b,1
+np.float64,0x80070c00574e1801,0x80070c00574e1801,1
+np.float64,0xffce7654b23ceca8,0xc086285291e89975,1
+np.float64,0x7fc9932daa33265a,0x408626ec6cc2b807,1
+np.float64,0x355ee98c6abde,0x355ee98c6abde,1
+np.float64,0x3fac54962c38a920,0x3fac50e40b6c19f2,1
+np.float64,0x800857984af0af31,0x800857984af0af31,1
+np.float64,0x7fea6a3d55f4d47a,0x40863245bf39f179,1
+np.float64,0x3fdb8fab33371f56,0x3fdac5ffc9e1c347,1
+np.float64,0x800a887a7bf510f5,0x800a887a7bf510f5,1
+np.float64,0xbfbdbda3c63b7b48,0xbfbdac9dd5a2d3e8,1
+np.float64,0xbfd4a2457b29448a,0xbfd44acb3b316d6d,1
+np.float64,0x7fd5329a502a6534,0x40862af789b528b5,1
+np.float64,0x3fd96a7bceb2d4f8,0x3fd8ca92104d6cd6,1
+np.float64,0x3fde6a0cd6bcd41a,0x3fdd5f4b85abf749,1
+np.float64,0xbfc7faaff32ff560,0xbfc7d7560b8c4a52,1
+np.float64,0x7fec381b2f787035,0x408632cd0e9c095c,1
+np.float64,0x1fc2eb543f85e,0x1fc2eb543f85e,1
+np.float64,0x7ac6000af58c1,0x7ac6000af58c1,1
+np.float64,0xffe060a87920c150,0xc0862e72c37d5a4e,1
+np.float64,0xbfb7d8c89e2fb190,0xbfb7cffd3c3f8e3a,1
+np.float64,0x3fd91033deb22068,0x3fd87695b067aa1e,1
+np.float64,0x3fec1aff01b835fe,0x3fe95d5cbd729af7,1
+np.float64,0x7fb97f69ec32fed3,0x4086215aaae5c697,1
+np.float64,0x7feaf1e4e5f5e3c9,0x4086326e6ca6a2bb,1
+np.float64,0x800537e44d0a6fc9,0x800537e44d0a6fc9,1
+np.float64,0x800b2a0d0d36541a,0x800b2a0d0d36541a,1
+np.float64,0x3fe2193846e43270,0x3fe140308550138e,1
+np.float64,0x5e2a0a32bc542,0x5e2a0a32bc542,1
+np.float64,0xffe5888b09eb1116,0xc08630a348783aa3,1
+np.float64,0xbfceb9b5033d736c,0xbfce701049c10435,1
+np.float64,0x7fe5d68589abad0a,0x408630c00ce63f23,1
+np.float64,0x8009b5457ff36a8b,0x8009b5457ff36a8b,1
+np.float64,0xbfb5518c2e2aa318,0xbfb54b42638ca718,1
+np.float64,0x3f9c58469838b080,0x3f9c575974fbcd7b,1
+np.float64,0x3fe8db4b4731b697,0x3fe6dc9231587966,1
+np.float64,0x8007d0f77f4fa1f0,0x8007d0f77f4fa1f0,1
+np.float64,0x7fe79eef542f3dde,0x40863160c673c67f,1
+np.float64,0xffbdc0b6163b8170,0xc0862296be4bf032,1
+np.float64,0x3fbb8d3312371a66,0x3fbb7fa76fb4cf8d,1
+np.float64,0xffd8a0eedbb141de,0xc0862c2ac6e512f0,1
+np.float64,0x7fee99d8d87d33b1,0x4086337301c4c8df,1
+np.float64,0xffe7479b552e8f36,0xc0863142fba0f0ec,1
+np.float64,0xffedf8ef4abbf1de,0xc08633488068fe69,1
+np.float64,0x895c4d9f12b8a,0x895c4d9f12b8a,1
+np.float64,0x29b4caf05369a,0x29b4caf05369a,1
+np.float64,0xbfefb90d657f721b,0xbfec01efa2425b35,1
+np.float64,0xde07c3bdbc0f9,0xde07c3bdbc0f9,1
+np.float64,0x7feae9fd02f5d3f9,0x4086326c1368ed5a,1
+np.float64,0x3feab792da756f26,0x3fe84f6e15338ed7,1
+np.float64,0xbfeff8ed72fff1db,0xbfec2f35da06daaf,1
+np.float64,0x8004b2c132896583,0x8004b2c132896583,1
+np.float64,0xbf9fcb00103f9600,0xbf9fc9b1751c569e,1
+np.float64,0x4182b72e83058,0x4182b72e83058,1
+np.float64,0x90820d812105,0x90820d812105,1
+np.float64,0xbfdec9a0ba3d9342,0xbfddb585df607ce1,1
+np.float64,0x7fdc0a69a03814d2,0x40862d347f201b63,1
+np.float64,0xbfef0708937e0e11,0xbfeb82d27f8ea97f,1
+np.float64,0xffda57e4ddb4afca,0xc0862cb49e2e0c4c,1
+np.float64,0xbfa30b9af4261730,0xbfa30a7b4a633060,1
+np.float64,0x7feb57fcc4b6aff9,0x4086328c83957a0b,1
+np.float64,0x7fe6759153eceb22,0x408630f980433963,1
+np.float64,0x7fdd3278c8ba64f1,0x40862d87445243e9,1
+np.float64,0xd3b8e6b9a771d,0xd3b8e6b9a771d,1
+np.float64,0x6267dc88c4cfc,0x6267dc88c4cfc,1
+np.float64,0x7fedd3cf00bba79d,0x4086333e91712ff5,1
+np.float64,0xffbe512ce03ca258,0xc08622bd39314cea,1
+np.float64,0xbfe71742ca6e2e86,0xbfe572ccbf2d010d,1
+np.float64,0x8002fb048c65f60a,0x8002fb048c65f60a,1
+np.float64,0x800d9d9ddf7b3b3c,0x800d9d9ddf7b3b3c,1
+np.float64,0xbfeaf6230df5ec46,0xbfe87f5d751ec3d5,1
+np.float64,0xbfe69973a42d32e8,0xbfe50c680f7002fe,1
+np.float64,0x3fe309cf87e613a0,0x3fe21048714ce1ac,1
+np.float64,0x800435d17a286ba4,0x800435d17a286ba4,1
+np.float64,0x7fefffffffffffff,0x408633ce8fb9f87e,1
+np.float64,0x3fe36ade1766d5bc,0x3fe26379fb285dde,1
+np.float64,0x3f98d8d94831b1c0,0x3f98d839885dc527,1
+np.float64,0xbfd08f7ae5211ef6,0xbfd0618ab5293e1e,1
+np.float64,0xbfcf630bd53ec618,0xbfcf14a0cd20704d,1
+np.float64,0xbfe58f0ca6eb1e1a,0xbfe4312225df8e28,1
+np.float64,0xffef4f6406be9ec7,0xc08633a1ed1d27e5,1
+np.float64,0x7fe10120b3e20240,0x40862ebfaf94e6e8,1
+np.float64,0xffe96c52fbb2d8a5,0xc08631f75d9a59a0,1
+np.float64,0xbfe448a333e89146,0xbfe31fee44c3ec43,1
+np.float64,0x80045ff4e788bfeb,0x80045ff4e788bfeb,1
+np.float64,0x7fefaa2f823f545e,0x408633b8fea29524,1
+np.float64,0xffea6b8bf234d717,0xc0863246248e5960,1
+np.float64,0xbfdb085d80b610bc,0xbfda498b15b43eec,1
+np.float64,0xbfd5e12da3abc25c,0xbfd57970e2b8aecc,1
+np.float64,0x3fcc84928a390925,0x3fcc497c417a89f3,1
+np.float64,0xbfdcb713bf396e28,0xbfdbd46c5e731fd9,1
+np.float64,0xffdf50c0453ea180,0xc0862e16b5562f25,1
+np.float64,0x800342c2f7268587,0x800342c2f7268587,1
+np.float64,0x7feb8b6d743716da,0x4086329b8248de2c,1
+np.float64,0x800a9b18b4953632,0x800a9b18b4953632,1
+np.float64,0xffedaf0d12fb5e19,0xc0863334af82de1a,1
+np.float64,0x800aebda4ab5d7b5,0x800aebda4ab5d7b5,1
+np.float64,0xbfa9f5848433eb10,0xbfa9f2ac7ac065d4,1
+np.float64,0x3fea375928f46eb2,0x3fe7ec9f10eeac7d,1
+np.float64,0x3fd6c213fead8428,0x3fd64dcc1eff5f1b,1
+np.float64,0xbfa0476f44208ee0,0xbfa046bb986007ac,1
+np.float64,0x6c8e18aed91c4,0x6c8e18aed91c4,1
+np.float64,0x8000000000000001,0x8000000000000001,1
+np.float64,0x7fea86b5ba350d6a,0x4086324e59f13027,1
+np.float64,0x2316c3b0462d9,0x2316c3b0462d9,1
+np.float64,0x3fec4e3281389c65,0x3fe983c5c9d65940,1
+np.float64,0x3fbb87c47f772,0x3fbb87c47f772,1
+np.float64,0x8004af00fdc95e03,0x8004af00fdc95e03,1
+np.float64,0xbfd316db9ba62db8,0xbfd2d12765b9d155,1
+np.float64,0x3fec1a7a99f834f6,0x3fe95cf941889b3d,1
+np.float64,0x3feff7e1477fefc3,0x3fec2e782392d4b9,1
+np.float64,0xbfc683ea042d07d4,0xbfc66698cfa5026e,1
+np.float64,0x3fdbc8aaa9b79154,0x3fdafa50e6fc3fff,1
+np.float64,0xfb3b630ff676d,0xfb3b630ff676d,1
+np.float64,0x7fe715ef8eae2bde,0x40863131d794b41f,1
+np.float64,0x7fefa06c11bf40d7,0x408633b686c7996a,1
+np.float64,0x80002a40f5205483,0x80002a40f5205483,1
+np.float64,0x7fe95f3c74b2be78,0x408631f33e37bf76,1
+np.float64,0x3fb2977b32252ef0,0x3fb2934eaf5a4be8,1
+np.float64,0x3fc0f3dbc821e7b8,0x3fc0e745288c84c3,1
+np.float64,0x3fda98da56b531b5,0x3fd9e2b19447dacc,1
+np.float64,0x3f95b9d5202b73aa,0x3f95b96a53282949,1
+np.float64,0x3fdc1ace7738359d,0x3fdb4597d31df7ff,1
+np.float64,0xffeac5bb2e358b76,0xc0863261452ab66c,1
+np.float64,0xbfefb1b78f7f636f,0xbfebfcb9be100ced,1
+np.float64,0xf5c9e191eb93c,0xf5c9e191eb93c,1
+np.float64,0x3fe83a977630752f,0x3fe65d0df90ff6ef,1
+np.float64,0x3fc317515d262ea0,0x3fc3056072b719f0,1
+np.float64,0x7fe2dcfab225b9f4,0x40862f94257c28a2,1
+np.float64,0xca2b115794562,0xca2b115794562,1
+np.float64,0x3fd495301aa92a60,0x3fd43e57108761d5,1
+np.float64,0x800ccc4293199885,0x800ccc4293199885,1
+np.float64,0xc8d3173d91a63,0xc8d3173d91a63,1
+np.float64,0xbf2541bb7e4a8,0xbf2541bb7e4a8,1
+np.float64,0xbfe9a330df334662,0xbfe779816573f5be,1
+np.float64,0xffd5e4c8252bc990,0xc0862b39b3ca5d72,1
+np.float64,0x3fe90f3a53721e75,0x3fe70585ae09531d,1
+np.float64,0xbfe2b5ddc7a56bbc,0xbfe1c7fa91a675ed,1
+np.float64,0xbf981a0360303400,0xbf9819719345073a,1
+np.float64,0x19174b0e322ea,0x19174b0e322ea,1
+np.float64,0xbfd2f71a1725ee34,0xbfd2b2b6f7cd10b1,1
+np.float64,0x80056e83236add07,0x80056e83236add07,1
+np.float64,0x7fe4bc41d9697883,0x40863055f20ce0cb,1
+np.float64,0xffe76e06c46edc0d,0xc086315024b25559,1
+np.float64,0x3fe3c4f0f96789e2,0x3fe2b04b584609bf,1
+np.float64,0x3fe6cfc533ed9f8a,0x3fe538b4d784d5ee,1
+np.float64,0x7fd234a640a4694c,0x408629bfead4f0b2,1
+np.float64,0x3fdbc49c9ab78939,0x3fdaf698a83d08e2,1
+np.float64,0x3fe4c5336ee98a66,0x3fe388c6ddb60e0a,1
+np.float64,0xf4b9497be9729,0xf4b9497be9729,1
+np.float64,0x3fb312be12262580,0x3fb30e3c847c1d16,1
+np.float64,0x3fe9554218f2aa84,0x3fe73c8b311c7a98,1
+np.float64,0xff899816a0333040,0xc08610bfb2cd8559,1
+np.float64,0x8006008ad52c0116,0x8006008ad52c0116,1
+np.float64,0x3fd7d47be4afa8f8,0x3fd74fa71ec17fd0,1
+np.float64,0x8010000000000000,0x8010000000000000,1
+np.float64,0xdf2a9943be553,0xdf2a9943be553,1
+np.float64,0xbfeb86bf1eb70d7e,0xbfe8ed797580ba5c,1
+np.float64,0x800e2c0c28bc5818,0x800e2c0c28bc5818,1
+np.float64,0xbfe2be65d4657ccc,0xbfe1cf578dec2323,1
+np.float64,0xbfedea3a5afbd475,0xbfeab490bf05e585,1
+np.float64,0xbfe04b1583a0962b,0xbfdf523dfd7be25c,1
+np.float64,0x75929bb4eb254,0x75929bb4eb254,1
+np.float64,0x3fd7b4968caf692d,0x3fd731c0938ff97c,1
+np.float64,0x60bd8fd2c17b3,0x60bd8fd2c17b3,1
+np.float64,0xbfdaf15e70b5e2bc,0xbfda345a95ce18fe,1
+np.float64,0x7fdd7c35c2baf86b,0x40862d9b5f40c6b2,1
+np.float64,0x7feeb4d2ab7d69a4,0x4086337a0c0dffaf,1
+np.float64,0xffe65b5a1decb6b4,0xc08630f024420efb,1
+np.float64,0x7feb272b30764e55,0x4086327e2e553aa2,1
+np.float64,0x3fd27513e8a4ea28,0x3fd235ea49670f6a,1
+np.float64,0x3fe6541a6aeca834,0x3fe4d3a5b69fd1b6,1
+np.float64,0xbfe0c6ca0f618d94,0xbfe017058259efdb,1
+np.float64,0x7fc1bf07b7237e0e,0x4086240000fa5a52,1
+np.float64,0x7fe96af9c0f2d5f3,0x408631f6f0f4faa2,1
+np.float64,0x3fe0728be7a0e518,0x3fdf9881a5869de9,1
+np.float64,0xffe8ea4441b1d488,0xc08631ce0685ae7e,1
+np.float64,0xffd0b973f02172e8,0xc08629121e7fdf85,1
+np.float64,0xffe37b907a26f720,0xc0862fd6529401a0,1
+np.float64,0x3fe0ee826461dd05,0x3fe03a2a424a1b40,1
+np.float64,0xbfe8073c92300e79,0xbfe6340cbd179ac1,1
+np.float64,0x800768383f8ed071,0x800768383f8ed071,1
+np.float64,0x8002e467c7c5c8d0,0x8002e467c7c5c8d0,1
+np.float64,0xbfd8d53ea5b1aa7e,0xbfd83fa7243289d7,1
+np.float64,0xffebefce2bb7df9c,0xc08632b874f4f8dc,1
+np.float64,0xffe3be9eb9277d3d,0xc0862ff1ac70ad0b,1
+np.float64,0xffe2f8a82e65f150,0xc0862f9fd9e77d86,1
+np.float64,0xbfa01d151c203a30,0xbfa01c66dc13a70a,1
+np.float64,0x800877062d30ee0d,0x800877062d30ee0d,1
+np.float64,0xaade16a755bc3,0xaade16a755bc3,1
+np.float64,0xbfeb1abc70363579,0xbfe89b52c3b003aa,1
+np.float64,0x80097d0b2ad2fa17,0x80097d0b2ad2fa17,1
+np.float64,0x8001499907429333,0x8001499907429333,1
+np.float64,0x3fe8db2aaf71b656,0x3fe6dc7873f1b235,1
+np.float64,0x5cfeadc4b9fd6,0x5cfeadc4b9fd6,1
+np.float64,0xff3f77d1fe7ef,0xff3f77d1fe7ef,1
+np.float64,0xffeecd56f9bd9aad,0xc08633806cb1163d,1
+np.float64,0xbf96f3ca582de7a0,0xbf96f34c6b8e1c85,1
+np.float64,0x7ed6b44afdad7,0x7ed6b44afdad7,1
+np.float64,0x80071808da4e3012,0x80071808da4e3012,1
+np.float64,0x3feb8aee2bf715dc,0x3fe8f0a55516615c,1
+np.float64,0x800038f62e2071ed,0x800038f62e2071ed,1
+np.float64,0x3fb13f9af2227f30,0x3fb13c456ced8e08,1
+np.float64,0xffd584d1812b09a4,0xc0862b165558ec0c,1
+np.float64,0x800b20c30fb64186,0x800b20c30fb64186,1
+np.float64,0x80024f9646e49f2d,0x80024f9646e49f2d,1
+np.float64,0xffefffffffffffff,0xc08633ce8fb9f87e,1
+np.float64,0x3fdddbcb5bbbb797,0x3fdcde981111f650,1
+np.float64,0xffed14077f3a280e,0xc086330a795ad634,1
+np.float64,0x800fec2da7ffd85b,0x800fec2da7ffd85b,1
+np.float64,0x3fe8205ffc7040c0,0x3fe6482318d217f9,1
+np.float64,0x3013e5226027d,0x3013e5226027d,1
+np.float64,0xffe4e5aad469cb55,0xc0863065dc2fb4e3,1
+np.float64,0x5cb0f7b2b9620,0x5cb0f7b2b9620,1
+np.float64,0xbfeb4537d2768a70,0xbfe8bbb2c1d3bff9,1
+np.float64,0xbfd859e297b0b3c6,0xbfd7cc807948bf9d,1
+np.float64,0x71f00b8ce3e02,0x71f00b8ce3e02,1
+np.float64,0xf5c1b875eb837,0xf5c1b875eb837,1
+np.float64,0xa0f35c8141e8,0xa0f35c8141e8,1
+np.float64,0xffe24860b42490c1,0xc0862f54222f616e,1
+np.float64,0xffcd9ae8583b35d0,0xc08628181e643a42,1
+np.float64,0x7fe9b710c7736e21,0x4086320ec033490f,1
+np.float64,0x3fd2b9ca1d257394,0x3fd277e631f0c0b3,1
+np.float64,0x23559bfc46ab4,0x23559bfc46ab4,1
+np.float64,0x8002adf75e455bef,0x8002adf75e455bef,1
+np.float64,0xbfefa4d75cbf49af,0xbfebf392e51d6a1a,1
+np.float64,0xffcfef263e3fde4c,0xc08628b336adb611,1
+np.float64,0x80061acaa8ec3596,0x80061acaa8ec3596,1
+np.float64,0x7fc1b33be0236677,0x408623faaddcc17e,1
+np.float64,0x7fe3a84083675080,0x40862fe8972e41e1,1
+np.float64,0xbfe756c1276ead82,0xbfe5a6318b061e1b,1
+np.float64,0xbfae4b71b43c96e0,0xbfae46ed0b6203a4,1
+np.float64,0x800421c6d0a8438e,0x800421c6d0a8438e,1
+np.float64,0x8009ad56fe335aae,0x8009ad56fe335aae,1
+np.float64,0xbfe71afc976e35f9,0xbfe575d21f3d7193,1
+np.float64,0x7fec0bbe4c38177c,0x408632c0710f1d8a,1
+np.float64,0x750e1daeea1c4,0x750e1daeea1c4,1
+np.float64,0x800501d4240a03a9,0x800501d4240a03a9,1
+np.float64,0x800794955cef292b,0x800794955cef292b,1
+np.float64,0x3fdf8a87f5bf1510,0x3fde62f4f00cfa19,1
+np.float64,0xbfebebdbc7f7d7b8,0xbfe939e51ba1340c,1
+np.float64,0xbfe3a16217a742c4,0xbfe292039dd08a71,1
+np.float64,0x3fed6cd04c3ad9a1,0x3fea58995973f74b,1
+np.float64,0xffcad8787335b0f0,0xc086274fbb35dd37,1
+np.float64,0x3fcb178e3d362f1c,0x3fcae4c9f3e6dddc,1
+np.float64,0xbfcadc669435b8cc,0xbfcaaae7cf075420,1
+np.float64,0x7fe0e3906321c720,0x40862eb1bacc5c43,1
+np.float64,0xff8ad5edb035abc0,0xc0861120b6404d0b,1
+np.float64,0x3fe175a21562eb44,0x3fe0b13120a46549,1
+np.float64,0xbfeb4c4a5f769895,0xbfe8c1147f1c9d8f,1
+np.float64,0x7fca22f4e63445e9,0x40862718e9b4094e,1
+np.float64,0x3fe4269d0c684d3a,0x3fe3032aa2015c53,1
+np.float64,0x3fef551c09beaa38,0x3febbabe03f49c83,1
+np.float64,0xffd843df9fb087c0,0xc0862c0c52d5e5d9,1
+np.float64,0x7fc497e2ca292fc5,0x40862530bbd9fcc7,1
+np.float64,0x3fee02919efc0523,0x3feac655588a4acd,1
+np.float64,0x7fed1e52c0fa3ca5,0x4086330d4ddd8a2c,1
+np.float64,0xba04d4ef7409b,0xba04d4ef7409b,1
+np.float64,0x3fee22d0937c45a2,0x3feaddd4ca66b447,1
+np.float64,0xffeb2558cf764ab1,0xc086327da4e84053,1
+np.float64,0xbfe103d987e207b3,0xbfe04d04818ad1ff,1
+np.float64,0x3f9fd7fed03faffe,0x3f9fd6ae9a45be84,1
+np.float64,0x800a53ec4c34a7d9,0x800a53ec4c34a7d9,1
+np.float64,0xbfe2feb17f65fd63,0xbfe206b9d33a78a2,1
+np.float64,0x989bdd613139,0x989bdd613139,1
+np.float64,0xbfdd0ad3fb3a15a8,0xbfdc20c32a530741,1
+np.float64,0xbfc4222163284444,0xbfc40d1c612784b5,1
+np.float64,0xc30cf5c78619f,0xc30cf5c78619f,1
+np.float64,0x3fe913bd6732277b,0x3fe70912f76bad71,1
+np.float64,0x98f175f531e2f,0x98f175f531e2f,1
+np.float64,0x3fed8c1f717b183f,0x3fea6f9fb3af3423,1
+np.float64,0x7fee46b085bc8d60,0x4086335d269eb7e9,1
+np.float64,0x8007480f564e901f,0x8007480f564e901f,1
+np.float64,0xc9b96e179372e,0xc9b96e179372e,1
+np.float64,0x3fe44deac4289bd6,0x3fe32463a74a69e7,1
+np.float64,0x80021d6c5c243ad9,0x80021d6c5c243ad9,1
+np.float64,0xbfebc805a6f7900b,0xbfe91edcf65a1c19,1
+np.float64,0x80044748adc88e92,0x80044748adc88e92,1
+np.float64,0x4007ee44800fe,0x4007ee44800fe,1
+np.float64,0xbfe24307a4648610,0xbfe1648ad5c47b6f,1
+np.float64,0xbfee6d3a93fcda75,0xbfeb13e1a3196e78,1
+np.float64,0x3fe49a287f293451,0x3fe364a11b9f0068,1
+np.float64,0x80052b37ceaa5670,0x80052b37ceaa5670,1
+np.float64,0xbfd42be893a857d2,0xbfd3da05dac7c286,1
+np.float64,0xffb4bbe4ac2977c8,0xc0861fb31bda6956,1
+np.float64,0xbfc732a4142e6548,0xbfc7129a4eafa399,1
+np.float64,0x7fd0696791a0d2ce,0x408628eb7756cb9c,1
+np.float64,0x3fe46c8f8d68d91f,0x3fe33e3df16187c1,1
+np.float64,0x3fe3a28f1ce7451e,0x3fe293043238d08c,1
+np.float64,0xffedc4eb723b89d6,0xc086333a92258c15,1
+np.float64,0x8000d15b4c41a2b7,0x8000d15b4c41a2b7,1
+np.float64,0xffeb73450236e689,0xc08632947b0148ab,1
+np.float64,0xffe68cf4722d19e8,0xc0863101d08d77bd,1
+np.float64,0x800c70eb4698e1d7,0x800c70eb4698e1d7,1
+np.float64,0xffa94387ff529,0xffa94387ff529,1
+np.float64,0x7fe3835d996706ba,0x40862fd985ff8e7d,1
+np.float64,0x3fe55e476feabc8e,0x3fe408a15594ec52,1
+np.float64,0xffc69672222d2ce4,0xc08625ee0c4c0f6a,1
+np.float64,0xbf9d900b883b2020,0xbf9d8efe811d36df,1
+np.float64,0xbfdb9b9755b7372e,0xbfdad0f2aa2cb110,1
+np.float64,0xffeade6073b5bcc0,0xc08632689f17a25d,1
+np.float64,0xffd1d6a6baa3ad4e,0xc086299630a93a7b,1
+np.float64,0x7fd05ba25620b744,0x408628e4be1ef845,1
+np.float64,0xbfc7d422d52fa844,0xbfc7b170a61531bf,1
+np.float64,0x3fd5196797aa32d0,0x3fd4bc0f0e7d8e1d,1
+np.float64,0x617594a4c2eb3,0x617594a4c2eb3,1
+np.float64,0x7fd779bc4caef378,0x40862bc89271b882,1
+np.float64,0xffd2fb262ba5f64c,0xc0862a15561e9524,1
+np.float64,0x72fd661ae5fad,0x72fd661ae5fad,1
+np.float64,0x3fecf441f339e884,0x3fe9ff880d584f64,1
+np.float64,0x7fc3a8968827512c,0x408624d198b05c61,1
+np.float64,0x3fe7a25c56ef44b9,0x3fe5e32509a7c32d,1
+np.float64,0x7fd117d514222fa9,0x4086293ec640d5f2,1
+np.float64,0x3fe37dfe5ee6fbfc,0x3fe273d1bcaa1ef0,1
+np.float64,0xbfed4cd19d7a99a3,0xbfea41064cba4c8b,1
+np.float64,0x8003ff12aaa7fe26,0x8003ff12aaa7fe26,1
+np.float64,0x3fcbc3d1193787a2,0x3fcb8d39e3e88264,1
+np.float64,0xe9ba1a91d3744,0xe9ba1a91d3744,1
+np.float64,0x8002ab71998556e4,0x8002ab71998556e4,1
+np.float64,0x800110057922200c,0x800110057922200c,1
+np.float64,0xbfe3b7af19a76f5e,0xbfe2a502fc0a2882,1
+np.float64,0x7fd9de9d5e33bd3a,0x40862c8f73cccabf,1
+np.float64,0xbfba0f0a86341e18,0xbfba0392f44c2771,1
+np.float64,0x8000000000000000,0x8000000000000000,1
+np.float64,0x7fe5d162e96ba2c5,0x408630be2b15e01b,1
+np.float64,0x800b7f0eac76fe1e,0x800b7f0eac76fe1e,1
+np.float64,0xff98bed150317da0,0xc086160633164f5f,1
+np.float64,0x3fef91fd70ff23fb,0x3febe629709d0ae7,1
+np.float64,0x7fe5bea7f16b7d4f,0x408630b749f445e9,1
+np.float64,0xbfe3dc428467b885,0xbfe2c41ea93fab07,1
+np.float64,0xbfeba1fbfcf743f8,0xbfe9021b52851bb9,1
+np.float64,0x7fd2fb2108a5f641,0x40862a1553f45830,1
+np.float64,0x7feb8199a4370332,0x40863298a7169dad,1
+np.float64,0x800f97ff8d7f2fff,0x800f97ff8d7f2fff,1
+np.float64,0x3fd5e20b6b2bc417,0x3fd57a42bd1c0993,1
+np.float64,0x8006b4072dad680f,0x8006b4072dad680f,1
+np.float64,0x605dccf2c0bba,0x605dccf2c0bba,1
+np.float64,0x3fc705ed142e0bda,0x3fc6e69971d86f73,1
+np.float64,0xffd2ba1aad257436,0xc08629f9bc918f8b,1
+np.float64,0x8002954e23c52a9d,0x8002954e23c52a9d,1
+np.float64,0xbfecc65da7798cbb,0xbfe9dd745be18562,1
+np.float64,0x7fc66110482cc220,0x408625db0db57ef8,1
+np.float64,0x3fcd09446d3a1289,0x3fcccaf2dd0a41ea,1
+np.float64,0x3febe7095437ce13,0x3fe93642d1e73b2a,1
+np.float64,0x8004773c7da8ee7a,0x8004773c7da8ee7a,1
+np.float64,0x8001833241230665,0x8001833241230665,1
+np.float64,0x3fe6a262db6d44c6,0x3fe513b3dab5adce,1
+np.float64,0xe6282cc1cc506,0xe6282cc1cc506,1
+np.float64,0x800b9d8553973b0b,0x800b9d8553973b0b,1
+np.float64,0x3fdfbe0c7b3f7c19,0x3fde912375d867a8,1
+np.float64,0x7fd5ac11ebab5823,0x40862b24dfc6d08e,1
+np.float64,0x800e4b7cb1fc96f9,0x800e4b7cb1fc96f9,1
+np.float64,0x3fe14706da628e0e,0x3fe0883aec2a917a,1
+np.float64,0x7fc963f97532c7f2,0x408626dd9b0cafe1,1
+np.float64,0xbfe9c250b5b384a2,0xbfe791c5eabcb05d,1
+np.float64,0x3fe8d16e6c71a2dd,0x3fe6d4c7a33a0bf4,1
+np.float64,0x3fe474ae4628e95d,0x3fe34515c93f4733,1
+np.float64,0x3fbf3257ee3e64b0,0x3fbf1eb530e126ea,1
+np.float64,0x8005f089b3abe114,0x8005f089b3abe114,1
+np.float64,0x3fece07bccf9c0f8,0x3fe9f0dc228124d5,1
+np.float64,0xbfc52521632a4a44,0xbfc50ccebdf59c2c,1
+np.float64,0x7fdf53beb13ea77c,0x40862e177918195e,1
+np.float64,0x8003d9f6ad07b3ee,0x8003d9f6ad07b3ee,1
+np.float64,0xffeacf96bbb59f2d,0xc086326436b38b1a,1
+np.float64,0xdccaea29b995e,0xdccaea29b995e,1
+np.float64,0x5948d21eb291b,0x5948d21eb291b,1
+np.float64,0x10000000000000,0x10000000000000,1
+np.float64,0x7fef6d2c543eda58,0x408633a98593cdf5,1
+np.float64,0x7feda454f47b48a9,0x40863331cb6dc9f7,1
+np.float64,0x3fdd377cecba6ef8,0x3fdc4968f74a9c83,1
+np.float64,0x800644096d4c8814,0x800644096d4c8814,1
+np.float64,0xbfe33ca15ae67942,0xbfe23be5de832bd8,1
+np.float64,0xffce9582bd3d2b04,0xc086285abdf9bf9d,1
+np.float64,0x3fe6621e86acc43d,0x3fe4df231bfa93e1,1
+np.float64,0xee7d19e9dcfa3,0xee7d19e9dcfa3,1
+np.float64,0x800be5997277cb33,0x800be5997277cb33,1
+np.float64,0x82069041040e,0x82069041040e,1
+np.float64,0x800d6efdc19addfc,0x800d6efdc19addfc,1
+np.float64,0x7fb27770ee24eee1,0x40861ec5ed91b839,1
+np.float64,0x3fd506064caa0c0d,0x3fd4a9a66353fefd,1
+np.float64,0xbfeca9b36bf95367,0xbfe9c81f03ba37b8,1
+np.float64,0xffeab1b7bab5636f,0xc086325b47f61f2b,1
+np.float64,0xffc99f5b2e333eb8,0xc08626f03b08b412,1
+np.float64,0x3fbf1a71bc3e34e3,0x3fbf06fbcaa5de58,1
+np.float64,0x3fe75015736ea02b,0x3fe5a0cd8d763d8d,1
+np.float64,0xffe6a7442fad4e88,0xc086310b20addba4,1
+np.float64,0x3fe5d62ff86bac60,0x3fe46c033195bf28,1
+np.float64,0x7fd0b1f0362163df,0x4086290e857dc1be,1
+np.float64,0xbe0353737c06b,0xbe0353737c06b,1
+np.float64,0x7fec912d8739225a,0x408632e627704635,1
+np.float64,0xded8ba2fbdb18,0xded8ba2fbdb18,1
+np.float64,0x7fec0b53fdf816a7,0x408632c052bc1bd2,1
+np.float64,0x7fe9640d12b2c819,0x408631f4c2ba54d8,1
+np.float64,0x800be714eeb7ce2a,0x800be714eeb7ce2a,1
+np.float64,0xbfcf444a793e8894,0xbfcef6c126b54853,1
+np.float64,0xffeb20cf1bf6419e,0xc086327c4e6ffe80,1
+np.float64,0xc07de22180fd,0xc07de22180fd,1
+np.float64,0xffed129d387a253a,0xc086330a15ad0adb,1
+np.float64,0x3fd9e94fedb3d2a0,0x3fd94049924706a8,1
+np.float64,0x7fe6ba488c2d7490,0x40863111d51e7861,1
+np.float64,0xbfebbdf25db77be5,0xbfe91740ad7ba521,1
+np.float64,0x7fbc6c3c4838d878,0x40862239160cb613,1
+np.float64,0xbfefa82ecebf505e,0xbfebf5f31957dffd,1
+np.float64,0x800bebeb7ad7d7d7,0x800bebeb7ad7d7d7,1
+np.float64,0x7fecccc6f8f9998d,0x408632f6c6da8aac,1
+np.float64,0xcbe4926197ca,0xcbe4926197ca,1
+np.float64,0x2c5d9fd858bb5,0x2c5d9fd858bb5,1
+np.float64,0xbfe9fb021073f604,0xbfe7bddc61f1151a,1
+np.float64,0xbfebb18572f7630b,0xbfe90ddc5002313f,1
+np.float64,0x13bb0d3227763,0x13bb0d3227763,1
+np.float64,0x3feefa5e5cbdf4bd,0x3feb79b9e8ce16bf,1
+np.float64,0x3fc97f086132fe10,0x3fc9549fc8e15ecb,1
+np.float64,0xffe70887c06e110f,0xc086312d30fd31cf,1
+np.float64,0xa00c113540182,0xa00c113540182,1
+np.float64,0x800950984772a131,0x800950984772a131,1
+np.float64,0x1,0x1,1
+np.float64,0x3fd83b4026b07680,0x3fd7afdc659d9a34,1
+np.float64,0xbfe32348fbe64692,0xbfe226292a706a1a,1
+np.float64,0x800b894dcc77129c,0x800b894dcc77129c,1
+np.float64,0xeb2ca419d6595,0xeb2ca419d6595,1
+np.float64,0xbff0000000000000,0xbfec34366179d427,1
+np.float64,0x3feb269e99f64d3d,0x3fe8a4634b927a21,1
+np.float64,0xbfe83149d7706294,0xbfe655a2b245254e,1
+np.float64,0xbfe6eef3ca6ddde8,0xbfe5521310e24d16,1
+np.float64,0x3fea89a4b7b51349,0x3fe82c1fc69edcec,1
+np.float64,0x800f2a8bf17e5518,0x800f2a8bf17e5518,1
+np.float64,0x800f71fac29ee3f6,0x800f71fac29ee3f6,1
+np.float64,0xe7cb31f1cf966,0xe7cb31f1cf966,1
+np.float64,0x3b0f8752761f2,0x3b0f8752761f2,1
+np.float64,0x3fea27dea3744fbd,0x3fe7e0a4705476b2,1
+np.float64,0xbfa97c019c32f800,0xbfa97950c1257b92,1
+np.float64,0xffeff13647ffe26c,0xc08633cadc7105ed,1
+np.float64,0x3feee162353dc2c4,0x3feb67c2da0fbce8,1
+np.float64,0x80088c0807911810,0x80088c0807911810,1
+np.float64,0x3fe936ab1db26d56,0x3fe72489bc69719d,1
+np.float64,0xa2f84bd545f0a,0xa2f84bd545f0a,1
+np.float64,0xbfed445ed27a88be,0xbfea3acac0aaf482,1
+np.float64,0x800faf3e69df5e7d,0x800faf3e69df5e7d,1
+np.float64,0x3fc145a330228b46,0x3fc13853f11b1c90,1
+np.float64,0xbfe25ec5abe4bd8c,0xbfe17c9e9b486f07,1
+np.float64,0x3fe119b160e23363,0x3fe0604b10178966,1
+np.float64,0x7fe0cbf2836197e4,0x40862ea6831e5f4a,1
+np.float64,0x3fe75dd3b4eebba8,0x3fe5abe80fd628fb,1
+np.float64,0x3f7c391000387220,0x3f7c39015d8f3a36,1
+np.float64,0x899d9cad133b4,0x899d9cad133b4,1
+np.float64,0x3fe5f0e34febe1c6,0x3fe4820cefe138fc,1
+np.float64,0x7fe060dfdba0c1bf,0x40862e72de8afcd0,1
+np.float64,0xbfae42f7103c85f0,0xbfae3e7630819c60,1
+np.float64,0x35f1f2c06be5,0x35f1f2c06be5,1
+np.float64,0xffc5194d362a329c,0xc086256266c8b7ad,1
+np.float64,0xbfda034f1b34069e,0xbfd95860a44c43ad,1
+np.float64,0x32bcebca6579e,0x32bcebca6579e,1
+np.float64,0xbfd1751ebca2ea3e,0xbfd13f79f45bf75c,1
+np.float64,0x3fee4fa1e5bc9f44,0x3feafe69e0d6c1c7,1
+np.float64,0x7f9c03cd5038079a,0x4086170459172900,1
+np.float64,0x7fc5fb6d6d2bf6da,0x408625b6651cfc73,1
+np.float64,0x7ff8000000000000,0x7ff8000000000000,1
+np.float64,0xffd1a8162ca3502c,0xc0862981333931ad,1
+np.float64,0x7fc415c198282b82,0x408624fd8c155d1b,1
+np.float64,0xffda37fbe7b46ff8,0xc0862caae7865c43,1
+np.float64,0xbfef4312257e8624,0xbfebadd89f3ee31c,1
+np.float64,0xbfec45e1fd788bc4,0xbfe97d8b14db6274,1
+np.float64,0xbfe6fdcfd26dfba0,0xbfe55e25b770d00a,1
+np.float64,0x7feb66d424f6cda7,0x40863290d9ff7ea2,1
+np.float64,0x8b08a29916115,0x8b08a29916115,1
+np.float64,0xffe12ca25c625944,0xc0862ed40d769f72,1
+np.float64,0x7ff4000000000000,0x7ffc000000000000,1
+np.float64,0x804925e100925,0x804925e100925,1
+np.float64,0xcebf3e019d9,0xcebf3e019d9,1
+np.float64,0xbfd5d75d4aabaeba,0xbfd57027671dedf7,1
+np.float64,0x800b829ecd37053e,0x800b829ecd37053e,1
+np.float64,0x800b1205daf6240c,0x800b1205daf6240c,1
+np.float64,0x3fdf7e9889befd31,0x3fde583fdff406c3,1
+np.float64,0x7ff0000000000000,0x7ff0000000000000,1
+np.float64,0x3fdc09760d3812ec,0x3fdb35b55c8090c6,1
+np.float64,0x800c4d99e4f89b34,0x800c4d99e4f89b34,1
+np.float64,0xffbaa6772e354cf0,0xc08621b535badb2f,1
+np.float64,0xbfc91188fd322310,0xbfc8e933b5d25ea7,1
+np.float64,0xffc1b947f4237290,0xc08623fd69164251,1
+np.float64,0x3fc6ab3b252d5678,0x3fc68d50bbac106d,1
+np.float64,0xffac8eb968391d70,0xc0861cb734833355,1
+np.float64,0xffe29a35c365346b,0xc0862f77a1aed6d8,1
+np.float64,0x3fde14b9543c2973,0x3fdd122697779015,1
+np.float64,0xbf10f5400021e000,0xbf10f53fffef1383,1
+np.float64,0xffe0831aa3e10635,0xc0862e838553d0ca,1
+np.float64,0x3fccbadbcf3975b8,0x3fcc7e768d0154ec,1
+np.float64,0x3fe092ef66e125df,0x3fdfd212a7116c9b,1
+np.float64,0xbfd727f039ae4fe0,0xbfd6adad040b2334,1
+np.float64,0xbfe4223b93a84477,0xbfe2ff7587364db4,1
+np.float64,0x3f4e5c3a003cb874,0x3f4e5c39b75c70f7,1
+np.float64,0x800e76b1a87ced63,0x800e76b1a87ced63,1
+np.float64,0x3fed2b7368fa56e7,0x3fea2863b9131b8c,1
+np.float64,0xffadb76ec43b6ee0,0xc0861d08ae79f20c,1
+np.float64,0x800b6a0cd1f6d41a,0x800b6a0cd1f6d41a,1
+np.float64,0xffee6aa943fcd552,0xc0863366a24250d5,1
+np.float64,0xbfe68cbc4e6d1978,0xbfe502040591aa5b,1
+np.float64,0xff859a38002b3480,0xc0860f64726235cc,1
+np.float64,0x3474d13e68e9b,0x3474d13e68e9b,1
+np.float64,0xffc11d49f6223a94,0xc08623b5c2df9712,1
+np.float64,0x800d82d019bb05a0,0x800d82d019bb05a0,1
+np.float64,0xbfe2af0192255e03,0xbfe1c20e38106388,1
+np.float64,0x3fe97d13c032fa28,0x3fe75bba11a65f86,1
+np.float64,0x7fcd457e133a8afb,0x40862800e80f5863,1
+np.float64,0x9d7254cf3ae4b,0x9d7254cf3ae4b,1
+np.float64,0x8003047675a608ee,0x8003047675a608ee,1
+np.float64,0x3fead6cd7d75ad9a,0x3fe8676138e5ff93,1
+np.float64,0x3fea6ee3b0f4ddc7,0x3fe817838a2bcbe3,1
+np.float64,0x3feed0edea7da1dc,0x3feb5bea3cb12fe2,1
+np.float64,0x88003fe510008,0x88003fe510008,1
+np.float64,0x3fe64cadc56c995c,0x3fe4cd8ead87fc79,1
+np.float64,0xaae30c5955c62,0xaae30c5955c62,1
+np.float64,0x7fc8c97cae3192f8,0x408626ac579f4fc5,1
+np.float64,0xbfc2bc0e8b25781c,0xbfc2ab188fdab7dc,1
+np.float64,0xc8f8e5e791f1d,0xc8f8e5e791f1d,1
+np.float64,0x3fecfaa5d6f9f54c,0x3fea0444dabe5a15,1
+np.float64,0xbfeb93740ff726e8,0xbfe8f71a9ab13baf,1
+np.float64,0xffd951236c32a246,0xc0862c633a4661eb,1
+np.float64,0x3fddbc5fcd3b78c0,0x3fdcc21c1a0a9246,1
+np.float64,0xbfd242443da48488,0xbfd20512d91f7924,1
+np.float64,0x2a3689b2546d2,0x2a3689b2546d2,1
+np.float64,0xffe24c67382498ce,0xc0862f55e4ea6283,1
+np.float64,0x800cbfce22197f9c,0x800cbfce22197f9c,1
+np.float64,0x8002269428044d29,0x8002269428044d29,1
+np.float64,0x7fd44babbd289756,0x40862a9e79b51c3b,1
+np.float64,0x3feea056a27d40ad,0x3feb38dcddb682f0,1
+np.float64,0xffeca8174b39502e,0xc08632ec8f88a5b2,1
+np.float64,0x7fbe0853a03c10a6,0x408622a9e8d53a9e,1
+np.float64,0xbfa9704b2432e090,0xbfa96d9dfc8c0cc2,1
+np.float64,0x800bda28fab7b452,0x800bda28fab7b452,1
+np.float64,0xbfb0ffa2f621ff48,0xbfb0fc71f405e82a,1
+np.float64,0xbfe66c04216cd808,0xbfe4e73ea3b58cf6,1
+np.float64,0x3fe336ea5d266dd5,0x3fe236ffcf078c62,1
+np.float64,0xbfe7729ae6aee536,0xbfe5bcad4b8ac62d,1
+np.float64,0x558cfc96ab1a0,0x558cfc96ab1a0,1
+np.float64,0xbfe7d792aaefaf26,0xbfe60de1b8f0279d,1
+np.float64,0xffd19ef6bda33dee,0xc086297d0ffee3c7,1
+np.float64,0x666b3ab4ccd68,0x666b3ab4ccd68,1
+np.float64,0xffa3d89e3c27b140,0xc08619cdeb2c1e49,1
+np.float64,0xbfb1728f7f62f,0xbfb1728f7f62f,1
+np.float64,0x3fc76319f32ec634,0x3fc74247bd005e20,1
+np.float64,0xbfbf1caee23e3960,0xbfbf0934c13d70e2,1
+np.float64,0x7fe79626f32f2c4d,0x4086315dcc68a5cb,1
+np.float64,0xffee78c4603cf188,0xc086336a572c05c2,1
+np.float64,0x3fce546eda3ca8de,0x3fce0d8d737fd31d,1
+np.float64,0xa223644d4446d,0xa223644d4446d,1
+np.float64,0x3fecea878b79d510,0x3fe9f850d50973f6,1
+np.float64,0x3fc20e0ea1241c1d,0x3fc1fedda87c5e75,1
+np.float64,0xffd1c5a99ca38b54,0xc086298e8e94cd47,1
+np.float64,0x7feb2c299d765852,0x4086327fa6db2808,1
+np.float64,0xcaf9d09595f3a,0xcaf9d09595f3a,1
+np.float64,0xbfe293bf21e5277e,0xbfe1aa7f6ac274ef,1
+np.float64,0xbfbaa3c8ce354790,0xbfba97891df19c01,1
+np.float64,0x3faf5784543eaf09,0x3faf5283acc7d71d,1
+np.float64,0x7fc014f8f62029f1,0x40862336531c662d,1
+np.float64,0xbfe0d9ac2d61b358,0xbfe027bce36699ca,1
+np.float64,0x8003e112ff27c227,0x8003e112ff27c227,1
+np.float64,0xffec0d4151381a82,0xc08632c0df718dd0,1
+np.float64,0x7fa2156fb0242ade,0x4086190f7587d708,1
+np.float64,0xd698358dad307,0xd698358dad307,1
+np.float64,0xbfed8d1b0efb1a36,0xbfea70588ef9ba18,1
+np.float64,0xbfd2cae6a92595ce,0xbfd28851e2185dee,1
+np.float64,0xffe7a36764ef46ce,0xc086316249c9287a,1
+np.float64,0xbfdb8ad8e5b715b2,0xbfdac19213c14315,1
+np.float64,0x3b5dba6076bc,0x3b5dba6076bc,1
+np.float64,0x800e6e8347bcdd07,0x800e6e8347bcdd07,1
+np.float64,0x800bea9f3fb7d53f,0x800bea9f3fb7d53f,1
+np.float64,0x7fb6d0e5fc2da1cb,0x4086207714c4ab85,1
+np.float64,0x0,0x0,1
+np.float64,0xbfe2aa1e1465543c,0xbfe1bdd550ef2966,1
+np.float64,0x7fd3f6a47fa7ed48,0x40862a7caea33055,1
+np.float64,0x800094e292c129c6,0x800094e292c129c6,1
+np.float64,0x800e1500ecbc2a02,0x800e1500ecbc2a02,1
+np.float64,0xbfd8ff6f97b1fee0,0xbfd866f84346ecdc,1
+np.float64,0x681457d0d028c,0x681457d0d028c,1
+np.float64,0x3feed0b5987da16b,0x3feb5bc1ab424984,1
+np.float64,0x3fdbcb34cdb79668,0x3fdafca540f32c06,1
+np.float64,0xbfdc9eacdcb93d5a,0xbfdbbe274aa8aeb0,1
+np.float64,0xffe6e35d526dc6ba,0xc08631203df38ed2,1
+np.float64,0x3fcac1cc65358398,0x3fca90de41889613,1
+np.float64,0xbfebf07a55b7e0f5,0xbfe93d6007db0c67,1
+np.float64,0xbfd7a7b1e7af4f64,0xbfd725a9081c22cb,1
+np.float64,0x800232bd7de4657c,0x800232bd7de4657c,1
+np.float64,0x7fb1dae43c23b5c7,0x40861e80f5c0a64e,1
+np.float64,0x8013ded70027c,0x8013ded70027c,1
+np.float64,0x7fc4373a59286e74,0x4086250ad60575d0,1
+np.float64,0xbfe9980fd6733020,0xbfe770d1352d0ed3,1
+np.float64,0x8008a66b8dd14cd7,0x8008a66b8dd14cd7,1
+np.float64,0xbfaebc67f83d78d0,0xbfaeb7b015848478,1
+np.float64,0xffd0c52762218a4e,0xc0862917b564afc6,1
+np.float64,0xbfd503860aaa070c,0xbfd4a74618441561,1
+np.float64,0x5bdacabcb7b5a,0x5bdacabcb7b5a,1
+np.float64,0xf3623cffe6c48,0xf3623cffe6c48,1
+np.float64,0x7fe16c6c7ea2d8d8,0x40862ef18d90201f,1
+np.float64,0x3ff0000000000000,0x3fec34366179d427,1
+np.float64,0x7fe19cbc84233978,0x40862f079dcbc169,1
+np.float64,0x3fcfd3d6933fa7ad,0x3fcf822187907f6b,1
+np.float64,0x8007d65d672facbc,0x8007d65d672facbc,1
+np.float64,0xffca6115aa34c22c,0xc086272bd7728750,1
+np.float64,0xbfe77ab1556ef562,0xbfe5c332fb55b66e,1
+np.float64,0x8001ed797c23daf4,0x8001ed797c23daf4,1
+np.float64,0x7fdd3d16cb3a7a2d,0x40862d8a2c869281,1
+np.float64,0x75f36beaebe6e,0x75f36beaebe6e,1
+np.float64,0xffda3c2798b47850,0xc0862cac2d3435df,1
+np.float64,0xbfa37cc3c426f980,0xbfa37b8f9d3ec4b7,1
+np.float64,0x80030ea8bd061d52,0x80030ea8bd061d52,1
+np.float64,0xffe41f7617683eec,0xc08630188a3e135e,1
+np.float64,0x800e40590dfc80b2,0x800e40590dfc80b2,1
+np.float64,0x3fea950d80f52a1c,0x3fe834e74481e66f,1
+np.float64,0xffec95e39a792bc6,0xc08632e779150084,1
+np.float64,0xbfd54310ecaa8622,0xbfd4e39c4d767002,1
+np.float64,0xffd40c9971a81932,0xc0862a85764eb2f4,1
+np.float64,0xb0a2230761445,0xb0a2230761445,1
+np.float64,0x80092973661252e7,0x80092973661252e7,1
+np.float64,0x7fb13b030a227605,0x40861e380aeb5549,1
+np.float64,0x3fbd5d8db23abb1b,0x3fbd4d2a0b94af36,1
+np.float64,0xbfd6cb8567ad970a,0xbfd656b19ab8fa61,1
+np.float64,0xbfe7c0fd346f81fa,0xbfe5fbc28807c794,1
+np.float64,0xffd586579eab0cb0,0xc0862b16e65c0754,1
+np.float64,0x8000e52da461ca5c,0x8000e52da461ca5c,1
+np.float64,0x3fc69d17112d3a2e,0x3fc67f63fe1fea1c,1
+np.float64,0x3fd36ba892a6d750,0x3fd3225be1fa87af,1
+np.float64,0x7fe2850598e50a0a,0x40862f6e7fcd6c1a,1
+np.float64,0x80074a4dacce949c,0x80074a4dacce949c,1
+np.float64,0x3fe25eea4d64bdd5,0x3fe17cbe5fefbd4e,1
+np.float64,0xbfe250c08be4a181,0xbfe17074c520e5de,1
+np.float64,0x8000f5665481eacd,0x8000f5665481eacd,1
+np.float64,0x7fdb3172f83662e5,0x40862cf5a46764f1,1
+np.float64,0x7fd8ed82d631db05,0x40862c4380658afa,1
+np.float64,0xffec5163feb8a2c7,0xc08632d4366aab06,1
+np.float64,0x800ff14ac6ffe296,0x800ff14ac6ffe296,1
+np.float64,0xbfc7cc7aea2f98f4,0xbfc7a9e9cb38f023,1
+np.float64,0xbfd50cdfc32a19c0,0xbfd4b0282b452fb2,1
+np.float64,0xbfec256d75b84adb,0xbfe965328c1860b2,1
+np.float64,0xffe860c4cdb0c189,0xc08631a164b7059a,1
+np.float64,0xbfe23de164247bc3,0xbfe16011bffa4651,1
+np.float64,0xcc96b39d992d7,0xcc96b39d992d7,1
+np.float64,0xbfec43acf938875a,0xbfe97be3a13b50c3,1
+np.float64,0xc4f587bb89eb1,0xc4f587bb89eb1,1
+np.float64,0xbfcd971d9a3b2e3c,0xbfcd5537ad15dab4,1
+np.float64,0xffcaf00d8035e01c,0xc0862756bf2cdf8f,1
+np.float64,0x8008c26f93f184e0,0x8008c26f93f184e0,1
+np.float64,0xfff0000000000000,0xfff0000000000000,1
+np.float64,0xbfd13552c3a26aa6,0xbfd101e5e252eb7b,1
+np.float64,0x7fe497235e292e46,0x4086304792fb423a,1
+np.float64,0x7fd6dc0192adb802,0x40862b921a5e935d,1
+np.float64,0xf16d49a1e2da9,0xf16d49a1e2da9,1
+np.float64,0xffef6b1b71bed636,0xc08633a8feed0178,1
+np.float64,0x7fe15ec62f62bd8b,0x40862eeb46b193dc,1
+np.float64,0x3fef4369ec7e86d4,0x3febae1768be52cc,1
+np.float64,0x4f84e8e89f09e,0x4f84e8e89f09e,1
+np.float64,0xbfe19e71ade33ce4,0xbfe0d4fad05e0ebc,1
+np.float64,0xbfe7e1df1defc3be,0xbfe616233e15b3d0,1
+np.float64,0x7fe9349afdb26935,0x408631e5c1c5c6cd,1
+np.float64,0xff90c35ac82186c0,0xc08612e896a06467,1
+np.float64,0xbfe88bf8807117f1,0xbfe69dc786464422,1
+np.float64,0x3feaf9ff6475f3fe,0x3fe8825132410d18,1
+np.float64,0x9ff487a33fe91,0x9ff487a33fe91,1
+np.float64,0x7fedb30159bb6602,0x40863335c0419322,1
+np.float64,0x800bddf6ed77bbee,0x800bddf6ed77bbee,1
+np.float64,0x3fd919df133233be,0x3fd87f963b9584ce,1
+np.float64,0x7fd64da3b52c9b46,0x40862b5fa9dd3b6d,1
+np.float64,0xbfce288db43c511c,0xbfcde2d953407ae8,1
+np.float64,0x3fe88bc72771178e,0x3fe69da05e9e9b4e,1
+np.float64,0x800feafe259fd5fc,0x800feafe259fd5fc,1
+np.float64,0x3febbbff4a7777ff,0x3fe915c78f6a280f,1
+np.float64,0xbfefbde4417f7bc9,0xbfec055f4fb2cd21,1
+np.float64,0xf13ca103e2794,0xf13ca103e2794,1
+np.float64,0x3fe6423884ec8471,0x3fe4c4f97eaa876a,1
+np.float64,0x800ca01c8cb94039,0x800ca01c8cb94039,1
+np.float64,0x3fbc5073f638a0e0,0x3fbc41c163ac0001,1
+np.float64,0xbfda0d83cfb41b08,0xbfd961d4cacc82cf,1
+np.float64,0x800f37b8f17e6f72,0x800f37b8f17e6f72,1
+np.float64,0x7fe0b08cd7216119,0x40862e996becb771,1
+np.float64,0xffd4222a40a84454,0xc0862a8e0c984917,1
+np.float64,0x7feb3df98ff67bf2,0x40863284e3a86ee6,1
+np.float64,0x8001d5d291e3aba6,0x8001d5d291e3aba6,1
+np.float64,0xbfd3c21629a7842c,0xbfd3750095a5894a,1
+np.float64,0xbfd069eb48a0d3d6,0xbfd03d2b1c2ae9db,1
+np.float64,0xffeb1be2973637c4,0xc086327ada954662,1
+np.float64,0x3fc659f97e2cb3f3,0x3fc63d497a451f10,1
+np.float64,0xbfeb624bc776c498,0xbfe8d1cf7c0626ca,1
+np.float64,0xffeedf26e23dbe4d,0xc08633850baab425,1
+np.float64,0xffe70da48a6e1b48,0xc086312ef75d5036,1
+np.float64,0x2b4f4830569ea,0x2b4f4830569ea,1
+np.float64,0xffe82e7fcfb05cff,0xc0863190d4771f75,1
+np.float64,0x3fcc2c1fd5385840,0x3fcbf3211ddc5123,1
+np.float64,0x7fe22ced5a6459da,0x40862f481629ee6a,1
+np.float64,0x7fe13d2895e27a50,0x40862edbbc411899,1
+np.float64,0x3fd54c4280aa9884,0x3fd4ec55a946c5d7,1
+np.float64,0xffd75b8e01aeb71c,0xc0862bbe42d76e5e,1
+np.float64,0x7f1d5376fe3ab,0x7f1d5376fe3ab,1
+np.float64,0x3fe6ec6c902dd8d9,0x3fe55004f35192bd,1
+np.float64,0x5634504aac68b,0x5634504aac68b,1
+np.float64,0x3feedb0d83bdb61b,0x3feb633467467ce6,1
+np.float64,0x3fddb1c0dcbb6380,0x3fdcb87a02daf1fa,1
+np.float64,0xbfa832da443065b0,0xbfa8308c70257209,1
+np.float64,0x87a9836b0f531,0x87a9836b0f531,1
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/data/umath-validation-set-arctan.csv b/python/user_packages/Python313/site-packages/numpy/_core/tests/data/umath-validation-set-arctan.csv
new file mode 100644
index 0000000000000000000000000000000000000000..351b17252bdbe97da24199e15f505cab44ede5e2
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/tests/data/umath-validation-set-arctan.csv
@@ -0,0 +1,1429 @@
+dtype,input,output,ulperrortol
+np.float32,0x3f338252,0x3f1c8d9c,3
+np.float32,0x7e569df2,0x3fc90fdb,3
+np.float32,0xbf347e25,0xbf1d361f,3
+np.float32,0xbf0a654e,0xbefdbfd2,3
+np.float32,0x8070968e,0x8070968e,3
+np.float32,0x803cfb27,0x803cfb27,3
+np.float32,0x8024362e,0x8024362e,3
+np.float32,0xfd55dca0,0xbfc90fdb,3
+np.float32,0x592b82,0x592b82,3
+np.float32,0x802eb8e1,0x802eb8e1,3
+np.float32,0xbc5fef40,0xbc5febae,3
+np.float32,0x3f1f6ce8,0x3f0e967c,3
+np.float32,0x20bedc,0x20bedc,3
+np.float32,0xbf058860,0xbef629c7,3
+np.float32,0x311504,0x311504,3
+np.float32,0xbd23f560,0xbd23defa,3
+np.float32,0x800ff4e8,0x800ff4e8,3
+np.float32,0x355009,0x355009,3
+np.float32,0x3f7be42e,0x3f46fdb3,3
+np.float32,0xbf225f7c,0xbf10b364,3
+np.float32,0x8074fa9e,0x8074fa9e,3
+np.float32,0xbea4b418,0xbe9f59ce,3
+np.float32,0xbe909c14,0xbe8cf045,3
+np.float32,0x80026bee,0x80026bee,3
+np.float32,0x3d789c20,0x3d784e25,3
+np.float32,0x7f56a4ba,0x3fc90fdb,3
+np.float32,0xbf70d141,0xbf413db7,3
+np.float32,0xbf2c4886,0xbf17a505,3
+np.float32,0x7e2993bf,0x3fc90fdb,3
+np.float32,0xbe2c8a30,0xbe2aef28,3
+np.float32,0x803f82d9,0x803f82d9,3
+np.float32,0x3f062fbc,0x3ef730a1,3
+np.float32,0x3f349ee0,0x3f1d4bfa,3
+np.float32,0x3eccfb69,0x3ec2f9e8,3
+np.float32,0x7e8a85dd,0x3fc90fdb,3
+np.float32,0x25331,0x25331,3
+np.float32,0x464f19,0x464f19,3
+np.float32,0x8035c818,0x8035c818,3
+np.float32,0x802e5799,0x802e5799,3
+np.float32,0x64e1c0,0x64e1c0,3
+np.float32,0x701cc2,0x701cc2,3
+np.float32,0x265c57,0x265c57,3
+np.float32,0x807a053f,0x807a053f,3
+np.float32,0x3bd2c412,0x3bd2c354,3
+np.float32,0xff28f1c8,0xbfc90fdb,3
+np.float32,0x7f08f08b,0x3fc90fdb,3
+np.float32,0x800c50e4,0x800c50e4,3
+np.float32,0x369674,0x369674,3
+np.float32,0xbf5b7db3,0xbf3571bf,3
+np.float32,0x7edcf5e2,0x3fc90fdb,3
+np.float32,0x800e5d4b,0x800e5d4b,3
+np.float32,0x80722554,0x80722554,3
+np.float32,0x693f33,0x693f33,3
+np.float32,0x800844e4,0x800844e4,3
+np.float32,0xbf111b82,0xbf0402ec,3
+np.float32,0x7df9c9ac,0x3fc90fdb,3
+np.float32,0xbf6619a6,0xbf3b6f57,3
+np.float32,0x8002fafe,0x8002fafe,3
+np.float32,0xfe1e67f8,0xbfc90fdb,3
+np.float32,0x3f7f4bf8,0x3f48b5b7,3
+np.float32,0x7f017b20,0x3fc90fdb,3
+np.float32,0x2d9b07,0x2d9b07,3
+np.float32,0x803aa174,0x803aa174,3
+np.float32,0x7d530336,0x3fc90fdb,3
+np.float32,0x80662195,0x80662195,3
+np.float32,0xfd5ebcf0,0xbfc90fdb,3
+np.float32,0xbe7b8dcc,0xbe76ab59,3
+np.float32,0x7f2bacaf,0x3fc90fdb,3
+np.float32,0x3f194fc4,0x3f0a229e,3
+np.float32,0x7ee21cdf,0x3fc90fdb,3
+np.float32,0x3f5a17fc,0x3f34a307,3
+np.float32,0x7f100c58,0x3fc90fdb,3
+np.float32,0x7e9128f5,0x3fc90fdb,3
+np.float32,0xbf2107c6,0xbf0fbdb4,3
+np.float32,0xbd29c800,0xbd29af22,3
+np.float32,0xbf5af499,0xbf3522a6,3
+np.float32,0x801bde44,0x801bde44,3
+np.float32,0xfeb4761a,0xbfc90fdb,3
+np.float32,0x3d88aa1b,0x3d887650,3
+np.float32,0x7eba5e0b,0x3fc90fdb,3
+np.float32,0x803906bd,0x803906bd,3
+np.float32,0x80101512,0x80101512,3
+np.float32,0x7e898f83,0x3fc90fdb,3
+np.float32,0x806406d3,0x806406d3,3
+np.float32,0x7ed20fc0,0x3fc90fdb,3
+np.float32,0x20827d,0x20827d,3
+np.float32,0x3f361359,0x3f1e43fe,3
+np.float32,0xfe4ef8d8,0xbfc90fdb,3
+np.float32,0x805e7d2d,0x805e7d2d,3
+np.float32,0xbe4316b0,0xbe40c745,3
+np.float32,0xbf0a1c06,0xbefd4e5a,3
+np.float32,0x3e202860,0x3e1edee1,3
+np.float32,0xbeb32a2c,0xbeac5899,3
+np.float32,0xfe528838,0xbfc90fdb,3
+np.float32,0x2f73e2,0x2f73e2,3
+np.float32,0xbe16e010,0xbe15cc27,3
+np.float32,0x3f50d6c5,0x3f2f2d75,3
+np.float32,0xbe88a6a2,0xbe8589c7,3
+np.float32,0x3ee36060,0x3ed5fb36,3
+np.float32,0x6c978b,0x6c978b,3
+np.float32,0x7f1b735f,0x3fc90fdb,3
+np.float32,0x3dad8256,0x3dad1885,3
+np.float32,0x807f5094,0x807f5094,3
+np.float32,0x65c358,0x65c358,3
+np.float32,0xff315ce4,0xbfc90fdb,3
+np.float32,0x7411a6,0x7411a6,3
+np.float32,0x80757b04,0x80757b04,3
+np.float32,0x3eec73a6,0x3edd82f4,3
+np.float32,0xfe9f69e8,0xbfc90fdb,3
+np.float32,0x801f4fa8,0x801f4fa8,3
+np.float32,0xbf6f2fae,0xbf405f79,3
+np.float32,0xfea206b6,0xbfc90fdb,3
+np.float32,0x3f257301,0x3f12e1ee,3
+np.float32,0x7ea6a506,0x3fc90fdb,3
+np.float32,0x80800000,0x80800000,3
+np.float32,0xff735c2d,0xbfc90fdb,3
+np.float32,0x80197f95,0x80197f95,3
+np.float32,0x7f4a354f,0x3fc90fdb,3
+np.float32,0xff320c00,0xbfc90fdb,3
+np.float32,0x3f2659de,0x3f138484,3
+np.float32,0xbe5451bc,0xbe515a52,3
+np.float32,0x3f6e228c,0x3f3fcf7c,3
+np.float32,0x66855a,0x66855a,3
+np.float32,0x8034b3a3,0x8034b3a3,3
+np.float32,0xbe21a2fc,0xbe20505d,3
+np.float32,0x7f79e2dc,0x3fc90fdb,3
+np.float32,0xbe19a8e0,0xbe18858c,3
+np.float32,0x10802c,0x10802c,3
+np.float32,0xfeee579e,0xbfc90fdb,3
+np.float32,0x3f3292c8,0x3f1becc0,3
+np.float32,0xbf595a71,0xbf34350a,3
+np.float32,0xbf7c3373,0xbf4725f4,3
+np.float32,0xbdd30938,0xbdd24b36,3
+np.float32,0x153a17,0x153a17,3
+np.float32,0x807282a0,0x807282a0,3
+np.float32,0xfe817322,0xbfc90fdb,3
+np.float32,0x3f1b3628,0x3f0b8771,3
+np.float32,0x41be8f,0x41be8f,3
+np.float32,0x7f4a8343,0x3fc90fdb,3
+np.float32,0x3dc4ea2b,0x3dc44fae,3
+np.float32,0x802aac25,0x802aac25,3
+np.float32,0xbf20e1d7,0xbf0fa284,3
+np.float32,0xfd91a1b0,0xbfc90fdb,3
+np.float32,0x3f0d5476,0x3f012265,3
+np.float32,0x21c916,0x21c916,3
+np.float32,0x807df399,0x807df399,3
+np.float32,0x7e207b4c,0x3fc90fdb,3
+np.float32,0x8055f8ff,0x8055f8ff,3
+np.float32,0x7edf3b01,0x3fc90fdb,3
+np.float32,0x803a8df3,0x803a8df3,3
+np.float32,0x3ce3b002,0x3ce3a101,3
+np.float32,0x3f62dd54,0x3f39a248,3
+np.float32,0xff33ae10,0xbfc90fdb,3
+np.float32,0x7e3de69d,0x3fc90fdb,3
+np.float32,0x8024581e,0x8024581e,3
+np.float32,0xbf4ac99d,0xbf2b807a,3
+np.float32,0x3f157d19,0x3f074d8c,3
+np.float32,0xfed383f4,0xbfc90fdb,3
+np.float32,0xbf5a39fa,0xbf34b6b8,3
+np.float32,0x800d757d,0x800d757d,3
+np.float32,0x807d606b,0x807d606b,3
+np.float32,0x3e828f89,0x3e7fac2d,3
+np.float32,0x7a6604,0x7a6604,3
+np.float32,0x7dc7e72b,0x3fc90fdb,3
+np.float32,0x80144146,0x80144146,3
+np.float32,0x7c2eed69,0x3fc90fdb,3
+np.float32,0x3f5b4d8c,0x3f3555fc,3
+np.float32,0xfd8b7778,0xbfc90fdb,3
+np.float32,0xfc9d9140,0xbfc90fdb,3
+np.float32,0xbea265d4,0xbe9d4232,3
+np.float32,0xbe9344d0,0xbe8f65da,3
+np.float32,0x3f71f19a,0x3f41d65b,3
+np.float32,0x804a3f59,0x804a3f59,3
+np.float32,0x3e596290,0x3e563476,3
+np.float32,0x3e994ee4,0x3e94f546,3
+np.float32,0xbc103e00,0xbc103d0c,3
+np.float32,0xbf1cd896,0xbf0cb889,3
+np.float32,0x7f52b080,0x3fc90fdb,3
+np.float32,0xff584452,0xbfc90fdb,3
+np.float32,0x58b26b,0x58b26b,3
+np.float32,0x3f23cd4c,0x3f11b799,3
+np.float32,0x707d7,0x707d7,3
+np.float32,0xff732cff,0xbfc90fdb,3
+np.float32,0x3e41c2a6,0x3e3f7f0f,3
+np.float32,0xbf7058e9,0xbf40fdcf,3
+np.float32,0x7dca9857,0x3fc90fdb,3
+np.float32,0x7f0eb44b,0x3fc90fdb,3
+np.float32,0x8000405c,0x8000405c,3
+np.float32,0x4916ab,0x4916ab,3
+np.float32,0x4811a8,0x4811a8,3
+np.float32,0x3d69bf,0x3d69bf,3
+np.float32,0xfeadcf1e,0xbfc90fdb,3
+np.float32,0x3e08dbbf,0x3e080d58,3
+np.float32,0xff031f88,0xbfc90fdb,3
+np.float32,0xbe09cab8,0xbe08f818,3
+np.float32,0x21d7cd,0x21d7cd,3
+np.float32,0x3f23230d,0x3f113ea9,3
+np.float32,0x7e8a48d4,0x3fc90fdb,3
+np.float32,0x413869,0x413869,3
+np.float32,0x7e832990,0x3fc90fdb,3
+np.float32,0x800f5c09,0x800f5c09,3
+np.float32,0x7f5893b6,0x3fc90fdb,3
+np.float32,0x7f06b5b1,0x3fc90fdb,3
+np.float32,0xbe1cbee8,0xbe1b89d6,3
+np.float32,0xbf279f14,0xbf1468a8,3
+np.float32,0xfea86060,0xbfc90fdb,3
+np.float32,0x3e828174,0x3e7f91bb,3
+np.float32,0xff682c82,0xbfc90fdb,3
+np.float32,0x4e20f3,0x4e20f3,3
+np.float32,0x7f17d7e9,0x3fc90fdb,3
+np.float32,0x80671f92,0x80671f92,3
+np.float32,0x7f6dd100,0x3fc90fdb,3
+np.float32,0x3f219a4d,0x3f102695,3
+np.float32,0x803c9808,0x803c9808,3
+np.float32,0x3c432ada,0x3c43287d,3
+np.float32,0xbd3db450,0xbd3d91a2,3
+np.float32,0x3baac135,0x3baac0d0,3
+np.float32,0xff7fffe1,0xbfc90fdb,3
+np.float32,0xfe38a6f4,0xbfc90fdb,3
+np.float32,0x3dfb0a04,0x3df9cb04,3
+np.float32,0x800b05c2,0x800b05c2,3
+np.float32,0x644163,0x644163,3
+np.float32,0xff03a025,0xbfc90fdb,3
+np.float32,0x3f7d506c,0x3f47b641,3
+np.float32,0xff0e682a,0xbfc90fdb,3
+np.float32,0x3e09b7b0,0x3e08e567,3
+np.float32,0x7f72a216,0x3fc90fdb,3
+np.float32,0x7f800000,0x3fc90fdb,3
+np.float32,0x8050a281,0x8050a281,3
+np.float32,0x7edafa2f,0x3fc90fdb,3
+np.float32,0x3f4e0df6,0x3f2d7f2f,3
+np.float32,0xbf6728e0,0xbf3c050f,3
+np.float32,0x3e904ce4,0x3e8ca6eb,3
+np.float32,0x0,0x0,3
+np.float32,0xfd215070,0xbfc90fdb,3
+np.float32,0x7e406b15,0x3fc90fdb,3
+np.float32,0xbf2803c9,0xbf14af18,3
+np.float32,0x5950c8,0x5950c8,3
+np.float32,0xbeddcec8,0xbed14faa,3
+np.float32,0xbec6457e,0xbebd2aa5,3
+np.float32,0xbf42843c,0xbf2656db,3
+np.float32,0x3ee9cba8,0x3edb5163,3
+np.float32,0xbe30c954,0xbe2f0f90,3
+np.float32,0xbeee6b44,0xbedf216f,3
+np.float32,0xbe35d818,0xbe33f7cd,3
+np.float32,0xbe47c630,0xbe454bc6,3
+np.float32,0x801b146f,0x801b146f,3
+np.float32,0x7f6788da,0x3fc90fdb,3
+np.float32,0x3eaef088,0x3ea8927d,3
+np.float32,0x3eb5983e,0x3eae81fc,3
+np.float32,0x40b51d,0x40b51d,3
+np.float32,0xfebddd04,0xbfc90fdb,3
+np.float32,0x3e591aee,0x3e55efea,3
+np.float32,0xbe2b6b48,0xbe29d81f,3
+np.float32,0xff4a8826,0xbfc90fdb,3
+np.float32,0x3e791df0,0x3e745eac,3
+np.float32,0x7c8f681f,0x3fc90fdb,3
+np.float32,0xfe7a15c4,0xbfc90fdb,3
+np.float32,0x3c8963,0x3c8963,3
+np.float32,0x3f0afa0a,0x3efea5cc,3
+np.float32,0xbf0d2680,0xbf00ff29,3
+np.float32,0x3dc306b0,0x3dc27096,3
+np.float32,0x7f4cf105,0x3fc90fdb,3
+np.float32,0xbe196060,0xbe183ea4,3
+np.float32,0x5caf1c,0x5caf1c,3
+np.float32,0x801f2852,0x801f2852,3
+np.float32,0xbe01aa0c,0xbe00fa53,3
+np.float32,0x3f0cfd32,0x3f00df7a,3
+np.float32,0x7d82038e,0x3fc90fdb,3
+np.float32,0x7f7b927f,0x3fc90fdb,3
+np.float32,0xbe93b2e4,0xbe8fcb7f,3
+np.float32,0x1ffe8c,0x1ffe8c,3
+np.float32,0x3faaf6,0x3faaf6,3
+np.float32,0x3e32b1b8,0x3e30e9ab,3
+np.float32,0x802953c0,0x802953c0,3
+np.float32,0xfe5d9844,0xbfc90fdb,3
+np.float32,0x3e1a59d0,0x3e193292,3
+np.float32,0x801c6edc,0x801c6edc,3
+np.float32,0x1ecf41,0x1ecf41,3
+np.float32,0xfe56b09c,0xbfc90fdb,3
+np.float32,0x7e878351,0x3fc90fdb,3
+np.float32,0x3f401e2c,0x3f24cfcb,3
+np.float32,0xbf204a40,0xbf0f35bb,3
+np.float32,0x3e155a98,0x3e144ee1,3
+np.float32,0xbf34f929,0xbf1d8838,3
+np.float32,0x801bbf70,0x801bbf70,3
+np.float32,0x7e7c9730,0x3fc90fdb,3
+np.float32,0x7cc23432,0x3fc90fdb,3
+np.float32,0xbf351638,0xbf1d9b97,3
+np.float32,0x80152094,0x80152094,3
+np.float32,0x3f2d731c,0x3f187219,3
+np.float32,0x804ab0b7,0x804ab0b7,3
+np.float32,0x37d6db,0x37d6db,3
+np.float32,0xbf3ccc56,0xbf22acbf,3
+np.float32,0x3e546f8c,0x3e5176e7,3
+np.float32,0xbe90e87e,0xbe8d3707,3
+np.float32,0x48256c,0x48256c,3
+np.float32,0x7e2468d0,0x3fc90fdb,3
+np.float32,0x807af47e,0x807af47e,3
+np.float32,0x3ed4b221,0x3ec996f0,3
+np.float32,0x3d3b1956,0x3d3af811,3
+np.float32,0xbe69d93c,0xbe65e7f0,3
+np.float32,0xff03ff14,0xbfc90fdb,3
+np.float32,0x801e79dc,0x801e79dc,3
+np.float32,0x3f467c53,0x3f28d63d,3
+np.float32,0x3eab6baa,0x3ea56a1c,3
+np.float32,0xbf15519c,0xbf072d1c,3
+np.float32,0x7f0bd8e8,0x3fc90fdb,3
+np.float32,0xbe1e0d1c,0xbe1cd053,3
+np.float32,0x8016edab,0x8016edab,3
+np.float32,0x7ecaa09b,0x3fc90fdb,3
+np.float32,0x3f72e6d9,0x3f4257a8,3
+np.float32,0xbefe787e,0xbeec29a4,3
+np.float32,0xbee989e8,0xbedb1af9,3
+np.float32,0xbe662db0,0xbe626a45,3
+np.float32,0x495bf7,0x495bf7,3
+np.float32,0x26c379,0x26c379,3
+np.float32,0x7f54d41a,0x3fc90fdb,3
+np.float32,0x801e7dd9,0x801e7dd9,3
+np.float32,0x80000000,0x80000000,3
+np.float32,0xfa3d3000,0xbfc90fdb,3
+np.float32,0xfa3cb800,0xbfc90fdb,3
+np.float32,0x264894,0x264894,3
+np.float32,0xff6de011,0xbfc90fdb,3
+np.float32,0x7e9045b2,0x3fc90fdb,3
+np.float32,0x3f2253a8,0x3f10aaf4,3
+np.float32,0xbd462bf0,0xbd460469,3
+np.float32,0x7f1796af,0x3fc90fdb,3
+np.float32,0x3e718858,0x3e6d3279,3
+np.float32,0xff437d7e,0xbfc90fdb,3
+np.float32,0x805ae7cb,0x805ae7cb,3
+np.float32,0x807e32e9,0x807e32e9,3
+np.float32,0x3ee0bafc,0x3ed3c453,3
+np.float32,0xbf721dee,0xbf41edc3,3
+np.float32,0xfec9f792,0xbfc90fdb,3
+np.float32,0x7f050720,0x3fc90fdb,3
+np.float32,0x182261,0x182261,3
+np.float32,0x3e39e678,0x3e37e5be,3
+np.float32,0x7e096e4b,0x3fc90fdb,3
+np.float32,0x103715,0x103715,3
+np.float32,0x3f7e7741,0x3f484ae4,3
+np.float32,0x3e29aea5,0x3e28277c,3
+np.float32,0x58c183,0x58c183,3
+np.float32,0xff72fdb2,0xbfc90fdb,3
+np.float32,0xbd9a9420,0xbd9a493c,3
+np.float32,0x7f1e07e7,0x3fc90fdb,3
+np.float32,0xff79f522,0xbfc90fdb,3
+np.float32,0x7c7d0e96,0x3fc90fdb,3
+np.float32,0xbeba9e8e,0xbeb2f504,3
+np.float32,0xfd880a80,0xbfc90fdb,3
+np.float32,0xff7f2a33,0xbfc90fdb,3
+np.float32,0x3e861ae0,0x3e83289c,3
+np.float32,0x7f0161c1,0x3fc90fdb,3
+np.float32,0xfe844ff8,0xbfc90fdb,3
+np.float32,0xbebf4b98,0xbeb7128e,3
+np.float32,0x652bee,0x652bee,3
+np.float32,0xff188a4b,0xbfc90fdb,3
+np.float32,0xbf800000,0xbf490fdb,3
+np.float32,0x80418711,0x80418711,3
+np.float32,0xbeb712d4,0xbeafd1f6,3
+np.float32,0xbf7cee28,0xbf478491,3
+np.float32,0xfe66c59c,0xbfc90fdb,3
+np.float32,0x4166a2,0x4166a2,3
+np.float32,0x3dfa1a2c,0x3df8deb5,3
+np.float32,0xbdbfbcb8,0xbdbf2e0f,3
+np.float32,0xfe60ef70,0xbfc90fdb,3
+np.float32,0xfe009444,0xbfc90fdb,3
+np.float32,0xfeb27aa0,0xbfc90fdb,3
+np.float32,0xbe99f7bc,0xbe95902b,3
+np.float32,0x8043d28d,0x8043d28d,3
+np.float32,0xfe5328c4,0xbfc90fdb,3
+np.float32,0x8017b27e,0x8017b27e,3
+np.float32,0x3ef1d2cf,0x3ee1ebd7,3
+np.float32,0x805ddd90,0x805ddd90,3
+np.float32,0xbf424263,0xbf262d17,3
+np.float32,0xfc99dde0,0xbfc90fdb,3
+np.float32,0xbf7ec13b,0xbf487015,3
+np.float32,0xbef727ea,0xbee64377,3
+np.float32,0xff15ce95,0xbfc90fdb,3
+np.float32,0x1fbba4,0x1fbba4,3
+np.float32,0x3f3b2368,0x3f2198a9,3
+np.float32,0xfefda26e,0xbfc90fdb,3
+np.float32,0x801519ad,0x801519ad,3
+np.float32,0x80473fa2,0x80473fa2,3
+np.float32,0x7e7a8bc1,0x3fc90fdb,3
+np.float32,0x3e8a9289,0x3e87548a,3
+np.float32,0x3ed68987,0x3ecb2872,3
+np.float32,0x805bca66,0x805bca66,3
+np.float32,0x8079c4e3,0x8079c4e3,3
+np.float32,0x3a2510,0x3a2510,3
+np.float32,0x7eedc598,0x3fc90fdb,3
+np.float32,0x80681956,0x80681956,3
+np.float32,0xff64c778,0xbfc90fdb,3
+np.float32,0x806bbc46,0x806bbc46,3
+np.float32,0x433643,0x433643,3
+np.float32,0x705b92,0x705b92,3
+np.float32,0xff359392,0xbfc90fdb,3
+np.float32,0xbee78672,0xbed96fa7,3
+np.float32,0x3e21717b,0x3e202010,3
+np.float32,0xfea13c34,0xbfc90fdb,3
+np.float32,0x2c8895,0x2c8895,3
+np.float32,0x3ed33290,0x3ec84f7c,3
+np.float32,0x3e63031e,0x3e5f662e,3
+np.float32,0x7e30907b,0x3fc90fdb,3
+np.float32,0xbe293708,0xbe27b310,3
+np.float32,0x3ed93738,0x3ecd6ea3,3
+np.float32,0x9db7e,0x9db7e,3
+np.float32,0x3f7cd1b8,0x3f47762c,3
+np.float32,0x3eb5143c,0x3eae0cb0,3
+np.float32,0xbe69b234,0xbe65c2d7,3
+np.float32,0x3f6e74de,0x3f3ffb97,3
+np.float32,0x5d0559,0x5d0559,3
+np.float32,0x3e1e8c30,0x3e1d4c70,3
+np.float32,0xbf2d1878,0xbf1833ef,3
+np.float32,0xff2adf82,0xbfc90fdb,3
+np.float32,0x8012e2c1,0x8012e2c1,3
+np.float32,0x7f031be3,0x3fc90fdb,3
+np.float32,0x805ff94e,0x805ff94e,3
+np.float32,0x3e9d5b27,0x3e98aa31,3
+np.float32,0x3f56d5cf,0x3f32bc9e,3
+np.float32,0x3eaa0412,0x3ea4267f,3
+np.float32,0xbe899ea4,0xbe86712f,3
+np.float32,0x800f2f48,0x800f2f48,3
+np.float32,0x3f1c2269,0x3f0c33ea,3
+np.float32,0x3f4a5f64,0x3f2b3f28,3
+np.float32,0x80739318,0x80739318,3
+np.float32,0x806e9b47,0x806e9b47,3
+np.float32,0x3c8cd300,0x3c8ccf73,3
+np.float32,0x7f39a39d,0x3fc90fdb,3
+np.float32,0x3ec95d61,0x3ebfd9dc,3
+np.float32,0xff351ff8,0xbfc90fdb,3
+np.float32,0xff3a8f58,0xbfc90fdb,3
+np.float32,0x7f313ec0,0x3fc90fdb,3
+np.float32,0x803aed13,0x803aed13,3
+np.float32,0x7f771d9b,0x3fc90fdb,3
+np.float32,0x8045a6d6,0x8045a6d6,3
+np.float32,0xbc85f280,0xbc85ef72,3
+np.float32,0x7e9c68f5,0x3fc90fdb,3
+np.float32,0xbf0f9379,0xbf02d975,3
+np.float32,0x7e97bcb1,0x3fc90fdb,3
+np.float32,0x804a07d5,0x804a07d5,3
+np.float32,0x802e6117,0x802e6117,3
+np.float32,0x7ed5e388,0x3fc90fdb,3
+np.float32,0x80750455,0x80750455,3
+np.float32,0xff4a8325,0xbfc90fdb,3
+np.float32,0xbedb6866,0xbecf497c,3
+np.float32,0x52ea3b,0x52ea3b,3
+np.float32,0xff773172,0xbfc90fdb,3
+np.float32,0xbeaa8ff0,0xbea4a46e,3
+np.float32,0x7eef2058,0x3fc90fdb,3
+np.float32,0x3f712472,0x3f4169d3,3
+np.float32,0xff6c8608,0xbfc90fdb,3
+np.float32,0xbf6eaa41,0xbf40182a,3
+np.float32,0x3eb03c24,0x3ea9bb34,3
+np.float32,0xfe118cd4,0xbfc90fdb,3
+np.float32,0x3e5b03b0,0x3e57c378,3
+np.float32,0x7f34d92d,0x3fc90fdb,3
+np.float32,0x806c3418,0x806c3418,3
+np.float32,0x7f3074e3,0x3fc90fdb,3
+np.float32,0x8002df02,0x8002df02,3
+np.float32,0x3f6df63a,0x3f3fb7b7,3
+np.float32,0xfd2b4100,0xbfc90fdb,3
+np.float32,0x80363d5c,0x80363d5c,3
+np.float32,0xbeac1f98,0xbea60bd6,3
+np.float32,0xff7fffff,0xbfc90fdb,3
+np.float32,0x80045097,0x80045097,3
+np.float32,0xfe011100,0xbfc90fdb,3
+np.float32,0x80739ef5,0x80739ef5,3
+np.float32,0xff3976ed,0xbfc90fdb,3
+np.float32,0xbe18e3a0,0xbe17c49e,3
+np.float32,0xbe289294,0xbe2712f6,3
+np.float32,0x3f1d41e7,0x3f0d050e,3
+np.float32,0x39364a,0x39364a,3
+np.float32,0x8072b77e,0x8072b77e,3
+np.float32,0x3f7cfec0,0x3f478cf6,3
+np.float32,0x2f68f6,0x2f68f6,3
+np.float32,0xbf031fb8,0xbef25c84,3
+np.float32,0xbf0b842c,0xbeff7afc,3
+np.float32,0x3f081e7e,0x3efa3676,3
+np.float32,0x7f7fffff,0x3fc90fdb,3
+np.float32,0xff15da0e,0xbfc90fdb,3
+np.float32,0x3d2001b2,0x3d1fece1,3
+np.float32,0x7f76efef,0x3fc90fdb,3
+np.float32,0x3f2405dd,0x3f11dfb7,3
+np.float32,0xa0319,0xa0319,3
+np.float32,0x3e23d2bd,0x3e227255,3
+np.float32,0xbd4d4c50,0xbd4d205e,3
+np.float32,0x382344,0x382344,3
+np.float32,0x21bbf,0x21bbf,3
+np.float32,0xbf209e82,0xbf0f7239,3
+np.float32,0xff03bf9f,0xbfc90fdb,3
+np.float32,0x7b1789,0x7b1789,3
+np.float32,0xff314944,0xbfc90fdb,3
+np.float32,0x1a63eb,0x1a63eb,3
+np.float32,0x803dc983,0x803dc983,3
+np.float32,0x3f0ff558,0x3f0323dc,3
+np.float32,0x3f544f2c,0x3f313f58,3
+np.float32,0xff032948,0xbfc90fdb,3
+np.float32,0x7f4933cc,0x3fc90fdb,3
+np.float32,0x7f14c5ed,0x3fc90fdb,3
+np.float32,0x803aeebf,0x803aeebf,3
+np.float32,0xbf0d4c0f,0xbf011bf5,3
+np.float32,0xbeaf8de2,0xbea91f57,3
+np.float32,0xff3ae030,0xbfc90fdb,3
+np.float32,0xbb362d00,0xbb362ce1,3
+np.float32,0x3d1f79e0,0x3d1f6544,3
+np.float32,0x3f56e9d9,0x3f32c860,3
+np.float32,0x3f723e5e,0x3f41fee2,3
+np.float32,0x4c0179,0x4c0179,3
+np.float32,0xfee36132,0xbfc90fdb,3
+np.float32,0x619ae6,0x619ae6,3
+np.float32,0xfde5d670,0xbfc90fdb,3
+np.float32,0xff079ac5,0xbfc90fdb,3
+np.float32,0x3e974fbd,0x3e931fae,3
+np.float32,0x8020ae6b,0x8020ae6b,3
+np.float32,0x6b5af1,0x6b5af1,3
+np.float32,0xbeb57cd6,0xbeae69a3,3
+np.float32,0x806e7eb2,0x806e7eb2,3
+np.float32,0x7e666edb,0x3fc90fdb,3
+np.float32,0xbf458c18,0xbf283ff0,3
+np.float32,0x3e50518e,0x3e4d8399,3
+np.float32,0x3e9ce224,0x3e983b98,3
+np.float32,0x3e6bc067,0x3e67b6c6,3
+np.float32,0x13783d,0x13783d,3
+np.float32,0xff3d518c,0xbfc90fdb,3
+np.float32,0xfeba5968,0xbfc90fdb,3
+np.float32,0xbf0b9f76,0xbeffa50f,3
+np.float32,0xfe174900,0xbfc90fdb,3
+np.float32,0x3f38bb0a,0x3f200527,3
+np.float32,0x7e94a77d,0x3fc90fdb,3
+np.float32,0x29d776,0x29d776,3
+np.float32,0xbf4e058d,0xbf2d7a15,3
+np.float32,0xbd94abc8,0xbd946923,3
+np.float32,0xbee62db0,0xbed85124,3
+np.float32,0x800000,0x800000,3
+np.float32,0xbef1df7e,0xbee1f636,3
+np.float32,0xbcf3cd20,0xbcf3bab5,3
+np.float32,0x80007b05,0x80007b05,3
+np.float32,0x3d9b3f2e,0x3d9af351,3
+np.float32,0xbf714a68,0xbf417dee,3
+np.float32,0xbf2a2d37,0xbf163069,3
+np.float32,0x8055104f,0x8055104f,3
+np.float32,0x7f5c40d7,0x3fc90fdb,3
+np.float32,0x1,0x1,3
+np.float32,0xff35f3a6,0xbfc90fdb,3
+np.float32,0xd9c7c,0xd9c7c,3
+np.float32,0xbf440cfc,0xbf274f22,3
+np.float32,0x8050ac43,0x8050ac43,3
+np.float32,0x63ee16,0x63ee16,3
+np.float32,0x7d90419b,0x3fc90fdb,3
+np.float32,0xfee22198,0xbfc90fdb,3
+np.float32,0xc2ead,0xc2ead,3
+np.float32,0x7f5cd6a6,0x3fc90fdb,3
+np.float32,0x3f6fab7e,0x3f40a184,3
+np.float32,0x3ecf998c,0x3ec53a73,3
+np.float32,0x7e5271f0,0x3fc90fdb,3
+np.float32,0x67c016,0x67c016,3
+np.float32,0x2189c8,0x2189c8,3
+np.float32,0x27d892,0x27d892,3
+np.float32,0x3f0d02c4,0x3f00e3c0,3
+np.float32,0xbf69ebca,0xbf3d8862,3
+np.float32,0x3e60c0d6,0x3e5d3ebb,3
+np.float32,0x3f45206c,0x3f27fc66,3
+np.float32,0xbf6b47dc,0xbf3e4592,3
+np.float32,0xfe9be2e2,0xbfc90fdb,3
+np.float32,0x7fa00000,0x7fe00000,3
+np.float32,0xff271562,0xbfc90fdb,3
+np.float32,0x3e2e5270,0x3e2caaaf,3
+np.float32,0x80222934,0x80222934,3
+np.float32,0xbd01d220,0xbd01c701,3
+np.float32,0x223aa0,0x223aa0,3
+np.float32,0x3f4b5a7e,0x3f2bd967,3
+np.float32,0x3f217d85,0x3f101200,3
+np.float32,0xbf57663a,0xbf331144,3
+np.float32,0x3f219862,0x3f102536,3
+np.float32,0x28a28c,0x28a28c,3
+np.float32,0xbf3f55f4,0xbf244f86,3
+np.float32,0xbf3de287,0xbf236092,3
+np.float32,0xbf1c1ce2,0xbf0c2fe3,3
+np.float32,0x80000001,0x80000001,3
+np.float32,0x3db695d0,0x3db61a90,3
+np.float32,0x6c39bf,0x6c39bf,3
+np.float32,0x7e33a12f,0x3fc90fdb,3
+np.float32,0x67623a,0x67623a,3
+np.float32,0x3e45dc54,0x3e4373b6,3
+np.float32,0x7f62fa68,0x3fc90fdb,3
+np.float32,0x3f0e1d01,0x3f01bbe5,3
+np.float32,0x3f13dc69,0x3f0615f5,3
+np.float32,0x246703,0x246703,3
+np.float32,0xbf1055b5,0xbf036d07,3
+np.float32,0x7f46d3d0,0x3fc90fdb,3
+np.float32,0x3d2b8086,0x3d2b66e5,3
+np.float32,0xbf03be44,0xbef35776,3
+np.float32,0x3f800000,0x3f490fdb,3
+np.float32,0xbec8d226,0xbebf613d,3
+np.float32,0x3d8faf00,0x3d8f72d4,3
+np.float32,0x170c4e,0x170c4e,3
+np.float32,0xff14c0f0,0xbfc90fdb,3
+np.float32,0xff16245d,0xbfc90fdb,3
+np.float32,0x7f44ce6d,0x3fc90fdb,3
+np.float32,0xbe8175d8,0xbe7d9aeb,3
+np.float32,0x3df7a4a1,0x3df67254,3
+np.float32,0xfe2cc46c,0xbfc90fdb,3
+np.float32,0x3f284e63,0x3f14e335,3
+np.float32,0x7e46e5d6,0x3fc90fdb,3
+np.float32,0x397be4,0x397be4,3
+np.float32,0xbf2560bc,0xbf12d50b,3
+np.float32,0x3ed9b8c1,0x3ecddc60,3
+np.float32,0xfec18c5a,0xbfc90fdb,3
+np.float32,0x64894d,0x64894d,3
+np.float32,0x36a65d,0x36a65d,3
+np.float32,0x804ffcd7,0x804ffcd7,3
+np.float32,0x800f79e4,0x800f79e4,3
+np.float32,0x5d45ac,0x5d45ac,3
+np.float32,0x6cdda0,0x6cdda0,3
+np.float32,0xbf7f2077,0xbf489fe5,3
+np.float32,0xbf152f78,0xbf0713a1,3
+np.float32,0x807bf344,0x807bf344,3
+np.float32,0x3f775023,0x3f44a4d8,3
+np.float32,0xbf3edf67,0xbf240365,3
+np.float32,0x7eed729c,0x3fc90fdb,3
+np.float32,0x14cc29,0x14cc29,3
+np.float32,0x7edd7b6b,0x3fc90fdb,3
+np.float32,0xbf3c6e2c,0xbf226fb7,3
+np.float32,0x51b9ad,0x51b9ad,3
+np.float32,0x3f617ee8,0x3f38dd7c,3
+np.float32,0xff800000,0xbfc90fdb,3
+np.float32,0x7f440ea0,0x3fc90fdb,3
+np.float32,0x3e639893,0x3e5ff49e,3
+np.float32,0xbd791bb0,0xbd78cd3c,3
+np.float32,0x8059fcbc,0x8059fcbc,3
+np.float32,0xbf7d1214,0xbf4796bd,3
+np.float32,0x3ef368fa,0x3ee33788,3
+np.float32,0xbecec0f4,0xbec48055,3
+np.float32,0xbc83d940,0xbc83d656,3
+np.float32,0xbce01220,0xbce003d4,3
+np.float32,0x803192a5,0x803192a5,3
+np.float32,0xbe40e0c0,0xbe3ea4f0,3
+np.float32,0xfb692600,0xbfc90fdb,3
+np.float32,0x3f1bec65,0x3f0c0c88,3
+np.float32,0x7f042798,0x3fc90fdb,3
+np.float32,0xbe047374,0xbe03b83b,3
+np.float32,0x7f7c6630,0x3fc90fdb,3
+np.float32,0x7f58dae3,0x3fc90fdb,3
+np.float32,0x80691c92,0x80691c92,3
+np.float32,0x7dbe76,0x7dbe76,3
+np.float32,0xbf231384,0xbf11339d,3
+np.float32,0xbef4acf8,0xbee43f8b,3
+np.float32,0x3ee9f9d0,0x3edb7793,3
+np.float32,0x3f0064f6,0x3eee04a8,3
+np.float32,0x313732,0x313732,3
+np.float32,0xfd58cf80,0xbfc90fdb,3
+np.float32,0x3f7a2bc9,0x3f461d30,3
+np.float32,0x7f7681af,0x3fc90fdb,3
+np.float32,0x7f504211,0x3fc90fdb,3
+np.float32,0xfeae0c00,0xbfc90fdb,3
+np.float32,0xbee14396,0xbed436d1,3
+np.float32,0x7fc00000,0x7fc00000,3
+np.float32,0x693406,0x693406,3
+np.float32,0x3eb4a679,0x3eadab1b,3
+np.float32,0x550505,0x550505,3
+np.float32,0xfd493d10,0xbfc90fdb,3
+np.float32,0x3f4fc907,0x3f2e8b2c,3
+np.float32,0x80799aa4,0x80799aa4,3
+np.float32,0xff1ea89b,0xbfc90fdb,3
+np.float32,0xff424510,0xbfc90fdb,3
+np.float32,0x7f68d026,0x3fc90fdb,3
+np.float32,0xbea230ca,0xbe9d1200,3
+np.float32,0x7ea585da,0x3fc90fdb,3
+np.float32,0x3f3db211,0x3f23414c,3
+np.float32,0xfea4d964,0xbfc90fdb,3
+np.float32,0xbf17fe18,0xbf092984,3
+np.float32,0x7cc8a2,0x7cc8a2,3
+np.float32,0xff0330ba,0xbfc90fdb,3
+np.float32,0x3f769835,0x3f444592,3
+np.float32,0xeb0ac,0xeb0ac,3
+np.float32,0x7f7e45de,0x3fc90fdb,3
+np.float32,0xbdb510a8,0xbdb49873,3
+np.float32,0x3ebf900b,0x3eb74e9c,3
+np.float32,0xbf21bbce,0xbf103e89,3
+np.float32,0xbf3f4682,0xbf24459d,3
+np.float32,0x7eb6e9c8,0x3fc90fdb,3
+np.float32,0xbf42532d,0xbf2637be,3
+np.float32,0xbd3b2600,0xbd3b04b4,3
+np.float32,0x3f1fa9aa,0x3f0ec23e,3
+np.float32,0x7ed6a0f1,0x3fc90fdb,3
+np.float32,0xff4759a1,0xbfc90fdb,3
+np.float32,0x6d26e3,0x6d26e3,3
+np.float32,0xfe1108e0,0xbfc90fdb,3
+np.float32,0xfdf76900,0xbfc90fdb,3
+np.float32,0xfec66f22,0xbfc90fdb,3
+np.float32,0xbf3d097f,0xbf22d458,3
+np.float32,0x3d85be25,0x3d858d99,3
+np.float32,0x7f36739f,0x3fc90fdb,3
+np.float32,0x7bc0a304,0x3fc90fdb,3
+np.float32,0xff48dd90,0xbfc90fdb,3
+np.float32,0x48cab0,0x48cab0,3
+np.float32,0x3ed3943c,0x3ec8a2ef,3
+np.float32,0xbf61488e,0xbf38bede,3
+np.float32,0x3f543df5,0x3f313525,3
+np.float32,0x5cf2ca,0x5cf2ca,3
+np.float32,0x572686,0x572686,3
+np.float32,0x80369c7c,0x80369c7c,3
+np.float32,0xbd2c1d20,0xbd2c0338,3
+np.float32,0x3e255428,0x3e23ea0b,3
+np.float32,0xbeba9ee0,0xbeb2f54c,3
+np.float32,0x8015c165,0x8015c165,3
+np.float32,0x3d31f488,0x3d31d7e6,3
+np.float32,0x3f68591c,0x3f3cac43,3
+np.float32,0xf5ed5,0xf5ed5,3
+np.float32,0xbf3b1d34,0xbf21949e,3
+np.float32,0x1f0343,0x1f0343,3
+np.float32,0x3f0e52b5,0x3f01e4ef,3
+np.float32,0x7f57c596,0x3fc90fdb,3
+np.float64,0x7fd8e333ddb1c667,0x3ff921fb54442d18,1
+np.float64,0x800bcc9cdad7993a,0x800bcc9cdad7993a,1
+np.float64,0x3fcd6f81df3adf00,0x3fcceebbafc5d55e,1
+np.float64,0x3fed7338a57ae671,0x3fe7ce3e5811fc0a,1
+np.float64,0x7fe64994fcac9329,0x3ff921fb54442d18,1
+np.float64,0xfa5a6345f4b4d,0xfa5a6345f4b4d,1
+np.float64,0xe9dcd865d3b9b,0xe9dcd865d3b9b,1
+np.float64,0x7fea6cffabf4d9fe,0x3ff921fb54442d18,1
+np.float64,0xa9e1de6153c3c,0xa9e1de6153c3c,1
+np.float64,0xab6bdc5356d7c,0xab6bdc5356d7c,1
+np.float64,0x80062864a02c50ca,0x80062864a02c50ca,1
+np.float64,0xbfdac03aa7b58076,0xbfd9569f3230128d,1
+np.float64,0xbfe61b77752c36ef,0xbfe3588f51b8be8f,1
+np.float64,0x800bc854c8d790aa,0x800bc854c8d790aa,1
+np.float64,0x3feed1a2da3da346,0x3fe887f9b8ea031f,1
+np.float64,0x3fe910d3697221a7,0x3fe54365a53d840e,1
+np.float64,0x7fe7ab4944ef5692,0x3ff921fb54442d18,1
+np.float64,0x3fa462f1a028c5e3,0x3fa460303a6a4e69,1
+np.float64,0x800794f1a3af29e4,0x800794f1a3af29e4,1
+np.float64,0x3fee6fe7fafcdfd0,0x3fe854f863816d55,1
+np.float64,0x8000000000000000,0x8000000000000000,1
+np.float64,0x7f336472fe66d,0x7f336472fe66d,1
+np.float64,0xffb1623ac822c478,0xbff921fb54442d18,1
+np.float64,0x3fbacd68ce359ad2,0x3fbab480b3638846,1
+np.float64,0xffd5c02706ab804e,0xbff921fb54442d18,1
+np.float64,0xbfd4daf03d29b5e0,0xbfd42928f069c062,1
+np.float64,0x800c6e85dbd8dd0c,0x800c6e85dbd8dd0c,1
+np.float64,0x800e3599c5bc6b34,0x800e3599c5bc6b34,1
+np.float64,0x2c0d654c581ad,0x2c0d654c581ad,1
+np.float64,0xbfdd3eb13fba7d62,0xbfdb6e8143302de7,1
+np.float64,0x800b60cb8776c197,0x800b60cb8776c197,1
+np.float64,0x80089819ad113034,0x80089819ad113034,1
+np.float64,0x29fe721453fcf,0x29fe721453fcf,1
+np.float64,0x3fe8722f4df0e45f,0x3fe4e026d9eadb4d,1
+np.float64,0xffd1fbcd01a3f79a,0xbff921fb54442d18,1
+np.float64,0x7fc74e1e982e9c3c,0x3ff921fb54442d18,1
+np.float64,0x800c09d3d15813a8,0x800c09d3d15813a8,1
+np.float64,0xbfeee4578b3dc8af,0xbfe891ab3d6c3ce4,1
+np.float64,0xffdd01a6f33a034e,0xbff921fb54442d18,1
+np.float64,0x7fcc130480382608,0x3ff921fb54442d18,1
+np.float64,0xffcbb6bd1d376d7c,0xbff921fb54442d18,1
+np.float64,0xc068a53780d15,0xc068a53780d15,1
+np.float64,0xbfc974f15532e9e4,0xbfc92100b355f3e7,1
+np.float64,0x3fe6da79442db4f3,0x3fe3d87393b082e7,1
+np.float64,0xd9d9be4db3b38,0xd9d9be4db3b38,1
+np.float64,0x5ea50a20bd4a2,0x5ea50a20bd4a2,1
+np.float64,0xbfe5597f7d2ab2ff,0xbfe2d3ccc544b52b,1
+np.float64,0x80019364e4e326cb,0x80019364e4e326cb,1
+np.float64,0x3fed2902c3fa5206,0x3fe7a5e1df07e5c1,1
+np.float64,0xbfa7b72b5c2f6e50,0xbfa7b2d545b3cc1f,1
+np.float64,0xffdb60dd43b6c1ba,0xbff921fb54442d18,1
+np.float64,0x81a65d8b034cc,0x81a65d8b034cc,1
+np.float64,0x8000c30385818608,0x8000c30385818608,1
+np.float64,0x6022f5f4c045f,0x6022f5f4c045f,1
+np.float64,0x8007a2bb810f4578,0x8007a2bb810f4578,1
+np.float64,0x7fdc68893238d111,0x3ff921fb54442d18,1
+np.float64,0x7fd443454ea8868a,0x3ff921fb54442d18,1
+np.float64,0xffe6b04209ed6084,0xbff921fb54442d18,1
+np.float64,0x7fcd9733d13b2e67,0x3ff921fb54442d18,1
+np.float64,0xf5ee80a9ebdd0,0xf5ee80a9ebdd0,1
+np.float64,0x3fe3788e8de6f11e,0x3fe17dec7e6843a0,1
+np.float64,0x3fee36f62f7c6dec,0x3fe836f832515b43,1
+np.float64,0xf6cb49aded969,0xf6cb49aded969,1
+np.float64,0x3fd2b15ea4a562bc,0x3fd22fdc09920e67,1
+np.float64,0x7fccf6aef139ed5d,0x3ff921fb54442d18,1
+np.float64,0x3fd396b8ce272d72,0x3fd3026118857bd4,1
+np.float64,0x7fe53d3c80ea7a78,0x3ff921fb54442d18,1
+np.float64,0x3feae88fc4f5d120,0x3fe65fb04b18ef7a,1
+np.float64,0x3fedc643747b8c86,0x3fe7fafa6c20e25a,1
+np.float64,0xffdb2dc0df365b82,0xbff921fb54442d18,1
+np.float64,0xbfa2af3658255e70,0xbfa2ad17348f4253,1
+np.float64,0x3f8aa77b30354ef6,0x3f8aa71892336a69,1
+np.float64,0xbfdd1b1efbba363e,0xbfdb510dcd186820,1
+np.float64,0x800f50d99c5ea1b3,0x800f50d99c5ea1b3,1
+np.float64,0xff6ed602403dac00,0xbff921fb54442d18,1
+np.float64,0x800477d71aa8efaf,0x800477d71aa8efaf,1
+np.float64,0xbfe729a9e86e5354,0xbfe40ca78d9eefcf,1
+np.float64,0x3fd81ab2d4303566,0x3fd70d7e3937ea22,1
+np.float64,0xb617cbab6c2fa,0xb617cbab6c2fa,1
+np.float64,0x7fefffffffffffff,0x3ff921fb54442d18,1
+np.float64,0xffa40933ac281260,0xbff921fb54442d18,1
+np.float64,0xbfe1ede621e3dbcc,0xbfe057bb2b341ced,1
+np.float64,0xbfec700f03b8e01e,0xbfe73fb190bc722e,1
+np.float64,0x6e28af02dc517,0x6e28af02dc517,1
+np.float64,0x3fe37ad37ae6f5a7,0x3fe17f94674818a9,1
+np.float64,0x8000cbdeeae197bf,0x8000cbdeeae197bf,1
+np.float64,0x3fe8fd1f01f1fa3e,0x3fe5372bbec5d72c,1
+np.float64,0x3f8f9229103f2452,0x3f8f918531894256,1
+np.float64,0x800536858e0a6d0c,0x800536858e0a6d0c,1
+np.float64,0x7fe82bb4f9f05769,0x3ff921fb54442d18,1
+np.float64,0xffc1c2fb592385f8,0xbff921fb54442d18,1
+np.float64,0x7f924ddfc0249bbf,0x3ff921fb54442d18,1
+np.float64,0xffd5e125c52bc24c,0xbff921fb54442d18,1
+np.float64,0xbfef0d8738be1b0e,0xbfe8a6ef17b16c10,1
+np.float64,0x3fc9c8875233910f,0x3fc9715e708503cb,1
+np.float64,0xbfe2d926f4e5b24e,0xbfe108956e61cbb3,1
+np.float64,0x7fd61c496dac3892,0x3ff921fb54442d18,1
+np.float64,0x7fed545c6b7aa8b8,0x3ff921fb54442d18,1
+np.float64,0x8003746fea86e8e1,0x8003746fea86e8e1,1
+np.float64,0x3fdf515e75bea2bd,0x3fdd201a5585caa3,1
+np.float64,0xffda87c8ee350f92,0xbff921fb54442d18,1
+np.float64,0xffc675d8e22cebb0,0xbff921fb54442d18,1
+np.float64,0xffcdc173433b82e8,0xbff921fb54442d18,1
+np.float64,0xffed9df1517b3be2,0xbff921fb54442d18,1
+np.float64,0x3fd6a2eec72d45de,0x3fd5c1f1d7dcddcf,1
+np.float64,0xffec116a66f822d4,0xbff921fb54442d18,1
+np.float64,0x8007c2a2458f8545,0x8007c2a2458f8545,1
+np.float64,0x3fe4ee80d969dd02,0x3fe2895076094668,1
+np.float64,0x3fe3cae7116795ce,0x3fe1b9c07e0d03a7,1
+np.float64,0xbfd81bf8d8b037f2,0xbfd70e9bbbb4ca57,1
+np.float64,0x800c88ccd1f9119a,0x800c88ccd1f9119a,1
+np.float64,0xffdab2aee2b5655e,0xbff921fb54442d18,1
+np.float64,0x3fe743d227ee87a4,0x3fe41dcaef186d96,1
+np.float64,0x3fb060fd0220c1fa,0x3fb05b47f56ebbb4,1
+np.float64,0xbfd3f03772a7e06e,0xbfd3541522377291,1
+np.float64,0x190a5ae03216,0x190a5ae03216,1
+np.float64,0x3fe48c71916918e4,0x3fe24442f45b3183,1
+np.float64,0x800862470590c48e,0x800862470590c48e,1
+np.float64,0x7fd3ced89d279db0,0x3ff921fb54442d18,1
+np.float64,0x3feb3d9b4ab67b37,0x3fe69140cf2623f7,1
+np.float64,0xbc3f296b787e5,0xbc3f296b787e5,1
+np.float64,0xbfed6b905dfad721,0xbfe7ca1881a8c0fd,1
+np.float64,0xbfe621c2aaac4386,0xbfe35cd1969a82db,1
+np.float64,0x8009e7b17593cf63,0x8009e7b17593cf63,1
+np.float64,0x80045f580ca8beb1,0x80045f580ca8beb1,1
+np.float64,0xbfea2e177e745c2f,0xbfe5f13971633339,1
+np.float64,0x3fee655787fccab0,0x3fe84f6b98b6de26,1
+np.float64,0x3fc9cde92f339bd0,0x3fc9768a88b2c97c,1
+np.float64,0x3fc819c3b3303388,0x3fc7d25e1526e731,1
+np.float64,0x3fd3e848d2a7d090,0x3fd34cd9e6af558f,1
+np.float64,0x3fe19dacac633b5a,0x3fe01a6b4d27adc2,1
+np.float64,0x800b190da316321c,0x800b190da316321c,1
+np.float64,0xd5c69711ab8d3,0xd5c69711ab8d3,1
+np.float64,0xbfdc31bed7b8637e,0xbfda8ea3c1309d6d,1
+np.float64,0xbfd02ba007a05740,0xbfcfad86f0d756dc,1
+np.float64,0x3fe874473d70e88e,0x3fe4e1793cd82123,1
+np.float64,0xffb465585c28cab0,0xbff921fb54442d18,1
+np.float64,0xbfb5d8e13e2bb1c0,0xbfb5cb5c7807fc4d,1
+np.float64,0xffe80f933bf01f26,0xbff921fb54442d18,1
+np.float64,0x7feea783f5fd4f07,0x3ff921fb54442d18,1
+np.float64,0xbfae6665f43cccd0,0xbfae5d45b0a6f90a,1
+np.float64,0x800bd6ef5a77addf,0x800bd6ef5a77addf,1
+np.float64,0x800d145babda28b8,0x800d145babda28b8,1
+np.float64,0x39de155473bc3,0x39de155473bc3,1
+np.float64,0x3fefbd6bb1ff7ad8,0x3fe9008e73a3296e,1
+np.float64,0x3fc40bca3d281798,0x3fc3e2710e167007,1
+np.float64,0x3fcae0918335c120,0x3fca7e09e704a678,1
+np.float64,0x51287fbea2511,0x51287fbea2511,1
+np.float64,0x7fa6bc33a82d7866,0x3ff921fb54442d18,1
+np.float64,0xe72a2bebce546,0xe72a2bebce546,1
+np.float64,0x3fe1c8fd686391fa,0x3fe03b9622aeb4e3,1
+np.float64,0x3fe2a73ac3654e76,0x3fe0e36bc1ee4ac4,1
+np.float64,0x59895218b312b,0x59895218b312b,1
+np.float64,0xc6dc25c78db85,0xc6dc25c78db85,1
+np.float64,0xbfc06cfac520d9f4,0xbfc0561f85d2c907,1
+np.float64,0xbfea912dc4f5225c,0xbfe62c3b1c01c793,1
+np.float64,0x3fb78ce89a2f19d0,0x3fb77bfcb65a67d3,1
+np.float64,0xbfece5cdea39cb9c,0xbfe78103d24099e5,1
+np.float64,0x30d3054e61a61,0x30d3054e61a61,1
+np.float64,0xbfd3fe26fba7fc4e,0xbfd360c8447c4f7a,1
+np.float64,0x800956072a92ac0f,0x800956072a92ac0f,1
+np.float64,0x7fe639b3b6ec7366,0x3ff921fb54442d18,1
+np.float64,0x800ee30240bdc605,0x800ee30240bdc605,1
+np.float64,0x7fef6af0d2bed5e1,0x3ff921fb54442d18,1
+np.float64,0xffefce8725ff9d0d,0xbff921fb54442d18,1
+np.float64,0x3fe2e311da65c624,0x3fe10ff1623089dc,1
+np.float64,0xbfe7e5cbe56fcb98,0xbfe486c3daeda67c,1
+np.float64,0x80095bc14472b783,0x80095bc14472b783,1
+np.float64,0xffef0cb4553e1968,0xbff921fb54442d18,1
+np.float64,0xe3e60567c7cc1,0xe3e60567c7cc1,1
+np.float64,0xffde919f06bd233e,0xbff921fb54442d18,1
+np.float64,0x3fe3f9632e27f2c6,0x3fe1db49ebd21c4e,1
+np.float64,0x9dee9a233bdd4,0x9dee9a233bdd4,1
+np.float64,0xbfe3bb0602e7760c,0xbfe1ae41b6d4c488,1
+np.float64,0x3fc46945a128d288,0x3fc43da54c6c6a2a,1
+np.float64,0x7fdef149ac3de292,0x3ff921fb54442d18,1
+np.float64,0x800a96c76d752d8f,0x800a96c76d752d8f,1
+np.float64,0x3f971a32382e3464,0x3f9719316b9e9baf,1
+np.float64,0x7fe97bcf15b2f79d,0x3ff921fb54442d18,1
+np.float64,0x7fea894558f5128a,0x3ff921fb54442d18,1
+np.float64,0x3fc9e3be1933c780,0x3fc98b847c3923eb,1
+np.float64,0x3f7accac40359959,0x3f7acc9330741b64,1
+np.float64,0xa80c136950183,0xa80c136950183,1
+np.float64,0x3fe408732b2810e6,0x3fe1e61e7cbc8824,1
+np.float64,0xffa775bc042eeb80,0xbff921fb54442d18,1
+np.float64,0x3fbf04bd223e0980,0x3fbede37b8fc697e,1
+np.float64,0x7fd999b34c333366,0x3ff921fb54442d18,1
+np.float64,0xe72146dfce429,0xe72146dfce429,1
+np.float64,0x4f511ee49ea24,0x4f511ee49ea24,1
+np.float64,0xffb3e6e58827cdc8,0xbff921fb54442d18,1
+np.float64,0x3fd1f180cfa3e300,0x3fd17e85b2871de2,1
+np.float64,0x97c8e45b2f91d,0x97c8e45b2f91d,1
+np.float64,0xbfeeb20e88fd641d,0xbfe8778f878440bf,1
+np.float64,0xbfe1fc6dee23f8dc,0xbfe062c815a93cde,1
+np.float64,0xab4bf71f5697f,0xab4bf71f5697f,1
+np.float64,0xa9675a2952cec,0xa9675a2952cec,1
+np.float64,0xbfef3ea4a33e7d49,0xbfe8c02743ebc1b6,1
+np.float64,0x3fe22a2eafa4545d,0x3fe08577afca52a9,1
+np.float64,0x3fe8a08daaf1411c,0x3fe4fd5a34f05305,1
+np.float64,0xbfc6cda77b2d9b50,0xbfc6910bcfa0cf4f,1
+np.float64,0x3fec398394387307,0x3fe7211dd5276500,1
+np.float64,0x3fe36c95c626d92c,0x3fe1752e5aa2357b,1
+np.float64,0xffd8b9e7073173ce,0xbff921fb54442d18,1
+np.float64,0xffe19f043ae33e08,0xbff921fb54442d18,1
+np.float64,0x800e3640709c6c81,0x800e3640709c6c81,1
+np.float64,0x3fe7d6c20aafad84,0x3fe47d1a3307d9c8,1
+np.float64,0x80093fd63b727fad,0x80093fd63b727fad,1
+np.float64,0xffe1a671a4634ce3,0xbff921fb54442d18,1
+np.float64,0xbfe53a6b386a74d6,0xbfe2be41859cb10d,1
+np.float64,0xbfed149a097a2934,0xbfe79ab7e3e93c1c,1
+np.float64,0x7fc2769a5724ed34,0x3ff921fb54442d18,1
+np.float64,0xffd01e4e99a03c9e,0xbff921fb54442d18,1
+np.float64,0xa61f38434c3e7,0xa61f38434c3e7,1
+np.float64,0x800ad4ac5195a959,0x800ad4ac5195a959,1
+np.float64,0x7ff8000000000000,0x7ff8000000000000,1
+np.float64,0x80034a45b6c6948c,0x80034a45b6c6948c,1
+np.float64,0x6350b218c6a17,0x6350b218c6a17,1
+np.float64,0xfff0000000000000,0xbff921fb54442d18,1
+np.float64,0x3fe363e759e6c7cf,0x3fe16ed58d80f9ce,1
+np.float64,0xffe3b98e59e7731c,0xbff921fb54442d18,1
+np.float64,0x3fdbf7b40337ef68,0x3fda5df7ad3c80f9,1
+np.float64,0xbfe9cdf784739bef,0xbfe5b74f346ef93d,1
+np.float64,0xbfc321bea326437c,0xbfc2fdc0d4ff7561,1
+np.float64,0xbfe40f77d2a81ef0,0xbfe1eb28c4ae4dde,1
+np.float64,0x7fe071806960e300,0x3ff921fb54442d18,1
+np.float64,0x7fd269006ea4d200,0x3ff921fb54442d18,1
+np.float64,0x80017a56e0e2f4af,0x80017a56e0e2f4af,1
+np.float64,0x8004b4ea09a969d5,0x8004b4ea09a969d5,1
+np.float64,0xbfedbb01e63b7604,0xbfe7f4f0e84297df,1
+np.float64,0x3fe44454826888a9,0x3fe210ff6d005706,1
+np.float64,0xbfe0e77e6ea1cefd,0xbfdf1a977da33402,1
+np.float64,0xbfed6d4c8c3ada99,0xbfe7cb0932093f60,1
+np.float64,0x1d74cb9e3ae9a,0x1d74cb9e3ae9a,1
+np.float64,0x80082a785d1054f1,0x80082a785d1054f1,1
+np.float64,0x3fe58393266b0726,0x3fe2f0d8e91d4887,1
+np.float64,0xffe4028899680510,0xbff921fb54442d18,1
+np.float64,0x783a2e5af0746,0x783a2e5af0746,1
+np.float64,0x7fcdce88e73b9d11,0x3ff921fb54442d18,1
+np.float64,0x3fc58672a72b0ce5,0x3fc5535e090e56e2,1
+np.float64,0x800889c839b11391,0x800889c839b11391,1
+np.float64,0xffe5e05c466bc0b8,0xbff921fb54442d18,1
+np.float64,0xbfcbef6ebe37dedc,0xbfcb810752468f49,1
+np.float64,0xffe9408563b2810a,0xbff921fb54442d18,1
+np.float64,0xbfee4738367c8e70,0xbfe83f8e5dd7602f,1
+np.float64,0xbfe4aeb587295d6b,0xbfe25c7a0c76a454,1
+np.float64,0xffc9aea0a7335d40,0xbff921fb54442d18,1
+np.float64,0xe1e02199c3c04,0xe1e02199c3c04,1
+np.float64,0xbfbd9400783b2800,0xbfbd729345d1d14f,1
+np.float64,0x7a5418bcf4a84,0x7a5418bcf4a84,1
+np.float64,0x3fdc1c2fa5b83860,0x3fda7c935965ae72,1
+np.float64,0x80076a9f58ced53f,0x80076a9f58ced53f,1
+np.float64,0x3fedc4bf957b897f,0x3fe7fa2a83148f1c,1
+np.float64,0x800981b8a9d30372,0x800981b8a9d30372,1
+np.float64,0xffe1082311621046,0xbff921fb54442d18,1
+np.float64,0xe0091f89c0124,0xe0091f89c0124,1
+np.float64,0xbfce8d674f3d1ad0,0xbfcdfdbf2ddaa0ca,1
+np.float64,0x800516e72eaa2dcf,0x800516e72eaa2dcf,1
+np.float64,0xffe61ee64c6c3dcc,0xbff921fb54442d18,1
+np.float64,0x7fed2683cafa4d07,0x3ff921fb54442d18,1
+np.float64,0xffd4faf27729f5e4,0xbff921fb54442d18,1
+np.float64,0x7fe308fa842611f4,0x3ff921fb54442d18,1
+np.float64,0x3fc612a62b2c2550,0x3fc5db9ddbd4e159,1
+np.float64,0xbfe5b01e766b603d,0xbfe30f72a875e988,1
+np.float64,0x3fc2dd8b9a25bb17,0x3fc2bb06246b9f78,1
+np.float64,0x8170908102e12,0x8170908102e12,1
+np.float64,0x800c1c8a8a583915,0x800c1c8a8a583915,1
+np.float64,0xffe5d91e8b6bb23c,0xbff921fb54442d18,1
+np.float64,0xffd140adee22815c,0xbff921fb54442d18,1
+np.float64,0xbfe2f1f5f8e5e3ec,0xbfe11afa5d749952,1
+np.float64,0xbfed6d1d587ada3b,0xbfe7caef9ecf7651,1
+np.float64,0x3fe9b85e67f370bd,0x3fe5aa3474768982,1
+np.float64,0x7fdc8932edb91265,0x3ff921fb54442d18,1
+np.float64,0x7fd136bc54a26d78,0x3ff921fb54442d18,1
+np.float64,0x800a1ea12a343d43,0x800a1ea12a343d43,1
+np.float64,0x3fec6a5c1b78d4b8,0x3fe73c82235c3f8f,1
+np.float64,0x800fbf6a00df7ed4,0x800fbf6a00df7ed4,1
+np.float64,0xbfd0e6e0cda1cdc2,0xbfd0864bf8cad294,1
+np.float64,0x3fc716df482e2dbf,0x3fc6d7fbfd4a8470,1
+np.float64,0xbfe75990936eb321,0xbfe42bffec3fa0d7,1
+np.float64,0x3fd58e54a02b1ca9,0x3fd4cace1107a5cc,1
+np.float64,0xbfc9c04136338084,0xbfc9696ad2591d54,1
+np.float64,0xdd1f0147ba3e0,0xdd1f0147ba3e0,1
+np.float64,0x5c86a940b90e,0x5c86a940b90e,1
+np.float64,0xbfecae3b8e795c77,0xbfe7624d4988c612,1
+np.float64,0xffd0370595206e0c,0xbff921fb54442d18,1
+np.float64,0xbfdc26d443384da8,0xbfda857ecd33ba9f,1
+np.float64,0xbfd1c849d9a39094,0xbfd15849449cc378,1
+np.float64,0xffee04acdb3c0959,0xbff921fb54442d18,1
+np.float64,0xbfded1056dbda20a,0xbfdcb83b30e1528c,1
+np.float64,0x7fb7b826622f704c,0x3ff921fb54442d18,1
+np.float64,0xbfee4df8ae7c9bf1,0xbfe8431df9dfd05d,1
+np.float64,0x7fe7f3670e2fe6cd,0x3ff921fb54442d18,1
+np.float64,0x8008ac9ae0d15936,0x8008ac9ae0d15936,1
+np.float64,0x800dce9f3b3b9d3f,0x800dce9f3b3b9d3f,1
+np.float64,0x7fbb19db203633b5,0x3ff921fb54442d18,1
+np.float64,0x3fe56c7f302ad8fe,0x3fe2e0eec3ad45fd,1
+np.float64,0x7fe82c05c570580b,0x3ff921fb54442d18,1
+np.float64,0xc0552b7780aa6,0xc0552b7780aa6,1
+np.float64,0x39d40e3073a83,0x39d40e3073a83,1
+np.float64,0x3fd8db54d731b6aa,0x3fd7b589b3ee9b20,1
+np.float64,0xffcdd355233ba6ac,0xbff921fb54442d18,1
+np.float64,0x3fbe97b3a43d2f67,0x3fbe72bca9be0348,1
+np.float64,0xbff0000000000000,0xbfe921fb54442d18,1
+np.float64,0xbfb4f55e6229eac0,0xbfb4e96df18a75a7,1
+np.float64,0xbfc66399ba2cc734,0xbfc62a3298bd96fc,1
+np.float64,0x3fd00988bb201311,0x3fcf6d67a9374c38,1
+np.float64,0x7fe471867d28e30c,0x3ff921fb54442d18,1
+np.float64,0xbfe38e0e64271c1d,0xbfe18d9888b7523b,1
+np.float64,0x8009dc127573b825,0x8009dc127573b825,1
+np.float64,0x800047bde4608f7d,0x800047bde4608f7d,1
+np.float64,0xffeede42c77dbc85,0xbff921fb54442d18,1
+np.float64,0xd8cf6d13b19ee,0xd8cf6d13b19ee,1
+np.float64,0xbfd08fb302a11f66,0xbfd034b1f8235e23,1
+np.float64,0x7fdb404c0b368097,0x3ff921fb54442d18,1
+np.float64,0xbfd6ba0438ad7408,0xbfd5d673e3276ec1,1
+np.float64,0xffd9568027b2ad00,0xbff921fb54442d18,1
+np.float64,0xbfb313b73e262770,0xbfb30ab4acb4fa67,1
+np.float64,0xbfe2dc1a15e5b834,0xbfe10ac5f8f3acd3,1
+np.float64,0xbfee426bf4bc84d8,0xbfe83d061df91edd,1
+np.float64,0xd9142c2fb2286,0xd9142c2fb2286,1
+np.float64,0x7feb0d11dff61a23,0x3ff921fb54442d18,1
+np.float64,0x800fea5b509fd4b7,0x800fea5b509fd4b7,1
+np.float64,0x3fe1a8818da35103,0x3fe022ba1bdf366e,1
+np.float64,0x8010000000000000,0x8010000000000000,1
+np.float64,0xbfd8fc6de6b1f8dc,0xbfd7d24726ed8dcc,1
+np.float64,0xf4b3dc2de967c,0xf4b3dc2de967c,1
+np.float64,0x8af0409b15e08,0x8af0409b15e08,1
+np.float64,0x3fb21e6934243cd2,0x3fb216b065f8709a,1
+np.float64,0x3fc53069392a60d2,0x3fc4ffa931211fb9,1
+np.float64,0xffc955812c32ab04,0xbff921fb54442d18,1
+np.float64,0xbfe3de42b1a7bc86,0xbfe1c7bd1324de75,1
+np.float64,0x1dc149a03b82a,0x1dc149a03b82a,1
+np.float64,0x8001bc5a24a378b5,0x8001bc5a24a378b5,1
+np.float64,0x3da14c407b44,0x3da14c407b44,1
+np.float64,0x80025e8da924bd1c,0x80025e8da924bd1c,1
+np.float64,0xbfcb0141c9360284,0xbfca9d572ea5e1f3,1
+np.float64,0xc90036fd92007,0xc90036fd92007,1
+np.float64,0x138312c427063,0x138312c427063,1
+np.float64,0x800dda3a963bb475,0x800dda3a963bb475,1
+np.float64,0x3fe9339934f26732,0x3fe558e723291f78,1
+np.float64,0xbfea8357027506ae,0xbfe6240826faaf48,1
+np.float64,0x7fe04735cae08e6b,0x3ff921fb54442d18,1
+np.float64,0x3fe29aca3c653594,0x3fe0da214c8bc6a4,1
+np.float64,0x3fbe1f09a03c3e13,0x3fbdfbbefef0155b,1
+np.float64,0x816ee4ad02ddd,0x816ee4ad02ddd,1
+np.float64,0xffddd1b31d3ba366,0xbff921fb54442d18,1
+np.float64,0x3fe2e01e0625c03c,0x3fe10dc0bd6677c2,1
+np.float64,0x3fec6bcf1978d79e,0x3fe73d518cddeb7c,1
+np.float64,0x7fe01aaaf8603555,0x3ff921fb54442d18,1
+np.float64,0xdf300cc5be602,0xdf300cc5be602,1
+np.float64,0xbfe71c01a36e3804,0xbfe403af80ce47b8,1
+np.float64,0xffa5be00ac2b7c00,0xbff921fb54442d18,1
+np.float64,0xbfda9ba711b5374e,0xbfd93775e3ac6bda,1
+np.float64,0xbfe56d8a27eadb14,0xbfe2e1a7185e8e6d,1
+np.float64,0x800f1bc937be3792,0x800f1bc937be3792,1
+np.float64,0x800a61d93c74c3b3,0x800a61d93c74c3b3,1
+np.float64,0x7fe71a52fcae34a5,0x3ff921fb54442d18,1
+np.float64,0x7fb4aef256295de4,0x3ff921fb54442d18,1
+np.float64,0x3fe6c1e861ed83d1,0x3fe3c828f281a7ef,1
+np.float64,0x3fba128402342508,0x3fb9fb94cf141860,1
+np.float64,0x3fee55a7ecfcab50,0x3fe8472a9af893ee,1
+np.float64,0x3fe586f31b2b0de6,0x3fe2f32bce9e91bc,1
+np.float64,0xbfbb1d1442363a28,0xbfbb034c7729d5f2,1
+np.float64,0xc78b4d3f8f16a,0xc78b4d3f8f16a,1
+np.float64,0x7fdbc277d4b784ef,0x3ff921fb54442d18,1
+np.float64,0xbfa728ca2c2e5190,0xbfa724c04e73ccbd,1
+np.float64,0x7fefc7b2143f8f63,0x3ff921fb54442d18,1
+np.float64,0x3fd153a3dda2a748,0x3fd0ebccd33a4dca,1
+np.float64,0xbfe18a6eace314de,0xbfe00ba32ec89d30,1
+np.float64,0x7feef518537dea30,0x3ff921fb54442d18,1
+np.float64,0x8005f007cd4be010,0x8005f007cd4be010,1
+np.float64,0x7fd890b840b12170,0x3ff921fb54442d18,1
+np.float64,0x7feed0582ebda0af,0x3ff921fb54442d18,1
+np.float64,0x1013f53220280,0x1013f53220280,1
+np.float64,0xbfe77273986ee4e7,0xbfe43c375a8bf6de,1
+np.float64,0x7fe3ab8918675711,0x3ff921fb54442d18,1
+np.float64,0xbfc6ad515b2d5aa4,0xbfc671b2f7f86624,1
+np.float64,0x7fcd86231d3b0c45,0x3ff921fb54442d18,1
+np.float64,0xffe2523299a4a464,0xbff921fb54442d18,1
+np.float64,0x7fcadc5a1b35b8b3,0x3ff921fb54442d18,1
+np.float64,0x3fe5e020c4ebc042,0x3fe330418eec75bd,1
+np.float64,0x7fe332a9dc266553,0x3ff921fb54442d18,1
+np.float64,0xfa11dc21f425,0xfa11dc21f425,1
+np.float64,0xbec800177d900,0xbec800177d900,1
+np.float64,0x3fcadd057835ba0b,0x3fca7aa42face8bc,1
+np.float64,0xbfe6b9a206ad7344,0xbfe3c2a9719803de,1
+np.float64,0x3fbb4250b63684a0,0x3fbb281e9cefc519,1
+np.float64,0x7fef8787517f0f0e,0x3ff921fb54442d18,1
+np.float64,0x8001315c2d6262b9,0x8001315c2d6262b9,1
+np.float64,0xbfd94e3cf2b29c7a,0xbfd819257d36f56c,1
+np.float64,0xf1f325abe3e65,0xf1f325abe3e65,1
+np.float64,0x7fd6c07079ad80e0,0x3ff921fb54442d18,1
+np.float64,0x7fe328b075a65160,0x3ff921fb54442d18,1
+np.float64,0x7fe7998f812f331e,0x3ff921fb54442d18,1
+np.float64,0xffe026bb65604d76,0xbff921fb54442d18,1
+np.float64,0xffd6c06de8ad80dc,0xbff921fb54442d18,1
+np.float64,0x3fcd5a37bf3ab46f,0x3fccda82935d98ce,1
+np.float64,0xffc3e5a45227cb48,0xbff921fb54442d18,1
+np.float64,0x3febf7dd8177efbc,0x3fe6fc0bb999883e,1
+np.float64,0x7fd7047ea92e08fc,0x3ff921fb54442d18,1
+np.float64,0x35b3fc406b680,0x35b3fc406b680,1
+np.float64,0x7fd52e97632a5d2e,0x3ff921fb54442d18,1
+np.float64,0x3fd464d401a8c9a8,0x3fd3be2967fc97c3,1
+np.float64,0x800e815b2ebd02b6,0x800e815b2ebd02b6,1
+np.float64,0x3fca8428af350850,0x3fca257b466b8970,1
+np.float64,0x8007b7526f6f6ea6,0x8007b7526f6f6ea6,1
+np.float64,0x82f60a8f05ec2,0x82f60a8f05ec2,1
+np.float64,0x3fb71a5d0a2e34c0,0x3fb70a629ef8e2a2,1
+np.float64,0x7fc8570c7d30ae18,0x3ff921fb54442d18,1
+np.float64,0x7fe5528e77eaa51c,0x3ff921fb54442d18,1
+np.float64,0xffc20dbbf1241b78,0xbff921fb54442d18,1
+np.float64,0xeb13368fd6267,0xeb13368fd6267,1
+np.float64,0x7fe7d529056faa51,0x3ff921fb54442d18,1
+np.float64,0x3fecd02eabf9a05d,0x3fe77516f0ba1ac4,1
+np.float64,0x800fcba6a09f974d,0x800fcba6a09f974d,1
+np.float64,0x7fe7e8e015afd1bf,0x3ff921fb54442d18,1
+np.float64,0xbfd271a382a4e348,0xbfd1f513a191c595,1
+np.float64,0x9f1014013e21,0x9f1014013e21,1
+np.float64,0x3fc05da47f20bb49,0x3fc04708a13a3a47,1
+np.float64,0x3fe0f427dda1e850,0x3fdf2e60ba8678b9,1
+np.float64,0xbfecb29fa539653f,0xbfe764bc791c45dd,1
+np.float64,0x45881ec68b104,0x45881ec68b104,1
+np.float64,0x8000000000000001,0x8000000000000001,1
+np.float64,0x3fe9c67ee1338cfe,0x3fe5b2c7b3df6ce8,1
+np.float64,0x7fedb8fef6bb71fd,0x3ff921fb54442d18,1
+np.float64,0x3fe54f6aaaea9ed6,0x3fe2ccd1df2abaa9,1
+np.float64,0x7feff58a1bbfeb13,0x3ff921fb54442d18,1
+np.float64,0x7fe3b62827276c4f,0x3ff921fb54442d18,1
+np.float64,0x3fe5feb682ebfd6d,0x3fe345105bc6d980,1
+np.float64,0x3fe49f38d9693e72,0x3fe2518b2824757f,1
+np.float64,0x8006bfd27c6d7fa6,0x8006bfd27c6d7fa6,1
+np.float64,0x3fc13409e2226814,0x3fc119ce0c01a5a2,1
+np.float64,0x95f8c7212bf19,0x95f8c7212bf19,1
+np.float64,0x3fd9f0fa6133e1f5,0x3fd8a567515edecf,1
+np.float64,0x3fef95cbe5ff2b98,0x3fe8ec88c768ba0b,1
+np.float64,0x3fbed28bba3da510,0x3fbeacbf136e51c2,1
+np.float64,0xbfd3987aeca730f6,0xbfd303fca58e3e60,1
+np.float64,0xbfed0f90cbfa1f22,0xbfe797f59249410d,1
+np.float64,0xffe55d8cbf2abb19,0xbff921fb54442d18,1
+np.float64,0x3feb4d9fc6769b40,0x3fe69a88131a1f1f,1
+np.float64,0x80085569acd0aad4,0x80085569acd0aad4,1
+np.float64,0x20557a6e40ab0,0x20557a6e40ab0,1
+np.float64,0x3fead2fd5df5a5fb,0x3fe653091f33b27f,1
+np.float64,0x3fe7b9983eaf7330,0x3fe46a50c4b5235e,1
+np.float64,0xffdad237ffb5a470,0xbff921fb54442d18,1
+np.float64,0xbfe5cc39a4eb9874,0xbfe322ad3a903f93,1
+np.float64,0x800ad6eecb35adde,0x800ad6eecb35adde,1
+np.float64,0xffec620f6438c41e,0xbff921fb54442d18,1
+np.float64,0xbfe5ef29122bde52,0xbfe33a7dfcc255e2,1
+np.float64,0x3fd451e7d0a8a3d0,0x3fd3acfa4939af10,1
+np.float64,0x8003ea93c127d528,0x8003ea93c127d528,1
+np.float64,0x800b48d37c9691a7,0x800b48d37c9691a7,1
+np.float64,0x3fe7e202acafc405,0x3fe484558246069b,1
+np.float64,0x80070c9b686e1938,0x80070c9b686e1938,1
+np.float64,0xbfda90bbc6352178,0xbfd92e25fcd12288,1
+np.float64,0x800e1ffebb1c3ffe,0x800e1ffebb1c3ffe,1
+np.float64,0x3ff0000000000000,0x3fe921fb54442d18,1
+np.float64,0xffd8cfdd46319fba,0xbff921fb54442d18,1
+np.float64,0x7fd8cd4182319a82,0x3ff921fb54442d18,1
+np.float64,0x3fed8bb778bb176f,0x3fe7db7c77c4c694,1
+np.float64,0x3fc74a70302e94e0,0x3fc709e95d6defec,1
+np.float64,0x3fe87269d070e4d4,0x3fe4e04bcc4a2137,1
+np.float64,0x7fb48223f6290447,0x3ff921fb54442d18,1
+np.float64,0xffe8ec444b71d888,0xbff921fb54442d18,1
+np.float64,0x7fde17d280bc2fa4,0x3ff921fb54442d18,1
+np.float64,0x3fd1cbde01a397bc,0x3fd15b9bb7b3147b,1
+np.float64,0x800883a64451074d,0x800883a64451074d,1
+np.float64,0x7fe3160a3f262c13,0x3ff921fb54442d18,1
+np.float64,0xbfe051d4d9a0a3aa,0xbfde2ecf14dc75fb,1
+np.float64,0xbfd89de689b13bce,0xbfd780176d1a28a3,1
+np.float64,0x3fecde2bf779bc58,0x3fe77ccf10bdd8e2,1
+np.float64,0xffe75774dc6eaee9,0xbff921fb54442d18,1
+np.float64,0x7fe834414d706882,0x3ff921fb54442d18,1
+np.float64,0x1,0x1,1
+np.float64,0xbfea5e4e4a74bc9c,0xbfe60e0601711835,1
+np.float64,0xffec248d4cb8491a,0xbff921fb54442d18,1
+np.float64,0xffd9942c2c332858,0xbff921fb54442d18,1
+np.float64,0xa9db36a553b67,0xa9db36a553b67,1
+np.float64,0x7fec630718b8c60d,0x3ff921fb54442d18,1
+np.float64,0xbfd062188f20c432,0xbfd009ecd652be89,1
+np.float64,0x8001b84e3023709d,0x8001b84e3023709d,1
+np.float64,0xbfe9e26d7cb3c4db,0xbfe5c3b157ecf668,1
+np.float64,0xbfef66ddf33ecdbc,0xbfe8d4b1f6410a24,1
+np.float64,0x3fd8d7109431ae21,0x3fd7b1d4860719a2,1
+np.float64,0xffee0f53107c1ea5,0xbff921fb54442d18,1
+np.float64,0x80000b4fd60016a0,0x80000b4fd60016a0,1
+np.float64,0xbfd99ff6e5333fee,0xbfd85fb3cbdaa049,1
+np.float64,0xbfe9cfd268339fa5,0xbfe5b86ef021a1b1,1
+np.float64,0xe32eace1c65d6,0xe32eace1c65d6,1
+np.float64,0xffc81f6627303ecc,0xbff921fb54442d18,1
+np.float64,0x7fe98dadde331b5b,0x3ff921fb54442d18,1
+np.float64,0xbfbcebd11e39d7a0,0xbfbccc8ec47883c7,1
+np.float64,0x7fe164880f22c90f,0x3ff921fb54442d18,1
+np.float64,0x800467c0cae8cf82,0x800467c0cae8cf82,1
+np.float64,0x800071e4b140e3ca,0x800071e4b140e3ca,1
+np.float64,0xbfc87a7eae30f4fc,0xbfc82fbc55bb0f24,1
+np.float64,0xffb2e0e23225c1c8,0xbff921fb54442d18,1
+np.float64,0x20ef338041df,0x20ef338041df,1
+np.float64,0x7fe6de71ca6dbce3,0x3ff921fb54442d18,1
+np.float64,0x5d1fa026ba3f5,0x5d1fa026ba3f5,1
+np.float64,0xffd112a9ce222554,0xbff921fb54442d18,1
+np.float64,0x3fb351f66626a3ed,0x3fb3489ab578c452,1
+np.float64,0x7fef7b2bd3bef657,0x3ff921fb54442d18,1
+np.float64,0xffe144f5d4e289eb,0xbff921fb54442d18,1
+np.float64,0xffd63a6750ac74ce,0xbff921fb54442d18,1
+np.float64,0x7fd2d8bb25a5b175,0x3ff921fb54442d18,1
+np.float64,0x3fec5920a078b242,0x3fe732dcffcf6521,1
+np.float64,0x80009a8b7f813518,0x80009a8b7f813518,1
+np.float64,0x3fdea220893d4441,0x3fdc921edf6bf3d8,1
+np.float64,0x8006cee2208d9dc5,0x8006cee2208d9dc5,1
+np.float64,0xdd0b0081ba17,0xdd0b0081ba17,1
+np.float64,0x7ff4000000000000,0x7ffc000000000000,1
+np.float64,0xbfdac33955358672,0xbfd9592bce7daf1f,1
+np.float64,0x7fe8301d7170603a,0x3ff921fb54442d18,1
+np.float64,0xbfc1d34d8523a69c,0xbfc1b62449af9684,1
+np.float64,0x800c62239458c447,0x800c62239458c447,1
+np.float64,0xffd398c009a73180,0xbff921fb54442d18,1
+np.float64,0xbfe0c6d9ee218db4,0xbfdee777557f4401,1
+np.float64,0x3feccdd373799ba7,0x3fe773c9c2263f89,1
+np.float64,0xbfd21898bda43132,0xbfd1a2be8545fcc5,1
+np.float64,0x3fd77019b62ee033,0x3fd67793cabdf267,1
+np.float64,0x7fa609cad42c1395,0x3ff921fb54442d18,1
+np.float64,0x7fb4eaea5a29d5d4,0x3ff921fb54442d18,1
+np.float64,0x3fc570dc9a2ae1b9,0x3fc53e5f6218a799,1
+np.float64,0x800344ae8466895e,0x800344ae8466895e,1
+np.float64,0xbfc7c985252f930c,0xbfc784d60fa27bac,1
+np.float64,0xffaa2929fc345250,0xbff921fb54442d18,1
+np.float64,0xffe63e5ee9ac7cbe,0xbff921fb54442d18,1
+np.float64,0x73f0280ce7e06,0x73f0280ce7e06,1
+np.float64,0xffc525f8822a4bf0,0xbff921fb54442d18,1
+np.float64,0x7fd744d00aae899f,0x3ff921fb54442d18,1
+np.float64,0xbfe0fe590761fcb2,0xbfdf3e493e8b1f32,1
+np.float64,0xfae04ae7f5c0a,0xfae04ae7f5c0a,1
+np.float64,0xef821939df043,0xef821939df043,1
+np.float64,0x7fef6135843ec26a,0x3ff921fb54442d18,1
+np.float64,0xbfebf34dcbf7e69c,0xbfe6f97588a8f911,1
+np.float64,0xbfeec0b498fd8169,0xbfe87f2eceeead12,1
+np.float64,0x7fb67161b42ce2c2,0x3ff921fb54442d18,1
+np.float64,0x3fdcfd998639fb33,0x3fdb38934927c096,1
+np.float64,0xffda5960bc34b2c2,0xbff921fb54442d18,1
+np.float64,0xbfe11f8c71223f19,0xbfdf71fe770c96ab,1
+np.float64,0x3fe4ac1bab695838,0x3fe25aa4517b8322,1
+np.float64,0x3f730458a02608b1,0x3f73044fabb5e999,1
+np.float64,0x3fdb14ffcdb62a00,0x3fd99ea6c241a3ed,1
+np.float64,0xbfc93208cd326410,0xbfc8e09d78b6d4db,1
+np.float64,0x19e734dc33ce8,0x19e734dc33ce8,1
+np.float64,0x3fe5e98428abd308,0x3fe336a6a085eb55,1
+np.float64,0x7fec672a1378ce53,0x3ff921fb54442d18,1
+np.float64,0x800f8bd8d4ff17b2,0x800f8bd8d4ff17b2,1
+np.float64,0xbfe5a12e4e6b425c,0xbfe30533f99d5d06,1
+np.float64,0x75a34cb0eb46a,0x75a34cb0eb46a,1
+np.float64,0x7fe1d21d16a3a439,0x3ff921fb54442d18,1
+np.float64,0x7ff0000000000000,0x3ff921fb54442d18,1
+np.float64,0xffe0f50db261ea1b,0xbff921fb54442d18,1
+np.float64,0xbfd9dc22feb3b846,0xbfd8937ec965a501,1
+np.float64,0x8009d68e48d3ad1d,0x8009d68e48d3ad1d,1
+np.float64,0xbfe2eba620e5d74c,0xbfe1164d7d273c60,1
+np.float64,0x992efa09325e0,0x992efa09325e0,1
+np.float64,0x3fdab640ea356c82,0x3fd94e20cab88db2,1
+np.float64,0x69a6f04ad34df,0x69a6f04ad34df,1
+np.float64,0x3fe397df25272fbe,0x3fe194bd1a3a6192,1
+np.float64,0xebcce9fdd799d,0xebcce9fdd799d,1
+np.float64,0x3fbb49490c369292,0x3fbb2f02eccc497d,1
+np.float64,0xffd871f980b0e3f4,0xbff921fb54442d18,1
+np.float64,0x800348f6966691ee,0x800348f6966691ee,1
+np.float64,0xbfebc270a7f784e1,0xbfe6dda8d0d80f26,1
+np.float64,0xffd6d559b1adaab4,0xbff921fb54442d18,1
+np.float64,0x3fec3635c0b86c6c,0x3fe71f420256e43e,1
+np.float64,0x7fbc82ad7039055a,0x3ff921fb54442d18,1
+np.float64,0x7f873050602e60a0,0x3ff921fb54442d18,1
+np.float64,0x3fca44b8c3348970,0x3fc9e8a1a1a2d96e,1
+np.float64,0x3fe0fc308fe1f861,0x3fdf3aeb469ea225,1
+np.float64,0x7fefc27de8bf84fb,0x3ff921fb54442d18,1
+np.float64,0x8005f3f3916be7e8,0x8005f3f3916be7e8,1
+np.float64,0xbfd4278c7c284f18,0xbfd38678988873b6,1
+np.float64,0x435eafc486bd7,0x435eafc486bd7,1
+np.float64,0xbfd01f5199203ea4,0xbfcf96631f2108a3,1
+np.float64,0xffd5ee9185abdd24,0xbff921fb54442d18,1
+np.float64,0xffedb363257b66c5,0xbff921fb54442d18,1
+np.float64,0x800d68e6e11ad1ce,0x800d68e6e11ad1ce,1
+np.float64,0xbfcf687f8e3ed100,0xbfceccb771b0d39a,1
+np.float64,0x7feb3b9ef2f6773d,0x3ff921fb54442d18,1
+np.float64,0x3fe15ec5ca62bd8c,0x3fdfd3fab9d96f81,1
+np.float64,0x10000000000000,0x10000000000000,1
+np.float64,0xd2386f81a470e,0xd2386f81a470e,1
+np.float64,0xb9feed4573fde,0xb9feed4573fde,1
+np.float64,0x3fe7ed25c9efda4c,0x3fe48b7b72db4014,1
+np.float64,0xbfe01478726028f1,0xbfddcd1f5a2efc59,1
+np.float64,0x9946d02f328da,0x9946d02f328da,1
+np.float64,0xbfe3bb67f06776d0,0xbfe1ae88aa81c5a6,1
+np.float64,0xbfd3fd8a4c27fb14,0xbfd3603982e3b78d,1
+np.float64,0xffd5c3ab912b8758,0xbff921fb54442d18,1
+np.float64,0xffd5f502b12bea06,0xbff921fb54442d18,1
+np.float64,0xbfc64981ec2c9304,0xbfc610e0382b1fa6,1
+np.float64,0xffec42e3413885c6,0xbff921fb54442d18,1
+np.float64,0x80084eb4ed109d6a,0x80084eb4ed109d6a,1
+np.float64,0xbfd17cac9fa2f95a,0xbfd112020588a4b3,1
+np.float64,0xbfd06c1359a0d826,0xbfd0134a28aa9a66,1
+np.float64,0x7fdc3d7c03b87af7,0x3ff921fb54442d18,1
+np.float64,0x7bdf5aaaf7bec,0x7bdf5aaaf7bec,1
+np.float64,0xbfee3cd966fc79b3,0xbfe83a14bc07ac3b,1
+np.float64,0x7fec910da3f9221a,0x3ff921fb54442d18,1
+np.float64,0xffb4ea667029d4d0,0xbff921fb54442d18,1
+np.float64,0x800103d7cce207b0,0x800103d7cce207b0,1
+np.float64,0x7fbb229a6c364534,0x3ff921fb54442d18,1
+np.float64,0x0,0x0,1
+np.float64,0xffd8fccd0331f99a,0xbff921fb54442d18,1
+np.float64,0xbfd0784ae1a0f096,0xbfd01ebff62e39ad,1
+np.float64,0xbfed2ec9b3ba5d93,0xbfe7a9099410bc76,1
+np.float64,0x800690b8d16d2172,0x800690b8d16d2172,1
+np.float64,0x7fc061b26520c364,0x3ff921fb54442d18,1
+np.float64,0x8007ec47054fd88f,0x8007ec47054fd88f,1
+np.float64,0x775546b6eeaa9,0x775546b6eeaa9,1
+np.float64,0x8005e00fb56bc020,0x8005e00fb56bc020,1
+np.float64,0xbfe510f8d0ea21f2,0xbfe2a16862b5a37f,1
+np.float64,0xffd87a6bf3b0f4d8,0xbff921fb54442d18,1
+np.float64,0x800906e3d0520dc8,0x800906e3d0520dc8,1
+np.float64,0x2296f000452f,0x2296f000452f,1
+np.float64,0xbfe3189fa2e63140,0xbfe1378c0e005be4,1
+np.float64,0xb4d2447f69a49,0xb4d2447f69a49,1
+np.float64,0xffd056a24a20ad44,0xbff921fb54442d18,1
+np.float64,0xbfe3b23fe4e76480,0xbfe1a7e5840fcbeb,1
+np.float64,0x80018ee270831dc6,0x80018ee270831dc6,1
+np.float64,0x800df89f245bf13e,0x800df89f245bf13e,1
+np.float64,0x3fee1409d7bc2814,0x3fe824779d133232,1
+np.float64,0xbfef8d81667f1b03,0xbfe8e85523620368,1
+np.float64,0xffd8a6519b314ca4,0xbff921fb54442d18,1
+np.float64,0x7fc7bc86f32f790d,0x3ff921fb54442d18,1
+np.float64,0xffea6159e674c2b3,0xbff921fb54442d18,1
+np.float64,0x3fe153c3fba2a788,0x3fdfc2f74769d300,1
+np.float64,0xffc4261ef3284c3c,0xbff921fb54442d18,1
+np.float64,0x7fe8a8961ff1512b,0x3ff921fb54442d18,1
+np.float64,0xbfe3fb1fd167f640,0xbfe1dc89dcb7ecdf,1
+np.float64,0x3fd88577c2b10af0,0x3fd76acc09660704,1
+np.float64,0x3fe128ec27e251d8,0x3fdf808fc7ebcd8f,1
+np.float64,0xbfed6ca7c4fad950,0xbfe7caafe9a3e213,1
+np.float64,0xbf9a3912b8347220,0xbf9a379b3349352e,1
+np.float64,0xbfd724d7bcae49b0,0xbfd6351efa2a5fc5,1
+np.float64,0xbfed59700a7ab2e0,0xbfe7c043014c694c,1
+np.float64,0x8002ad435bc55a87,0x8002ad435bc55a87,1
+np.float64,0xffe46ed345a8dda6,0xbff921fb54442d18,1
+np.float64,0x7fd2f1d1d825e3a3,0x3ff921fb54442d18,1
+np.float64,0xbfea0265e23404cc,0xbfe5d6fb3fd30464,1
+np.float64,0xbfd17e049122fc0a,0xbfd113421078bbae,1
+np.float64,0xffea03b986b40772,0xbff921fb54442d18,1
+np.float64,0x800b55331a16aa67,0x800b55331a16aa67,1
+np.float64,0xbfc6fcafbf2df960,0xbfc6be9ecd0ebc1f,1
+np.float64,0xd6a36017ad46c,0xd6a36017ad46c,1
+np.float64,0xbfe9ba86dfb3750e,0xbfe5ab840cb0ef86,1
+np.float64,0x75c4a108eb895,0x75c4a108eb895,1
+np.float64,0x8008d6bc8051ad79,0x8008d6bc8051ad79,1
+np.float64,0xbfd3dc5984a7b8b4,0xbfd341f78e0528ec,1
+np.float64,0xffe1cbb01aa39760,0xbff921fb54442d18,1
+np.float64,0x3fc7e292f52fc526,0x3fc79d0ce9365767,1
+np.float64,0xbfcbeae2bd37d5c4,0xbfcb7cb034f82467,1
+np.float64,0x8000f0c62e21e18d,0x8000f0c62e21e18d,1
+np.float64,0xbfe23d8bc6247b18,0xbfe09418ee35c3c7,1
+np.float64,0x717394bae2e73,0x717394bae2e73,1
+np.float64,0xffa2ef1cc425de40,0xbff921fb54442d18,1
+np.float64,0x3fd938c229b27184,0x3fd806900735c99d,1
+np.float64,0x800bf3ec8a77e7d9,0x800bf3ec8a77e7d9,1
+np.float64,0xffeef41dd57de83b,0xbff921fb54442d18,1
+np.float64,0x8008df97e5b1bf30,0x8008df97e5b1bf30,1
+np.float64,0xffe9ab9d0db35739,0xbff921fb54442d18,1
+np.float64,0x99ff391333fe7,0x99ff391333fe7,1
+np.float64,0x3fb864b4a630c969,0x3fb851e883ea2cf9,1
+np.float64,0x22c1230a45825,0x22c1230a45825,1
+np.float64,0xff2336fbfe467,0xff2336fbfe467,1
+np.float64,0xbfd488f4cea911ea,0xbfd3def0490f5414,1
+np.float64,0x3fa379c78426f38f,0x3fa377607370800b,1
+np.float64,0xbfb0873302210e68,0xbfb08155b78dfd53,1
+np.float64,0xbfdf9ff7c2bf3ff0,0xbfdd5f658e357ad2,1
+np.float64,0x800978719192f0e4,0x800978719192f0e4,1
+np.float64,0xbfba8759ea350eb0,0xbfba6f325013b9e5,1
+np.float64,0xbfdd3e6b06ba7cd6,0xbfdb6e472b6091b0,1
+np.float64,0x7fe0c334a7a18668,0x3ff921fb54442d18,1
+np.float64,0xbfeb971feb772e40,0xbfe6c4e0f61404d1,1
+np.float64,0x3fe2a50968e54a13,0x3fe0e1c8b8d96e85,1
+np.float64,0x800fa9c5515f538b,0x800fa9c5515f538b,1
+np.float64,0x800f8532fbbf0a66,0x800f8532fbbf0a66,1
+np.float64,0x167d6f1e2cfaf,0x167d6f1e2cfaf,1
+np.float64,0xffee88e769fd11ce,0xbff921fb54442d18,1
+np.float64,0xbfeecc8529fd990a,0xbfe885520cdad8ea,1
+np.float64,0xffefffffffffffff,0xbff921fb54442d18,1
+np.float64,0xbfef6a566afed4ad,0xbfe8d6767b4c4235,1
+np.float64,0xffec12415af82482,0xbff921fb54442d18,1
+np.float64,0x3678a20a6cf15,0x3678a20a6cf15,1
+np.float64,0xffe468d54ee8d1aa,0xbff921fb54442d18,1
+np.float64,0x800ad6006795ac01,0x800ad6006795ac01,1
+np.float64,0x8001d5b61063ab6d,0x8001d5b61063ab6d,1
+np.float64,0x800dfcd1863bf9a3,0x800dfcd1863bf9a3,1
+np.float64,0xc9fbff6f93f80,0xc9fbff6f93f80,1
+np.float64,0xffe55c20f9eab842,0xbff921fb54442d18,1
+np.float64,0xbfcb596b6536b2d8,0xbfcaf1b339c5c615,1
+np.float64,0xbfe092689ea124d1,0xbfde94fa58946e51,1
+np.float64,0x3fe9ec733af3d8e6,0x3fe5c9bf5dee2623,1
+np.float64,0x3fe30f3d83261e7b,0x3fe1309fd6620e03,1
+np.float64,0xffd31d7f84263b00,0xbff921fb54442d18,1
+np.float64,0xbfe88d2d3e711a5a,0xbfe4f12b5a136178,1
+np.float64,0xffc81e4ce1303c98,0xbff921fb54442d18,1
+np.float64,0xffe5b96ebfab72dd,0xbff921fb54442d18,1
+np.float64,0x512f0502a25e1,0x512f0502a25e1,1
+np.float64,0x7fa3a376982746ec,0x3ff921fb54442d18,1
+np.float64,0x80005b5f2f60b6bf,0x80005b5f2f60b6bf,1
+np.float64,0xc337cc69866fa,0xc337cc69866fa,1
+np.float64,0x3fe7719c4caee339,0x3fe43bab42b19e64,1
+np.float64,0x7fde7ec1d93cfd83,0x3ff921fb54442d18,1
+np.float64,0x3fd2f38f3825e71e,0x3fd26cc7b1dd0acb,1
+np.float64,0x7fce298b993c5316,0x3ff921fb54442d18,1
+np.float64,0x56ae3b2cad5c8,0x56ae3b2cad5c8,1
+np.float64,0x3fe9299f2bf2533e,0x3fe552bddd999e72,1
+np.float64,0x7feff3a4823fe748,0x3ff921fb54442d18,1
+np.float64,0xbfd05c670aa0b8ce,0xbfd00494d78e9e97,1
+np.float64,0xffe745323eae8a64,0xbff921fb54442d18,1
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/data/umath-validation-set-arctanh.csv b/python/user_packages/Python313/site-packages/numpy/_core/tests/data/umath-validation-set-arctanh.csv
new file mode 100644
index 0000000000000000000000000000000000000000..d3467883b2105920bd6c0f8b5b438f0d536813ec
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/tests/data/umath-validation-set-arctanh.csv
@@ -0,0 +1,1429 @@
+dtype,input,output,ulperrortol
+np.float32,0x3ee82930,0x3efa60fd,2
+np.float32,0x3f0aa640,0x3f1b3e13,2
+np.float32,0x3ec1a21c,0x3ecbbf8d,2
+np.float32,0x3cdb1740,0x3cdb24a1,2
+np.float32,0xbf28b6f3,0xbf4a86ac,2
+np.float32,0xbe490dcc,0xbe4bb2eb,2
+np.float32,0x80000001,0x80000001,2
+np.float32,0xbf44f9dd,0xbf826ce1,2
+np.float32,0xbf1d66c4,0xbf37786b,2
+np.float32,0x3f0ad26a,0x3f1b7c9b,2
+np.float32,0x3f7b6c54,0x4016aab0,2
+np.float32,0xbf715bb8,0xbfe1a0bc,2
+np.float32,0xbee8a562,0xbefafd6a,2
+np.float32,0x3db94d00,0x3db9cf16,2
+np.float32,0x3ee2970c,0x3ef368b3,2
+np.float32,0x3f3f8614,0x3f77fdca,2
+np.float32,0xbf1fb5f0,0xbf3b3789,2
+np.float32,0x3f798dc0,0x400b96bb,2
+np.float32,0x3e975d64,0x3e9c0573,2
+np.float32,0xbe3f1908,0xbe415d1f,2
+np.float32,0x3f2cea38,0x3f52192e,2
+np.float32,0x3e82f1ac,0x3e85eaa1,2
+np.float32,0x3eab6b30,0x3eb24acd,2
+np.float32,0xbe9bb90c,0xbea0cf5f,2
+np.float32,0xbf43e847,0xbf81202f,2
+np.float32,0xbd232fa0,0xbd2345c0,2
+np.float32,0xbbabbc00,0xbbabbc67,2
+np.float32,0xbf0b2975,0xbf1bf808,2
+np.float32,0xbef5ab0a,0xbf05d305,2
+np.float32,0x3f2cad16,0x3f51a8e2,2
+np.float32,0xbef75940,0xbf06eb08,2
+np.float32,0xbf0c1216,0xbf1d4325,2
+np.float32,0x3e7bdc08,0x3e8090c2,2
+np.float32,0x3da14e10,0x3da1a3c5,2
+np.float32,0x3f627412,0x3fb2bf21,2
+np.float32,0xbd6d08c0,0xbd6d4ca0,2
+np.float32,0x3f3e2368,0x3f74df8b,2
+np.float32,0xbe0df104,0xbe0edc77,2
+np.float32,0x3e8a265c,0x3e8da833,2
+np.float32,0xbdccdbb0,0xbdcd8ba8,2
+np.float32,0x3eb080c4,0x3eb80a44,2
+np.float32,0x3e627800,0x3e6645fe,2
+np.float32,0xbd8be0b0,0xbd8c1886,2
+np.float32,0xbf3282ac,0xbf5cae8c,2
+np.float32,0xbe515910,0xbe545707,2
+np.float32,0xbf2e64ac,0xbf54d637,2
+np.float32,0x3e0fc230,0x3e10b6de,2
+np.float32,0x3eb13ca0,0x3eb8df94,2
+np.float32,0x3f07a3ca,0x3f170572,2
+np.float32,0x3f2c7026,0x3f513935,2
+np.float32,0x3f3c4ec8,0x3f70d67c,2
+np.float32,0xbee9cce8,0xbefc724f,2
+np.float32,0xbe53ca60,0xbe56e3f3,2
+np.float32,0x3dd9e9a0,0x3ddabd98,2
+np.float32,0x3f38b8d4,0x3f69319b,2
+np.float32,0xbe176dc4,0xbe188c1d,2
+np.float32,0xbf322f2e,0xbf5c0c51,2
+np.float32,0xbe9b8676,0xbea097a2,2
+np.float32,0xbca44280,0xbca44823,2
+np.float32,0xbe2b0248,0xbe2ca036,2
+np.float32,0x3d101e80,0x3d102dbd,2
+np.float32,0xbf4eb610,0xbf8f526d,2
+np.float32,0xbec32a50,0xbecd89d1,2
+np.float32,0x3d549100,0x3d54c1ee,2
+np.float32,0x3f78e55e,0x40087025,2
+np.float32,0x3e592798,0x3e5c802d,2
+np.float32,0x3de045d0,0x3de12cfb,2
+np.float32,0xbdad28e0,0xbdad92f7,2
+np.float32,0x3e9a69e0,0x3e9f5e59,2
+np.float32,0x3e809778,0x3e836716,2
+np.float32,0xbf3278d9,0xbf5c9b6d,2
+np.float32,0x3f39fa00,0x3f6bd4a5,2
+np.float32,0xbec8143c,0xbed34ffa,2
+np.float32,0x3ddb7f40,0x3ddc57e6,2
+np.float32,0x3f0e8342,0x3f20c634,2
+np.float32,0x3f353dda,0x3f6213a4,2
+np.float32,0xbe96b400,0xbe9b4bea,2
+np.float32,0x3e626580,0x3e66328a,2
+np.float32,0xbde091c8,0xbde179df,2
+np.float32,0x3eb47b5c,0x3ebc91ca,2
+np.float32,0xbf282182,0xbf497f2f,2
+np.float32,0x3ea9f64c,0x3eb0a748,2
+np.float32,0x3f28dd4e,0x3f4aca86,2
+np.float32,0xbf71de18,0xbfe3f587,2
+np.float32,0x7fa00000,0x7fe00000,2
+np.float32,0xbf6696a6,0xbfbcf11a,2
+np.float32,0xbc853ae0,0xbc853de2,2
+np.float32,0xbeced246,0xbedb51b8,2
+np.float32,0x3f3472a4,0x3f607e00,2
+np.float32,0xbee90124,0xbefb7117,2
+np.float32,0x3eb45b90,0x3ebc6d7c,2
+np.float32,0xbe53ead0,0xbe5705d6,2
+np.float32,0x3f630c80,0x3fb420e2,2
+np.float32,0xbf408cd0,0xbf7a56a2,2
+np.float32,0x3dda4ed0,0x3ddb23f1,2
+np.float32,0xbf37ae88,0xbf67096b,2
+np.float32,0xbdd48c28,0xbdd550c9,2
+np.float32,0xbf5745b0,0xbf9cb4a4,2
+np.float32,0xbf44e6fc,0xbf8255c1,2
+np.float32,0x3f5c8e6a,0x3fa65020,2
+np.float32,0xbea45fe8,0xbeaa6630,2
+np.float32,0x3f08bdee,0x3f188ef5,2
+np.float32,0x3ec77e74,0x3ed29f4b,2
+np.float32,0xbf1a1d3c,0xbf324029,2
+np.float32,0x3cad7340,0x3cad79e3,2
+np.float32,0xbf4fac2e,0xbf90b72a,2
+np.float32,0x3f58516e,0x3f9e8330,2
+np.float32,0x3f442008,0x3f816391,2
+np.float32,0xbf6e0c6c,0xbfd42854,2
+np.float32,0xbf266f7a,0xbf4689b2,2
+np.float32,0x3eb7e2f0,0x3ec077ba,2
+np.float32,0xbf320fd0,0xbf5bcf83,2
+np.float32,0xbf6a76b9,0xbfc80a11,2
+np.float32,0xbf2a91b4,0xbf4dd526,2
+np.float32,0x3f176e30,0x3f2e150e,2
+np.float32,0xbdcccad0,0xbdcd7a9c,2
+np.float32,0x3f60a8a4,0x3faebbf7,2
+np.float32,0x3d9706f0,0x3d974d40,2
+np.float32,0x3ef3cd34,0x3f049d58,2
+np.float32,0xbf73c615,0xbfed79fe,2
+np.float32,0x3df1b170,0x3df2d31b,2
+np.float32,0x3f632a46,0x3fb466c7,2
+np.float32,0xbf3ea18e,0xbf75f9ce,2
+np.float32,0xbf3ea05c,0xbf75f71f,2
+np.float32,0xbdd76750,0xbdd83403,2
+np.float32,0xbca830c0,0xbca836cd,2
+np.float32,0x3f1d4162,0x3f373c59,2
+np.float32,0x3c115700,0x3c1157fa,2
+np.float32,0x3dae8ab0,0x3daef758,2
+np.float32,0xbcad5020,0xbcad56bf,2
+np.float32,0x3ee299c4,0x3ef36c15,2
+np.float32,0xbf7f566c,0xc054c3bd,2
+np.float32,0x3f0cc698,0x3f1e4557,2
+np.float32,0xbe75c648,0xbe7aaa04,2
+np.float32,0x3ea29238,0x3ea86417,2
+np.float32,0x3f09d9c0,0x3f1a1d61,2
+np.float32,0x3f67275c,0x3fbe74b3,2
+np.float32,0x3e1a4e18,0x3e1b7d3a,2
+np.float32,0xbef6e3fc,0xbf069e98,2
+np.float32,0xbf6038ac,0xbfadc9fd,2
+np.float32,0xbe46bdd4,0xbe494b7f,2
+np.float32,0xbf4df1f4,0xbf8e3a98,2
+np.float32,0x3d094dc0,0x3d095aed,2
+np.float32,0x3f44c7d2,0x3f822fa3,2
+np.float32,0xbea30816,0xbea8e737,2
+np.float32,0xbe3c27c4,0xbe3e511b,2
+np.float32,0x3f3bb47c,0x3f6f8789,2
+np.float32,0xbe423760,0xbe4498c3,2
+np.float32,0x3ece1a74,0x3eda7634,2
+np.float32,0x3f14d1f6,0x3f2a1a89,2
+np.float32,0xbf4d9e8f,0xbf8dc4c1,2
+np.float32,0xbe92968e,0xbe96cd7f,2
+np.float32,0x3e99e6c0,0x3e9ece26,2
+np.float32,0xbf397361,0xbf6ab878,2
+np.float32,0xbf4fcea4,0xbf90e99f,2
+np.float32,0x3de37640,0x3de46779,2
+np.float32,0x3eb1b604,0x3eb9698c,2
+np.float32,0xbf52d0a2,0xbf957361,2
+np.float32,0xbe20435c,0xbe21975a,2
+np.float32,0x3f437a58,0x3f809bf1,2
+np.float32,0x3f27d1cc,0x3f48f335,2
+np.float32,0x3f7d4ff2,0x4027d1e2,2
+np.float32,0xbef732e4,0xbf06d205,2
+np.float32,0x3f4a0ae6,0x3f88e18e,2
+np.float32,0x3f800000,0x7f800000,2
+np.float32,0x3e3e56a0,0x3e4093ba,2
+np.float32,0xbed2fcfa,0xbee0517d,2
+np.float32,0xbe0e0114,0xbe0eecd7,2
+np.float32,0xbe808574,0xbe8353db,2
+np.float32,0x3f572e2a,0x3f9c8c86,2
+np.float32,0x80800000,0x80800000,2
+np.float32,0x3f3f3c82,0x3f775703,2
+np.float32,0xbf6e2482,0xbfd4818b,2
+np.float32,0xbf3943b0,0xbf6a5439,2
+np.float32,0x3f6e42ac,0x3fd4f1ea,2
+np.float32,0x3eb676c4,0x3ebed619,2
+np.float32,0xbe5e56c4,0xbe61ef6c,2
+np.float32,0x3eea200c,0x3efcdb65,2
+np.float32,0x3e3d2c78,0x3e3f5ef8,2
+np.float32,0xbdfd8fb0,0xbdfede71,2
+np.float32,0xbee69c8a,0xbef86e89,2
+np.float32,0x3e9efca0,0x3ea46a1c,2
+np.float32,0x3e4c2498,0x3e4ee9ee,2
+np.float32,0xbf3cc93c,0xbf71e21d,2
+np.float32,0x3ee0d77c,0x3ef13d2b,2
+np.float32,0xbefbcd2a,0xbf09d6a3,2
+np.float32,0x3f6dbe5c,0x3fd30a3e,2
+np.float32,0x3dae63e0,0x3daed03f,2
+np.float32,0xbd5001e0,0xbd502fb9,2
+np.float32,0x3f59632a,0x3fa067c8,2
+np.float32,0x3f0d355a,0x3f1ee452,2
+np.float32,0x3f2cbe5c,0x3f51c896,2
+np.float32,0x3c5e6e80,0x3c5e7200,2
+np.float32,0xbe8ac49c,0xbe8e52f0,2
+np.float32,0x3f54e576,0x3f98c0e6,2
+np.float32,0xbeaa0762,0xbeb0ba7c,2
+np.float32,0x3ec81e88,0x3ed35c21,2
+np.float32,0x3f5a6738,0x3fa23fb6,2
+np.float32,0xbf24a682,0xbf43784a,2
+np.float32,0x1,0x1,2
+np.float32,0x3ee6bc24,0x3ef89630,2
+np.float32,0x3f19444a,0x3f30ecf5,2
+np.float32,0x3ec1fc70,0x3ecc28fc,2
+np.float32,0xbf706e14,0xbfdd92fb,2
+np.float32,0x3eccb630,0x3ed8cd98,2
+np.float32,0xbcdf7aa0,0xbcdf88d3,2
+np.float32,0xbe450da8,0xbe478a8e,2
+np.float32,0x3ec9c210,0x3ed54c0b,2
+np.float32,0xbf3b86ca,0xbf6f24d1,2
+np.float32,0x3edcc7a0,0x3eec3a5c,2
+np.float32,0x3f075d5c,0x3f16a39a,2
+np.float32,0xbf5719ce,0xbf9c69de,2
+np.float32,0x3f62cb22,0x3fb3885a,2
+np.float32,0x3f639216,0x3fb55c93,2
+np.float32,0xbf473ee7,0xbf85413a,2
+np.float32,0xbf01b66c,0xbf0eea86,2
+np.float32,0x3e872d80,0x3e8a74f8,2
+np.float32,0xbf60957e,0xbfae925c,2
+np.float32,0xbf6847b2,0xbfc1929b,2
+np.float32,0x3f78bb94,0x4007b363,2
+np.float32,0xbf47efdb,0xbf8622db,2
+np.float32,0xbe1f2308,0xbe206fd6,2
+np.float32,0xbf414926,0xbf7c0a7e,2
+np.float32,0x3eecc268,0x3f00194d,2
+np.float32,0x3eb086d0,0x3eb81120,2
+np.float32,0xbef1af80,0xbf033ff5,2
+np.float32,0xbf454e56,0xbf82d4aa,2
+np.float32,0x3e622560,0x3e65ef20,2
+np.float32,0x3f50d2b2,0x3f926a83,2
+np.float32,0x3eb2c45c,0x3eba9d2c,2
+np.float32,0x3e42d1a0,0x3e4538c9,2
+np.float32,0xbf24cc5c,0xbf43b8e3,2
+np.float32,0x3e8c6464,0x3e90141a,2
+np.float32,0xbf3abff2,0xbf6d79c5,2
+np.float32,0xbec8f2e6,0xbed456fa,2
+np.float32,0xbf787b38,0xc00698b4,2
+np.float32,0xbf58d5cd,0xbf9f6c03,2
+np.float32,0x3df4ee20,0x3df61ba8,2
+np.float32,0xbf34581e,0xbf604951,2
+np.float32,0xbeba5cf4,0xbec35119,2
+np.float32,0xbf76c22d,0xbfffc51c,2
+np.float32,0x3ef63b2c,0x3f0630b4,2
+np.float32,0x3eeadb64,0x3efdc877,2
+np.float32,0x3dfd8c70,0x3dfedb24,2
+np.float32,0x3f441600,0x3f81576d,2
+np.float32,0x3f23a0d8,0x3f41bbf6,2
+np.float32,0x3cb84d40,0x3cb85536,2
+np.float32,0xbf25cb5c,0xbf456e38,2
+np.float32,0xbc108540,0xbc108636,2
+np.float32,0xbc5b9140,0xbc5b949e,2
+np.float32,0xbf62ff40,0xbfb401dd,2
+np.float32,0x3e8e0710,0x3e91d93e,2
+np.float32,0x3f1b6ae0,0x3f344dfd,2
+np.float32,0xbf4dbbbe,0xbf8dedea,2
+np.float32,0x3f1a5fb2,0x3f32a880,2
+np.float32,0xbe56bd00,0xbe59f8cb,2
+np.float32,0xbf490a5c,0xbf87902d,2
+np.float32,0xbf513072,0xbf92f717,2
+np.float32,0x3e73ee28,0x3e78b542,2
+np.float32,0x3f0a4c7a,0x3f1abf2c,2
+np.float32,0x3e10d5c8,0x3e11d00b,2
+np.float32,0xbf771aac,0xc001207e,2
+np.float32,0x3efe2f54,0x3f0b6a46,2
+np.float32,0xbea5f3ea,0xbeac291f,2
+np.float32,0xbf1a73e8,0xbf32c845,2
+np.float32,0x3ebcc82c,0x3ec61c4f,2
+np.float32,0xbf24f492,0xbf43fd9a,2
+np.float32,0x3ecbd908,0x3ed7c691,2
+np.float32,0x3f461c5e,0x3f83d3f0,2
+np.float32,0x3eed0524,0x3f0043c1,2
+np.float32,0x3d06e840,0x3d06f4bf,2
+np.float32,0x3eb6c974,0x3ebf34d7,2
+np.float32,0xbf1c85e1,0xbf36100f,2
+np.float32,0x3ed697d0,0x3ee4ad04,2
+np.float32,0x3eab0484,0x3eb1d733,2
+np.float32,0xbf3b02f2,0xbf6e0935,2
+np.float32,0xbeeab154,0xbefd9334,2
+np.float32,0xbf695372,0xbfc49881,2
+np.float32,0x3e8aaa7c,0x3e8e36be,2
+np.float32,0xbf208754,0xbf3c8f7b,2
+np.float32,0xbe0dbf28,0xbe0ea9a1,2
+np.float32,0x3ca780c0,0x3ca786ba,2
+np.float32,0xbeb320b4,0xbebb065e,2
+np.float32,0x3f13c698,0x3f288821,2
+np.float32,0xbe8cbbec,0xbe9072c4,2
+np.float32,0x3f1ed534,0x3f39c8df,2
+np.float32,0x3e1ca450,0x3e1de190,2
+np.float32,0x3f54be1c,0x3f988134,2
+np.float32,0x3f34e4ee,0x3f6161b4,2
+np.float32,0xbf7e6913,0xc038b246,2
+np.float32,0x3d3c3f20,0x3d3c6119,2
+np.float32,0x3ca9dc80,0x3ca9e2bc,2
+np.float32,0xbf577ea2,0xbf9d161a,2
+np.float32,0xbedb22c8,0xbeea3644,2
+np.float32,0x3f22a044,0x3f400bfa,2
+np.float32,0xbe214b8c,0xbe22a637,2
+np.float32,0x3e8cd300,0x3e908bbc,2
+np.float32,0xbec4d214,0xbecf7a58,2
+np.float32,0x3e9399a4,0x3e97e7e4,2
+np.float32,0xbee6a1a2,0xbef874ed,2
+np.float32,0xbf323742,0xbf5c1bfd,2
+np.float32,0x3f48b882,0x3f8725ac,2
+np.float32,0xbf4d4dba,0xbf8d532e,2
+np.float32,0xbf59640a,0xbfa0695a,2
+np.float32,0xbf2ad562,0xbf4e4f03,2
+np.float32,0x3e317d98,0x3e334d03,2
+np.float32,0xbf6a5b71,0xbfc7b5a2,2
+np.float32,0x3e87b434,0x3e8b05cf,2
+np.float32,0xbf1c344c,0xbf358dee,2
+np.float32,0x3e449428,0x3e470c65,2
+np.float32,0xbf2c0f2f,0xbf508808,2
+np.float32,0xbec5b5ac,0xbed0859c,2
+np.float32,0xbf4aa956,0xbf89b4b1,2
+np.float32,0x3f6dd374,0x3fd35717,2
+np.float32,0x3f45f76c,0x3f83a5ef,2
+np.float32,0xbed1fba8,0xbedf1bd5,2
+np.float32,0xbd26b2d0,0xbd26ca66,2
+np.float32,0xbe9817c2,0xbe9cd1c3,2
+np.float32,0x3e725988,0x3e770875,2
+np.float32,0xbf1a8ded,0xbf32f132,2
+np.float32,0xbe695860,0xbe6d83d3,2
+np.float32,0x3d8cecd0,0x3d8d25ea,2
+np.float32,0x3f574706,0x3f9cb6ec,2
+np.float32,0xbf5c5a1f,0xbfa5eaf3,2
+np.float32,0x3e7a7c88,0x3e7fab83,2
+np.float32,0xff800000,0xffc00000,2
+np.float32,0x3f66396a,0x3fbbfbb0,2
+np.float32,0x3ed6e588,0x3ee50b53,2
+np.float32,0xbb56d500,0xbb56d532,2
+np.float32,0x3ebd23fc,0x3ec6869a,2
+np.float32,0xbf70d490,0xbfdf4af5,2
+np.float32,0x3e514f88,0x3e544d15,2
+np.float32,0x3e660f98,0x3e6a0dac,2
+np.float32,0xbf034da1,0xbf1110bb,2
+np.float32,0xbf60d9be,0xbfaf2714,2
+np.float32,0x3df67b10,0x3df7ae64,2
+np.float32,0xbeeedc0a,0xbf017010,2
+np.float32,0xbe149224,0xbe15a072,2
+np.float32,0x3f455084,0x3f82d759,2
+np.float32,0x3f210f9e,0x3f3d7093,2
+np.float32,0xbeaea3e0,0xbeb5edd3,2
+np.float32,0x3e0724b0,0x3e07efad,2
+np.float32,0x3f09a784,0x3f19d6ac,2
+np.float32,0xbf044340,0xbf125ee8,2
+np.float32,0xbf71adc9,0xbfe315fe,2
+np.float32,0x3efd3870,0x3f0ac6a8,2
+np.float32,0xbf53c7a6,0xbf96f6df,2
+np.float32,0xbf3cf784,0xbf7247af,2
+np.float32,0x3e0ce9e0,0x3e0dd035,2
+np.float32,0xbd3051a0,0xbd306d89,2
+np.float32,0x3ecab804,0x3ed66f77,2
+np.float32,0x3e984350,0x3e9d0189,2
+np.float32,0x3edd1c00,0x3eeca20b,2
+np.float32,0xbe8e22a0,0xbe91f71b,2
+np.float32,0x3ebebc18,0x3ec85fd6,2
+np.float32,0xba275c00,0xba275c01,2
+np.float32,0x3f1d8190,0x3f37a385,2
+np.float32,0x3f17343e,0x3f2dbbfe,2
+np.float32,0x3caa8000,0x3caa864e,2
+np.float32,0x3e7a7308,0x3e7fa168,2
+np.float32,0x3f7359a6,0x3feb3e1a,2
+np.float32,0xbf7ad15a,0xc012a743,2
+np.float32,0xbf122efb,0xbf262812,2
+np.float32,0xbf03ba04,0xbf11a3fa,2
+np.float32,0x3ed7a90c,0x3ee5f8d4,2
+np.float32,0xbe23e318,0xbe254eed,2
+np.float32,0xbe2866f4,0xbe29f20a,2
+np.float32,0xbeaedff2,0xbeb631d0,2
+np.float32,0x0,0x0,2
+np.float32,0x3ef2a034,0x3f03dafd,2
+np.float32,0x3f35806c,0x3f62994e,2
+np.float32,0xbf655e19,0xbfb9c718,2
+np.float32,0x3f5d54ce,0x3fa7d4f4,2
+np.float32,0x3f33e64a,0x3f5f67e3,2
+np.float32,0x3ebf4010,0x3ec8f923,2
+np.float32,0xbe050dc8,0xbe05cf70,2
+np.float32,0x3f61693e,0x3fb063b0,2
+np.float32,0xbd94ac00,0xbd94ef12,2
+np.float32,0x3e9de008,0x3ea32f61,2
+np.float32,0xbe3d042c,0xbe3f3540,2
+np.float32,0x3e8fdfc0,0x3e93d9e4,2
+np.float32,0x3f28bc48,0x3f4a9019,2
+np.float32,0x3edea928,0x3eee8b09,2
+np.float32,0xbf05f673,0xbf14b362,2
+np.float32,0xbf360730,0xbf63a914,2
+np.float32,0xbe3fb454,0xbe41fe0a,2
+np.float32,0x3f6d99a8,0x3fd28552,2
+np.float32,0xbf3ae866,0xbf6dd052,2
+np.float32,0x3f5b1164,0x3fa37aec,2
+np.float32,0xbf64a451,0xbfb7f61b,2
+np.float32,0xbdd79bd0,0xbdd86919,2
+np.float32,0x3e89fc00,0x3e8d7a85,2
+np.float32,0x3f4bf690,0x3f8b77ea,2
+np.float32,0x3cbdf280,0x3cbdfb38,2
+np.float32,0x3f138f98,0x3f2835b4,2
+np.float32,0xbe33967c,0xbe3576bc,2
+np.float32,0xbf298164,0xbf4bedda,2
+np.float32,0x3e9955cc,0x3e9e2edb,2
+np.float32,0xbf79b383,0xc00c56c0,2
+np.float32,0x3ea0834c,0x3ea61aea,2
+np.float32,0xbf511184,0xbf92c89a,2
+np.float32,0x3f4d9fba,0x3f8dc666,2
+np.float32,0x3f3387c2,0x3f5ead80,2
+np.float32,0x3e3f7360,0x3e41babb,2
+np.float32,0xbf3cc4d6,0xbf71d879,2
+np.float32,0x3f2e4402,0x3f54994e,2
+np.float32,0x3e6a7118,0x3e6eabff,2
+np.float32,0xbf05d83e,0xbf1489cc,2
+np.float32,0xbdce4fd8,0xbdcf039a,2
+np.float32,0xbf03e2f4,0xbf11dbaf,2
+np.float32,0x3f1ea0a0,0x3f397375,2
+np.float32,0x3f7aff54,0x4013cb1b,2
+np.float32,0x3f5ef158,0x3fab1801,2
+np.float32,0xbe33bcc8,0xbe359e40,2
+np.float32,0xbf04dd0e,0xbf133111,2
+np.float32,0xbf14f887,0xbf2a54d1,2
+np.float32,0x3f75c37a,0x3ff9196e,2
+np.float32,0x3f35c3c8,0x3f6320f2,2
+np.float32,0x3f53bb94,0x3f96e3c3,2
+np.float32,0x3f4d473e,0x3f8d4a19,2
+np.float32,0xbdfe19e0,0xbdff6ac9,2
+np.float32,0xbf7f0cc4,0xc049342d,2
+np.float32,0xbdbfc778,0xbdc057bb,2
+np.float32,0xbf7575b7,0xbff73067,2
+np.float32,0xbe9df488,0xbea34609,2
+np.float32,0xbefbd3c6,0xbf09daff,2
+np.float32,0x3f19962c,0x3f316cbd,2
+np.float32,0x3f7acec6,0x40129732,2
+np.float32,0xbf5db7de,0xbfa89a21,2
+np.float32,0x3f62f444,0x3fb3e830,2
+np.float32,0xbf522adb,0xbf94737f,2
+np.float32,0xbef6ceb2,0xbf0690ba,2
+np.float32,0xbf57c41e,0xbf9d8db0,2
+np.float32,0x3eb3360c,0x3ebb1eb0,2
+np.float32,0x3f29327e,0x3f4b618e,2
+np.float32,0xbf08d099,0xbf18a916,2
+np.float32,0x3ea21014,0x3ea7d369,2
+np.float32,0x3f39e516,0x3f6ba861,2
+np.float32,0x3e7c4f28,0x3e80ce08,2
+np.float32,0xbec5a7f8,0xbed07582,2
+np.float32,0xbf0b1b46,0xbf1be3e7,2
+np.float32,0xbef0e0ec,0xbf02bb2e,2
+np.float32,0x3d835a30,0x3d838869,2
+np.float32,0x3f08aa40,0x3f18736e,2
+np.float32,0x3eb0e4c8,0x3eb87bcd,2
+np.float32,0x3eb3821c,0x3ebb7564,2
+np.float32,0xbe3a7320,0xbe3c8d5a,2
+np.float32,0x3e43f8c0,0x3e466b10,2
+np.float32,0x3e914288,0x3e955b69,2
+np.float32,0x3ec7d800,0x3ed308e7,2
+np.float32,0x3e603df8,0x3e63eef2,2
+np.float32,0x3f225cac,0x3f3f9ac6,2
+np.float32,0x3e3db8f0,0x3e3ff06b,2
+np.float32,0x3f358d78,0x3f62b38c,2
+np.float32,0xbed9bd64,0xbee88158,2
+np.float32,0x800000,0x800000,2
+np.float32,0x3f1adfce,0x3f337230,2
+np.float32,0xbefdc346,0xbf0b229d,2
+np.float32,0xbf091018,0xbf190208,2
+np.float32,0xbf800000,0xff800000,2
+np.float32,0x3f27c2c4,0x3f48d8db,2
+np.float32,0x3ef59c80,0x3f05c993,2
+np.float32,0x3e18a340,0x3e19c893,2
+np.float32,0x3f209610,0x3f3ca7c5,2
+np.float32,0x3f69cc22,0x3fc60087,2
+np.float32,0xbf66cf07,0xbfbd8721,2
+np.float32,0xbf768098,0xbffdfcc4,2
+np.float32,0x3df27a40,0x3df39ec4,2
+np.float32,0x3daf5bd0,0x3dafca02,2
+np.float32,0x3f53f2be,0x3f973b41,2
+np.float32,0xbf7edcbc,0xc0436ce3,2
+np.float32,0xbdf61db8,0xbdf74fae,2
+np.float32,0x3e2c9328,0x3e2e3cb2,2
+np.float32,0x3f1a4570,0x3f327f41,2
+np.float32,0xbf766306,0xbffd32f1,2
+np.float32,0xbf468b9d,0xbf845f0f,2
+np.float32,0x3e398970,0x3e3b9bb1,2
+np.float32,0xbbefa900,0xbbefaa18,2
+np.float32,0xbf54c989,0xbf9893ad,2
+np.float32,0x3f262cf6,0x3f46169d,2
+np.float32,0x3f638a8a,0x3fb54a98,2
+np.float32,0xbeb36c78,0xbebb5cb8,2
+np.float32,0xbeac4d42,0xbeb34993,2
+np.float32,0x3f1d1942,0x3f36fbf2,2
+np.float32,0xbf5d49ba,0xbfa7bf07,2
+np.float32,0xbf182b5c,0xbf2f38d0,2
+np.float32,0x3f41a742,0x3f7ce5ef,2
+np.float32,0x3f0b9a6c,0x3f1c9898,2
+np.float32,0x3e847494,0x3e8788f3,2
+np.float32,0xbde41608,0xbde50941,2
+np.float32,0x3f693944,0x3fc44b5a,2
+np.float32,0x3f0386b2,0x3f115e37,2
+np.float32,0x3f3a08b0,0x3f6bf3c1,2
+np.float32,0xbf78ee64,0xc0089977,2
+np.float32,0xbf013a11,0xbf0e436e,2
+np.float32,0x3f00668e,0x3f0d2836,2
+np.float32,0x3e6d9850,0x3e720081,2
+np.float32,0x3eacf578,0x3eb4075d,2
+np.float32,0x3f18aef8,0x3f3004b4,2
+np.float32,0x3de342f0,0x3de43385,2
+np.float32,0x3e56cee8,0x3e5a0b85,2
+np.float32,0xbf287912,0xbf4a1966,2
+np.float32,0x3e92c948,0x3e9704c2,2
+np.float32,0x3c07d080,0x3c07d14c,2
+np.float32,0xbe90f6a0,0xbe9508e0,2
+np.float32,0x3e8b4f28,0x3e8ee884,2
+np.float32,0xbf35b56c,0xbf6303ff,2
+np.float32,0xbef512b8,0xbf057027,2
+np.float32,0x3e36c630,0x3e38c0cd,2
+np.float32,0x3f0b3ca8,0x3f1c134a,2
+np.float32,0x3e4cd610,0x3e4fa2c5,2
+np.float32,0xbf5a8372,0xbfa273a3,2
+np.float32,0xbecaad3c,0xbed662ae,2
+np.float32,0xbec372d2,0xbecddeac,2
+np.float32,0x3f6fb2b2,0x3fda8a22,2
+np.float32,0x3f365f28,0x3f645b5a,2
+np.float32,0xbecd00fa,0xbed926a4,2
+np.float32,0xbebafa32,0xbec40672,2
+np.float32,0xbf235b73,0xbf4146c4,2
+np.float32,0x3f7a4658,0x400f6e2c,2
+np.float32,0x3f35e824,0x3f636a54,2
+np.float32,0x3cb87640,0x3cb87e3c,2
+np.float32,0xbf296288,0xbf4bb6ee,2
+np.float32,0x7f800000,0xffc00000,2
+np.float32,0xbf4de86e,0xbf8e2d1a,2
+np.float32,0xbf4ace12,0xbf89e5f3,2
+np.float32,0x3d65a300,0x3d65e0b5,2
+np.float32,0xbe10c534,0xbe11bf21,2
+np.float32,0xbeba3c1c,0xbec32b3e,2
+np.float32,0x3e87eaf8,0x3e8b40b8,2
+np.float32,0x3d5c3bc0,0x3d5c722d,2
+np.float32,0x3e8c14b8,0x3e8fbdf8,2
+np.float32,0xbf06c6f0,0xbf15d327,2
+np.float32,0xbe0f1e30,0xbe100f96,2
+np.float32,0xbee244b0,0xbef30251,2
+np.float32,0x3f2a21b0,0x3f4d0c1d,2
+np.float32,0xbf5f7f81,0xbfac408e,2
+np.float32,0xbe3dba2c,0xbe3ff1b2,2
+np.float32,0x3f3ffc22,0x3f790abf,2
+np.float32,0x3edc3dac,0x3eeb90fd,2
+np.float32,0x7f7fffff,0xffc00000,2
+np.float32,0x3ecfaaac,0x3edc5485,2
+np.float32,0x3f0affbe,0x3f1bbcd9,2
+np.float32,0x3f5f2264,0x3fab7dca,2
+np.float32,0x3f37394c,0x3f66186c,2
+np.float32,0xbe6b2f6c,0xbe6f74e3,2
+np.float32,0x3f284772,0x3f49c1f1,2
+np.float32,0xbdf27bc8,0xbdf3a051,2
+np.float32,0xbc8b14e0,0xbc8b184c,2
+np.float32,0x3f6a867c,0x3fc83b07,2
+np.float32,0x3f1ec876,0x3f39b429,2
+np.float32,0x3f6fd9a8,0x3fdb28d6,2
+np.float32,0xbf473cca,0xbf853e8c,2
+np.float32,0x3e23eff8,0x3e255c23,2
+np.float32,0x3ebefdfc,0x3ec8ac5d,2
+np.float32,0x3f6c8c22,0x3fced2b1,2
+np.float32,0x3f168388,0x3f2cad44,2
+np.float32,0xbece2410,0xbeda81ac,2
+np.float32,0x3f5532f0,0x3f993eea,2
+np.float32,0x3ef1938c,0x3f032dfa,2
+np.float32,0xbef05268,0xbf025fba,2
+np.float32,0x3f552e4a,0x3f993754,2
+np.float32,0x3e9ed068,0x3ea4392d,2
+np.float32,0xbe1a0c24,0xbe1b39be,2
+np.float32,0xbf2623aa,0xbf46068c,2
+np.float32,0xbe1cc300,0xbe1e00fc,2
+np.float32,0xbe9c0576,0xbea12397,2
+np.float32,0xbd827338,0xbd82a07e,2
+np.float32,0x3f0fc31a,0x3f229786,2
+np.float32,0x3e577810,0x3e5abc7d,2
+np.float32,0x3e0e1cb8,0x3e0f0906,2
+np.float32,0x3e84d344,0x3e87ee73,2
+np.float32,0xbf39c45e,0xbf6b6337,2
+np.float32,0x3edfb25c,0x3eefd273,2
+np.float32,0x3e016398,0x3e021596,2
+np.float32,0xbefeb1be,0xbf0bc0de,2
+np.float32,0x3f37e104,0x3f677196,2
+np.float32,0x3f545316,0x3f97d500,2
+np.float32,0xbefc165a,0xbf0a06ed,2
+np.float32,0xbf0923e6,0xbf191dcd,2
+np.float32,0xbf386508,0xbf68831f,2
+np.float32,0xbf3d4630,0xbf72f4e1,2
+np.float32,0x3f3dbe82,0x3f73ff13,2
+np.float32,0xbf703de4,0xbfdcc7e2,2
+np.float32,0xbf531482,0xbf95dd1a,2
+np.float32,0xbf0af1b6,0xbf1ba8f4,2
+np.float32,0xbec8fd9c,0xbed463a4,2
+np.float32,0xbe230320,0xbe24691a,2
+np.float32,0xbf7de541,0xc02faf38,2
+np.float32,0x3efd2360,0x3f0ab8b7,2
+np.float32,0x3db7f350,0x3db87291,2
+np.float32,0x3e74c510,0x3e799924,2
+np.float32,0x3da549c0,0x3da5a5fc,2
+np.float32,0x3e8a3bc4,0x3e8dbf4a,2
+np.float32,0xbf69f086,0xbfc66e84,2
+np.float32,0x3f323f8e,0x3f5c2c17,2
+np.float32,0x3ec0ae3c,0x3ecaa334,2
+np.float32,0xbebe8966,0xbec824fc,2
+np.float32,0x3f34691e,0x3f606b13,2
+np.float32,0x3f13790e,0x3f2813f5,2
+np.float32,0xbf61c027,0xbfb12618,2
+np.float32,0x3e90c690,0x3e94d4a1,2
+np.float32,0xbefce8f0,0xbf0a920e,2
+np.float32,0xbf5c0e8a,0xbfa559a7,2
+np.float32,0x3f374f60,0x3f6645b6,2
+np.float32,0x3f25f6fa,0x3f45b967,2
+np.float32,0x3f2421aa,0x3f42963a,2
+np.float32,0x3ebfa328,0x3ec96c57,2
+np.float32,0x3e3bef28,0x3e3e1685,2
+np.float32,0x3ea3fa3c,0x3ea9f4dd,2
+np.float32,0x3f362b8e,0x3f63f2b2,2
+np.float32,0xbedcef18,0xbeec6ada,2
+np.float32,0xbdd29c88,0xbdd35bd0,2
+np.float32,0x3f261aea,0x3f45f76f,2
+np.float32,0xbe62c470,0xbe66965e,2
+np.float32,0x7fc00000,0x7fc00000,2
+np.float32,0xbee991aa,0xbefc277b,2
+np.float32,0xbf571960,0xbf9c6923,2
+np.float32,0xbe6fb410,0xbe743b41,2
+np.float32,0x3eb1bed0,0x3eb9738d,2
+np.float32,0x80000000,0x80000000,2
+np.float32,0x3eddcbe4,0x3eed7a69,2
+np.float32,0xbf2a81ba,0xbf4db86d,2
+np.float32,0x3f74da54,0x3ff38737,2
+np.float32,0xbeb6bff4,0xbebf29f4,2
+np.float32,0x3f445752,0x3f81a698,2
+np.float32,0x3ed081b4,0x3edd5618,2
+np.float32,0xbee73802,0xbef931b4,2
+np.float32,0xbd13f2a0,0xbd14031c,2
+np.float32,0xbb4d1200,0xbb4d122c,2
+np.float32,0xbee8777a,0xbefac393,2
+np.float32,0x3f42047c,0x3f7dc06c,2
+np.float32,0xbd089270,0xbd089f67,2
+np.float32,0xbf628c16,0xbfb2f66b,2
+np.float32,0x3e72e098,0x3e77978d,2
+np.float32,0x3ed967cc,0x3ee818e4,2
+np.float32,0x3e284c80,0x3e29d6d9,2
+np.float32,0x3f74e8ba,0x3ff3dbef,2
+np.float32,0x3f013e86,0x3f0e4969,2
+np.float32,0xbf610d4f,0xbfaf983c,2
+np.float32,0xbf3c8d36,0xbf715eba,2
+np.float32,0xbedbc756,0xbeeaffdb,2
+np.float32,0x3e143ec8,0x3e154b4c,2
+np.float32,0xbe1c9808,0xbe1dd4fc,2
+np.float32,0xbe887a1e,0xbe8bdac5,2
+np.float32,0xbe85c4bc,0xbe88f17a,2
+np.float32,0x3f35967e,0x3f62c5b4,2
+np.float32,0x3ea2c4a4,0x3ea89c2d,2
+np.float32,0xbc8703c0,0xbc8706e1,2
+np.float32,0xbf13d52c,0xbf289dff,2
+np.float32,0xbf63bb56,0xbfb5bf29,2
+np.float32,0xbf61c5ef,0xbfb13319,2
+np.float32,0xbf128410,0xbf26a675,2
+np.float32,0x3f03fcf2,0x3f11ff13,2
+np.float32,0xbe49c924,0xbe4c75cd,2
+np.float32,0xbf211a9c,0xbf3d82c5,2
+np.float32,0x3f7e9d52,0x403d1b42,2
+np.float32,0x3edfefd4,0x3ef01e71,2
+np.float32,0x3ebc5bd8,0x3ec59efb,2
+np.float32,0x3d7b02e0,0x3d7b537f,2
+np.float32,0xbf1163ba,0xbf24fb43,2
+np.float32,0x3f5072f2,0x3f91dbf1,2
+np.float32,0xbee700ce,0xbef8ec60,2
+np.float32,0x3f534168,0x3f962359,2
+np.float32,0x3e6d6c40,0x3e71d1ef,2
+np.float32,0x3def9d70,0x3df0b7a8,2
+np.float32,0x3e89cf80,0x3e8d4a8a,2
+np.float32,0xbf687ca7,0xbfc2290f,2
+np.float32,0x3f35e134,0x3f635c51,2
+np.float32,0x3e59eef8,0x3e5d50fa,2
+np.float32,0xbf65c9e1,0xbfbada61,2
+np.float32,0xbf759292,0xbff7e43d,2
+np.float32,0x3f4635a0,0x3f83f372,2
+np.float32,0x3f29baaa,0x3f4c53f1,2
+np.float32,0x3f6b15a6,0x3fc9fe04,2
+np.float32,0x3edabc88,0x3ee9b922,2
+np.float32,0x3ef382e0,0x3f046d4d,2
+np.float32,0xbe351310,0xbe36ff7f,2
+np.float32,0xbf05c935,0xbf14751c,2
+np.float32,0xbf0e7c50,0xbf20bc24,2
+np.float32,0xbf69bc94,0xbfc5d1b8,2
+np.float32,0xbed41aca,0xbee1aa23,2
+np.float32,0x3f518c08,0x3f938162,2
+np.float32,0xbf3d7974,0xbf73661a,2
+np.float32,0x3f1951a6,0x3f3101c9,2
+np.float32,0xbeb3f436,0xbebbf787,2
+np.float32,0xbf77a190,0xc0031d43,2
+np.float32,0x3eb5b3cc,0x3ebdf6e7,2
+np.float32,0xbed534b4,0xbee2fed2,2
+np.float32,0xbe53e1b8,0xbe56fc56,2
+np.float32,0x3f679e20,0x3fbfb91c,2
+np.float32,0xff7fffff,0xffc00000,2
+np.float32,0xbf7b9bcb,0xc0180073,2
+np.float32,0xbf5635e8,0xbf9aea15,2
+np.float32,0xbe5a3318,0xbe5d9856,2
+np.float32,0xbe003284,0xbe00df9a,2
+np.float32,0x3eb119a4,0x3eb8b7d6,2
+np.float32,0xbf3bccf8,0xbf6fbc84,2
+np.float32,0x3f36f600,0x3f658ea8,2
+np.float32,0x3f1ea834,0x3f397fc2,2
+np.float32,0xbe7cfb54,0xbe8129b3,2
+np.float32,0xbe9b3746,0xbea0406a,2
+np.float32,0x3edc0f90,0x3eeb586c,2
+np.float32,0x3e1842e8,0x3e19660c,2
+np.float32,0xbd8f10b0,0xbd8f4c70,2
+np.float32,0xbf064aca,0xbf1527a2,2
+np.float32,0x3e632e58,0x3e6705be,2
+np.float32,0xbef28ba4,0xbf03cdbb,2
+np.float32,0x3f27b21e,0x3f48bbaf,2
+np.float32,0xbe6f30d4,0xbe73b06e,2
+np.float32,0x3f3e6cb0,0x3f75834b,2
+np.float32,0xbf264aa5,0xbf4649f0,2
+np.float32,0xbf690775,0xbfc3b978,2
+np.float32,0xbf3e4a38,0xbf753632,2
+np.float64,0x3fe12bbe8c62577e,0x3fe32de8e5f961b0,1
+np.float64,0x3fc9b8909b337120,0x3fca1366da00efff,1
+np.float64,0x3feaee4245f5dc84,0x3ff3a011ea0432f3,1
+np.float64,0xbfe892c000f12580,0xbff03e5adaed6f0c,1
+np.float64,0xbf9be8de4837d1c0,0xbf9beaa367756bd1,1
+np.float64,0x3fe632e58fec65cc,0x3feb5ccc5114ca38,1
+np.float64,0x3fe78a0ef7ef141e,0x3fee1b4521d8eb6c,1
+np.float64,0x3feec27a65fd84f4,0x3fff643c8318e81e,1
+np.float64,0x3fbed6efce3dade0,0x3fbefd76cff00111,1
+np.float64,0xbfe3a05fab6740c0,0xbfe6db078aeeb0ca,1
+np.float64,0x3fdca11a56b94234,0x3fdece9e6eacff1b,1
+np.float64,0x3fe0fb15aae1f62c,0x3fe2e9e095ec2089,1
+np.float64,0x3fede12abf7bc256,0x3ffafd0ff4142807,1
+np.float64,0x3feb919edcf7233e,0x3ff4c9aa0bc2432f,1
+np.float64,0x3fd39633b5a72c68,0x3fd43c2e6d5f441c,1
+np.float64,0x3fd9efcbfeb3df98,0x3fdb83f03e58f91c,1
+np.float64,0x3fe2867a36650cf4,0x3fe525858c8ce72e,1
+np.float64,0x3fdacbb8f3b59770,0x3fdc8cd431b6e3ff,1
+np.float64,0x3fcc120503382408,0x3fcc88a8fa43e1c6,1
+np.float64,0xbfd99ff4eab33fea,0xbfdb24a20ae3687d,1
+np.float64,0xbfe8caf0157195e0,0xbff083b8dd0941d3,1
+np.float64,0x3fddc9bf92bb9380,0x3fe022aac0f761d5,1
+np.float64,0x3fe2dbb66e65b76c,0x3fe5a6e7caf3f1f2,1
+np.float64,0x3fe95f5c4a72beb8,0x3ff1444697e96138,1
+np.float64,0xbfc6b163d92d62c8,0xbfc6ef6e006658a1,1
+np.float64,0x3fdf1b2616be364c,0x3fe0fcbd2848c9e8,1
+np.float64,0xbfdca1ccf7b9439a,0xbfdecf7dc0eaa663,1
+np.float64,0x3fe078d6a260f1ae,0x3fe236a7c66ef6c2,1
+np.float64,0x3fdf471bb9be8e38,0x3fe11990ec74e704,1
+np.float64,0xbfe417626be82ec5,0xbfe79c9aa5ed2e2f,1
+np.float64,0xbfeb9cf5677739eb,0xbff4dfc24c012c90,1
+np.float64,0x3f8d9142b03b2280,0x3f8d91c9559d4779,1
+np.float64,0x3fb052c67220a590,0x3fb05873c90d1cd6,1
+np.float64,0x3fd742e2c7ae85c4,0x3fd860128947d15d,1
+np.float64,0x3fec2e2a2bf85c54,0x3ff60eb554bb8d71,1
+np.float64,0xbfeb2b8bc8f65718,0xbff40b734679497a,1
+np.float64,0x3fe25f8e0d64bf1c,0x3fe4eb381d077803,1
+np.float64,0x3fe56426256ac84c,0x3fe9dafbe79370f0,1
+np.float64,0x3feecc1e5d7d983c,0x3fffa49bedc7aa25,1
+np.float64,0xbfc88ce94b3119d4,0xbfc8dbba0fdee2d2,1
+np.float64,0xbfabcf51ac379ea0,0xbfabd6552aa63da3,1
+np.float64,0xbfccc8b849399170,0xbfcd48d6ff057a4d,1
+np.float64,0x3fd2f831e8a5f064,0x3fd38e67b0dda905,1
+np.float64,0x3fcafdcd6135fb98,0x3fcb670ae2ef4d36,1
+np.float64,0x3feda6042efb4c08,0x3ffa219442ac4ea5,1
+np.float64,0x3fed382b157a7056,0x3ff8bc01bc6d10bc,1
+np.float64,0x3fed858a50fb0b14,0x3ff9b1c05cb6cc0f,1
+np.float64,0x3fcc3960653872c0,0x3fccb2045373a3d1,1
+np.float64,0xbfec5177e478a2f0,0xbff65eb4557d94eb,1
+np.float64,0x3feafe0d5e75fc1a,0x3ff3bb4a260a0dcb,1
+np.float64,0x3fe08bc87ee11790,0x3fe25078aac99d31,1
+np.float64,0xffefffffffffffff,0xfff8000000000000,1
+np.float64,0x3f79985ce0333100,0x3f799872b591d1cb,1
+np.float64,0xbfd4001cf9a8003a,0xbfd4b14b9035b94f,1
+np.float64,0x3fe54a17e6ea9430,0x3fe9ac0f18682343,1
+np.float64,0xbfb4e07fea29c100,0xbfb4ec6520dd0689,1
+np.float64,0xbfed2b6659fa56cd,0xbff895ed57dc1450,1
+np.float64,0xbfe81fc8b5f03f92,0xbfef6b95e72a7a7c,1
+np.float64,0xbfe6aced16ed59da,0xbfec4ce131ee3704,1
+np.float64,0xbfe599f30ceb33e6,0xbfea3d07c1cd78e2,1
+np.float64,0xbfe0ff278b61fe4f,0xbfe2ef8b5efa89ed,1
+np.float64,0xbfe3e9406467d281,0xbfe750e43e841736,1
+np.float64,0x3fcc6b52cf38d6a8,0x3fcce688f4fb2cf1,1
+np.float64,0xbfc890e8133121d0,0xbfc8dfdfee72d258,1
+np.float64,0x3fe46e81dbe8dd04,0x3fe82e09783811a8,1
+np.float64,0x3fd94455e5b288ac,0x3fdab7cef2de0b1f,1
+np.float64,0xbfe82151fff042a4,0xbfef6f254c9696ca,1
+np.float64,0x3fcee1ac1d3dc358,0x3fcf80a6ed07070a,1
+np.float64,0x3fcce8f90939d1f0,0x3fcd6ad18d34f8b5,1
+np.float64,0x3fd6afe56fad5fcc,0x3fd7b7567526b1fb,1
+np.float64,0x3fb1a77092234ee0,0x3fb1ae9fe0d176fc,1
+np.float64,0xbfeb758b0d76eb16,0xbff493d105652edc,1
+np.float64,0xbfb857c24e30af88,0xbfb86aa4da3be53f,1
+np.float64,0x3fe89064eff120ca,0x3ff03b7c5b3339a8,1
+np.float64,0xbfc1bd2fef237a60,0xbfc1da99893473ed,1
+np.float64,0xbfe5ad6e2eeb5adc,0xbfea60ed181b5c05,1
+np.float64,0x3fd5a66358ab4cc8,0x3fd6899e640aeb1f,1
+np.float64,0xbfe198e832e331d0,0xbfe3c8c9496d0de5,1
+np.float64,0xbfdaa5c0d7b54b82,0xbfdc5ed7d3c5ce49,1
+np.float64,0x3fcceccb6939d998,0x3fcd6ed88c2dd3a5,1
+np.float64,0xbfe44413eae88828,0xbfe7e6cd32b34046,1
+np.float64,0xbfc7cbeccf2f97d8,0xbfc8139a2626edae,1
+np.float64,0x3fbf31e4fa3e63d0,0x3fbf59c6e863255e,1
+np.float64,0x3fdf03fa05be07f4,0x3fe0ed953f7989ad,1
+np.float64,0x3fe7f4eaceefe9d6,0x3fef092ca7e2ac39,1
+np.float64,0xbfc084e9d92109d4,0xbfc09ca10fd6aaea,1
+np.float64,0xbf88cfbf70319f80,0xbf88d00effa6d897,1
+np.float64,0x7ff4000000000000,0x7ffc000000000000,1
+np.float64,0xbfa0176e9c202ee0,0xbfa018ca0a6ceef3,1
+np.float64,0xbfd88d0815b11a10,0xbfd9dfc6c6bcbe4e,1
+np.float64,0x3fe89f7730713eee,0x3ff04de52fb536f3,1
+np.float64,0xbfedc9707bfb92e1,0xbffaa25fcf9dd6da,1
+np.float64,0x3fe936d1a6726da4,0x3ff10e40c2d94bc9,1
+np.float64,0x3fdb64aec7b6c95c,0x3fdd473177317b3f,1
+np.float64,0xbfee4f9aaefc9f35,0xbffcdd212667003c,1
+np.float64,0x3fe3730067e6e600,0x3fe692b0a0babf5f,1
+np.float64,0xbfc257e58924afcc,0xbfc27871f8c218d7,1
+np.float64,0x3fe62db12dec5b62,0x3feb52c61b97d9f6,1
+np.float64,0xbfe3ff491367fe92,0xbfe774f1b3a96fd6,1
+np.float64,0x3fea43255274864a,0x3ff28b0c4b7b8d21,1
+np.float64,0xbfea37923c746f24,0xbff27962159f2072,1
+np.float64,0x3fcd0ac3c73a1588,0x3fcd8e6f8de41755,1
+np.float64,0xbfdccafde6b995fc,0xbfdf030fea8a0630,1
+np.float64,0x3fdba35268b746a4,0x3fdd94094f6f50c1,1
+np.float64,0x3fc68ea1d92d1d40,0x3fc6cb8d07cbb0e4,1
+np.float64,0xbfb88b1f6e311640,0xbfb89e7af4e58778,1
+np.float64,0xbfedc7cadffb8f96,0xbffa9c3766227956,1
+np.float64,0x3fe7928d3eef251a,0x3fee2dcf2ac7961b,1
+np.float64,0xbfeff42ede7fe85e,0xc00cef6b0f1e8323,1
+np.float64,0xbfebf07fa477e0ff,0xbff5893f99e15236,1
+np.float64,0x3fe3002ab9660056,0x3fe5defba550c583,1
+np.float64,0x3feb8f4307f71e86,0x3ff4c517ec8d6de9,1
+np.float64,0x3fd3c16f49a782e0,0x3fd46becaacf74da,1
+np.float64,0x3fc7613df12ec278,0x3fc7a52b2a3c3368,1
+np.float64,0xbfe33af560e675eb,0xbfe63a6528ff1587,1
+np.float64,0xbfde86495abd0c92,0xbfe09bd7ba05b461,1
+np.float64,0x3fe1e7fb4ee3cff6,0x3fe43b04311c0ab6,1
+np.float64,0xbfc528b6bd2a516c,0xbfc55ae0a0c184c8,1
+np.float64,0xbfd81025beb0204c,0xbfd94dd72d804613,1
+np.float64,0x10000000000000,0x10000000000000,1
+np.float64,0x3fc1151c47222a38,0x3fc12f5aad80a6bf,1
+np.float64,0x3feafa136775f426,0x3ff3b46854da0b3a,1
+np.float64,0x3fed2da0747a5b40,0x3ff89c85b658459e,1
+np.float64,0x3fda2a4b51b45498,0x3fdbca0d908ddbbd,1
+np.float64,0xbfd04cf518a099ea,0xbfd0aae0033b9e4c,1
+np.float64,0xbfb9065586320ca8,0xbfb91adb7e31f322,1
+np.float64,0xbfd830b428b06168,0xbfd973ca3c484d8d,1
+np.float64,0x3fc952f7ed32a5f0,0x3fc9a9994561fc1a,1
+np.float64,0xbfeb06c83c760d90,0xbff3ca77b326df20,1
+np.float64,0xbfeb1c98ac763931,0xbff3f0d0900f6149,1
+np.float64,0x3fdf061dbebe0c3c,0x3fe0eefb32b48d17,1
+np.float64,0xbf9acbaf28359760,0xbf9acd4024be9fec,1
+np.float64,0x3fec0adde2f815bc,0x3ff5c1628423794d,1
+np.float64,0xbfc4bc750d2978ec,0xbfc4eba43f590b94,1
+np.float64,0x3fdbe47878b7c8f0,0x3fdde44a2b500d73,1
+np.float64,0x3fe160d18162c1a4,0x3fe378cff08f18f0,1
+np.float64,0x3fc3b58dfd276b18,0x3fc3de01d3802de9,1
+np.float64,0x3fa860343430c060,0x3fa864ecd07ec962,1
+np.float64,0x3fcaebfb4b35d7f8,0x3fcb546512d1b4c7,1
+np.float64,0x3fe3fda558e7fb4a,0x3fe772412e5776de,1
+np.float64,0xbfe8169f2c702d3e,0xbfef5666c9a10f6d,1
+np.float64,0x3feda78e9efb4f1e,0x3ffa270712ded769,1
+np.float64,0xbfda483161b49062,0xbfdbedfbf2e850ba,1
+np.float64,0x3fd7407cf3ae80f8,0x3fd85d4f52622743,1
+np.float64,0xbfd63de4d4ac7bca,0xbfd73550a33e3c32,1
+np.float64,0xbfd9c30b90b38618,0xbfdb4e7695c856f3,1
+np.float64,0x3fcd70c00b3ae180,0x3fcdfa0969e0a119,1
+np.float64,0x3feb4f127f769e24,0x3ff44bf42514e0f4,1
+np.float64,0xbfec1db44af83b69,0xbff5ea54aed1f8e9,1
+np.float64,0x3fd68ff051ad1fe0,0x3fd792d0ed6d6122,1
+np.float64,0x3fe0a048a5614092,0x3fe26c80a826b2a2,1
+np.float64,0x3fd59f3742ab3e70,0x3fd6818563fcaf80,1
+np.float64,0x3fca26ecf9344dd8,0x3fca867ceb5d7ba8,1
+np.float64,0x3fdc1d547ab83aa8,0x3fde2a9cea866484,1
+np.float64,0xbfc78df6312f1bec,0xbfc7d3719b698a39,1
+np.float64,0x3fe754e72b6ea9ce,0x3feda89ea844a2e5,1
+np.float64,0x3fe740c1a4ee8184,0x3fed7dc56ec0c425,1
+np.float64,0x3fe77566a9eeeace,0x3fedee6f408df6de,1
+np.float64,0xbfbbf5bf8e37eb80,0xbfbc126a223781b4,1
+np.float64,0xbfe0acb297615965,0xbfe27d86681ca2b5,1
+np.float64,0xbfc20a0487241408,0xbfc228f5f7d52ce8,1
+np.float64,0xfff0000000000000,0xfff8000000000000,1
+np.float64,0x3fef98a4dbff314a,0x40043cfb60bd46fa,1
+np.float64,0x3fd059102ca0b220,0x3fd0b7d2be6d7822,1
+np.float64,0x3fe89f18a1f13e32,0x3ff04d714bbbf400,1
+np.float64,0x3fd45b6275a8b6c4,0x3fd516a44a276a4b,1
+np.float64,0xbfe04463e86088c8,0xbfe1ef9dfc9f9a53,1
+np.float64,0xbfe086e279610dc5,0xbfe249c9c1040a13,1
+np.float64,0x3f89c9b110339380,0x3f89ca0a641454b5,1
+np.float64,0xbfb5f5b4322beb68,0xbfb6038dc3fd1516,1
+np.float64,0x3fe6eae76f6dd5ce,0x3feccabae04d5c14,1
+np.float64,0x3fa9ef6c9c33dee0,0x3fa9f51c9a8c8a2f,1
+np.float64,0xbfe171b45f62e368,0xbfe390ccc4c01bf6,1
+np.float64,0x3fb2999442253330,0x3fb2a1fc006804b5,1
+np.float64,0x3fd124bf04a24980,0x3fd1927abb92472d,1
+np.float64,0xbfe6e05938edc0b2,0xbfecb519ba78114f,1
+np.float64,0x3fed466ee6fa8cde,0x3ff8e75405b50490,1
+np.float64,0xbfb999aa92333358,0xbfb9afa4f19f80a2,1
+np.float64,0xbfe98969ed7312d4,0xbff17d887b0303e7,1
+np.float64,0x3fe782843e6f0508,0x3fee0adbeebe3486,1
+np.float64,0xbfe232fcc26465fa,0xbfe4a90a68d46040,1
+np.float64,0x3fd190a90fa32154,0x3fd206f56ffcdca2,1
+np.float64,0xbfc4f8b75929f170,0xbfc5298b2d4e7740,1
+np.float64,0xbfba3a63d63474c8,0xbfba520835c2fdc2,1
+np.float64,0xbfb7708eea2ee120,0xbfb781695ec17846,1
+np.float64,0x3fed9fb7a5fb3f70,0x3ffa0b717bcd1609,1
+np.float64,0xbfc1b158cd2362b0,0xbfc1ce87345f3473,1
+np.float64,0x3f963478082c6900,0x3f96355c3000953b,1
+np.float64,0x3fc5050e532a0a20,0x3fc536397f38f616,1
+np.float64,0x3fe239f9eee473f4,0x3fe4b360da3b2faa,1
+np.float64,0xbfd66bd80eacd7b0,0xbfd769a29fd784c0,1
+np.float64,0x3fc57cdad52af9b8,0x3fc5b16b937f5f72,1
+np.float64,0xbfd3c36a0aa786d4,0xbfd46e1cd0b4eddc,1
+np.float64,0x3feff433487fe866,0x400cf0ea1def3161,1
+np.float64,0xbfed5577807aaaef,0xbff915e8f6bfdf22,1
+np.float64,0xbfca0dd3eb341ba8,0xbfca6c4d11836cb6,1
+np.float64,0x7ff8000000000000,0x7ff8000000000000,1
+np.float64,0xbf974deaa82e9be0,0xbf974ef26a3130d1,1
+np.float64,0xbfe7f425e1efe84c,0xbfef076cb00d649d,1
+np.float64,0xbfe4413605e8826c,0xbfe7e20448b8a4b1,1
+np.float64,0xbfdfad202cbf5a40,0xbfe15cd9eb2be707,1
+np.float64,0xbfe43261ee6864c4,0xbfe7c952c951fe33,1
+np.float64,0xbfec141225782824,0xbff5d54d33861d98,1
+np.float64,0x3fd0f47abaa1e8f4,0x3fd15e8691a7f1c2,1
+np.float64,0x3fd378f0baa6f1e0,0x3fd41bea4a599081,1
+np.float64,0xbfb52523462a4a48,0xbfb5317fa7f436e2,1
+np.float64,0x3fcb30797d3660f0,0x3fcb9c174ea401ff,1
+np.float64,0xbfd48480dea90902,0xbfd5446e02c8b329,1
+np.float64,0xbfee4ae3ab7c95c7,0xbffcc650340ba274,1
+np.float64,0xbfeab086d075610e,0xbff3387f4e83ae26,1
+np.float64,0x3fa17cddf422f9c0,0x3fa17e9bf1b25736,1
+np.float64,0xbfe3064536e60c8a,0xbfe5e86aa5244319,1
+np.float64,0x3feb2882c5765106,0x3ff40604c7d97d44,1
+np.float64,0xbfa6923ff42d2480,0xbfa695ff57b2fc3f,1
+np.float64,0xbfa8bdbdcc317b80,0xbfa8c2ada0d94aa7,1
+np.float64,0x3fe7f16b8e6fe2d8,0x3fef013948c391a6,1
+np.float64,0x3fe4e7169f69ce2e,0x3fe8fceef835050a,1
+np.float64,0x3fed877638fb0eec,0x3ff9b83694127959,1
+np.float64,0xbfe0cc9ecf61993e,0xbfe2a978234cbde5,1
+np.float64,0xbfe977e79672efcf,0xbff16589ea494a38,1
+np.float64,0xbfe240130ae48026,0xbfe4bc69113e0d7f,1
+np.float64,0x3feb1e9b70763d36,0x3ff3f4615938a491,1
+np.float64,0xbfdf197dfcbe32fc,0xbfe0fba78a0fc816,1
+np.float64,0xbfee0f8543fc1f0a,0xbffbb9d9a4ee5387,1
+np.float64,0x3fe88d2191f11a44,0x3ff037843b5b6313,1
+np.float64,0xbfd11bb850a23770,0xbfd188c1cef40007,1
+np.float64,0xbfa1b36e9c2366e0,0xbfa1b53d1d8a8bc4,1
+np.float64,0xbfea2d70d9f45ae2,0xbff26a0629e36b3e,1
+np.float64,0xbfd9188703b2310e,0xbfda83f9ddc18348,1
+np.float64,0xbfee194894fc3291,0xbffbe3c83b61e7cb,1
+np.float64,0xbfe093b4a9e1276a,0xbfe25b4ad6f8f83d,1
+np.float64,0x3fea031489f4062a,0x3ff22accc000082e,1
+np.float64,0xbfc6c0827b2d8104,0xbfc6ff0a94326381,1
+np.float64,0x3fef5cd340feb9a6,0x4002659c5a1b34af,1
+np.float64,0x8010000000000000,0x8010000000000000,1
+np.float64,0x3fd97cb533b2f96c,0x3fdafab28aaae8e3,1
+np.float64,0x3fe2123334642466,0x3fe478bd83a8ce02,1
+np.float64,0xbfd9a69637b34d2c,0xbfdb2c87c6b6fb8c,1
+np.float64,0x3fc58def7f2b1be0,0x3fc5c2ff724a9f61,1
+np.float64,0xbfedd5da1f7babb4,0xbffad15949b7fb22,1
+np.float64,0x3fe90e92a0721d26,0x3ff0d9b64323efb8,1
+np.float64,0x3fd34b9442a69728,0x3fd3e9f8fe80654e,1
+np.float64,0xbfc5f509ab2bea14,0xbfc62d2ad325c59f,1
+np.float64,0x3feb245634f648ac,0x3ff3fe91a46acbe1,1
+np.float64,0x3fd101e539a203cc,0x3fd16cf52ae6d203,1
+np.float64,0xbfc51e9ba72a3d38,0xbfc5507d00521ba3,1
+np.float64,0x3fe5fe1683ebfc2e,0x3feaf7dd8b1f92b0,1
+np.float64,0x3fc362e59126c5c8,0x3fc389601814170b,1
+np.float64,0x3fea34dbd77469b8,0x3ff27542eb721e7e,1
+np.float64,0xbfc13ed241227da4,0xbfc159d42c0a35a9,1
+np.float64,0xbfe6df118cedbe23,0xbfecb27bb5d3f784,1
+np.float64,0x3fd92895f6b2512c,0x3fda96f5f94b625e,1
+np.float64,0xbfe7ea3aa76fd476,0xbfeef0e93939086e,1
+np.float64,0xbfc855498330aa94,0xbfc8a1ff690c9533,1
+np.float64,0x3fd9f27b3ab3e4f8,0x3fdb8726979afc3b,1
+np.float64,0x3fc65d52232cbaa8,0x3fc698ac4367afba,1
+np.float64,0x3fd1271dd0a24e3c,0x3fd195087649d54e,1
+np.float64,0xbfe983445df30689,0xbff175158b773b90,1
+np.float64,0xbfe0d9b13261b362,0xbfe2bb8908fc9e6e,1
+np.float64,0x3fd7671f2aaece40,0x3fd889dccbf21629,1
+np.float64,0x3fe748aebfee915e,0x3fed8e970d94c17d,1
+np.float64,0x3fea756e4e74eadc,0x3ff2d947ef3a54f4,1
+np.float64,0x3fde22311cbc4464,0x3fe05b4ce9df1fdd,1
+np.float64,0x3fe2b55ec1e56abe,0x3fe56c6849e3985a,1
+np.float64,0x3fed7b47437af68e,0x3ff98f8e82de99a0,1
+np.float64,0x3fec8184b179030a,0x3ff6d03aaf0135ba,1
+np.float64,0x3fc9ea825533d508,0x3fca4776d7190e71,1
+np.float64,0xbfe8ddd58b71bbab,0xbff09b770ed7bc9a,1
+np.float64,0xbfed41741bfa82e8,0xbff8d81c2a9fc615,1
+np.float64,0x3fe0a73888e14e72,0x3fe27602ad9a3726,1
+np.float64,0xbfe9d0a565f3a14b,0xbff1e1897b628f66,1
+np.float64,0x3fda12b381b42568,0x3fdbadbec22fbd5a,1
+np.float64,0x3fef0081187e0102,0x4000949eff8313c2,1
+np.float64,0x3fef6942b67ed286,0x4002b7913eb1ee76,1
+np.float64,0x3fda10f882b421f0,0x3fdbababa2d6659d,1
+np.float64,0x3fe5828971eb0512,0x3fea122b5088315a,1
+np.float64,0x3fe9d4b53ff3a96a,0x3ff1e75c148bda01,1
+np.float64,0x3fe95d246bf2ba48,0x3ff1414a61a136ec,1
+np.float64,0x3f9e575eb83caec0,0x3f9e59a4f17179e3,1
+np.float64,0x3fdb0a20b5b61440,0x3fdcd8a56178a17f,1
+np.float64,0xbfdef425e3bde84c,0xbfe0e33eeacf3861,1
+np.float64,0x3fd6afcf6bad5fa0,0x3fd7b73d47288347,1
+np.float64,0x3fe89256367124ac,0x3ff03dd9f36ce40e,1
+np.float64,0x3fe7e560fcefcac2,0x3feee5ef8688b60b,1
+np.float64,0x3fedef55e1fbdeac,0x3ffb350ee1df986b,1
+np.float64,0xbfe44b926de89725,0xbfe7f3539910c41f,1
+np.float64,0x3fc58310f32b0620,0x3fc5b7cfdba15bd0,1
+np.float64,0x3f736d256026da00,0x3f736d2eebe91a90,1
+np.float64,0x3feb012d2076025a,0x3ff3c0b5d21a7259,1
+np.float64,0xbfe466a6c468cd4e,0xbfe820c9c197601f,1
+np.float64,0x3fe1aba8aa635752,0x3fe3e3b73920f64c,1
+np.float64,0x3fe5597c336ab2f8,0x3fe9c7bc4b765b15,1
+np.float64,0x3fe1004ac5e20096,0x3fe2f12116e99821,1
+np.float64,0x3fecbc67477978ce,0x3ff76377434dbdad,1
+np.float64,0x3fe0e64515e1cc8a,0x3fe2ccf5447c1579,1
+np.float64,0x3febcfa874f79f50,0x3ff54528f0822144,1
+np.float64,0x3fc36915ed26d228,0x3fc38fb5b28d3f72,1
+np.float64,0xbfe01213e5e02428,0xbfe1ac0e1e7418f1,1
+np.float64,0x3fcd97875b3b2f10,0x3fce22fe3fc98702,1
+np.float64,0xbfe30383c5e60708,0xbfe5e427e62cc957,1
+np.float64,0xbfde339bf9bc6738,0xbfe0667f337924f5,1
+np.float64,0xbfda7c1c49b4f838,0xbfdc2c8801ce654a,1
+np.float64,0x3fb6b3489e2d6690,0x3fb6c29650387b92,1
+np.float64,0xbfe1fd4d76e3fa9b,0xbfe45a1f60077678,1
+np.float64,0xbf67c5e0402f8c00,0xbf67c5e49fce115a,1
+np.float64,0xbfd4f9aa2da9f354,0xbfd5c759603d0b9b,1
+np.float64,0x3fe83c227bf07844,0x3fefada9f1bd7fa9,1
+np.float64,0xbf97f717982fee20,0xbf97f836701a8cd5,1
+np.float64,0x3fe9688a2472d114,0x3ff150aa575e7d51,1
+np.float64,0xbfc5a9779d2b52f0,0xbfc5df56509c48b1,1
+np.float64,0xbfe958d5f472b1ac,0xbff13b813f9bee20,1
+np.float64,0xbfd7b3b944af6772,0xbfd8e276c2b2920f,1
+np.float64,0x3fed10198e7a2034,0x3ff8469c817572f0,1
+np.float64,0xbfeeecc4517dd989,0xc000472b1f858be3,1
+np.float64,0xbfdbcce47eb799c8,0xbfddc734aa67812b,1
+np.float64,0xbfd013ee24a027dc,0xbfd06df3089384ca,1
+np.float64,0xbfd215f2bfa42be6,0xbfd29774ffe26a74,1
+np.float64,0x3fdfd0ae67bfa15c,0x3fe1746e3a963a9f,1
+np.float64,0xbfc84aa10b309544,0xbfc896f0d25b723a,1
+np.float64,0xbfcd0c627d3a18c4,0xbfcd9024c73747a9,1
+np.float64,0x3fd87df6dbb0fbec,0x3fd9ce1dde757f31,1
+np.float64,0xbfdad85e05b5b0bc,0xbfdc9c2addb6ce47,1
+np.float64,0xbfee4f8977fc9f13,0xbffcdccd68e514b3,1
+np.float64,0x3fa5c290542b8520,0x3fa5c5ebdf09ca70,1
+np.float64,0xbfd7e401d2afc804,0xbfd91a7e4eb5a026,1
+np.float64,0xbfe33ff73b667fee,0xbfe6423cc6eb07d7,1
+np.float64,0x3fdfb7d6c4bf6fac,0x3fe163f2e8175177,1
+np.float64,0xbfd515d69eaa2bae,0xbfd5e6eedd6a1598,1
+np.float64,0x3fb322232e264440,0x3fb32b49d91c3cbe,1
+np.float64,0xbfe20ac39e641587,0xbfe46dd4b3803f19,1
+np.float64,0x3fe282dc18e505b8,0x3fe520152120c297,1
+np.float64,0xbfc905a4cd320b48,0xbfc95929b74865fb,1
+np.float64,0x3fe0ae3b83615c78,0x3fe27fa1dafc825b,1
+np.float64,0xbfc1bfed0f237fdc,0xbfc1dd6466225cdf,1
+np.float64,0xbfeca4d47d7949a9,0xbff72761a34fb682,1
+np.float64,0xbfe8cf8c48f19f18,0xbff0897ebc003626,1
+np.float64,0xbfe1aaf0a36355e2,0xbfe3e2ae7b17a286,1
+np.float64,0x3fe2ca442e659488,0x3fe58c3a2fb4f14a,1
+np.float64,0xbfda3c2deeb4785c,0xbfdbdf89fe96a243,1
+np.float64,0xbfdc12bfecb82580,0xbfde1d81dea3c221,1
+np.float64,0xbfe2d6d877e5adb1,0xbfe59f73e22c1fc7,1
+np.float64,0x3fe5f930636bf260,0x3feaee96a462e4de,1
+np.float64,0x3fcf3c0ea53e7820,0x3fcfe0b0f92be7e9,1
+np.float64,0xbfa5bb90f42b7720,0xbfa5bee9424004cc,1
+np.float64,0xbfe2fb3a3265f674,0xbfe5d75b988bb279,1
+np.float64,0x3fcaec7aab35d8f8,0x3fcb54ea582fff6f,1
+np.float64,0xbfd8d3228db1a646,0xbfda322297747fbc,1
+np.float64,0x3fedd2e0ad7ba5c2,0x3ffac6002b65c424,1
+np.float64,0xbfd9edeca2b3dbda,0xbfdb81b2b7785e33,1
+np.float64,0xbfef5febb17ebfd7,0xc002796b15950960,1
+np.float64,0x3fde22f787bc45f0,0x3fe05bcc624b9ba2,1
+np.float64,0xbfc716a4ab2e2d48,0xbfc758073839dd44,1
+np.float64,0xbf9bed852837db00,0xbf9bef4b2a3f3bdc,1
+np.float64,0x3fef8f88507f1f10,0x4003e5e566444571,1
+np.float64,0xbfdc1bbed6b8377e,0xbfde28a64e174e60,1
+np.float64,0x3fe02d30eae05a62,0x3fe1d064ec027cd3,1
+np.float64,0x3fd9dbb500b3b76c,0x3fdb6bea40162279,1
+np.float64,0x3fe353ff1d66a7fe,0x3fe661b3358c925e,1
+np.float64,0x3fac3ebfb4387d80,0x3fac4618effff2b0,1
+np.float64,0x3fe63cf0ba6c79e2,0x3feb7030cff5f434,1
+np.float64,0x3fd0e915f8a1d22c,0x3fd152464597b510,1
+np.float64,0xbfd36987cda6d310,0xbfd40af049d7621e,1
+np.float64,0xbfdc5b4dc7b8b69c,0xbfde7790a35da2bc,1
+np.float64,0x3feee7ff4a7dcffe,0x40003545989e07c7,1
+np.float64,0xbfeb2c8308765906,0xbff40d2e6469249e,1
+np.float64,0x3fe535a894ea6b52,0x3fe98781648550d0,1
+np.float64,0xbfef168eb9fe2d1d,0xc000f274ed3cd312,1
+np.float64,0x3fc3e2d98927c5b0,0x3fc40c6991b8900c,1
+np.float64,0xbfcd8fe3e73b1fc8,0xbfce1aec7f9b7f7d,1
+np.float64,0xbfd55d8c3aaabb18,0xbfd6378132ee4892,1
+np.float64,0xbfe424a66168494d,0xbfe7b289d72c98b3,1
+np.float64,0x3fd81af13eb035e4,0x3fd95a6a9696ab45,1
+np.float64,0xbfe3016722e602ce,0xbfe5e0e46db228cd,1
+np.float64,0x3fe9a20beff34418,0x3ff19faca17fc468,1
+np.float64,0xbfe2124bc7e42498,0xbfe478e19927e723,1
+np.float64,0x3fd96f8622b2df0c,0x3fdaeb08da6b08ae,1
+np.float64,0x3fecd6796579acf2,0x3ff7a7d02159e181,1
+np.float64,0x3fe60015df6c002c,0x3feafba6f2682a61,1
+np.float64,0x3fc7181cf72e3038,0x3fc7598c2cc3c3b4,1
+np.float64,0xbfce6e2e0b3cdc5c,0xbfcf0621b3e37115,1
+np.float64,0xbfe52a829e6a5505,0xbfe973a785980af9,1
+np.float64,0x3fed4bbac37a9776,0x3ff8f7a0e68a2bbe,1
+np.float64,0x3fabdfaacc37bf60,0x3fabe6bab42bd246,1
+np.float64,0xbfcd9598cb3b2b30,0xbfce20f3c4c2c261,1
+np.float64,0x3fd717d859ae2fb0,0x3fd82e88eca09ab1,1
+np.float64,0x3fe28ccb18e51996,0x3fe52f071d2694fd,1
+np.float64,0xbfe43f064ae87e0c,0xbfe7de5eab36b5b9,1
+np.float64,0x7fefffffffffffff,0xfff8000000000000,1
+np.float64,0xbfb39b045a273608,0xbfb3a4dd3395fdd5,1
+np.float64,0xbfb3358bae266b18,0xbfb33ece5e95970a,1
+np.float64,0xbfeeafb6717d5f6d,0xbffeec3f9695b575,1
+np.float64,0xbfe7a321afef4644,0xbfee522dd80f41f4,1
+np.float64,0x3fe3a17e5be742fc,0x3fe6dcd32af51e92,1
+np.float64,0xbfc61694bd2c2d28,0xbfc64fbbd835f6e7,1
+np.float64,0xbfd795906faf2b20,0xbfd8bf89b370655c,1
+np.float64,0xbfe4b39b59e96736,0xbfe8a3c5c645b6e3,1
+np.float64,0x3fd310af3ba62160,0x3fd3a9442e825e1c,1
+np.float64,0xbfd45198a6a8a332,0xbfd50bc10311a0a3,1
+np.float64,0x3fd0017eaaa002fc,0x3fd05a472a837999,1
+np.float64,0xbfea974d98752e9b,0xbff30f67f1835183,1
+np.float64,0xbf978f60582f1ec0,0xbf979070e1c2b59d,1
+np.float64,0x3fe1c715d4e38e2c,0x3fe40b479e1241a2,1
+np.float64,0xbfccb965cd3972cc,0xbfcd38b40c4a352d,1
+np.float64,0xbfd9897048b312e0,0xbfdb09d55624c2a3,1
+np.float64,0x3fe7f5de4befebbc,0x3fef0b56be259f9c,1
+np.float64,0x3fcc6c6d4338d8d8,0x3fcce7b20ed68a78,1
+np.float64,0xbfe63884046c7108,0xbfeb67a3b945c3ee,1
+np.float64,0xbfce64e2ad3cc9c4,0xbfcefc47fae2e81f,1
+np.float64,0x3fefeb57b27fd6b0,0x400ab2eac6321cfb,1
+np.float64,0x3fe679627e6cf2c4,0x3febe6451b6ee0c4,1
+np.float64,0x3fc5f710172bee20,0x3fc62f40f85cb040,1
+np.float64,0x3fc34975e52692e8,0x3fc36f58588c7fa2,1
+np.float64,0x3fe8a3784cf146f0,0x3ff052ced9bb9406,1
+np.float64,0x3fd11a607ca234c0,0x3fd1874f876233fe,1
+np.float64,0x3fb2d653f625aca0,0x3fb2df0f4c9633f3,1
+np.float64,0x3fe555f39eeaabe8,0x3fe9c15ee962a28c,1
+np.float64,0xbfea297e3bf452fc,0xbff264107117f709,1
+np.float64,0x3fe1581cdde2b03a,0x3fe36c79acedf99c,1
+np.float64,0x3fd4567063a8ace0,0x3fd51123dbd9106f,1
+np.float64,0x3fa3883aec271080,0x3fa38aa86ec71218,1
+np.float64,0x3fe40e5d7de81cba,0x3fe78dbb9b568850,1
+np.float64,0xbfe9a2f7347345ee,0xbff1a0f4faa05041,1
+np.float64,0x3f9eef03a83dde00,0x3f9ef16caa0c1478,1
+np.float64,0xbfcb4641d1368c84,0xbfcbb2e7ff8c266d,1
+np.float64,0xbfa8403b2c308070,0xbfa844e148b735b7,1
+np.float64,0xbfe1875cd6e30eba,0xbfe3afadc08369f5,1
+np.float64,0xbfdd3c3d26ba787a,0xbfdf919b3e296766,1
+np.float64,0x3fcd6c4c853ad898,0x3fcdf55647b518b8,1
+np.float64,0xbfe360a173e6c143,0xbfe6759eb3a08cf2,1
+np.float64,0x3fe5a13147eb4262,0x3fea4a5a060f5adb,1
+np.float64,0x3feb3cdd7af679ba,0x3ff42aae0cf61234,1
+np.float64,0x3fe5205128ea40a2,0x3fe9618f3d0c54af,1
+np.float64,0x3fce35343f3c6a68,0x3fcec9c4e612b050,1
+np.float64,0xbfc345724d268ae4,0xbfc36b3ce6338e6a,1
+np.float64,0x3fedc4fc0e7b89f8,0x3ffa91c1d775c1f7,1
+np.float64,0x3fe41fbf21683f7e,0x3fe7aa6c174a0e65,1
+np.float64,0xbfc7a1a5d32f434c,0xbfc7e7d27a4c5241,1
+np.float64,0x3fd3e33eaca7c67c,0x3fd4915264441e2f,1
+np.float64,0x3feb3f02f6f67e06,0x3ff42e942249e596,1
+np.float64,0x3fdb75fcb0b6ebf8,0x3fdd5c63f98b6275,1
+np.float64,0x3fd6476603ac8ecc,0x3fd74020b164cf38,1
+np.float64,0x3fed535372faa6a6,0x3ff90f3791821841,1
+np.float64,0x3fe8648ead70c91e,0x3ff006a62befd7ed,1
+np.float64,0x3fd0f90760a1f210,0x3fd1636b39bb1525,1
+np.float64,0xbfca052443340a48,0xbfca633d6e777ae0,1
+np.float64,0xbfa6a5e3342d4bc0,0xbfa6a9ac6a488f5f,1
+np.float64,0x3fd5598038aab300,0x3fd632f35c0c3d52,1
+np.float64,0xbfdf66218fbecc44,0xbfe12df83b19f300,1
+np.float64,0x3fe78e15b56f1c2c,0x3fee240d12489cd1,1
+np.float64,0x3fe3d6a7b3e7ad50,0x3fe7329dcf7401e2,1
+np.float64,0xbfddb8e97bbb71d2,0xbfe017ed6d55a673,1
+np.float64,0xbfd57afd55aaf5fa,0xbfd658a9607c3370,1
+np.float64,0xbfdba4c9abb74994,0xbfdd95d69e5e8814,1
+np.float64,0xbfe71d8090ee3b01,0xbfed3390be6d2eef,1
+np.float64,0xbfc738ac0f2e7158,0xbfc77b3553b7c026,1
+np.float64,0x3f873656302e6c80,0x3f873697556ae011,1
+np.float64,0x3fe559491d6ab292,0x3fe9c7603b12c608,1
+np.float64,0xbfe262776864c4ef,0xbfe4ef905dda8599,1
+np.float64,0x3fe59d8917eb3b12,0x3fea439f44b7573f,1
+np.float64,0xbfd4b5afb5a96b60,0xbfd57b4e3df4dbc8,1
+np.float64,0x3fe81158447022b0,0x3fef4a3cea3eb6a9,1
+np.float64,0xbfeb023441f60468,0xbff3c27f0fc1a4dc,1
+np.float64,0x3fefb212eaff6426,0x40055fc6d949cf44,1
+np.float64,0xbfe1300ac1e26016,0xbfe333f297a1260e,1
+np.float64,0xbfeae0a2f575c146,0xbff388d58c380b8c,1
+np.float64,0xbfeddd8e55fbbb1d,0xbffaef045b2e21d9,1
+np.float64,0x3fec7c6c1d78f8d8,0x3ff6c3ebb019a8e5,1
+np.float64,0xbfe27e071f64fc0e,0xbfe518d2ff630f33,1
+np.float64,0x8000000000000001,0x8000000000000001,1
+np.float64,0x3fc5872abf2b0e58,0x3fc5bc083105db76,1
+np.float64,0x3fe65114baeca22a,0x3feb9745b82ef15a,1
+np.float64,0xbfc783abe52f0758,0xbfc7c8cb23f93e79,1
+np.float64,0x3fe4b7a5dd696f4c,0x3fe8aab9d492f0ca,1
+np.float64,0xbf91a8e8a82351e0,0xbf91a95b6ae806f1,1
+np.float64,0xbfee482eb77c905d,0xbffcb952830e715a,1
+np.float64,0x3fba0eee2a341de0,0x3fba261d495e3a1b,1
+np.float64,0xbfeb8876ae7710ed,0xbff4b7f7f4343506,1
+np.float64,0xbfe4d29e46e9a53c,0xbfe8d9547a601ba7,1
+np.float64,0xbfe12413b8e24828,0xbfe3232656541d10,1
+np.float64,0x3fc0bd8f61217b20,0x3fc0d63f937f0aa4,1
+np.float64,0xbfd3debafda7bd76,0xbfd48c534e5329e4,1
+np.float64,0x3fc0f92de921f258,0x3fc112eb7d47349b,1
+np.float64,0xbfe576b95f6aed72,0xbfe9fca859239b3c,1
+np.float64,0x3fd10e520da21ca4,0x3fd17a546e4152f7,1
+np.float64,0x3fcef917eb3df230,0x3fcf998677a8fa8f,1
+np.float64,0x3fdfcf863abf9f0c,0x3fe173a98af1cb13,1
+np.float64,0x3fc28c4b4f251898,0x3fc2adf43792e917,1
+np.float64,0x3fceb837ad3d7070,0x3fcf54a63b7d8c5c,1
+np.float64,0x3fc0140a05202818,0x3fc029e4f75330cb,1
+np.float64,0xbfd76c3362aed866,0xbfd88fb9e790b4e8,1
+np.float64,0xbfe475300868ea60,0xbfe8395334623e1f,1
+np.float64,0x3fea70b9b4f4e174,0x3ff2d1dad92173ba,1
+np.float64,0xbfe2edbd4965db7a,0xbfe5c29449a9365d,1
+np.float64,0xbfddf86f66bbf0de,0xbfe0408439cada9b,1
+np.float64,0xbfb443cdfa288798,0xbfb44eae796ad3ea,1
+np.float64,0xbf96a8a0482d5140,0xbf96a992b6ef073b,1
+np.float64,0xbfd279db2fa4f3b6,0xbfd3043db6acbd9e,1
+np.float64,0x3fe5d99088ebb322,0x3feab30be14e1605,1
+np.float64,0xbfe1a917abe35230,0xbfe3e0063d0f5f63,1
+np.float64,0x3fc77272f52ee4e8,0x3fc7b6f8ab6f4591,1
+np.float64,0x3fd6b62146ad6c44,0x3fd7be77eef8390a,1
+np.float64,0xbfe39fd9bc673fb4,0xbfe6da30dc4eadde,1
+np.float64,0x3fe35545c066aa8c,0x3fe663b5873e4d4b,1
+np.float64,0xbfcbbeffb3377e00,0xbfcc317edf7f6992,1
+np.float64,0xbfe28a58366514b0,0xbfe52b5734579ffa,1
+np.float64,0xbfbf0c87023e1910,0xbfbf33d970a0dfa5,1
+np.float64,0xbfd31144cba6228a,0xbfd3a9e84f9168f9,1
+np.float64,0xbfe5c044056b8088,0xbfea83d607c1a88a,1
+np.float64,0x3fdaabdf18b557c0,0x3fdc663ee8eddc83,1
+np.float64,0xbfeb883006f71060,0xbff4b76feff615be,1
+np.float64,0xbfebaef41d775de8,0xbff5034111440754,1
+np.float64,0x3fd9b6eb3bb36dd8,0x3fdb3fff5071dacf,1
+np.float64,0x3fe4e33c45e9c678,0x3fe8f637779ddedf,1
+np.float64,0x3fe52213a06a4428,0x3fe964adeff5c14e,1
+np.float64,0x3fe799254cef324a,0x3fee3c3ecfd3cdc5,1
+np.float64,0x3fd0533f35a0a680,0x3fd0b19a003469d3,1
+np.float64,0x3fec7ef5c7f8fdec,0x3ff6ca0abe055048,1
+np.float64,0xbfd1b5da82a36bb6,0xbfd22f357acbee79,1
+np.float64,0xbfd8f9c652b1f38c,0xbfda5faacbce9cf9,1
+np.float64,0x3fc8fc818b31f900,0x3fc94fa9a6aa53c8,1
+np.float64,0x3fcf42cc613e8598,0x3fcfe7dc128f33f2,1
+np.float64,0x3fd393a995a72754,0x3fd4396127b19305,1
+np.float64,0x3fec7b7df9f8f6fc,0x3ff6c1ae51753ef2,1
+np.float64,0x3fc07f175b20fe30,0x3fc096b55c11568c,1
+np.float64,0xbf979170082f22e0,0xbf979280d9555f44,1
+np.float64,0xbfb9d110c633a220,0xbfb9e79ba19b3c4a,1
+np.float64,0x3fedcd7d417b9afa,0x3ffab19734e86d58,1
+np.float64,0xbfec116f27f822de,0xbff5cf9425cb415b,1
+np.float64,0xbfec4fa0bef89f42,0xbff65a771982c920,1
+np.float64,0x3f94d4452829a880,0x3f94d501789ad11c,1
+np.float64,0xbfefe5ede27fcbdc,0xc009c440d3c2a4ce,1
+np.float64,0xbfe7e5f7b5efcbf0,0xbfeee74449aee1db,1
+np.float64,0xbfeb71dc8976e3b9,0xbff48cd84ea54ed2,1
+np.float64,0xbfe4cdb65f699b6c,0xbfe8d0d3bce901ef,1
+np.float64,0x3fb78ef1ee2f1de0,0x3fb7a00e7d183c48,1
+np.float64,0x3fb681864a2d0310,0x3fb6906fe64b4cd7,1
+np.float64,0xbfd2ad3b31a55a76,0xbfd33c57b5985399,1
+np.float64,0x3fdcdaaa95b9b554,0x3fdf16b99628db1e,1
+np.float64,0x3fa4780b7428f020,0x3fa47ad6ce9b8081,1
+np.float64,0x3fc546b0ad2a8d60,0x3fc579b361b3b18f,1
+np.float64,0x3feaf98dd6f5f31c,0x3ff3b38189c3539c,1
+np.float64,0x3feb0b2eca76165e,0x3ff3d22797083f9a,1
+np.float64,0xbfdc02ae3ab8055c,0xbfde099ecb5dbacf,1
+np.float64,0x3fd248bf17a49180,0x3fd2ceb77b346d1d,1
+np.float64,0x3fe349d666e693ac,0x3fe651b9933a8853,1
+np.float64,0xbfca526fc534a4e0,0xbfcab3e83f0d9b93,1
+np.float64,0x3fc156421722ac88,0x3fc171b38826563b,1
+np.float64,0xbfe4244569e8488b,0xbfe7b1e93e7d4f92,1
+np.float64,0x3fe010faabe021f6,0x3fe1aa961338886d,1
+np.float64,0xbfc52dacb72a5b58,0xbfc55ffa50eba380,1
+np.float64,0x8000000000000000,0x8000000000000000,1
+np.float64,0x3fea1d4865f43a90,0x3ff251b839eb4817,1
+np.float64,0xbfa0f65c8421ecc0,0xbfa0f7f37c91be01,1
+np.float64,0x3fcab29c0b356538,0x3fcb1863edbee184,1
+np.float64,0x3fe7949162ef2922,0x3fee323821958b88,1
+np.float64,0x3fdaf9288ab5f250,0x3fdcc400190a4839,1
+np.float64,0xbfe13ece6be27d9d,0xbfe348ba07553179,1
+np.float64,0x3f8a0c4fd0341880,0x3f8a0cabdf710185,1
+np.float64,0x3fdd0442a2ba0884,0x3fdf4b016c4da452,1
+np.float64,0xbfaf06d2343e0da0,0xbfaf1090b1600422,1
+np.float64,0xbfd3b65225a76ca4,0xbfd45fa49ae76cca,1
+np.float64,0x3fef5d75fefebaec,0x400269a5e7c11891,1
+np.float64,0xbfe048e35ce091c6,0xbfe1f5af45dd64f8,1
+np.float64,0xbfe27d4599e4fa8b,0xbfe517b07843d04c,1
+np.float64,0xbfe6f2a637ede54c,0xbfecdaa730462576,1
+np.float64,0x3fc63fbb752c7f78,0x3fc67a2854974109,1
+np.float64,0x3fedda6bfbfbb4d8,0x3ffae2e6131f3475,1
+np.float64,0x3fe7a6f5286f4dea,0x3fee5a9b1ef46016,1
+np.float64,0xbfd4ea8bcea9d518,0xbfd5b66ab7e5cf00,1
+np.float64,0x3fdc116568b822cc,0x3fde1bd4d0d9fd6c,1
+np.float64,0x3fdc45cb1bb88b98,0x3fde5cd1d2751032,1
+np.float64,0x3feabd932f757b26,0x3ff34e06e56a62a1,1
+np.float64,0xbfae5dbe0c3cbb80,0xbfae66e062ac0d65,1
+np.float64,0xbfdb385a00b670b4,0xbfdd10fedf3a58a7,1
+np.float64,0xbfebb14755f7628f,0xbff507e123a2b47c,1
+np.float64,0x3fe6de2fdfedbc60,0x3fecb0ae6e131da2,1
+np.float64,0xbfd86de640b0dbcc,0xbfd9bb4dbf0bf6af,1
+np.float64,0x3fe39e86d9e73d0e,0x3fe6d811c858d5d9,1
+np.float64,0x7ff0000000000000,0xfff8000000000000,1
+np.float64,0x3fa8101684302020,0x3fa814a12176e937,1
+np.float64,0x3fefdd5ad37fbab6,0x4008a08c0b76fbb5,1
+np.float64,0x3fe645c727ec8b8e,0x3feb814ebc470940,1
+np.float64,0x3fe3ba79dce774f4,0x3fe70500db564cb6,1
+np.float64,0xbfe0e5a254e1cb44,0xbfe2cc13940c6d9a,1
+np.float64,0x3fe2cac62465958c,0x3fe58d008c5e31f8,1
+np.float64,0xbfd3ffb531a7ff6a,0xbfd4b0d88cff2040,1
+np.float64,0x3fe0929104612522,0x3fe259bc42dce788,1
+np.float64,0x1,0x1,1
+np.float64,0xbfe7db77e6efb6f0,0xbfeecf93e8a61cb3,1
+np.float64,0xbfe37e9559e6fd2a,0xbfe6a514e29cb7aa,1
+np.float64,0xbfc53a843f2a7508,0xbfc56d2e9ad8b716,1
+np.float64,0xbfedb04485fb6089,0xbffa4615d4334ec3,1
+np.float64,0xbfc44349b1288694,0xbfc46f484b6f1cd6,1
+np.float64,0xbfe265188264ca31,0xbfe4f37d61cd9e17,1
+np.float64,0xbfd030351da0606a,0xbfd08c2537287ee1,1
+np.float64,0x3fd8fb131db1f628,0x3fda613363ca601e,1
+np.float64,0xbff0000000000000,0xfff0000000000000,1
+np.float64,0xbfe48d9a60691b35,0xbfe862c02d8fec1e,1
+np.float64,0x3fd185e050a30bc0,0x3fd1fb4c614ddb07,1
+np.float64,0xbfe4a5807e694b01,0xbfe88b8ff2d6caa7,1
+np.float64,0xbfc934d7ad3269b0,0xbfc98a405d25a666,1
+np.float64,0xbfea0e3c62741c79,0xbff23b4bd3a7b15d,1
+np.float64,0x3fe7244071ee4880,0x3fed41b27ba6bb22,1
+np.float64,0xbfd419f81ba833f0,0xbfd4cdf71b4533a3,1
+np.float64,0xbfe1e73a34e3ce74,0xbfe439eb15fa6baf,1
+np.float64,0x3fcdd9a63f3bb350,0x3fce68e1c401eff0,1
+np.float64,0x3fd1b5960ba36b2c,0x3fd22eeb566f1976,1
+np.float64,0x3fe9ad18e0735a32,0x3ff1af23c534260d,1
+np.float64,0xbfd537918aaa6f24,0xbfd60ccc8df0962b,1
+np.float64,0x3fcba3d3c73747a8,0x3fcc14fd5e5c49ad,1
+np.float64,0x3fd367e3c0a6cfc8,0x3fd40921b14e288e,1
+np.float64,0x3fe94303c6f28608,0x3ff11e62db2db6ac,1
+np.float64,0xbfcc5f77fd38bef0,0xbfccda110c087519,1
+np.float64,0xbfd63b74d7ac76ea,0xbfd7328af9f37402,1
+np.float64,0xbfe5321289ea6425,0xbfe9811ce96609ad,1
+np.float64,0xbfde910879bd2210,0xbfe0a2cd0ed1d368,1
+np.float64,0xbfcc9d9bad393b38,0xbfcd1b722a0b1371,1
+np.float64,0xbfe6dd39e16dba74,0xbfecaeb7c8c069f6,1
+np.float64,0xbfe98316eff3062e,0xbff174d7347d48bf,1
+np.float64,0xbfda88f8d1b511f2,0xbfdc3c0e75dad903,1
+np.float64,0x3fd400d8c2a801b0,0x3fd4b21bacff1f5d,1
+np.float64,0xbfe1ed335863da66,0xbfe4429e45e99779,1
+np.float64,0xbf3423a200284800,0xbf3423a20acb0342,1
+np.float64,0xbfe97bc59672f78b,0xbff16ad1adc44a33,1
+np.float64,0xbfeeca60d7fd94c2,0xbfff98d7f18f7728,1
+np.float64,0x3fd1eb13b2a3d628,0x3fd268e6ff4d56ce,1
+np.float64,0xbfa5594c242ab2a0,0xbfa55c77d6740a39,1
+np.float64,0x3fe72662006e4cc4,0x3fed462a9dedbfee,1
+np.float64,0x3fef4bb221fe9764,0x4001fe4f4cdfedb2,1
+np.float64,0xbfe938d417f271a8,0xbff110e78724ca2b,1
+np.float64,0xbfcc29ab2f385358,0xbfcca182140ef541,1
+np.float64,0x3fe18cd42c6319a8,0x3fe3b77e018165e7,1
+np.float64,0xbfec6c5cae78d8b9,0xbff69d8e01309b48,1
+np.float64,0xbfd5723da7aae47c,0xbfd64ecde17da471,1
+np.float64,0xbfe3096722e612ce,0xbfe5ed43634f37ff,1
+np.float64,0xbfdacaceb1b5959e,0xbfdc8bb826bbed39,1
+np.float64,0x3fc59a57cb2b34b0,0x3fc5cfc4a7c9bac8,1
+np.float64,0x3f84adce10295b80,0x3f84adfc1f1f6e97,1
+np.float64,0x3fdd5b28bbbab650,0x3fdfb8b906d77df4,1
+np.float64,0x3fdebf94c6bd7f28,0x3fe0c10188e1bc7c,1
+np.float64,0x3fdb30c612b6618c,0x3fdd07bf18597821,1
+np.float64,0x3fe7eeb3176fdd66,0x3feefb0be694b855,1
+np.float64,0x0,0x0,1
+np.float64,0xbfe10057e9e200b0,0xbfe2f13365e5b1c9,1
+np.float64,0xbfeb61a82376c350,0xbff46e665d3a60f5,1
+np.float64,0xbfe7f54aec6fea96,0xbfef0a0759f726dc,1
+np.float64,0xbfe4f6da3de9edb4,0xbfe9187d85bd1ab5,1
+np.float64,0xbfeb8be1b3f717c4,0xbff4be8efaab2e75,1
+np.float64,0x3fed40bc31fa8178,0x3ff8d5ec4a7f3e9b,1
+np.float64,0xbfe40f8711681f0e,0xbfe78fa5c62b191b,1
+np.float64,0x3fd1034d94a2069c,0x3fd16e78e9efb85b,1
+np.float64,0x3fc74db15b2e9b60,0x3fc790f26e894098,1
+np.float64,0x3fd912a88cb22550,0x3fda7d0ab3b21308,1
+np.float64,0x3fd8948a3bb12914,0x3fd9e8950c7874c8,1
+np.float64,0xbfa7ada5242f5b50,0xbfa7b1f8db50c104,1
+np.float64,0x3feeb2e1c27d65c4,0x3fff000b7d09c9b7,1
+np.float64,0x3fe9d46cbbf3a8da,0x3ff1e6f405265a6e,1
+np.float64,0xbfe2480b77e49017,0xbfe4c83b9b37bf0c,1
+np.float64,0x3fe950ea9372a1d6,0x3ff130e62468bf2c,1
+np.float64,0x3fefa7272a7f4e4e,0x4004d8c9bf31ab58,1
+np.float64,0xbfe7309209ee6124,0xbfed5b94acef917a,1
+np.float64,0x3fd05e8c64a0bd18,0x3fd0bdb11e0903c6,1
+np.float64,0x3fd9236043b246c0,0x3fda90ccbe4bab1e,1
+np.float64,0xbfdc3d6805b87ad0,0xbfde5266e17154c3,1
+np.float64,0x3fe5e6bad76bcd76,0x3feacbc306c63445,1
+np.float64,0x3ff0000000000000,0x7ff0000000000000,1
+np.float64,0xbfde3d7390bc7ae8,0xbfe06cd480bd0196,1
+np.float64,0xbfd3e2e3c0a7c5c8,0xbfd490edc0a45e26,1
+np.float64,0x3fe39871d76730e4,0x3fe6ce54d1719953,1
+np.float64,0x3fdff00ebcbfe01c,0x3fe1894b6655a6d0,1
+np.float64,0x3f91b7ad58236f40,0x3f91b8213bcb8b0b,1
+np.float64,0xbfd99f48f7b33e92,0xbfdb23d544f62591,1
+np.float64,0x3fae3512cc3c6a20,0x3fae3e10939fd7b5,1
+np.float64,0x3fcc4cf3db3899e8,0x3fccc698a15176d6,1
+np.float64,0xbfd0927e39a124fc,0xbfd0f5522e2bc030,1
+np.float64,0x3fcee859633dd0b0,0x3fcf87bdef7a1e82,1
+np.float64,0xbfe2a8b69565516d,0xbfe5593437b6659a,1
+np.float64,0x3fecf61e20f9ec3c,0x3ff7fda16b0209d4,1
+np.float64,0xbfbf37571e3e6eb0,0xbfbf5f4e1379a64c,1
+np.float64,0xbfd54e1b75aa9c36,0xbfd626223b68971a,1
+np.float64,0x3fe1035a56e206b4,0x3fe2f5651ca0f4b0,1
+np.float64,0x3fe4992989e93254,0x3fe876751afa70dc,1
+np.float64,0x3fc8c313d3318628,0x3fc913faf15d1562,1
+np.float64,0x3f99f6ba8833ed80,0x3f99f8274fb94828,1
+np.float64,0xbfd4a58af0a94b16,0xbfd56947c276e04f,1
+np.float64,0x3fc66f8c872cdf18,0x3fc6ab7a14372a73,1
+np.float64,0x3fc41eee0d283de0,0x3fc449ff1ff0e7a6,1
+np.float64,0x3fefd04d287fa09a,0x4007585010cfa9b0,1
+np.float64,0x3fce9e746f3d3ce8,0x3fcf39514bbe5070,1
+np.float64,0xbfe8056f72700adf,0xbfef2ee2c13e67ba,1
+np.float64,0x3fdd6b1ec0bad63c,0x3fdfccf2ba144fa8,1
+np.float64,0x3fd92ee432b25dc8,0x3fda9e6b96b2b142,1
+np.float64,0xbfc4d18f9529a320,0xbfc50150fb4de0cc,1
+np.float64,0xbfe09939a7613274,0xbfe262d703c317af,1
+np.float64,0xbfd130b132a26162,0xbfd19f5a00ae29c4,1
+np.float64,0x3fa06e21d420dc40,0x3fa06f93aba415fb,1
+np.float64,0x3fc5c48fbd2b8920,0x3fc5fb3bfad3bf55,1
+np.float64,0xbfdfa2bacbbf4576,0xbfe155f839825308,1
+np.float64,0x3fe3e1fa0f67c3f4,0x3fe745081dd4fd03,1
+np.float64,0x3fdae58289b5cb04,0x3fdcac1f6789130a,1
+np.float64,0xbf8ed3ba103da780,0xbf8ed452a9cc1442,1
+np.float64,0xbfec06b46f780d69,0xbff5b86f30d70908,1
+np.float64,0xbfe990c13b732182,0xbff187a90ae611f8,1
+np.float64,0xbfdd46c738ba8d8e,0xbfdf9eee0a113230,1
+np.float64,0x3fe08b83f3611708,0x3fe2501b1c77035c,1
+np.float64,0xbfd501b65baa036c,0xbfd5d05de3fceac8,1
+np.float64,0xbfcf4fa21f3e9f44,0xbfcff5829582c0b6,1
+np.float64,0xbfefbc0bfbff7818,0xc005eca1a2c56b38,1
+np.float64,0xbfe1ba6959e374d2,0xbfe3f8f88d128ce5,1
+np.float64,0xbfd4e74ee3a9ce9e,0xbfd5b2cabeb45e6c,1
+np.float64,0xbfe77c38eaeef872,0xbfedfd332d6f1c75,1
+np.float64,0x3fa9b5e4fc336bc0,0x3fa9bb6f6b80b4af,1
+np.float64,0xbfecba63917974c7,0xbff75e44df7f8e81,1
+np.float64,0x3fd6cf17b2ad9e30,0x3fd7db0b93b7f2b5,1
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/data/umath-validation-set-cbrt.csv b/python/user_packages/Python313/site-packages/numpy/_core/tests/data/umath-validation-set-cbrt.csv
new file mode 100644
index 0000000000000000000000000000000000000000..3af29edf0535c5d659a586311c219269c4393254
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/tests/data/umath-validation-set-cbrt.csv
@@ -0,0 +1,1429 @@
+dtype,input,output,ulperrortol
+np.float32,0x3ee7054c,0x3f4459ea,2
+np.float32,0x7d1e2489,0x54095925,2
+np.float32,0x7ee5edf5,0x549b992b,2
+np.float32,0x380607,0x2a425e72,2
+np.float32,0x34a8f3,0x2a3e6603,2
+np.float32,0x3eee2844,0x3f465a45,2
+np.float32,0x59e49c,0x2a638d0a,2
+np.float32,0xbf72c77a,0xbf7b83d4,2
+np.float32,0x7f2517b4,0x54af8bf0,2
+np.float32,0x80068a69,0xa9bdfe8b,2
+np.float32,0xbe8e3578,0xbf270775,2
+np.float32,0xbe4224dc,0xbf131119,2
+np.float32,0xbe0053b8,0xbf001be2,2
+np.float32,0x70e8d,0x29c2ddc5,2
+np.float32,0xff63f7b5,0xd4c37b7f,2
+np.float32,0x3f00bbed,0x3f4b9335,2
+np.float32,0x3f135f4e,0x3f54f5d4,2
+np.float32,0xbe13a488,0xbf063d13,2
+np.float32,0x3f14ec78,0x3f55b478,2
+np.float32,0x7ec35cfb,0x54935fbf,2
+np.float32,0x7d41c589,0x5412f904,2
+np.float32,0x3ef8a16e,0x3f4937f7,2
+np.float32,0x3f5d8464,0x3f73f279,2
+np.float32,0xbeec85ac,0xbf45e5cb,2
+np.float32,0x7f11f722,0x54a87cb1,2
+np.float32,0x8032c085,0xaa3c1219,2
+np.float32,0x80544bac,0xaa5eb9f2,2
+np.float32,0x3e944a10,0x3f296065,2
+np.float32,0xbf29fe50,0xbf5f5796,2
+np.float32,0x7e204d8d,0x545b03d5,2
+np.float32,0xfe1d0254,0xd4598127,2
+np.float32,0x80523129,0xaa5cdba9,2
+np.float32,0x806315fa,0xaa6b0eaf,2
+np.float32,0x3ed3d2a4,0x3f3ec117,2
+np.float32,0x7ee15007,0x549a8cc0,2
+np.float32,0x801ffb5e,0xaa213d4f,2
+np.float32,0x807f9f4a,0xaa7fbf76,2
+np.float32,0xbe45e854,0xbf1402d3,2
+np.float32,0x3d9e2e70,0x3eda0b64,2
+np.float32,0x51f404,0x2a5ca4d7,2
+np.float32,0xbe26a8b0,0xbf0bc54d,2
+np.float32,0x22c99a,0x2a25d2a7,2
+np.float32,0xbf71248b,0xbf7af2d5,2
+np.float32,0x7219fe,0x2a76608e,2
+np.float32,0x7f16fd7d,0x54aa6610,2
+np.float32,0x80716faa,0xaa75e5b9,2
+np.float32,0xbe24f9a4,0xbf0b4c65,2
+np.float32,0x800000,0x2a800000,2
+np.float32,0x80747456,0xaa780f27,2
+np.float32,0x68f9e8,0x2a6fa035,2
+np.float32,0x3f6a297e,0x3f7880d8,2
+np.float32,0x3f28b973,0x3f5ec8f6,2
+np.float32,0x7f58c577,0x54c03a70,2
+np.float32,0x804befcc,0xaa571b4f,2
+np.float32,0x3e2be027,0x3f0d36cf,2
+np.float32,0xfe7e80a4,0xd47f7ff7,2
+np.float32,0xfe9d444a,0xd489181b,2
+np.float32,0x3db3e790,0x3ee399d6,2
+np.float32,0xbf154c3e,0xbf55e23e,2
+np.float32,0x3d1096b7,0x3ea7f4aa,2
+np.float32,0x7fc00000,0x7fc00000,2
+np.float32,0x804e2521,0xaa592c06,2
+np.float32,0xbeda2f00,0xbf40a513,2
+np.float32,0x3f191788,0x3f57ae30,2
+np.float32,0x3ed24ade,0x3f3e4b34,2
+np.float32,0x807fadb4,0xaa7fc917,2
+np.float32,0xbe0a06dc,0xbf034234,2
+np.float32,0x3f250bba,0x3f5d276d,2
+np.float32,0x7e948b00,0x548682c8,2
+np.float32,0xfe65ecdc,0xd476fed2,2
+np.float32,0x6fdbdd,0x2a74c095,2
+np.float32,0x800112de,0xa9500fa6,2
+np.float32,0xfe63225c,0xd475fdee,2
+np.float32,0x7f3d9acd,0x54b7d648,2
+np.float32,0xfc46f480,0xd3bacf87,2
+np.float32,0xfe5deaac,0xd47417ff,2
+np.float32,0x60ce53,0x2a693d93,2
+np.float32,0x6a6e2f,0x2a70ba2c,2
+np.float32,0x7f43f0f1,0x54b9dcd0,2
+np.float32,0xbf6170c9,0xbf756104,2
+np.float32,0xbe5c9f74,0xbf197852,2
+np.float32,0xff1502b0,0xd4a9a693,2
+np.float32,0x8064f6af,0xaa6c886e,2
+np.float32,0xbf380564,0xbf6552e5,2
+np.float32,0xfeb9b7dc,0xd490e85f,2
+np.float32,0x7f34f941,0x54b5010d,2
+np.float32,0xbe9d4ca0,0xbf2cbd5f,2
+np.float32,0x3f6e43d2,0x3f79f240,2
+np.float32,0xbdad0530,0xbee0a8f2,2
+np.float32,0x3da18459,0x3edb9105,2
+np.float32,0xfd968340,0xd42a3808,2
+np.float32,0x3ea03e64,0x3f2dcf96,2
+np.float32,0x801d2f5b,0xaa1c6525,2
+np.float32,0xbf47d92d,0xbf6bb7e9,2
+np.float32,0x55a6b9,0x2a5fe9fb,2
+np.float32,0x77a7c2,0x2a7a4fb8,2
+np.float32,0xfebbc16e,0xd4916f88,2
+np.float32,0x3f5d3d6e,0x3f73d86a,2
+np.float32,0xfccd2b60,0xd3edcacb,2
+np.float32,0xbd026460,0xbea244b0,2
+np.float32,0x3e55bd,0x2a4968e4,2
+np.float32,0xbe7b5708,0xbf20490d,2
+np.float32,0xfe413cf4,0xd469171f,2
+np.float32,0x7710e3,0x2a79e657,2
+np.float32,0xfc932520,0xd3d4d9ca,2
+np.float32,0xbf764a1b,0xbf7cb8aa,2
+np.float32,0x6b1923,0x2a713aca,2
+np.float32,0xfe4dcd04,0xd46e092d,2
+np.float32,0xff3085ac,0xd4b381f8,2
+np.float32,0x3f72c438,0x3f7b82b4,2
+np.float32,0xbf6f0c6e,0xbf7a3852,2
+np.float32,0x801d2b1b,0xaa1c5d8d,2
+np.float32,0x3e9db91e,0x3f2ce50d,2
+np.float32,0x3f684f9d,0x3f77d8c5,2
+np.float32,0x7dc784,0x2a7e82cc,2
+np.float32,0x7d2c88e9,0x540d64f8,2
+np.float32,0x807fb708,0xaa7fcf51,2
+np.float32,0x8003c49a,0xa99e16e0,2
+np.float32,0x3ee4f5b8,0x3f43c3ff,2
+np.float32,0xfe992c5e,0xd487e4ec,2
+np.float32,0x4b4dfa,0x2a568216,2
+np.float32,0x3d374c80,0x3eb5c6a8,2
+np.float32,0xbd3a4700,0xbeb6c15c,2
+np.float32,0xbf13cb80,0xbf5529e5,2
+np.float32,0xbe7306d4,0xbf1e7f91,2
+np.float32,0xbf800000,0xbf800000,2
+np.float32,0xbea42efe,0xbf2f394e,2
+np.float32,0x3e1981d0,0x3f07fe2c,2
+np.float32,0x3f17ea1d,0x3f572047,2
+np.float32,0x7dc1e0,0x2a7e7efe,2
+np.float32,0x80169c08,0xaa0fa320,2
+np.float32,0x3f3e1972,0x3f67d248,2
+np.float32,0xfe5d3c88,0xd473d815,2
+np.float32,0xbf677448,0xbf778aac,2
+np.float32,0x7e799b7d,0x547dd9e4,2
+np.float32,0x3f00bb2c,0x3f4b92cf,2
+np.float32,0xbeb29f9c,0xbf343798,2
+np.float32,0xbd6b7830,0xbec59a86,2
+np.float32,0x807a524a,0xaa7c282a,2
+np.float32,0xbe0a7a04,0xbf0366ab,2
+np.float32,0x80237470,0xaa26e061,2
+np.float32,0x3ccbc0f6,0x3e95744f,2
+np.float32,0x3edec6bc,0x3f41fcb6,2
+np.float32,0x3f635198,0x3f760efa,2
+np.float32,0x800eca4f,0xa9f960d8,2
+np.float32,0x3f800000,0x3f800000,2
+np.float32,0xff4eeb9e,0xd4bd456a,2
+np.float32,0x56f4e,0x29b29e70,2
+np.float32,0xff5383a0,0xd4bea95c,2
+np.float32,0x3f4c3a77,0x3f6d6d94,2
+np.float32,0x3f6c324a,0x3f79388c,2
+np.float32,0xbebdc092,0xbf37e27c,2
+np.float32,0xff258956,0xd4afb42e,2
+np.float32,0xdc78c,0x29f39012,2
+np.float32,0xbf2db06a,0xbf60f2f5,2
+np.float32,0xbe3c5808,0xbf119660,2
+np.float32,0xbf1ba866,0xbf58e0f4,2
+np.float32,0x80377640,0xaa41b79d,2
+np.float32,0x4fdc4d,0x2a5abfea,2
+np.float32,0x7f5e7560,0x54c1e516,2
+np.float32,0xfeb4d3f2,0xd48f9fde,2
+np.float32,0x3f12a622,0x3f549c7d,2
+np.float32,0x7f737ed7,0x54c7d2dc,2
+np.float32,0xa0ddc,0x29db456d,2
+np.float32,0xfe006740,0xd44b6689,2
+np.float32,0x3f17dfd4,0x3f571b6c,2
+np.float32,0x67546e,0x2a6e5dd1,2
+np.float32,0xff0d0f11,0xd4a693e2,2
+np.float32,0xbd170090,0xbeaa6738,2
+np.float32,0x5274a0,0x2a5d1806,2
+np.float32,0x3e154fe0,0x3f06be1a,2
+np.float32,0x7ddb302e,0x5440f0a7,2
+np.float32,0x3f579d10,0x3f71c2af,2
+np.float32,0xff2bc5bb,0xd4b1e20c,2
+np.float32,0xfee8fa6a,0xd49c4872,2
+np.float32,0xbea551b0,0xbf2fa07b,2
+np.float32,0xfeabc75c,0xd48d3004,2
+np.float32,0x7f50a5a8,0x54bdcbd1,2
+np.float32,0x50354b,0x2a5b110d,2
+np.float32,0x7d139f13,0x54063b6b,2
+np.float32,0xbeee1b08,0xbf465699,2
+np.float32,0xfe5e1650,0xd47427fe,2
+np.float32,0x7f7fffff,0x54cb2ff5,2
+np.float32,0xbf52ede8,0xbf6fff35,2
+np.float32,0x804bba81,0xaa56e8f1,2
+np.float32,0x6609e2,0x2a6d5e94,2
+np.float32,0x692621,0x2a6fc1d6,2
+np.float32,0xbf288bb6,0xbf5eb4d3,2
+np.float32,0x804f28c4,0xaa5a1b82,2
+np.float32,0xbdaad2a8,0xbedfb46e,2
+np.float32,0x5e04f8,0x2a66fb13,2
+np.float32,0x804c10da,0xaa573a81,2
+np.float32,0xbe412764,0xbf12d0fd,2
+np.float32,0x801c35cc,0xaa1aa250,2
+np.float32,0x6364d4,0x2a6b4cf9,2
+np.float32,0xbf6d3cea,0xbf79962f,2
+np.float32,0x7e5a9935,0x5472defb,2
+np.float32,0xbe73a38c,0xbf1ea19c,2
+np.float32,0xbd35e950,0xbeb550f2,2
+np.float32,0x46cc16,0x2a5223d6,2
+np.float32,0x3f005288,0x3f4b5b97,2
+np.float32,0x8034e8b7,0xaa3eb2be,2
+np.float32,0xbea775fc,0xbf3061cf,2
+np.float32,0xea0e9,0x29f87751,2
+np.float32,0xbf38faaf,0xbf65b89d,2
+np.float32,0xbedf3184,0xbf421bb0,2
+np.float32,0xbe04250c,0xbf015def,2
+np.float32,0x7f56dae8,0x54bfa901,2
+np.float32,0xfebe3e04,0xd492132e,2
+np.float32,0x3e4dc326,0x3f15f19e,2
+np.float32,0x803da197,0xaa48a621,2
+np.float32,0x7eeb35aa,0x549cc7c6,2
+np.float32,0xfebb3eb6,0xd4914dc0,2
+np.float32,0xfed17478,0xd496d5e2,2
+np.float32,0x80243694,0xaa280ed2,2
+np.float32,0x8017e666,0xaa1251d3,2
+np.float32,0xbf07e942,0xbf4f4a3e,2
+np.float32,0xbf578fa6,0xbf71bdab,2
+np.float32,0x7ed8d80f,0x549896b6,2
+np.float32,0x3f2277ae,0x3f5bff11,2
+np.float32,0x7e6f195b,0x547a3cd4,2
+np.float32,0xbf441559,0xbf6a3a91,2
+np.float32,0x7f1fb427,0x54ad9d8d,2
+np.float32,0x71695f,0x2a75e12d,2
+np.float32,0xbd859588,0xbece19a1,2
+np.float32,0x7f5702fc,0x54bfb4eb,2
+np.float32,0x3f040008,0x3f4d4842,2
+np.float32,0x3de00ca5,0x3ef4df89,2
+np.float32,0x3eeabb03,0x3f45658c,2
+np.float32,0x3dfe5e65,0x3eff7480,2
+np.float32,0x1,0x26a14518,2
+np.float32,0x8065e400,0xaa6d4130,2
+np.float32,0xff50e1bb,0xd4bdde07,2
+np.float32,0xbe88635a,0xbf24b7e9,2
+np.float32,0x3f46bfab,0x3f6b4908,2
+np.float32,0xbd85c3c8,0xbece3168,2
+np.float32,0xbe633f64,0xbf1afdb1,2
+np.float32,0xff2c7706,0xd4b21f2a,2
+np.float32,0xbf02816c,0xbf4c812a,2
+np.float32,0x80653aeb,0xaa6cbdab,2
+np.float32,0x3eef1d10,0x3f469e24,2
+np.float32,0x3d9944bf,0x3ed7c36a,2
+np.float32,0x1b03d4,0x2a186b2b,2
+np.float32,0x3f251b7c,0x3f5d2e76,2
+np.float32,0x3edebab0,0x3f41f937,2
+np.float32,0xfefc2148,0xd4a073ff,2
+np.float32,0x7448ee,0x2a77f051,2
+np.float32,0x3bb8a400,0x3e3637ee,2
+np.float32,0x57df36,0x2a61d527,2
+np.float32,0xfd8b9098,0xd425fccb,2
+np.float32,0x7f67627e,0x54c4744d,2
+np.float32,0x801165d7,0xaa039fba,2
+np.float32,0x53aae5,0x2a5e2bfd,2
+np.float32,0x8014012b,0xaa09e4f1,2
+np.float32,0x3f7a2d53,0x3f7e0b4b,2
+np.float32,0x3f5fb700,0x3f74c052,2
+np.float32,0x7f192a06,0x54ab366c,2
+np.float32,0x3f569611,0x3f71603b,2
+np.float32,0x25e2dc,0x2a2a9b65,2
+np.float32,0x8036465e,0xaa405342,2
+np.float32,0x804118e1,0xaa4c5785,2
+np.float32,0xbef08d3e,0xbf4703e1,2
+np.float32,0x3447e2,0x2a3df0be,2
+np.float32,0xbf2a350b,0xbf5f6f8c,2
+np.float32,0xbec87e3e,0xbf3b4a73,2
+np.float32,0xbe99a4a8,0xbf2b6412,2
+np.float32,0x2ea2ae,0x2a36d77e,2
+np.float32,0xfcb69600,0xd3e4b9e3,2
+np.float32,0x717700,0x2a75eb06,2
+np.float32,0xbf4e81ce,0xbf6e4ecc,2
+np.float32,0xbe2021ac,0xbf09ebee,2
+np.float32,0xfef94eee,0xd49fda31,2
+np.float32,0x8563e,0x29ce0015,2
+np.float32,0x7f5d0ca5,0x54c17c0f,2
+np.float32,0x3f16459a,0x3f56590f,2
+np.float32,0xbe12f7bc,0xbf0608a0,2
+np.float32,0x3f10fd3d,0x3f53ce5f,2
+np.float32,0x3ca5e1b0,0x3e8b8d96,2
+np.float32,0xbe5288e0,0xbf17181f,2
+np.float32,0xbf7360f6,0xbf7bb8c9,2
+np.float32,0x7e989d33,0x5487ba88,2
+np.float32,0x3ea7b5dc,0x3f307839,2
+np.float32,0x7e8da0c9,0x548463f0,2
+np.float32,0xfeaf7888,0xd48e3122,2
+np.float32,0x7d90402d,0x5427d321,2
+np.float32,0x72e309,0x2a76f0ee,2
+np.float32,0xbe1faa34,0xbf09c998,2
+np.float32,0xbf2b1652,0xbf5fd1f4,2
+np.float32,0x8051eb0c,0xaa5c9cca,2
+np.float32,0x7edf02bf,0x549a058e,2
+np.float32,0x7fa00000,0x7fe00000,2
+np.float32,0x3f67f873,0x3f77b9c1,2
+np.float32,0x3f276b63,0x3f5e358c,2
+np.float32,0x7eeb4bf2,0x549cccb9,2
+np.float32,0x3bfa2c,0x2a46d675,2
+np.float32,0x3e133c50,0x3f061d75,2
+np.float32,0x3ca302c0,0x3e8abe4a,2
+np.float32,0x802e152e,0xaa361dd5,2
+np.float32,0x3f504810,0x3f6efd0a,2
+np.float32,0xbf43e0b5,0xbf6a2599,2
+np.float32,0x80800000,0xaa800000,2
+np.float32,0x3f1c0980,0x3f590e03,2
+np.float32,0xbf0084f6,0xbf4b7638,2
+np.float32,0xfee72d32,0xd49be10d,2
+np.float32,0x3f3c00ed,0x3f66f763,2
+np.float32,0x80511e81,0xaa5be492,2
+np.float32,0xfdd1b8a0,0xd43e1f0d,2
+np.float32,0x7d877474,0x54245785,2
+np.float32,0x7f110bfe,0x54a82207,2
+np.float32,0xff800000,0xff800000,2
+np.float32,0x6b6a2,0x29bfa706,2
+np.float32,0xbf5bdfd9,0xbf7357b7,2
+np.float32,0x8025bfa3,0xaa2a6676,2
+np.float32,0x3a3581,0x2a44dd3a,2
+np.float32,0x542c2a,0x2a5e9e2f,2
+np.float32,0xbe1d5650,0xbf091d57,2
+np.float32,0x3e97760d,0x3f2a935e,2
+np.float32,0x7f5dcde2,0x54c1b460,2
+np.float32,0x800bde1e,0xa9e7bbaf,2
+np.float32,0x3e6b9e61,0x3f1cdf07,2
+np.float32,0x7d46c003,0x54143884,2
+np.float32,0x80073fbb,0xa9c49e67,2
+np.float32,0x503c23,0x2a5b1748,2
+np.float32,0x7eb7b070,0x549060c8,2
+np.float32,0xe9d8f,0x29f86456,2
+np.float32,0xbeedd4f0,0xbf464320,2
+np.float32,0x3f40d5d6,0x3f68eda1,2
+np.float32,0xff201f28,0xd4adc44b,2
+np.float32,0xbdf61e98,0xbefca9c7,2
+np.float32,0x3e8a0dc9,0x3f2562e3,2
+np.float32,0xbc0c0c80,0xbe515f61,2
+np.float32,0x2b3c15,0x2a3248e3,2
+np.float32,0x42a7bb,0x2a4df592,2
+np.float32,0x7f337947,0x54b480af,2
+np.float32,0xfec21db4,0xd4930f4b,2
+np.float32,0x7f4fdbf3,0x54bd8e94,2
+np.float32,0x1e2253,0x2a1e1286,2
+np.float32,0x800c4c80,0xa9ea819e,2
+np.float32,0x7e96f5b7,0x54873c88,2
+np.float32,0x7ce4e131,0x53f69ed4,2
+np.float32,0xbead8372,0xbf327b63,2
+np.float32,0x3e15ca7e,0x3f06e2f3,2
+np.float32,0xbf63e17b,0xbf7642da,2
+np.float32,0xff5bdbdb,0xd4c122f9,2
+np.float32,0x3f44411e,0x3f6a4bfd,2
+np.float32,0xfd007da0,0xd40029d2,2
+np.float32,0xbe940168,0xbf2944b7,2
+np.float32,0x80000000,0x80000000,2
+np.float32,0x3d28e356,0x3eb0e1b8,2
+np.float32,0x3eb9fcd8,0x3f36a918,2
+np.float32,0x4f6410,0x2a5a51eb,2
+np.float32,0xbdf18e30,0xbefb1775,2
+np.float32,0x32edbd,0x2a3c49e3,2
+np.float32,0x801f70a5,0xaa2052da,2
+np.float32,0x8045a045,0xaa50f98c,2
+np.float32,0xbdd6cb00,0xbef17412,2
+np.float32,0x3f118f2c,0x3f541557,2
+np.float32,0xbe65c378,0xbf1b8f95,2
+np.float32,0xfd9a9060,0xd42bbb8b,2
+np.float32,0x3f04244f,0x3f4d5b0f,2
+np.float32,0xff05214b,0xd4a3656f,2
+np.float32,0xfe342cd0,0xd463b706,2
+np.float32,0x3f3409a8,0x3f63a836,2
+np.float32,0x80205db2,0xaa21e1e5,2
+np.float32,0xbf37c982,0xbf653a03,2
+np.float32,0x3f36ce8f,0x3f64d17e,2
+np.float32,0x36ffda,0x2a412d61,2
+np.float32,0xff569752,0xd4bf94e6,2
+np.float32,0x802fdb0f,0xaa386c3a,2
+np.float32,0x7ec55a87,0x5493df71,2
+np.float32,0x7f2234c7,0x54ae847e,2
+np.float32,0xbf02df76,0xbf4cb23d,2
+np.float32,0x3d68731a,0x3ec4c156,2
+np.float32,0x8146,0x2921cd8e,2
+np.float32,0x80119364,0xaa041235,2
+np.float32,0xfe6c1c00,0xd47930b5,2
+np.float32,0x8070da44,0xaa757996,2
+np.float32,0xfefbf50c,0xd4a06a9d,2
+np.float32,0xbf01b6a8,0xbf4c170a,2
+np.float32,0x110702,0x2a02aedb,2
+np.float32,0xbf063cd4,0xbf4e6f87,2
+np.float32,0x3f1ff178,0x3f5ad9dd,2
+np.float32,0xbf76dcd4,0xbf7cead0,2
+np.float32,0x80527281,0xaa5d1620,2
+np.float32,0xfea96df8,0xd48c8a7f,2
+np.float32,0x68db02,0x2a6f88b0,2
+np.float32,0x62d971,0x2a6adec7,2
+np.float32,0x3e816fe0,0x3f21df04,2
+np.float32,0x3f586379,0x3f720cc0,2
+np.float32,0x804a3718,0xaa5577ff,2
+np.float32,0x2e2506,0x2a3632b2,2
+np.float32,0x3f297d,0x2a4a4bf3,2
+np.float32,0xbe37aba8,0xbf105f88,2
+np.float32,0xbf18b264,0xbf577ea7,2
+np.float32,0x7f50d02d,0x54bdd8b5,2
+np.float32,0xfee296dc,0xd49ad757,2
+np.float32,0x7ec5137e,0x5493cdb1,2
+np.float32,0x3f4811f4,0x3f6bce3a,2
+np.float32,0xfdff32a0,0xd44af991,2
+np.float32,0x3f6ef140,0x3f7a2ed6,2
+np.float32,0x250838,0x2a2950b5,2
+np.float32,0x25c28e,0x2a2a6ada,2
+np.float32,0xbe875e50,0xbf244e90,2
+np.float32,0x3e3bdff8,0x3f11776a,2
+np.float32,0x3e9fe493,0x3f2daf17,2
+np.float32,0x804d8599,0xaa5897d9,2
+np.float32,0x3f0533da,0x3f4de759,2
+np.float32,0xbe63023c,0xbf1aefc8,2
+np.float32,0x80636e5e,0xaa6b547f,2
+np.float32,0xff112958,0xd4a82d5d,2
+np.float32,0x3e924112,0x3f28991f,2
+np.float32,0xbe996ffc,0xbf2b507a,2
+np.float32,0x802a7cda,0xaa314081,2
+np.float32,0x8022b524,0xaa25b21e,2
+np.float32,0x3f0808c8,0x3f4f5a43,2
+np.float32,0xbef0ec2a,0xbf471e0b,2
+np.float32,0xff4c2345,0xd4bc6b3c,2
+np.float32,0x25ccc8,0x2a2a7a3b,2
+np.float32,0x7f4467d6,0x54ba0260,2
+np.float32,0x7f506539,0x54bdb846,2
+np.float32,0x412ab4,0x2a4c6a2a,2
+np.float32,0x80672c4a,0xaa6e3ef0,2
+np.float32,0xbddfb7f8,0xbef4c0ac,2
+np.float32,0xbf250bb9,0xbf5d276c,2
+np.float32,0x807dca65,0xaa7e84bd,2
+np.float32,0xbf63b8e0,0xbf763438,2
+np.float32,0xbeed1b0c,0xbf460f6b,2
+np.float32,0x8021594f,0xaa238136,2
+np.float32,0xbebc74c8,0xbf377710,2
+np.float32,0x3e9f8e3b,0x3f2d8fce,2
+np.float32,0x7f50ca09,0x54bdd6d8,2
+np.float32,0x805797c1,0xaa6197df,2
+np.float32,0x3de198f9,0x3ef56f98,2
+np.float32,0xf154d,0x29fb0392,2
+np.float32,0xff7fffff,0xd4cb2ff5,2
+np.float32,0xfed22fa8,0xd49702c4,2
+np.float32,0xbf733736,0xbf7baa64,2
+np.float32,0xbf206a8a,0xbf5b1108,2
+np.float32,0xbca49680,0xbe8b3078,2
+np.float32,0xfecba794,0xd4956e1a,2
+np.float32,0x80126582,0xaa061886,2
+np.float32,0xfee5cc82,0xd49b919f,2
+np.float32,0xbf7ad6ae,0xbf7e4491,2
+np.float32,0x7ea88c81,0x548c4c0c,2
+np.float32,0xbf493a0d,0xbf6c4255,2
+np.float32,0xbf06dda0,0xbf4ec1d4,2
+np.float32,0xff3f6e84,0xd4b86cf6,2
+np.float32,0x3e4fe093,0x3f1674b0,2
+np.float32,0x8048ad60,0xaa53fbde,2
+np.float32,0x7ebb7112,0x54915ac5,2
+np.float32,0x5bd191,0x2a652a0d,2
+np.float32,0xfe3121d0,0xd4626cfb,2
+np.float32,0x7e4421c6,0x546a3f83,2
+np.float32,0x19975b,0x2a15b14f,2
+np.float32,0x801c8087,0xaa1b2a64,2
+np.float32,0xfdf6e950,0xd448c0f6,2
+np.float32,0x74e711,0x2a786083,2
+np.float32,0xbf2b2f2e,0xbf5fdccb,2
+np.float32,0x7ed19ece,0x5496e00b,2
+np.float32,0x7f6f8322,0x54c6ba63,2
+np.float32,0x3e90316d,0x3f27cd69,2
+np.float32,0x7ecb42ce,0x54955571,2
+np.float32,0x3f6d49be,0x3f799aaf,2
+np.float32,0x8053d327,0xaa5e4f9a,2
+np.float32,0x7ebd7361,0x5491df3e,2
+np.float32,0xfdb6eed0,0xd435a7aa,2
+np.float32,0x7f3e79f4,0x54b81e4b,2
+np.float32,0xfe83afa6,0xd4813794,2
+np.float32,0x37c443,0x2a421246,2
+np.float32,0xff075a10,0xd4a44cd8,2
+np.float32,0x3ebc5fe0,0x3f377047,2
+np.float32,0x739694,0x2a77714e,2
+np.float32,0xfe832946,0xd4810b91,2
+np.float32,0x7f2638e6,0x54aff235,2
+np.float32,0xfe87f7a6,0xd4829a3f,2
+np.float32,0x3f50f3f8,0x3f6f3eb8,2
+np.float32,0x3eafa3d0,0x3f333548,2
+np.float32,0xbec26ee6,0xbf39626f,2
+np.float32,0x7e6f924f,0x547a66ff,2
+np.float32,0x7f0baa46,0x54a606f8,2
+np.float32,0xbf6dfc49,0xbf79d939,2
+np.float32,0x7f005709,0x54a1699d,2
+np.float32,0x7ee3d7ef,0x549b2057,2
+np.float32,0x803709a4,0xaa4138d7,2
+np.float32,0x3f7bf49a,0x3f7ea509,2
+np.float32,0x509db7,0x2a5b6ff5,2
+np.float32,0x7eb1b0d4,0x548ec9ff,2
+np.float32,0x7eb996ec,0x5490dfce,2
+np.float32,0xbf1fcbaa,0xbf5ac89e,2
+np.float32,0x3e2c9a98,0x3f0d69cc,2
+np.float32,0x3ea77994,0x3f306312,2
+np.float32,0x3f3cbfe4,0x3f67457c,2
+np.float32,0x8422a,0x29cd5a30,2
+np.float32,0xbd974558,0xbed6d264,2
+np.float32,0xfecee77a,0xd496387f,2
+np.float32,0x3f51876b,0x3f6f76f1,2
+np.float32,0x3b1a25,0x2a45ddad,2
+np.float32,0xfe9912f0,0xd487dd67,2
+np.float32,0x3f3ab13d,0x3f666d99,2
+np.float32,0xbf35565a,0xbf64341b,2
+np.float32,0x7d4e84aa,0x54162091,2
+np.float32,0x4c2570,0x2a574dea,2
+np.float32,0x7e82dca6,0x5480f26b,2
+np.float32,0x7f5503e7,0x54bf1c8d,2
+np.float32,0xbeb85034,0xbf361c59,2
+np.float32,0x80460a69,0xaa516387,2
+np.float32,0x805fbbab,0xaa68602c,2
+np.float32,0x7d4b4c1b,0x541557b8,2
+np.float32,0xbefa9a0a,0xbf49bfbc,2
+np.float32,0x3dbd233f,0x3ee76e09,2
+np.float32,0x58b6df,0x2a628d50,2
+np.float32,0xfcdcc180,0xd3f3aad9,2
+np.float32,0x423a37,0x2a4d8487,2
+np.float32,0xbed8b32a,0xbf403507,2
+np.float32,0x3f68e85d,0x3f780f0b,2
+np.float32,0x7ee13c4b,0x549a883d,2
+np.float32,0xff2ed4c5,0xd4b2eec1,2
+np.float32,0xbf54dadc,0xbf70b99a,2
+np.float32,0x3f78b0af,0x3f7d8a32,2
+np.float32,0x3f377372,0x3f651635,2
+np.float32,0xfdaa6178,0xd43166bc,2
+np.float32,0x8060c337,0xaa6934a6,2
+np.float32,0x7ec752c2,0x54945cf6,2
+np.float32,0xbd01a760,0xbea1f624,2
+np.float32,0x6f6599,0x2a746a35,2
+np.float32,0x3f6315b0,0x3f75f95b,2
+np.float32,0x7f2baf32,0x54b1da44,2
+np.float32,0x3e400353,0x3f1286d8,2
+np.float32,0x40d3bf,0x2a4c0f15,2
+np.float32,0x7f733aca,0x54c7c03d,2
+np.float32,0x7e5c5407,0x5473828b,2
+np.float32,0x80191703,0xaa14b56a,2
+np.float32,0xbf4fc144,0xbf6ec970,2
+np.float32,0xbf1137a7,0xbf53eacd,2
+np.float32,0x80575410,0xaa615db3,2
+np.float32,0xbd0911d0,0xbea4fe07,2
+np.float32,0x3e98534a,0x3f2ae643,2
+np.float32,0x3f3b089a,0x3f669185,2
+np.float32,0x4fc752,0x2a5aacc1,2
+np.float32,0xbef44ddc,0xbf480b6e,2
+np.float32,0x80464217,0xaa519af4,2
+np.float32,0x80445fae,0xaa4fb6de,2
+np.float32,0x80771cf4,0xaa79eec8,2
+np.float32,0xfd9182e8,0xd4284fed,2
+np.float32,0xff0a5d16,0xd4a58288,2
+np.float32,0x3f33e169,0x3f63973e,2
+np.float32,0x8021a247,0xaa23f820,2
+np.float32,0xbf362522,0xbf648ab8,2
+np.float32,0x3f457cd7,0x3f6ac95e,2
+np.float32,0xbcadf400,0xbe8dc7e2,2
+np.float32,0x80237210,0xaa26dca7,2
+np.float32,0xbf1293c9,0xbf54939f,2
+np.float32,0xbc5e73c0,0xbe744a37,2
+np.float32,0x3c03f980,0x3e4d44df,2
+np.float32,0x7da46f,0x2a7e6b20,2
+np.float32,0x5d4570,0x2a665dd0,2
+np.float32,0x3e93fbac,0x3f294287,2
+np.float32,0x7e6808fd,0x5477bfa4,2
+np.float32,0xff5aa9a6,0xd4c0c925,2
+np.float32,0xbf5206ba,0xbf6fa767,2
+np.float32,0xbf6e513e,0xbf79f6f1,2
+np.float32,0x3ed01c0f,0x3f3da20f,2
+np.float32,0xff47d93d,0xd4bb1704,2
+np.float32,0x7f466cfd,0x54baa514,2
+np.float32,0x665e10,0x2a6d9fc8,2
+np.float32,0x804d0629,0xaa5820e8,2
+np.float32,0x7e0beaa0,0x54514e7e,2
+np.float32,0xbf7fcb6c,0xbf7fee78,2
+np.float32,0x3f6c5b03,0x3f7946dd,2
+np.float32,0x3e941504,0x3f294c30,2
+np.float32,0xbf2749ad,0xbf5e26a1,2
+np.float32,0xfec2a00a,0xd493302d,2
+np.float32,0x3f15a358,0x3f560bce,2
+np.float32,0x3f15c4e7,0x3f561bcd,2
+np.float32,0xfedc8692,0xd499728c,2
+np.float32,0x7e8f6902,0x5484f180,2
+np.float32,0x7f663d62,0x54c42136,2
+np.float32,0x8027ea62,0xaa2d99b4,2
+np.float32,0x3f3d093d,0x3f67636d,2
+np.float32,0x7f118c33,0x54a85382,2
+np.float32,0x803e866a,0xaa499d43,2
+np.float32,0x80053632,0xa9b02407,2
+np.float32,0xbf36dd66,0xbf64d7af,2
+np.float32,0xbf560358,0xbf71292b,2
+np.float32,0x139a8,0x29596bc0,2
+np.float32,0xbe04f75c,0xbf01a26c,2
+np.float32,0xfe1c3268,0xd45920fa,2
+np.float32,0x7ec77f72,0x5494680c,2
+np.float32,0xbedde724,0xbf41bbba,2
+np.float32,0x3e81dbe0,0x3f220bfd,2
+np.float32,0x800373ac,0xa99989d4,2
+np.float32,0x3f7f859a,0x3f7fd72d,2
+np.float32,0x3eb9dc7e,0x3f369e80,2
+np.float32,0xff5f8eb7,0xd4c236b1,2
+np.float32,0xff1c03cb,0xd4ac44ac,2
+np.float32,0x18cfe1,0x2a14285b,2
+np.float32,0x7f21b075,0x54ae54fd,2
+np.float32,0xff490bd8,0xd4bb7680,2
+np.float32,0xbf15dc22,0xbf5626de,2
+np.float32,0xfe1d5a10,0xd459a9a3,2
+np.float32,0x750544,0x2a7875e4,2
+np.float32,0x8023d5df,0xaa2778b3,2
+np.float32,0x3e42aa08,0x3f1332b2,2
+np.float32,0x3ecaa751,0x3f3bf60d,2
+np.float32,0x0,0x0,2
+np.float32,0x80416da6,0xaa4cb011,2
+np.float32,0x3f4ea9ae,0x3f6e5e22,2
+np.float32,0x2113f4,0x2a230f8e,2
+np.float32,0x3f35c2e6,0x3f64619a,2
+np.float32,0xbf50db8a,0xbf6f3564,2
+np.float32,0xff4d5cea,0xd4bccb8a,2
+np.float32,0x7ee54420,0x549b72d2,2
+np.float32,0x64ee68,0x2a6c81f7,2
+np.float32,0x5330da,0x2a5dbfc2,2
+np.float32,0x80047f88,0xa9a7b467,2
+np.float32,0xbda01078,0xbedae800,2
+np.float32,0xfe96d05a,0xd487315f,2
+np.float32,0x8003cc10,0xa99e7ef4,2
+np.float32,0x8007b4ac,0xa9c8aa3d,2
+np.float32,0x5d4bcf,0x2a66630e,2
+np.float32,0xfdd0c0b0,0xd43dd403,2
+np.float32,0xbf7a1d82,0xbf7e05f0,2
+np.float32,0x74ca33,0x2a784c0f,2
+np.float32,0x804f45e5,0xaa5a3640,2
+np.float32,0x7e6d16aa,0x547988c4,2
+np.float32,0x807d5762,0xaa7e3714,2
+np.float32,0xfecf93d0,0xd4966229,2
+np.float32,0xfecbd25c,0xd4957890,2
+np.float32,0xff7db31c,0xd4ca93b0,2
+np.float32,0x3dac9e18,0x3ee07c4a,2
+np.float32,0xbf4b2d28,0xbf6d0509,2
+np.float32,0xbd4f4c50,0xbebd62e0,2
+np.float32,0xbd2eac40,0xbeb2e0ee,2
+np.float32,0x3d01b69b,0x3ea1fc7b,2
+np.float32,0x7ec63902,0x549416ed,2
+np.float32,0xfcc47700,0xd3ea616d,2
+np.float32,0xbf5ddec2,0xbf7413a1,2
+np.float32,0xff6a6110,0xd4c54c52,2
+np.float32,0xfdfae2a0,0xd449d335,2
+np.float32,0x7e54868c,0x547099cd,2
+np.float32,0x802b5b88,0xaa327413,2
+np.float32,0x80440e72,0xaa4f647a,2
+np.float32,0x3e313c94,0x3f0eaad5,2
+np.float32,0x3ebb492a,0x3f3715a2,2
+np.float32,0xbef56286,0xbf4856d5,2
+np.float32,0x3f0154ba,0x3f4be3a0,2
+np.float32,0xff2df86c,0xd4b2a376,2
+np.float32,0x3ef6a850,0x3f48af57,2
+np.float32,0x3d8d33e1,0x3ed1f22d,2
+np.float32,0x4dd9b9,0x2a58e615,2
+np.float32,0x7f1caf83,0x54ac83c9,2
+np.float32,0xbf7286b3,0xbf7b6d73,2
+np.float32,0x80064f88,0xa9bbbd9f,2
+np.float32,0xbf1f55fa,0xbf5a92db,2
+np.float32,0x546a81,0x2a5ed516,2
+np.float32,0xbe912880,0xbf282d0a,2
+np.float32,0x5df587,0x2a66ee6e,2
+np.float32,0x801f706c,0xaa205279,2
+np.float32,0x58cb6d,0x2a629ece,2
+np.float32,0xfe754f8c,0xd47c62da,2
+np.float32,0xbefb6f4c,0xbf49f8e7,2
+np.float32,0x80000001,0xa6a14518,2
+np.float32,0xbf067837,0xbf4e8df4,2
+np.float32,0x3e8e715c,0x3f271ee4,2
+np.float32,0x8009de9b,0xa9d9ebc8,2
+np.float32,0xbf371ff1,0xbf64f36e,2
+np.float32,0x7f5ce661,0x54c170e4,2
+np.float32,0x3f3c47d1,0x3f671467,2
+np.float32,0xfea5e5a6,0xd48b8eb2,2
+np.float32,0xff62b17f,0xd4c31e15,2
+np.float32,0xff315932,0xd4b3c98f,2
+np.float32,0xbf1c3ca8,0xbf5925b9,2
+np.float32,0x7f800000,0x7f800000,2
+np.float32,0xfdf20868,0xd4476c3b,2
+np.float32,0x5b790e,0x2a64e052,2
+np.float32,0x3f5ddf4e,0x3f7413d4,2
+np.float32,0x7f1a3182,0x54ab9861,2
+np.float32,0x3f4b906e,0x3f6d2b9d,2
+np.float32,0x7ebac760,0x54912edb,2
+np.float32,0x7f626d3f,0x54c30a7e,2
+np.float32,0x3e27b058,0x3f0c0edc,2
+np.float32,0x8041e69c,0xaa4d2de8,2
+np.float32,0x3f42cee0,0x3f69b84a,2
+np.float32,0x7ec5fe83,0x5494085b,2
+np.float32,0x9d3e6,0x29d99cde,2
+np.float32,0x3edc50c0,0x3f41452d,2
+np.float32,0xbf2c463a,0xbf60562c,2
+np.float32,0x800bfa33,0xa9e871e8,2
+np.float32,0x7c9f2c,0x2a7dba4d,2
+np.float32,0x7f2ef9fd,0x54b2fb73,2
+np.float32,0x80741847,0xaa77cdb9,2
+np.float32,0x7e9c462a,0x5488ce1b,2
+np.float32,0x3ea47ec1,0x3f2f55a9,2
+np.float32,0x7f311c43,0x54b3b4f5,2
+np.float32,0x3d8f4c73,0x3ed2facd,2
+np.float32,0x806d7bd2,0xaa7301ef,2
+np.float32,0xbf633d24,0xbf760799,2
+np.float32,0xff4f9a3f,0xd4bd7a99,2
+np.float32,0x3f6021ca,0x3f74e73d,2
+np.float32,0x7e447015,0x546a5eac,2
+np.float32,0x6bff3c,0x2a71e711,2
+np.float32,0xe9c9f,0x29f85f06,2
+np.float32,0x8009fe14,0xa9dad277,2
+np.float32,0x807cf79c,0xaa7df644,2
+np.float32,0xff440e1b,0xd4b9e608,2
+np.float32,0xbddf9a50,0xbef4b5db,2
+np.float32,0x7f3b1c39,0x54b706fc,2
+np.float32,0x3c7471a0,0x3e7c16a7,2
+np.float32,0x8065b02b,0xaa6d18ee,2
+np.float32,0x7f63a3b2,0x54c36379,2
+np.float32,0xbe9c9d92,0xbf2c7d33,2
+np.float32,0x3d93aad3,0x3ed51a2e,2
+np.float32,0xbf41b040,0xbf694571,2
+np.float32,0x80396b9e,0xaa43f899,2
+np.float64,0x800fa025695f404b,0xaaa4000ff64bb00c,2
+np.float64,0xbfecc00198f98003,0xbfeee0b623fbd94b,2
+np.float64,0x7f9eeb60b03dd6c0,0x55291bf8554bb303,2
+np.float64,0x3fba74485634e890,0x3fde08710bdb148d,2
+np.float64,0xbfdd9a75193b34ea,0xbfe8bf711660a2f5,2
+np.float64,0xbfcf92e17a3f25c4,0xbfe4119eda6f3773,2
+np.float64,0xbfe359e2ba66b3c6,0xbfeb0f7ae97ea142,2
+np.float64,0x20791a5640f24,0x2a9441f13d262bed,2
+np.float64,0x3fe455fbfae8abf8,0x3feb830d63e1022c,2
+np.float64,0xbd112b7b7a226,0x2aa238c097ec269a,2
+np.float64,0x93349ba126694,0x2aa0c363cd74465a,2
+np.float64,0x20300cd440602,0x2a9432b4f4081209,2
+np.float64,0x3fdcfae677b9f5cc,0x3fe892a9ee56fe8d,2
+np.float64,0xbfefaae3f7bf55c8,0xbfefe388066132c4,2
+np.float64,0x1a7d6eb634faf,0x2a92ed9851d29ab5,2
+np.float64,0x7fd5308d39aa6119,0x553be444e30326c6,2
+np.float64,0xff811c7390223900,0xd5205cb404952fa7,2
+np.float64,0x80083d24aff07a4a,0xaaa0285cf764d898,2
+np.float64,0x800633810ccc6703,0xaa9d65341419586b,2
+np.float64,0x800ff456223fe8ac,0xaaa423bbcc24dff1,2
+np.float64,0x7fde5c99aebcb932,0x553f71be7d6d9daa,2
+np.float64,0x3fed961c4b3b2c39,0x3fef2ca146270cac,2
+np.float64,0x7fe744d30c6e89a5,0x554220a4cdc78e62,2
+np.float64,0x3fd8f527c7b1ea50,0x3fe76101085be1cb,2
+np.float64,0xbfc96a14b232d428,0xbfe2ab1a8962606c,2
+np.float64,0xffe85f540cf0bea7,0xd54268dff964519a,2
+np.float64,0x800e3be0fe7c77c2,0xaaa3634efd7f020b,2
+np.float64,0x3feb90d032f721a0,0x3fee72a4579e8b12,2
+np.float64,0xffe05674aaa0ace9,0xd5401c9e3fb4abcf,2
+np.float64,0x3fefc2e32c3f85c6,0x3fefeb940924bf42,2
+np.float64,0xbfecfd89e9f9fb14,0xbfeef6addf73ee49,2
+np.float64,0xf5862717eb0c5,0x2aa3e1428780382d,2
+np.float64,0xffc3003b32260078,0xd53558f92202dcdb,2
+np.float64,0x3feb4c152c36982a,0x3fee5940f7da0825,2
+np.float64,0x3fe7147b002e28f6,0x3fecb2948f46d1e3,2
+np.float64,0x7fe00ad9b4a015b2,0x5540039d15e1da54,2
+np.float64,0x8010000000000000,0xaaa428a2f98d728b,2
+np.float64,0xbfd3a41bfea74838,0xbfe595ab45b1be91,2
+np.float64,0x7fdbfd6e5537fadc,0x553e9a6e1107b8d0,2
+np.float64,0x800151d9d9a2a3b4,0xaa918cd8fb63f40f,2
+np.float64,0x7fe6828401ad0507,0x5541eda05dcd1fcf,2
+np.float64,0x3fdae1e7a1b5c3d0,0x3fe7f711e72ecc35,2
+np.float64,0x7fdf4936133e926b,0x553fc29c8d5edea3,2
+np.float64,0x80079de12d4f3bc3,0xaa9f7b06a9286da4,2
+np.float64,0x3fe1261cade24c39,0x3fe9fe09488e417a,2
+np.float64,0xbfc20dce21241b9c,0xbfe0a842fb207a28,2
+np.float64,0x3fe3285dfa2650bc,0x3feaf85215f59ef9,2
+np.float64,0x7fe42b93aea85726,0x554148c3c3bb35e3,2
+np.float64,0xffe6c74e7f6d8e9c,0xd541ffd13fa36dbd,2
+np.float64,0x3fe73ea139ee7d42,0x3fecc402242ab7d3,2
+np.float64,0xffbd4b46be3a9690,0xd53392de917c72e4,2
+np.float64,0x800caed8df395db2,0xaaa2a811a02e6be4,2
+np.float64,0x800aacdb6c9559b7,0xaaa19d6fbc8feebf,2
+np.float64,0x839fb4eb073f7,0x2aa0264b98327c12,2
+np.float64,0xffd0157ba9a02af8,0xd5397157a11c0d05,2
+np.float64,0x7fddc8ff173b91fd,0x553f3e7663fb2ac7,2
+np.float64,0x67b365facf66d,0x2a9dd4d838b0d853,2
+np.float64,0xffe12e7fc7225cff,0xd5406272a83a8e1b,2
+np.float64,0x7fea5b19a034b632,0x5542e567658b3e36,2
+np.float64,0x124989d824932,0x2a90ba8dc7a39532,2
+np.float64,0xffe12ef098225de0,0xd54062968450a078,2
+np.float64,0x3fea2f44a3f45e8a,0x3fedee3c461f4716,2
+np.float64,0x3fe6b033e66d6068,0x3fec88c8035e06b1,2
+np.float64,0x3fe928a2ccf25146,0x3fed88d4cde7a700,2
+np.float64,0x3feead27e97d5a50,0x3fef8d7537d82e60,2
+np.float64,0x8003ab80b6875702,0xaa98adfedd7715a9,2
+np.float64,0x45a405828b481,0x2a9a1fa99a4eff1e,2
+np.float64,0x8002ddebad85bbd8,0xaa96babfda4e0031,2
+np.float64,0x3fc278c32824f186,0x3fe0c8e7c979fbd5,2
+np.float64,0x2e10fffc5c221,0x2a96c30a766d06fa,2
+np.float64,0xffd6ba8c2ead7518,0xd53c8d1d92bc2788,2
+np.float64,0xbfeb5ec3a036bd87,0xbfee602bbf0a0d01,2
+np.float64,0x3fed5bd58f7ab7ab,0x3fef181bf591a4a7,2
+np.float64,0x7feb5274a5b6a4e8,0x55431fcf81876218,2
+np.float64,0xaf8fd6cf5f1fb,0x2aa1c6edbb1e2aaf,2
+np.float64,0x7fece718f179ce31,0x55437c74efb90933,2
+np.float64,0xbfa3c42d0c278860,0xbfd5a16407c77e73,2
+np.float64,0x800b5cff0576b9fe,0xaaa1fc4ecb0dec4f,2
+np.float64,0x800be89ae557d136,0xaaa244d115fc0963,2
+np.float64,0x800d2578f5ba4af2,0xaaa2e18a3a3fc134,2
+np.float64,0x80090ff93e321ff3,0xaaa0add578e3cc3c,2
+np.float64,0x28c5a240518c,0x2a81587cccd7e202,2
+np.float64,0x7fec066929780cd1,0x55434971435d1069,2
+np.float64,0x7fc84d4d15309a99,0x55372c204515694f,2
+np.float64,0xffe070a75de0e14e,0xd54025365046dad2,2
+np.float64,0x7fe5b27cc36b64f9,0x5541b5b822f0b6ca,2
+np.float64,0x3fdea35ac8bd46b6,0x3fe9086a0fb792c2,2
+np.float64,0xbfe79996f7af332e,0xbfece9571d37a5b3,2
+np.float64,0xffdfb47f943f6900,0xd53fe6c14c3366db,2
+np.float64,0xc015cf63802ba,0x2aa2517164d075f4,2
+np.float64,0x7feba98948375312,0x5543340b5b1f1181,2
+np.float64,0x8008678e6550cf1d,0xaaa043e7cea90da5,2
+np.float64,0x3fb11b92fa223726,0x3fd9f8b53be4d90b,2
+np.float64,0x7fc9b18cf0336319,0x55379b42da882047,2
+np.float64,0xbfe5043e736a087d,0xbfebd0c67db7a8e3,2
+np.float64,0x7fde88546a3d10a8,0x553f80cfe5bcf5fe,2
+np.float64,0x8006a6c82dcd4d91,0xaa9e171d182ba049,2
+np.float64,0xbfa0f707ac21ee10,0xbfd48e5d3faa1699,2
+np.float64,0xbfe7716bffaee2d8,0xbfecd8e6abfb8964,2
+np.float64,0x9511ccab2a23a,0x2aa0d56d748f0313,2
+np.float64,0x8003ddb9b847bb74,0xaa991ca06fd9d308,2
+np.float64,0x80030710fac60e23,0xaa9725845ac95fe8,2
+np.float64,0xffece5bbaeb9cb76,0xd5437c2670f894f4,2
+np.float64,0x3fd9be5c72b37cb9,0x3fe79f2e932a5708,2
+np.float64,0x1f050cca3e0a3,0x2a93f36499fe5228,2
+np.float64,0x3fd5422becaa8458,0x3fe6295d6150df58,2
+np.float64,0xffd72c050e2e580a,0xd53cbc52d73b495f,2
+np.float64,0xbfe66d5235ecdaa4,0xbfec6ca27e60bf23,2
+np.float64,0x17ac49a42f58a,0x2a923b5b757087a0,2
+np.float64,0xffd39edc40273db8,0xd53b2f7bb99b96bf,2
+np.float64,0x7fde6cf009bcd9df,0x553f77614eb30d75,2
+np.float64,0x80042b4c3fa85699,0xaa99c05fbdd057db,2
+np.float64,0xbfde5547f8bcaa90,0xbfe8f3147d67a940,2
+np.float64,0xbfdd02f9bf3a05f4,0xbfe894f2048aa3fe,2
+np.float64,0xbfa20ec82c241d90,0xbfd4fd02ee55aac7,2
+np.float64,0x8002f670f8c5ece3,0xaa96fad7e53dd479,2
+np.float64,0x80059f24d7eb3e4a,0xaa9c7312dae0d7bc,2
+np.float64,0x7fe6ae7423ad5ce7,0x5541f9430be53062,2
+np.float64,0xe135ea79c26be,0x2aa350d8f8c526e1,2
+np.float64,0x3fec188ce4f8311a,0x3feea44d21c23f68,2
+np.float64,0x800355688286aad2,0xaa97e6ca51eb8357,2
+np.float64,0xa2d6530b45acb,0x2aa15635bbd366e8,2
+np.float64,0x600e0150c01c1,0x2a9d1456ea6c239c,2
+np.float64,0x8009c30863338611,0xaaa118f94b188bcf,2
+np.float64,0x3fe7e4c0dfefc982,0x3fed07e8480b8c07,2
+np.float64,0xbfddac6407bb58c8,0xbfe8c46f63a50225,2
+np.float64,0xbc85e977790bd,0x2aa2344636ed713d,2
+np.float64,0xfff0000000000000,0xfff0000000000000,2
+np.float64,0xffcd1570303a2ae0,0xd5389a27d5148701,2
+np.float64,0xbf937334d026e660,0xbfd113762e4e29a7,2
+np.float64,0x3fdbfdaa9b37fb55,0x3fe84a425fdff7df,2
+np.float64,0xffc10800f5221000,0xd5349535ffe12030,2
+np.float64,0xaf40f3755e81f,0x2aa1c443af16cd27,2
+np.float64,0x800f7da34f7efb47,0xaaa3f14bf25fc89f,2
+np.float64,0xffe4a60125a94c02,0xd5416b764a294128,2
+np.float64,0xbf8e25aa903c4b40,0xbfcf5ebc275b4789,2
+np.float64,0x3fca681bbb34d038,0x3fe2e882bcaee320,2
+np.float64,0xbfd0f3c9c1a1e794,0xbfe48d0df7b47572,2
+np.float64,0xffeb99b49d373368,0xd5433060dc641910,2
+np.float64,0x3fe554fb916aa9f8,0x3febf437cf30bd67,2
+np.float64,0x80079518d0af2a32,0xaa9f6ee87044745a,2
+np.float64,0x5e01a8a0bc036,0x2a9cdf0badf222c3,2
+np.float64,0xbfea9831b3f53064,0xbfee1601ee953ab3,2
+np.float64,0xbfc369d1a826d3a4,0xbfe110b675c311e0,2
+np.float64,0xa82e640d505cd,0x2aa1863d4e523b9c,2
+np.float64,0x3fe506d70a2a0dae,0x3febd1eba3aa83fa,2
+np.float64,0xcbacba7197598,0x2aa2adeb9927f1f2,2
+np.float64,0xc112d6038225b,0x2aa25978f12038b0,2
+np.float64,0xffa7f5f44c2febf0,0xd52d0ede02d4e18b,2
+np.float64,0x8006f218e34de433,0xaa9e870cf373b4eb,2
+np.float64,0xffe6d9a5d06db34b,0xd54204a4adc608c7,2
+np.float64,0x7fe717210eae2e41,0x554214bf3e2b5228,2
+np.float64,0xbfdd4b45cdba968c,0xbfe8a94c7f225f8e,2
+np.float64,0x883356571066b,0x2aa055ab0b2a8833,2
+np.float64,0x3fe307fc02a60ff8,0x3feae9175053288f,2
+np.float64,0x3fefa985f77f530c,0x3fefe31289446615,2
+np.float64,0x8005698a98aad316,0xaa9c17814ff7d630,2
+np.float64,0x3fea77333c74ee66,0x3fee098ba70e10fd,2
+np.float64,0xbfd1d00b0023a016,0xbfe4e497fd1cbea1,2
+np.float64,0x80009b0c39813619,0xaa8b130a6909cc3f,2
+np.float64,0x3fdbeb896fb7d714,0x3fe84502ba5437f8,2
+np.float64,0x3fb6e7e3562dcfc7,0x3fdca00d35c389ad,2
+np.float64,0xb2d46ebf65a8e,0x2aa1e2fe158d0838,2
+np.float64,0xbfd5453266aa8a64,0xbfe62a6a74c8ef6e,2
+np.float64,0x7fe993aa07732753,0x5542b5438bf31cb7,2
+np.float64,0xbfda5a098cb4b414,0xbfe7ce6d4d606203,2
+np.float64,0xbfe40c3ce068187a,0xbfeb61a32c57a6d0,2
+np.float64,0x3fcf17671d3e2ed0,0x3fe3f753170ab686,2
+np.float64,0xbfe4f814b6e9f02a,0xbfebcb67c60b7b08,2
+np.float64,0x800efedf59fdfdbf,0xaaa3ba4ed44ad45a,2
+np.float64,0x800420b556e8416b,0xaa99aa7fb14edeab,2
+np.float64,0xbf6e4ae6403c9600,0xbfc3cb2b29923989,2
+np.float64,0x3fda5c760a34b8ec,0x3fe7cf2821c52391,2
+np.float64,0x7f898faac0331f55,0x5522b44a01408188,2
+np.float64,0x3fd55af4b7aab5e9,0x3fe631f6d19503b3,2
+np.float64,0xbfa30a255c261450,0xbfd55caf0826361d,2
+np.float64,0x7fdfb801343f7001,0x553fe7ee50b9199a,2
+np.float64,0x7fa89ee91c313dd1,0x552d528ca2a4d659,2
+np.float64,0xffea72921d34e524,0xd542eb01af2e470d,2
+np.float64,0x3feddf0f33fbbe1e,0x3fef462b67fc0a91,2
+np.float64,0x3fe36700b566ce01,0x3feb1596caa8eff7,2
+np.float64,0x7fe6284a25ac5093,0x5541d58be3956601,2
+np.float64,0xffda16f7c8b42df0,0xd53de4f722485205,2
+np.float64,0x7f9355b94026ab72,0x552578cdeb41d2ca,2
+np.float64,0xffd3a9b022275360,0xd53b347b02dcea21,2
+np.float64,0x3fcb7f4f4a36fe9f,0x3fe32a40e9f6c1aa,2
+np.float64,0x7fdb958836372b0f,0x553e746103f92111,2
+np.float64,0x3fd37761c0a6eec4,0x3fe5853c5654027e,2
+np.float64,0x3fe449f1a2e893e4,0x3feb7d9e4eacc356,2
+np.float64,0x80077dfbef0efbf9,0xaa9f4ed788d2fadd,2
+np.float64,0x4823aa7890476,0x2a9a6eb4b653bad5,2
+np.float64,0xbfede01a373bc034,0xbfef468895fbcd29,2
+np.float64,0xbfe2bac5f125758c,0xbfeac4811c4dd66f,2
+np.float64,0x3fec10373af8206e,0x3feea14529e0f178,2
+np.float64,0x3fe305e30ca60bc6,0x3feae81a2f9d0302,2
+np.float64,0xa9668c5f52cd2,0x2aa1910e3a8f2113,2
+np.float64,0xbfd98b1717b3162e,0xbfe78f75995335d2,2
+np.float64,0x800fa649c35f4c94,0xaaa402ae79026a8f,2
+np.float64,0xbfb07dacf620fb58,0xbfd9a7d33d93a30f,2
+np.float64,0x80015812f382b027,0xaa91a843e9c85c0e,2
+np.float64,0x3fc687d96c2d0fb3,0x3fe1ef0ac16319c5,2
+np.float64,0xbfecad2ecd795a5e,0xbfeed9f786697af0,2
+np.float64,0x1608c1242c119,0x2a91cd11e9b4ccd2,2
+np.float64,0x6df775e8dbeef,0x2a9e6ba8c71130eb,2
+np.float64,0xffe96e9332b2dd26,0xd542ac342d06299b,2
+np.float64,0x7fecb6a3b8396d46,0x5543718af8162472,2
+np.float64,0x800d379f893a6f3f,0xaaa2ea36bbcb9308,2
+np.float64,0x3f924cdb202499b6,0x3fd0bb90af8d1f79,2
+np.float64,0x0,0x0,2
+np.float64,0x7feaf3b365f5e766,0x5543099a160e2427,2
+np.float64,0x3fea169ed0742d3e,0x3fede4d526e404f8,2
+np.float64,0x7feaf5f2f775ebe5,0x55430a2196c5f35a,2
+np.float64,0xbfc80d4429301a88,0xbfe2541f2ddd3334,2
+np.float64,0xffc75203b32ea408,0xd536db2837068689,2
+np.float64,0xffed2850e63a50a1,0xd5438b1217b72b8a,2
+np.float64,0x7fc16b0e7f22d61c,0x5534bcd0bfddb6f0,2
+np.float64,0x7feee8ed09fdd1d9,0x5543ed5b3ca483ab,2
+np.float64,0x7fb6c7ee662d8fdc,0x5531fffb5d46dafb,2
+np.float64,0x3fd77cebf8aef9d8,0x3fe6e9242e2bd29d,2
+np.float64,0x3f81c33f70238680,0x3fca4c7f3c9848f7,2
+np.float64,0x3fd59fea92ab3fd5,0x3fe649c1558cadd5,2
+np.float64,0xffeba82d4bf7505a,0xd54333bad387f7bd,2
+np.float64,0xffd37630e1a6ec62,0xd53b1ca62818c670,2
+np.float64,0xffec2c1e70b8583c,0xd5435213dcd27c22,2
+np.float64,0x7fec206971f840d2,0x55434f6660a8ae41,2
+np.float64,0x3fed2964adba52c9,0x3fef0642fe72e894,2
+np.float64,0xffd08e30d6211c62,0xd539b060e0ae02da,2
+np.float64,0x3e5f976c7cbf4,0x2a992e6ff991a122,2
+np.float64,0xffe6eee761adddce,0xd5420a393c67182f,2
+np.float64,0xbfe8ec9a31f1d934,0xbfed714426f58147,2
+np.float64,0x7fefffffffffffff,0x554428a2f98d728b,2
+np.float64,0x3fb3ae8b2c275d16,0x3fdb36b81b18a546,2
+np.float64,0x800f73df4dfee7bf,0xaaa3ed1a3e2cf49c,2
+np.float64,0xffd0c8873b21910e,0xd539ce6a3eab5dfd,2
+np.float64,0x3facd6c49439ad80,0x3fd8886f46335df1,2
+np.float64,0x3935859c726b2,0x2a98775f6438dbb1,2
+np.float64,0x7feed879fbfdb0f3,0x5543e9d1ac239469,2
+np.float64,0xbfe84dd990f09bb3,0xbfed323af09543b1,2
+np.float64,0xbfe767cc5a6ecf98,0xbfecd4f39aedbacb,2
+np.float64,0xffd8bd91d5b17b24,0xd53d5eb3734a2609,2
+np.float64,0xbfe13edeb2a27dbe,0xbfea0a856f0b9656,2
+np.float64,0xd933dd53b267c,0x2aa3158784e428c9,2
+np.float64,0xbfef6fef987edfdf,0xbfefcfb1c160462b,2
+np.float64,0x8009eeda4893ddb5,0xaaa13268a41045b1,2
+np.float64,0xab48c7a156919,0x2aa1a1a9c124c87d,2
+np.float64,0xa997931d532f3,0x2aa192bfe5b7bbb4,2
+np.float64,0xffe39ce8b1e739d1,0xd5411fa1c5c2cbd8,2
+np.float64,0x7e7ac2f6fcf59,0x2a9fdf6f263a9e9f,2
+np.float64,0xbfee1e35a6fc3c6b,0xbfef5c25d32b4047,2
+np.float64,0xffe5589c626ab138,0xd5419d220cc9a6da,2
+np.float64,0x7fe12509bf224a12,0x55405f7036dc5932,2
+np.float64,0xa6f15ba94de2c,0x2aa17b3367b1fc1b,2
+np.float64,0x3fca8adbfa3515b8,0x3fe2f0ca775749e5,2
+np.float64,0xbfcb03aa21360754,0xbfe30d5b90ca41f7,2
+np.float64,0x3fefafb2da7f5f66,0x3fefe5251aead4e7,2
+np.float64,0xffd90a59d23214b4,0xd53d7cf63a644f0e,2
+np.float64,0x3fba499988349333,0x3fddf84154fab7e5,2
+np.float64,0x800a76a0bc54ed42,0xaaa17f68cf67f2fa,2
+np.float64,0x3fea33d15bb467a3,0x3fedeff7f445b2ff,2
+np.float64,0x8005d9b0726bb362,0xaa9cd48624afeca9,2
+np.float64,0x7febf42e9a77e85c,0x55434541d8073376,2
+np.float64,0xbfedfc4469bbf889,0xbfef505989f7ee7d,2
+np.float64,0x8001211f1422423f,0xaa90a9889d865349,2
+np.float64,0x800e852f7fdd0a5f,0xaaa3845f11917f8e,2
+np.float64,0xffefd613c87fac27,0xd5441fd17ec669b4,2
+np.float64,0x7fed2a74543a54e8,0x55438b8c637da8b8,2
+np.float64,0xb83d50ff707aa,0x2aa210b4fc11e4b2,2
+np.float64,0x10000000000000,0x2aa428a2f98d728b,2
+np.float64,0x474ad9208e97,0x2a84e5a31530368a,2
+np.float64,0xffd0c5498ea18a94,0xd539ccc0e5cb425e,2
+np.float64,0x8001a8e9c82351d4,0xaa92f1aee6ca5b7c,2
+np.float64,0xd28db1e5a51b6,0x2aa2e328c0788f4a,2
+np.float64,0x3bf734ac77ee7,0x2a98da65c014b761,2
+np.float64,0x3fe56e17c96adc30,0x3febff2b6b829b7a,2
+np.float64,0x7783113eef063,0x2a9f46c3f09eb42c,2
+np.float64,0x3fd69d4e42ad3a9d,0x3fe69f83a21679f4,2
+np.float64,0x3fd34f4841a69e90,0x3fe5766b3c771616,2
+np.float64,0x3febb49895b76931,0x3fee7fcb603416c9,2
+np.float64,0x7fe8d6cb55f1ad96,0x554286c3b3bf4313,2
+np.float64,0xbfe67c6ba36cf8d8,0xbfec730218f2e284,2
+np.float64,0xffef9d97723f3b2e,0xd54413e38b6c29be,2
+np.float64,0x12d8cd2a25b1b,0x2a90e5ccd37b8563,2
+np.float64,0x81fe019103fc0,0x2aa01524155e73c5,2
+np.float64,0x7fe95d546f72baa8,0x5542a7fabfd425ff,2
+np.float64,0x800e742f1f9ce85e,0xaaa37cbe09e1f874,2
+np.float64,0xffd96bd3a732d7a8,0xd53da3086071264a,2
+np.float64,0x4ef2691e9de4e,0x2a9b3d316047fd6d,2
+np.float64,0x1a91684c3522e,0x2a92f25913c213de,2
+np.float64,0x3d5151b87aa2b,0x2a9909dbd9a44a84,2
+np.float64,0x800d9049435b2093,0xaaa31424e32d94a2,2
+np.float64,0xffe5b25fcc2b64bf,0xd541b5b0416b40b5,2
+np.float64,0xffe0eb784c21d6f0,0xd5404d083c3d6bc6,2
+np.float64,0x8007ceefbf0f9de0,0xaa9fbe0d739368b4,2
+np.float64,0xb78529416f0b,0x2a8ca3b29b5b3f18,2
+np.float64,0x7fba61130034c225,0x5532e6d4ca0f2918,2
+np.float64,0x3fba8d67ae351acf,0x3fde11efd6239b09,2
+np.float64,0x3fe7f24c576fe498,0x3fed0d63947a854d,2
+np.float64,0x2bb58dec576b3,0x2a965de7fca12aff,2
+np.float64,0xbfe86ceec4f0d9de,0xbfed3ea7f1d084e2,2
+np.float64,0x7fd1a7f7bca34fee,0x553a3f01b67fad2a,2
+np.float64,0x3fd9a43acfb34874,0x3fe7972dc5d8dfd6,2
+np.float64,0x7fd9861acdb30c35,0x553dad3b1bbb3b4d,2
+np.float64,0xffecc0c388398186,0xd54373d3b903deec,2
+np.float64,0x3fa6f86e9c2df0e0,0x3fd6bdbe40fcf710,2
+np.float64,0x800ddd99815bbb33,0xaaa33820d2f889bb,2
+np.float64,0x7fe087089b610e10,0x55402c868348a6d3,2
+np.float64,0x3fdf43d249be87a5,0x3fe933d29fbf7c23,2
+np.float64,0x7fe4f734c7a9ee69,0x5541822e56c40725,2
+np.float64,0x3feb39a9d3b67354,0x3fee526bf1f69f0e,2
+np.float64,0x3fe61454a0ec28a9,0x3fec46d7c36f7566,2
+np.float64,0xbfeafaa0a375f541,0xbfee3af2e49d457a,2
+np.float64,0x3fda7378e1b4e6f0,0x3fe7d613a3f92c40,2
+np.float64,0xe3e31c5fc7c64,0x2aa3645c12e26171,2
+np.float64,0xbfe97a556df2f4ab,0xbfeda8aa84cf3544,2
+np.float64,0xff612f9c80225f00,0xd514a51e5a2a8a97,2
+np.float64,0x800c51c8a0f8a391,0xaaa279fe7d40b50b,2
+np.float64,0xffd6f9d2312df3a4,0xd53ca783a5f8d110,2
+np.float64,0xbfead48bd7f5a918,0xbfee2cb2f89c5e57,2
+np.float64,0x800f5949e89eb294,0xaaa3e1a67a10cfef,2
+np.float64,0x800faf292b7f5e52,0xaaa40675e0c96cfd,2
+np.float64,0xbfedc238453b8470,0xbfef3c179d2d0209,2
+np.float64,0x3feb0443c5760888,0x3fee3e8bf29089c2,2
+np.float64,0xb26f69e164ded,0x2aa1df9f3dd7d765,2
+np.float64,0x3fcacdc053359b80,0x3fe300a67765b667,2
+np.float64,0x3fe8b274647164e8,0x3fed5a4cd4da8155,2
+np.float64,0x291e6782523ce,0x2a95ea7ac1b13a68,2
+np.float64,0xbfc4fc094e29f814,0xbfe1838671fc8513,2
+np.float64,0x3fbf1301f23e2600,0x3fdfb03a6f13e597,2
+np.float64,0xffeb36554ab66caa,0xd543193d8181e4f9,2
+np.float64,0xbfd969a52db2d34a,0xbfe78528ae61f16d,2
+np.float64,0x800cccd04d3999a1,0xaaa2b6b7a2d2d2d6,2
+np.float64,0x808eb4cb011d7,0x2aa005effecb2b4a,2
+np.float64,0x7fe839b3f9b07367,0x55425f61e344cd6d,2
+np.float64,0xbfeb25b6ed764b6e,0xbfee4b0234fee365,2
+np.float64,0xffefffffffffffff,0xd54428a2f98d728b,2
+np.float64,0xbfe01305da60260c,0xbfe9700b784af7e9,2
+np.float64,0xffcbf36b0a37e6d8,0xd538474b1d74ffe1,2
+np.float64,0xffaeebe3e83dd7c0,0xd52fa2e8dabf7209,2
+np.float64,0xbfd9913bf0b32278,0xbfe7915907aab13c,2
+np.float64,0xbfe7d125d9efa24c,0xbfecfff563177706,2
+np.float64,0xbfee98d23cbd31a4,0xbfef867ae393e446,2
+np.float64,0x3fe30efb67e61df6,0x3feaec6344633d11,2
+np.float64,0x1,0x2990000000000000,2
+np.float64,0x7fd5524fd3aaa49f,0x553bf30d18ab877e,2
+np.float64,0xc98b403f93168,0x2aa29d2fadb13c07,2
+np.float64,0xffe57080046ae100,0xd541a3b1b687360e,2
+np.float64,0x7fe20bade5e4175b,0x5540a79b94294f40,2
+np.float64,0x3fe155400a22aa80,0x3fea15c45f5b5837,2
+np.float64,0x7fe428dc8f6851b8,0x554147fd2ce93cc1,2
+np.float64,0xffefb77eb67f6efc,0xd544195dcaff4980,2
+np.float64,0x3fe49e733b293ce6,0x3feba394b833452a,2
+np.float64,0x38e01e3e71c05,0x2a986b2c955bad21,2
+np.float64,0x7fe735eb376e6bd5,0x55421cc51290d92d,2
+np.float64,0xbfd81d8644b03b0c,0xbfe71ce6d6fbd51a,2
+np.float64,0x8009a32325134647,0xaaa10645d0e6b0d7,2
+np.float64,0x56031ab8ac064,0x2a9c074be40b1f80,2
+np.float64,0xff8989aa30331340,0xd522b2d319a0ac6e,2
+np.float64,0xbfd6c183082d8306,0xbfe6ab8ffb3a8293,2
+np.float64,0x7ff8000000000000,0x7ff8000000000000,2
+np.float64,0xbfe17b68b1e2f6d2,0xbfea28dac8e0c457,2
+np.float64,0x3fbb50e42236a1c8,0x3fde5b090d51e3bd,2
+np.float64,0xffc2bb7cbf2576f8,0xd5353f1b3571c17f,2
+np.float64,0xbfe7576bca6eaed8,0xbfecce388241f47c,2
+np.float64,0x3fe7b52b04ef6a56,0x3fecf495bef99e7e,2
+np.float64,0xffe5511af82aa236,0xd5419b11524e8350,2
+np.float64,0xbfe66d5edf2cdabe,0xbfec6ca7d7b5be8c,2
+np.float64,0xc84a0ba790942,0x2aa29346f16a2cb4,2
+np.float64,0x6db5e7a0db6be,0x2a9e659c0e8244a0,2
+np.float64,0x7fef8f7b647f1ef6,0x554410e67af75d27,2
+np.float64,0xbfe2b4ada7e5695c,0xbfeac1997ec5a064,2
+np.float64,0xbfe99372e03326e6,0xbfedb2662b287543,2
+np.float64,0x3fa45d352428ba6a,0x3fd5d8a895423abb,2
+np.float64,0x3fa029695c2052d3,0x3fd439f858998886,2
+np.float64,0xffe0a9bd3261537a,0xd54037d0cd8bfcda,2
+np.float64,0xbfef83e09a7f07c1,0xbfefd66a4070ce73,2
+np.float64,0x7fee3dcc31fc7b97,0x5543c8503869407e,2
+np.float64,0xffbd16f1603a2de0,0xd533872fa5be978b,2
+np.float64,0xbfe8173141b02e62,0xbfed1c478614c6f4,2
+np.float64,0xbfef57aa277eaf54,0xbfefc77fdab27771,2
+np.float64,0x7fe883a02f31073f,0x554271ff0e3208da,2
+np.float64,0xe3adb63bc75b7,0x2aa362d833d0e41c,2
+np.float64,0x8001c430bac38862,0xaa93575026d26510,2
+np.float64,0x12fb347225f67,0x2a90f00eb9edb3fe,2
+np.float64,0x3fe53f83cbaa7f08,0x3febead40de452c2,2
+np.float64,0xbfe7f67227efece4,0xbfed0f10e32ad220,2
+np.float64,0xb8c5b45d718b7,0x2aa2152912cda86d,2
+np.float64,0x3fd23bb734a4776e,0x3fe50e5d3008c095,2
+np.float64,0x8001fd558ee3faac,0xaa941faa1f7ed450,2
+np.float64,0xffe6bbeda9ed77db,0xd541fcd185a63afa,2
+np.float64,0x4361d79086c3c,0x2a99d692237c30b7,2
+np.float64,0xbfd012f004a025e0,0xbfe43093e290fd0d,2
+np.float64,0xffe1d8850423b10a,0xd54097cf79d8d01e,2
+np.float64,0x3fccf4df7939e9bf,0x3fe37f8cf8be6436,2
+np.float64,0x8000546bc6c0a8d8,0xaa861bb3588556f2,2
+np.float64,0xbfecb4d6ba7969ae,0xbfeedcb6239135fe,2
+np.float64,0xbfaeb425cc3d6850,0xbfd90cfc103bb896,2
+np.float64,0x800ec037ec7d8070,0xaaa39eae8bde9774,2
+np.float64,0xbfeeaf863dfd5f0c,0xbfef8e4514772a8a,2
+np.float64,0xffec67c6c4b8cf8d,0xd5435fad89f900cf,2
+np.float64,0x3fda4498da348932,0x3fe7c7f6b3f84048,2
+np.float64,0xbfd05fd3dea0bfa8,0xbfe4509265a9b65f,2
+np.float64,0x3fe42cc713a8598e,0x3feb706ba9cd533c,2
+np.float64,0xec22d4d7d845b,0x2aa39f8cccb9711c,2
+np.float64,0x7fda30606c3460c0,0x553deea865065196,2
+np.float64,0xbfd58cba8bab1976,0xbfe64327ce32d611,2
+np.float64,0xadd521c75baa4,0x2aa1b7efce201a98,2
+np.float64,0x7fed43c1027a8781,0x55439131832b6429,2
+np.float64,0x800bee278fb7dc4f,0xaaa247a71e776db4,2
+np.float64,0xbfe9be5dd2737cbc,0xbfedc2f9501755b0,2
+np.float64,0x8003f4854447e90b,0xaa994d9b5372b13b,2
+np.float64,0xbfe5d0f867eba1f1,0xbfec29f8dd8b33a4,2
+np.float64,0x3fd79102d5af2206,0x3fe6efaa7a1efddb,2
+np.float64,0xbfeae783c835cf08,0xbfee33cdb4a44e81,2
+np.float64,0x3fcf1713e83e2e28,0x3fe3f7414753ddfb,2
+np.float64,0xffe5ab3cff2b567a,0xd541b3bf0213274a,2
+np.float64,0x7fe0fc65d8a1f8cb,0x554052761ac96386,2
+np.float64,0x7e81292efd026,0x2a9fdff8c01ae86f,2
+np.float64,0x80091176039222ec,0xaaa0aebf0565dfa6,2
+np.float64,0x800d2bf5ab5a57ec,0xaaa2e4a4c31e7e29,2
+np.float64,0xffd1912ea923225e,0xd53a33b2856726ab,2
+np.float64,0x800869918ed0d323,0xaaa0453408e1295d,2
+np.float64,0xffba0898fa341130,0xd532d19b202a9646,2
+np.float64,0xbfe09fac29613f58,0xbfe9b9687b5811a1,2
+np.float64,0xbfbd4ae82e3a95d0,0xbfdf1220f6f0fdfa,2
+np.float64,0xffea11d27bb423a4,0xd542d3d3e1522474,2
+np.float64,0xbfe6b05705ad60ae,0xbfec88d6bcab2683,2
+np.float64,0x3fe624a3f2ec4948,0x3fec4dcc78ddf871,2
+np.float64,0x53483018a6907,0x2a9bba8f92006b69,2
+np.float64,0xbfec0a6eeb7814de,0xbfee9f2a741248d7,2
+np.float64,0x3fe8c8ce6371919d,0x3fed63250c643482,2
+np.float64,0xbfe26b0ef964d61e,0xbfea9e511db83437,2
+np.float64,0xffa0408784208110,0xd52987f62c369ae9,2
+np.float64,0xffc153abc322a758,0xd534b384b5c5fe63,2
+np.float64,0xbfbdce88a63b9d10,0xbfdf4065ef0b01d4,2
+np.float64,0xffed4a4136fa9482,0xd54392a450f8b0af,2
+np.float64,0x8007aa18748f5432,0xaa9f8bd2226d4299,2
+np.float64,0xbfdab4d3e8b569a8,0xbfe7e9a5402540e5,2
+np.float64,0x7fe68914f92d1229,0x5541ef5e78fa35de,2
+np.float64,0x800a538bb1b4a718,0xaaa16bc487711295,2
+np.float64,0xffe02edbc8605db7,0xd5400f8f713df890,2
+np.float64,0xffe8968053712d00,0xd54276b9cc7f460a,2
+np.float64,0x800a4ce211d499c5,0xaaa1680491deb40c,2
+np.float64,0x3f988080f8310102,0x3fd2713691e99329,2
+np.float64,0xf64e42a7ec9c9,0x2aa3e6a7af780878,2
+np.float64,0xff73cc7100279900,0xd51b4478c3409618,2
+np.float64,0x71e6722ce3ccf,0x2a9ec76ddf296ce0,2
+np.float64,0x8006ca16ab0d942e,0xaa9e4bfd862af570,2
+np.float64,0x8000000000000000,0x8000000000000000,2
+np.float64,0xbfed373e02ba6e7c,0xbfef0b2b7bb767b3,2
+np.float64,0xa6cb0f694d962,0x2aa179dd16b0242b,2
+np.float64,0x7fec14626cf828c4,0x55434ca55b7c85d5,2
+np.float64,0x3fcda404513b4808,0x3fe3a68e8d977752,2
+np.float64,0xbfeb94995f772933,0xbfee74091d288b81,2
+np.float64,0x3fce2299a13c4530,0x3fe3c2603f28d23b,2
+np.float64,0xffd07f4534a0fe8a,0xd539a8a6ebc5a603,2
+np.float64,0x7fdb1c651e3638c9,0x553e478a6385c86b,2
+np.float64,0x3fec758336f8eb06,0x3feec5f3b92c8b28,2
+np.float64,0x796fc87cf2dfa,0x2a9f7184a4ad8c49,2
+np.float64,0x3fef9ba866ff3750,0x3fefde6a446fc2cd,2
+np.float64,0x964d26c72c9a5,0x2aa0e143f1820179,2
+np.float64,0xbfef6af750bed5ef,0xbfefce04870a97bd,2
+np.float64,0x3fe2f3961aa5e72c,0x3feadf769321a3ff,2
+np.float64,0xbfd6b706e9ad6e0e,0xbfe6a8141c5c3b5d,2
+np.float64,0x7fe0ecc40a21d987,0x55404d72c2b46a82,2
+np.float64,0xbfe560d19deac1a3,0xbfebf962681a42a4,2
+np.float64,0xbfea37170ab46e2e,0xbfedf136ee9df02b,2
+np.float64,0xbfebf78947b7ef12,0xbfee9847ef160257,2
+np.float64,0x800551f8312aa3f1,0xaa9bee7d3aa5491b,2
+np.float64,0xffed2513897a4a26,0xd5438a58c4ae28ec,2
+np.float64,0x7fd962d75cb2c5ae,0x553d9f8a0c2016f3,2
+np.float64,0x3fefdd8512bfbb0a,0x3feff47d8da7424d,2
+np.float64,0xbfefa5b43bff4b68,0xbfefe1ca42867af0,2
+np.float64,0xbfc8a2853531450c,0xbfe279bb7b965729,2
+np.float64,0x800c8843bc391088,0xaaa2951344e7b29b,2
+np.float64,0x7fe22587bae44b0e,0x5540af8bb58cfe86,2
+np.float64,0xbfe159fae822b3f6,0xbfea182394eafd8d,2
+np.float64,0xbfe6fdfd50edfbfa,0xbfeca93f2a3597d0,2
+np.float64,0xbfe5cd5afaeb9ab6,0xbfec286a8ce0470f,2
+np.float64,0xbfc84bb97f309774,0xbfe263ef0f8f1f6e,2
+np.float64,0x7fd9c1e548b383ca,0x553dc4556874ecb9,2
+np.float64,0x7fda43d33bb487a5,0x553df60f61532fc0,2
+np.float64,0xbfe774bd25eee97a,0xbfecda42e8578c1f,2
+np.float64,0x800df1f5ab9be3ec,0xaaa34184712e69db,2
+np.float64,0xbff0000000000000,0xbff0000000000000,2
+np.float64,0x3fe14ec21b629d84,0x3fea128244215713,2
+np.float64,0x7fc1ce7843239cf0,0x5534e3fa8285b7b8,2
+np.float64,0xbfe922b204724564,0xbfed86818687d649,2
+np.float64,0x3fc58924fb2b1248,0x3fe1aa715ff6ebbf,2
+np.float64,0x8008b637e4d16c70,0xaaa0760b53abcf46,2
+np.float64,0xffbf55bd4c3eab78,0xd53404a23091a842,2
+np.float64,0x9f6b4a753ed6a,0x2aa136ef9fef9596,2
+np.float64,0xbfd11da7f8a23b50,0xbfe49deb493710d8,2
+np.float64,0x800a2f07fcd45e10,0xaaa157237c98b4f6,2
+np.float64,0x3fdd4defa4ba9bdf,0x3fe8aa0bcf895f4f,2
+np.float64,0x7fe9b0ab05f36155,0x5542bc5335414473,2
+np.float64,0x3fe89c97de313930,0x3fed51a1189b8982,2
+np.float64,0x3fdd45c8773a8b91,0x3fe8a7c2096fbf5a,2
+np.float64,0xbfeb6f64daf6deca,0xbfee665167ef43ad,2
+np.float64,0xffdf9da1c4bf3b44,0xd53fdf141944a983,2
+np.float64,0x3fde092ed0bc125c,0x3fe8de25bfbfc2db,2
+np.float64,0xbfcb21f96b3643f4,0xbfe3147904c258cf,2
+np.float64,0x800c9c934f993927,0xaaa29f17c43f021b,2
+np.float64,0x9b91814d37230,0x2aa11329e59bf6b0,2
+np.float64,0x3fe28a7e0b6514fc,0x3feaad6d23e2eadd,2
+np.float64,0xffecf38395f9e706,0xd5437f3ee1cd61e4,2
+np.float64,0x3fcade92a935bd25,0x3fe3049f4c1da1d0,2
+np.float64,0x800ab25d95d564bc,0xaaa1a076d7c66e04,2
+np.float64,0xffc0989e1e21313c,0xd53467f3b8158298,2
+np.float64,0x3fd81523eeb02a48,0x3fe71a38d2da8a82,2
+np.float64,0x7fe5b9dd402b73ba,0x5541b7b9b8631010,2
+np.float64,0x2c160d94582c3,0x2a966e51b503a3d1,2
+np.float64,0x2c416ffa5882f,0x2a9675aaef8b29c4,2
+np.float64,0x7fefe2ff01bfc5fd,0x55442289faf22b86,2
+np.float64,0xbfd469bf5d28d37e,0xbfe5dd239ffdc7eb,2
+np.float64,0xbfdd56f3eabaade8,0xbfe8ac93244ca17b,2
+np.float64,0xbfe057b89160af71,0xbfe9941557340bb3,2
+np.float64,0x800c50e140b8a1c3,0xaaa2798ace9097ee,2
+np.float64,0xbfda5a8984b4b514,0xbfe7ce93d65a56b0,2
+np.float64,0xbfcd6458323ac8b0,0xbfe39872514127bf,2
+np.float64,0x3fefb1f5ebff63ec,0x3fefe5e761b49b89,2
+np.float64,0x3fea3abc1df47578,0x3fedf29a1c997863,2
+np.float64,0x7fcb4a528e3694a4,0x553815f169667213,2
+np.float64,0x8c77da7b18efc,0x2aa080e52bdedb54,2
+np.float64,0x800e5dde4c5cbbbd,0xaaa372b16fd8b1ad,2
+np.float64,0x3fd2976038a52ec0,0x3fe5316b4f79fdbc,2
+np.float64,0x69413a0ed2828,0x2a9dfacd9cb44286,2
+np.float64,0xbfebbac0bdb77582,0xbfee820d9288b631,2
+np.float64,0x1a12aa7c34256,0x2a92d407e073bbfe,2
+np.float64,0xbfc41a27c3283450,0xbfe143c8665b0d3c,2
+np.float64,0xffe4faa41369f548,0xd54183230e0ce613,2
+np.float64,0xbfdeae81f23d5d04,0xbfe90b734bf35b68,2
+np.float64,0x3fc984ba58330975,0x3fe2b19e9052008e,2
+np.float64,0x7fe6e51b8d2dca36,0x554207a74ae2bb39,2
+np.float64,0x80081a58a81034b2,0xaaa0117d4aff11c8,2
+np.float64,0x7fde3fddfe3c7fbb,0x553f67d0082acc67,2
+np.float64,0x3fac7c999038f933,0x3fd86ec2f5dc3aa4,2
+np.float64,0x7fa26b4c4c24d698,0x552a9e6ea8545c18,2
+np.float64,0x3fdacd06e6b59a0e,0x3fe7f0dc0e8f9c6d,2
+np.float64,0x80064b62cbec96c6,0xaa9d8ac0506fdd05,2
+np.float64,0xb858116170b1,0x2a8caea703d9ccc8,2
+np.float64,0xbfe8d94ccef1b29a,0xbfed69a8782cbf3d,2
+np.float64,0x8005607d6a6ac0fc,0xaa9c07cf8620b037,2
+np.float64,0xbfe66a52daacd4a6,0xbfec6b5e403e6864,2
+np.float64,0x7fc398c2e0273185,0x5535918245894606,2
+np.float64,0x74b2d7dce965c,0x2a9f077020defdbc,2
+np.float64,0x7fe8f7a4d9b1ef49,0x55428eeae210e8eb,2
+np.float64,0x80027deddc84fbdc,0xaa95b11ff9089745,2
+np.float64,0xffeba2a94e774552,0xd5433273f6568902,2
+np.float64,0x80002f8259405f05,0xaa8240b68d7b9dc4,2
+np.float64,0xbfdf0d84883e1b0a,0xbfe92532c69c5802,2
+np.float64,0xbfcdfa7b6b3bf4f8,0xbfe3b997a84d0914,2
+np.float64,0x800c18b04e183161,0xaaa25d46d60b15c6,2
+np.float64,0xffeaf1e37c35e3c6,0xd543092cd929ac19,2
+np.float64,0xbfc5aa07752b5410,0xbfe1b36ab5ec741f,2
+np.float64,0x3fe5c491d1eb8924,0x3fec24a1c3f6a178,2
+np.float64,0xbfeb736937f6e6d2,0xbfee67cd296e6fa9,2
+np.float64,0xffec3d5718787aad,0xd5435602e1a2cc43,2
+np.float64,0x7fe71e1da86e3c3a,0x55421691ead882cb,2
+np.float64,0x3fdd6ed0c93adda2,0x3fe8b341d066c43c,2
+np.float64,0x7fbe3d7a203c7af3,0x5533c83e53283430,2
+np.float64,0x3fdc20cb56384197,0x3fe854676360aba9,2
+np.float64,0xb7a1ac636f436,0x2aa20b9d40d66e78,2
+np.float64,0x3fb1491bb8229237,0x3fda0fabad1738ee,2
+np.float64,0xbfdf9c0ce73f381a,0xbfe94b716dbe35ee,2
+np.float64,0xbfbd4f0ad23a9e18,0xbfdf1397329a2dce,2
+np.float64,0xbfe4e0caac69c196,0xbfebc119b8a181cd,2
+np.float64,0x5753641aaea6d,0x2a9c2ba3e92b0cd2,2
+np.float64,0x72bb814ae5771,0x2a9eda92fada66de,2
+np.float64,0x57ed8f5aafdb3,0x2a9c3c2e1d42e609,2
+np.float64,0xffec33359c38666a,0xd54353b2acd0daf1,2
+np.float64,0x3fa5fe6e8c2bfce0,0x3fd66a0b3bf2720a,2
+np.float64,0xffe2dc8d7ca5b91a,0xd540e6ebc097d601,2
+np.float64,0x7fd99d260eb33a4b,0x553db626c9c75f78,2
+np.float64,0xbfe2dd73e425bae8,0xbfead4fc4b93a727,2
+np.float64,0xdcd4a583b9a95,0x2aa33094c9a17ad7,2
+np.float64,0x7fb0af6422215ec7,0x553039a606e8e64f,2
+np.float64,0x7fdfab6227bf56c3,0x553fe3b26164aeda,2
+np.float64,0x1e4d265e3c9a6,0x2a93cba8a1a8ae6d,2
+np.float64,0xbfdc7d097238fa12,0xbfe86ee2f24fd473,2
+np.float64,0x7fe5d35d29eba6b9,0x5541bea5878bce2b,2
+np.float64,0xffcb886a903710d4,0xd53828281710aab5,2
+np.float64,0xffe058c7ffe0b190,0xd5401d61e9a7cbcf,2
+np.float64,0x3ff0000000000000,0x3ff0000000000000,2
+np.float64,0xffd5b1c1132b6382,0xd53c1c839c098340,2
+np.float64,0x3fe2e7956725cf2b,0x3fead9c907b9d041,2
+np.float64,0x800a8ee293951dc6,0xaaa18ce3f079f118,2
+np.float64,0x7febcd3085b79a60,0x55433c47e1f822ad,2
+np.float64,0x3feb0e14cd761c2a,0x3fee423542102546,2
+np.float64,0x3fb45e6d0628bcda,0x3fdb86db67d0c992,2
+np.float64,0x7fa836e740306dce,0x552d2907cb8118b2,2
+np.float64,0x3fd15ba25b22b745,0x3fe4b6b018409d78,2
+np.float64,0xbfb59980ce2b3300,0xbfdc1206274cb51d,2
+np.float64,0x3fdef1b87fbde371,0x3fe91dafc62124a1,2
+np.float64,0x7fed37a4337a6f47,0x55438e7e0b50ae37,2
+np.float64,0xffe6c87633ad90ec,0xd542001f216ab448,2
+np.float64,0x8008d2548ab1a4a9,0xaaa087ad272d8e17,2
+np.float64,0xbfd1d6744da3ace8,0xbfe4e71965adda74,2
+np.float64,0xbfb27f751224fee8,0xbfdaa82132775406,2
+np.float64,0x3fe2b336ae65666d,0x3feac0e6b13ec2d2,2
+np.float64,0xffc6bac2262d7584,0xd536a951a2eecb49,2
+np.float64,0x7fdb661321b6cc25,0x553e62dfd7fcd3f3,2
+np.float64,0xffe83567d5706acf,0xd5425e4bb5027568,2
+np.float64,0xbf7f0693e03e0d00,0xbfc9235314d53f82,2
+np.float64,0x3feb32b218766564,0x3fee4fd5847f3722,2
+np.float64,0x3fec25d33df84ba6,0x3feea91fcd4aebab,2
+np.float64,0x7fe17abecb22f57d,0x55407a8ba661207c,2
+np.float64,0xbfe5674b1eeace96,0xbfebfc351708dc70,2
+np.float64,0xbfe51a2d2f6a345a,0xbfebda702c9d302a,2
+np.float64,0x3fec05584af80ab0,0x3fee9d502a7bf54d,2
+np.float64,0xffda8871dcb510e4,0xd53e10105f0365b5,2
+np.float64,0xbfc279c31824f388,0xbfe0c9354d871484,2
+np.float64,0x1cbed61e397dc,0x2a937364712cd518,2
+np.float64,0x800787d198af0fa4,0xaa9f5c847affa1d2,2
+np.float64,0x80079f6d65af3edc,0xaa9f7d2863368bbd,2
+np.float64,0xb942f1e97285e,0x2aa2193e0c513b7f,2
+np.float64,0x7fe9078263320f04,0x554292d85dee2c18,2
+np.float64,0xbfe4de0761a9bc0f,0xbfebbfe04116b829,2
+np.float64,0xbfdbe6f3fc37cde8,0xbfe843aea59a0749,2
+np.float64,0xffcb6c0de136d81c,0xd5381fd9c525b813,2
+np.float64,0x9b6bda9336d7c,0x2aa111c924c35386,2
+np.float64,0x3fe17eece422fdda,0x3fea2a9bacd78607,2
+np.float64,0xd8011c49b0024,0x2aa30c87574fc0c6,2
+np.float64,0xbfc0a08b3f214118,0xbfe034d48f0d8dc0,2
+np.float64,0x3fd60adb1eac15b8,0x3fe66e42e4e7e6b5,2
+np.float64,0x80011d68ea023ad3,0xaa909733befbb962,2
+np.float64,0xffb35ac32426b588,0xd5310c4be1c37270,2
+np.float64,0x3fee8b56c9bd16ae,0x3fef81d8d15f6939,2
+np.float64,0x3fdc10a45e382149,0x3fe84fbe4cf11e68,2
+np.float64,0xbfc85dc45e30bb88,0xbfe2687b5518abde,2
+np.float64,0x3fd53b85212a770a,0x3fe6270d6d920d0f,2
+np.float64,0x800fc158927f82b1,0xaaa40e303239586f,2
+np.float64,0x11af5e98235ed,0x2a908b04a790083f,2
+np.float64,0xbfe2a097afe54130,0xbfeab80269eece99,2
+np.float64,0xbfd74ac588ae958c,0xbfe6d8ca3828d0b8,2
+np.float64,0xffea18ab2ef43156,0xd542d579ab31df1e,2
+np.float64,0xbfecda7058f9b4e1,0xbfeeea29c33b7913,2
+np.float64,0x3fc4ac56ed2958b0,0x3fe16d3e2bd7806d,2
+np.float64,0x3feccc898cb99913,0x3feee531f217dcfa,2
+np.float64,0xffeb3a64c5b674c9,0xd5431a30a41f0905,2
+np.float64,0x3fe5a7ee212b4fdc,0x3fec1844af9076fc,2
+np.float64,0x80080fdb52301fb7,0xaaa00a8b4274db67,2
+np.float64,0x800b3e7e47d67cfd,0xaaa1ec2876959852,2
+np.float64,0x80063fb8ee2c7f73,0xaa9d7875c9f20d6f,2
+np.float64,0x7fdacf80d0b59f01,0x553e2acede4c62a8,2
+np.float64,0x401e9b24803d4,0x2a996a0a75d0e093,2
+np.float64,0x3fe6c29505ed852a,0x3fec907a6d8c10af,2
+np.float64,0x8005c04ee2cb809f,0xaa9caa9813faef46,2
+np.float64,0xbfe1360f21e26c1e,0xbfea06155d6985b6,2
+np.float64,0xffc70606682e0c0c,0xd536c239b9d4be0a,2
+np.float64,0x800e639afefcc736,0xaaa37547d0229a26,2
+np.float64,0x3fe5589290aab125,0x3febf5c925c4e6db,2
+np.float64,0x8003b59330276b27,0xaa98c47e44524335,2
+np.float64,0x800d67ec22dacfd8,0xaaa301251b6a730a,2
+np.float64,0x7fdaeb5025b5d69f,0x553e35397dfe87eb,2
+np.float64,0x3fdae32a24b5c654,0x3fe7f771bc108f6c,2
+np.float64,0xffe6c1fc93ad83f8,0xd541fe6a6a716756,2
+np.float64,0xbfd7b9c1d32f7384,0xbfe6fcdae563d638,2
+np.float64,0x800e1bea06fc37d4,0xaaa354c0bf61449c,2
+np.float64,0xbfd78f097aaf1e12,0xbfe6ef068329bdf4,2
+np.float64,0x7fea6a400874d47f,0x5542e905978ad722,2
+np.float64,0x8008b4377cb1686f,0xaaa074c87eee29f9,2
+np.float64,0x8002f3fb8d45e7f8,0xaa96f47ac539b614,2
+np.float64,0xbfcf2b3fd13e5680,0xbfe3fb91c0cc66ad,2
+np.float64,0xffecca2f5279945e,0xd54375f361075927,2
+np.float64,0x7ff0000000000000,0x7ff0000000000000,2
+np.float64,0x7f84d5a5a029ab4a,0x552178d1d4e8640e,2
+np.float64,0x3fea8a4b64351497,0x3fee10c332440eb2,2
+np.float64,0x800fe01ac1dfc036,0xaaa41b34d91a4bee,2
+np.float64,0x3fc0b3d8872167b1,0x3fe03b178d354f8d,2
+np.float64,0x5ee8b0acbdd17,0x2a9cf69f2e317729,2
+np.float64,0x8006ef0407adde09,0xaa9e82888f3dd83e,2
+np.float64,0x7fdbb08a07b76113,0x553e7e4e35b938b9,2
+np.float64,0x49663f9c92cc9,0x2a9a95e0affe5108,2
+np.float64,0x7fd9b87e79b370fc,0x553dc0b5cff3dc7d,2
+np.float64,0xbfd86ae657b0d5cc,0xbfe73584d02bdd2b,2
+np.float64,0x3fd4d4a13729a942,0x3fe6030a962aaaf8,2
+np.float64,0x7fcc246bcb3848d7,0x5538557309449bba,2
+np.float64,0xbfdc86a7d5b90d50,0xbfe871a2983c2a29,2
+np.float64,0xd2a6e995a54dd,0x2aa2e3e9c0fdd6c0,2
+np.float64,0x3f92eb447825d680,0x3fd0eb4fd2ba16d2,2
+np.float64,0x800d4001697a8003,0xaaa2ee358661b75c,2
+np.float64,0x3fd3705fd1a6e0c0,0x3fe582a6f321d7d6,2
+np.float64,0xbfcfdf51533fbea4,0xbfe421c3bdd9f2a3,2
+np.float64,0x3fe268e87964d1d1,0x3fea9d47e08aad8a,2
+np.float64,0x24b8901e49713,0x2a951adeefe7b31b,2
+np.float64,0x3fedb35d687b66bb,0x3fef36e440850bf8,2
+np.float64,0x3fb7ab5cbe2f56c0,0x3fdcf097380721c6,2
+np.float64,0x3f8c4eaa10389d54,0x3fceb7ecb605b73b,2
+np.float64,0xbfed831ed6fb063e,0xbfef25f462a336f1,2
+np.float64,0x7fd8c52112318a41,0x553d61b0ee609f58,2
+np.float64,0xbfe71c4ff76e38a0,0xbfecb5d32e789771,2
+np.float64,0xbfe35fb7b166bf70,0xbfeb12328e75ee6b,2
+np.float64,0x458e1a3a8b1c4,0x2a9a1cebadc81342,2
+np.float64,0x8003c1b3ad478368,0xaa98df5ed060b28c,2
+np.float64,0x7ff4000000000000,0x7ffc000000000000,2
+np.float64,0x7fe17098c162e131,0x5540775a9a3a104f,2
+np.float64,0xbfd95cb71732b96e,0xbfe7812acf7ea511,2
+np.float64,0x8000000000000001,0xa990000000000000,2
+np.float64,0xbfde0e7d9ebc1cfc,0xbfe8df9ca9e49a5b,2
+np.float64,0xffef4f67143e9ecd,0xd5440348a6a2f231,2
+np.float64,0x7fe37d23c826fa47,0x5541165de17caa03,2
+np.float64,0xbfcc0e5f85381cc0,0xbfe34b44b0deefe9,2
+np.float64,0x3fe858f1c470b1e4,0x3fed36ab90557d89,2
+np.float64,0x800e857278fd0ae5,0xaaa3847d13220545,2
+np.float64,0x3febd31a66f7a635,0x3fee8af90e66b043,2
+np.float64,0x7fd3fde1b127fbc2,0x553b5b186a49b968,2
+np.float64,0x3fd3dabb8b27b577,0x3fe5a99b446bed26,2
+np.float64,0xffeb4500f1768a01,0xd5431cab828e254a,2
+np.float64,0xffccca8fc6399520,0xd53884f8b505e79e,2
+np.float64,0xffeee9406b7dd280,0xd543ed6d27a1a899,2
+np.float64,0xffecdde0f0f9bbc1,0xd5437a6258b14092,2
+np.float64,0xe6b54005cd6a8,0x2aa378c25938dfda,2
+np.float64,0x7fe610f1022c21e1,0x5541cf460b972925,2
+np.float64,0xbfe5a170ec6b42e2,0xbfec1576081e3232,2
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/data/umath-validation-set-cos.csv b/python/user_packages/Python313/site-packages/numpy/_core/tests/data/umath-validation-set-cos.csv
new file mode 100644
index 0000000000000000000000000000000000000000..5f7a951648a4fbd8dd4d17debff57e4adf6220e9
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/tests/data/umath-validation-set-cos.csv
@@ -0,0 +1,1375 @@
+dtype,input,output,ulperrortol
+## +ve denormals ##
+np.float32,0x004b4716,0x3f800000,2
+np.float32,0x007b2490,0x3f800000,2
+np.float32,0x007c99fa,0x3f800000,2
+np.float32,0x00734a0c,0x3f800000,2
+np.float32,0x0070de24,0x3f800000,2
+np.float32,0x007fffff,0x3f800000,2
+np.float32,0x00000001,0x3f800000,2
+## -ve denormals ##
+np.float32,0x80495d65,0x3f800000,2
+np.float32,0x806894f6,0x3f800000,2
+np.float32,0x80555a76,0x3f800000,2
+np.float32,0x804e1fb8,0x3f800000,2
+np.float32,0x80687de9,0x3f800000,2
+np.float32,0x807fffff,0x3f800000,2
+np.float32,0x80000001,0x3f800000,2
+## +/-0.0f, +/-FLT_MIN +/-FLT_MAX ##
+np.float32,0x00000000,0x3f800000,2
+np.float32,0x80000000,0x3f800000,2
+np.float32,0x00800000,0x3f800000,2
+np.float32,0x80800000,0x3f800000,2
+## 1.00f + 0x00000001 ##
+np.float32,0x3f800000,0x3f0a5140,2
+np.float32,0x3f800001,0x3f0a513f,2
+np.float32,0x3f800002,0x3f0a513d,2
+np.float32,0xc090a8b0,0xbe4332ce,2
+np.float32,0x41ce3184,0x3f4d1de1,2
+np.float32,0xc1d85848,0xbeaa8980,2
+np.float32,0x402b8820,0xbf653aa3,2
+np.float32,0x42b4e454,0xbf4a338b,2
+np.float32,0x42a67a60,0x3c58202e,2
+np.float32,0x41d92388,0xbed987c7,2
+np.float32,0x422dd66c,0x3f5dcab3,2
+np.float32,0xc28f5be6,0xbf5688d8,2
+np.float32,0x41ab2674,0xbf53aa3b,2
+np.float32,0x3f490fdb,0x3f3504f3,2
+np.float32,0xbf490fdb,0x3f3504f3,2
+np.float32,0x3fc90fdb,0xb33bbd2e,2
+np.float32,0xbfc90fdb,0xb33bbd2e,2
+np.float32,0x40490fdb,0xbf800000,2
+np.float32,0xc0490fdb,0xbf800000,2
+np.float32,0x3fc90fdb,0xb33bbd2e,2
+np.float32,0xbfc90fdb,0xb33bbd2e,2
+np.float32,0x40490fdb,0xbf800000,2
+np.float32,0xc0490fdb,0xbf800000,2
+np.float32,0x40c90fdb,0x3f800000,2
+np.float32,0xc0c90fdb,0x3f800000,2
+np.float32,0x4016cbe4,0xbf3504f3,2
+np.float32,0xc016cbe4,0xbf3504f3,2
+np.float32,0x4096cbe4,0x324cde2e,2
+np.float32,0xc096cbe4,0x324cde2e,2
+np.float32,0x4116cbe4,0xbf800000,2
+np.float32,0xc116cbe4,0xbf800000,2
+np.float32,0x40490fdb,0xbf800000,2
+np.float32,0xc0490fdb,0xbf800000,2
+np.float32,0x40c90fdb,0x3f800000,2
+np.float32,0xc0c90fdb,0x3f800000,2
+np.float32,0x41490fdb,0x3f800000,2
+np.float32,0xc1490fdb,0x3f800000,2
+np.float32,0x407b53d2,0xbf3504f1,2
+np.float32,0xc07b53d2,0xbf3504f1,2
+np.float32,0x40fb53d2,0xb4b5563d,2
+np.float32,0xc0fb53d2,0xb4b5563d,2
+np.float32,0x417b53d2,0xbf800000,2
+np.float32,0xc17b53d2,0xbf800000,2
+np.float32,0x4096cbe4,0x324cde2e,2
+np.float32,0xc096cbe4,0x324cde2e,2
+np.float32,0x4116cbe4,0xbf800000,2
+np.float32,0xc116cbe4,0xbf800000,2
+np.float32,0x4196cbe4,0x3f800000,2
+np.float32,0xc196cbe4,0x3f800000,2
+np.float32,0x40afede0,0x3f3504f7,2
+np.float32,0xc0afede0,0x3f3504f7,2
+np.float32,0x412fede0,0x353222c4,2
+np.float32,0xc12fede0,0x353222c4,2
+np.float32,0x41afede0,0xbf800000,2
+np.float32,0xc1afede0,0xbf800000,2
+np.float32,0x40c90fdb,0x3f800000,2
+np.float32,0xc0c90fdb,0x3f800000,2
+np.float32,0x41490fdb,0x3f800000,2
+np.float32,0xc1490fdb,0x3f800000,2
+np.float32,0x41c90fdb,0x3f800000,2
+np.float32,0xc1c90fdb,0x3f800000,2
+np.float32,0x40e231d6,0x3f3504f3,2
+np.float32,0xc0e231d6,0x3f3504f3,2
+np.float32,0x416231d6,0xb319a6a2,2
+np.float32,0xc16231d6,0xb319a6a2,2
+np.float32,0x41e231d6,0xbf800000,2
+np.float32,0xc1e231d6,0xbf800000,2
+np.float32,0x40fb53d2,0xb4b5563d,2
+np.float32,0xc0fb53d2,0xb4b5563d,2
+np.float32,0x417b53d2,0xbf800000,2
+np.float32,0xc17b53d2,0xbf800000,2
+np.float32,0x41fb53d2,0x3f800000,2
+np.float32,0xc1fb53d2,0x3f800000,2
+np.float32,0x410a3ae7,0xbf3504fb,2
+np.float32,0xc10a3ae7,0xbf3504fb,2
+np.float32,0x418a3ae7,0x35b08908,2
+np.float32,0xc18a3ae7,0x35b08908,2
+np.float32,0x420a3ae7,0xbf800000,2
+np.float32,0xc20a3ae7,0xbf800000,2
+np.float32,0x4116cbe4,0xbf800000,2
+np.float32,0xc116cbe4,0xbf800000,2
+np.float32,0x4196cbe4,0x3f800000,2
+np.float32,0xc196cbe4,0x3f800000,2
+np.float32,0x4216cbe4,0x3f800000,2
+np.float32,0xc216cbe4,0x3f800000,2
+np.float32,0x41235ce2,0xbf3504ef,2
+np.float32,0xc1235ce2,0xbf3504ef,2
+np.float32,0x41a35ce2,0xb53889b6,2
+np.float32,0xc1a35ce2,0xb53889b6,2
+np.float32,0x42235ce2,0xbf800000,2
+np.float32,0xc2235ce2,0xbf800000,2
+np.float32,0x412fede0,0x353222c4,2
+np.float32,0xc12fede0,0x353222c4,2
+np.float32,0x41afede0,0xbf800000,2
+np.float32,0xc1afede0,0xbf800000,2
+np.float32,0x422fede0,0x3f800000,2
+np.float32,0xc22fede0,0x3f800000,2
+np.float32,0x413c7edd,0x3f3504f4,2
+np.float32,0xc13c7edd,0x3f3504f4,2
+np.float32,0x41bc7edd,0x33800add,2
+np.float32,0xc1bc7edd,0x33800add,2
+np.float32,0x423c7edd,0xbf800000,2
+np.float32,0xc23c7edd,0xbf800000,2
+np.float32,0x41490fdb,0x3f800000,2
+np.float32,0xc1490fdb,0x3f800000,2
+np.float32,0x41c90fdb,0x3f800000,2
+np.float32,0xc1c90fdb,0x3f800000,2
+np.float32,0x42490fdb,0x3f800000,2
+np.float32,0xc2490fdb,0x3f800000,2
+np.float32,0x4155a0d9,0x3f3504eb,2
+np.float32,0xc155a0d9,0x3f3504eb,2
+np.float32,0x41d5a0d9,0xb5b3bc81,2
+np.float32,0xc1d5a0d9,0xb5b3bc81,2
+np.float32,0x4255a0d9,0xbf800000,2
+np.float32,0xc255a0d9,0xbf800000,2
+np.float32,0x416231d6,0xb319a6a2,2
+np.float32,0xc16231d6,0xb319a6a2,2
+np.float32,0x41e231d6,0xbf800000,2
+np.float32,0xc1e231d6,0xbf800000,2
+np.float32,0x426231d6,0x3f800000,2
+np.float32,0xc26231d6,0x3f800000,2
+np.float32,0x416ec2d4,0xbf3504f7,2
+np.float32,0xc16ec2d4,0xbf3504f7,2
+np.float32,0x41eec2d4,0x353ef0a7,2
+np.float32,0xc1eec2d4,0x353ef0a7,2
+np.float32,0x426ec2d4,0xbf800000,2
+np.float32,0xc26ec2d4,0xbf800000,2
+np.float32,0x417b53d2,0xbf800000,2
+np.float32,0xc17b53d2,0xbf800000,2
+np.float32,0x41fb53d2,0x3f800000,2
+np.float32,0xc1fb53d2,0x3f800000,2
+np.float32,0x427b53d2,0x3f800000,2
+np.float32,0xc27b53d2,0x3f800000,2
+np.float32,0x4183f268,0xbf3504e7,2
+np.float32,0xc183f268,0xbf3504e7,2
+np.float32,0x4203f268,0xb6059a13,2
+np.float32,0xc203f268,0xb6059a13,2
+np.float32,0x4283f268,0xbf800000,2
+np.float32,0xc283f268,0xbf800000,2
+np.float32,0x418a3ae7,0x35b08908,2
+np.float32,0xc18a3ae7,0x35b08908,2
+np.float32,0x420a3ae7,0xbf800000,2
+np.float32,0xc20a3ae7,0xbf800000,2
+np.float32,0x428a3ae7,0x3f800000,2
+np.float32,0xc28a3ae7,0x3f800000,2
+np.float32,0x41908365,0x3f3504f0,2
+np.float32,0xc1908365,0x3f3504f0,2
+np.float32,0x42108365,0xb512200d,2
+np.float32,0xc2108365,0xb512200d,2
+np.float32,0x42908365,0xbf800000,2
+np.float32,0xc2908365,0xbf800000,2
+np.float32,0x4196cbe4,0x3f800000,2
+np.float32,0xc196cbe4,0x3f800000,2
+np.float32,0x4216cbe4,0x3f800000,2
+np.float32,0xc216cbe4,0x3f800000,2
+np.float32,0x4296cbe4,0x3f800000,2
+np.float32,0xc296cbe4,0x3f800000,2
+np.float32,0x419d1463,0x3f3504ef,2
+np.float32,0xc19d1463,0x3f3504ef,2
+np.float32,0x421d1463,0xb5455799,2
+np.float32,0xc21d1463,0xb5455799,2
+np.float32,0x429d1463,0xbf800000,2
+np.float32,0xc29d1463,0xbf800000,2
+np.float32,0x41a35ce2,0xb53889b6,2
+np.float32,0xc1a35ce2,0xb53889b6,2
+np.float32,0x42235ce2,0xbf800000,2
+np.float32,0xc2235ce2,0xbf800000,2
+np.float32,0x42a35ce2,0x3f800000,2
+np.float32,0xc2a35ce2,0x3f800000,2
+np.float32,0x41a9a561,0xbf3504ff,2
+np.float32,0xc1a9a561,0xbf3504ff,2
+np.float32,0x4229a561,0x360733d0,2
+np.float32,0xc229a561,0x360733d0,2
+np.float32,0x42a9a561,0xbf800000,2
+np.float32,0xc2a9a561,0xbf800000,2
+np.float32,0x41afede0,0xbf800000,2
+np.float32,0xc1afede0,0xbf800000,2
+np.float32,0x422fede0,0x3f800000,2
+np.float32,0xc22fede0,0x3f800000,2
+np.float32,0x42afede0,0x3f800000,2
+np.float32,0xc2afede0,0x3f800000,2
+np.float32,0x41b6365e,0xbf3504f6,2
+np.float32,0xc1b6365e,0xbf3504f6,2
+np.float32,0x4236365e,0x350bb91c,2
+np.float32,0xc236365e,0x350bb91c,2
+np.float32,0x42b6365e,0xbf800000,2
+np.float32,0xc2b6365e,0xbf800000,2
+np.float32,0x41bc7edd,0x33800add,2
+np.float32,0xc1bc7edd,0x33800add,2
+np.float32,0x423c7edd,0xbf800000,2
+np.float32,0xc23c7edd,0xbf800000,2
+np.float32,0x42bc7edd,0x3f800000,2
+np.float32,0xc2bc7edd,0x3f800000,2
+np.float32,0x41c2c75c,0x3f3504f8,2
+np.float32,0xc1c2c75c,0x3f3504f8,2
+np.float32,0x4242c75c,0x354bbe8a,2
+np.float32,0xc242c75c,0x354bbe8a,2
+np.float32,0x42c2c75c,0xbf800000,2
+np.float32,0xc2c2c75c,0xbf800000,2
+np.float32,0x41c90fdb,0x3f800000,2
+np.float32,0xc1c90fdb,0x3f800000,2
+np.float32,0x42490fdb,0x3f800000,2
+np.float32,0xc2490fdb,0x3f800000,2
+np.float32,0x42c90fdb,0x3f800000,2
+np.float32,0xc2c90fdb,0x3f800000,2
+np.float32,0x41cf585a,0x3f3504e7,2
+np.float32,0xc1cf585a,0x3f3504e7,2
+np.float32,0x424f585a,0xb608cd8c,2
+np.float32,0xc24f585a,0xb608cd8c,2
+np.float32,0x42cf585a,0xbf800000,2
+np.float32,0xc2cf585a,0xbf800000,2
+np.float32,0x41d5a0d9,0xb5b3bc81,2
+np.float32,0xc1d5a0d9,0xb5b3bc81,2
+np.float32,0x4255a0d9,0xbf800000,2
+np.float32,0xc255a0d9,0xbf800000,2
+np.float32,0x42d5a0d9,0x3f800000,2
+np.float32,0xc2d5a0d9,0x3f800000,2
+np.float32,0x41dbe958,0xbf350507,2
+np.float32,0xc1dbe958,0xbf350507,2
+np.float32,0x425be958,0x365eab75,2
+np.float32,0xc25be958,0x365eab75,2
+np.float32,0x42dbe958,0xbf800000,2
+np.float32,0xc2dbe958,0xbf800000,2
+np.float32,0x41e231d6,0xbf800000,2
+np.float32,0xc1e231d6,0xbf800000,2
+np.float32,0x426231d6,0x3f800000,2
+np.float32,0xc26231d6,0x3f800000,2
+np.float32,0x42e231d6,0x3f800000,2
+np.float32,0xc2e231d6,0x3f800000,2
+np.float32,0x41e87a55,0xbf3504ef,2
+np.float32,0xc1e87a55,0xbf3504ef,2
+np.float32,0x42687a55,0xb552257b,2
+np.float32,0xc2687a55,0xb552257b,2
+np.float32,0x42e87a55,0xbf800000,2
+np.float32,0xc2e87a55,0xbf800000,2
+np.float32,0x41eec2d4,0x353ef0a7,2
+np.float32,0xc1eec2d4,0x353ef0a7,2
+np.float32,0x426ec2d4,0xbf800000,2
+np.float32,0xc26ec2d4,0xbf800000,2
+np.float32,0x42eec2d4,0x3f800000,2
+np.float32,0xc2eec2d4,0x3f800000,2
+np.float32,0x41f50b53,0x3f3504ff,2
+np.float32,0xc1f50b53,0x3f3504ff,2
+np.float32,0x42750b53,0x360a6748,2
+np.float32,0xc2750b53,0x360a6748,2
+np.float32,0x42f50b53,0xbf800000,2
+np.float32,0xc2f50b53,0xbf800000,2
+np.float32,0x41fb53d2,0x3f800000,2
+np.float32,0xc1fb53d2,0x3f800000,2
+np.float32,0x427b53d2,0x3f800000,2
+np.float32,0xc27b53d2,0x3f800000,2
+np.float32,0x42fb53d2,0x3f800000,2
+np.float32,0xc2fb53d2,0x3f800000,2
+np.float32,0x4200ce28,0x3f3504f6,2
+np.float32,0xc200ce28,0x3f3504f6,2
+np.float32,0x4280ce28,0x34fdd672,2
+np.float32,0xc280ce28,0x34fdd672,2
+np.float32,0x4300ce28,0xbf800000,2
+np.float32,0xc300ce28,0xbf800000,2
+np.float32,0x4203f268,0xb6059a13,2
+np.float32,0xc203f268,0xb6059a13,2
+np.float32,0x4283f268,0xbf800000,2
+np.float32,0xc283f268,0xbf800000,2
+np.float32,0x4303f268,0x3f800000,2
+np.float32,0xc303f268,0x3f800000,2
+np.float32,0x420716a7,0xbf3504f8,2
+np.float32,0xc20716a7,0xbf3504f8,2
+np.float32,0x428716a7,0x35588c6d,2
+np.float32,0xc28716a7,0x35588c6d,2
+np.float32,0x430716a7,0xbf800000,2
+np.float32,0xc30716a7,0xbf800000,2
+np.float32,0x420a3ae7,0xbf800000,2
+np.float32,0xc20a3ae7,0xbf800000,2
+np.float32,0x428a3ae7,0x3f800000,2
+np.float32,0xc28a3ae7,0x3f800000,2
+np.float32,0x430a3ae7,0x3f800000,2
+np.float32,0xc30a3ae7,0x3f800000,2
+np.float32,0x420d5f26,0xbf3504e7,2
+np.float32,0xc20d5f26,0xbf3504e7,2
+np.float32,0x428d5f26,0xb60c0105,2
+np.float32,0xc28d5f26,0xb60c0105,2
+np.float32,0x430d5f26,0xbf800000,2
+np.float32,0xc30d5f26,0xbf800000,2
+np.float32,0x42108365,0xb512200d,2
+np.float32,0xc2108365,0xb512200d,2
+np.float32,0x42908365,0xbf800000,2
+np.float32,0xc2908365,0xbf800000,2
+np.float32,0x43108365,0x3f800000,2
+np.float32,0xc3108365,0x3f800000,2
+np.float32,0x4213a7a5,0x3f350507,2
+np.float32,0xc213a7a5,0x3f350507,2
+np.float32,0x4293a7a5,0x3661deee,2
+np.float32,0xc293a7a5,0x3661deee,2
+np.float32,0x4313a7a5,0xbf800000,2
+np.float32,0xc313a7a5,0xbf800000,2
+np.float32,0x4216cbe4,0x3f800000,2
+np.float32,0xc216cbe4,0x3f800000,2
+np.float32,0x4296cbe4,0x3f800000,2
+np.float32,0xc296cbe4,0x3f800000,2
+np.float32,0x4316cbe4,0x3f800000,2
+np.float32,0xc316cbe4,0x3f800000,2
+np.float32,0x4219f024,0x3f3504d8,2
+np.float32,0xc219f024,0x3f3504d8,2
+np.float32,0x4299f024,0xb69bde6c,2
+np.float32,0xc299f024,0xb69bde6c,2
+np.float32,0x4319f024,0xbf800000,2
+np.float32,0xc319f024,0xbf800000,2
+np.float32,0x421d1463,0xb5455799,2
+np.float32,0xc21d1463,0xb5455799,2
+np.float32,0x429d1463,0xbf800000,2
+np.float32,0xc29d1463,0xbf800000,2
+np.float32,0x431d1463,0x3f800000,2
+np.float32,0xc31d1463,0x3f800000,2
+np.float32,0x422038a3,0xbf350516,2
+np.float32,0xc22038a3,0xbf350516,2
+np.float32,0x42a038a3,0x36c6cd61,2
+np.float32,0xc2a038a3,0x36c6cd61,2
+np.float32,0x432038a3,0xbf800000,2
+np.float32,0xc32038a3,0xbf800000,2
+np.float32,0x42235ce2,0xbf800000,2
+np.float32,0xc2235ce2,0xbf800000,2
+np.float32,0x42a35ce2,0x3f800000,2
+np.float32,0xc2a35ce2,0x3f800000,2
+np.float32,0x43235ce2,0x3f800000,2
+np.float32,0xc3235ce2,0x3f800000,2
+np.float32,0x42268121,0xbf3504f6,2
+np.float32,0xc2268121,0xbf3504f6,2
+np.float32,0x42a68121,0x34e43aac,2
+np.float32,0xc2a68121,0x34e43aac,2
+np.float32,0x43268121,0xbf800000,2
+np.float32,0xc3268121,0xbf800000,2
+np.float32,0x4229a561,0x360733d0,2
+np.float32,0xc229a561,0x360733d0,2
+np.float32,0x42a9a561,0xbf800000,2
+np.float32,0xc2a9a561,0xbf800000,2
+np.float32,0x4329a561,0x3f800000,2
+np.float32,0xc329a561,0x3f800000,2
+np.float32,0x422cc9a0,0x3f3504f8,2
+np.float32,0xc22cc9a0,0x3f3504f8,2
+np.float32,0x42acc9a0,0x35655a50,2
+np.float32,0xc2acc9a0,0x35655a50,2
+np.float32,0x432cc9a0,0xbf800000,2
+np.float32,0xc32cc9a0,0xbf800000,2
+np.float32,0x422fede0,0x3f800000,2
+np.float32,0xc22fede0,0x3f800000,2
+np.float32,0x42afede0,0x3f800000,2
+np.float32,0xc2afede0,0x3f800000,2
+np.float32,0x432fede0,0x3f800000,2
+np.float32,0xc32fede0,0x3f800000,2
+np.float32,0x4233121f,0x3f3504e7,2
+np.float32,0xc233121f,0x3f3504e7,2
+np.float32,0x42b3121f,0xb60f347d,2
+np.float32,0xc2b3121f,0xb60f347d,2
+np.float32,0x4333121f,0xbf800000,2
+np.float32,0xc333121f,0xbf800000,2
+np.float32,0x4236365e,0x350bb91c,2
+np.float32,0xc236365e,0x350bb91c,2
+np.float32,0x42b6365e,0xbf800000,2
+np.float32,0xc2b6365e,0xbf800000,2
+np.float32,0x4336365e,0x3f800000,2
+np.float32,0xc336365e,0x3f800000,2
+np.float32,0x42395a9e,0xbf350507,2
+np.float32,0xc2395a9e,0xbf350507,2
+np.float32,0x42b95a9e,0x36651267,2
+np.float32,0xc2b95a9e,0x36651267,2
+np.float32,0x43395a9e,0xbf800000,2
+np.float32,0xc3395a9e,0xbf800000,2
+np.float32,0x423c7edd,0xbf800000,2
+np.float32,0xc23c7edd,0xbf800000,2
+np.float32,0x42bc7edd,0x3f800000,2
+np.float32,0xc2bc7edd,0x3f800000,2
+np.float32,0x433c7edd,0x3f800000,2
+np.float32,0xc33c7edd,0x3f800000,2
+np.float32,0x423fa31d,0xbf3504d7,2
+np.float32,0xc23fa31d,0xbf3504d7,2
+np.float32,0x42bfa31d,0xb69d7828,2
+np.float32,0xc2bfa31d,0xb69d7828,2
+np.float32,0x433fa31d,0xbf800000,2
+np.float32,0xc33fa31d,0xbf800000,2
+np.float32,0x4242c75c,0x354bbe8a,2
+np.float32,0xc242c75c,0x354bbe8a,2
+np.float32,0x42c2c75c,0xbf800000,2
+np.float32,0xc2c2c75c,0xbf800000,2
+np.float32,0x4342c75c,0x3f800000,2
+np.float32,0xc342c75c,0x3f800000,2
+np.float32,0x4245eb9c,0x3f350517,2
+np.float32,0xc245eb9c,0x3f350517,2
+np.float32,0x42c5eb9c,0x36c8671d,2
+np.float32,0xc2c5eb9c,0x36c8671d,2
+np.float32,0x4345eb9c,0xbf800000,2
+np.float32,0xc345eb9c,0xbf800000,2
+np.float32,0x42490fdb,0x3f800000,2
+np.float32,0xc2490fdb,0x3f800000,2
+np.float32,0x42c90fdb,0x3f800000,2
+np.float32,0xc2c90fdb,0x3f800000,2
+np.float32,0x43490fdb,0x3f800000,2
+np.float32,0xc3490fdb,0x3f800000,2
+np.float32,0x424c341a,0x3f3504f5,2
+np.float32,0xc24c341a,0x3f3504f5,2
+np.float32,0x42cc341a,0x34ca9ee6,2
+np.float32,0xc2cc341a,0x34ca9ee6,2
+np.float32,0x434c341a,0xbf800000,2
+np.float32,0xc34c341a,0xbf800000,2
+np.float32,0x424f585a,0xb608cd8c,2
+np.float32,0xc24f585a,0xb608cd8c,2
+np.float32,0x42cf585a,0xbf800000,2
+np.float32,0xc2cf585a,0xbf800000,2
+np.float32,0x434f585a,0x3f800000,2
+np.float32,0xc34f585a,0x3f800000,2
+np.float32,0x42527c99,0xbf3504f9,2
+np.float32,0xc2527c99,0xbf3504f9,2
+np.float32,0x42d27c99,0x35722833,2
+np.float32,0xc2d27c99,0x35722833,2
+np.float32,0x43527c99,0xbf800000,2
+np.float32,0xc3527c99,0xbf800000,2
+np.float32,0x4255a0d9,0xbf800000,2
+np.float32,0xc255a0d9,0xbf800000,2
+np.float32,0x42d5a0d9,0x3f800000,2
+np.float32,0xc2d5a0d9,0x3f800000,2
+np.float32,0x4355a0d9,0x3f800000,2
+np.float32,0xc355a0d9,0x3f800000,2
+np.float32,0x4258c518,0xbf3504e6,2
+np.float32,0xc258c518,0xbf3504e6,2
+np.float32,0x42d8c518,0xb61267f6,2
+np.float32,0xc2d8c518,0xb61267f6,2
+np.float32,0x4358c518,0xbf800000,2
+np.float32,0xc358c518,0xbf800000,2
+np.float32,0x425be958,0x365eab75,2
+np.float32,0xc25be958,0x365eab75,2
+np.float32,0x42dbe958,0xbf800000,2
+np.float32,0xc2dbe958,0xbf800000,2
+np.float32,0x435be958,0x3f800000,2
+np.float32,0xc35be958,0x3f800000,2
+np.float32,0x425f0d97,0x3f350508,2
+np.float32,0xc25f0d97,0x3f350508,2
+np.float32,0x42df0d97,0x366845e0,2
+np.float32,0xc2df0d97,0x366845e0,2
+np.float32,0x435f0d97,0xbf800000,2
+np.float32,0xc35f0d97,0xbf800000,2
+np.float32,0x426231d6,0x3f800000,2
+np.float32,0xc26231d6,0x3f800000,2
+np.float32,0x42e231d6,0x3f800000,2
+np.float32,0xc2e231d6,0x3f800000,2
+np.float32,0x436231d6,0x3f800000,2
+np.float32,0xc36231d6,0x3f800000,2
+np.float32,0x42655616,0x3f3504d7,2
+np.float32,0xc2655616,0x3f3504d7,2
+np.float32,0x42e55616,0xb69f11e5,2
+np.float32,0xc2e55616,0xb69f11e5,2
+np.float32,0x43655616,0xbf800000,2
+np.float32,0xc3655616,0xbf800000,2
+np.float32,0x42687a55,0xb552257b,2
+np.float32,0xc2687a55,0xb552257b,2
+np.float32,0x42e87a55,0xbf800000,2
+np.float32,0xc2e87a55,0xbf800000,2
+np.float32,0x43687a55,0x3f800000,2
+np.float32,0xc3687a55,0x3f800000,2
+np.float32,0x426b9e95,0xbf350517,2
+np.float32,0xc26b9e95,0xbf350517,2
+np.float32,0x42eb9e95,0x36ca00d9,2
+np.float32,0xc2eb9e95,0x36ca00d9,2
+np.float32,0x436b9e95,0xbf800000,2
+np.float32,0xc36b9e95,0xbf800000,2
+np.float32,0x426ec2d4,0xbf800000,2
+np.float32,0xc26ec2d4,0xbf800000,2
+np.float32,0x42eec2d4,0x3f800000,2
+np.float32,0xc2eec2d4,0x3f800000,2
+np.float32,0x436ec2d4,0x3f800000,2
+np.float32,0xc36ec2d4,0x3f800000,2
+np.float32,0x4271e713,0xbf3504f5,2
+np.float32,0xc271e713,0xbf3504f5,2
+np.float32,0x42f1e713,0x34b10321,2
+np.float32,0xc2f1e713,0x34b10321,2
+np.float32,0x4371e713,0xbf800000,2
+np.float32,0xc371e713,0xbf800000,2
+np.float32,0x42750b53,0x360a6748,2
+np.float32,0xc2750b53,0x360a6748,2
+np.float32,0x42f50b53,0xbf800000,2
+np.float32,0xc2f50b53,0xbf800000,2
+np.float32,0x43750b53,0x3f800000,2
+np.float32,0xc3750b53,0x3f800000,2
+np.float32,0x42782f92,0x3f3504f9,2
+np.float32,0xc2782f92,0x3f3504f9,2
+np.float32,0x42f82f92,0x357ef616,2
+np.float32,0xc2f82f92,0x357ef616,2
+np.float32,0x43782f92,0xbf800000,2
+np.float32,0xc3782f92,0xbf800000,2
+np.float32,0x427b53d2,0x3f800000,2
+np.float32,0xc27b53d2,0x3f800000,2
+np.float32,0x42fb53d2,0x3f800000,2
+np.float32,0xc2fb53d2,0x3f800000,2
+np.float32,0x437b53d2,0x3f800000,2
+np.float32,0xc37b53d2,0x3f800000,2
+np.float32,0x427e7811,0x3f3504e6,2
+np.float32,0xc27e7811,0x3f3504e6,2
+np.float32,0x42fe7811,0xb6159b6f,2
+np.float32,0xc2fe7811,0xb6159b6f,2
+np.float32,0x437e7811,0xbf800000,2
+np.float32,0xc37e7811,0xbf800000,2
+np.float32,0x4280ce28,0x34fdd672,2
+np.float32,0xc280ce28,0x34fdd672,2
+np.float32,0x4300ce28,0xbf800000,2
+np.float32,0xc300ce28,0xbf800000,2
+np.float32,0x4380ce28,0x3f800000,2
+np.float32,0xc380ce28,0x3f800000,2
+np.float32,0x42826048,0xbf350508,2
+np.float32,0xc2826048,0xbf350508,2
+np.float32,0x43026048,0x366b7958,2
+np.float32,0xc3026048,0x366b7958,2
+np.float32,0x43826048,0xbf800000,2
+np.float32,0xc3826048,0xbf800000,2
+np.float32,0x4283f268,0xbf800000,2
+np.float32,0xc283f268,0xbf800000,2
+np.float32,0x4303f268,0x3f800000,2
+np.float32,0xc303f268,0x3f800000,2
+np.float32,0x4383f268,0x3f800000,2
+np.float32,0xc383f268,0x3f800000,2
+np.float32,0x42858487,0xbf350504,2
+np.float32,0xc2858487,0xbf350504,2
+np.float32,0x43058487,0x363ea8be,2
+np.float32,0xc3058487,0x363ea8be,2
+np.float32,0x43858487,0xbf800000,2
+np.float32,0xc3858487,0xbf800000,2
+np.float32,0x428716a7,0x35588c6d,2
+np.float32,0xc28716a7,0x35588c6d,2
+np.float32,0x430716a7,0xbf800000,2
+np.float32,0xc30716a7,0xbf800000,2
+np.float32,0x438716a7,0x3f800000,2
+np.float32,0xc38716a7,0x3f800000,2
+np.float32,0x4288a8c7,0x3f350517,2
+np.float32,0xc288a8c7,0x3f350517,2
+np.float32,0x4308a8c7,0x36cb9a96,2
+np.float32,0xc308a8c7,0x36cb9a96,2
+np.float32,0x4388a8c7,0xbf800000,2
+np.float32,0xc388a8c7,0xbf800000,2
+np.float32,0x428a3ae7,0x3f800000,2
+np.float32,0xc28a3ae7,0x3f800000,2
+np.float32,0x430a3ae7,0x3f800000,2
+np.float32,0xc30a3ae7,0x3f800000,2
+np.float32,0x438a3ae7,0x3f800000,2
+np.float32,0xc38a3ae7,0x3f800000,2
+np.float32,0x428bcd06,0x3f3504f5,2
+np.float32,0xc28bcd06,0x3f3504f5,2
+np.float32,0x430bcd06,0x3497675b,2
+np.float32,0xc30bcd06,0x3497675b,2
+np.float32,0x438bcd06,0xbf800000,2
+np.float32,0xc38bcd06,0xbf800000,2
+np.float32,0x428d5f26,0xb60c0105,2
+np.float32,0xc28d5f26,0xb60c0105,2
+np.float32,0x430d5f26,0xbf800000,2
+np.float32,0xc30d5f26,0xbf800000,2
+np.float32,0x438d5f26,0x3f800000,2
+np.float32,0xc38d5f26,0x3f800000,2
+np.float32,0x428ef146,0xbf350526,2
+np.float32,0xc28ef146,0xbf350526,2
+np.float32,0x430ef146,0x3710bc40,2
+np.float32,0xc30ef146,0x3710bc40,2
+np.float32,0x438ef146,0xbf800000,2
+np.float32,0xc38ef146,0xbf800000,2
+np.float32,0x42908365,0xbf800000,2
+np.float32,0xc2908365,0xbf800000,2
+np.float32,0x43108365,0x3f800000,2
+np.float32,0xc3108365,0x3f800000,2
+np.float32,0x43908365,0x3f800000,2
+np.float32,0xc3908365,0x3f800000,2
+np.float32,0x42921585,0xbf3504e6,2
+np.float32,0xc2921585,0xbf3504e6,2
+np.float32,0x43121585,0xb618cee8,2
+np.float32,0xc3121585,0xb618cee8,2
+np.float32,0x43921585,0xbf800000,2
+np.float32,0xc3921585,0xbf800000,2
+np.float32,0x4293a7a5,0x3661deee,2
+np.float32,0xc293a7a5,0x3661deee,2
+np.float32,0x4313a7a5,0xbf800000,2
+np.float32,0xc313a7a5,0xbf800000,2
+np.float32,0x4393a7a5,0x3f800000,2
+np.float32,0xc393a7a5,0x3f800000,2
+np.float32,0x429539c5,0x3f350536,2
+np.float32,0xc29539c5,0x3f350536,2
+np.float32,0x431539c5,0x373bab34,2
+np.float32,0xc31539c5,0x373bab34,2
+np.float32,0x439539c5,0xbf800000,2
+np.float32,0xc39539c5,0xbf800000,2
+np.float32,0x4296cbe4,0x3f800000,2
+np.float32,0xc296cbe4,0x3f800000,2
+np.float32,0x4316cbe4,0x3f800000,2
+np.float32,0xc316cbe4,0x3f800000,2
+np.float32,0x4396cbe4,0x3f800000,2
+np.float32,0xc396cbe4,0x3f800000,2
+np.float32,0x42985e04,0x3f3504d7,2
+np.float32,0xc2985e04,0x3f3504d7,2
+np.float32,0x43185e04,0xb6a2455d,2
+np.float32,0xc3185e04,0xb6a2455d,2
+np.float32,0x43985e04,0xbf800000,2
+np.float32,0xc3985e04,0xbf800000,2
+np.float32,0x4299f024,0xb69bde6c,2
+np.float32,0xc299f024,0xb69bde6c,2
+np.float32,0x4319f024,0xbf800000,2
+np.float32,0xc319f024,0xbf800000,2
+np.float32,0x4399f024,0x3f800000,2
+np.float32,0xc399f024,0x3f800000,2
+np.float32,0x429b8243,0xbf3504ea,2
+np.float32,0xc29b8243,0xbf3504ea,2
+np.float32,0x431b8243,0xb5cb2eb8,2
+np.float32,0xc31b8243,0xb5cb2eb8,2
+np.float32,0x439b8243,0xbf800000,2
+np.float32,0xc39b8243,0xbf800000,2
+np.float32,0x435b2047,0x3f3504c1,2
+np.float32,0x42a038a2,0xb5e4ca7e,2
+np.float32,0x432038a2,0xbf800000,2
+np.float32,0x4345eb9b,0xbf800000,2
+np.float32,0x42c5eb9b,0xb5de638c,2
+np.float32,0x42eb9e94,0xb5d7fc9b,2
+np.float32,0x4350ea79,0x3631dadb,2
+np.float32,0x42dbe957,0xbf800000,2
+np.float32,0x425be957,0xb505522a,2
+np.float32,0x435be957,0x3f800000,2
+np.float32,0x46027eb2,0x3e7d94c9,2
+np.float32,0x4477baed,0xbe7f1824,2
+np.float32,0x454b8024,0x3e7f5268,2
+np.float32,0x455d2c09,0x3e7f40cb,2
+np.float32,0x4768d3de,0xba14b4af,2
+np.float32,0x46c1e7cd,0x3e7fb102,2
+np.float32,0x44a52949,0xbe7dc9d5,2
+np.float32,0x4454633a,0x3e7dbc7d,2
+np.float32,0x4689810b,0x3e7eb02b,2
+np.float32,0x473473cd,0xbe7eef6f,2
+np.float32,0x44a5193f,0x3e7e1b1f,2
+np.float32,0x46004b36,0x3e7dac59,2
+np.float32,0x467f604b,0x3d7ffd3a,2
+np.float32,0x45ea1805,0x3dffd2e0,2
+np.float32,0x457b6af3,0x3dff7831,2
+np.float32,0x44996159,0xbe7d85f4,2
+np.float32,0x47883553,0xbb80584e,2
+np.float32,0x44e19f0c,0xbdffcfe6,2
+np.float32,0x472b3bf6,0xbe7f7a82,2
+np.float32,0x4600bb4e,0x3a135e33,2
+np.float32,0x449f4556,0x3e7e42e5,2
+np.float32,0x474e9420,0x3dff77b2,2
+np.float32,0x45cbdb23,0x3dff7240,2
+np.float32,0x44222747,0x3dffb039,2
+np.float32,0x4772e419,0xbdff74b8,2
+np.float64,0x1,0x3ff0000000000000,1
+np.float64,0x8000000000000001,0x3ff0000000000000,1
+np.float64,0x10000000000000,0x3ff0000000000000,1
+np.float64,0x8010000000000000,0x3ff0000000000000,1
+np.float64,0x7fefffffffffffff,0xbfefffe62ecfab75,1
+np.float64,0xffefffffffffffff,0xbfefffe62ecfab75,1
+np.float64,0x7ff0000000000000,0xfff8000000000000,1
+np.float64,0xfff0000000000000,0xfff8000000000000,1
+np.float64,0x7ff8000000000000,0x7ff8000000000000,1
+np.float64,0x7ff4000000000000,0x7ffc000000000000,1
+np.float64,0xbfc28bd9dd2517b4,0x3fefaa28ba13a702,1
+np.float64,0x3fb673c62e2ce790,0x3fefe083847a717f,1
+np.float64,0xbfe3e1dac7e7c3b6,0x3fea0500ba099f3a,1
+np.float64,0xbfbe462caa3c8c58,0x3fefc6c8b9c1c87c,1
+np.float64,0xbfb9353576326a68,0x3fefd8513e50e6b1,1
+np.float64,0xbfc05e798520bcf4,0x3fefbd1ad81cf089,1
+np.float64,0xbfe3ca3be2e79478,0x3fea12b995ea6574,1
+np.float64,0xbfde875d46bd0eba,0x3fec6d888662a824,1
+np.float64,0x3fafc4e02c3f89c0,0x3feff03c34bffd69,1
+np.float64,0xbf98855848310ac0,0x3feffda6c1588bdb,1
+np.float64,0x3fe66c51186cd8a2,0x3fe875c61c630ecb,1
+np.float64,0xbfedff1c3b7bfe38,0x3fe2f0c8c9e8fa39,1
+np.float64,0x3fd6082267ac1044,0x3fee1f6023695050,1
+np.float64,0xbfe78449b06f0894,0x3fe7bda2b223850e,1
+np.float64,0x3feedb8e63fdb71c,0x3fe23d5dfd2dd33f,1
+np.float64,0xbfc0a9de3d2153bc,0x3fefbaadf5e5285e,1
+np.float64,0x3fc04c67432098d0,0x3fefbdae07b7de8d,1
+np.float64,0xbfeeef84c4fddf0a,0x3fe22cf37f309d88,1
+np.float64,0x3fc04bb025209760,0x3fefbdb3d7d34ecf,1
+np.float64,0x3fd6b84d48ad709c,0x3fee013403da6e2a,1
+np.float64,0x3fec1ae25d7835c4,0x3fe46e62195cf274,1
+np.float64,0xbfdc6fdf9bb8dfc0,0x3fece48dc78bbb2e,1
+np.float64,0x3fb4db2c9229b660,0x3fefe4d42f79bf49,1
+np.float64,0xbfc0ed698521dad4,0x3fefb8785ea658c9,1
+np.float64,0xbfee82772b7d04ee,0x3fe2864a80efe8e9,1
+np.float64,0x3fd575b664aaeb6c,0x3fee37c669a12879,1
+np.float64,0x3fe4afb1c5e95f64,0x3fe98b177194439c,1
+np.float64,0x3fd93962f9b272c4,0x3fed8bef61876294,1
+np.float64,0x3fd97ae025b2f5c0,0x3fed7f4cfbf4d300,1
+np.float64,0xbfd9afdb1bb35fb6,0x3fed74fdc44dabb1,1
+np.float64,0x3f8ae65e3035cc80,0x3fefff4b1a0ea62b,1
+np.float64,0xbfe7e58664efcb0d,0x3fe77c02a1cbb670,1
+np.float64,0x3fe5f68b37ebed16,0x3fe8c10f849a5d4d,1
+np.float64,0x3fd9137d61b226fc,0x3fed9330eb4815a1,1
+np.float64,0x3fc146d019228da0,0x3fefb57e2d4d52f8,1
+np.float64,0xbfda6036edb4c06e,0x3fed521b2b578679,1
+np.float64,0xbfe78ddfb0ef1bc0,0x3fe7b734319a77e4,1
+np.float64,0x3fe0877823610ef0,0x3febd33a993dd786,1
+np.float64,0x3fbc61af2e38c360,0x3fefcdb4f889756d,1
+np.float64,0x3fd4dcdca4a9b9b8,0x3fee50962ffea5ae,1
+np.float64,0xbfe03cb29f607965,0x3febf7dbf640a75a,1
+np.float64,0xbfc81de407303bc8,0x3fef6f066cef64bc,1
+np.float64,0x3fd8dea42db1bd48,0x3fed9d3e00dbe0b3,1
+np.float64,0x3feac75e94f58ebe,0x3fe56f1f47f97896,1
+np.float64,0x3fb3a1ea6e2743d0,0x3fefe7ec1247cdaa,1
+np.float64,0x3fd695c0f4ad2b80,0x3fee0730bd40883d,1
+np.float64,0xbfd2c631f5a58c64,0x3feea20cbd1105d7,1
+np.float64,0xbfe978a8e1f2f152,0x3fe663014d40ad7a,1
+np.float64,0x3fd8b6b76ab16d70,0x3feda4c879aacc19,1
+np.float64,0x3feaafd30e755fa6,0x3fe5809514c28453,1
+np.float64,0x3fe1e37dc263c6fc,0x3feb20f9ad1f3f5c,1
+np.float64,0x3fd0ec7c24a1d8f8,0x3feee34048f43b75,1
+np.float64,0xbfe3881cbf67103a,0x3fea38d7886e6f53,1
+np.float64,0xbfd7023957ae0472,0x3fedf4471c765a1c,1
+np.float64,0xbfebc51c4ef78a38,0x3fe4b01c424e297b,1
+np.float64,0xbfe20a93eae41528,0x3feb0c2aa321d2e0,1
+np.float64,0x3fef39be867e737e,0x3fe1efaba9164d27,1
+np.float64,0x3fe8ea9576f1d52a,0x3fe6c7a8826ce1be,1
+np.float64,0x3fea921d91f5243c,0x3fe5968c6cf78963,1
+np.float64,0x3fd7ee5d31afdcbc,0x3fedc9f19d43fe61,1
+np.float64,0xbfe3ed581767dab0,0x3fe9fe4ee2f2b1cd,1
+np.float64,0xbfc40923d5281248,0x3fef9bd8ee9f6e68,1
+np.float64,0x3fe411a834682350,0x3fe9e9103854f057,1
+np.float64,0xbfedf6ccdf7bed9a,0x3fe2f77ad6543246,1
+np.float64,0xbfe8788a44f0f114,0x3fe7172f3aa0c742,1
+np.float64,0xbfce728f173ce520,0x3fef1954083bea04,1
+np.float64,0xbfd64dd0acac9ba2,0x3fee138c3293c246,1
+np.float64,0xbfe00669f5600cd4,0x3fec121443945350,1
+np.float64,0xbfe7152ba2ee2a58,0x3fe8079465d09846,1
+np.float64,0x3fe8654d8f70ca9c,0x3fe7247c94f09596,1
+np.float64,0x3fea68045cf4d008,0x3fe5b58cfe81a243,1
+np.float64,0xbfcd4779073a8ef4,0x3fef2a9d78153fa5,1
+np.float64,0xbfdb4456e5b688ae,0x3fed23b11614203f,1
+np.float64,0x3fcb5d59cd36bab0,0x3fef45818216a515,1
+np.float64,0xbfd914ff5ab229fe,0x3fed92e73746fea8,1
+np.float64,0x3fe4d211db69a424,0x3fe97653f433d15f,1
+np.float64,0xbfdbbb9224b77724,0x3fed0adb593dde80,1
+np.float64,0x3fd424ceafa8499c,0x3fee6d9124795d33,1
+np.float64,0x3feb5968f976b2d2,0x3fe501d116efbf54,1
+np.float64,0x3fee7d92a2fcfb26,0x3fe28a479b6a9dcf,1
+np.float64,0x3fc308e9972611d0,0x3fefa595f4df0c89,1
+np.float64,0x3fda79cd77b4f39c,0x3fed4cf8e69ba1f8,1
+np.float64,0x3fcbcf42d5379e88,0x3fef3f6a6a77c187,1
+np.float64,0x3fe13a1da662743c,0x3feb79504faea888,1
+np.float64,0xbfee4435f07c886c,0x3fe2b8ea98d2fc29,1
+np.float64,0x3fd65d68ccacbad0,0x3fee10e1ac7ada89,1
+np.float64,0x3fef2f89bb7e5f14,0x3fe1f81e882cc3f4,1
+np.float64,0xbfef0a7769fe14ef,0x3fe216bf384fc646,1
+np.float64,0x3fc065277320ca50,0x3fefbce44835c193,1
+np.float64,0x3fe9c1a74d73834e,0x3fe62e9ee0c2f2bf,1
+np.float64,0x3fd9d96e5db3b2dc,0x3fed6cd88eb51f6a,1
+np.float64,0x3fe02bf1c56057e4,0x3febfffc24b5a7ba,1
+np.float64,0xbfd6814350ad0286,0x3fee0ab9ad318b84,1
+np.float64,0x3f9fcbec583f97c0,0x3feffc0d0f1d8e75,1
+np.float64,0x3fe23524e5e46a4a,0x3feaf55372949a06,1
+np.float64,0xbfbdc95f6a3b92c0,0x3fefc89c21d44995,1
+np.float64,0x3fe961bb9cf2c378,0x3fe6735d6e1cca58,1
+np.float64,0xbfe8f1c370f1e387,0x3fe6c29d1be8bee9,1
+np.float64,0x3fd880d43ab101a8,0x3fedaee3c7ccfc96,1
+np.float64,0xbfedb37005fb66e0,0x3fe32d91ef2e3bd3,1
+np.float64,0xfdce287bfb9c5,0x3ff0000000000000,1
+np.float64,0x9aa1b9e735437,0x3ff0000000000000,1
+np.float64,0x6beac6e0d7d59,0x3ff0000000000000,1
+np.float64,0x47457aae8e8b0,0x3ff0000000000000,1
+np.float64,0x35ff13b46bfe3,0x3ff0000000000000,1
+np.float64,0xb9c0c82b73819,0x3ff0000000000000,1
+np.float64,0x1a8dc21a351b9,0x3ff0000000000000,1
+np.float64,0x7e87ef6afd0ff,0x3ff0000000000000,1
+np.float64,0x620a6588c414d,0x3ff0000000000000,1
+np.float64,0x7f366000fe6e,0x3ff0000000000000,1
+np.float64,0x787e39f4f0fc8,0x3ff0000000000000,1
+np.float64,0xf5134f1fea26a,0x3ff0000000000000,1
+np.float64,0xbce700ef79ce0,0x3ff0000000000000,1
+np.float64,0x144d7cc8289b1,0x3ff0000000000000,1
+np.float64,0xb9fbc5b973f79,0x3ff0000000000000,1
+np.float64,0xc3d6292d87ac5,0x3ff0000000000000,1
+np.float64,0xc1084e618210a,0x3ff0000000000000,1
+np.float64,0xb6b9eca56d73e,0x3ff0000000000000,1
+np.float64,0xc7ac4b858f58a,0x3ff0000000000000,1
+np.float64,0x516d75d2a2daf,0x3ff0000000000000,1
+np.float64,0x9dc089d93b811,0x3ff0000000000000,1
+np.float64,0x7b5f2840f6be6,0x3ff0000000000000,1
+np.float64,0x121d3ce8243a9,0x3ff0000000000000,1
+np.float64,0xf0be0337e17c1,0x3ff0000000000000,1
+np.float64,0xff58a5cbfeb15,0x3ff0000000000000,1
+np.float64,0xdaf1d07fb5e3a,0x3ff0000000000000,1
+np.float64,0x61d95382c3b2b,0x3ff0000000000000,1
+np.float64,0xe4df943fc9bf3,0x3ff0000000000000,1
+np.float64,0xf72ac2bdee559,0x3ff0000000000000,1
+np.float64,0x12dafbf625b60,0x3ff0000000000000,1
+np.float64,0xee11d427dc23b,0x3ff0000000000000,1
+np.float64,0xf4f8eb37e9f1e,0x3ff0000000000000,1
+np.float64,0xad7cb5df5af97,0x3ff0000000000000,1
+np.float64,0x59fc9b06b3f94,0x3ff0000000000000,1
+np.float64,0x3c3e65e4787ce,0x3ff0000000000000,1
+np.float64,0xe37bc993c6f79,0x3ff0000000000000,1
+np.float64,0x13bd6330277ad,0x3ff0000000000000,1
+np.float64,0x56cc2800ad986,0x3ff0000000000000,1
+np.float64,0x6203b8fcc4078,0x3ff0000000000000,1
+np.float64,0x75c7c8b8eb8fa,0x3ff0000000000000,1
+np.float64,0x5ebf8e00bd7f2,0x3ff0000000000000,1
+np.float64,0xda81f2f1b503f,0x3ff0000000000000,1
+np.float64,0x6adb17d6d5b64,0x3ff0000000000000,1
+np.float64,0x1ba68eee374d3,0x3ff0000000000000,1
+np.float64,0xeecf6fbbdd9ee,0x3ff0000000000000,1
+np.float64,0x24d6dd8e49add,0x3ff0000000000000,1
+np.float64,0xdf7cb81bbef97,0x3ff0000000000000,1
+np.float64,0xafd7be1b5faf8,0x3ff0000000000000,1
+np.float64,0xdb90ca35b721a,0x3ff0000000000000,1
+np.float64,0xa72903a14e521,0x3ff0000000000000,1
+np.float64,0x14533ee028a7,0x3ff0000000000000,1
+np.float64,0x7951540cf2a2b,0x3ff0000000000000,1
+np.float64,0x22882be045106,0x3ff0000000000000,1
+np.float64,0x136270d626c4f,0x3ff0000000000000,1
+np.float64,0x6a0f5744d41ec,0x3ff0000000000000,1
+np.float64,0x21e0d1aa43c1b,0x3ff0000000000000,1
+np.float64,0xee544155dca88,0x3ff0000000000000,1
+np.float64,0xcbe8aac797d16,0x3ff0000000000000,1
+np.float64,0x6c065e80d80e,0x3ff0000000000000,1
+np.float64,0xe57f0411cafe1,0x3ff0000000000000,1
+np.float64,0xdec3a6bdbd875,0x3ff0000000000000,1
+np.float64,0xf4d23a0fe9a48,0x3ff0000000000000,1
+np.float64,0xda77ef47b4efe,0x3ff0000000000000,1
+np.float64,0x8c405c9b1880c,0x3ff0000000000000,1
+np.float64,0x4eced5149d9db,0x3ff0000000000000,1
+np.float64,0x16b6552c2d6cc,0x3ff0000000000000,1
+np.float64,0x6fbc262cdf785,0x3ff0000000000000,1
+np.float64,0x628c3844c5188,0x3ff0000000000000,1
+np.float64,0x6d827d2cdb050,0x3ff0000000000000,1
+np.float64,0xd1bfdf29a37fc,0x3ff0000000000000,1
+np.float64,0xd85400fdb0a80,0x3ff0000000000000,1
+np.float64,0xcc420b2d98842,0x3ff0000000000000,1
+np.float64,0xac41d21b5883b,0x3ff0000000000000,1
+np.float64,0x432f18d4865e4,0x3ff0000000000000,1
+np.float64,0xe7e89a1bcfd14,0x3ff0000000000000,1
+np.float64,0x9b1141d536228,0x3ff0000000000000,1
+np.float64,0x6805f662d00bf,0x3ff0000000000000,1
+np.float64,0xc76552358ecab,0x3ff0000000000000,1
+np.float64,0x4ae8ffee95d21,0x3ff0000000000000,1
+np.float64,0x4396c096872d9,0x3ff0000000000000,1
+np.float64,0x6e8e55d4dd1cb,0x3ff0000000000000,1
+np.float64,0x4c2e33dc985c7,0x3ff0000000000000,1
+np.float64,0xbce814a579d03,0x3ff0000000000000,1
+np.float64,0x911681b5222d0,0x3ff0000000000000,1
+np.float64,0x5f90a4b2bf215,0x3ff0000000000000,1
+np.float64,0x26f76be84deee,0x3ff0000000000000,1
+np.float64,0xb2f7536165eeb,0x3ff0000000000000,1
+np.float64,0x4de4e6089bc9d,0x3ff0000000000000,1
+np.float64,0xf2e016afe5c03,0x3ff0000000000000,1
+np.float64,0xb9b7b949736f7,0x3ff0000000000000,1
+np.float64,0x3363ea1866c7e,0x3ff0000000000000,1
+np.float64,0xd1a3bd6ba3478,0x3ff0000000000000,1
+np.float64,0xae89f3595d13f,0x3ff0000000000000,1
+np.float64,0xddbd9601bb7c,0x3ff0000000000000,1
+np.float64,0x5de41a06bbc84,0x3ff0000000000000,1
+np.float64,0xfd58c86dfab19,0x3ff0000000000000,1
+np.float64,0x24922e8c49247,0x3ff0000000000000,1
+np.float64,0xcda040339b408,0x3ff0000000000000,1
+np.float64,0x5fe500b2bfca1,0x3ff0000000000000,1
+np.float64,0x9214abb924296,0x3ff0000000000000,1
+np.float64,0x800609fe0a2c13fd,0x3ff0000000000000,1
+np.float64,0x800c7c6fe518f8e0,0x3ff0000000000000,1
+np.float64,0x800a1a9491b4352a,0x3ff0000000000000,1
+np.float64,0x800b45e0e8968bc2,0x3ff0000000000000,1
+np.float64,0x8008497e57d092fd,0x3ff0000000000000,1
+np.float64,0x800b9c0af0173816,0x3ff0000000000000,1
+np.float64,0x800194cccb43299a,0x3ff0000000000000,1
+np.float64,0x8001c91ef183923f,0x3ff0000000000000,1
+np.float64,0x800f25b5ccde4b6c,0x3ff0000000000000,1
+np.float64,0x800ce63ccc79cc7a,0x3ff0000000000000,1
+np.float64,0x800d8fb2e83b1f66,0x3ff0000000000000,1
+np.float64,0x80083cd06f7079a1,0x3ff0000000000000,1
+np.float64,0x800823598e9046b3,0x3ff0000000000000,1
+np.float64,0x8001c1319de38264,0x3ff0000000000000,1
+np.float64,0x800f2b68543e56d1,0x3ff0000000000000,1
+np.float64,0x80022a4f4364549f,0x3ff0000000000000,1
+np.float64,0x800f51badf7ea376,0x3ff0000000000000,1
+np.float64,0x8003fbf31e27f7e7,0x3ff0000000000000,1
+np.float64,0x800d4c00e2fa9802,0x3ff0000000000000,1
+np.float64,0x800023b974804774,0x3ff0000000000000,1
+np.float64,0x800860778990c0ef,0x3ff0000000000000,1
+np.float64,0x800a15c241542b85,0x3ff0000000000000,1
+np.float64,0x8003097d9dc612fc,0x3ff0000000000000,1
+np.float64,0x800d77d8541aefb1,0x3ff0000000000000,1
+np.float64,0x80093804ab52700a,0x3ff0000000000000,1
+np.float64,0x800d2b3bfd7a5678,0x3ff0000000000000,1
+np.float64,0x800da24bcd5b4498,0x3ff0000000000000,1
+np.float64,0x8006eee1c28dddc4,0x3ff0000000000000,1
+np.float64,0x80005137fa40a271,0x3ff0000000000000,1
+np.float64,0x8007a3fbc22f47f8,0x3ff0000000000000,1
+np.float64,0x800dcd97071b9b2e,0x3ff0000000000000,1
+np.float64,0x80065b36048cb66d,0x3ff0000000000000,1
+np.float64,0x8004206ba72840d8,0x3ff0000000000000,1
+np.float64,0x8007e82b98cfd058,0x3ff0000000000000,1
+np.float64,0x8001a116ed23422f,0x3ff0000000000000,1
+np.float64,0x800c69e9ff18d3d4,0x3ff0000000000000,1
+np.float64,0x8003843688e7086e,0x3ff0000000000000,1
+np.float64,0x800335e3b8866bc8,0x3ff0000000000000,1
+np.float64,0x800e3308f0bc6612,0x3ff0000000000000,1
+np.float64,0x8002a9ec55c553d9,0x3ff0000000000000,1
+np.float64,0x80001c2084e03842,0x3ff0000000000000,1
+np.float64,0x800bc2bbd8d78578,0x3ff0000000000000,1
+np.float64,0x800ae6bcc555cd7a,0x3ff0000000000000,1
+np.float64,0x80083f7a13907ef5,0x3ff0000000000000,1
+np.float64,0x800d83ed76db07db,0x3ff0000000000000,1
+np.float64,0x800a12251974244b,0x3ff0000000000000,1
+np.float64,0x800a69c95714d393,0x3ff0000000000000,1
+np.float64,0x800cd5a85639ab51,0x3ff0000000000000,1
+np.float64,0x800e0e1837bc1c31,0x3ff0000000000000,1
+np.float64,0x8007b5ca39ef6b95,0x3ff0000000000000,1
+np.float64,0x800cf961cad9f2c4,0x3ff0000000000000,1
+np.float64,0x80066e8fc14cdd20,0x3ff0000000000000,1
+np.float64,0x8001cb8c7b43971a,0x3ff0000000000000,1
+np.float64,0x800002df68a005c0,0x3ff0000000000000,1
+np.float64,0x8003e6681567ccd1,0x3ff0000000000000,1
+np.float64,0x800b039126b60723,0x3ff0000000000000,1
+np.float64,0x800d2e1b663a5c37,0x3ff0000000000000,1
+np.float64,0x800188b3e2a31169,0x3ff0000000000000,1
+np.float64,0x8001f272e943e4e7,0x3ff0000000000000,1
+np.float64,0x800d7f53607afea7,0x3ff0000000000000,1
+np.float64,0x80092cafa4f25960,0x3ff0000000000000,1
+np.float64,0x800fc009f07f8014,0x3ff0000000000000,1
+np.float64,0x8003da896507b514,0x3ff0000000000000,1
+np.float64,0x800d4d1b4c3a9a37,0x3ff0000000000000,1
+np.float64,0x8007a835894f506c,0x3ff0000000000000,1
+np.float64,0x80057ba0522af741,0x3ff0000000000000,1
+np.float64,0x8009b7054b336e0b,0x3ff0000000000000,1
+np.float64,0x800b2c6c125658d9,0x3ff0000000000000,1
+np.float64,0x8008b1840ad16308,0x3ff0000000000000,1
+np.float64,0x8007ea0e3befd41d,0x3ff0000000000000,1
+np.float64,0x800dd658683bacb1,0x3ff0000000000000,1
+np.float64,0x8008cda48fd19b49,0x3ff0000000000000,1
+np.float64,0x8003acca14c75995,0x3ff0000000000000,1
+np.float64,0x8008bd152d717a2b,0x3ff0000000000000,1
+np.float64,0x80010d1ea3621a3e,0x3ff0000000000000,1
+np.float64,0x800130b78b826170,0x3ff0000000000000,1
+np.float64,0x8002cf3a46e59e75,0x3ff0000000000000,1
+np.float64,0x800b76e7fa76edd0,0x3ff0000000000000,1
+np.float64,0x800e065fe1dc0cc0,0x3ff0000000000000,1
+np.float64,0x8000dd527ea1baa6,0x3ff0000000000000,1
+np.float64,0x80032cb234665965,0x3ff0000000000000,1
+np.float64,0x800affc1acb5ff84,0x3ff0000000000000,1
+np.float64,0x80074be23fee97c5,0x3ff0000000000000,1
+np.float64,0x8004f83eafc9f07e,0x3ff0000000000000,1
+np.float64,0x800b02a115560543,0x3ff0000000000000,1
+np.float64,0x800b324a55766495,0x3ff0000000000000,1
+np.float64,0x800ffbcfd69ff7a0,0x3ff0000000000000,1
+np.float64,0x800830bc7b906179,0x3ff0000000000000,1
+np.float64,0x800cbafe383975fd,0x3ff0000000000000,1
+np.float64,0x8001ee42bfe3dc86,0x3ff0000000000000,1
+np.float64,0x8005b00fdc0b6020,0x3ff0000000000000,1
+np.float64,0x8005e7addd0bcf5c,0x3ff0000000000000,1
+np.float64,0x8001ae4cb0635c9a,0x3ff0000000000000,1
+np.float64,0x80098a9941131533,0x3ff0000000000000,1
+np.float64,0x800334c929466993,0x3ff0000000000000,1
+np.float64,0x8009568239d2ad05,0x3ff0000000000000,1
+np.float64,0x800f0639935e0c73,0x3ff0000000000000,1
+np.float64,0x800cebce7499d79d,0x3ff0000000000000,1
+np.float64,0x800482ee4c2905dd,0x3ff0000000000000,1
+np.float64,0x8007b7bd9e2f6f7c,0x3ff0000000000000,1
+np.float64,0x3fe654469f2ca88d,0x3fe8853f6c01ffb3,1
+np.float64,0x3feb4d7297369ae5,0x3fe50ad5bb621408,1
+np.float64,0x3feef53ba43dea77,0x3fe2283f356f8658,1
+np.float64,0x3fddf564eabbeaca,0x3fec8ec0e0dead9c,1
+np.float64,0x3fd3a69078274d21,0x3fee80e05c320000,1
+np.float64,0x3fecdafe5d39b5fd,0x3fe3d91a5d440fd9,1
+np.float64,0x3fd93286bc32650d,0x3fed8d40696cd10e,1
+np.float64,0x3fc0d34eb821a69d,0x3fefb954023d4284,1
+np.float64,0x3fc7b4b9a02f6973,0x3fef73e8739787ce,1
+np.float64,0x3fe08c839a611907,0x3febd0bc6f5641cd,1
+np.float64,0x3fb3d1758627a2eb,0x3fefe776f6183f96,1
+np.float64,0x3fef93c9ff3f2794,0x3fe1a4d2f622627d,1
+np.float64,0x3fea8d0041351a01,0x3fe59a52a1c78c9e,1
+np.float64,0x3fe3e26a30e7c4d4,0x3fea04ad3e0bbf8d,1
+np.float64,0x3fe5a34c9f6b4699,0x3fe8f57c5ccd1eab,1
+np.float64,0x3fc21ef859243df1,0x3fefae0b68a3a2e7,1
+np.float64,0x3fed7dd585fafbab,0x3fe35860041e5b0d,1
+np.float64,0x3fe5abacf22b575a,0x3fe8f03d8b6ef0f2,1
+np.float64,0x3fe426451f284c8a,0x3fe9dcf21f13205b,1
+np.float64,0x3fc01f6456203ec9,0x3fefbf19e2a8e522,1
+np.float64,0x3fe1cf2772239e4f,0x3feb2bbd645c7697,1
+np.float64,0x3fd18c4ace231896,0x3feecdfdd086c110,1
+np.float64,0x3fe8387d5b7070fb,0x3fe74358f2ec4910,1
+np.float64,0x3fdce51c2239ca38,0x3feccb2ae5459632,1
+np.float64,0x3fe5b0f2e4eb61e6,0x3fe8ecef4dbe4277,1
+np.float64,0x3fe1ceeb08a39dd6,0x3feb2bdd4dcfb3df,1
+np.float64,0x3febc5899d778b13,0x3fe4afc8dd8ad228,1
+np.float64,0x3fe7a47fbe2f48ff,0x3fe7a7fd9b352ea5,1
+np.float64,0x3fe7f74e1fafee9c,0x3fe76feb2755b247,1
+np.float64,0x3fe2bfad04e57f5a,0x3feaa9b46adddaeb,1
+np.float64,0x3fd06a090320d412,0x3feef40c334f8fba,1
+np.float64,0x3fdc97297d392e53,0x3fecdc16a3e22fcb,1
+np.float64,0x3fdc1a3f3838347e,0x3fecf6db2769d404,1
+np.float64,0x3fcca90096395201,0x3fef338156fcd218,1
+np.float64,0x3fed464733fa8c8e,0x3fe38483f0465d91,1
+np.float64,0x3fe7e067d82fc0d0,0x3fe77f7c8c9de896,1
+np.float64,0x3fc014fa0b2029f4,0x3fefbf6d84c933f8,1
+np.float64,0x3fd3bf1524277e2a,0x3fee7d2997b74dec,1
+np.float64,0x3fec153b86782a77,0x3fe472bb5497bb2a,1
+np.float64,0x3fd3e4d9d5a7c9b4,0x3fee776842691902,1
+np.float64,0x3fea6c0e2c74d81c,0x3fe5b2954cb458d9,1
+np.float64,0x3fee8f6a373d1ed4,0x3fe27bb9e348125b,1
+np.float64,0x3fd30c6dd42618dc,0x3fee97d2cab2b0bc,1
+np.float64,0x3fe4f90e6d69f21d,0x3fe95ea3dd4007f2,1
+np.float64,0x3fe271d467e4e3a9,0x3fead470d6d4008b,1
+np.float64,0x3fef2983897e5307,0x3fe1fd1a4debe33b,1
+np.float64,0x3fe980cc83b30199,0x3fe65d2fb8a0eb46,1
+np.float64,0x3fdfdf53db3fbea8,0x3fec1cf95b2a1cc7,1
+np.float64,0x3fe4d5307ba9aa61,0x3fe974701b4156cb,1
+np.float64,0x3fdb4e2345b69c47,0x3fed21aa6c146512,1
+np.float64,0x3fe3f7830327ef06,0x3fe9f85f6c88c2a8,1
+np.float64,0x3fca915fb63522bf,0x3fef502b73a52ecf,1
+np.float64,0x3fe66d3709ecda6e,0x3fe87531d7372d7a,1
+np.float64,0x3fd86000bcb0c001,0x3fedb5018dd684ca,1
+np.float64,0x3fe516e5feea2dcc,0x3fe94c68b111404e,1
+np.float64,0x3fd83c53dd3078a8,0x3fedbb9e5dd9e165,1
+np.float64,0x3fedfeeb673bfdd7,0x3fe2f0f0253c5d5d,1
+np.float64,0x3fe0dc6f9c21b8df,0x3feba8e2452410c2,1
+np.float64,0x3fbe154d643c2a9b,0x3fefc780a9357457,1
+np.float64,0x3fe5f63986abec73,0x3fe8c1434951a40a,1
+np.float64,0x3fbce0e50839c1ca,0x3fefcbeeaa27de75,1
+np.float64,0x3fd7ef5c5c2fdeb9,0x3fedc9c3022495b3,1
+np.float64,0x3fc1073914220e72,0x3fefb79de80fc0fd,1
+np.float64,0x3fe1a93c3d235278,0x3feb3fb21f86ac67,1
+np.float64,0x3fe321ee53e643dd,0x3fea72e2999f1e22,1
+np.float64,0x3fa881578c3102af,0x3feff69e6e51e0d6,1
+np.float64,0x3fd313482a262690,0x3fee96d161199495,1
+np.float64,0x3fe7272cd6ae4e5a,0x3fe7fbacbd0d8f43,1
+np.float64,0x3fd6cf4015ad9e80,0x3fedfd3513d544b8,1
+np.float64,0x3fc67b7e6d2cf6fd,0x3fef81f5c16923a4,1
+np.float64,0x3fa1999c14233338,0x3feffb2913a14184,1
+np.float64,0x3fc74eb8dd2e9d72,0x3fef78909a138e3c,1
+np.float64,0x3fc0b9274921724f,0x3fefba2ebd5f3e1c,1
+np.float64,0x3fd53fa156aa7f43,0x3fee40a18e952e88,1
+np.float64,0x3feaccbca4b59979,0x3fe56b22b33eb713,1
+np.float64,0x3fe6a01e3a2d403c,0x3fe8543fbd820ecc,1
+np.float64,0x3fd392a869a72551,0x3fee83e0ffe0e8de,1
+np.float64,0x3fe44d8928689b12,0x3fe9c5bf3c8fffdb,1
+np.float64,0x3fca3f209f347e41,0x3fef5461b6fa0924,1
+np.float64,0x3fee9e84b07d3d09,0x3fe26f638f733549,1
+np.float64,0x3faf49acb03e9359,0x3feff0b583cd8c48,1
+np.float64,0x3fea874b2af50e96,0x3fe59e882fa6febf,1
+np.float64,0x3fc50b72772a16e5,0x3fef918777dc41be,1
+np.float64,0x3fe861d1d4f0c3a4,0x3fe726e44d9d42c2,1
+np.float64,0x3fcadd2e2535ba5c,0x3fef4c3e2b56da38,1
+np.float64,0x3fea59c29cb4b385,0x3fe5c0043e586439,1
+np.float64,0x3fc1ffef0d23ffde,0x3fefaf22be452d13,1
+np.float64,0x3fc2d8dbc125b1b8,0x3fefa75b646d8e4e,1
+np.float64,0x3fd66c6471acd8c9,0x3fee0e5038b895c0,1
+np.float64,0x3fd0854adfa10a96,0x3feef0945bcc5c99,1
+np.float64,0x3feaac7076f558e1,0x3fe58316c23a82ad,1
+np.float64,0x3fdda49db3bb493b,0x3feca0e347c0ad6f,1
+np.float64,0x3fe43a539de874a7,0x3fe9d11d722d4822,1
+np.float64,0x3feeee3ebbfddc7d,0x3fe22dffd251e9af,1
+np.float64,0x3f8ee2c5b03dc58b,0x3fefff11855a7b6c,1
+np.float64,0x3fcd7107c63ae210,0x3fef2840bb55ca52,1
+np.float64,0x3f8d950d203b2a1a,0x3fefff253a08e40e,1
+np.float64,0x3fd40a5e57a814bd,0x3fee71a633c761fc,1
+np.float64,0x3fee836ec83d06de,0x3fe28580975be2fd,1
+np.float64,0x3fd7bbe87f2f77d1,0x3fedd31f661890cc,1
+np.float64,0xbfe05bf138a0b7e2,0x3febe8a000d96e47,1
+np.float64,0xbf88bddd90317bc0,0x3fefff66f6e2ff26,1
+np.float64,0xbfdc9cbb12393976,0x3fecdae2982335db,1
+np.float64,0xbfd85b4eccb0b69e,0x3fedb5e0dd87f702,1
+np.float64,0xbfe5c326cb2b864e,0x3fe8e180f525fa12,1
+np.float64,0xbfe381a0e4a70342,0x3fea3c8e5e3ab78e,1
+np.float64,0xbfe58d892c2b1b12,0x3fe9031551617aed,1
+np.float64,0xbfd7f3a52cafe74a,0x3fedc8fa97edd080,1
+np.float64,0xbfef3417bc7e682f,0x3fe1f45989f6a009,1
+np.float64,0xbfddfb8208bbf704,0x3fec8d5fa9970773,1
+np.float64,0xbfdab69bcc356d38,0x3fed40b2f6c347c6,1
+np.float64,0xbfed3f7cf17a7efa,0x3fe389e4ff4d9235,1
+np.float64,0xbfe47675d9a8ecec,0x3fe9ad6829a69e94,1
+np.float64,0xbfd030e2902061c6,0x3feefb3f811e024f,1
+np.float64,0xbfc376ac7226ed58,0x3fefa1798712b37e,1
+np.float64,0xbfdb7e54a0b6fcaa,0x3fed17a974c4bc28,1
+np.float64,0xbfdb7d5d5736faba,0x3fed17dcf31a8d84,1
+np.float64,0xbf876bd6502ed7c0,0x3fefff76dce6232c,1
+np.float64,0xbfd211e6c02423ce,0x3feebba41f0a1764,1
+np.float64,0xbfb443e3962887c8,0x3fefe658953629d4,1
+np.float64,0xbfe81b09e9b03614,0x3fe757882e4fdbae,1
+np.float64,0xbfdcb905d2b9720c,0x3fecd4c22cfe84e5,1
+np.float64,0xbfe3b62d99276c5b,0x3fea1e5520b3098d,1
+np.float64,0xbfbf05b25c3e0b68,0x3fefc3ecc04bca8e,1
+np.float64,0xbfdedc885b3db910,0x3fec59e22feb49f3,1
+np.float64,0xbfe33aa282667545,0x3fea64f2d55ec471,1
+np.float64,0xbfec84745a3908e9,0x3fe41cb3214e7044,1
+np.float64,0xbfddefdff1bbdfc0,0x3fec8fff88d4d0ec,1
+np.float64,0xbfd26ae6aca4d5ce,0x3feeaf208c7fedf6,1
+np.float64,0xbfee010591fc020b,0x3fe2ef3e57211a5e,1
+np.float64,0xbfb8cfddca319fb8,0x3fefd98d8f7918ed,1
+np.float64,0xbfe991648f3322c9,0x3fe6514e54670bae,1
+np.float64,0xbfee63fd087cc7fa,0x3fe29f1bfa3297cc,1
+np.float64,0xbfe1685942a2d0b2,0x3feb617f5f839eee,1
+np.float64,0xbfc6fc2fd62df860,0x3fef7c4698fd58cf,1
+np.float64,0xbfe42723d3a84e48,0x3fe9dc6ef7243e90,1
+np.float64,0xbfc3a7e89d274fd0,0x3fef9f99e3314e77,1
+np.float64,0xbfeb4c9521f6992a,0x3fe50b7c919bc6d8,1
+np.float64,0xbf707b34e020f680,0x3fefffef05e30264,1
+np.float64,0xbfc078478e20f090,0x3fefbc479305d5aa,1
+np.float64,0xbfd494ac4ca92958,0x3fee5c11f1cd8269,1
+np.float64,0xbfdaf888a035f112,0x3fed3346ae600469,1
+np.float64,0xbfa5d8ed502bb1e0,0x3feff88b0f262609,1
+np.float64,0xbfeec0cbfffd8198,0x3fe253543b2371cb,1
+np.float64,0xbfe594b5986b296b,0x3fe8fe9b39fb3940,1
+np.float64,0xbfc8ece7c631d9d0,0x3fef652bd0611ac7,1
+np.float64,0xbfd8ffeca0b1ffda,0x3fed96ebdf9b65cb,1
+np.float64,0xbfba9b221e353648,0x3fefd3cc21e2f15c,1
+np.float64,0xbfca63a52c34c74c,0x3fef52848eb9ed3b,1
+np.float64,0xbfe588e9b06b11d4,0x3fe905f7403e8881,1
+np.float64,0xbfc76f82db2edf04,0x3fef77138fe9bbc2,1
+np.float64,0xbfeeb3f334bd67e6,0x3fe25ddadb1096d6,1
+np.float64,0xbfbf2b64ce3e56c8,0x3fefc35a9555f6df,1
+np.float64,0xbfe9920e4ff3241c,0x3fe650d4ab8f5c42,1
+np.float64,0xbfb4a54c02294a98,0x3fefe55fc85ae5e9,1
+np.float64,0xbfe353b0c766a762,0x3fea56c02d17e4b7,1
+np.float64,0xbfd99961a4b332c4,0x3fed795fcd00dbf9,1
+np.float64,0xbfef191ddabe323c,0x3fe20aa79524f636,1
+np.float64,0xbfb25d060224ba10,0x3fefeaeee5cc8c0b,1
+np.float64,0xbfe6022428ec0448,0x3fe8b9b46e776194,1
+np.float64,0xbfed1a236cba3447,0x3fe3a76bee0d9861,1
+np.float64,0xbfc59671e72b2ce4,0x3fef8bc4daef6f14,1
+np.float64,0xbfdf2711703e4e22,0x3fec4886a8c9ceb5,1
+np.float64,0xbfeb7e207536fc41,0x3fe4e610c783f168,1
+np.float64,0xbfe6cdf5bcad9bec,0x3fe8365f8a59bc81,1
+np.float64,0xbfe55294adaaa52a,0x3fe927b0af5ccd09,1
+np.float64,0xbfdf4a88913e9512,0x3fec4036df58ba74,1
+np.float64,0xbfebb7efe4376fe0,0x3fe4ba276006992d,1
+np.float64,0xbfe09f29cfa13e54,0x3febc77f4f9c95e7,1
+np.float64,0xbfdf8c75653f18ea,0x3fec30ac924e4f46,1
+np.float64,0xbfefd601c7ffac04,0x3fe16d6f21bcb9c1,1
+np.float64,0xbfeae97ff5f5d300,0x3fe555bb5b87efe9,1
+np.float64,0xbfed427f02fa84fe,0x3fe387830db093bc,1
+np.float64,0xbfa33909cc267210,0x3feffa3a1bcb50dd,1
+np.float64,0xbfe9aa4bf5f35498,0x3fe63f6e98f6aa0f,1
+np.float64,0xbfe2d7349b25ae69,0x3fea9caa7c331e7e,1
+np.float64,0xbfcdbb2a3a3b7654,0x3fef2401c9659e4b,1
+np.float64,0xbfc8a90919315214,0x3fef686fe7fc0513,1
+np.float64,0xbfe62a98df2c5532,0x3fe89ff22a02cc6b,1
+np.float64,0xbfdc0f67b3b81ed0,0x3fecf928b637798f,1
+np.float64,0xbfebb32bf6f76658,0x3fe4bdc893c09698,1
+np.float64,0xbfec067996380cf3,0x3fe47e132741db97,1
+np.float64,0xbfd9774e1d32ee9c,0x3fed7ffe1e87c434,1
+np.float64,0xbfef989890bf3131,0x3fe1a0d025c80cf4,1
+np.float64,0xbfe59887e62b3110,0x3fe8fc382a3d4197,1
+np.float64,0xbfdea0a11e3d4142,0x3fec67b987e236ec,1
+np.float64,0xbfe2ec495825d892,0x3fea90efb231602d,1
+np.float64,0xbfb329c5c2265388,0x3fefe90f1b8209c3,1
+np.float64,0xbfdcd2dcd339a5ba,0x3feccf24c60b1478,1
+np.float64,0xbfe537ea18aa6fd4,0x3fe938237e217fe0,1
+np.float64,0xbfe8675ce170ceba,0x3fe723105925ce3a,1
+np.float64,0xbfd70723acae0e48,0x3fedf369ac070e65,1
+np.float64,0xbfea9d8692b53b0d,0x3fe58e1ee42e3fdb,1
+np.float64,0xbfcfeb96653fd72c,0x3fef029770033bdc,1
+np.float64,0xbfcc06c92d380d94,0x3fef3c69797d9b0a,1
+np.float64,0xbfe16b7c4f62d6f8,0x3feb5fdf9f0a9a07,1
+np.float64,0xbfed4d7a473a9af4,0x3fe37ecee27b1eb7,1
+np.float64,0xbfe6a6f6942d4ded,0x3fe84fccdf762b19,1
+np.float64,0xbfda46d867348db0,0x3fed572d928fa657,1
+np.float64,0xbfdbd9482db7b290,0x3fed049b5f907b52,1
+np.float64,0x7fe992ceb933259c,0xbfeb15af92aad70e,1
+np.float64,0x7fe3069204a60d23,0xbfe5eeff454240e9,1
+np.float64,0x7fe729dbf32e53b7,0xbfefe0528a330e4c,1
+np.float64,0x7fec504fb638a09e,0x3fd288e95dbedf65,1
+np.float64,0x7fe1d30167a3a602,0xbfeffc41f946fd02,1
+np.float64,0x7fed7f8ffd3aff1f,0x3fefe68ec604a19d,1
+np.float64,0x7fd2f23635a5e46b,0x3fea63032efbb447,1
+np.float64,0x7fd4c86db1a990da,0x3fdf6b9f7888db5d,1
+np.float64,0x7fe7554db6eeaa9a,0x3fe1b41476861bb0,1
+np.float64,0x7fe34e823ba69d03,0x3fefc435532e6294,1
+np.float64,0x7fec5c82fef8b905,0x3fef8f0c6473034f,1
+np.float64,0x7feba221bff74442,0xbfea95b81eb19b47,1
+np.float64,0x7fe74808a5ae9010,0xbfd3aa322917c3e5,1
+np.float64,0x7fdf41b7e0be836f,0x3fd14283c7147282,1
+np.float64,0x7fec09892f381311,0x3fe5240376ae484b,1
+np.float64,0x7faaf80bf435f017,0x3fe20227fa811423,1
+np.float64,0x7f8422d8402845b0,0x3fe911714593b8a0,1
+np.float64,0x7fd23a7fada474fe,0x3feff9f40aa37e9c,1
+np.float64,0x7fef4a4806fe948f,0x3fec6eca89cb4a62,1
+np.float64,0x7fe1e71cf763ce39,0xbfea6ac63f9ba457,1
+np.float64,0x7fe3e555be27caaa,0xbfe75b305d0dbbfd,1
+np.float64,0x7fcb8bac96371758,0xbfe8b126077f9d4c,1
+np.float64,0x7fc98e2c84331c58,0x3fef9092eb0bc85a,1
+np.float64,0x7fe947cf2b728f9d,0xbfebfff2c5b7d198,1
+np.float64,0x7feee8058c3dd00a,0xbfef21ebaae2eb17,1
+np.float64,0x7fef61d8d5bec3b1,0xbfdf1a032fb1c864,1
+np.float64,0x7fcf714b6f3ee296,0x3fe6fc89a8084098,1
+np.float64,0x7fa9a8b44c335168,0xbfeb16c149cea943,1
+np.float64,0x7fd175c482a2eb88,0xbfef64d341e73f88,1
+np.float64,0x7feab8e6a87571cc,0x3feb10069c397464,1
+np.float64,0x7fe3ade72de75bcd,0x3fd1753e333d5790,1
+np.float64,0x7fb26d87d224db0f,0xbfe753d36b18f4ca,1
+np.float64,0x7fdb7ef159b6fde2,0x3fe5c0a6044d3607,1
+np.float64,0x7fd5af86422b5f0c,0x3fe77193c95f6484,1
+np.float64,0x7fee9e00b07d3c00,0x3fe864d494596845,1
+np.float64,0x7fef927a147f24f3,0xbfe673b14715693d,1
+np.float64,0x7fd0aea63c215d4b,0xbfeff435f119fce9,1
+np.float64,0x7fd02e3796a05c6e,0x3fe4f7e3706e9a3d,1
+np.float64,0x7fd3ed61da27dac3,0xbfefef2f057f168c,1
+np.float64,0x7fefaca0d4ff5941,0x3fd3e8ad205cd4ab,1
+np.float64,0x7feb659e06f6cb3b,0x3fd64d803203e027,1
+np.float64,0x7fc94ccfaf32999e,0x3fee04922209369a,1
+np.float64,0x7feb4ec294f69d84,0xbfd102763a056c89,1
+np.float64,0x7fe2ada6ac655b4c,0x3fef4f6792aa6093,1
+np.float64,0x7fe5f40fdc2be81f,0xbfb4a6327186eee8,1
+np.float64,0x7fe7584bc3eeb097,0xbfd685b8ff94651d,1
+np.float64,0x7fe45d276be8ba4e,0x3fee53b13f7e442f,1
+np.float64,0x7fe6449b3d6c8935,0xbfe7e08bafa75251,1
+np.float64,0x7f8d62e6b03ac5cc,0x3fe73d30762f38fd,1
+np.float64,0x7fe3a76f72a74ede,0xbfeb48a28bc60968,1
+np.float64,0x7fd057706920aee0,0x3fdece8fa06f626c,1
+np.float64,0x7fe45ae158e8b5c2,0x3fe7a70f47b4d349,1
+np.float64,0x7fea8a5a983514b4,0x3fefb053d5f9ddd7,1
+np.float64,0x7fdd1e86ab3a3d0c,0x3fe3cded1b93816b,1
+np.float64,0x7fdb456108b68ac1,0xbfe37574c0b9bf8f,1
+np.float64,0x7fe972602432e4bf,0x3fef9a26e65ec01c,1
+np.float64,0x7fdbe2385637c470,0x3fed541df57969e1,1
+np.float64,0x7fe57f03602afe06,0x3fbd90f595cbbd94,1
+np.float64,0x7feb0ceb68f619d6,0xbfeae9cb8ee5261f,1
+np.float64,0x7fe6abfe6c6d57fc,0xbfef40a6edaca26f,1
+np.float64,0x7fe037ea08606fd3,0xbfda817d75858597,1
+np.float64,0x7fdd75a52dbaeb49,0x3feef2a0d91d6aa1,1
+np.float64,0x7fe8f9af66b1f35e,0xbfedfceef2a3bfc9,1
+np.float64,0x7fedf762b53beec4,0x3fd8b4f21ef69ee3,1
+np.float64,0x7fe99295b7f3252a,0x3feffc24d970383e,1
+np.float64,0x7fe797b0172f2f5f,0x3fee089aa56f7ce8,1
+np.float64,0x7fed89dcc97b13b9,0xbfcfa2bb0c3ea41f,1
+np.float64,0x7fae9e8d5c3d3d1a,0xbfe512ffe16c6b08,1
+np.float64,0x7fefaecbe27f5d97,0x3fbfc718a5e972f1,1
+np.float64,0x7fce0236d93c046d,0xbfa9b7cd790db256,1
+np.float64,0x7fa9689aac32d134,0x3feced501946628a,1
+np.float64,0x7feb1469e93628d3,0x3fef2a988e7673ed,1
+np.float64,0x7fdba78344b74f06,0xbfe092e78965b30c,1
+np.float64,0x7fece54c3fb9ca97,0x3fd3cfd184bed2e6,1
+np.float64,0x7fdb84212b370841,0xbfe25ebf2db6ee55,1
+np.float64,0x7fbe3e8bf23c7d17,0x3fe2ee72df573345,1
+np.float64,0x7fe43d9803687b2f,0xbfed2eff6a9e66a0,1
+np.float64,0x7fb0f9c00a21f37f,0x3feff70f3276fdb7,1
+np.float64,0x7fea0c6cbbb418d8,0xbfefa612494798b2,1
+np.float64,0x7fe4b3239e296646,0xbfe74dd959af8cdc,1
+np.float64,0x7fe5c6a773eb8d4e,0xbfd06944048f8d2b,1
+np.float64,0x7fb1c1278223824e,0xbfeb533a34655bde,1
+np.float64,0x7fd21c09ee243813,0xbfe921ccbc9255c3,1
+np.float64,0x7fe051020c20a203,0x3fbd519d700c1f2f,1
+np.float64,0x7fe0c76845e18ed0,0x3fefb9595191a31b,1
+np.float64,0x7fe6b0b57b6d616a,0xbf8c59a8ba5fcd9a,1
+np.float64,0x7fd386c460270d88,0x3fe8ffea5d1a5c46,1
+np.float64,0x7feeb884713d7108,0x3fee9b2247ef6c0d,1
+np.float64,0x7fd85f71b6b0bee2,0xbfefc30ec3e28f07,1
+np.float64,0x7fc341366426826c,0x3fd4234d35386d3b,1
+np.float64,0x7fe56482dd6ac905,0x3fe7189de6a50668,1
+np.float64,0x7fec67a2e3f8cf45,0xbfef86d0b940f37f,1
+np.float64,0x7fe38b202fe7163f,0x3feb90b75caa2030,1
+np.float64,0x7fdcbc64883978c8,0x3fed4f758fbf64d4,1
+np.float64,0x7fea5f0598f4be0a,0x3fdd503a417b3d4d,1
+np.float64,0x7fda3b6bcf3476d7,0x3fea6e9af3f7f9f5,1
+np.float64,0x7fc7d7896c2faf12,0x3fda2bebc36a2363,1
+np.float64,0x7fe7e8e2626fd1c4,0xbfe7d5e390c4cc3f,1
+np.float64,0x7fde0f3d7abc1e7a,0xbfede7a0ecfa3606,1
+np.float64,0x7fc692b8f52d2571,0x3feff0cd7ab6f61b,1
+np.float64,0xff92d1fce825a400,0xbfc921c36fc014fa,1
+np.float64,0xffdec3af2fbd875e,0xbfed6a77e6a0364e,1
+np.float64,0xffef46e7d9be8dcf,0xbfed7d39476f7e27,1
+np.float64,0xffe2c2ce4525859c,0x3fe1757261316bc9,1
+np.float64,0xffe27c8b5864f916,0xbfefe017c0d43457,1
+np.float64,0xffe184d7442309ae,0x3fa1fb8c49dba596,1
+np.float64,0xffddf5f98d3bebf4,0x3fee4f8eaa5f847e,1
+np.float64,0xffee3ef354fc7de6,0xbfebfd60fa51b2ba,1
+np.float64,0xffdecb3e85bd967e,0x3fbfad2667a8b468,1
+np.float64,0xffe4ee900b29dd20,0xbfdc02dc626f91cd,1
+np.float64,0xffd3179f6da62f3e,0xbfe2cfe442511776,1
+np.float64,0xffe99ef7cef33def,0x3f50994542a7f303,1
+np.float64,0xffe2b66b1ae56cd6,0xbfefe3e066eb6329,1
+np.float64,0xff8f72aff03ee540,0x3fe9c46224cf5003,1
+np.float64,0xffd29beb85a537d8,0x3fefcb0b6166be71,1
+np.float64,0xffaef02d4c3de060,0xbfef5fb71028fc72,1
+np.float64,0xffd39a2a89273456,0x3fe6d4b183205dca,1
+np.float64,0xffef8a9392ff1526,0x3fedb99fbf402468,1
+np.float64,0xffb9b3f31e3367e8,0x3fee1005270fcf80,1
+np.float64,0xffed9d5c693b3ab8,0x3fd110f4b02365d5,1
+np.float64,0xffeaba45f9f5748b,0x3fe499e0a6f4afb2,1
+np.float64,0xffdba3f70d3747ee,0xbfca0c30493ae519,1
+np.float64,0xffa35b985426b730,0xbfdb625df56bcf45,1
+np.float64,0xffccbc9728397930,0x3fc53cbc59020704,1
+np.float64,0xffef73c942bee792,0xbfdc647a7a5e08be,1
+np.float64,0xffcb5acfb236b5a0,0x3feeb4ec038c39fc,1
+np.float64,0xffea116fe2b422df,0x3fefe03b6ae0b435,1
+np.float64,0xffe97de6e7b2fbcd,0xbfd2025698fab9eb,1
+np.float64,0xffdddba314bbb746,0x3fd31f0fdb8f93be,1
+np.float64,0xffd613a24a2c2744,0xbfebbb1efae884b3,1
+np.float64,0xffe3d938aa67b271,0xbfc2099cead3d3be,1
+np.float64,0xffdf08c2e33e1186,0xbfefd236839b900d,1
+np.float64,0xffea6ba8bd34d751,0x3fe8dfc032114719,1
+np.float64,0xffe3202083e64040,0x3fed513b81432a22,1
+np.float64,0xffb2397db62472f8,0xbfee7d7fe1c3f76c,1
+np.float64,0xffd9d0682ab3a0d0,0x3fe0bcf9e531ad79,1
+np.float64,0xffc293df202527c0,0xbfe58d0bdece5e64,1
+np.float64,0xffe1422c7da28458,0xbf81bd72595f2341,1
+np.float64,0xffd64e4ed4ac9c9e,0x3fa4334cc011c703,1
+np.float64,0xffe40a970ae8152e,0x3fead3d258b55b7d,1
+np.float64,0xffc8c2f2223185e4,0xbfef685f07c8b9fd,1
+np.float64,0xffe4b2f7216965ee,0x3fe3861d3d896a83,1
+np.float64,0xffdb531db3b6a63c,0x3fe18cb8332dd59d,1
+np.float64,0xffe8e727a3b1ce4e,0xbfe57b15abb677b9,1
+np.float64,0xffe530c1e12a6184,0xbfb973ea5535e48f,1
+np.float64,0xffe6f7849cedef08,0x3fd39a37ec5af4b6,1
+np.float64,0xffead62a78b5ac54,0x3fe69b3f6c7aa24b,1
+np.float64,0xffeefdd725fdfbad,0xbfc08a456111fdd5,1
+np.float64,0xffe682182fed0430,0x3fecc7c1292761d2,1
+np.float64,0xffee0ca8dcbc1951,0x3fef6cc361ef2c19,1
+np.float64,0xffec9b338f393666,0x3fefa9ab8e0471b5,1
+np.float64,0xffe13c5e29a278bc,0xbfef8da74ad83398,1
+np.float64,0xffd7bd48c62f7a92,0x3fe3468cd4ac9d34,1
+np.float64,0xffedd0ed14bba1d9,0xbfd563a83477077b,1
+np.float64,0xffe86b83f3f0d707,0x3fe9eb3c658e4b2d,1
+np.float64,0xffd6a4db4bad49b6,0xbfc7e11276166e17,1
+np.float64,0xffc29e8404253d08,0x3fd35971961c789f,1
+np.float64,0xffe27cf3d664f9e7,0xbfeca0f73c72f810,1
+np.float64,0xffc34152352682a4,0x3fef384e564c002c,1
+np.float64,0xffe395728ba72ae4,0x3f8fe18c2de86eba,1
+np.float64,0xffed86c4fbbb0d89,0x3fef709db881c672,1
+np.float64,0xffe8a98d37f1531a,0x3fd4879c8f73c3dc,1
+np.float64,0xffb8ce9fea319d40,0xbfb853c8fe46b08d,1
+np.float64,0xffe7f26db8efe4db,0xbfec1cfd3e5c2ac1,1
+np.float64,0xffd7935b77af26b6,0x3fb7368c89b2a460,1
+np.float64,0xffc5840ed02b081c,0x3fd92220b56631f3,1
+np.float64,0xffc36a873926d510,0x3fa84d61baf61811,1
+np.float64,0xffe06ea583e0dd4a,0x3feb647e348b9e39,1
+np.float64,0xffe6a33031ed4660,0xbfe096b851dc1a0a,1
+np.float64,0xffe001c938e00392,0x3fe4eece77623e7a,1
+np.float64,0xffc1e4f23b23c9e4,0xbfdb9bb1f83f6ac4,1
+np.float64,0xffecd3ecbab9a7d9,0x3fbafb1f800f177d,1
+np.float64,0xffc2d3016825a604,0xbfef650e8b0d6afb,1
+np.float64,0xffe222cb68e44596,0x3fde3690e44de5bd,1
+np.float64,0xffe5bb145e2b7628,0x3fedbb98e23c9dc1,1
+np.float64,0xffe9e5823b73cb04,0xbfee41661016c03c,1
+np.float64,0xffd234a00ba46940,0x3fda0312cda580c2,1
+np.float64,0xffe0913ed6e1227d,0xbfed508bb529bd23,1
+np.float64,0xffe8e3596171c6b2,0xbfdc33e1c1d0310e,1
+np.float64,0xffef9c6835ff38cf,0x3fea8ce6d27dfba3,1
+np.float64,0xffdd3bcf66ba779e,0x3fe50523d2b6470e,1
+np.float64,0xffe57e8cf06afd1a,0xbfee600933347247,1
+np.float64,0xffe0d8c65fa1b18c,0x3fe75091f93d5e4c,1
+np.float64,0xffea7c8c16b4f918,0x3fee681724795198,1
+np.float64,0xffe34f7a05269ef4,0xbfe3c3e179676f13,1
+np.float64,0xffd28894a6a5112a,0xbfe5d1027aee615d,1
+np.float64,0xffc73be6f22e77cc,0x3fe469bbc08b472a,1
+np.float64,0xffe7f71b066fee36,0x3fe7ed136c8fdfaa,1
+np.float64,0xffebc13e29f7827c,0x3fefcdc6e677d314,1
+np.float64,0xffd53e9c942a7d3a,0x3fea5a02c7341749,1
+np.float64,0xffd7191b23ae3236,0x3fea419b66023443,1
+np.float64,0xffe9480325b29006,0xbfefeaff5fa38cd5,1
+np.float64,0xffba46dc0e348db8,0xbfefa54f4de28eba,1
+np.float64,0xffdd4cc31eba9986,0x3fe60bb41fe1c4da,1
+np.float64,0xffe13a70dea274e1,0xbfaa9192f7bd6c9b,1
+np.float64,0xffde25127bbc4a24,0x3f7c75f45e29be7d,1
+np.float64,0xffe4076543a80eca,0x3fea5aad50d2f687,1
+np.float64,0xffe61512acec2a25,0xbfefffeb67401649,1
+np.float64,0xffef812ec1ff025d,0xbfe919c7c073c766,1
+np.float64,0xffd5552aeaaaaa56,0x3fc89d38ab047396,1
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/data/umath-validation-set-cosh.csv b/python/user_packages/Python313/site-packages/numpy/_core/tests/data/umath-validation-set-cosh.csv
new file mode 100644
index 0000000000000000000000000000000000000000..eea28656546e5a3ee521d7ba4a52111c38b353f2
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/tests/data/umath-validation-set-cosh.csv
@@ -0,0 +1,1429 @@
+dtype,input,output,ulperrortol
+np.float32,0xfe0ac238,0x7f800000,3
+np.float32,0xbf553b86,0x3faf079b,3
+np.float32,0xff4457da,0x7f800000,3
+np.float32,0xff7253f3,0x7f800000,3
+np.float32,0x5a5802,0x3f800000,3
+np.float32,0x3db03413,0x3f80795b,3
+np.float32,0x7f6795c9,0x7f800000,3
+np.float32,0x805b9142,0x3f800000,3
+np.float32,0xfeea581a,0x7f800000,3
+np.float32,0x3f7e2dba,0x3fc472f6,3
+np.float32,0x3d9c4d74,0x3f805f7a,3
+np.float32,0x7f18c665,0x7f800000,3
+np.float32,0x7f003e23,0x7f800000,3
+np.float32,0x3d936fa0,0x3f8054f3,3
+np.float32,0x3f32034f,0x3fa0368e,3
+np.float32,0xff087604,0x7f800000,3
+np.float32,0x380a5,0x3f800000,3
+np.float32,0x3f59694e,0x3fb10077,3
+np.float32,0x3e63e648,0x3f832ee4,3
+np.float32,0x80712f42,0x3f800000,3
+np.float32,0x3e169908,0x3f816302,3
+np.float32,0x3f2d766e,0x3f9e8692,3
+np.float32,0x3d6412e0,0x3f8032d0,3
+np.float32,0xbde689e8,0x3f80cfd4,3
+np.float32,0x483e2e,0x3f800000,3
+np.float32,0xff1ba2d0,0x7f800000,3
+np.float32,0x80136bff,0x3f800000,3
+np.float32,0x3f72534c,0x3fbdc1d4,3
+np.float32,0x3e9eb381,0x3f8632c6,3
+np.float32,0x3e142892,0x3f815795,3
+np.float32,0x0,0x3f800000,3
+np.float32,0x2f2528,0x3f800000,3
+np.float32,0x7f38be13,0x7f800000,3
+np.float32,0xfeee6896,0x7f800000,3
+np.float32,0x7f09095d,0x7f800000,3
+np.float32,0xbe94d,0x3f800000,3
+np.float32,0xbedcf8d4,0x3f8c1b74,3
+np.float32,0xbf694c02,0x3fb8ef07,3
+np.float32,0x3e2261f8,0x3f819cde,3
+np.float32,0xbf01d3ce,0x3f90d0e0,3
+np.float32,0xbeb7b3a2,0x3f8853de,3
+np.float32,0x8046de7b,0x3f800000,3
+np.float32,0xbcb45ea0,0x3f8007f1,3
+np.float32,0x3eef14af,0x3f8e35dd,3
+np.float32,0xbf047316,0x3f91846e,3
+np.float32,0x801cef45,0x3f800000,3
+np.float32,0x3e9ad891,0x3f85e609,3
+np.float32,0xff20e9cf,0x7f800000,3
+np.float32,0x80068434,0x3f800000,3
+np.float32,0xbe253020,0x3f81ab49,3
+np.float32,0x3f13f4b8,0x3f95fac9,3
+np.float32,0x804accd1,0x3f800000,3
+np.float32,0x3dee3e10,0x3f80ddf7,3
+np.float32,0xbe6c4690,0x3f836c29,3
+np.float32,0xff30d431,0x7f800000,3
+np.float32,0xbec82416,0x3f89e791,3
+np.float32,0x3f30bbcb,0x3f9fbbcc,3
+np.float32,0x3f5620a2,0x3faf72b8,3
+np.float32,0x807a8130,0x3f800000,3
+np.float32,0x3e3cb02d,0x3f822de0,3
+np.float32,0xff4839ac,0x7f800000,3
+np.float32,0x800a3e9c,0x3f800000,3
+np.float32,0x3dffd65b,0x3f810002,3
+np.float32,0xbf2b1492,0x3f9da987,3
+np.float32,0xbf21602c,0x3f9a48fe,3
+np.float32,0x512531,0x3f800000,3
+np.float32,0x24b99a,0x3f800000,3
+np.float32,0xbf53e345,0x3fae67b1,3
+np.float32,0xff2126ec,0x7f800000,3
+np.float32,0x7e79b49d,0x7f800000,3
+np.float32,0x3ea3cf04,0x3f869b6f,3
+np.float32,0x7f270059,0x7f800000,3
+np.float32,0x3f625b2f,0x3fb561e1,3
+np.float32,0xbf59947e,0x3fb11519,3
+np.float32,0xfe0d1c64,0x7f800000,3
+np.float32,0xbf3f3eae,0x3fa568e2,3
+np.float32,0x7c04d1,0x3f800000,3
+np.float32,0x7e66bd,0x3f800000,3
+np.float32,0x8011880d,0x3f800000,3
+np.float32,0x3f302f07,0x3f9f8759,3
+np.float32,0x4e3375,0x3f800000,3
+np.float32,0xfe67a134,0x7f800000,3
+np.float32,0xff670249,0x7f800000,3
+np.float32,0x7e19f27d,0x7f800000,3
+np.float32,0xbf36ce12,0x3fa20b81,3
+np.float32,0xbe6bcfc4,0x3f8368b5,3
+np.float32,0x76fcba,0x3f800000,3
+np.float32,0x7f30abaf,0x7f800000,3
+np.float32,0x3f4c1f6d,0x3faae43c,3
+np.float32,0x7f61f44a,0x7f800000,3
+np.float32,0xbf4bb3c9,0x3faab4af,3
+np.float32,0xbda15ee0,0x3f8065c6,3
+np.float32,0xfbb4e800,0x7f800000,3
+np.float32,0x7fa00000,0x7fe00000,3
+np.float32,0x80568501,0x3f800000,3
+np.float32,0xfeb285e4,0x7f800000,3
+np.float32,0x804423a7,0x3f800000,3
+np.float32,0x7e6c0f21,0x7f800000,3
+np.float32,0x7f136b3c,0x7f800000,3
+np.float32,0x3f2d08e6,0x3f9e5e9c,3
+np.float32,0xbf6b454e,0x3fb9f7e6,3
+np.float32,0x3e6bceb0,0x3f8368ad,3
+np.float32,0xff1ad16a,0x7f800000,3
+np.float32,0x7cce1a04,0x7f800000,3
+np.float32,0xff7bcf95,0x7f800000,3
+np.float32,0x8049788d,0x3f800000,3
+np.float32,0x7ec45918,0x7f800000,3
+np.float32,0xff7fffff,0x7f800000,3
+np.float32,0x8039a1a0,0x3f800000,3
+np.float32,0x7e90cd72,0x7f800000,3
+np.float32,0xbf7dfd53,0x3fc456cc,3
+np.float32,0x3eeeb664,0x3f8e2a76,3
+np.float32,0x8055ef9b,0x3f800000,3
+np.float32,0x7ee06ddd,0x7f800000,3
+np.float32,0xba2cc000,0x3f800002,3
+np.float32,0x806da632,0x3f800000,3
+np.float32,0x7ecfaaf5,0x7f800000,3
+np.float32,0x3ddd12e6,0x3f80bf19,3
+np.float32,0xbf754394,0x3fbf60b1,3
+np.float32,0x6f3f19,0x3f800000,3
+np.float32,0x800a9af0,0x3f800000,3
+np.float32,0xfeef13ea,0x7f800000,3
+np.float32,0x7f74841f,0x7f800000,3
+np.float32,0xbeb9a2f0,0x3f888181,3
+np.float32,0x77cbb,0x3f800000,3
+np.float32,0xbf587f84,0x3fb0911b,3
+np.float32,0x210ba5,0x3f800000,3
+np.float32,0x3ee60a28,0x3f8d2367,3
+np.float32,0xbe3731ac,0x3f820dc7,3
+np.float32,0xbee8cfee,0x3f8d765e,3
+np.float32,0x7b2ef179,0x7f800000,3
+np.float32,0xfe81377c,0x7f800000,3
+np.float32,0x6ac98c,0x3f800000,3
+np.float32,0x3f51f144,0x3fad8288,3
+np.float32,0x80785750,0x3f800000,3
+np.float32,0x3f46615a,0x3fa864ff,3
+np.float32,0xbf35ac9e,0x3fa19b8e,3
+np.float32,0x7f0982ac,0x7f800000,3
+np.float32,0x1b2610,0x3f800000,3
+np.float32,0x3ed8bb25,0x3f8ba3df,3
+np.float32,0xbeb41bac,0x3f88006d,3
+np.float32,0xff48e89d,0x7f800000,3
+np.float32,0x3ed0ab8c,0x3f8ac755,3
+np.float32,0xbe64671c,0x3f833282,3
+np.float32,0x64bce4,0x3f800000,3
+np.float32,0x284f79,0x3f800000,3
+np.float32,0x7e09faa7,0x7f800000,3
+np.float32,0x4376c1,0x3f800000,3
+np.float32,0x805ca8c0,0x3f800000,3
+np.float32,0xff0859d5,0x7f800000,3
+np.float32,0xbed2f3b2,0x3f8b04dd,3
+np.float32,0x8045bd0c,0x3f800000,3
+np.float32,0x3f0e6216,0x3f94503f,3
+np.float32,0x3f41e3ae,0x3fa68035,3
+np.float32,0x80088ccc,0x3f800000,3
+np.float32,0x3f37fc19,0x3fa2812f,3
+np.float32,0x71c87d,0x3f800000,3
+np.float32,0x8024f4b2,0x3f800000,3
+np.float32,0xff78dd88,0x7f800000,3
+np.float32,0xbda66c90,0x3f806c40,3
+np.float32,0x7f33ef0d,0x7f800000,3
+np.float32,0x46a343,0x3f800000,3
+np.float32,0xff1dce38,0x7f800000,3
+np.float32,0x1b935d,0x3f800000,3
+np.float32,0x3ebec598,0x3f88fd0e,3
+np.float32,0xff115530,0x7f800000,3
+np.float32,0x803916aa,0x3f800000,3
+np.float32,0xff60a3e2,0x7f800000,3
+np.float32,0x3b8ddd48,0x3f80004f,3
+np.float32,0x3f761b6e,0x3fbfd8ea,3
+np.float32,0xbdf55b88,0x3f80eb70,3
+np.float32,0x37374,0x3f800000,3
+np.float32,0x3de150e0,0x3f80c682,3
+np.float32,0x3f343278,0x3fa10a83,3
+np.float32,0xbe9baefa,0x3f85f68b,3
+np.float32,0x3d8d43,0x3f800000,3
+np.float32,0x3e80994b,0x3f840f0c,3
+np.float32,0xbe573c6c,0x3f82d685,3
+np.float32,0x805b83b4,0x3f800000,3
+np.float32,0x683d88,0x3f800000,3
+np.float32,0x692465,0x3f800000,3
+np.float32,0xbdc345f8,0x3f809511,3
+np.float32,0x3f7c1c5a,0x3fc3406f,3
+np.float32,0xbf40bef3,0x3fa606df,3
+np.float32,0xff1e25b9,0x7f800000,3
+np.float32,0x3e4481e0,0x3f825d37,3
+np.float32,0x75d188,0x3f800000,3
+np.float32,0x3ea53cec,0x3f86b956,3
+np.float32,0xff105a54,0x7f800000,3
+np.float32,0x7f800000,0x7f800000,3
+np.float32,0x7f11f0b0,0x7f800000,3
+np.float32,0xbf58a57d,0x3fb0a328,3
+np.float32,0xbdd11e38,0x3f80aaf8,3
+np.float32,0xbea94adc,0x3f870fa0,3
+np.float32,0x3e9dd780,0x3f862180,3
+np.float32,0xff1786b9,0x7f800000,3
+np.float32,0xfec46aa2,0x7f800000,3
+np.float32,0x7f4300c1,0x7f800000,3
+np.float32,0x29ba2b,0x3f800000,3
+np.float32,0x3f4112e2,0x3fa62993,3
+np.float32,0xbe6c9224,0x3f836e5d,3
+np.float32,0x7f0e42a3,0x7f800000,3
+np.float32,0xff6390ad,0x7f800000,3
+np.float32,0x3f54e374,0x3faede94,3
+np.float32,0x7f2642a2,0x7f800000,3
+np.float32,0x7f46b2be,0x7f800000,3
+np.float32,0xfe59095c,0x7f800000,3
+np.float32,0x7146a0,0x3f800000,3
+np.float32,0x3f07763d,0x3f925786,3
+np.float32,0x3d172780,0x3f801651,3
+np.float32,0xff66f1c5,0x7f800000,3
+np.float32,0xff025349,0x7f800000,3
+np.float32,0x6ce99d,0x3f800000,3
+np.float32,0xbf7e4f50,0x3fc48685,3
+np.float32,0xbeff8ca2,0x3f904708,3
+np.float32,0x3e6c8,0x3f800000,3
+np.float32,0x7f7153dc,0x7f800000,3
+np.float32,0xbedcf612,0x3f8c1b26,3
+np.float32,0xbbc2f180,0x3f800094,3
+np.float32,0xbf397399,0x3fa314b8,3
+np.float32,0x6c6e35,0x3f800000,3
+np.float32,0x7f50a88b,0x7f800000,3
+np.float32,0xfe84093e,0x7f800000,3
+np.float32,0x3f737b9d,0x3fbe6478,3
+np.float32,0x7f6a5340,0x7f800000,3
+np.float32,0xbde83c20,0x3f80d2e7,3
+np.float32,0xff769ce9,0x7f800000,3
+np.float32,0xfdd33c30,0x7f800000,3
+np.float32,0xbc95cb60,0x3f80057a,3
+np.float32,0x8007a40d,0x3f800000,3
+np.float32,0x3f55d90c,0x3faf5132,3
+np.float32,0x80282082,0x3f800000,3
+np.float32,0xbf43b1f2,0x3fa7418c,3
+np.float32,0x3f1dc7cb,0x3f991731,3
+np.float32,0xbd4346a0,0x3f80253f,3
+np.float32,0xbf5aa82a,0x3fb19946,3
+np.float32,0x3f4b8c22,0x3faaa333,3
+np.float32,0x3d13468c,0x3f80152f,3
+np.float32,0x7db77097,0x7f800000,3
+np.float32,0x4a00df,0x3f800000,3
+np.float32,0xbedea5e0,0x3f8c4b64,3
+np.float32,0x80482543,0x3f800000,3
+np.float32,0xbef344fe,0x3f8eb8dd,3
+np.float32,0x7ebd4044,0x7f800000,3
+np.float32,0xbf512c0e,0x3fad287e,3
+np.float32,0x3db28cce,0x3f807c9c,3
+np.float32,0xbd0f5ae0,0x3f801412,3
+np.float32,0xfe7ed9ac,0x7f800000,3
+np.float32,0x3eb1aa82,0x3f87c8b4,3
+np.float32,0xfef1679e,0x7f800000,3
+np.float32,0xff3629f2,0x7f800000,3
+np.float32,0xff3562b4,0x7f800000,3
+np.float32,0x3dcafe1d,0x3f80a118,3
+np.float32,0xfedf242a,0x7f800000,3
+np.float32,0xbf43102a,0x3fa6fda4,3
+np.float32,0x8028834e,0x3f800000,3
+np.float32,0x805c8513,0x3f800000,3
+np.float32,0x3f59306a,0x3fb0e550,3
+np.float32,0x3eda2c9c,0x3f8bcc4a,3
+np.float32,0x80023524,0x3f800000,3
+np.float32,0x7ef72879,0x7f800000,3
+np.float32,0x661c8a,0x3f800000,3
+np.float32,0xfec3ba6c,0x7f800000,3
+np.float32,0x805aaca6,0x3f800000,3
+np.float32,0xff5c1f13,0x7f800000,3
+np.float32,0x3f6ab3f4,0x3fb9ab6b,3
+np.float32,0x3f014896,0x3f90ac20,3
+np.float32,0x3f030584,0x3f91222a,3
+np.float32,0xbf74853d,0x3fbef71d,3
+np.float32,0xbf534ee0,0x3fae2323,3
+np.float32,0x2c90c3,0x3f800000,3
+np.float32,0x7f62ad25,0x7f800000,3
+np.float32,0x1c8847,0x3f800000,3
+np.float32,0x7e2a8d43,0x7f800000,3
+np.float32,0x807a09cd,0x3f800000,3
+np.float32,0x413871,0x3f800000,3
+np.float32,0x80063692,0x3f800000,3
+np.float32,0x3edaf29b,0x3f8be211,3
+np.float32,0xbf64a7ab,0x3fb68b2d,3
+np.float32,0xfe56a720,0x7f800000,3
+np.float32,0xbf54a8d4,0x3faec350,3
+np.float32,0x3ecbaef7,0x3f8a4350,3
+np.float32,0x3f413714,0x3fa63890,3
+np.float32,0x7d3aa8,0x3f800000,3
+np.float32,0xbea9a13c,0x3f8716e7,3
+np.float32,0x7ef7553e,0x7f800000,3
+np.float32,0x8056f29f,0x3f800000,3
+np.float32,0xff1f7ffe,0x7f800000,3
+np.float32,0x3f41953b,0x3fa65f9c,3
+np.float32,0x3daa2f,0x3f800000,3
+np.float32,0xff0893e4,0x7f800000,3
+np.float32,0xbefc7ec6,0x3f8fe207,3
+np.float32,0xbb026800,0x3f800011,3
+np.float32,0x341e4f,0x3f800000,3
+np.float32,0x3e7b708a,0x3f83e0d1,3
+np.float32,0xa18cb,0x3f800000,3
+np.float32,0x7e290239,0x7f800000,3
+np.float32,0xbf4254f2,0x3fa6af62,3
+np.float32,0x80000000,0x3f800000,3
+np.float32,0x3f0a6c,0x3f800000,3
+np.float32,0xbec44d28,0x3f898609,3
+np.float32,0xf841f,0x3f800000,3
+np.float32,0x7f01a693,0x7f800000,3
+np.float32,0x8053340b,0x3f800000,3
+np.float32,0xfd4e7990,0x7f800000,3
+np.float32,0xbf782f1f,0x3fc10356,3
+np.float32,0xbe962118,0x3f858acc,3
+np.float32,0xfe8cd702,0x7f800000,3
+np.float32,0x7ecd986f,0x7f800000,3
+np.float32,0x3ebe775f,0x3f88f59b,3
+np.float32,0x8065524f,0x3f800000,3
+np.float32,0x3ede7fc4,0x3f8c471e,3
+np.float32,0x7f5e15ea,0x7f800000,3
+np.float32,0xbe871ada,0x3f847b78,3
+np.float32,0x3f21958b,0x3f9a5af7,3
+np.float32,0x3f64d480,0x3fb6a1fa,3
+np.float32,0xff18b0e9,0x7f800000,3
+np.float32,0xbf0840dd,0x3f928fd9,3
+np.float32,0x80104f5d,0x3f800000,3
+np.float32,0x643b94,0x3f800000,3
+np.float32,0xbc560a80,0x3f8002cc,3
+np.float32,0x3f5c75d6,0x3fb2786e,3
+np.float32,0x7f365fc9,0x7f800000,3
+np.float32,0x54e965,0x3f800000,3
+np.float32,0x6dcd4d,0x3f800000,3
+np.float32,0x3f2057a0,0x3f99f04d,3
+np.float32,0x272fa3,0x3f800000,3
+np.float32,0xff423dc9,0x7f800000,3
+np.float32,0x80273463,0x3f800000,3
+np.float32,0xfe21cc78,0x7f800000,3
+np.float32,0x7fc00000,0x7fc00000,3
+np.float32,0x802feb65,0x3f800000,3
+np.float32,0x3dc733d0,0x3f809b21,3
+np.float32,0x65d56b,0x3f800000,3
+np.float32,0x80351d8e,0x3f800000,3
+np.float32,0xbf244247,0x3f9b43dd,3
+np.float32,0x7f328e7e,0x7f800000,3
+np.float32,0x7f4d9712,0x7f800000,3
+np.float32,0x2c505d,0x3f800000,3
+np.float32,0xbf232ebe,0x3f9ae5a0,3
+np.float32,0x804a363a,0x3f800000,3
+np.float32,0x80417102,0x3f800000,3
+np.float32,0xbf48b170,0x3fa963d4,3
+np.float32,0x7ea3e3b6,0x7f800000,3
+np.float32,0xbf41415b,0x3fa63cd2,3
+np.float32,0xfe3af7c8,0x7f800000,3
+np.float32,0x7f478010,0x7f800000,3
+np.float32,0x80143113,0x3f800000,3
+np.float32,0x3f7626a7,0x3fbfdf2e,3
+np.float32,0xfea20b0a,0x7f800000,3
+np.float32,0x80144d64,0x3f800000,3
+np.float32,0x7db9ba47,0x7f800000,3
+np.float32,0x7f7fffff,0x7f800000,3
+np.float32,0xbe410834,0x3f8247ef,3
+np.float32,0x14a7af,0x3f800000,3
+np.float32,0x7eaebf9e,0x7f800000,3
+np.float32,0xff800000,0x7f800000,3
+np.float32,0x3f0a7d8e,0x3f9330fd,3
+np.float32,0x3ef780,0x3f800000,3
+np.float32,0x3f62253e,0x3fb546d1,3
+np.float32,0x3f4cbeac,0x3fab2acc,3
+np.float32,0x25db1,0x3f800000,3
+np.float32,0x65c54a,0x3f800000,3
+np.float32,0x800f0645,0x3f800000,3
+np.float32,0x3ed28c78,0x3f8af9f0,3
+np.float32,0x8040c6ce,0x3f800000,3
+np.float32,0x5e4e9a,0x3f800000,3
+np.float32,0xbd3fd2b0,0x3f8023f1,3
+np.float32,0xbf5d2d3f,0x3fb2d1b6,3
+np.float32,0x7ead999f,0x7f800000,3
+np.float32,0xbf30dc86,0x3f9fc805,3
+np.float32,0xff2b0a62,0x7f800000,3
+np.float32,0x3d5180e9,0x3f802adf,3
+np.float32,0x3f62716f,0x3fb56d0d,3
+np.float32,0x7e82ae9c,0x7f800000,3
+np.float32,0xfe2d4bdc,0x7f800000,3
+np.float32,0x805cc7d4,0x3f800000,3
+np.float32,0xfb50f700,0x7f800000,3
+np.float32,0xff57b684,0x7f800000,3
+np.float32,0x80344f01,0x3f800000,3
+np.float32,0x7f2af372,0x7f800000,3
+np.float32,0xfeab6204,0x7f800000,3
+np.float32,0x30b251,0x3f800000,3
+np.float32,0x3eed8cc4,0x3f8e0698,3
+np.float32,0x7eeb1c6a,0x7f800000,3
+np.float32,0x3f17ece6,0x3f9735b0,3
+np.float32,0x21e985,0x3f800000,3
+np.float32,0x3f3a7df3,0x3fa37e34,3
+np.float32,0x802a14a2,0x3f800000,3
+np.float32,0x807d4d5b,0x3f800000,3
+np.float32,0x7f6093ce,0x7f800000,3
+np.float32,0x3f800000,0x3fc583ab,3
+np.float32,0x3da2c26e,0x3f806789,3
+np.float32,0xfe05f278,0x7f800000,3
+np.float32,0x800000,0x3f800000,3
+np.float32,0xbee63342,0x3f8d282e,3
+np.float32,0xbf225586,0x3f9a9bd4,3
+np.float32,0xbed60e86,0x3f8b59ba,3
+np.float32,0xbec99484,0x3f8a0ca3,3
+np.float32,0x3e967c71,0x3f859199,3
+np.float32,0x7f26ab62,0x7f800000,3
+np.float32,0xca7f4,0x3f800000,3
+np.float32,0xbf543790,0x3fae8ebc,3
+np.float32,0x3e4c1ed9,0x3f828d2d,3
+np.float32,0xbdf37f88,0x3f80e7e1,3
+np.float32,0xff0cc44e,0x7f800000,3
+np.float32,0x5dea48,0x3f800000,3
+np.float32,0x31023c,0x3f800000,3
+np.float32,0x3ea10733,0x3f866208,3
+np.float32,0x3e11e6f2,0x3f814d2e,3
+np.float32,0x80641960,0x3f800000,3
+np.float32,0x3ef779a8,0x3f8f3edb,3
+np.float32,0x3f2a5062,0x3f9d632a,3
+np.float32,0x2b7d34,0x3f800000,3
+np.float32,0x3eeb95c5,0x3f8dca67,3
+np.float32,0x805c1357,0x3f800000,3
+np.float32,0x3db3a79d,0x3f807e29,3
+np.float32,0xfded1900,0x7f800000,3
+np.float32,0x45f362,0x3f800000,3
+np.float32,0x451f38,0x3f800000,3
+np.float32,0x801d3ae5,0x3f800000,3
+np.float32,0x458d45,0x3f800000,3
+np.float32,0xfda9d298,0x7f800000,3
+np.float32,0x467439,0x3f800000,3
+np.float32,0x7f66554a,0x7f800000,3
+np.float32,0xfef2375a,0x7f800000,3
+np.float32,0xbf33fc47,0x3fa0f5d7,3
+np.float32,0x3f75ba69,0x3fbfa2d0,3
+np.float32,0xfeb625b2,0x7f800000,3
+np.float32,0x8066b371,0x3f800000,3
+np.float32,0x3f5cb4e9,0x3fb29718,3
+np.float32,0x7f3b6a58,0x7f800000,3
+np.float32,0x7f6b35ea,0x7f800000,3
+np.float32,0xbf6ee555,0x3fbbe5be,3
+np.float32,0x3d836e21,0x3f804380,3
+np.float32,0xff43cd0c,0x7f800000,3
+np.float32,0xff55c1fa,0x7f800000,3
+np.float32,0xbf0dfccc,0x3f9432a6,3
+np.float32,0x3ed92121,0x3f8baf00,3
+np.float32,0x80068cc1,0x3f800000,3
+np.float32,0xff0103f9,0x7f800000,3
+np.float32,0x7e51b175,0x7f800000,3
+np.float32,0x8012f214,0x3f800000,3
+np.float32,0x62d298,0x3f800000,3
+np.float32,0xbf3e1525,0x3fa4ef8d,3
+np.float32,0x806b4882,0x3f800000,3
+np.float32,0xbf38c146,0x3fa2ce7c,3
+np.float32,0xbed59c30,0x3f8b4d70,3
+np.float32,0x3d1910c0,0x3f8016e2,3
+np.float32,0x7f33d55b,0x7f800000,3
+np.float32,0x7f5800e3,0x7f800000,3
+np.float32,0x5b2c5d,0x3f800000,3
+np.float32,0x807be750,0x3f800000,3
+np.float32,0x7eb297c1,0x7f800000,3
+np.float32,0x7dafee62,0x7f800000,3
+np.float32,0x7d9e23f0,0x7f800000,3
+np.float32,0x3e580537,0x3f82dbd8,3
+np.float32,0xbf800000,0x3fc583ab,3
+np.float32,0x7f40f880,0x7f800000,3
+np.float32,0x775ad3,0x3f800000,3
+np.float32,0xbedacd36,0x3f8bddf3,3
+np.float32,0x2138f6,0x3f800000,3
+np.float32,0x52c3b7,0x3f800000,3
+np.float32,0x8041cfdd,0x3f800000,3
+np.float32,0x7bf16791,0x7f800000,3
+np.float32,0xbe95869c,0x3f857f55,3
+np.float32,0xbf199796,0x3f97bcaf,3
+np.float32,0x3ef8da38,0x3f8f6b45,3
+np.float32,0x803f3648,0x3f800000,3
+np.float32,0x80026fd2,0x3f800000,3
+np.float32,0x7eb3ac26,0x7f800000,3
+np.float32,0x3e49921b,0x3f827ce8,3
+np.float32,0xbf689aed,0x3fb892de,3
+np.float32,0x3f253509,0x3f9b9779,3
+np.float32,0xff17894a,0x7f800000,3
+np.float32,0x3cd12639,0x3f800aae,3
+np.float32,0x1db14b,0x3f800000,3
+np.float32,0x39a0bf,0x3f800000,3
+np.float32,0xfdfe1d08,0x7f800000,3
+np.float32,0xff416cd2,0x7f800000,3
+np.float32,0x8070d818,0x3f800000,3
+np.float32,0x3e516e12,0x3f82afb8,3
+np.float32,0x80536651,0x3f800000,3
+np.float32,0xbf2903d2,0x3f9cecb7,3
+np.float32,0x3e896ae4,0x3f84a353,3
+np.float32,0xbd6ba2c0,0x3f80363d,3
+np.float32,0x80126d3e,0x3f800000,3
+np.float32,0xfd9d43d0,0x7f800000,3
+np.float32,0x7b56b6,0x3f800000,3
+np.float32,0xff04718e,0x7f800000,3
+np.float32,0x31440f,0x3f800000,3
+np.float32,0xbf7a1313,0x3fc215c9,3
+np.float32,0x7f43d6a0,0x7f800000,3
+np.float32,0x3f566503,0x3faf92cc,3
+np.float32,0xbf39eb0e,0x3fa343f1,3
+np.float32,0xbe35fd70,0x3f8206df,3
+np.float32,0x800c36ac,0x3f800000,3
+np.float32,0x60d061,0x3f800000,3
+np.float32,0x80453e12,0x3f800000,3
+np.float32,0xfe17c36c,0x7f800000,3
+np.float32,0x3d8c72,0x3f800000,3
+np.float32,0xfe8e9134,0x7f800000,3
+np.float32,0xff5d89de,0x7f800000,3
+np.float32,0x7f45020e,0x7f800000,3
+np.float32,0x3f28225e,0x3f9c9d01,3
+np.float32,0xbf3b6900,0x3fa3dbdd,3
+np.float32,0x80349023,0x3f800000,3
+np.float32,0xbf14d780,0x3f964042,3
+np.float32,0x3f56b5d2,0x3fafb8c3,3
+np.float32,0x800c639c,0x3f800000,3
+np.float32,0x7f7a19c8,0x7f800000,3
+np.float32,0xbf7a0815,0x3fc20f86,3
+np.float32,0xbec55926,0x3f89a06e,3
+np.float32,0x4b2cd2,0x3f800000,3
+np.float32,0xbf271eb2,0x3f9c41c8,3
+np.float32,0xff26e168,0x7f800000,3
+np.float32,0x800166b2,0x3f800000,3
+np.float32,0xbde97e38,0x3f80d532,3
+np.float32,0xbf1f93ec,0x3f99af1a,3
+np.float32,0x7f2896ed,0x7f800000,3
+np.float32,0x3da7d96d,0x3f806e1d,3
+np.float32,0x802b7237,0x3f800000,3
+np.float32,0xfdca6bc0,0x7f800000,3
+np.float32,0xbed2e300,0x3f8b0318,3
+np.float32,0x8079d9e8,0x3f800000,3
+np.float32,0x3f388c81,0x3fa2b9c2,3
+np.float32,0x3ed2607c,0x3f8af54a,3
+np.float32,0xff287de6,0x7f800000,3
+np.float32,0x3f55ed89,0x3faf5ac9,3
+np.float32,0x7f5b6af7,0x7f800000,3
+np.float32,0xbeb24730,0x3f87d698,3
+np.float32,0x1,0x3f800000,3
+np.float32,0x3f3a2350,0x3fa35a3b,3
+np.float32,0x8013b422,0x3f800000,3
+np.float32,0x3e9a6560,0x3f85dd35,3
+np.float32,0x80510631,0x3f800000,3
+np.float32,0xfeae39d6,0x7f800000,3
+np.float32,0x7eb437ad,0x7f800000,3
+np.float32,0x8047545b,0x3f800000,3
+np.float32,0x806a1c71,0x3f800000,3
+np.float32,0xbe5543f0,0x3f82c93b,3
+np.float32,0x40e8d,0x3f800000,3
+np.float32,0x63d18b,0x3f800000,3
+np.float32,0x1fa1ea,0x3f800000,3
+np.float32,0x801944e0,0x3f800000,3
+np.float32,0xbf4c7ac6,0x3fab0cae,3
+np.float32,0x7f2679d4,0x7f800000,3
+np.float32,0x3f0102fc,0x3f9099d0,3
+np.float32,0x7e44bdc1,0x7f800000,3
+np.float32,0xbf2072f6,0x3f99f970,3
+np.float32,0x5c7d38,0x3f800000,3
+np.float32,0x30a2e6,0x3f800000,3
+np.float32,0x805b9ca3,0x3f800000,3
+np.float32,0x7cc24ad5,0x7f800000,3
+np.float32,0x3f4f7920,0x3fac6357,3
+np.float32,0x111d62,0x3f800000,3
+np.float32,0xbf4de40a,0x3fabad77,3
+np.float32,0x805d0354,0x3f800000,3
+np.float32,0xbb3d2b00,0x3f800023,3
+np.float32,0x3ef229e7,0x3f8e960b,3
+np.float32,0x3f15754e,0x3f9670e0,3
+np.float32,0xbf689c6b,0x3fb893a5,3
+np.float32,0xbf3796c6,0x3fa2599b,3
+np.float32,0xbe95303c,0x3f8578f2,3
+np.float32,0xfee330de,0x7f800000,3
+np.float32,0xff0d9705,0x7f800000,3
+np.float32,0xbeb0ebd0,0x3f87b7dd,3
+np.float32,0xbf4d5a13,0x3fab6fe7,3
+np.float32,0x80142f5a,0x3f800000,3
+np.float32,0x7e01a87b,0x7f800000,3
+np.float32,0xbe45e5ec,0x3f8265d7,3
+np.float32,0x7f4ac255,0x7f800000,3
+np.float32,0x3ebf6a60,0x3f890ccb,3
+np.float32,0x7f771e16,0x7f800000,3
+np.float32,0x3f41834e,0x3fa6582b,3
+np.float32,0x3f7f6f98,0x3fc52ef0,3
+np.float32,0x7e4ad775,0x7f800000,3
+np.float32,0x3eb39991,0x3f87f4c4,3
+np.float32,0x1e3f4,0x3f800000,3
+np.float32,0x7e84ba19,0x7f800000,3
+np.float32,0x80640be4,0x3f800000,3
+np.float32,0x3f459fc8,0x3fa81272,3
+np.float32,0x3f554ed0,0x3faf109b,3
+np.float32,0x3c6617,0x3f800000,3
+np.float32,0x7f441158,0x7f800000,3
+np.float32,0x7f66e6d8,0x7f800000,3
+np.float32,0x7f565152,0x7f800000,3
+np.float32,0x7f16d550,0x7f800000,3
+np.float32,0xbd4f1950,0x3f8029e5,3
+np.float32,0xcf722,0x3f800000,3
+np.float32,0x3f37d6fd,0x3fa272ad,3
+np.float32,0xff7324ea,0x7f800000,3
+np.float32,0x804bc246,0x3f800000,3
+np.float32,0x7f099ef8,0x7f800000,3
+np.float32,0x5f838b,0x3f800000,3
+np.float32,0x80523534,0x3f800000,3
+np.float32,0x3f595e84,0x3fb0fb50,3
+np.float32,0xfdef8ac8,0x7f800000,3
+np.float32,0x3d9a07,0x3f800000,3
+np.float32,0x410f61,0x3f800000,3
+np.float32,0xbf715dbb,0x3fbd3bcb,3
+np.float32,0xbedd4734,0x3f8c242f,3
+np.float32,0x7e86739a,0x7f800000,3
+np.float32,0x3e81f144,0x3f8424fe,3
+np.float32,0x7f6342d1,0x7f800000,3
+np.float32,0xff6919a3,0x7f800000,3
+np.float32,0xff051878,0x7f800000,3
+np.float32,0x800ba28f,0x3f800000,3
+np.float32,0xfefab3d8,0x7f800000,3
+np.float32,0xff612a84,0x7f800000,3
+np.float32,0x800cd5ab,0x3f800000,3
+np.float32,0x802a07ae,0x3f800000,3
+np.float32,0xfef6ee3a,0x7f800000,3
+np.float32,0x8037e896,0x3f800000,3
+np.float32,0x3ef2d86f,0x3f8eab7d,3
+np.float32,0x3eafe53d,0x3f87a0cb,3
+np.float32,0xba591c00,0x3f800003,3
+np.float32,0x3e9ed028,0x3f863508,3
+np.float32,0x4a12a8,0x3f800000,3
+np.float32,0xbee55c84,0x3f8d0f45,3
+np.float32,0x8038a8d3,0x3f800000,3
+np.float32,0xff055243,0x7f800000,3
+np.float32,0xbf659067,0x3fb701ca,3
+np.float32,0xbee36a86,0x3f8cd5e0,3
+np.float32,0x7f1d74c1,0x7f800000,3
+np.float32,0xbf7657df,0x3fbffaad,3
+np.float32,0x7e37ee34,0x7f800000,3
+np.float32,0xff04bc74,0x7f800000,3
+np.float32,0x806d194e,0x3f800000,3
+np.float32,0x7f5596c3,0x7f800000,3
+np.float32,0xbe09d268,0x3f81293e,3
+np.float32,0x79ff75,0x3f800000,3
+np.float32,0xbf55479c,0x3faf0d3e,3
+np.float32,0xbe5428ec,0x3f82c1d4,3
+np.float32,0x3f624134,0x3fb554d7,3
+np.float32,0x2ccb8a,0x3f800000,3
+np.float32,0xfc082040,0x7f800000,3
+np.float32,0xff315467,0x7f800000,3
+np.float32,0x3e6ea2d2,0x3f837dd5,3
+np.float32,0x8020fdd1,0x3f800000,3
+np.float32,0x7f0416a1,0x7f800000,3
+np.float32,0x710a1b,0x3f800000,3
+np.float32,0x3dfcd050,0x3f80f9fc,3
+np.float32,0xfe995e96,0x7f800000,3
+np.float32,0x3f020d00,0x3f90e006,3
+np.float32,0x8064263e,0x3f800000,3
+np.float32,0xfcee4160,0x7f800000,3
+np.float32,0x801b3a18,0x3f800000,3
+np.float32,0x3f62c984,0x3fb59955,3
+np.float32,0x806e8355,0x3f800000,3
+np.float32,0x7e94f65d,0x7f800000,3
+np.float32,0x1173de,0x3f800000,3
+np.float32,0x3e3ff3b7,0x3f824166,3
+np.float32,0x803b4aea,0x3f800000,3
+np.float32,0x804c5bcc,0x3f800000,3
+np.float32,0x509fe5,0x3f800000,3
+np.float32,0xbf33b5ee,0x3fa0db0b,3
+np.float32,0x3f2ac15c,0x3f9d8ba4,3
+np.float32,0x7f2c54f8,0x7f800000,3
+np.float32,0x7f33d933,0x7f800000,3
+np.float32,0xbf09b2b4,0x3f92f795,3
+np.float32,0x805db8d6,0x3f800000,3
+np.float32,0x6d6e66,0x3f800000,3
+np.float32,0x3ddfea92,0x3f80c40c,3
+np.float32,0xfda719b8,0x7f800000,3
+np.float32,0x5d657f,0x3f800000,3
+np.float32,0xbf005ba3,0x3f906df6,3
+np.float32,0xbf45e606,0x3fa8305c,3
+np.float32,0x5e9fd1,0x3f800000,3
+np.float32,0x8079dc45,0x3f800000,3
+np.float32,0x7e9c40e3,0x7f800000,3
+np.float32,0x6bd5f6,0x3f800000,3
+np.float32,0xbea14a0e,0x3f866761,3
+np.float32,0x7e7323f3,0x7f800000,3
+np.float32,0x7f0c0a79,0x7f800000,3
+np.float32,0xbf7d7aeb,0x3fc40b0f,3
+np.float32,0x437588,0x3f800000,3
+np.float32,0xbf356376,0x3fa17f63,3
+np.float32,0x7f129921,0x7f800000,3
+np.float32,0x7f47a52e,0x7f800000,3
+np.float32,0xba8cb400,0x3f800005,3
+np.float32,0x802284e0,0x3f800000,3
+np.float32,0xbe820f56,0x3f8426ec,3
+np.float32,0x7f2ef6cf,0x7f800000,3
+np.float32,0xbf70a090,0x3fbcd501,3
+np.float32,0xbf173fea,0x3f96ff6d,3
+np.float32,0x3e19c489,0x3f817224,3
+np.float32,0x7f429b30,0x7f800000,3
+np.float32,0xbdae4118,0x3f8076af,3
+np.float32,0x3e70ad30,0x3f838d41,3
+np.float32,0x335fed,0x3f800000,3
+np.float32,0xff5359cf,0x7f800000,3
+np.float32,0xbf17e42b,0x3f9732f1,3
+np.float32,0xff3a950b,0x7f800000,3
+np.float32,0xbcca70c0,0x3f800a02,3
+np.float32,0x3f2cda62,0x3f9e4dad,3
+np.float32,0x3f50c185,0x3facf805,3
+np.float32,0x80000001,0x3f800000,3
+np.float32,0x807b86d2,0x3f800000,3
+np.float32,0x8010c2cf,0x3f800000,3
+np.float32,0x3f130fb8,0x3f95b519,3
+np.float32,0x807dc546,0x3f800000,3
+np.float32,0xbee20740,0x3f8cad3f,3
+np.float32,0x80800000,0x3f800000,3
+np.float32,0x3cbd90c0,0x3f8008c6,3
+np.float32,0x3e693488,0x3f835571,3
+np.float32,0xbe70cd44,0x3f838e35,3
+np.float32,0xbe348dc8,0x3f81feb1,3
+np.float32,0x3f31ea90,0x3fa02d3f,3
+np.float32,0xfcd7e180,0x7f800000,3
+np.float32,0xbe30a75c,0x3f81e8d0,3
+np.float32,0x3e552c5a,0x3f82c89d,3
+np.float32,0xff513f74,0x7f800000,3
+np.float32,0xbdb16248,0x3f807afd,3
+np.float64,0x7fbbf954e437f2a9,0x7ff0000000000000,1
+np.float64,0x581bbf0cb0379,0x3ff0000000000000,1
+np.float64,0x7ff8000000000000,0x7ff8000000000000,1
+np.float64,0xffb959a2a632b348,0x7ff0000000000000,1
+np.float64,0xbfdbd6baebb7ad76,0x3ff189a5ca25a6e1,1
+np.float64,0xbfd094ec9aa129da,0x3ff08a3f6b918065,1
+np.float64,0x3fe236753f646cea,0x3ff2a982660b8b43,1
+np.float64,0xbfe537fadfaa6ff6,0x3ff3a5f1c49c31bf,1
+np.float64,0xbfe31fa7dc663f50,0x3ff2f175374aef0e,1
+np.float64,0x3fc4b6569f296cb0,0x3ff035bde801bb53,1
+np.float64,0x800ce3c00f99c780,0x3ff0000000000000,1
+np.float64,0xbfebcde33e779bc6,0x3ff66de82cd30fc5,1
+np.float64,0x800dc09d3b7b813b,0x3ff0000000000000,1
+np.float64,0x80067d4c450cfa99,0x3ff0000000000000,1
+np.float64,0x1f6ade203ed7,0x3ff0000000000000,1
+np.float64,0xbfd4e311eca9c624,0x3ff0dc1383d6c3db,1
+np.float64,0x800649b3a54c9368,0x3ff0000000000000,1
+np.float64,0xcc14d1ab9829a,0x3ff0000000000000,1
+np.float64,0x3fc290c5bb25218b,0x3ff02b290f46dd6d,1
+np.float64,0x3fe78eb8376f1d70,0x3ff488f3bc259537,1
+np.float64,0xffc60f58e82c1eb0,0x7ff0000000000000,1
+np.float64,0x3fd35666ad26accd,0x3ff0bc6573da6bcd,1
+np.float64,0x7fc20257a62404ae,0x7ff0000000000000,1
+np.float64,0x80076d842e0edb09,0x3ff0000000000000,1
+np.float64,0x3fd8e44b08b1c898,0x3ff139b9a1f8428e,1
+np.float64,0x7fd6f6fc7a2dedf8,0x7ff0000000000000,1
+np.float64,0x3fa01b9f0820373e,0x3ff00206f8ad0f1b,1
+np.float64,0x69ed190ed3da4,0x3ff0000000000000,1
+np.float64,0xbfd997eb34b32fd6,0x3ff14be65a5db4a0,1
+np.float64,0x7feada2d0935b459,0x7ff0000000000000,1
+np.float64,0xbf80987120213100,0x3ff000226d29a9fc,1
+np.float64,0xbfef203e37fe407c,0x3ff82f51f04e8821,1
+np.float64,0xffe3dcf91fa7b9f2,0x7ff0000000000000,1
+np.float64,0x9a367283346cf,0x3ff0000000000000,1
+np.float64,0x800feb09f7bfd614,0x3ff0000000000000,1
+np.float64,0xbfe0319f9520633f,0x3ff217c5205c403f,1
+np.float64,0xbfa91eabd4323d50,0x3ff004ee4347f627,1
+np.float64,0x3fd19cbf7d23397f,0x3ff09c13e8e43571,1
+np.float64,0xffeb8945f0b7128b,0x7ff0000000000000,1
+np.float64,0x800a0eb4f2141d6a,0x3ff0000000000000,1
+np.float64,0xffe83e7312f07ce6,0x7ff0000000000000,1
+np.float64,0xffca53fee834a7fc,0x7ff0000000000000,1
+np.float64,0x800881cbf1710398,0x3ff0000000000000,1
+np.float64,0x80003e6abbe07cd6,0x3ff0000000000000,1
+np.float64,0xbfef6a998afed533,0x3ff859b7852d1b4d,1
+np.float64,0x3fd4eb7577a9d6eb,0x3ff0dcc601261aab,1
+np.float64,0xbfc9c12811338250,0x3ff05331268b05c8,1
+np.float64,0x7fddf84e5e3bf09c,0x7ff0000000000000,1
+np.float64,0xbfd4d6fbbc29adf8,0x3ff0db12db19d187,1
+np.float64,0x80077892bfaef126,0x3ff0000000000000,1
+np.float64,0xffae9d49543d3a90,0x7ff0000000000000,1
+np.float64,0xbfd8bef219317de4,0x3ff136034e5d2f1b,1
+np.float64,0xffe89c74ddb138e9,0x7ff0000000000000,1
+np.float64,0x8003b6bbb7e76d78,0x3ff0000000000000,1
+np.float64,0x315a4e8462b4b,0x3ff0000000000000,1
+np.float64,0x800ee616edddcc2e,0x3ff0000000000000,1
+np.float64,0xdfb27f97bf650,0x3ff0000000000000,1
+np.float64,0x8004723dc328e47c,0x3ff0000000000000,1
+np.float64,0xbfe529500daa52a0,0x3ff3a0b9b33fc84c,1
+np.float64,0xbfe4e46a7ce9c8d5,0x3ff3886ce0f92612,1
+np.float64,0xbf52003680240000,0x3ff00000a203d61a,1
+np.float64,0xffd3400458268008,0x7ff0000000000000,1
+np.float64,0x80076deb444edbd7,0x3ff0000000000000,1
+np.float64,0xa612f6c14c27,0x3ff0000000000000,1
+np.float64,0xbfd41c74c9a838ea,0x3ff0cbe61e16aecf,1
+np.float64,0x43f464a887e8d,0x3ff0000000000000,1
+np.float64,0x800976e748b2edcf,0x3ff0000000000000,1
+np.float64,0xffc79d6ba12f3ad8,0x7ff0000000000000,1
+np.float64,0xffd6dbcb022db796,0x7ff0000000000000,1
+np.float64,0xffd6a9672a2d52ce,0x7ff0000000000000,1
+np.float64,0x3fe95dcfa632bb9f,0x3ff54bbad2ee919e,1
+np.float64,0x3febadd2e1375ba6,0x3ff65e336c47c018,1
+np.float64,0x7fd47c37d828f86f,0x7ff0000000000000,1
+np.float64,0xbfd4ea59e0a9d4b4,0x3ff0dcae6af3e443,1
+np.float64,0x2c112afc58226,0x3ff0000000000000,1
+np.float64,0x8008122bced02458,0x3ff0000000000000,1
+np.float64,0x7fe7105ab3ee20b4,0x7ff0000000000000,1
+np.float64,0x80089634df312c6a,0x3ff0000000000000,1
+np.float64,0x68e9fbc8d1d40,0x3ff0000000000000,1
+np.float64,0xbfec1e1032f83c20,0x3ff69590b9f18ea8,1
+np.float64,0xbfedf181623be303,0x3ff787ef48935dc6,1
+np.float64,0xffe8600457f0c008,0x7ff0000000000000,1
+np.float64,0x7a841ec6f5084,0x3ff0000000000000,1
+np.float64,0x459a572e8b34c,0x3ff0000000000000,1
+np.float64,0x3fe8a232bef14465,0x3ff4fac1780f731e,1
+np.float64,0x3fcb37597d366eb3,0x3ff05cf08ab14ebd,1
+np.float64,0xbfb0261d00204c38,0x3ff00826fb86ca8a,1
+np.float64,0x3fc6e7a6dd2dcf4e,0x3ff041c1222ffa79,1
+np.float64,0xee65dd03dccbc,0x3ff0000000000000,1
+np.float64,0xffe26fdc23e4dfb8,0x7ff0000000000000,1
+np.float64,0x7fe8d6c8cab1ad91,0x7ff0000000000000,1
+np.float64,0xbfeb64bf2676c97e,0x3ff63abb8607828c,1
+np.float64,0x3fd28417b425082f,0x3ff0ac9eb22a732b,1
+np.float64,0xbfd26835b3a4d06c,0x3ff0aa94c48fb6d2,1
+np.float64,0xffec617a01b8c2f3,0x7ff0000000000000,1
+np.float64,0xe1bfff01c3800,0x3ff0000000000000,1
+np.float64,0x3fd4def913a9bdf4,0x3ff0dbbc7271046f,1
+np.float64,0x94f4c17129e98,0x3ff0000000000000,1
+np.float64,0x8009b2eaa33365d6,0x3ff0000000000000,1
+np.float64,0x3fd9633b41b2c678,0x3ff1468388bdfb65,1
+np.float64,0xffe0ae5c80e15cb8,0x7ff0000000000000,1
+np.float64,0x7fdfc35996bf86b2,0x7ff0000000000000,1
+np.float64,0x3fcfc5bdc23f8b7c,0x3ff07ed5caa4545c,1
+np.float64,0xd48b4907a9169,0x3ff0000000000000,1
+np.float64,0xbfe0a2cc52614598,0x3ff2361665895d95,1
+np.float64,0xbfe9068f90720d1f,0x3ff525b82491a1a5,1
+np.float64,0x4238b9208472,0x3ff0000000000000,1
+np.float64,0x800e6b2bf69cd658,0x3ff0000000000000,1
+np.float64,0x7fb638b6ae2c716c,0x7ff0000000000000,1
+np.float64,0x7fe267641764cec7,0x7ff0000000000000,1
+np.float64,0xffc0933d3521267c,0x7ff0000000000000,1
+np.float64,0x7fddfdfb533bfbf6,0x7ff0000000000000,1
+np.float64,0xced2a8e99da55,0x3ff0000000000000,1
+np.float64,0x2a80d5165501b,0x3ff0000000000000,1
+np.float64,0xbfeead2ab63d5a55,0x3ff7eeb5cbcfdcab,1
+np.float64,0x80097f6f92f2fee0,0x3ff0000000000000,1
+np.float64,0x3fee1f29b77c3e54,0x3ff7a0a58c13df62,1
+np.float64,0x3f9d06b8383a0d70,0x3ff001a54a2d8cf8,1
+np.float64,0xbfc8b41d3f31683c,0x3ff04c85379dd6b0,1
+np.float64,0xffd2a04c1e254098,0x7ff0000000000000,1
+np.float64,0xbfb71c01e02e3800,0x3ff010b34220e838,1
+np.float64,0xbfe69249ef6d2494,0x3ff425e48d1e938b,1
+np.float64,0xffefffffffffffff,0x7ff0000000000000,1
+np.float64,0x3feb1d52fbf63aa6,0x3ff618813ae922d7,1
+np.float64,0x7fb8d1a77e31a34e,0x7ff0000000000000,1
+np.float64,0xffc3cfc4ed279f88,0x7ff0000000000000,1
+np.float64,0x2164b9fc42c98,0x3ff0000000000000,1
+np.float64,0x3fbb868cee370d1a,0x3ff017b31b0d4d27,1
+np.float64,0x3fcd6dea583adbd5,0x3ff06cbd16bf44a0,1
+np.float64,0xbfecd041d479a084,0x3ff6efb25f61012d,1
+np.float64,0xbfb0552e6e20aa60,0x3ff00856ca83834a,1
+np.float64,0xe6293cbfcc528,0x3ff0000000000000,1
+np.float64,0x7fba58394034b072,0x7ff0000000000000,1
+np.float64,0x33bc96d467794,0x3ff0000000000000,1
+np.float64,0xffe90ea86bf21d50,0x7ff0000000000000,1
+np.float64,0xbfc626ea6d2c4dd4,0x3ff03d7e01ec3849,1
+np.float64,0x65b56fe4cb6af,0x3ff0000000000000,1
+np.float64,0x3fea409fb7f4813f,0x3ff5b171deab0ebd,1
+np.float64,0x3fe849c1df709384,0x3ff4d59063ff98c4,1
+np.float64,0x169073082d20f,0x3ff0000000000000,1
+np.float64,0xcc8b6add9916e,0x3ff0000000000000,1
+np.float64,0xbfef3d78d5fe7af2,0x3ff83fecc26abeea,1
+np.float64,0x3fe8c65a4a718cb4,0x3ff50a23bfeac7df,1
+np.float64,0x3fde9fa5c8bd3f4c,0x3ff1ddeb12b9d623,1
+np.float64,0xffe2af536da55ea6,0x7ff0000000000000,1
+np.float64,0x800186d0b0c30da2,0x3ff0000000000000,1
+np.float64,0x3fe9ba3c1d737478,0x3ff574ab2bf3a560,1
+np.float64,0xbfe1489c46a29138,0x3ff2641d36b30e21,1
+np.float64,0xbfe4b6b7c0e96d70,0x3ff37880ac8b0540,1
+np.float64,0x800e66ad82fccd5b,0x3ff0000000000000,1
+np.float64,0x7ff0000000000000,0x7ff0000000000000,1
+np.float64,0x7febb0fd477761fa,0x7ff0000000000000,1
+np.float64,0xbfdc433f2eb8867e,0x3ff195ec2a6cce27,1
+np.float64,0x3fe12c5a172258b4,0x3ff25c225b8a34bb,1
+np.float64,0xbfef6f116c3ede23,0x3ff85c47eaed49a0,1
+np.float64,0x800af6f60f35edec,0x3ff0000000000000,1
+np.float64,0xffe567999a2acf32,0x7ff0000000000000,1
+np.float64,0xbfc5ac5ae72b58b4,0x3ff03adb50ec04f3,1
+np.float64,0x3fea1b57e23436b0,0x3ff5a06f98541767,1
+np.float64,0x7fcc3e36fb387c6d,0x7ff0000000000000,1
+np.float64,0x8000c8dc698191ba,0x3ff0000000000000,1
+np.float64,0x3fee5085ed7ca10c,0x3ff7bb92f61245b8,1
+np.float64,0x7fbb9f803a373eff,0x7ff0000000000000,1
+np.float64,0xbfe1e5e806e3cbd0,0x3ff2918f2d773007,1
+np.float64,0x8008f8c3f3b1f188,0x3ff0000000000000,1
+np.float64,0x7fe53df515ea7be9,0x7ff0000000000000,1
+np.float64,0x7fdbb87fb3b770fe,0x7ff0000000000000,1
+np.float64,0x3fefcc0f50ff981f,0x3ff89210a6a04e6b,1
+np.float64,0x3fe33f87d0267f10,0x3ff2fb989ea4f2bc,1
+np.float64,0x1173992022e8,0x3ff0000000000000,1
+np.float64,0x3fef534632bea68c,0x3ff84c5ca9713ff9,1
+np.float64,0x3fc5991d552b3238,0x3ff03a72bfdb6e5f,1
+np.float64,0x3fdad90dc1b5b21c,0x3ff16db868180034,1
+np.float64,0xffe20b8078e41700,0x7ff0000000000000,1
+np.float64,0x7fdf409a82be8134,0x7ff0000000000000,1
+np.float64,0x3fccb7e691396fcd,0x3ff06786b6ccdbcb,1
+np.float64,0xffe416e0b7282dc1,0x7ff0000000000000,1
+np.float64,0xffe3a8a981275152,0x7ff0000000000000,1
+np.float64,0x3fd9c8bd31b3917c,0x3ff150ee6f5f692f,1
+np.float64,0xffeab6fef6356dfd,0x7ff0000000000000,1
+np.float64,0x3fe9c5e3faf38bc8,0x3ff579e18c9bd548,1
+np.float64,0x800b173e44762e7d,0x3ff0000000000000,1
+np.float64,0xffe2719db764e33b,0x7ff0000000000000,1
+np.float64,0x3fd1fcf31223f9e6,0x3ff0a2da7ad99856,1
+np.float64,0x80082c4afcd05896,0x3ff0000000000000,1
+np.float64,0xa56e5e4b4adcc,0x3ff0000000000000,1
+np.float64,0xffbbbddab2377bb8,0x7ff0000000000000,1
+np.float64,0x3b3927c076726,0x3ff0000000000000,1
+np.float64,0x3fec03fd58f807fb,0x3ff6889b8a774728,1
+np.float64,0xbfaa891fb4351240,0x3ff00580987bd914,1
+np.float64,0x7fb4800c4a290018,0x7ff0000000000000,1
+np.float64,0xffbb5d2b6036ba58,0x7ff0000000000000,1
+np.float64,0x7fd6608076acc100,0x7ff0000000000000,1
+np.float64,0x31267e4c624d1,0x3ff0000000000000,1
+np.float64,0x33272266664e5,0x3ff0000000000000,1
+np.float64,0x47bb37f28f768,0x3ff0000000000000,1
+np.float64,0x3fe134bb4ee26977,0x3ff25e7ea647a928,1
+np.float64,0xbfe2b5f42ba56be8,0x3ff2d05cbdc7344b,1
+np.float64,0xbfe0e013fd61c028,0x3ff246dfce572914,1
+np.float64,0x7fecedcda4f9db9a,0x7ff0000000000000,1
+np.float64,0x8001816c2da302d9,0x3ff0000000000000,1
+np.float64,0xffced8b65b3db16c,0x7ff0000000000000,1
+np.float64,0xffdc1d4a0b383a94,0x7ff0000000000000,1
+np.float64,0x7fe94e7339f29ce5,0x7ff0000000000000,1
+np.float64,0x33fb846667f71,0x3ff0000000000000,1
+np.float64,0x800a1380e9542702,0x3ff0000000000000,1
+np.float64,0x800b74eaa776e9d6,0x3ff0000000000000,1
+np.float64,0x5681784aad030,0x3ff0000000000000,1
+np.float64,0xbfee0eb7917c1d6f,0x3ff797b949f7f6b4,1
+np.float64,0xffe4ec5fd2a9d8bf,0x7ff0000000000000,1
+np.float64,0xbfcd7401dd3ae804,0x3ff06cea52c792c0,1
+np.float64,0x800587563beb0ead,0x3ff0000000000000,1
+np.float64,0x3fc15c6f3322b8de,0x3ff025bbd030166d,1
+np.float64,0x7feb6b4caf76d698,0x7ff0000000000000,1
+np.float64,0x7fe136ef82a26dde,0x7ff0000000000000,1
+np.float64,0xf592dac3eb25c,0x3ff0000000000000,1
+np.float64,0x7fd300baf6a60175,0x7ff0000000000000,1
+np.float64,0x7fc880de9e3101bc,0x7ff0000000000000,1
+np.float64,0x7fe7a1aa5caf4354,0x7ff0000000000000,1
+np.float64,0x2f9b8e0e5f373,0x3ff0000000000000,1
+np.float64,0xffcc9071993920e4,0x7ff0000000000000,1
+np.float64,0x8009e151b313c2a4,0x3ff0000000000000,1
+np.float64,0xbfd46e2d18a8dc5a,0x3ff0d27a7b37c1ae,1
+np.float64,0x3fe65c7961acb8f3,0x3ff4116946062a4c,1
+np.float64,0x7fd31b371626366d,0x7ff0000000000000,1
+np.float64,0x98dc924d31b93,0x3ff0000000000000,1
+np.float64,0x268bef364d17f,0x3ff0000000000000,1
+np.float64,0x7fd883ba56310774,0x7ff0000000000000,1
+np.float64,0x3fc53f01a32a7e03,0x3ff0388dea9cd63e,1
+np.float64,0xffe1ea8c0563d518,0x7ff0000000000000,1
+np.float64,0x3fd0bf0e63a17e1d,0x3ff08d0577f5ffa6,1
+np.float64,0x7fef42418f7e8482,0x7ff0000000000000,1
+np.float64,0x8000bccd38c1799b,0x3ff0000000000000,1
+np.float64,0xbfe6c48766ed890f,0x3ff43936fa4048c8,1
+np.float64,0xbfb2a38f3a254720,0x3ff00adc7f7b2822,1
+np.float64,0x3fd5262b2eaa4c56,0x3ff0e1af492c08f5,1
+np.float64,0x80065b4691ecb68e,0x3ff0000000000000,1
+np.float64,0xfb6b9e9ff6d74,0x3ff0000000000000,1
+np.float64,0x8006c71e6ecd8e3e,0x3ff0000000000000,1
+np.float64,0x3fd0a3e43ca147c8,0x3ff08b3ad7b42485,1
+np.float64,0xbfc82d8607305b0c,0x3ff04949d6733ef6,1
+np.float64,0xde048c61bc092,0x3ff0000000000000,1
+np.float64,0xffcf73e0fa3ee7c0,0x7ff0000000000000,1
+np.float64,0xbfe8639d7830c73b,0x3ff4e05f97948376,1
+np.float64,0x8010000000000000,0x3ff0000000000000,1
+np.float64,0x67f01a2acfe04,0x3ff0000000000000,1
+np.float64,0x3fe222e803e445d0,0x3ff2a3a75e5f29d8,1
+np.float64,0xffef84c6387f098b,0x7ff0000000000000,1
+np.float64,0x3fe5969c1e6b2d38,0x3ff3c80130462bb2,1
+np.float64,0x8009f56953d3ead3,0x3ff0000000000000,1
+np.float64,0x3fe05c9b6360b937,0x3ff2232e1cba5617,1
+np.float64,0x3fd8888d63b1111b,0x3ff130a5b788d52f,1
+np.float64,0xffe3a9e6f26753ce,0x7ff0000000000000,1
+np.float64,0x800e2aaa287c5554,0x3ff0000000000000,1
+np.float64,0x3fea8d6c82351ad9,0x3ff5d4d8cde9a11d,1
+np.float64,0x7feef700723dee00,0x7ff0000000000000,1
+np.float64,0x3fa5cb77242b96e0,0x3ff003b62b3e50f1,1
+np.float64,0x7fb68f0a862d1e14,0x7ff0000000000000,1
+np.float64,0x7fb97ee83432fdcf,0x7ff0000000000000,1
+np.float64,0x7fd74a78632e94f0,0x7ff0000000000000,1
+np.float64,0x7fcfe577713fcaee,0x7ff0000000000000,1
+np.float64,0xffe192ee5ea325dc,0x7ff0000000000000,1
+np.float64,0x477d6ae48efae,0x3ff0000000000000,1
+np.float64,0xffe34d5237669aa4,0x7ff0000000000000,1
+np.float64,0x7fe3ce8395a79d06,0x7ff0000000000000,1
+np.float64,0x80019c01ffa33805,0x3ff0000000000000,1
+np.float64,0x74b5b56ce96b7,0x3ff0000000000000,1
+np.float64,0x7fe05ecdeda0bd9b,0x7ff0000000000000,1
+np.float64,0xffe9693eb232d27d,0x7ff0000000000000,1
+np.float64,0xffd2be2c7da57c58,0x7ff0000000000000,1
+np.float64,0x800dbd5cbc1b7aba,0x3ff0000000000000,1
+np.float64,0xbfa36105d426c210,0x3ff002ef2e3a87f7,1
+np.float64,0x800b2d69fb765ad4,0x3ff0000000000000,1
+np.float64,0xbfdb81c9a9370394,0x3ff1802d409cbf7a,1
+np.float64,0x7fd481d014a9039f,0x7ff0000000000000,1
+np.float64,0xffe66c3c1fecd878,0x7ff0000000000000,1
+np.float64,0x3fc55865192ab0c8,0x3ff03915b51e8839,1
+np.float64,0xd6a78987ad4f1,0x3ff0000000000000,1
+np.float64,0x800c6cc80d58d990,0x3ff0000000000000,1
+np.float64,0x979435a12f29,0x3ff0000000000000,1
+np.float64,0xbfbd971e7a3b2e40,0x3ff01b647e45f5a6,1
+np.float64,0x80067565bfeceacc,0x3ff0000000000000,1
+np.float64,0x8001ad689ce35ad2,0x3ff0000000000000,1
+np.float64,0x7fa43253dc2864a7,0x7ff0000000000000,1
+np.float64,0xbfe3dda307e7bb46,0x3ff32ef99a2efe1d,1
+np.float64,0x3fe5d7b395ebaf68,0x3ff3dfd33cdc8ef4,1
+np.float64,0xd94cc9c3b2999,0x3ff0000000000000,1
+np.float64,0x3fee5a513fbcb4a2,0x3ff7c0f17b876ce5,1
+np.float64,0xffe27761fa64eec4,0x7ff0000000000000,1
+np.float64,0x3feb788119b6f102,0x3ff64446f67f4efa,1
+np.float64,0xbfed6e10dffadc22,0x3ff741d5ef610ca0,1
+np.float64,0x7fe73cf98b2e79f2,0x7ff0000000000000,1
+np.float64,0x7847d09af08fb,0x3ff0000000000000,1
+np.float64,0x29ded2da53bdb,0x3ff0000000000000,1
+np.float64,0xbfe51c1ec1aa383e,0x3ff39c0b7cf832e2,1
+np.float64,0xbfeafd5e65f5fabd,0x3ff609548a787f57,1
+np.float64,0x3fd872a26fb0e545,0x3ff12e7fbd95505c,1
+np.float64,0x7fed6b7c1b7ad6f7,0x7ff0000000000000,1
+np.float64,0xffe7ba9ec16f753d,0x7ff0000000000000,1
+np.float64,0x7f89b322f0336645,0x7ff0000000000000,1
+np.float64,0xbfad1677383a2cf0,0x3ff0069ca67e7baa,1
+np.float64,0x3fe0906d04a120da,0x3ff2311b04b7bfef,1
+np.float64,0xffe4b3c9d4296793,0x7ff0000000000000,1
+np.float64,0xbfe476bb0ce8ed76,0x3ff36277d2921a74,1
+np.float64,0x7fc35655cf26acab,0x7ff0000000000000,1
+np.float64,0x7fe9980f0373301d,0x7ff0000000000000,1
+np.float64,0x9e6e04cb3cdc1,0x3ff0000000000000,1
+np.float64,0x800b89e0afb713c2,0x3ff0000000000000,1
+np.float64,0x800bd951a3f7b2a4,0x3ff0000000000000,1
+np.float64,0x29644a9e52c8a,0x3ff0000000000000,1
+np.float64,0x3fe1be2843637c51,0x3ff285e90d8387e4,1
+np.float64,0x7fa233cce4246799,0x7ff0000000000000,1
+np.float64,0xbfcfb7bc2d3f6f78,0x3ff07e657de3e2ed,1
+np.float64,0xffd7c953e7af92a8,0x7ff0000000000000,1
+np.float64,0xbfc5bbaf772b7760,0x3ff03b2ee4febb1e,1
+np.float64,0x8007b7315a6f6e63,0x3ff0000000000000,1
+np.float64,0xbfe906d902320db2,0x3ff525d7e16acfe0,1
+np.float64,0x3fde33d8553c67b1,0x3ff1d09faa19aa53,1
+np.float64,0x61fe76a0c3fcf,0x3ff0000000000000,1
+np.float64,0xa75e355b4ebc7,0x3ff0000000000000,1
+np.float64,0x3fc9e6d86033cdb1,0x3ff05426299c7064,1
+np.float64,0x7fd83f489eb07e90,0x7ff0000000000000,1
+np.float64,0x8000000000000001,0x3ff0000000000000,1
+np.float64,0x80014434ae62886a,0x3ff0000000000000,1
+np.float64,0xbfe21af9686435f3,0x3ff2a149338bdefe,1
+np.float64,0x9354e6cd26a9d,0x3ff0000000000000,1
+np.float64,0xb42b95f768573,0x3ff0000000000000,1
+np.float64,0xbfecb4481bb96890,0x3ff6e15d269dd651,1
+np.float64,0x3f97842ae82f0840,0x3ff0011485156f28,1
+np.float64,0xffdef63d90bdec7c,0x7ff0000000000000,1
+np.float64,0x7fe511a8d36a2351,0x7ff0000000000000,1
+np.float64,0xbf8cb638a0396c80,0x3ff000670c318fb6,1
+np.float64,0x3fe467e1f668cfc4,0x3ff35d65f93ccac6,1
+np.float64,0xbfce7d88f03cfb10,0x3ff074c22475fe5b,1
+np.float64,0x6d0a4994da14a,0x3ff0000000000000,1
+np.float64,0xbfb3072580260e48,0x3ff00b51d3913e9f,1
+np.float64,0x8008fcde36b1f9bd,0x3ff0000000000000,1
+np.float64,0x3fd984df66b309c0,0x3ff149f29125eca4,1
+np.float64,0xffee2a10fe7c5421,0x7ff0000000000000,1
+np.float64,0x80039168ace722d2,0x3ff0000000000000,1
+np.float64,0xffda604379b4c086,0x7ff0000000000000,1
+np.float64,0xffdc6a405bb8d480,0x7ff0000000000000,1
+np.float64,0x3fe62888b26c5111,0x3ff3fdda754c4372,1
+np.float64,0x8008b452cb5168a6,0x3ff0000000000000,1
+np.float64,0x6165d540c2cbb,0x3ff0000000000000,1
+np.float64,0xbfee0c04d17c180a,0x3ff796431c64bcbe,1
+np.float64,0x800609b8448c1371,0x3ff0000000000000,1
+np.float64,0x800fc3fca59f87f9,0x3ff0000000000000,1
+np.float64,0x77f64848efeca,0x3ff0000000000000,1
+np.float64,0x8007cf522d8f9ea5,0x3ff0000000000000,1
+np.float64,0xbfe9fb0b93f3f617,0x3ff591cb0052e22c,1
+np.float64,0x7fd569d5f0aad3ab,0x7ff0000000000000,1
+np.float64,0x7fe5cf489d6b9e90,0x7ff0000000000000,1
+np.float64,0x7fd6e193e92dc327,0x7ff0000000000000,1
+np.float64,0xf78988a5ef131,0x3ff0000000000000,1
+np.float64,0x3fe8f97562b1f2eb,0x3ff5201080fbc12d,1
+np.float64,0x7febfd69d7b7fad3,0x7ff0000000000000,1
+np.float64,0xffc07b5c1720f6b8,0x7ff0000000000000,1
+np.float64,0xbfd966926832cd24,0x3ff146da9adf492e,1
+np.float64,0x7fef5bd9edfeb7b3,0x7ff0000000000000,1
+np.float64,0xbfd2afbc96255f7a,0x3ff0afd601febf44,1
+np.float64,0x7fdd4ea6293a9d4b,0x7ff0000000000000,1
+np.float64,0xbfe8a1e916b143d2,0x3ff4faa23c2793e5,1
+np.float64,0x800188fcd8c311fa,0x3ff0000000000000,1
+np.float64,0xbfe30803f1661008,0x3ff2e9fc729baaee,1
+np.float64,0x7fefffffffffffff,0x7ff0000000000000,1
+np.float64,0x3fd287bec3250f7e,0x3ff0ace34d3102f6,1
+np.float64,0x1f0ee9443e1de,0x3ff0000000000000,1
+np.float64,0xbfd92f73da325ee8,0x3ff14143e4fa2c5a,1
+np.float64,0x3fed7c9bdffaf938,0x3ff74984168734d3,1
+np.float64,0x8002c4d1696589a4,0x3ff0000000000000,1
+np.float64,0xfe03011bfc060,0x3ff0000000000000,1
+np.float64,0x7f7a391e6034723c,0x7ff0000000000000,1
+np.float64,0xffd6fd46f82dfa8e,0x7ff0000000000000,1
+np.float64,0xbfd7520a742ea414,0x3ff112f1ba5d4f91,1
+np.float64,0x8009389d8812713b,0x3ff0000000000000,1
+np.float64,0x7fefb846aaff708c,0x7ff0000000000000,1
+np.float64,0x3fd98a0983331413,0x3ff14a79efb8adbf,1
+np.float64,0xbfd897158db12e2c,0x3ff132137902cf3e,1
+np.float64,0xffc4048d5928091c,0x7ff0000000000000,1
+np.float64,0x80036ae46046d5ca,0x3ff0000000000000,1
+np.float64,0x7faba7ed3c374fd9,0x7ff0000000000000,1
+np.float64,0xbfec4265e1f884cc,0x3ff6a7b8602422c9,1
+np.float64,0xaa195e0b5432c,0x3ff0000000000000,1
+np.float64,0x3feac15d317582ba,0x3ff5ed115758145f,1
+np.float64,0x6c13a5bcd8275,0x3ff0000000000000,1
+np.float64,0xbfed20b8883a4171,0x3ff7194dbd0dc988,1
+np.float64,0x800cde65c899bccc,0x3ff0000000000000,1
+np.float64,0x7c72912af8e53,0x3ff0000000000000,1
+np.float64,0x3fe49d2bb4e93a57,0x3ff36fab3aba15d4,1
+np.float64,0xbfd598fa02ab31f4,0x3ff0eb72fc472025,1
+np.float64,0x8007a191712f4324,0x3ff0000000000000,1
+np.float64,0xbfdeb14872bd6290,0x3ff1e01ca83f35fd,1
+np.float64,0xbfe1da46b3e3b48e,0x3ff28e23ad2f5615,1
+np.float64,0x800a2f348e745e69,0x3ff0000000000000,1
+np.float64,0xbfee66928afccd25,0x3ff7c7ac7dbb3273,1
+np.float64,0xffd78a0a2b2f1414,0x7ff0000000000000,1
+np.float64,0x7fc5fa80b82bf500,0x7ff0000000000000,1
+np.float64,0x800e6d7260dcdae5,0x3ff0000000000000,1
+np.float64,0xbfd6cff2aaad9fe6,0x3ff106f78ee61642,1
+np.float64,0x7fe1041d1d220839,0x7ff0000000000000,1
+np.float64,0xbfdf75586cbeeab0,0x3ff1f8dbaa7e57f0,1
+np.float64,0xffdcaae410b955c8,0x7ff0000000000000,1
+np.float64,0x800fe5e0d1ffcbc2,0x3ff0000000000000,1
+np.float64,0x800d7999527af333,0x3ff0000000000000,1
+np.float64,0xbfe62c233bac5846,0x3ff3ff34220a204c,1
+np.float64,0x7fe99bbff8f3377f,0x7ff0000000000000,1
+np.float64,0x7feeaf471d3d5e8d,0x7ff0000000000000,1
+np.float64,0xd5904ff5ab20a,0x3ff0000000000000,1
+np.float64,0x3fd07aae3320f55c,0x3ff08888c227c968,1
+np.float64,0x7fea82b8dff50571,0x7ff0000000000000,1
+np.float64,0xffef2db9057e5b71,0x7ff0000000000000,1
+np.float64,0xbfe2077fef640f00,0x3ff29b7dd0d39d36,1
+np.float64,0xbfe09a4d7c61349b,0x3ff233c7e88881f4,1
+np.float64,0x3fda50c4cbb4a188,0x3ff15f28a71deee7,1
+np.float64,0x7fe7d9ee6b2fb3dc,0x7ff0000000000000,1
+np.float64,0x3febbf6faeb77edf,0x3ff666d13682ea93,1
+np.float64,0xc401a32988035,0x3ff0000000000000,1
+np.float64,0xbfeab30aa8f56615,0x3ff5e65dcc6603f8,1
+np.float64,0x92c8cea32591a,0x3ff0000000000000,1
+np.float64,0xbff0000000000000,0x3ff8b07551d9f550,1
+np.float64,0xbfbddfb4dc3bbf68,0x3ff01bebaec38faa,1
+np.float64,0xbfd8de3e2a31bc7c,0x3ff1391f4830d20b,1
+np.float64,0xffc83a8f8a307520,0x7ff0000000000000,1
+np.float64,0x3fee026ef53c04de,0x3ff7911337085827,1
+np.float64,0x7fbaf380b235e700,0x7ff0000000000000,1
+np.float64,0xffe5b89fa62b713f,0x7ff0000000000000,1
+np.float64,0xbfdc1ff54ab83fea,0x3ff191e8c0b60bb2,1
+np.float64,0x6ae3534cd5c6b,0x3ff0000000000000,1
+np.float64,0xbfea87e558750fcb,0x3ff5d24846013794,1
+np.float64,0xffe0f467bee1e8cf,0x7ff0000000000000,1
+np.float64,0x7fee3b0dc7bc761b,0x7ff0000000000000,1
+np.float64,0x3fed87521afb0ea4,0x3ff74f2f5cd36a5c,1
+np.float64,0x7b3c9882f6794,0x3ff0000000000000,1
+np.float64,0x7fdd1a62243a34c3,0x7ff0000000000000,1
+np.float64,0x800f1dc88d3e3b91,0x3ff0000000000000,1
+np.float64,0x7fc3213cfa264279,0x7ff0000000000000,1
+np.float64,0x3fe40e0f3d681c1e,0x3ff33f135e9d5ded,1
+np.float64,0x7febf14e51f7e29c,0x7ff0000000000000,1
+np.float64,0xffe96c630c72d8c5,0x7ff0000000000000,1
+np.float64,0x7fdd82fbe7bb05f7,0x7ff0000000000000,1
+np.float64,0xbf9a6a0b1034d420,0x3ff0015ce009f7d8,1
+np.float64,0xbfceb4f8153d69f0,0x3ff0766e3ecc77df,1
+np.float64,0x3fd9de31e633bc64,0x3ff15327b794a16e,1
+np.float64,0x3faa902a30352054,0x3ff00583848d1969,1
+np.float64,0x0,0x3ff0000000000000,1
+np.float64,0x3fbe3459c43c68b4,0x3ff01c8af6710ef6,1
+np.float64,0xbfa8df010031be00,0x3ff004d5632dc9f5,1
+np.float64,0x7fbcf6cf2a39ed9d,0x7ff0000000000000,1
+np.float64,0xffe4236202a846c4,0x7ff0000000000000,1
+np.float64,0x3fd35ed52e26bdaa,0x3ff0bd0b231f11f7,1
+np.float64,0x7fe7a2df532f45be,0x7ff0000000000000,1
+np.float64,0xffe32f8315665f06,0x7ff0000000000000,1
+np.float64,0x7fe1a69f03e34d3d,0x7ff0000000000000,1
+np.float64,0x7fa5542b742aa856,0x7ff0000000000000,1
+np.float64,0x3fe84e9f8ef09d3f,0x3ff4d79816359765,1
+np.float64,0x29076fe6520ef,0x3ff0000000000000,1
+np.float64,0xffd70894f7ae112a,0x7ff0000000000000,1
+np.float64,0x800188edcbe311dc,0x3ff0000000000000,1
+np.float64,0x3fe2c7acda258f5a,0x3ff2d5dad4617703,1
+np.float64,0x3f775d41a02ebb00,0x3ff000110f212445,1
+np.float64,0x7fe8a084d1714109,0x7ff0000000000000,1
+np.float64,0x3fe31562d8a62ac6,0x3ff2ee35055741cd,1
+np.float64,0xbfd195d4d1a32baa,0x3ff09b98a50c151b,1
+np.float64,0xffaae9ff0c35d400,0x7ff0000000000000,1
+np.float64,0xff819866502330c0,0x7ff0000000000000,1
+np.float64,0x7fddc64815bb8c8f,0x7ff0000000000000,1
+np.float64,0xbfd442b428288568,0x3ff0cef70aa73ae6,1
+np.float64,0x8002e7625aa5cec5,0x3ff0000000000000,1
+np.float64,0x7fe8d4f70e71a9ed,0x7ff0000000000000,1
+np.float64,0xbfc3bd015f277a04,0x3ff030cbf16f29d9,1
+np.float64,0x3fd315d5baa62bab,0x3ff0b77a551a5335,1
+np.float64,0x7fa638b4642c7168,0x7ff0000000000000,1
+np.float64,0x3fdea8b795bd516f,0x3ff1df0bb70cdb79,1
+np.float64,0xbfd78754762f0ea8,0x3ff117ee0f29abed,1
+np.float64,0x8009f6a37633ed47,0x3ff0000000000000,1
+np.float64,0x3fea1daf75343b5f,0x3ff5a1804789bf13,1
+np.float64,0x3fd044b6c0a0896e,0x3ff0850b7297d02f,1
+np.float64,0x8003547a9c86a8f6,0x3ff0000000000000,1
+np.float64,0x3fa6c2cd782d859b,0x3ff0040c4ac8f44a,1
+np.float64,0x3fe225baaae44b76,0x3ff2a47f5e1f5e85,1
+np.float64,0x8000000000000000,0x3ff0000000000000,1
+np.float64,0x3fcb53da8736a7b8,0x3ff05db45af470ac,1
+np.float64,0x80079f8f140f3f1f,0x3ff0000000000000,1
+np.float64,0xbfcd1d7e2b3a3afc,0x3ff06a6b6845d05f,1
+np.float64,0x96df93672dbf3,0x3ff0000000000000,1
+np.float64,0xdef86e43bdf0e,0x3ff0000000000000,1
+np.float64,0xbfec05a09db80b41,0x3ff6896b768eea08,1
+np.float64,0x7fe3ff91d267ff23,0x7ff0000000000000,1
+np.float64,0xffea3eaa07347d53,0x7ff0000000000000,1
+np.float64,0xbfebde1cc1f7bc3a,0x3ff675e34ac2afc2,1
+np.float64,0x629bcde8c537a,0x3ff0000000000000,1
+np.float64,0xbfdde4fcff3bc9fa,0x3ff1c7061d21f0fe,1
+np.float64,0x3fee60fd003cc1fa,0x3ff7c49af3878a51,1
+np.float64,0x3fe5c92ac32b9256,0x3ff3da7a7929588b,1
+np.float64,0xbfe249c78f64938f,0x3ff2af52a06f1a50,1
+np.float64,0xbfc6de9dbe2dbd3c,0x3ff0418d284ee29f,1
+np.float64,0xffc8ef094631de14,0x7ff0000000000000,1
+np.float64,0x3fdef05f423de0bf,0x3ff1e800caba8ab5,1
+np.float64,0xffc1090731221210,0x7ff0000000000000,1
+np.float64,0xbfedec9b5fbbd937,0x3ff7854b6792a24a,1
+np.float64,0xbfb873507630e6a0,0x3ff012b23b3b7a67,1
+np.float64,0xbfe3cd6692679acd,0x3ff3299d6936ec4b,1
+np.float64,0xbfb107c890220f90,0x3ff0091122162472,1
+np.float64,0xbfe4e6ee48e9cddc,0x3ff3894e5a5e70a6,1
+np.float64,0xffe6fa3413edf468,0x7ff0000000000000,1
+np.float64,0x3fe2faf79b65f5ef,0x3ff2e5e11fae8b54,1
+np.float64,0xbfdfeb8df9bfd71c,0x3ff208189691b15f,1
+np.float64,0x75d2d03ceba5b,0x3ff0000000000000,1
+np.float64,0x3feb48c182b69183,0x3ff62d4462eba6cb,1
+np.float64,0xffcda9f7ff3b53f0,0x7ff0000000000000,1
+np.float64,0x7fcafbdcbd35f7b8,0x7ff0000000000000,1
+np.float64,0xbfd1895523a312aa,0x3ff09aba642a78d9,1
+np.float64,0x3fe3129c3f662538,0x3ff2ed546bbfafcf,1
+np.float64,0x3fb444dee02889be,0x3ff00cd86273b964,1
+np.float64,0xbf73b32d7ee77,0x3ff0000000000000,1
+np.float64,0x3fae19904c3c3321,0x3ff00714865c498a,1
+np.float64,0x7fefbfaef5bf7f5d,0x7ff0000000000000,1
+np.float64,0x8000dc3816e1b871,0x3ff0000000000000,1
+np.float64,0x8003f957ba47f2b0,0x3ff0000000000000,1
+np.float64,0xbfe3563c7ea6ac79,0x3ff302dcebc92856,1
+np.float64,0xbfdc80fbae3901f8,0x3ff19cfe73e58092,1
+np.float64,0x8009223b04524476,0x3ff0000000000000,1
+np.float64,0x3fd95f431c32be86,0x3ff1461c21cb03f0,1
+np.float64,0x7ff4000000000000,0x7ffc000000000000,1
+np.float64,0xbfe7c12ed3ef825e,0x3ff49d59c265efcd,1
+np.float64,0x10000000000000,0x3ff0000000000000,1
+np.float64,0x7fc5e2632f2bc4c5,0x7ff0000000000000,1
+np.float64,0xffd8f6b4c7b1ed6a,0x7ff0000000000000,1
+np.float64,0x80034b93d4069728,0x3ff0000000000000,1
+np.float64,0xffdf5d4c1dbeba98,0x7ff0000000000000,1
+np.float64,0x800bc63d70178c7b,0x3ff0000000000000,1
+np.float64,0xbfeba31ea0f7463d,0x3ff658fa27073d2b,1
+np.float64,0xbfeebeede97d7ddc,0x3ff7f89a8e80dec4,1
+np.float64,0x7feb0f1f91361e3e,0x7ff0000000000000,1
+np.float64,0xffec3158d0b862b1,0x7ff0000000000000,1
+np.float64,0x3fde51cbfbbca398,0x3ff1d44c2ff15b3d,1
+np.float64,0xd58fb2b3ab1f7,0x3ff0000000000000,1
+np.float64,0x80028b9e32e5173d,0x3ff0000000000000,1
+np.float64,0x7fea77a56c74ef4a,0x7ff0000000000000,1
+np.float64,0x3fdaabbd4a35577b,0x3ff168d82edf2fe0,1
+np.float64,0xbfe69c39cc2d3874,0x3ff429b2f4cdb362,1
+np.float64,0x3b78f5d876f20,0x3ff0000000000000,1
+np.float64,0x7fa47d116428fa22,0x7ff0000000000000,1
+np.float64,0xbfe4118b0ce82316,0x3ff3403d989f780f,1
+np.float64,0x800482e793c905d0,0x3ff0000000000000,1
+np.float64,0xbfe48e5728e91cae,0x3ff36a9020bf9d20,1
+np.float64,0x7fe078ba8860f174,0x7ff0000000000000,1
+np.float64,0x3fd80843e5b01088,0x3ff1242f401e67da,1
+np.float64,0x3feb1f6965f63ed3,0x3ff6197fc590e143,1
+np.float64,0xffa41946d8283290,0x7ff0000000000000,1
+np.float64,0xffe30de129661bc2,0x7ff0000000000000,1
+np.float64,0x3fec9c8e1ab9391c,0x3ff6d542ea2f49b4,1
+np.float64,0x3fdc3e4490387c89,0x3ff1955ae18cac37,1
+np.float64,0xffef49d9c77e93b3,0x7ff0000000000000,1
+np.float64,0xfff0000000000000,0x7ff0000000000000,1
+np.float64,0x3fe0442455608849,0x3ff21cab90067d5c,1
+np.float64,0xbfed86aebd3b0d5e,0x3ff74ed8d4b75f50,1
+np.float64,0xffe4600d2b28c01a,0x7ff0000000000000,1
+np.float64,0x7fc1e8ccff23d199,0x7ff0000000000000,1
+np.float64,0x8008d49b0091a936,0x3ff0000000000000,1
+np.float64,0xbfe4139df028273c,0x3ff340ef3c86227c,1
+np.float64,0xbfe9ab4542b3568a,0x3ff56dfe32061247,1
+np.float64,0xbfd76dd365aedba6,0x3ff11589bab5fe71,1
+np.float64,0x3fd42cf829a859f0,0x3ff0cd3844bb0e11,1
+np.float64,0x7fd077cf2e20ef9d,0x7ff0000000000000,1
+np.float64,0x3fd7505760aea0b0,0x3ff112c937b3f088,1
+np.float64,0x1f93341a3f267,0x3ff0000000000000,1
+np.float64,0x7fe3c3c1b0678782,0x7ff0000000000000,1
+np.float64,0x800f85cec97f0b9e,0x3ff0000000000000,1
+np.float64,0xd93ab121b2756,0x3ff0000000000000,1
+np.float64,0xbfef8066fd7f00ce,0x3ff8663ed7d15189,1
+np.float64,0xffe31dd4af663ba9,0x7ff0000000000000,1
+np.float64,0xbfd7ff05a6affe0c,0x3ff1234c09bb686d,1
+np.float64,0xbfe718c31fee3186,0x3ff45a0c2d0ef7b0,1
+np.float64,0x800484bf33e9097f,0x3ff0000000000000,1
+np.float64,0xffd409dad02813b6,0x7ff0000000000000,1
+np.float64,0x3fe59679896b2cf4,0x3ff3c7f49e4fbbd3,1
+np.float64,0xbfd830c54d30618a,0x3ff1281729861390,1
+np.float64,0x1d4fc81c3a9fa,0x3ff0000000000000,1
+np.float64,0x3fd334e4272669c8,0x3ff0b9d5d82894f0,1
+np.float64,0xffc827e65c304fcc,0x7ff0000000000000,1
+np.float64,0xffe2d1814aa5a302,0x7ff0000000000000,1
+np.float64,0xffd7b5b8d32f6b72,0x7ff0000000000000,1
+np.float64,0xbfdbc9f077b793e0,0x3ff18836b9106ad0,1
+np.float64,0x7fc724c2082e4983,0x7ff0000000000000,1
+np.float64,0x3fa39ed72c273da0,0x3ff00302051ce17e,1
+np.float64,0xbfe3c4c209678984,0x3ff326c4fd16b5cd,1
+np.float64,0x7fe91f6d00f23ed9,0x7ff0000000000000,1
+np.float64,0x8004ee93fea9dd29,0x3ff0000000000000,1
+np.float64,0xbfe7c32d0eaf865a,0x3ff49e290ed2ca0e,1
+np.float64,0x800ea996b29d532d,0x3ff0000000000000,1
+np.float64,0x2df9ec1c5bf3e,0x3ff0000000000000,1
+np.float64,0xabb175df5762f,0x3ff0000000000000,1
+np.float64,0xffe3fc9c8e27f938,0x7ff0000000000000,1
+np.float64,0x7fb358a62826b14b,0x7ff0000000000000,1
+np.float64,0x800aedcccaf5db9a,0x3ff0000000000000,1
+np.float64,0xffca530c5234a618,0x7ff0000000000000,1
+np.float64,0x40f91e9681f24,0x3ff0000000000000,1
+np.float64,0x80098f4572f31e8b,0x3ff0000000000000,1
+np.float64,0xbfdc58c21fb8b184,0x3ff1986115f8fe92,1
+np.float64,0xbfebeafd40b7d5fa,0x3ff67c3cf34036e3,1
+np.float64,0x7fd108861a22110b,0x7ff0000000000000,1
+np.float64,0xff8e499ae03c9340,0x7ff0000000000000,1
+np.float64,0xbfd2f58caa25eb1a,0x3ff0b50b1bffafdf,1
+np.float64,0x3fa040c9bc208193,0x3ff002105e95aefa,1
+np.float64,0xbfd2ebc0a5a5d782,0x3ff0b44ed5a11584,1
+np.float64,0xffe237bc93a46f78,0x7ff0000000000000,1
+np.float64,0x3fd557c5eeaaaf8c,0x3ff0e5e0a575e1ba,1
+np.float64,0x7abb419ef5769,0x3ff0000000000000,1
+np.float64,0xffefa1fe353f43fb,0x7ff0000000000000,1
+np.float64,0x3fa6f80ba02df017,0x3ff0041f51fa0d76,1
+np.float64,0xbfdce79488b9cf2a,0x3ff1a8e32877beb4,1
+np.float64,0x2285f3e4450bf,0x3ff0000000000000,1
+np.float64,0x3bf7eb7277efe,0x3ff0000000000000,1
+np.float64,0xbfd5925fd3ab24c0,0x3ff0eae1c2ac2e78,1
+np.float64,0xbfed6325227ac64a,0x3ff73c14a2ad5bfe,1
+np.float64,0x8000429c02408539,0x3ff0000000000000,1
+np.float64,0xb67c21e76cf84,0x3ff0000000000000,1
+np.float64,0x3fec3d3462f87a69,0x3ff6a51e4c027eb7,1
+np.float64,0x3feae69cbcf5cd3a,0x3ff5fe9387314afd,1
+np.float64,0x7fd0c9a0ec219341,0x7ff0000000000000,1
+np.float64,0x8004adb7f6295b71,0x3ff0000000000000,1
+np.float64,0xffd61fe8bb2c3fd2,0x7ff0000000000000,1
+np.float64,0xffe7fb3834aff670,0x7ff0000000000000,1
+np.float64,0x7fd1eef163a3dde2,0x7ff0000000000000,1
+np.float64,0x2e84547a5d08b,0x3ff0000000000000,1
+np.float64,0x8002d8875ee5b10f,0x3ff0000000000000,1
+np.float64,0x3fe1d1c5f763a38c,0x3ff28ba524fb6de8,1
+np.float64,0x8001dea0bc43bd42,0x3ff0000000000000,1
+np.float64,0xfecfad91fd9f6,0x3ff0000000000000,1
+np.float64,0xffed7965fa3af2cb,0x7ff0000000000000,1
+np.float64,0xbfe6102ccc2c205a,0x3ff3f4c082506686,1
+np.float64,0x3feff75b777feeb6,0x3ff8ab6222578e0c,1
+np.float64,0x3fb8a97bd43152f8,0x3ff013057f0a9d89,1
+np.float64,0xffe234b5e964696c,0x7ff0000000000000,1
+np.float64,0x984d9137309b2,0x3ff0000000000000,1
+np.float64,0xbfe42e9230e85d24,0x3ff349fb7d1a7560,1
+np.float64,0xbfecc8b249f99165,0x3ff6ebd0fea0ea72,1
+np.float64,0x8000840910410813,0x3ff0000000000000,1
+np.float64,0xbfd81db9e7303b74,0x3ff126402d3539ec,1
+np.float64,0x800548eb7fea91d8,0x3ff0000000000000,1
+np.float64,0xbfe4679ad0e8cf36,0x3ff35d4db89296a3,1
+np.float64,0x3fd4c55b5a298ab7,0x3ff0d99da31081f9,1
+np.float64,0xbfa8f5b38c31eb60,0x3ff004de3a23b32d,1
+np.float64,0x80005d348e80ba6a,0x3ff0000000000000,1
+np.float64,0x800c348d6118691b,0x3ff0000000000000,1
+np.float64,0xffd6b88f84ad7120,0x7ff0000000000000,1
+np.float64,0x3fc1aaaa82235555,0x3ff027136afd08e0,1
+np.float64,0x7fca7d081b34fa0f,0x7ff0000000000000,1
+np.float64,0x1,0x3ff0000000000000,1
+np.float64,0xbfdc810d1139021a,0x3ff19d007408cfe3,1
+np.float64,0xbfe5dce05f2bb9c0,0x3ff3e1bb9234617b,1
+np.float64,0xffecfe2c32b9fc58,0x7ff0000000000000,1
+np.float64,0x95b2891b2b651,0x3ff0000000000000,1
+np.float64,0x8000b60c6c616c1a,0x3ff0000000000000,1
+np.float64,0x4944f0889289f,0x3ff0000000000000,1
+np.float64,0x3fe6e508696dca10,0x3ff445d1b94863e9,1
+np.float64,0xbfe63355d0ec66ac,0x3ff401e74f16d16f,1
+np.float64,0xbfe9b9595af372b3,0x3ff57445e1b4d670,1
+np.float64,0x800e16f7313c2dee,0x3ff0000000000000,1
+np.float64,0xffe898f5f0b131eb,0x7ff0000000000000,1
+np.float64,0x3fe91ac651f2358d,0x3ff52e787c21c004,1
+np.float64,0x7fbfaac6783f558c,0x7ff0000000000000,1
+np.float64,0xd8ef3dfbb1de8,0x3ff0000000000000,1
+np.float64,0xbfc58c13a52b1828,0x3ff03a2c19d65019,1
+np.float64,0xbfbde55e8a3bcac0,0x3ff01bf648a3e0a7,1
+np.float64,0xffc3034930260694,0x7ff0000000000000,1
+np.float64,0xea77a64dd4ef5,0x3ff0000000000000,1
+np.float64,0x800cfe7e7739fcfd,0x3ff0000000000000,1
+np.float64,0x4960f31a92c1f,0x3ff0000000000000,1
+np.float64,0x3fd9552c94b2aa58,0x3ff14515a29add09,1
+np.float64,0xffe8b3244c316648,0x7ff0000000000000,1
+np.float64,0x3fe8201e6a70403d,0x3ff4c444fa679cce,1
+np.float64,0xffe9ab7c20f356f8,0x7ff0000000000000,1
+np.float64,0x3fed8bba5f7b1774,0x3ff751853c4c95c5,1
+np.float64,0x8007639cb76ec73a,0x3ff0000000000000,1
+np.float64,0xbfe396db89672db7,0x3ff317bfd1d6fa8c,1
+np.float64,0xbfeb42f888f685f1,0x3ff62a7e0eee56b1,1
+np.float64,0x3fe894827c712904,0x3ff4f4f561d9ea13,1
+np.float64,0xb66b3caf6cd68,0x3ff0000000000000,1
+np.float64,0x800f8907fdbf1210,0x3ff0000000000000,1
+np.float64,0x7fe9b0cddb73619b,0x7ff0000000000000,1
+np.float64,0xbfda70c0e634e182,0x3ff1628c6fdffc53,1
+np.float64,0x3fe0b5f534a16bea,0x3ff23b4ed4c2b48e,1
+np.float64,0xbfe8eee93671ddd2,0x3ff51b85b3c50ae4,1
+np.float64,0xbfe8c22627f1844c,0x3ff50858787a3bfe,1
+np.float64,0x37bb83c86f771,0x3ff0000000000000,1
+np.float64,0xffb7827ffe2f0500,0x7ff0000000000000,1
+np.float64,0x64317940c864,0x3ff0000000000000,1
+np.float64,0x800430ecee6861db,0x3ff0000000000000,1
+np.float64,0x3fa4291fbc285240,0x3ff0032d0204f6dd,1
+np.float64,0xffec69f76af8d3ee,0x7ff0000000000000,1
+np.float64,0x3ff0000000000000,0x3ff8b07551d9f550,1
+np.float64,0x3fc4cf3c42299e79,0x3ff0363fb1d3c254,1
+np.float64,0x7fe0223a77e04474,0x7ff0000000000000,1
+np.float64,0x800a3d4fa4347aa0,0x3ff0000000000000,1
+np.float64,0x3fdd273f94ba4e7f,0x3ff1b05b686e6879,1
+np.float64,0x3feca79052f94f20,0x3ff6dadedfa283aa,1
+np.float64,0x5e7f6f80bcfef,0x3ff0000000000000,1
+np.float64,0xbfef035892fe06b1,0x3ff81efb39cbeba2,1
+np.float64,0x3fee6c08e07cd812,0x3ff7caad952860a1,1
+np.float64,0xffeda715877b4e2a,0x7ff0000000000000,1
+np.float64,0x800580286b0b0052,0x3ff0000000000000,1
+np.float64,0x800703a73fee074f,0x3ff0000000000000,1
+np.float64,0xbfccf96a6639f2d4,0x3ff0696330a60832,1
+np.float64,0x7feb408442368108,0x7ff0000000000000,1
+np.float64,0x3fedc87a46fb90f5,0x3ff771e3635649a9,1
+np.float64,0x3fd8297b773052f7,0x3ff12762bc0cea76,1
+np.float64,0x3fee41bb03fc8376,0x3ff7b37b2da48ab4,1
+np.float64,0xbfe2b05a226560b4,0x3ff2cea17ae7c528,1
+np.float64,0xbfd2e92cf2a5d25a,0x3ff0b41d605ced61,1
+np.float64,0x4817f03a902ff,0x3ff0000000000000,1
+np.float64,0x8c9d4f0d193aa,0x3ff0000000000000,1
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/data/umath-validation-set-exp.csv b/python/user_packages/Python313/site-packages/numpy/_core/tests/data/umath-validation-set-exp.csv
new file mode 100644
index 0000000000000000000000000000000000000000..97379247a42a9fa0f4df422dab49be5b81e3d39b
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/tests/data/umath-validation-set-exp.csv
@@ -0,0 +1,412 @@
+dtype,input,output,ulperrortol
+## +ve denormals ##
+np.float32,0x004b4716,0x3f800000,3
+np.float32,0x007b2490,0x3f800000,3
+np.float32,0x007c99fa,0x3f800000,3
+np.float32,0x00734a0c,0x3f800000,3
+np.float32,0x0070de24,0x3f800000,3
+np.float32,0x00495d65,0x3f800000,3
+np.float32,0x006894f6,0x3f800000,3
+np.float32,0x00555a76,0x3f800000,3
+np.float32,0x004e1fb8,0x3f800000,3
+np.float32,0x00687de9,0x3f800000,3
+## -ve denormals ##
+np.float32,0x805b59af,0x3f800000,3
+np.float32,0x807ed8ed,0x3f800000,3
+np.float32,0x807142ad,0x3f800000,3
+np.float32,0x80772002,0x3f800000,3
+np.float32,0x8062abcb,0x3f800000,3
+np.float32,0x8045e31c,0x3f800000,3
+np.float32,0x805f01c2,0x3f800000,3
+np.float32,0x80506432,0x3f800000,3
+np.float32,0x8060089d,0x3f800000,3
+np.float32,0x8071292f,0x3f800000,3
+## floats that output a denormal ##
+np.float32,0xc2cf3fc1,0x00000001,3
+np.float32,0xc2c79726,0x00000021,3
+np.float32,0xc2cb295d,0x00000005,3
+np.float32,0xc2b49e6b,0x00068c4c,3
+np.float32,0xc2ca8116,0x00000008,3
+np.float32,0xc2c23f82,0x000001d7,3
+np.float32,0xc2cb69c0,0x00000005,3
+np.float32,0xc2cc1f4d,0x00000003,3
+np.float32,0xc2ae094e,0x00affc4c,3
+np.float32,0xc2c86c44,0x00000015,3
+## random floats between -87.0f and 88.0f ##
+np.float32,0x4030d7e0,0x417d9a05,3
+np.float32,0x426f60e8,0x6aa1be2c,3
+np.float32,0x41a1b220,0x4e0efc11,3
+np.float32,0xc20cc722,0x26159da7,3
+np.float32,0x41c492bc,0x512ec79d,3
+np.float32,0x40980210,0x42e73a0e,3
+np.float32,0xbf1f7b80,0x3f094de3,3
+np.float32,0x42a678a4,0x7b87a383,3
+np.float32,0xc20f3cfd,0x25a1c304,3
+np.float32,0x423ff34c,0x6216467f,3
+np.float32,0x00000000,0x3f800000,3
+## floats that cause an overflow ##
+np.float32,0x7f06d8c1,0x7f800000,3
+np.float32,0x7f451912,0x7f800000,3
+np.float32,0x7ecceac3,0x7f800000,3
+np.float32,0x7f643b45,0x7f800000,3
+np.float32,0x7e910ea0,0x7f800000,3
+np.float32,0x7eb4756b,0x7f800000,3
+np.float32,0x7f4ec708,0x7f800000,3
+np.float32,0x7f6b4551,0x7f800000,3
+np.float32,0x7d8edbda,0x7f800000,3
+np.float32,0x7f730718,0x7f800000,3
+np.float32,0x42b17217,0x7f7fff84,3
+np.float32,0x42b17218,0x7f800000,3
+np.float32,0x42b17219,0x7f800000,3
+np.float32,0xfef2b0bc,0x00000000,3
+np.float32,0xff69f83e,0x00000000,3
+np.float32,0xff4ecb12,0x00000000,3
+np.float32,0xfeac6d86,0x00000000,3
+np.float32,0xfde0cdb8,0x00000000,3
+np.float32,0xff26aef4,0x00000000,3
+np.float32,0xff6f9277,0x00000000,3
+np.float32,0xff7adfc4,0x00000000,3
+np.float32,0xff0ad40e,0x00000000,3
+np.float32,0xff6fd8f3,0x00000000,3
+np.float32,0xc2cff1b4,0x00000001,3
+np.float32,0xc2cff1b5,0x00000000,3
+np.float32,0xc2cff1b6,0x00000000,3
+np.float32,0x7f800000,0x7f800000,3
+np.float32,0xff800000,0x00000000,3
+np.float32,0x4292f27c,0x7480000a,3
+np.float32,0x42a920be,0x7c7fff94,3
+np.float32,0x41c214c9,0x50ffffd9,3
+np.float32,0x41abe686,0x4effffd9,3
+np.float32,0x4287db5a,0x707fffd3,3
+np.float32,0x41902cbb,0x4c800078,3
+np.float32,0x42609466,0x67ffffeb,3
+np.float32,0x41a65af5,0x4e7fffd1,3
+np.float32,0x417f13ff,0x4affffc9,3
+np.float32,0x426d0e6c,0x6a3504f2,3
+np.float32,0x41bc8934,0x507fff51,3
+np.float32,0x42a7bdde,0x7c0000d6,3
+np.float32,0x4120cf66,0x46b504f6,3
+np.float32,0x4244da8f,0x62ffff1a,3
+np.float32,0x41a0cf69,0x4e000034,3
+np.float32,0x41cd2bec,0x52000005,3
+np.float32,0x42893e41,0x7100009e,3
+np.float32,0x41b437e1,0x4fb50502,3
+np.float32,0x41d8430f,0x5300001d,3
+np.float32,0x4244da92,0x62ffffda,3
+np.float32,0x41a0cf63,0x4dffffa9,3
+np.float32,0x3eb17218,0x3fb504f3,3
+np.float32,0x428729e8,0x703504dc,3
+np.float32,0x41a0cf67,0x4e000014,3
+np.float32,0x4252b77d,0x65800011,3
+np.float32,0x41902cb9,0x4c800058,3
+np.float32,0x42a0cf67,0x79800052,3
+np.float32,0x4152b77b,0x48ffffe9,3
+np.float32,0x41265af3,0x46ffffc8,3
+np.float32,0x42187e0b,0x5affff9a,3
+np.float32,0xc0d2b77c,0x3ab504f6,3
+np.float32,0xc283b2ac,0x10000072,3
+np.float32,0xc1cff1b4,0x2cb504f5,3
+np.float32,0xc05dce9e,0x3d000000,3
+np.float32,0xc28ec9d2,0x0bfffea5,3
+np.float32,0xc23c893a,0x1d7fffde,3
+np.float32,0xc2a920c0,0x027fff6c,3
+np.float32,0xc1f9886f,0x2900002b,3
+np.float32,0xc2c42920,0x000000b5,3
+np.float32,0xc2893e41,0x0dfffec5,3
+np.float32,0xc2c4da93,0x00000080,3
+np.float32,0xc17f1401,0x3400000c,3
+np.float32,0xc1902cb6,0x327fffaf,3
+np.float32,0xc27c4e3b,0x11ffffc5,3
+np.float32,0xc268e5c5,0x157ffe9d,3
+np.float32,0xc2b4e953,0x0005a826,3
+np.float32,0xc287db5a,0x0e800016,3
+np.float32,0xc207db5a,0x2700000b,3
+np.float32,0xc2b2d4fe,0x000ffff1,3
+np.float32,0xc268e5c0,0x157fffdd,3
+np.float32,0xc22920bd,0x2100003b,3
+np.float32,0xc2902caf,0x0b80011e,3
+np.float32,0xc1902cba,0x327fff2f,3
+np.float32,0xc2ca6625,0x00000008,3
+np.float32,0xc280ece8,0x10fffeb5,3
+np.float32,0xc2918f94,0x0b0000ea,3
+np.float32,0xc29b43d5,0x077ffffc,3
+np.float32,0xc1e61ff7,0x2ab504f5,3
+np.float32,0xc2867878,0x0effff15,3
+np.float32,0xc2a2324a,0x04fffff4,3
+#float64
+## near zero ##
+np.float64,0x8000000000000000,0x3ff0000000000000,1
+np.float64,0x8010000000000000,0x3ff0000000000000,1
+np.float64,0x8000000000000001,0x3ff0000000000000,1
+np.float64,0x8360000000000000,0x3ff0000000000000,1
+np.float64,0x9a70000000000000,0x3ff0000000000000,1
+np.float64,0xb9b0000000000000,0x3ff0000000000000,1
+np.float64,0xb810000000000000,0x3ff0000000000000,1
+np.float64,0xbc30000000000000,0x3ff0000000000000,1
+np.float64,0xb6a0000000000000,0x3ff0000000000000,1
+np.float64,0x0000000000000000,0x3ff0000000000000,1
+np.float64,0x0010000000000000,0x3ff0000000000000,1
+np.float64,0x0000000000000001,0x3ff0000000000000,1
+np.float64,0x0360000000000000,0x3ff0000000000000,1
+np.float64,0x1a70000000000000,0x3ff0000000000000,1
+np.float64,0x3c30000000000000,0x3ff0000000000000,1
+np.float64,0x36a0000000000000,0x3ff0000000000000,1
+np.float64,0x39b0000000000000,0x3ff0000000000000,1
+np.float64,0x3810000000000000,0x3ff0000000000000,1
+## underflow ##
+np.float64,0xc0c6276800000000,0x0000000000000000,1
+np.float64,0xc0c62d918ce2421d,0x0000000000000000,1
+np.float64,0xc0c62d918ce2421e,0x0000000000000000,1
+np.float64,0xc0c62d91a0000000,0x0000000000000000,1
+np.float64,0xc0c62d9180000000,0x0000000000000000,1
+np.float64,0xc0c62dea45ee3e06,0x0000000000000000,1
+np.float64,0xc0c62dea45ee3e07,0x0000000000000000,1
+np.float64,0xc0c62dea40000000,0x0000000000000000,1
+np.float64,0xc0c62dea60000000,0x0000000000000000,1
+np.float64,0xc0875f1120000000,0x0000000000000000,1
+np.float64,0xc0875f113c30b1c8,0x0000000000000000,1
+np.float64,0xc0875f1140000000,0x0000000000000000,1
+np.float64,0xc093480000000000,0x0000000000000000,1
+np.float64,0xffefffffffffffff,0x0000000000000000,1
+np.float64,0xc7efffffe0000000,0x0000000000000000,1
+## overflow ##
+np.float64,0x40862e52fefa39ef,0x7ff0000000000000,1
+np.float64,0x40872e42fefa39ef,0x7ff0000000000000,1
+## +/- INF, +/- NAN ##
+np.float64,0x7ff0000000000000,0x7ff0000000000000,1
+np.float64,0xfff0000000000000,0x0000000000000000,1
+np.float64,0x7ff8000000000000,0x7ff8000000000000,1
+np.float64,0xfff8000000000000,0xfff8000000000000,1
+## output denormal ##
+np.float64,0xc087438520000000,0x0000000000000001,1
+np.float64,0xc08743853f2f4461,0x0000000000000001,1
+np.float64,0xc08743853f2f4460,0x0000000000000001,1
+np.float64,0xc087438540000000,0x0000000000000001,1
+## between -745.13321910 and 709.78271289 ##
+np.float64,0xbff760cd14774bd9,0x3fcdb14ced00ceb6,1
+np.float64,0xbff760cd20000000,0x3fcdb14cd7993879,1
+np.float64,0xbff760cd00000000,0x3fcdb14d12fbd264,1
+np.float64,0xc07f1cf360000000,0x130c1b369af14fda,1
+np.float64,0xbeb0000000000000,0x3feffffe00001000,1
+np.float64,0xbd70000000000000,0x3fefffffffffe000,1
+np.float64,0xc084fd46e5c84952,0x0360000000000139,1
+np.float64,0xc084fd46e5c84953,0x035ffffffffffe71,1
+np.float64,0xc084fd46e0000000,0x0360000b9096d32c,1
+np.float64,0xc084fd4700000000,0x035fff9721d12104,1
+np.float64,0xc086232bc0000000,0x0010003af5e64635,1
+np.float64,0xc086232bdd7abcd2,0x001000000000007c,1
+np.float64,0xc086232bdd7abcd3,0x000ffffffffffe7c,1
+np.float64,0xc086232be0000000,0x000ffffaf57a6fc9,1
+np.float64,0xc086233920000000,0x000fe590e3b45eb0,1
+np.float64,0xc086233938000000,0x000fe56133493c57,1
+np.float64,0xc086233940000000,0x000fe5514deffbbc,1
+np.float64,0xc086234c98000000,0x000fbf1024c32ccb,1
+np.float64,0xc086234ca0000000,0x000fbf0065bae78d,1
+np.float64,0xc086234c80000000,0x000fbf3f623a7724,1
+np.float64,0xc086234ec0000000,0x000fbad237c846f9,1
+np.float64,0xc086234ec8000000,0x000fbac27cfdec97,1
+np.float64,0xc086234ee0000000,0x000fba934cfd3dc2,1
+np.float64,0xc086234ef0000000,0x000fba73d7f618d9,1
+np.float64,0xc086234f00000000,0x000fba54632dddc0,1
+np.float64,0xc0862356e0000000,0x000faae0945b761a,1
+np.float64,0xc0862356f0000000,0x000faac13eb9a310,1
+np.float64,0xc086235700000000,0x000faaa1e9567b0a,1
+np.float64,0xc086236020000000,0x000f98cd75c11ed7,1
+np.float64,0xc086236ca0000000,0x000f8081b4d93f89,1
+np.float64,0xc086236cb0000000,0x000f8062b3f4d6c5,1
+np.float64,0xc086236cc0000000,0x000f8043b34e6f8c,1
+np.float64,0xc086238d98000000,0x000f41220d9b0d2c,1
+np.float64,0xc086238da0000000,0x000f4112cc80a01f,1
+np.float64,0xc086238d80000000,0x000f414fd145db5b,1
+np.float64,0xc08624fd00000000,0x000cbfce8ea1e6c4,1
+np.float64,0xc086256080000000,0x000c250747fcd46e,1
+np.float64,0xc08626c480000000,0x000a34f4bd975193,1
+np.float64,0xbf50000000000000,0x3feff800ffeaac00,1
+np.float64,0xbe10000000000000,0x3fefffffff800000,1
+np.float64,0xbcd0000000000000,0x3feffffffffffff8,1
+np.float64,0xc055d589e0000000,0x38100004bf94f63e,1
+np.float64,0xc055d58a00000000,0x380ffff97f292ce8,1
+np.float64,0xbfd962d900000000,0x3fe585a4b00110e1,1
+np.float64,0x3ff4bed280000000,0x400d411e7a58a303,1
+np.float64,0x3fff0b3620000000,0x401bd7737ffffcf3,1
+np.float64,0x3ff0000000000000,0x4005bf0a8b145769,1
+np.float64,0x3eb0000000000000,0x3ff0000100000800,1
+np.float64,0x3d70000000000000,0x3ff0000000001000,1
+np.float64,0x40862e42e0000000,0x7fefff841808287f,1
+np.float64,0x40862e42fefa39ef,0x7fefffffffffff2a,1
+np.float64,0x40862e0000000000,0x7feef85a11e73f2d,1
+np.float64,0x4000000000000000,0x401d8e64b8d4ddae,1
+np.float64,0x4009242920000000,0x40372a52c383a488,1
+np.float64,0x4049000000000000,0x44719103e4080b45,1
+np.float64,0x4008000000000000,0x403415e5bf6fb106,1
+np.float64,0x3f50000000000000,0x3ff00400800aab55,1
+np.float64,0x3e10000000000000,0x3ff0000000400000,1
+np.float64,0x3cd0000000000000,0x3ff0000000000004,1
+np.float64,0x40562e40a0000000,0x47effed088821c3f,1
+np.float64,0x40562e42e0000000,0x47effff082e6c7ff,1
+np.float64,0x40562e4300000000,0x47f00000417184b8,1
+np.float64,0x3fe8000000000000,0x4000ef9db467dcf8,1
+np.float64,0x402b12e8d4f33589,0x412718f68c71a6fe,1
+np.float64,0x402b12e8d4f3358a,0x412718f68c71a70a,1
+np.float64,0x402b12e8c0000000,0x412718f59a7f472e,1
+np.float64,0x402b12e8e0000000,0x412718f70c0eac62,1
+##use 1th entry
+np.float64,0x40631659AE147CB4,0x4db3a95025a4890f,1
+np.float64,0xC061B87D2E85A4E2,0x332640c8e2de2c51,1
+np.float64,0x405A4A50BE243AF4,0x496a45e4b7f0339a,1
+np.float64,0xC0839898B98EC5C6,0x0764027828830df4,1
+#use 2th entry
+np.float64,0xC072428C44B6537C,0x2596ade838b96f3e,1
+np.float64,0xC053057C5E1AE9BF,0x3912c8fad18fdadf,1
+np.float64,0x407E89C78328BAA3,0x6bfe35d5b9a1a194,1
+np.float64,0x4083501B6DD87112,0x77a855503a38924e,1
+#use 3th entry
+np.float64,0x40832C6195F24540,0x7741e73c80e5eb2f,1
+np.float64,0xC083D4CD557C2EC9,0x06b61727c2d2508e,1
+np.float64,0x400C48F5F67C99BD,0x404128820f02b92e,1
+np.float64,0x4056E36D9B2DF26A,0x4830f52ff34a8242,1
+#use 4th entry
+np.float64,0x4080FF700D8CBD06,0x70fa70df9bc30f20,1
+np.float64,0x406C276D39E53328,0x543eb8e20a8f4741,1
+np.float64,0xC070D6159BBD8716,0x27a4a0548c904a75,1
+np.float64,0xC052EBCF8ED61F83,0x391c0e92368d15e4,1
+#use 5th entry
+np.float64,0xC061F892A8AC5FBE,0x32f807a89efd3869,1
+np.float64,0x4021D885D2DBA085,0x40bd4dc86d3e3270,1
+np.float64,0x40767AEEEE7D4FCF,0x605e22851ee2afb7,1
+np.float64,0xC0757C5D75D08C80,0x20f0751599b992a2,1
+#use 6th entry
+np.float64,0x405ACF7A284C4CE3,0x499a4e0b7a27027c,1
+np.float64,0xC085A6C9E80D7AF5,0x0175914009d62ec2,1
+np.float64,0xC07E4C02F86F1DAE,0x1439269b29a9231e,1
+np.float64,0x4080D80F9691CC87,0x7088a6cdafb041de,1
+#use 7th entry
+np.float64,0x407FDFD84FBA0AC1,0x6deb1ae6f9bc4767,1
+np.float64,0x40630C06A1A2213D,0x4dac7a9d51a838b7,1
+np.float64,0x40685FDB30BB8B4F,0x5183f5cc2cac9e79,1
+np.float64,0x408045A2208F77F4,0x6ee299e08e2aa2f0,1
+#use 8th entry
+np.float64,0xC08104E391F5078B,0x0ed397b7cbfbd230,1
+np.float64,0xC031501CAEFAE395,0x3e6040fd1ea35085,1
+np.float64,0xC079229124F6247C,0x1babf4f923306b1e,1
+np.float64,0x407FB65F44600435,0x6db03beaf2512b8a,1
+#use 9th entry
+np.float64,0xC07EDEE8E8E8A5AC,0x136536cec9cbef48,1
+np.float64,0x4072BB4086099A14,0x5af4d3c3008b56cc,1
+np.float64,0x4050442A2EC42CB4,0x45cd393bd8fad357,1
+np.float64,0xC06AC28FB3D419B4,0x2ca1b9d3437df85f,1
+#use 10th entry
+np.float64,0x40567FC6F0A68076,0x480c977fd5f3122e,1
+np.float64,0x40620A2F7EDA59BB,0x4cf278e96f4ce4d7,1
+np.float64,0xC085044707CD557C,0x034aad6c968a045a,1
+np.float64,0xC07374EA5AC516AA,0x23dd6afdc03e83d5,1
+#use 11th entry
+np.float64,0x4073CC95332619C1,0x5c804b1498bbaa54,1
+np.float64,0xC0799FEBBE257F31,0x1af6a954c43b87d2,1
+np.float64,0x408159F19EA424F6,0x7200858efcbfc84d,1
+np.float64,0x404A81F6F24C0792,0x44b664a07ce5bbfa,1
+#use 12th entry
+np.float64,0x40295FF1EFB9A741,0x4113c0e74c52d7b0,1
+np.float64,0x4073975F4CC411DA,0x5c32be40b4fec2c1,1
+np.float64,0x406E9DE52E82A77E,0x56049c9a3f1ae089,1
+np.float64,0x40748C2F52560ED9,0x5d93bc14fd4cd23b,1
+#use 13th entry
+np.float64,0x4062A553CDC4D04C,0x4d6266bfde301318,1
+np.float64,0xC079EC1D63598AB7,0x1a88cb184dab224c,1
+np.float64,0xC0725C1CB3167427,0x25725b46f8a081f6,1
+np.float64,0x407888771D9B45F9,0x6353b1ec6bd7ce80,1
+#use 14th entry
+np.float64,0xC082CBA03AA89807,0x09b383723831ce56,1
+np.float64,0xC083A8961BB67DD7,0x0735b118d5275552,1
+np.float64,0xC076BC6ECA12E7E3,0x1f2222679eaef615,1
+np.float64,0xC072752503AA1A5B,0x254eb832242c77e1,1
+#use 15th entry
+np.float64,0xC058800792125DEC,0x371882372a0b48d4,1
+np.float64,0x4082909FD863E81C,0x7580d5f386920142,1
+np.float64,0xC071616F8FB534F9,0x26dbe20ef64a412b,1
+np.float64,0x406D1AB571CAA747,0x54ee0d55cb38ac20,1
+#use 16th entry
+np.float64,0x406956428B7DAD09,0x52358682c271237f,1
+np.float64,0xC07EFC2D9D17B621,0x133b3e77c27a4d45,1
+np.float64,0xC08469BAC5BA3CCA,0x050863e5f42cc52f,1
+np.float64,0x407189D9626386A5,0x593cb1c0b3b5c1d3,1
+#use 17th entry
+np.float64,0x4077E652E3DEB8C6,0x6269a10dcbd3c752,1
+np.float64,0x407674C97DB06878,0x605485dcc2426ec2,1
+np.float64,0xC07CE9969CF4268D,0x16386cf8996669f2,1
+np.float64,0x40780EE32D5847C4,0x62a436bd1abe108d,1
+#use 18th entry
+np.float64,0x4076C3AA5E1E8DA1,0x60c62f56a5e72e24,1
+np.float64,0xC0730AFC7239B9BE,0x24758ead095cec1e,1
+np.float64,0xC085CC2B9C420DDB,0x0109cdaa2e5694c1,1
+np.float64,0x406D0765CB6D7AA4,0x54e06f8dd91bd945,1
+#use 19th entry
+np.float64,0xC082D011F3B495E7,0x09a6647661d279c2,1
+np.float64,0xC072826AF8F6AFBC,0x253acd3cd224507e,1
+np.float64,0x404EB9C4810CEA09,0x457933dbf07e8133,1
+np.float64,0x408284FBC97C58CE,0x755f6eb234aa4b98,1
+#use 20th entry
+np.float64,0x40856008CF6EDC63,0x7d9c0b3c03f4f73c,1
+np.float64,0xC077CB2E9F013B17,0x1d9b3d3a166a55db,1
+np.float64,0xC0479CA3C20AD057,0x3bad40e081555b99,1
+np.float64,0x40844CD31107332A,0x7a821d70aea478e2,1
+#use 21th entry
+np.float64,0xC07C8FCC0BFCC844,0x16ba1cc8c539d19b,1
+np.float64,0xC085C4E9A3ABA488,0x011ff675ba1a2217,1
+np.float64,0x4074D538B32966E5,0x5dfd9d78043c6ad9,1
+np.float64,0xC0630CA16902AD46,0x3231a446074cede6,1
+#use 22th entry
+np.float64,0xC06C826733D7D0B7,0x2b5f1078314d41e1,1
+np.float64,0xC0520DF55B2B907F,0x396c13a6ce8e833e,1
+np.float64,0xC080712072B0F437,0x107eae02d11d98ea,1
+np.float64,0x40528A6150E19EFB,0x469fdabda02228c5,1
+#use 23th entry
+np.float64,0xC07B1D74B6586451,0x18d1253883ae3b48,1
+np.float64,0x4045AFD7867DAEC0,0x43d7d634fc4c5d98,1
+np.float64,0xC07A08B91F9ED3E2,0x1a60973e6397fc37,1
+np.float64,0x407B3ECF0AE21C8C,0x673e03e9d98d7235,1
+#use 24th entry
+np.float64,0xC078AEB6F30CEABF,0x1c530b93ab54a1b3,1
+np.float64,0x4084495006A41672,0x7a775b6dc7e63064,1
+np.float64,0x40830B1C0EBF95DD,0x76e1e6eed77cfb89,1
+np.float64,0x407D93E8F33D8470,0x6a9adbc9e1e4f1e5,1
+#use 25th entry
+np.float64,0x4066B11A09EFD9E8,0x504dd528065c28a7,1
+np.float64,0x408545823723AEEB,0x7d504a9b1844f594,1
+np.float64,0xC068C711F2CA3362,0x2e104f3496ea118e,1
+np.float64,0x407F317FCC3CA873,0x6cf0732c9948ebf4,1
+#use 26th entry
+np.float64,0x407AFB3EBA2ED50F,0x66dc28a129c868d5,1
+np.float64,0xC075377037708ADE,0x21531a329f3d793e,1
+np.float64,0xC07C30066A1F3246,0x174448baa16ded2b,1
+np.float64,0xC06689A75DE2ABD3,0x2fad70662fae230b,1
+#use 27th entry
+np.float64,0x4081514E9FCCF1E0,0x71e673b9efd15f44,1
+np.float64,0xC0762C710AF68460,0x1ff1ed7d8947fe43,1
+np.float64,0xC0468102FF70D9C4,0x3be0c3a8ff3419a3,1
+np.float64,0xC07EA4CEEF02A83E,0x13b908f085102c61,1
+#use 28th entry
+np.float64,0xC06290B04AE823C4,0x328a83da3c2e3351,1
+np.float64,0xC0770EB1D1C395FB,0x1eab281c1f1db5fe,1
+np.float64,0xC06F5D4D838A5BAE,0x29500ea32fb474ea,1
+np.float64,0x40723B3133B54C5D,0x5a3c82c7c3a2b848,1
+#use 29th entry
+np.float64,0x4085E6454CE3B4AA,0x7f20319b9638d06a,1
+np.float64,0x408389F2A0585D4B,0x7850667c58aab3d0,1
+np.float64,0xC0382798F9C8AE69,0x3dc1c79fe8739d6d,1
+np.float64,0xC08299D827608418,0x0a4335f76cdbaeb5,1
+#use 30th entry
+np.float64,0xC06F3DED43301BF1,0x2965670ae46750a8,1
+np.float64,0xC070CAF6BDD577D9,0x27b4aa4ffdd29981,1
+np.float64,0x4078529AD4B2D9F2,0x6305c12755d5e0a6,1
+np.float64,0xC055B14E75A31B96,0x381c2eda6d111e5d,1
+#use 31th entry
+np.float64,0x407B13EE414FA931,0x6700772c7544564d,1
+np.float64,0x407EAFDE9DE3EC54,0x6c346a0e49724a3c,1
+np.float64,0xC08362F398B9530D,0x07ffeddbadf980cb,1
+np.float64,0x407E865CDD9EEB86,0x6bf866cac5e0d126,1
+#use 32th entry
+np.float64,0x407FB62DBC794C86,0x6db009f708ac62cb,1
+np.float64,0xC063D0BAA68CDDDE,0x31a3b2a51ce50430,1
+np.float64,0xC05E7706A2231394,0x34f24bead6fab5c9,1
+np.float64,0x4083E3A06FDE444E,0x79527b7a386d1937,1
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/data/umath-validation-set-exp2.csv b/python/user_packages/Python313/site-packages/numpy/_core/tests/data/umath-validation-set-exp2.csv
new file mode 100644
index 0000000000000000000000000000000000000000..8734a703bf0e2c518e7dd76e0864b38234cb92d5
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/tests/data/umath-validation-set-exp2.csv
@@ -0,0 +1,1429 @@
+dtype,input,output,ulperrortol
+np.float32,0xbdfe94b0,0x3f6adda6,2
+np.float32,0x3f20f8f8,0x3fc5ec69,2
+np.float32,0x7040b5,0x3f800000,2
+np.float32,0x30ec5,0x3f800000,2
+np.float32,0x3eb63070,0x3fa3ce29,2
+np.float32,0xff4dda3d,0x0,2
+np.float32,0x805b832f,0x3f800000,2
+np.float32,0x3e883fb7,0x3f99ed8c,2
+np.float32,0x3f14d71f,0x3fbf8708,2
+np.float32,0xff7b1e55,0x0,2
+np.float32,0xbf691ac6,0x3f082fa2,2
+np.float32,0x7ee3e6ab,0x7f800000,2
+np.float32,0xbec6e2b4,0x3f439248,2
+np.float32,0xbf5f5ec2,0x3f0bd2c0,2
+np.float32,0x8025cc2c,0x3f800000,2
+np.float32,0x7e0d7672,0x7f800000,2
+np.float32,0xff4bbc5c,0x0,2
+np.float32,0xbd94fb30,0x3f73696b,2
+np.float32,0x6cc079,0x3f800000,2
+np.float32,0x803cf080,0x3f800000,2
+np.float32,0x71d418,0x3f800000,2
+np.float32,0xbf24a442,0x3f23ec1e,2
+np.float32,0xbe6c9510,0x3f5a1e1d,2
+np.float32,0xbe8fb284,0x3f52be38,2
+np.float32,0x7ea64754,0x7f800000,2
+np.float32,0x7fc00000,0x7fc00000,2
+np.float32,0x80620cfd,0x3f800000,2
+np.float32,0x3f3e20e8,0x3fd62e72,2
+np.float32,0x3f384600,0x3fd2d00e,2
+np.float32,0xff362150,0x0,2
+np.float32,0xbf349fa8,0x3f1cfaef,2
+np.float32,0xbf776cf2,0x3f0301a6,2
+np.float32,0x8021fc60,0x3f800000,2
+np.float32,0xbdb75280,0x3f70995c,2
+np.float32,0x7e9363a6,0x7f800000,2
+np.float32,0x7e728422,0x7f800000,2
+np.float32,0xfe91edc2,0x0,2
+np.float32,0x3f5f438c,0x3fea491d,2
+np.float32,0x3f2afae9,0x3fcb5c1f,2
+np.float32,0xbef8e766,0x3f36c448,2
+np.float32,0xba522c00,0x3f7fdb97,2
+np.float32,0xff18ee8c,0x0,2
+np.float32,0xbee8c5f4,0x3f3acd44,2
+np.float32,0x3e790448,0x3f97802c,2
+np.float32,0x3e8c9541,0x3f9ad571,2
+np.float32,0xbf03fa9f,0x3f331460,2
+np.float32,0x801ee053,0x3f800000,2
+np.float32,0xbf773230,0x3f03167f,2
+np.float32,0x356fd9,0x3f800000,2
+np.float32,0x8009cd88,0x3f800000,2
+np.float32,0x7f2bac51,0x7f800000,2
+np.float32,0x4d9eeb,0x3f800000,2
+np.float32,0x3133,0x3f800000,2
+np.float32,0x7f4290e0,0x7f800000,2
+np.float32,0xbf5e6523,0x3f0c3161,2
+np.float32,0x3f19182e,0x3fc1bf10,2
+np.float32,0x7e1248bb,0x7f800000,2
+np.float32,0xff5f7aae,0x0,2
+np.float32,0x7e8557b5,0x7f800000,2
+np.float32,0x26fc7f,0x3f800000,2
+np.float32,0x80397d61,0x3f800000,2
+np.float32,0x3cb1825d,0x3f81efe0,2
+np.float32,0x3ed808d0,0x3fab7c45,2
+np.float32,0xbf6f668a,0x3f05e259,2
+np.float32,0x3e3c7802,0x3f916abd,2
+np.float32,0xbd5ac5a0,0x3f76b21b,2
+np.float32,0x805aa6c9,0x3f800000,2
+np.float32,0xbe4d6f68,0x3f5ec3e1,2
+np.float32,0x3f3108b2,0x3fceb87f,2
+np.float32,0x3ec385cc,0x3fa6c9fb,2
+np.float32,0xbe9fc1ce,0x3f4e35e8,2
+np.float32,0x43b68,0x3f800000,2
+np.float32,0x3ef0cdcc,0x3fb15557,2
+np.float32,0x3e3f729b,0x3f91b5e1,2
+np.float32,0x7f52a4df,0x7f800000,2
+np.float32,0xbf56da96,0x3f0f15b9,2
+np.float32,0xbf161d2b,0x3f2a7faf,2
+np.float32,0x3e8df763,0x3f9b1fbe,2
+np.float32,0xff4f0780,0x0,2
+np.float32,0x8048f594,0x3f800000,2
+np.float32,0x3e62bb1d,0x3f953b7e,2
+np.float32,0xfe58e764,0x0,2
+np.float32,0x3dd2c922,0x3f897718,2
+np.float32,0x7fa00000,0x7fe00000,2
+np.float32,0xff07b4b2,0x0,2
+np.float32,0x7f6231a0,0x7f800000,2
+np.float32,0xb8d1d,0x3f800000,2
+np.float32,0x3ee01d24,0x3fad5f16,2
+np.float32,0xbf43f59f,0x3f169869,2
+np.float32,0x801f5257,0x3f800000,2
+np.float32,0x803c15d8,0x3f800000,2
+np.float32,0x3f171a08,0x3fc0b42a,2
+np.float32,0x127aef,0x3f800000,2
+np.float32,0xfd1c6,0x3f800000,2
+np.float32,0x3f1ed13e,0x3fc4c59a,2
+np.float32,0x57fd4f,0x3f800000,2
+np.float32,0x6e8c61,0x3f800000,2
+np.float32,0x804019ab,0x3f800000,2
+np.float32,0x3ef4e5c6,0x3fb251a1,2
+np.float32,0x5044c3,0x3f800000,2
+np.float32,0x3f04460f,0x3fb7204b,2
+np.float32,0x7e326b47,0x7f800000,2
+np.float32,0x800a7e4c,0x3f800000,2
+np.float32,0xbf47ec82,0x3f14fccc,2
+np.float32,0xbedb1b3e,0x3f3e4a4d,2
+np.float32,0x3f741d86,0x3ff7e4b0,2
+np.float32,0xbe249d20,0x3f6501a6,2
+np.float32,0xbf2ea152,0x3f1f8c68,2
+np.float32,0x3ec6dbcc,0x3fa78b3f,2
+np.float32,0x7ebd9bb4,0x7f800000,2
+np.float32,0x3f61b574,0x3febd77a,2
+np.float32,0x3f3dfb2b,0x3fd61891,2
+np.float32,0x3c7d95,0x3f800000,2
+np.float32,0x8071e840,0x3f800000,2
+np.float32,0x15c6fe,0x3f800000,2
+np.float32,0xbf096601,0x3f307893,2
+np.float32,0x7f5c2ef9,0x7f800000,2
+np.float32,0xbe79f750,0x3f582689,2
+np.float32,0x1eb692,0x3f800000,2
+np.float32,0xbd8024f0,0x3f75226d,2
+np.float32,0xbf5a8be8,0x3f0da950,2
+np.float32,0xbf4d28f3,0x3f12e3e1,2
+np.float32,0x7f800000,0x7f800000,2
+np.float32,0xfea8a758,0x0,2
+np.float32,0x8075d2cf,0x3f800000,2
+np.float32,0xfd99af58,0x0,2
+np.float32,0x9e6a,0x3f800000,2
+np.float32,0x2fa19f,0x3f800000,2
+np.float32,0x3e9f4206,0x3f9ecc56,2
+np.float32,0xbee0b666,0x3f3cd9fc,2
+np.float32,0xbec558c4,0x3f43fab1,2
+np.float32,0x7e9a77df,0x7f800000,2
+np.float32,0xff3a9694,0x0,2
+np.float32,0x3f3b3708,0x3fd47f9a,2
+np.float32,0x807cd6d4,0x3f800000,2
+np.float32,0x804aa422,0x3f800000,2
+np.float32,0xfead7a70,0x0,2
+np.float32,0x3f08c610,0x3fb95efe,2
+np.float32,0xff390126,0x0,2
+np.float32,0x5d2d47,0x3f800000,2
+np.float32,0x8006849c,0x3f800000,2
+np.float32,0x654f6e,0x3f800000,2
+np.float32,0xff478a16,0x0,2
+np.float32,0x3f480b0c,0x3fdc024c,2
+np.float32,0xbc3b96c0,0x3f7df9f4,2
+np.float32,0xbcc96460,0x3f7bacb5,2
+np.float32,0x7f349f30,0x7f800000,2
+np.float32,0xbe08fa98,0x3f6954a1,2
+np.float32,0x4f3a13,0x3f800000,2
+np.float32,0x7f6a5ab4,0x7f800000,2
+np.float32,0x7eb85247,0x7f800000,2
+np.float32,0xbf287246,0x3f223e08,2
+np.float32,0x801584d0,0x3f800000,2
+np.float32,0x7ec25371,0x7f800000,2
+np.float32,0x3f002165,0x3fb51552,2
+np.float32,0x3e1108a8,0x3f8d3429,2
+np.float32,0x4f0f88,0x3f800000,2
+np.float32,0x7f67c1ce,0x7f800000,2
+np.float32,0xbf4348f8,0x3f16dedf,2
+np.float32,0xbe292b64,0x3f644d24,2
+np.float32,0xbf2bfa36,0x3f20b2d6,2
+np.float32,0xbf2a6e58,0x3f215f71,2
+np.float32,0x3e97d5d3,0x3f9d35df,2
+np.float32,0x31f597,0x3f800000,2
+np.float32,0x100544,0x3f800000,2
+np.float32,0x10a197,0x3f800000,2
+np.float32,0x3f44df50,0x3fda20d2,2
+np.float32,0x59916d,0x3f800000,2
+np.float32,0x707472,0x3f800000,2
+np.float32,0x8054194e,0x3f800000,2
+np.float32,0x80627b01,0x3f800000,2
+np.float32,0x7f4d5a5b,0x7f800000,2
+np.float32,0xbcecad00,0x3f7aeca5,2
+np.float32,0xff69c541,0x0,2
+np.float32,0xbe164e20,0x3f673c3a,2
+np.float32,0x3dd321de,0x3f897b39,2
+np.float32,0x3c9c4900,0x3f81b431,2
+np.float32,0x7f0efae3,0x7f800000,2
+np.float32,0xbf1b3ee6,0x3f282567,2
+np.float32,0x3ee858ac,0x3faf5083,2
+np.float32,0x3f0e6a39,0x3fbc3965,2
+np.float32,0x7f0c06d8,0x7f800000,2
+np.float32,0x801dd236,0x3f800000,2
+np.float32,0x564245,0x3f800000,2
+np.float32,0x7e99d3ad,0x7f800000,2
+np.float32,0xff3b0164,0x0,2
+np.float32,0x3f386f18,0x3fd2e785,2
+np.float32,0x7f603c39,0x7f800000,2
+np.float32,0x3cbd9b00,0x3f8211f0,2
+np.float32,0x2178e2,0x3f800000,2
+np.float32,0x5db226,0x3f800000,2
+np.float32,0xfec78d62,0x0,2
+np.float32,0x7f40bc1e,0x7f800000,2
+np.float32,0x80325064,0x3f800000,2
+np.float32,0x3f6068dc,0x3feb0377,2
+np.float32,0xfe8b95c6,0x0,2
+np.float32,0xbe496894,0x3f5f5f87,2
+np.float32,0xbf18722a,0x3f296cf4,2
+np.float32,0x332d0e,0x3f800000,2
+np.float32,0x3f6329dc,0x3fecc5c0,2
+np.float32,0x807d1802,0x3f800000,2
+np.float32,0x3e8afcee,0x3f9a7ff1,2
+np.float32,0x26a0a7,0x3f800000,2
+np.float32,0x7f13085d,0x7f800000,2
+np.float32,0x68d547,0x3f800000,2
+np.float32,0x7e9b04ae,0x7f800000,2
+np.float32,0x3f3ecdfe,0x3fd692ea,2
+np.float32,0x805256f4,0x3f800000,2
+np.float32,0x3f312dc8,0x3fcecd42,2
+np.float32,0x23ca15,0x3f800000,2
+np.float32,0x3f53c455,0x3fe31ad6,2
+np.float32,0xbf21186c,0x3f2580fd,2
+np.float32,0x803b9bb1,0x3f800000,2
+np.float32,0xff6ae1fc,0x0,2
+np.float32,0x2103cf,0x3f800000,2
+np.float32,0xbedcec6c,0x3f3dd29d,2
+np.float32,0x7f520afa,0x7f800000,2
+np.float32,0x7e8b44f2,0x7f800000,2
+np.float32,0xfef7f6ce,0x0,2
+np.float32,0xbd5e7c30,0x3f768a6f,2
+np.float32,0xfeb36848,0x0,2
+np.float32,0xff49effb,0x0,2
+np.float32,0xbec207c0,0x3f44dc74,2
+np.float32,0x3e91147f,0x3f9bc77f,2
+np.float32,0xfe784cd4,0x0,2
+np.float32,0xfd1a7250,0x0,2
+np.float32,0xff3b3f48,0x0,2
+np.float32,0x3f685db5,0x3ff0219f,2
+np.float32,0x3f370976,0x3fd21bae,2
+np.float32,0xfed4cc20,0x0,2
+np.float32,0xbf41e337,0x3f17714a,2
+np.float32,0xbf4e8638,0x3f12593a,2
+np.float32,0x3edaf0f1,0x3fac295e,2
+np.float32,0x803cbb4f,0x3f800000,2
+np.float32,0x7f492043,0x7f800000,2
+np.float32,0x2cabcf,0x3f800000,2
+np.float32,0x17f8ac,0x3f800000,2
+np.float32,0x3e846478,0x3f99205a,2
+np.float32,0x76948f,0x3f800000,2
+np.float32,0x1,0x3f800000,2
+np.float32,0x7ea6419e,0x7f800000,2
+np.float32,0xa5315,0x3f800000,2
+np.float32,0xff3a8e32,0x0,2
+np.float32,0xbe5714e8,0x3f5d50b7,2
+np.float32,0xfeadf960,0x0,2
+np.float32,0x3ebbd1a8,0x3fa50efc,2
+np.float32,0x7f31dce7,0x7f800000,2
+np.float32,0x80314999,0x3f800000,2
+np.float32,0x8017f41b,0x3f800000,2
+np.float32,0x7ed6d051,0x7f800000,2
+np.float32,0x7f525688,0x7f800000,2
+np.float32,0x7f7fffff,0x7f800000,2
+np.float32,0x3e8b0461,0x3f9a8180,2
+np.float32,0x3d9fe46e,0x3f871e1f,2
+np.float32,0x5e6d8f,0x3f800000,2
+np.float32,0xbf09ae55,0x3f305608,2
+np.float32,0xfe7028c4,0x0,2
+np.float32,0x7f3ade56,0x7f800000,2
+np.float32,0xff4c9ef9,0x0,2
+np.float32,0x7e3199cf,0x7f800000,2
+np.float32,0x8048652f,0x3f800000,2
+np.float32,0x805e1237,0x3f800000,2
+np.float32,0x189ed8,0x3f800000,2
+np.float32,0xbea7c094,0x3f4bfd98,2
+np.float32,0xbf2f109c,0x3f1f5c5c,2
+np.float32,0xbf0e7f4c,0x3f2e0d2c,2
+np.float32,0x8005981f,0x3f800000,2
+np.float32,0xbf762005,0x3f0377f3,2
+np.float32,0xbf0f60ab,0x3f2da317,2
+np.float32,0xbf4aa3e7,0x3f13e54e,2
+np.float32,0xbf348fd2,0x3f1d01aa,2
+np.float32,0x3e530b50,0x3f93a7fb,2
+np.float32,0xbf0b05a4,0x3f2fb26a,2
+np.float32,0x3eea416c,0x3fafc4aa,2
+np.float32,0x805ad04d,0x3f800000,2
+np.float32,0xbf6328d8,0x3f0a655e,2
+np.float32,0x3f7347b9,0x3ff75558,2
+np.float32,0xfda3ca68,0x0,2
+np.float32,0x80497d21,0x3f800000,2
+np.float32,0x3e740452,0x3f96fd22,2
+np.float32,0x3e528e57,0x3f939b7e,2
+np.float32,0x3e9e19fa,0x3f9e8cbd,2
+np.float32,0x8078060b,0x3f800000,2
+np.float32,0x3f3fea7a,0x3fd73872,2
+np.float32,0xfcfa30a0,0x0,2
+np.float32,0x7f4eb4bf,0x7f800000,2
+np.float32,0x3f712618,0x3ff5e900,2
+np.float32,0xbf668f0e,0x3f0920c6,2
+np.float32,0x3f3001e9,0x3fce259d,2
+np.float32,0xbe9b6fac,0x3f4f6b9c,2
+np.float32,0xbf61fcf3,0x3f0ad5ec,2
+np.float32,0xff08a55c,0x0,2
+np.float32,0x3e805014,0x3f984872,2
+np.float32,0x6ce04c,0x3f800000,2
+np.float32,0x7f7cbc07,0x7f800000,2
+np.float32,0x3c87dc,0x3f800000,2
+np.float32,0x3f2ee498,0x3fcd869a,2
+np.float32,0x4b1116,0x3f800000,2
+np.float32,0x3d382d06,0x3f840d5f,2
+np.float32,0xff7de21e,0x0,2
+np.float32,0x3f2f1d6d,0x3fcda63c,2
+np.float32,0xbf1c1618,0x3f27c38a,2
+np.float32,0xff4264b1,0x0,2
+np.float32,0x8026e5e7,0x3f800000,2
+np.float32,0xbe6fa180,0x3f59ab02,2
+np.float32,0xbe923c02,0x3f52053b,2
+np.float32,0xff3aa453,0x0,2
+np.float32,0x3f77a7ac,0x3ffa47d0,2
+np.float32,0xbed15f36,0x3f40d08a,2
+np.float32,0xa62d,0x3f800000,2
+np.float32,0xbf342038,0x3f1d3123,2
+np.float32,0x7f2f7f80,0x7f800000,2
+np.float32,0x7f2b6fc1,0x7f800000,2
+np.float32,0xff323540,0x0,2
+np.float32,0x3f1a2b6e,0x3fc24faa,2
+np.float32,0x800cc1d2,0x3f800000,2
+np.float32,0xff38fa01,0x0,2
+np.float32,0x80800000,0x3f800000,2
+np.float32,0xbf3d22e0,0x3f196745,2
+np.float32,0x7f40fd62,0x7f800000,2
+np.float32,0x7e1785c7,0x7f800000,2
+np.float32,0x807408c4,0x3f800000,2
+np.float32,0xbf300192,0x3f1ef485,2
+np.float32,0x351e3d,0x3f800000,2
+np.float32,0x7f5ab736,0x7f800000,2
+np.float32,0x2f1696,0x3f800000,2
+np.float32,0x806ac5d7,0x3f800000,2
+np.float32,0x42ec59,0x3f800000,2
+np.float32,0x7f79f52d,0x7f800000,2
+np.float32,0x44ad28,0x3f800000,2
+np.float32,0xbf49dc9c,0x3f143532,2
+np.float32,0x3f6c1f1f,0x3ff295e7,2
+np.float32,0x1589b3,0x3f800000,2
+np.float32,0x3f49b44e,0x3fdd0031,2
+np.float32,0x7f5942c9,0x7f800000,2
+np.float32,0x3f2dab28,0x3fccd877,2
+np.float32,0xff7fffff,0x0,2
+np.float32,0x80578eb2,0x3f800000,2
+np.float32,0x3f39ba67,0x3fd3a50b,2
+np.float32,0x8020340d,0x3f800000,2
+np.float32,0xbf6025b2,0x3f0b8783,2
+np.float32,0x8015ccfe,0x3f800000,2
+np.float32,0x3f6b9762,0x3ff23cd0,2
+np.float32,0xfeeb0c86,0x0,2
+np.float32,0x802779bc,0x3f800000,2
+np.float32,0xbf32bf64,0x3f1dc796,2
+np.float32,0xbf577eb6,0x3f0ed631,2
+np.float32,0x0,0x3f800000,2
+np.float32,0xfe99de6c,0x0,2
+np.float32,0x7a4e53,0x3f800000,2
+np.float32,0x1a15d3,0x3f800000,2
+np.float32,0x8035fe16,0x3f800000,2
+np.float32,0x3e845784,0x3f991dab,2
+np.float32,0x43d688,0x3f800000,2
+np.float32,0xbd447cc0,0x3f77a0b7,2
+np.float32,0x3f83fa,0x3f800000,2
+np.float32,0x3f141df2,0x3fbf2719,2
+np.float32,0x805c586a,0x3f800000,2
+np.float32,0x14c47e,0x3f800000,2
+np.float32,0x3d3bed00,0x3f8422d4,2
+np.float32,0x7f6f4ecd,0x7f800000,2
+np.float32,0x3f0a5e5a,0x3fba2c5c,2
+np.float32,0x523ecf,0x3f800000,2
+np.float32,0xbef4a6e8,0x3f37d262,2
+np.float32,0xff54eb58,0x0,2
+np.float32,0xff3fc875,0x0,2
+np.float32,0x8067c392,0x3f800000,2
+np.float32,0xfedae910,0x0,2
+np.float32,0x80595979,0x3f800000,2
+np.float32,0x3ee87d1d,0x3faf5929,2
+np.float32,0x7f5bad33,0x7f800000,2
+np.float32,0xbf45b868,0x3f15e109,2
+np.float32,0x3ef2277d,0x3fb1a868,2
+np.float32,0x3ca5a950,0x3f81ce8c,2
+np.float32,0x3e70f4e6,0x3f96ad25,2
+np.float32,0xfe3515bc,0x0,2
+np.float32,0xfe4af088,0x0,2
+np.float32,0xff3c78b2,0x0,2
+np.float32,0x7f50f51a,0x7f800000,2
+np.float32,0x3e3a232a,0x3f913009,2
+np.float32,0x7dfec6ff,0x7f800000,2
+np.float32,0x3e1bbaec,0x3f8e3ad6,2
+np.float32,0xbd658fa0,0x3f763ee7,2
+np.float32,0xfe958684,0x0,2
+np.float32,0x503670,0x3f800000,2
+np.float32,0x3f800000,0x40000000,2
+np.float32,0x1bbec6,0x3f800000,2
+np.float32,0xbea7bb7c,0x3f4bff00,2
+np.float32,0xff3a24a2,0x0,2
+np.float32,0xbf416240,0x3f17a635,2
+np.float32,0xbf800000,0x3f000000,2
+np.float32,0xff0c965c,0x0,2
+np.float32,0x80000000,0x3f800000,2
+np.float32,0xbec2c69a,0x3f44a99e,2
+np.float32,0x5b68d4,0x3f800000,2
+np.float32,0xb9a93000,0x3f7ff158,2
+np.float32,0x3d5a0dd8,0x3f84cfbc,2
+np.float32,0xbeaf7a28,0x3f49de4e,2
+np.float32,0x3ee83555,0x3faf4820,2
+np.float32,0xfd320330,0x0,2
+np.float32,0xe1af2,0x3f800000,2
+np.float32,0x7cf28caf,0x7f800000,2
+np.float32,0x80781009,0x3f800000,2
+np.float32,0xbf1e0baf,0x3f26e04d,2
+np.float32,0x7edb05b1,0x7f800000,2
+np.float32,0x3de004,0x3f800000,2
+np.float32,0xff436af6,0x0,2
+np.float32,0x802a9408,0x3f800000,2
+np.float32,0x7ed82205,0x7f800000,2
+np.float32,0x3e3f8212,0x3f91b767,2
+np.float32,0x16a2b2,0x3f800000,2
+np.float32,0xff1e5af3,0x0,2
+np.float32,0xbf1c860c,0x3f2790b7,2
+np.float32,0x3f3bc5da,0x3fd4d1d6,2
+np.float32,0x7f5f7085,0x7f800000,2
+np.float32,0x7f68e409,0x7f800000,2
+np.float32,0x7f4b3388,0x7f800000,2
+np.float32,0x7ecaf440,0x7f800000,2
+np.float32,0x80078785,0x3f800000,2
+np.float32,0x3ebd800d,0x3fa56f45,2
+np.float32,0xbe39a140,0x3f61c58e,2
+np.float32,0x803b587e,0x3f800000,2
+np.float32,0xbeaaa418,0x3f4b31c4,2
+np.float32,0xff7e2b9f,0x0,2
+np.float32,0xff5180a3,0x0,2
+np.float32,0xbf291394,0x3f21f73c,2
+np.float32,0x7f7b9698,0x7f800000,2
+np.float32,0x4218da,0x3f800000,2
+np.float32,0x7f135262,0x7f800000,2
+np.float32,0x804c10e8,0x3f800000,2
+np.float32,0xbf1c2a54,0x3f27ba5a,2
+np.float32,0x7f41fd32,0x7f800000,2
+np.float32,0x3e5cc464,0x3f94a195,2
+np.float32,0xff7a2fa7,0x0,2
+np.float32,0x3e05dc30,0x3f8c23c9,2
+np.float32,0x7f206d99,0x7f800000,2
+np.float32,0xbe9ae520,0x3f4f9287,2
+np.float32,0xfe4f4d58,0x0,2
+np.float32,0xbf44db42,0x3f163ae3,2
+np.float32,0x3f65ac48,0x3fee6300,2
+np.float32,0x3ebfaf36,0x3fa5ecb0,2
+np.float32,0x3f466719,0x3fdb08b0,2
+np.float32,0x80000001,0x3f800000,2
+np.float32,0xff4b3c7b,0x0,2
+np.float32,0x3df44374,0x3f8b0819,2
+np.float32,0xfea4b540,0x0,2
+np.float32,0x7f358e3d,0x7f800000,2
+np.float32,0x801f5e63,0x3f800000,2
+np.float32,0x804ae77e,0x3f800000,2
+np.float32,0xdbb5,0x3f800000,2
+np.float32,0x7f0a7e3b,0x7f800000,2
+np.float32,0xbe4152e4,0x3f609953,2
+np.float32,0x4b9579,0x3f800000,2
+np.float32,0x3ece0bd4,0x3fa92ea5,2
+np.float32,0x7e499d9a,0x7f800000,2
+np.float32,0x80637d8a,0x3f800000,2
+np.float32,0x3e50a425,0x3f936a8b,2
+np.float32,0xbf0e8cb0,0x3f2e06dd,2
+np.float32,0x802763e2,0x3f800000,2
+np.float32,0xff73041b,0x0,2
+np.float32,0xfea466da,0x0,2
+np.float32,0x80064c73,0x3f800000,2
+np.float32,0xbef29222,0x3f385728,2
+np.float32,0x8029c215,0x3f800000,2
+np.float32,0xbd3994e0,0x3f7815d1,2
+np.float32,0xbe6ac9e4,0x3f5a61f3,2
+np.float32,0x804b58b0,0x3f800000,2
+np.float32,0xbdb83be0,0x3f70865c,2
+np.float32,0x7ee18da2,0x7f800000,2
+np.float32,0xfd4ca010,0x0,2
+np.float32,0x807c668b,0x3f800000,2
+np.float32,0xbd40ed90,0x3f77c6e9,2
+np.float32,0x7efc6881,0x7f800000,2
+np.float32,0xfe633bfc,0x0,2
+np.float32,0x803ce363,0x3f800000,2
+np.float32,0x7ecba81e,0x7f800000,2
+np.float32,0xfdcb2378,0x0,2
+np.float32,0xbebc5524,0x3f4662b2,2
+np.float32,0xfaa30000,0x0,2
+np.float32,0x805d451b,0x3f800000,2
+np.float32,0xbee85600,0x3f3ae996,2
+np.float32,0xfefb0a54,0x0,2
+np.float32,0xbdfc6690,0x3f6b0a08,2
+np.float32,0x58a57,0x3f800000,2
+np.float32,0x3b41b7,0x3f800000,2
+np.float32,0x7c99812d,0x7f800000,2
+np.float32,0xbd3ae740,0x3f78079d,2
+np.float32,0xbf4a48a7,0x3f1409dd,2
+np.float32,0xfdeaad58,0x0,2
+np.float32,0xbe9aa65a,0x3f4fa42c,2
+np.float32,0x3f79d78c,0x3ffbc458,2
+np.float32,0x805e7389,0x3f800000,2
+np.float32,0x7ebb3612,0x7f800000,2
+np.float32,0x2e27dc,0x3f800000,2
+np.float32,0x80726dec,0x3f800000,2
+np.float32,0xfe8fb738,0x0,2
+np.float32,0xff1ff3bd,0x0,2
+np.float32,0x7f5264a2,0x7f800000,2
+np.float32,0x3f5a6893,0x3fe739ca,2
+np.float32,0xbec4029c,0x3f44558d,2
+np.float32,0xbef65cfa,0x3f37657e,2
+np.float32,0x63aba1,0x3f800000,2
+np.float32,0xfbb6e200,0x0,2
+np.float32,0xbf3466fc,0x3f1d1307,2
+np.float32,0x3f258844,0x3fc861d7,2
+np.float32,0xbf5f29a7,0x3f0be6dc,2
+np.float32,0x802b51cd,0x3f800000,2
+np.float32,0xbe9094dc,0x3f527dae,2
+np.float32,0xfec2e68c,0x0,2
+np.float32,0x807b38bd,0x3f800000,2
+np.float32,0xbf594662,0x3f0e2663,2
+np.float32,0x7cbcf747,0x7f800000,2
+np.float32,0xbe4b88f0,0x3f5f0d47,2
+np.float32,0x3c53c4,0x3f800000,2
+np.float32,0xbe883562,0x3f54e3f7,2
+np.float32,0xbf1efaf0,0x3f267456,2
+np.float32,0x3e22cd3e,0x3f8ee98b,2
+np.float32,0x80434875,0x3f800000,2
+np.float32,0xbf000b44,0x3f34ff6e,2
+np.float32,0x7f311c3a,0x7f800000,2
+np.float32,0x802f7f3f,0x3f800000,2
+np.float32,0x805155fe,0x3f800000,2
+np.float32,0x7f5d7485,0x7f800000,2
+np.float32,0x80119197,0x3f800000,2
+np.float32,0x3f445b8b,0x3fd9d30d,2
+np.float32,0xbf638eb3,0x3f0a3f38,2
+np.float32,0x402410,0x3f800000,2
+np.float32,0xbc578a40,0x3f7dad1d,2
+np.float32,0xbeecbf8a,0x3f39cc9e,2
+np.float32,0x7f2935a4,0x7f800000,2
+np.float32,0x3f570fea,0x3fe523e2,2
+np.float32,0xbf06bffa,0x3f31bdb6,2
+np.float32,0xbf2afdfd,0x3f2120ba,2
+np.float32,0x7f76f7ab,0x7f800000,2
+np.float32,0xfee2d1e8,0x0,2
+np.float32,0x800b026d,0x3f800000,2
+np.float32,0xff0eda75,0x0,2
+np.float32,0x3d4c,0x3f800000,2
+np.float32,0xbed538a2,0x3f3fcffb,2
+np.float32,0x3f73f4f9,0x3ff7c979,2
+np.float32,0x2aa9fc,0x3f800000,2
+np.float32,0x806a45b3,0x3f800000,2
+np.float32,0xff770d35,0x0,2
+np.float32,0x7e999be3,0x7f800000,2
+np.float32,0x80741128,0x3f800000,2
+np.float32,0xff6aac34,0x0,2
+np.float32,0x470f74,0x3f800000,2
+np.float32,0xff423b7b,0x0,2
+np.float32,0x17dfdd,0x3f800000,2
+np.float32,0x7f029e12,0x7f800000,2
+np.float32,0x803fcb9d,0x3f800000,2
+np.float32,0x3f3dc3,0x3f800000,2
+np.float32,0x7f3a27bc,0x7f800000,2
+np.float32,0x3e473108,0x3f9279ec,2
+np.float32,0x7f4add5d,0x7f800000,2
+np.float32,0xfd9736e0,0x0,2
+np.float32,0x805f1df2,0x3f800000,2
+np.float32,0x6c49c1,0x3f800000,2
+np.float32,0x7ec733c7,0x7f800000,2
+np.float32,0x804c1abf,0x3f800000,2
+np.float32,0x3de2e887,0x3f8a37a5,2
+np.float32,0x3f51630a,0x3fe1a561,2
+np.float32,0x3de686a8,0x3f8a62ff,2
+np.float32,0xbedb3538,0x3f3e439c,2
+np.float32,0xbf3aa892,0x3f1a6f9e,2
+np.float32,0x7ee5fb32,0x7f800000,2
+np.float32,0x7e916c9b,0x7f800000,2
+np.float32,0x3f033f1c,0x3fb69e19,2
+np.float32,0x25324b,0x3f800000,2
+np.float32,0x3f348d1d,0x3fd0b2e2,2
+np.float32,0x3f5797e8,0x3fe57851,2
+np.float32,0xbf69c316,0x3f07f1a0,2
+np.float32,0xbe8b7fb0,0x3f53f1bf,2
+np.float32,0xbdbbc190,0x3f703d00,2
+np.float32,0xff6c4fc0,0x0,2
+np.float32,0x7f29fcbe,0x7f800000,2
+np.float32,0x3f678d19,0x3fef9a23,2
+np.float32,0x73d140,0x3f800000,2
+np.float32,0x3e25bdd2,0x3f8f326b,2
+np.float32,0xbeb775ec,0x3f47b2c6,2
+np.float32,0xff451c4d,0x0,2
+np.float32,0x8072c466,0x3f800000,2
+np.float32,0x3f65e836,0x3fee89b2,2
+np.float32,0x52ca7a,0x3f800000,2
+np.float32,0x62cfed,0x3f800000,2
+np.float32,0xbf583dd0,0x3f0e8c5c,2
+np.float32,0xbf683842,0x3f088342,2
+np.float32,0x3f1a7828,0x3fc2780c,2
+np.float32,0x800ea979,0x3f800000,2
+np.float32,0xbeb9133c,0x3f474328,2
+np.float32,0x3ef09fc7,0x3fb14a4b,2
+np.float32,0x7ebbcb75,0x7f800000,2
+np.float32,0xff316c0e,0x0,2
+np.float32,0x805b84e3,0x3f800000,2
+np.float32,0x3d6a55e0,0x3f852d8a,2
+np.float32,0x3e755788,0x3f971fd1,2
+np.float32,0x3ee7aacb,0x3faf2743,2
+np.float32,0x7f714039,0x7f800000,2
+np.float32,0xff70bad8,0x0,2
+np.float32,0xbe0b74c8,0x3f68f08c,2
+np.float32,0xbf6cb170,0x3f06de86,2
+np.float32,0x7ec1fbff,0x7f800000,2
+np.float32,0x8014b1f6,0x3f800000,2
+np.float32,0xfe8b45fe,0x0,2
+np.float32,0x6e2220,0x3f800000,2
+np.float32,0x3ed1777d,0x3fa9f7ab,2
+np.float32,0xff48e467,0x0,2
+np.float32,0xff76c5aa,0x0,2
+np.float32,0x3e9bd330,0x3f9e0fd7,2
+np.float32,0x3f17de4f,0x3fc11aae,2
+np.float32,0x7eeaa2fd,0x7f800000,2
+np.float32,0xbf572746,0x3f0ef806,2
+np.float32,0x7e235554,0x7f800000,2
+np.float32,0xfe24fc1c,0x0,2
+np.float32,0x7daf71ad,0x7f800000,2
+np.float32,0x800d4a6b,0x3f800000,2
+np.float32,0xbf6fc31d,0x3f05c0ce,2
+np.float32,0x1c4d93,0x3f800000,2
+np.float32,0x7ee9200c,0x7f800000,2
+np.float32,0x3f54b4da,0x3fe3aeec,2
+np.float32,0x2b37b1,0x3f800000,2
+np.float32,0x3f7468bd,0x3ff81731,2
+np.float32,0x3f2850ea,0x3fc9e5f4,2
+np.float32,0xbe0d47ac,0x3f68a6f9,2
+np.float32,0x314877,0x3f800000,2
+np.float32,0x802700c3,0x3f800000,2
+np.float32,0x7e2c915f,0x7f800000,2
+np.float32,0x800d0059,0x3f800000,2
+np.float32,0x3f7f3c25,0x3fff7862,2
+np.float32,0xff735d31,0x0,2
+np.float32,0xff7e339e,0x0,2
+np.float32,0xbef96cf0,0x3f36a340,2
+np.float32,0x3db6ea21,0x3f882cb2,2
+np.float32,0x67cb3d,0x3f800000,2
+np.float32,0x801f349d,0x3f800000,2
+np.float32,0x3f1390ec,0x3fbede29,2
+np.float32,0x7f13644a,0x7f800000,2
+np.float32,0x804a369b,0x3f800000,2
+np.float32,0x80262666,0x3f800000,2
+np.float32,0x7e850fbc,0x7f800000,2
+np.float32,0x18b002,0x3f800000,2
+np.float32,0x8051f1ed,0x3f800000,2
+np.float32,0x3eba48f6,0x3fa4b753,2
+np.float32,0xbf3f4130,0x3f1886a9,2
+np.float32,0xbedac006,0x3f3e61cf,2
+np.float32,0xbf097c70,0x3f306ddc,2
+np.float32,0x4aba6d,0x3f800000,2
+np.float32,0x580078,0x3f800000,2
+np.float32,0x3f64d82e,0x3fedda40,2
+np.float32,0x7f781fd6,0x7f800000,2
+np.float32,0x6aff3d,0x3f800000,2
+np.float32,0xff25e074,0x0,2
+np.float32,0x7ea9ec89,0x7f800000,2
+np.float32,0xbf63b816,0x3f0a2fbb,2
+np.float32,0x133f07,0x3f800000,2
+np.float32,0xff800000,0x0,2
+np.float32,0x8013dde7,0x3f800000,2
+np.float32,0xff770b95,0x0,2
+np.float32,0x806154e8,0x3f800000,2
+np.float32,0x3f1e7bce,0x3fc4981a,2
+np.float32,0xff262c78,0x0,2
+np.float32,0x3f59a652,0x3fe6c04c,2
+np.float32,0x7f220166,0x7f800000,2
+np.float32,0x7eb24939,0x7f800000,2
+np.float32,0xbed58bb0,0x3f3fba6a,2
+np.float32,0x3c2ad000,0x3f80eda7,2
+np.float32,0x2adb2e,0x3f800000,2
+np.float32,0xfe8b213e,0x0,2
+np.float32,0xbf2e0c1e,0x3f1fccea,2
+np.float32,0x7e1716be,0x7f800000,2
+np.float32,0x80184e73,0x3f800000,2
+np.float32,0xbf254743,0x3f23a3d5,2
+np.float32,0x8063a722,0x3f800000,2
+np.float32,0xbe50adf0,0x3f5e46c7,2
+np.float32,0x3f614158,0x3feb8d60,2
+np.float32,0x8014bbc8,0x3f800000,2
+np.float32,0x283bc7,0x3f800000,2
+np.float32,0x3ffb5c,0x3f800000,2
+np.float32,0xfe8de6bc,0x0,2
+np.float32,0xbea6e086,0x3f4c3b82,2
+np.float32,0xfee64b92,0x0,2
+np.float32,0x506c1a,0x3f800000,2
+np.float32,0xff342af8,0x0,2
+np.float32,0x6b6f4c,0x3f800000,2
+np.float32,0xfeb42b1e,0x0,2
+np.float32,0x3e49384a,0x3f92ad71,2
+np.float32,0x152d08,0x3f800000,2
+np.float32,0x804c8f09,0x3f800000,2
+np.float32,0xff5e927d,0x0,2
+np.float32,0x6374da,0x3f800000,2
+np.float32,0x3f48f011,0x3fdc8ae4,2
+np.float32,0xbf446a30,0x3f1668e8,2
+np.float32,0x3ee77073,0x3faf196e,2
+np.float32,0xff4caa40,0x0,2
+np.float32,0x7efc9363,0x7f800000,2
+np.float32,0xbf706dcc,0x3f05830d,2
+np.float32,0xfe29c7e8,0x0,2
+np.float32,0x803cfe58,0x3f800000,2
+np.float32,0x3ec34c7c,0x3fa6bd0a,2
+np.float32,0x3eb85b62,0x3fa44968,2
+np.float32,0xfda1b9d8,0x0,2
+np.float32,0x802932cd,0x3f800000,2
+np.float32,0xbf5cde78,0x3f0cc5fa,2
+np.float32,0x3f31bf44,0x3fcf1ec8,2
+np.float32,0x803a0882,0x3f800000,2
+np.float32,0x800000,0x3f800000,2
+np.float32,0x3f54110e,0x3fe34a08,2
+np.float32,0x80645ea9,0x3f800000,2
+np.float32,0xbd8c1070,0x3f7425c3,2
+np.float32,0x801a006a,0x3f800000,2
+np.float32,0x7f5d161e,0x7f800000,2
+np.float32,0x805b5df3,0x3f800000,2
+np.float32,0xbf71a7c0,0x3f0511be,2
+np.float32,0xbe9a55c0,0x3f4fbad6,2
+np.float64,0xde7e2fd9bcfc6,0x3ff0000000000000,1
+np.float64,0xbfd8cd88eb319b12,0x3fe876349efbfa2b,1
+np.float64,0x3fe4fa13ace9f428,0x3ff933fbb117d196,1
+np.float64,0x475b3d048eb68,0x3ff0000000000000,1
+np.float64,0x7fef39ed07be73d9,0x7ff0000000000000,1
+np.float64,0x80026b84d904d70a,0x3ff0000000000000,1
+np.float64,0xebd60627d7ac1,0x3ff0000000000000,1
+np.float64,0xbfd7cbefdbaf97e0,0x3fe8bad30f6cf8e1,1
+np.float64,0x7fc17c605a22f8c0,0x7ff0000000000000,1
+np.float64,0x8cdac05119b58,0x3ff0000000000000,1
+np.float64,0x3fc45cd60a28b9ac,0x3ff1dd8028ec3f41,1
+np.float64,0x7fef4fce137e9f9b,0x7ff0000000000000,1
+np.float64,0xe5a2b819cb457,0x3ff0000000000000,1
+np.float64,0xe3bcfd4dc77a0,0x3ff0000000000000,1
+np.float64,0x68f0b670d1e17,0x3ff0000000000000,1
+np.float64,0xae69a6455cd35,0x3ff0000000000000,1
+np.float64,0xffe7007a0c6e00f4,0x0,1
+np.float64,0x59fc57a8b3f8c,0x3ff0000000000000,1
+np.float64,0xbfeee429c0bdc854,0x3fe0638fa62bed9f,1
+np.float64,0x80030bb6e206176f,0x3ff0000000000000,1
+np.float64,0x8006967a36ad2cf5,0x3ff0000000000000,1
+np.float64,0x3fe128176a22502f,0x3ff73393301e5dc8,1
+np.float64,0x218de20c431bd,0x3ff0000000000000,1
+np.float64,0x3fe7dbc48aafb789,0x3ffad38989b5955c,1
+np.float64,0xffda1ef411343de8,0x0,1
+np.float64,0xc6b392838d673,0x3ff0000000000000,1
+np.float64,0x7fe6d080c1ada101,0x7ff0000000000000,1
+np.float64,0xbfed36dd67fa6dbb,0x3fe0fec342c4ee89,1
+np.float64,0x3fee2bb6a3fc576e,0x3ffec1c149f1f092,1
+np.float64,0xbfd1f785eb23ef0c,0x3fea576eb01233cb,1
+np.float64,0x7fdad29a1f35a533,0x7ff0000000000000,1
+np.float64,0xffe8928c4fb12518,0x0,1
+np.float64,0x7fb123160022462b,0x7ff0000000000000,1
+np.float64,0x8007ab56cfaf56ae,0x3ff0000000000000,1
+np.float64,0x7fda342d6634685a,0x7ff0000000000000,1
+np.float64,0xbfe3b7e42c676fc8,0x3fe4e05cf8685b8a,1
+np.float64,0xffa708be7c2e1180,0x0,1
+np.float64,0xbfe8ffbece31ff7e,0x3fe29eb84077a34a,1
+np.float64,0xbf91002008220040,0x3fefa245058f05cb,1
+np.float64,0x8000281f0ee0503f,0x3ff0000000000000,1
+np.float64,0x8005617adc2ac2f6,0x3ff0000000000000,1
+np.float64,0x7fa84fec60309fd8,0x7ff0000000000000,1
+np.float64,0x8d00c0231a018,0x3ff0000000000000,1
+np.float64,0xbfdfe52ca63fca5a,0x3fe6a7324cc00d57,1
+np.float64,0x7fcc81073d39020d,0x7ff0000000000000,1
+np.float64,0x800134ff5a6269ff,0x3ff0000000000000,1
+np.float64,0xffc7fff98d2ffff4,0x0,1
+np.float64,0x8000925ce50124bb,0x3ff0000000000000,1
+np.float64,0xffe2530c66a4a618,0x0,1
+np.float64,0x7fc99070673320e0,0x7ff0000000000000,1
+np.float64,0xbfddd5c1f13bab84,0x3fe72a0c80f8df39,1
+np.float64,0x3fe1c220fee38442,0x3ff7817ec66aa55b,1
+np.float64,0x3fb9a1e1043343c2,0x3ff1265e575e6404,1
+np.float64,0xffef72e0833ee5c0,0x0,1
+np.float64,0x3fe710c0416e2181,0x3ffa5e93588aaa69,1
+np.float64,0xbfd8d23cbab1a47a,0x3fe874f5b9d99885,1
+np.float64,0x7fe9628ebd72c51c,0x7ff0000000000000,1
+np.float64,0xdd5fa611babf5,0x3ff0000000000000,1
+np.float64,0x8002bafac86575f6,0x3ff0000000000000,1
+np.float64,0x68acea44d159e,0x3ff0000000000000,1
+np.float64,0xffd776695eaeecd2,0x0,1
+np.float64,0x80059b59bb4b36b4,0x3ff0000000000000,1
+np.float64,0xbdcdd2af7b9bb,0x3ff0000000000000,1
+np.float64,0x8002b432ee856867,0x3ff0000000000000,1
+np.float64,0xcbc72f09978e6,0x3ff0000000000000,1
+np.float64,0xbfee8f4bf6fd1e98,0x3fe081cc0318b170,1
+np.float64,0xffc6e2892d2dc514,0x0,1
+np.float64,0x7feb682e4db6d05c,0x7ff0000000000000,1
+np.float64,0x8004b70a04296e15,0x3ff0000000000000,1
+np.float64,0x42408a4284812,0x3ff0000000000000,1
+np.float64,0xbfe9b8b197f37163,0x3fe254b4c003ce0a,1
+np.float64,0x3fcaadf5f5355bec,0x3ff27ca7876a8d20,1
+np.float64,0xfff0000000000000,0x0,1
+np.float64,0x7fea8376d33506ed,0x7ff0000000000000,1
+np.float64,0xffef73c2d63ee785,0x0,1
+np.float64,0xffe68b2bae2d1657,0x0,1
+np.float64,0x3fd8339cb2306739,0x3ff4cb774d616f90,1
+np.float64,0xbfc6d1db4d2da3b8,0x3fec47bb873a309c,1
+np.float64,0x7fe858016230b002,0x7ff0000000000000,1
+np.float64,0x7fe74cb99d2e9972,0x7ff0000000000000,1
+np.float64,0xffec2e96dc385d2d,0x0,1
+np.float64,0xb762a9876ec55,0x3ff0000000000000,1
+np.float64,0x3feca230c5794462,0x3ffdbfe62a572f52,1
+np.float64,0xbfb5ebad3a2bd758,0x3fee27eed86dcc39,1
+np.float64,0x471c705a8e38f,0x3ff0000000000000,1
+np.float64,0x7fc79bb5cf2f376b,0x7ff0000000000000,1
+np.float64,0xbfe53d6164ea7ac3,0x3fe4331b3beb73bd,1
+np.float64,0xbfe375a3f766eb48,0x3fe4fe67edb516e6,1
+np.float64,0x3fe1c7686ca38ed1,0x3ff7842f04770ba9,1
+np.float64,0x242e74dc485cf,0x3ff0000000000000,1
+np.float64,0x8009c06ab71380d6,0x3ff0000000000000,1
+np.float64,0x3fd08505efa10a0c,0x3ff3227b735b956d,1
+np.float64,0xffe3dfcecda7bf9d,0x0,1
+np.float64,0x8001f079bbc3e0f4,0x3ff0000000000000,1
+np.float64,0x3fddc706b6bb8e0c,0x3ff616d927987363,1
+np.float64,0xbfd151373ea2a26e,0x3fea870ba53ec126,1
+np.float64,0x7fe89533bfb12a66,0x7ff0000000000000,1
+np.float64,0xffed302cbc3a6059,0x0,1
+np.float64,0x3fd871cc28b0e398,0x3ff4d97d58c16ae2,1
+np.float64,0x7fbe9239683d2472,0x7ff0000000000000,1
+np.float64,0x848a445909149,0x3ff0000000000000,1
+np.float64,0x8007b104ce2f620a,0x3ff0000000000000,1
+np.float64,0x7fc2cd6259259ac4,0x7ff0000000000000,1
+np.float64,0xbfeadb640df5b6c8,0x3fe1e2b068de10af,1
+np.float64,0x800033b2f1a06767,0x3ff0000000000000,1
+np.float64,0x7fe54e5b7caa9cb6,0x7ff0000000000000,1
+np.float64,0x4f928f209f26,0x3ff0000000000000,1
+np.float64,0x8003c3dc6f2787ba,0x3ff0000000000000,1
+np.float64,0xbfd55a59daaab4b4,0x3fe9649d57b32b5d,1
+np.float64,0xffe3e2968d67c52c,0x0,1
+np.float64,0x80087434d550e86a,0x3ff0000000000000,1
+np.float64,0xffdde800083bd000,0x0,1
+np.float64,0xffe291f0542523e0,0x0,1
+np.float64,0xbfe1419bc3e28338,0x3fe6051d4f95a34a,1
+np.float64,0x3fd9d00ee1b3a01e,0x3ff5292bb8d5f753,1
+np.float64,0x3fdb720b60b6e417,0x3ff589d133625374,1
+np.float64,0xbfe3e21f0967c43e,0x3fe4cd4d02e3ef9a,1
+np.float64,0x7fd7e27f3dafc4fd,0x7ff0000000000000,1
+np.float64,0x3fd1cc2620a3984c,0x3ff366befbc38e3e,1
+np.float64,0x3fe78d05436f1a0b,0x3ffaa5ee4ea54b79,1
+np.float64,0x7e2acc84fc55a,0x3ff0000000000000,1
+np.float64,0x800ffb861c5ff70c,0x3ff0000000000000,1
+np.float64,0xffb2b0db1a2561b8,0x0,1
+np.float64,0xbfe80c2363701847,0x3fe301fdfe789576,1
+np.float64,0x7fe383c1c3e70783,0x7ff0000000000000,1
+np.float64,0xbfeefc02e6fdf806,0x3fe05b1a8528bf6c,1
+np.float64,0xbfe42c9268285925,0x3fe4abdc14793cb8,1
+np.float64,0x1,0x3ff0000000000000,1
+np.float64,0xa71c7ce94e390,0x3ff0000000000000,1
+np.float64,0x800ed4e6777da9cd,0x3ff0000000000000,1
+np.float64,0x3fde11b35d3c2367,0x3ff628bdc6dd1b78,1
+np.float64,0x3fef3964dbfe72ca,0x3fff777cae357608,1
+np.float64,0x3fefe369b7ffc6d4,0x3fffec357be508a3,1
+np.float64,0xbfdef1855f3de30a,0x3fe6e348c58e3fed,1
+np.float64,0x3fee0e2bc13c1c58,0x3ffeae1909c1b973,1
+np.float64,0xbfd31554ffa62aaa,0x3fea06628b2f048a,1
+np.float64,0x800dc56bcc7b8ad8,0x3ff0000000000000,1
+np.float64,0x7fbba01b8e374036,0x7ff0000000000000,1
+np.float64,0x7fd9737a92b2e6f4,0x7ff0000000000000,1
+np.float64,0x3feeae0fac3d5c1f,0x3fff1913705f1f07,1
+np.float64,0x3fdcc64fcdb98ca0,0x3ff5d9c3e5862972,1
+np.float64,0x3fdad9f83db5b3f0,0x3ff56674e81c1bd1,1
+np.float64,0x32b8797065710,0x3ff0000000000000,1
+np.float64,0x3fd20deae6241bd6,0x3ff37495bc057394,1
+np.float64,0x7fc899f0763133e0,0x7ff0000000000000,1
+np.float64,0x80045805fc08b00d,0x3ff0000000000000,1
+np.float64,0xbfcd8304cb3b0608,0x3feb4611f1eaa30c,1
+np.float64,0x3fd632a2fcac6544,0x3ff4592e1ea14fb0,1
+np.float64,0xffeeb066007d60cb,0x0,1
+np.float64,0x800bb12a42b76255,0x3ff0000000000000,1
+np.float64,0xbfe060fe1760c1fc,0x3fe6714640ab2574,1
+np.float64,0x80067ed737acfdaf,0x3ff0000000000000,1
+np.float64,0x3fd5ec3211abd864,0x3ff449adea82e73e,1
+np.float64,0x7fc4b2fdc22965fb,0x7ff0000000000000,1
+np.float64,0xff656afd002ad600,0x0,1
+np.float64,0xffeadefcdcb5bdf9,0x0,1
+np.float64,0x80052f18610a5e32,0x3ff0000000000000,1
+np.float64,0xbfd5b75c78ab6eb8,0x3fe94b15e0f39194,1
+np.float64,0xa4d3de2b49a7c,0x3ff0000000000000,1
+np.float64,0xbfe321c93de64392,0x3fe524ac7bbee401,1
+np.float64,0x3feb32f5def665ec,0x3ffcd6e4e5f9c271,1
+np.float64,0x7fe6b07e4ced60fc,0x7ff0000000000000,1
+np.float64,0x3fe013bb2de02776,0x3ff6aa4c32ab5ba4,1
+np.float64,0xbfeadd81d375bb04,0x3fe1e1de89b4aebf,1
+np.float64,0xffece7678079cece,0x0,1
+np.float64,0x3fe3d87b8467b0f8,0x3ff897cf22505e4d,1
+np.float64,0xffc4e3a05129c740,0x0,1
+np.float64,0xbfddee6b03bbdcd6,0x3fe723dd83ab49bd,1
+np.float64,0x3fcc4e2672389c4d,0x3ff2a680db769116,1
+np.float64,0x3fd8ed221ab1da44,0x3ff4f569aec8b850,1
+np.float64,0x80000a3538a0146b,0x3ff0000000000000,1
+np.float64,0x8004832eb109065e,0x3ff0000000000000,1
+np.float64,0xffdca83c60395078,0x0,1
+np.float64,0xffef551cda3eaa39,0x0,1
+np.float64,0x800fd95dd65fb2bc,0x3ff0000000000000,1
+np.float64,0x3ff0000000000000,0x4000000000000000,1
+np.float64,0xbfc06f5c4f20deb8,0x3fed466c17305ad8,1
+np.float64,0xbfeb01b5f476036c,0x3fe1d3de0f4211f4,1
+np.float64,0xbfdb2b9284365726,0x3fe7d7b02f790b05,1
+np.float64,0xff76ba83202d7500,0x0,1
+np.float64,0x3fd3f1c59ea7e38c,0x3ff3db96b3a0aaad,1
+np.float64,0x8b99ff6d17340,0x3ff0000000000000,1
+np.float64,0xbfeb383aa0f67075,0x3fe1bedcf2531c08,1
+np.float64,0x3fe321e35fa643c7,0x3ff83749a5d686ee,1
+np.float64,0xbfd863eb2130c7d6,0x3fe8923fcc39bac7,1
+np.float64,0x9e71dd333ce3c,0x3ff0000000000000,1
+np.float64,0x9542962b2a853,0x3ff0000000000000,1
+np.float64,0xba2c963b74593,0x3ff0000000000000,1
+np.float64,0x80019f4d0ca33e9b,0x3ff0000000000000,1
+np.float64,0xffde3e39a73c7c74,0x0,1
+np.float64,0x800258ae02c4b15d,0x3ff0000000000000,1
+np.float64,0xbfd99a535a3334a6,0x3fe8402f3a0662a5,1
+np.float64,0xe6c62143cd8c4,0x3ff0000000000000,1
+np.float64,0x7fbcc828f0399051,0x7ff0000000000000,1
+np.float64,0xbfe42e3596285c6b,0x3fe4ab2066d66071,1
+np.float64,0xffe2ee42d365dc85,0x0,1
+np.float64,0x3fe1f98abea3f315,0x3ff79dc68002a80b,1
+np.float64,0x7fd7225891ae44b0,0x7ff0000000000000,1
+np.float64,0x477177408ee30,0x3ff0000000000000,1
+np.float64,0xbfe16a7e2162d4fc,0x3fe5f1a5c745385d,1
+np.float64,0xbf98aaee283155e0,0x3fef785952e9c089,1
+np.float64,0x7fd7c14a8daf8294,0x7ff0000000000000,1
+np.float64,0xf7e7713defcee,0x3ff0000000000000,1
+np.float64,0x800769aa11aed355,0x3ff0000000000000,1
+np.float64,0xbfed30385e3a6071,0x3fe10135a3bd9ae6,1
+np.float64,0x3fe6dd7205edbae4,0x3ffa4155899efd70,1
+np.float64,0x800d705d26bae0ba,0x3ff0000000000000,1
+np.float64,0xa443ac1f48876,0x3ff0000000000000,1
+np.float64,0xbfec8cfec43919fe,0x3fe13dbf966e6633,1
+np.float64,0x7fd246efaa248dde,0x7ff0000000000000,1
+np.float64,0x800f2ad14afe55a3,0x3ff0000000000000,1
+np.float64,0x800487a894c90f52,0x3ff0000000000000,1
+np.float64,0x80014c4f19e2989f,0x3ff0000000000000,1
+np.float64,0x3fc11f265f223e4d,0x3ff18def05c971e5,1
+np.float64,0xffeb6d565776daac,0x0,1
+np.float64,0x7fd5ca5df8ab94bb,0x7ff0000000000000,1
+np.float64,0xbfe33de4fde67bca,0x3fe517d0e212cd1c,1
+np.float64,0xbfd1c738e5a38e72,0x3fea6539e9491693,1
+np.float64,0xbfec1d8c33b83b18,0x3fe16790fbca0c65,1
+np.float64,0xbfeecb464b7d968d,0x3fe06c67e2aefa55,1
+np.float64,0xbfd621dbf1ac43b8,0x3fe92dfa32d93846,1
+np.float64,0x80069a02860d3406,0x3ff0000000000000,1
+np.float64,0xbfe84f650e309eca,0x3fe2e661300f1975,1
+np.float64,0x7fc1d2cec523a59d,0x7ff0000000000000,1
+np.float64,0x3fd7706d79aee0db,0x3ff49fb033353dfe,1
+np.float64,0xffd94ba458329748,0x0,1
+np.float64,0x7fea98ba1a753173,0x7ff0000000000000,1
+np.float64,0xbfe756ba092ead74,0x3fe34d428d1857bc,1
+np.float64,0xffecfbd836b9f7b0,0x0,1
+np.float64,0x3fd211fbe5a423f8,0x3ff375711a3641e0,1
+np.float64,0x7fee24f7793c49ee,0x7ff0000000000000,1
+np.float64,0x7fe6a098886d4130,0x7ff0000000000000,1
+np.float64,0xbfd4ade909a95bd2,0x3fe99436524db1f4,1
+np.float64,0xbfeb704e6476e09d,0x3fe1a95be4a21bc6,1
+np.float64,0xffefc0f6627f81ec,0x0,1
+np.float64,0x7feff3f896ffe7f0,0x7ff0000000000000,1
+np.float64,0xa3f74edb47eea,0x3ff0000000000000,1
+np.float64,0xbfe0a551cf214aa4,0x3fe65027a7ff42e3,1
+np.float64,0x3fe164b23622c964,0x3ff7521c6225f51d,1
+np.float64,0x7fc258752324b0e9,0x7ff0000000000000,1
+np.float64,0x4739b3348e737,0x3ff0000000000000,1
+np.float64,0xb0392b1d60726,0x3ff0000000000000,1
+np.float64,0x7fe26f42e5e4de85,0x7ff0000000000000,1
+np.float64,0x8004601f87e8c040,0x3ff0000000000000,1
+np.float64,0xffe92ce37b3259c6,0x0,1
+np.float64,0x3fe620da3a6c41b4,0x3ff9d6ee3d005466,1
+np.float64,0x3fd850cfa2b0a1a0,0x3ff4d20bd249d411,1
+np.float64,0xffdcdfdfb5b9bfc0,0x0,1
+np.float64,0x800390297d672054,0x3ff0000000000000,1
+np.float64,0x3fde5864f6bcb0ca,0x3ff639bb9321f5ef,1
+np.float64,0x3fee484cec7c909a,0x3ffed4d2c6274219,1
+np.float64,0x7fe9b9a064b37340,0x7ff0000000000000,1
+np.float64,0xffe50028b8aa0051,0x0,1
+np.float64,0x3fe37774ade6eee9,0x3ff864558498a9a8,1
+np.float64,0x7fef83c724bf078d,0x7ff0000000000000,1
+np.float64,0xbfeb58450fb6b08a,0x3fe1b290556be73d,1
+np.float64,0x7fd7161475ae2c28,0x7ff0000000000000,1
+np.float64,0x3fece09621f9c12c,0x3ffde836a583bbdd,1
+np.float64,0x3fd045790ea08af2,0x3ff31554778fd4e2,1
+np.float64,0xbfe7c7dd6cef8fbb,0x3fe31e2eeda857fc,1
+np.float64,0xffe9632f5372c65e,0x0,1
+np.float64,0x800d4f3a703a9e75,0x3ff0000000000000,1
+np.float64,0xffea880e4df5101c,0x0,1
+np.float64,0xbfeb7edc4ff6fdb8,0x3fe1a3cb5dc33594,1
+np.float64,0xbfcaae4bab355c98,0x3febb1ee65e16b58,1
+np.float64,0xbfde598a19bcb314,0x3fe709145eafaaf8,1
+np.float64,0x3feefb6d78fdf6db,0x3fff4d5c8c68e39a,1
+np.float64,0x13efc75427dfa,0x3ff0000000000000,1
+np.float64,0xffe26f65c064decb,0x0,1
+np.float64,0xbfed5c1addfab836,0x3fe0f1133bd2189a,1
+np.float64,0x7fe7a7cf756f4f9e,0x7ff0000000000000,1
+np.float64,0xffc681702e2d02e0,0x0,1
+np.float64,0x8003d6ab5067ad57,0x3ff0000000000000,1
+np.float64,0xffa695f1342d2be0,0x0,1
+np.float64,0xbfcf8857db3f10b0,0x3feafa14da8c29a4,1
+np.float64,0xbfe8ca06be71940e,0x3fe2b46f6d2c64b4,1
+np.float64,0x3451c74468a3a,0x3ff0000000000000,1
+np.float64,0x3fde47d5f6bc8fac,0x3ff635bf8e024716,1
+np.float64,0xffda159d5db42b3a,0x0,1
+np.float64,0x7fef9fecaa3f3fd8,0x7ff0000000000000,1
+np.float64,0x3fd4e745e3a9ce8c,0x3ff410a9cb6fd8bf,1
+np.float64,0xffef57019b3eae02,0x0,1
+np.float64,0xbfe6604f4f6cc09e,0x3fe3b55de43c626d,1
+np.float64,0xffe066a424a0cd48,0x0,1
+np.float64,0x3fd547de85aa8fbc,0x3ff425b2a7a16675,1
+np.float64,0xffb3c69280278d28,0x0,1
+np.float64,0xffebe0b759f7c16e,0x0,1
+np.float64,0x3fefc84106ff9082,0x3fffd973687337d8,1
+np.float64,0x501c42a4a0389,0x3ff0000000000000,1
+np.float64,0x7feb45d13eb68ba1,0x7ff0000000000000,1
+np.float64,0xbfb16a8c2e22d518,0x3fee86a9c0f9291a,1
+np.float64,0x3be327b877c66,0x3ff0000000000000,1
+np.float64,0x7fe4a58220694b03,0x7ff0000000000000,1
+np.float64,0x3fe0286220a050c4,0x3ff6b472157ab8f2,1
+np.float64,0x3fc9381825327030,0x3ff2575fbea2bf5d,1
+np.float64,0xbfd1af7ee8a35efe,0x3fea6c032cf7e669,1
+np.float64,0xbfea9b0f39b5361e,0x3fe1fbae14b40b4d,1
+np.float64,0x39efe4aa73dfd,0x3ff0000000000000,1
+np.float64,0xffeb06fdc8360dfb,0x0,1
+np.float64,0xbfda481e72b4903c,0x3fe812b4b08d4884,1
+np.float64,0xbfd414ba5ba82974,0x3fe9bec9474bdfe6,1
+np.float64,0x7fe707177b6e0e2e,0x7ff0000000000000,1
+np.float64,0x8000000000000001,0x3ff0000000000000,1
+np.float64,0xbfede6a75bbbcd4f,0x3fe0be874cccd399,1
+np.float64,0x8006cdb577cd9b6c,0x3ff0000000000000,1
+np.float64,0x800051374f20a26f,0x3ff0000000000000,1
+np.float64,0x3fe5cba8c96b9752,0x3ff9a76b3adcc122,1
+np.float64,0xbfee3933487c7267,0x3fe0a0b190f9609a,1
+np.float64,0x3fd574b8d8aae970,0x3ff42f7e83de1af9,1
+np.float64,0xba5db72b74bb7,0x3ff0000000000000,1
+np.float64,0x3fa9bf512c337ea0,0x3ff0914a7f743a94,1
+np.float64,0xffe8cb736c3196e6,0x0,1
+np.float64,0x3761b2f06ec37,0x3ff0000000000000,1
+np.float64,0x8b4d4433169a9,0x3ff0000000000000,1
+np.float64,0x800f0245503e048b,0x3ff0000000000000,1
+np.float64,0x7fb20d54ac241aa8,0x7ff0000000000000,1
+np.float64,0x3fdf26666b3e4ccd,0x3ff66b8995142017,1
+np.float64,0xbfcbf2a83737e550,0x3feb8173a7b9d6b5,1
+np.float64,0x3fd31572a0a62ae5,0x3ff3ac6c94313dcd,1
+np.float64,0x7fb6c2807a2d8500,0x7ff0000000000000,1
+np.float64,0x800799758f2f32ec,0x3ff0000000000000,1
+np.float64,0xe72f1f6bce5e4,0x3ff0000000000000,1
+np.float64,0x3fe0e0f223a1c1e4,0x3ff70fed5b761673,1
+np.float64,0x3fe6d4f133eda9e2,0x3ffa3c8000c169eb,1
+np.float64,0xbfe1ccc3d8639988,0x3fe5c32148bedbda,1
+np.float64,0x3fea71c53574e38a,0x3ffc5f31201fe9be,1
+np.float64,0x9e0323eb3c065,0x3ff0000000000000,1
+np.float64,0x8005cc79a5cb98f4,0x3ff0000000000000,1
+np.float64,0x1dace1f83b59d,0x3ff0000000000000,1
+np.float64,0x10000000000000,0x3ff0000000000000,1
+np.float64,0xbfdef50830bdea10,0x3fe6e269fc17ebef,1
+np.float64,0x8010000000000000,0x3ff0000000000000,1
+np.float64,0xbfdfa82192bf5044,0x3fe6b6313ee0a095,1
+np.float64,0x3fd9398fe2b27320,0x3ff506ca2093c060,1
+np.float64,0x8002721fe664e441,0x3ff0000000000000,1
+np.float64,0x800c04166ad8082d,0x3ff0000000000000,1
+np.float64,0xffec3918b3387230,0x0,1
+np.float64,0x3fec62d5dfb8c5ac,0x3ffd972ea4a54b32,1
+np.float64,0x3fe7e42a0b6fc854,0x3ffad86b0443181d,1
+np.float64,0x3fc0aff5f3215fec,0x3ff1836058d4d210,1
+np.float64,0xbf82ff68a025fec0,0x3fefcb7f06862dce,1
+np.float64,0xae2e35195c5c7,0x3ff0000000000000,1
+np.float64,0x3fece3bddf79c77c,0x3ffdea41fb1ba8fa,1
+np.float64,0xbfa97b947832f730,0x3feeea34ebedbbd2,1
+np.float64,0xbfdfb1b1ce3f6364,0x3fe6b3d72871335c,1
+np.float64,0xbfe61a4f24ac349e,0x3fe3d356bf991b06,1
+np.float64,0x7fe23117a5e4622e,0x7ff0000000000000,1
+np.float64,0x800552a8cccaa552,0x3ff0000000000000,1
+np.float64,0x625b4d0ac4b6a,0x3ff0000000000000,1
+np.float64,0x3f86cf15702d9e00,0x3ff01fbe0381676d,1
+np.float64,0x800d7d1b685afa37,0x3ff0000000000000,1
+np.float64,0x3fe2cb6e40a596dd,0x3ff80a1a562f7fc9,1
+np.float64,0x3fe756eb8e2eadd7,0x3ffa86c638aad07d,1
+np.float64,0x800dc9a5513b934b,0x3ff0000000000000,1
+np.float64,0xbfbbdd118a37ba20,0x3fedacb4624f3cee,1
+np.float64,0x800de01f8efbc03f,0x3ff0000000000000,1
+np.float64,0x800da1a3fe9b4348,0x3ff0000000000000,1
+np.float64,0xbf87d8c7602fb180,0x3fefbe2614998ab6,1
+np.float64,0xbfdfff6141bffec2,0x3fe6a0c54d9f1bc8,1
+np.float64,0xee8fbba5dd1f8,0x3ff0000000000000,1
+np.float64,0x3fe79dc93e6f3b92,0x3ffaaf9d7d955b2c,1
+np.float64,0xffedd4b3d07ba967,0x0,1
+np.float64,0x800905dfc1720bc0,0x3ff0000000000000,1
+np.float64,0x3fd9e483b8b3c907,0x3ff52ddc6c950e7f,1
+np.float64,0xe34ffefdc6a00,0x3ff0000000000000,1
+np.float64,0x2168e62242d1e,0x3ff0000000000000,1
+np.float64,0x800349950e26932b,0x3ff0000000000000,1
+np.float64,0x7fc50da8532a1b50,0x7ff0000000000000,1
+np.float64,0xae1a4d115c34a,0x3ff0000000000000,1
+np.float64,0xa020f0b74041e,0x3ff0000000000000,1
+np.float64,0x3fd2aa2f77a5545f,0x3ff3959f09519a25,1
+np.float64,0x3fbfefc3223fdf86,0x3ff171f3df2d408b,1
+np.float64,0xbfea9fc340b53f86,0x3fe1f9d92b712654,1
+np.float64,0xffe9b920a5337240,0x0,1
+np.float64,0xbfe2eb0265e5d605,0x3fe53dd195782de3,1
+np.float64,0x7fb932c70e32658d,0x7ff0000000000000,1
+np.float64,0x3fda816bfcb502d8,0x3ff551f8d5c84c82,1
+np.float64,0x3fed68cbe9fad198,0x3ffe40f6692d5693,1
+np.float64,0x32df077665be2,0x3ff0000000000000,1
+np.float64,0x7fdc9c2f3539385d,0x7ff0000000000000,1
+np.float64,0x7fe71091a2ee2122,0x7ff0000000000000,1
+np.float64,0xbfe68106c46d020e,0x3fe3a76b56024c2c,1
+np.float64,0xffcf0572823e0ae4,0x0,1
+np.float64,0xbfeeab341fbd5668,0x3fe077d496941cda,1
+np.float64,0x7fe7ada0d2af5b41,0x7ff0000000000000,1
+np.float64,0xffacdef2a439bde0,0x0,1
+np.float64,0x3fe4200f3128401e,0x3ff8be0ddf30fd1e,1
+np.float64,0xffd9022a69320454,0x0,1
+np.float64,0xbfe8e06914f1c0d2,0x3fe2ab5fe7fffb5a,1
+np.float64,0x3fc4b976602972ed,0x3ff1e6786fa7a890,1
+np.float64,0xbfd784c105af0982,0x3fe8cdeb1cdbd57e,1
+np.float64,0x7feb20a20eb64143,0x7ff0000000000000,1
+np.float64,0xbfc87dd83630fbb0,0x3fec067c1e7e6983,1
+np.float64,0x7fe5400cbe6a8018,0x7ff0000000000000,1
+np.float64,0xbfb4a1f5e22943e8,0x3fee42e6c81559a9,1
+np.float64,0x3fe967c575f2cf8a,0x3ffbbd8bc0d5c50d,1
+np.float64,0xbfeb059cf4760b3a,0x3fe1d25c592c4dab,1
+np.float64,0xbfeef536d5bdea6e,0x3fe05d832c15c64a,1
+np.float64,0x3fa90b3f6432167f,0x3ff08d410dd732cc,1
+np.float64,0xbfeaff265e75fe4d,0x3fe1d4db3fb3208d,1
+np.float64,0x6d93d688db27b,0x3ff0000000000000,1
+np.float64,0x800ab9b4ea55736a,0x3ff0000000000000,1
+np.float64,0x3fd444b39d288967,0x3ff3ed749d48d444,1
+np.float64,0xbfd5f2c0d0abe582,0x3fe93ad6124d88e7,1
+np.float64,0x3fea8fd915f51fb2,0x3ffc71b32cb92d60,1
+np.float64,0xbfd23d6491a47aca,0x3fea43875709b0f0,1
+np.float64,0xffe76f75ce6edeeb,0x0,1
+np.float64,0x1f5670da3eacf,0x3ff0000000000000,1
+np.float64,0x8000d89c9621b13a,0x3ff0000000000000,1
+np.float64,0x3fedb51c52bb6a39,0x3ffe732279c228ff,1
+np.float64,0x7f99215ac83242b5,0x7ff0000000000000,1
+np.float64,0x742a6864e854e,0x3ff0000000000000,1
+np.float64,0xbfe02fb340205f66,0x3fe689495f9164e3,1
+np.float64,0x7fef4c12b0fe9824,0x7ff0000000000000,1
+np.float64,0x3fd40e17c2a81c30,0x3ff3e1aee8ed972f,1
+np.float64,0x7fdcd264e939a4c9,0x7ff0000000000000,1
+np.float64,0x3fdb675838b6ceb0,0x3ff587526241c550,1
+np.float64,0x3fdf1a4081be3480,0x3ff66896a18c2385,1
+np.float64,0xbfea5082b874a106,0x3fe218cf8f11be13,1
+np.float64,0xffe1a0ebf7e341d8,0x0,1
+np.float64,0x3fed0a2222ba1444,0x3ffe032ce928ae7d,1
+np.float64,0xffeae036da75c06d,0x0,1
+np.float64,0x5b05fc8ab60c0,0x3ff0000000000000,1
+np.float64,0x7fd8aae5f03155cb,0x7ff0000000000000,1
+np.float64,0xbfd0b4d9fda169b4,0x3feab41e58b6ccb7,1
+np.float64,0xffdcaffa57395ff4,0x0,1
+np.float64,0xbfcbf1455437e28c,0x3feb81a884182c5d,1
+np.float64,0x3f9d6700b83ace01,0x3ff0525657db35d4,1
+np.float64,0x4fd5b0b29fab7,0x3ff0000000000000,1
+np.float64,0x3fe9af2df5b35e5c,0x3ffbe895684df916,1
+np.float64,0x800dfd41f9dbfa84,0x3ff0000000000000,1
+np.float64,0xbf2a30457e546,0x3ff0000000000000,1
+np.float64,0x7fc6be37182d7c6d,0x7ff0000000000000,1
+np.float64,0x800e0f9788dc1f2f,0x3ff0000000000000,1
+np.float64,0x8006890c704d121a,0x3ff0000000000000,1
+np.float64,0xffecb1a7cbb9634f,0x0,1
+np.float64,0xffb35c330426b868,0x0,1
+np.float64,0x7fe8f2ba8a71e574,0x7ff0000000000000,1
+np.float64,0xf3ccff8fe79a0,0x3ff0000000000000,1
+np.float64,0x3fdf19a84e3e3351,0x3ff66871b17474c1,1
+np.float64,0x80049a662d0934cd,0x3ff0000000000000,1
+np.float64,0xdf5bb4bbbeb77,0x3ff0000000000000,1
+np.float64,0x8005eca030cbd941,0x3ff0000000000000,1
+np.float64,0xffe5f239586be472,0x0,1
+np.float64,0xbfc4526a0728a4d4,0x3fecaa52fbf5345e,1
+np.float64,0xbfe8f1ecda31e3da,0x3fe2a44c080848b3,1
+np.float64,0x3feebd32f4bd7a66,0x3fff234788938c3e,1
+np.float64,0xffd6ca04e9ad940a,0x0,1
+np.float64,0x7ff0000000000000,0x7ff0000000000000,1
+np.float64,0xbfd4c560a9a98ac2,0x3fe98db6d97442fc,1
+np.float64,0x8005723471cae46a,0x3ff0000000000000,1
+np.float64,0xbfeb278299764f05,0x3fe1c54b48f8ba4b,1
+np.float64,0x8007907b376f20f7,0x3ff0000000000000,1
+np.float64,0x7fe9c2fd01b385f9,0x7ff0000000000000,1
+np.float64,0x7fdaa37368b546e6,0x7ff0000000000000,1
+np.float64,0xbfe6d0f3786da1e7,0x3fe38582271cada7,1
+np.float64,0xbfea9b77823536ef,0x3fe1fb8575cd1b7d,1
+np.float64,0xbfe90ac38bf21587,0x3fe29a471b47a2e8,1
+np.float64,0xbfe9c51844738a30,0x3fe24fc8de03ea84,1
+np.float64,0x3fe45a9013a8b520,0x3ff8dd7c80f1cf75,1
+np.float64,0xbfe5780551eaf00a,0x3fe419832a6a4c56,1
+np.float64,0xffefffffffffffff,0x0,1
+np.float64,0x7fe3778c84a6ef18,0x7ff0000000000000,1
+np.float64,0xbfdc8a60413914c0,0x3fe77dc55b85028f,1
+np.float64,0xef47ae2fde8f6,0x3ff0000000000000,1
+np.float64,0x8001269fa4c24d40,0x3ff0000000000000,1
+np.float64,0x3fe9d2d39e73a5a7,0x3ffbfe2a66c4148e,1
+np.float64,0xffee61f528fcc3e9,0x0,1
+np.float64,0x3fe8a259ab7144b3,0x3ffb47e797a34bd2,1
+np.float64,0x3f906d610820dac0,0x3ff02dccda8e1a75,1
+np.float64,0x3fe70739f32e0e74,0x3ffa59232f4fcd07,1
+np.float64,0x3fe6b7f5e6ad6fec,0x3ffa2c0cc54f2c16,1
+np.float64,0x95a91a792b524,0x3ff0000000000000,1
+np.float64,0xbfedf6fcf57bedfa,0x3fe0b89bb40081cc,1
+np.float64,0xbfa4d2de9c29a5c0,0x3fef1c485678d657,1
+np.float64,0x3fe130470d22608e,0x3ff737b0be409a38,1
+np.float64,0x3fcf8035423f006b,0x3ff2f9d7c3c6a302,1
+np.float64,0xffe5995a3eab32b4,0x0,1
+np.float64,0xffca68c63034d18c,0x0,1
+np.float64,0xff9d53af903aa760,0x0,1
+np.float64,0x800563f1de6ac7e4,0x3ff0000000000000,1
+np.float64,0x7fce284fa63c509e,0x7ff0000000000000,1
+np.float64,0x7fb2a3959a25472a,0x7ff0000000000000,1
+np.float64,0x7fdbe2652f37c4c9,0x7ff0000000000000,1
+np.float64,0x800d705bbc1ae0b8,0x3ff0000000000000,1
+np.float64,0x7fd9bd2347b37a46,0x7ff0000000000000,1
+np.float64,0x3fcac3c0fb358782,0x3ff27ed62d6c8221,1
+np.float64,0x800110691ec220d3,0x3ff0000000000000,1
+np.float64,0x3fef79a8157ef350,0x3fffa368513eb909,1
+np.float64,0x7fe8bd2f0e317a5d,0x7ff0000000000000,1
+np.float64,0x7fd3040e60a6081c,0x7ff0000000000000,1
+np.float64,0xffea50723234a0e4,0x0,1
+np.float64,0xbfe6220054ac4400,0x3fe3d00961238a93,1
+np.float64,0x3f9eddd8c83dbbc0,0x3ff0567b0c73005a,1
+np.float64,0xbfa4a062c42940c0,0x3fef1e68badde324,1
+np.float64,0xbfd077ad4720ef5a,0x3feac5d577581d07,1
+np.float64,0x7fdfd4b025bfa95f,0x7ff0000000000000,1
+np.float64,0xd00d3cf3a01a8,0x3ff0000000000000,1
+np.float64,0x7fe3010427260207,0x7ff0000000000000,1
+np.float64,0x22ea196645d44,0x3ff0000000000000,1
+np.float64,0x7fd747e8cd2e8fd1,0x7ff0000000000000,1
+np.float64,0xd50665e7aa0cd,0x3ff0000000000000,1
+np.float64,0x7fe1da580ae3b4af,0x7ff0000000000000,1
+np.float64,0xffeb218ecfb6431d,0x0,1
+np.float64,0xbf887d0dd030fa00,0x3fefbc6252c8b354,1
+np.float64,0x3fcaa31067354621,0x3ff27b904c07e07f,1
+np.float64,0x7fe698cc4ded3198,0x7ff0000000000000,1
+np.float64,0x1c40191a38804,0x3ff0000000000000,1
+np.float64,0x80086fd20e30dfa4,0x3ff0000000000000,1
+np.float64,0x7fed34d5eaba69ab,0x7ff0000000000000,1
+np.float64,0xffd00b52622016a4,0x0,1
+np.float64,0x3f80abcdb021579b,0x3ff0172d27945851,1
+np.float64,0x3fe614cfd66c29a0,0x3ff9d031e1839191,1
+np.float64,0x80021d71c8843ae4,0x3ff0000000000000,1
+np.float64,0x800bc2adc657855c,0x3ff0000000000000,1
+np.float64,0x6b9fec1cd73fe,0x3ff0000000000000,1
+np.float64,0xffd9093b5f321276,0x0,1
+np.float64,0x800d3c6c77fa78d9,0x3ff0000000000000,1
+np.float64,0xffe80fc1cbf01f83,0x0,1
+np.float64,0xffbffbaf2a3ff760,0x0,1
+np.float64,0x3fea1ed29eb43da5,0x3ffc2c64ec0e17a3,1
+np.float64,0x7ff4000000000000,0x7ffc000000000000,1
+np.float64,0x3fd944a052328941,0x3ff5094f4c43ecca,1
+np.float64,0x800b1f9416163f29,0x3ff0000000000000,1
+np.float64,0x800f06bf33de0d7e,0x3ff0000000000000,1
+np.float64,0xbfdbf0d226b7e1a4,0x3fe7a4f73793d95b,1
+np.float64,0xffe7306c30ae60d8,0x0,1
+np.float64,0x7fe991accfb32359,0x7ff0000000000000,1
+np.float64,0x3fcc0040d2380082,0x3ff29ea47e4f07d4,1
+np.float64,0x7fefffffffffffff,0x7ff0000000000000,1
+np.float64,0x0,0x3ff0000000000000,1
+np.float64,0x3fe1423f7be2847e,0x3ff740bc1d3b20f8,1
+np.float64,0xbfeae3a3cab5c748,0x3fe1df7e936f8504,1
+np.float64,0x800b2da7d6165b50,0x3ff0000000000000,1
+np.float64,0x800b2404fcd6480a,0x3ff0000000000000,1
+np.float64,0x6fcbcf88df97b,0x3ff0000000000000,1
+np.float64,0xa248c0e14492,0x3ff0000000000000,1
+np.float64,0xffd255776824aaee,0x0,1
+np.float64,0x80057b3effeaf67f,0x3ff0000000000000,1
+np.float64,0x3feb0b07d7761610,0x3ffcbdfe1be5a594,1
+np.float64,0x924e1019249c2,0x3ff0000000000000,1
+np.float64,0x80074307e80e8611,0x3ff0000000000000,1
+np.float64,0xffb207fa46240ff8,0x0,1
+np.float64,0x95ac388d2b587,0x3ff0000000000000,1
+np.float64,0xbff0000000000000,0x3fe0000000000000,1
+np.float64,0x3fd38b6a492716d5,0x3ff3c59f62b5add5,1
+np.float64,0x7fe49362c3e926c5,0x7ff0000000000000,1
+np.float64,0x7fe842889db08510,0x7ff0000000000000,1
+np.float64,0xbfba6003e834c008,0x3fedcb620a2d9856,1
+np.float64,0xffe7e782bd6fcf05,0x0,1
+np.float64,0x7fd9b93d9433727a,0x7ff0000000000000,1
+np.float64,0x7fc8fcb61d31f96b,0x7ff0000000000000,1
+np.float64,0xbfef9be8db3f37d2,0x3fe022d603b81dc2,1
+np.float64,0x6f4fc766de9fa,0x3ff0000000000000,1
+np.float64,0xbfe93016f132602e,0x3fe28b42d782d949,1
+np.float64,0x3fe10e52b8e21ca5,0x3ff726a38b0bb895,1
+np.float64,0x3fbbba0ae6377416,0x3ff13f56084a9da3,1
+np.float64,0x3fe09e42ece13c86,0x3ff6eeb57e775e24,1
+np.float64,0x800942e39fb285c8,0x3ff0000000000000,1
+np.float64,0xffe5964370eb2c86,0x0,1
+np.float64,0x3fde479f32bc8f3e,0x3ff635b2619ba53a,1
+np.float64,0x3fe826e187f04dc3,0x3ffaff52b79c3a08,1
+np.float64,0x3febcbf1eab797e4,0x3ffd37152e5e2598,1
+np.float64,0x3fa0816a202102d4,0x3ff05c8e6a8b00d5,1
+np.float64,0xbd005ccb7a00c,0x3ff0000000000000,1
+np.float64,0x44c12fdc89827,0x3ff0000000000000,1
+np.float64,0xffc8fdffa431fc00,0x0,1
+np.float64,0xffeb4f5a87b69eb4,0x0,1
+np.float64,0xbfb07e7f8420fd00,0x3fee9a32924fe6a0,1
+np.float64,0xbfbd9d1bb63b3a38,0x3fed88ca81e5771c,1
+np.float64,0x8008682a74f0d055,0x3ff0000000000000,1
+np.float64,0x3fdeedbc7b3ddb79,0x3ff65dcb7c55f4dc,1
+np.float64,0x8009e889c613d114,0x3ff0000000000000,1
+np.float64,0x3faea831f43d5064,0x3ff0ad935e890e49,1
+np.float64,0xf0af1703e15e3,0x3ff0000000000000,1
+np.float64,0xffec06c4a5f80d88,0x0,1
+np.float64,0x53a1cc0ca743a,0x3ff0000000000000,1
+np.float64,0x7fd10c9eea22193d,0x7ff0000000000000,1
+np.float64,0xbfd48a6bf0a914d8,0x3fe99e0d109f2bac,1
+np.float64,0x3fd6dfe931adbfd4,0x3ff47f81c2dfc5d3,1
+np.float64,0x3fed20e86b7a41d0,0x3ffe11fecc7bc686,1
+np.float64,0xbfea586818b4b0d0,0x3fe215b7747d5cb8,1
+np.float64,0xbfd4ad3e20295a7c,0x3fe99465ab8c3275,1
+np.float64,0x3fd6619ee4acc33e,0x3ff4638b7b80c08a,1
+np.float64,0x3fdf6fcb63bedf97,0x3ff67d62fd3d560c,1
+np.float64,0x800a9191e7152324,0x3ff0000000000000,1
+np.float64,0x3fd2ff3c0da5fe78,0x3ff3a7b17e892a28,1
+np.float64,0x8003dbf1f327b7e5,0x3ff0000000000000,1
+np.float64,0xffea6b89a934d712,0x0,1
+np.float64,0x7fcfb879043f70f1,0x7ff0000000000000,1
+np.float64,0xea6a84dbd4d51,0x3ff0000000000000,1
+np.float64,0x800ec97a815d92f5,0x3ff0000000000000,1
+np.float64,0xffe304c3a8660987,0x0,1
+np.float64,0xbfefe24dd3ffc49c,0x3fe00a4e065be96d,1
+np.float64,0xffd3cc8c00a79918,0x0,1
+np.float64,0x95be8b7b2b7d2,0x3ff0000000000000,1
+np.float64,0x7fe20570cba40ae1,0x7ff0000000000000,1
+np.float64,0x7f97a06da02f40da,0x7ff0000000000000,1
+np.float64,0xffe702b9522e0572,0x0,1
+np.float64,0x3fada2d8543b45b1,0x3ff0a7adc4201e08,1
+np.float64,0x235e6acc46bce,0x3ff0000000000000,1
+np.float64,0x3fea6bc28ef4d786,0x3ffc5b7fc68fddac,1
+np.float64,0xffdbc9f505b793ea,0x0,1
+np.float64,0xffe98b137ff31626,0x0,1
+np.float64,0x800e26c6721c4d8d,0x3ff0000000000000,1
+np.float64,0x80080de445301bc9,0x3ff0000000000000,1
+np.float64,0x37e504a86fca1,0x3ff0000000000000,1
+np.float64,0x8002f5f60325ebed,0x3ff0000000000000,1
+np.float64,0x5c8772feb90ef,0x3ff0000000000000,1
+np.float64,0xbfe021abb4604358,0x3fe69023a51d22b8,1
+np.float64,0x3fde744f8fbce8a0,0x3ff64074dc84edd7,1
+np.float64,0xbfdd92899f3b2514,0x3fe73aefd9701858,1
+np.float64,0x7fc1ad5c51235ab8,0x7ff0000000000000,1
+np.float64,0xaae2f98955c5f,0x3ff0000000000000,1
+np.float64,0x7f9123d5782247aa,0x7ff0000000000000,1
+np.float64,0xbfe3f8e94b67f1d2,0x3fe4c30ab28e9cb7,1
+np.float64,0x7fdaba8b4cb57516,0x7ff0000000000000,1
+np.float64,0x7fefc85cfeff90b9,0x7ff0000000000000,1
+np.float64,0xffb83b4f523076a0,0x0,1
+np.float64,0xbfe888a68c71114d,0x3fe2ceff17c203d1,1
+np.float64,0x800de1dac4bbc3b6,0x3ff0000000000000,1
+np.float64,0xbfe4f27f09e9e4fe,0x3fe453f9af407eac,1
+np.float64,0xffe3d2713467a4e2,0x0,1
+np.float64,0xbfebaab840375570,0x3fe1931131b98842,1
+np.float64,0x93892a1b27126,0x3ff0000000000000,1
+np.float64,0x1e8e7f983d1d1,0x3ff0000000000000,1
+np.float64,0x3fecc950627992a0,0x3ffdd926f036add0,1
+np.float64,0xbfd41dfb1aa83bf6,0x3fe9bc34ece35b94,1
+np.float64,0x800aebfc6555d7f9,0x3ff0000000000000,1
+np.float64,0x7fe33ba52ca67749,0x7ff0000000000000,1
+np.float64,0xffe57c9b3feaf936,0x0,1
+np.float64,0x3fdd12464fba248c,0x3ff5ebc5598e6bd0,1
+np.float64,0xffe06d7f0fe0dafe,0x0,1
+np.float64,0x800e55b7fe9cab70,0x3ff0000000000000,1
+np.float64,0x3fd33803c8267008,0x3ff3b3cb78b2d642,1
+np.float64,0xe9cab8a1d3957,0x3ff0000000000000,1
+np.float64,0x3fb38ac166271580,0x3ff0de906947c0f0,1
+np.float64,0xbfd67aa552acf54a,0x3fe915cf64a389fd,1
+np.float64,0x1db96daa3b72f,0x3ff0000000000000,1
+np.float64,0xbfee9f08f4fd3e12,0x3fe07c2c615add3c,1
+np.float64,0xf14f6d65e29ee,0x3ff0000000000000,1
+np.float64,0x800bce089e179c12,0x3ff0000000000000,1
+np.float64,0xffc42dcc37285b98,0x0,1
+np.float64,0x7fd5f37063abe6e0,0x7ff0000000000000,1
+np.float64,0xbfd943c2cbb28786,0x3fe856f6452ec753,1
+np.float64,0x8ddfbc091bbf8,0x3ff0000000000000,1
+np.float64,0xbfe153491e22a692,0x3fe5fcb075dbbd5d,1
+np.float64,0xffe7933999ef2672,0x0,1
+np.float64,0x7ff8000000000000,0x7ff8000000000000,1
+np.float64,0x8000000000000000,0x3ff0000000000000,1
+np.float64,0xbfe9154580b22a8b,0x3fe2960bac3a8220,1
+np.float64,0x800dc6dda21b8dbb,0x3ff0000000000000,1
+np.float64,0xbfb26225a824c448,0x3fee7239a457df81,1
+np.float64,0xbfd7b68c83af6d1a,0x3fe8c08e351ab468,1
+np.float64,0xffde01f7213c03ee,0x0,1
+np.float64,0x3fe54cbe0faa997c,0x3ff9614527191d72,1
+np.float64,0xbfd6bec3732d7d86,0x3fe90354909493de,1
+np.float64,0xbfef3c85bd7e790b,0x3fe0444f8c489ca6,1
+np.float64,0x899501b7132a0,0x3ff0000000000000,1
+np.float64,0xbfe17a456462f48b,0x3fe5ea2719a9a84b,1
+np.float64,0xffe34003b8668007,0x0,1
+np.float64,0x7feff6a3633fed46,0x7ff0000000000000,1
+np.float64,0x3fba597ecc34b2fe,0x3ff12ee72e4de474,1
+np.float64,0x4084c7b68109a,0x3ff0000000000000,1
+np.float64,0x3fad23bf4c3a4780,0x3ff0a4d06193ff6d,1
+np.float64,0xffd0fe2707a1fc4e,0x0,1
+np.float64,0xb96cb43f72d97,0x3ff0000000000000,1
+np.float64,0x7fc4d684d829ad09,0x7ff0000000000000,1
+np.float64,0x7fdc349226b86923,0x7ff0000000000000,1
+np.float64,0x7fd82851cd3050a3,0x7ff0000000000000,1
+np.float64,0x800cde0041b9bc01,0x3ff0000000000000,1
+np.float64,0x4e8caa1e9d196,0x3ff0000000000000,1
+np.float64,0xbfed06a6d2fa0d4e,0x3fe1108c3682b05a,1
+np.float64,0xffe8908122312102,0x0,1
+np.float64,0xffe56ed6d9aaddad,0x0,1
+np.float64,0x3fedd6db00fbadb6,0x3ffe896c68c4b26e,1
+np.float64,0x3fde31f9b4bc63f4,0x3ff6307e08f8b6ba,1
+np.float64,0x6bb963c2d772d,0x3ff0000000000000,1
+np.float64,0x787b7142f0f6f,0x3ff0000000000000,1
+np.float64,0x3fe6e4147c6dc829,0x3ffa451bbdece240,1
+np.float64,0x8003857401470ae9,0x3ff0000000000000,1
+np.float64,0xbfeae82c3c75d058,0x3fe1ddbd66e65aab,1
+np.float64,0x7fe174707c62e8e0,0x7ff0000000000000,1
+np.float64,0x80008d2545e11a4b,0x3ff0000000000000,1
+np.float64,0xbfecc2dce17985ba,0x3fe129ad4325985a,1
+np.float64,0xbfe1fa1daf63f43c,0x3fe5adcb0731a44b,1
+np.float64,0x7fcf2530203e4a5f,0x7ff0000000000000,1
+np.float64,0xbfea5cefe874b9e0,0x3fe213f134b61f4a,1
+np.float64,0x800103729f2206e6,0x3ff0000000000000,1
+np.float64,0xbfe8442ff7708860,0x3fe2eaf850faa169,1
+np.float64,0x8006c78e19ed8f1d,0x3ff0000000000000,1
+np.float64,0x3fc259589c24b2b1,0x3ff1abe6a4d28816,1
+np.float64,0xffed02b7b5ba056e,0x0,1
+np.float64,0xbfce0aa4fe3c1548,0x3feb32115d92103e,1
+np.float64,0x7fec06e78bf80dce,0x7ff0000000000000,1
+np.float64,0xbfe0960bbc612c18,0x3fe6578ab29b70d4,1
+np.float64,0x3fee45841cbc8b08,0x3ffed2f6ca808ad3,1
+np.float64,0xbfeb0f8ebef61f1e,0x3fe1ce86003044cd,1
+np.float64,0x8002c357358586af,0x3ff0000000000000,1
+np.float64,0x3fe9aa10cc735422,0x3ffbe57e294ce68b,1
+np.float64,0x800256c0a544ad82,0x3ff0000000000000,1
+np.float64,0x4de6e1449bcdd,0x3ff0000000000000,1
+np.float64,0x65e9bc9ccbd38,0x3ff0000000000000,1
+np.float64,0xbfe53b0fa9aa7620,0x3fe4341f0aa29bbc,1
+np.float64,0xbfcdd94cd13bb298,0x3feb3956acd2e2dd,1
+np.float64,0x8004a49b65a94938,0x3ff0000000000000,1
+np.float64,0x800d3d05deba7a0c,0x3ff0000000000000,1
+np.float64,0x3fe4e05bce69c0b8,0x3ff925f55602a7e0,1
+np.float64,0xffe391e3256723c6,0x0,1
+np.float64,0xbfe92f0f37b25e1e,0x3fe28bacc76ae753,1
+np.float64,0x3f990238d8320472,0x3ff045edd36e2d62,1
+np.float64,0xffed8d15307b1a2a,0x0,1
+np.float64,0x3fee82e01afd05c0,0x3ffefc09e8b9c2b7,1
+np.float64,0xffb2d94b2225b298,0x0,1
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/data/umath-validation-set-expm1.csv b/python/user_packages/Python313/site-packages/numpy/_core/tests/data/umath-validation-set-expm1.csv
new file mode 100644
index 0000000000000000000000000000000000000000..527dfddbc6cf54226d7e0349121d2940aef69d9b
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/tests/data/umath-validation-set-expm1.csv
@@ -0,0 +1,1429 @@
+dtype,input,output,ulperrortol
+np.float32,0x80606724,0x80606724,3
+np.float32,0xbf16790f,0xbee38e14,3
+np.float32,0xbf1778a1,0xbee4a97f,3
+np.float32,0x7d4fc610,0x7f800000,3
+np.float32,0xbec30a20,0xbea230d5,3
+np.float32,0x3eae8a36,0x3ecffac5,3
+np.float32,0xbf1f08f1,0xbeece93c,3
+np.float32,0x80374376,0x80374376,3
+np.float32,0x3f2e04ca,0x3f793115,3
+np.float32,0x7e2c7e36,0x7f800000,3
+np.float32,0xbf686cae,0xbf18bcf0,3
+np.float32,0xbf5518cd,0xbf10a3da,3
+np.float32,0x807e233c,0x807e233c,3
+np.float32,0x7f4edd54,0x7f800000,3
+np.float32,0x7ed70088,0x7f800000,3
+np.float32,0x801675da,0x801675da,3
+np.float32,0x806735d5,0x806735d5,3
+np.float32,0xfe635fec,0xbf800000,3
+np.float32,0xfed88a0a,0xbf800000,3
+np.float32,0xff52c052,0xbf800000,3
+np.float32,0x7fc00000,0x7fc00000,3
+np.float32,0xff4f65f9,0xbf800000,3
+np.float32,0xfe0f6c20,0xbf800000,3
+np.float32,0x80322b30,0x80322b30,3
+np.float32,0xfb757000,0xbf800000,3
+np.float32,0x3c81e0,0x3c81e0,3
+np.float32,0x79d56a,0x79d56a,3
+np.float32,0x8029d7af,0x8029d7af,3
+np.float32,0x8058a593,0x8058a593,3
+np.float32,0x3f3a13c7,0x3f88c75c,3
+np.float32,0x2a6b05,0x2a6b05,3
+np.float32,0xbd64c960,0xbd5e83ae,3
+np.float32,0x80471052,0x80471052,3
+np.float32,0xbe5dd950,0xbe47766c,3
+np.float32,0xfd8f88f0,0xbf800000,3
+np.float32,0x75a4b7,0x75a4b7,3
+np.float32,0x3f726f2e,0x3fc9fb7d,3
+np.float32,0x3ed6795c,0x3f053115,3
+np.float32,0x17d7f5,0x17d7f5,3
+np.float32,0xbf4cf19b,0xbf0d094f,3
+np.float32,0x3e0ec532,0x3e1933c6,3
+np.float32,0xff084016,0xbf800000,3
+np.float32,0x800829aa,0x800829aa,3
+np.float32,0x806d7302,0x806d7302,3
+np.float32,0x7f59d9da,0x7f800000,3
+np.float32,0x15f8b9,0x15f8b9,3
+np.float32,0x803befb3,0x803befb3,3
+np.float32,0x525043,0x525043,3
+np.float32,0x51a647,0x51a647,3
+np.float32,0xbf1cfce4,0xbeeab3d9,3
+np.float32,0x3f1f27a4,0x3f5cb1d2,3
+np.float32,0xbebc3a04,0xbe9d8142,3
+np.float32,0xbeea548c,0xbebc07e5,3
+np.float32,0x3f47401c,0x3f96c2a3,3
+np.float32,0x806b1ea3,0x806b1ea3,3
+np.float32,0x3ea56bb8,0x3ec3450c,3
+np.float32,0x3f7b4963,0x3fd597b5,3
+np.float32,0x7f051fa0,0x7f800000,3
+np.float32,0x1d411c,0x1d411c,3
+np.float32,0xff0b6a35,0xbf800000,3
+np.float32,0xbead63c0,0xbe9314f7,3
+np.float32,0x3738be,0x3738be,3
+np.float32,0x3f138cc8,0x3f479155,3
+np.float32,0x800a539f,0x800a539f,3
+np.float32,0x801b0ebd,0x801b0ebd,3
+np.float32,0x318fcd,0x318fcd,3
+np.float32,0x3ed67556,0x3f052e06,3
+np.float32,0x702886,0x702886,3
+np.float32,0x80000001,0x80000001,3
+np.float32,0x70a174,0x70a174,3
+np.float32,0x4f9c66,0x4f9c66,3
+np.float32,0x3e3e1927,0x3e50e351,3
+np.float32,0x7eac9a4d,0x7f800000,3
+np.float32,0x4b7407,0x4b7407,3
+np.float32,0x7f5bd2fd,0x7f800000,3
+np.float32,0x3eaafc58,0x3ecaffbd,3
+np.float32,0xbc989360,0xbc9729e2,3
+np.float32,0x3f470e5c,0x3f968c7b,3
+np.float32,0x4c5672,0x4c5672,3
+np.float32,0xff2b2ee2,0xbf800000,3
+np.float32,0xbf28a104,0xbef7079b,3
+np.float32,0x2c6175,0x2c6175,3
+np.float32,0x3d7e4fb0,0x3d832f9f,3
+np.float32,0x763276,0x763276,3
+np.float32,0x3cf364,0x3cf364,3
+np.float32,0xbf7ace75,0xbf1fe48c,3
+np.float32,0xff19e858,0xbf800000,3
+np.float32,0x80504c70,0x80504c70,3
+np.float32,0xff390210,0xbf800000,3
+np.float32,0x8046a743,0x8046a743,3
+np.float32,0x80000000,0x80000000,3
+np.float32,0x806c51da,0x806c51da,3
+np.float32,0x806ab38f,0x806ab38f,3
+np.float32,0x3f3de863,0x3f8cc538,3
+np.float32,0x7f6d45bb,0x7f800000,3
+np.float32,0xfd16ec60,0xbf800000,3
+np.float32,0x80513cba,0x80513cba,3
+np.float32,0xbf68996b,0xbf18cefa,3
+np.float32,0xfe039f2c,0xbf800000,3
+np.float32,0x3f013207,0x3f280c55,3
+np.float32,0x7ef4bc07,0x7f800000,3
+np.float32,0xbe8b65ac,0xbe741069,3
+np.float32,0xbf7a8186,0xbf1fc7a6,3
+np.float32,0x802532e5,0x802532e5,3
+np.float32,0x32c7df,0x32c7df,3
+np.float32,0x3ce4dceb,0x3ce81701,3
+np.float32,0xfe801118,0xbf800000,3
+np.float32,0x3d905f20,0x3d9594fb,3
+np.float32,0xbe11ed28,0xbe080168,3
+np.float32,0x59e773,0x59e773,3
+np.float32,0x3e9a2547,0x3eb3dd57,3
+np.float32,0x7ecb7c67,0x7f800000,3
+np.float32,0x7f69a67e,0x7f800000,3
+np.float32,0xff121e11,0xbf800000,3
+np.float32,0x3f7917cb,0x3fd2ad8c,3
+np.float32,0xbf1a7da8,0xbee7fc0c,3
+np.float32,0x3f077e66,0x3f329c40,3
+np.float32,0x3ce8e040,0x3cec37b3,3
+np.float32,0xbf3f0b8e,0xbf069f4d,3
+np.float32,0x3f52f194,0x3fa3c9d6,3
+np.float32,0xbf0e7422,0xbeda80f2,3
+np.float32,0xfd67e230,0xbf800000,3
+np.float32,0xff14d9a9,0xbf800000,3
+np.float32,0x3f3546e3,0x3f83dc2b,3
+np.float32,0x3e152e3a,0x3e20983d,3
+np.float32,0x4a89a3,0x4a89a3,3
+np.float32,0x63217,0x63217,3
+np.float32,0xbeb9e2a8,0xbe9be153,3
+np.float32,0x7e9fa049,0x7f800000,3
+np.float32,0x7f58110c,0x7f800000,3
+np.float32,0x3e88290c,0x3e9bfba9,3
+np.float32,0xbf2cb206,0xbefb3494,3
+np.float32,0xff5880c4,0xbf800000,3
+np.float32,0x7ecff3ac,0x7f800000,3
+np.float32,0x3f4b3de6,0x3f9b23fd,3
+np.float32,0xbebd2048,0xbe9e208c,3
+np.float32,0xff08f7a2,0xbf800000,3
+np.float32,0xff473330,0xbf800000,3
+np.float32,0x1,0x1,3
+np.float32,0xbf5dc239,0xbf14584b,3
+np.float32,0x458e3f,0x458e3f,3
+np.float32,0xbdb8a650,0xbdb091f8,3
+np.float32,0xff336ffc,0xbf800000,3
+np.float32,0x3c60bd00,0x3c624966,3
+np.float32,0xbe16a4f8,0xbe0c1664,3
+np.float32,0x3f214246,0x3f60a0f0,3
+np.float32,0x7fa00000,0x7fe00000,3
+np.float32,0x7e08737e,0x7f800000,3
+np.float32,0x3f70574c,0x3fc74b8e,3
+np.float32,0xbed5745c,0xbeae8c77,3
+np.float32,0x361752,0x361752,3
+np.float32,0x3eb276d6,0x3ed584ea,3
+np.float32,0x3f03fc1e,0x3f2cb1a5,3
+np.float32,0x3fafd1,0x3fafd1,3
+np.float32,0x7e50d74c,0x7f800000,3
+np.float32,0x3eeca5,0x3eeca5,3
+np.float32,0x5dc963,0x5dc963,3
+np.float32,0x7f0e63ae,0x7f800000,3
+np.float32,0x8021745f,0x8021745f,3
+np.float32,0xbf5881a9,0xbf121d07,3
+np.float32,0x7dadc7fd,0x7f800000,3
+np.float32,0xbf2c0798,0xbefa86bb,3
+np.float32,0x3e635f50,0x3e7e97a9,3
+np.float32,0xbf2053fa,0xbeee4c0e,3
+np.float32,0x3e8eee2b,0x3ea4dfcc,3
+np.float32,0xfc8a03c0,0xbf800000,3
+np.float32,0xfd9e4948,0xbf800000,3
+np.float32,0x801e817e,0x801e817e,3
+np.float32,0xbf603a27,0xbf1560c3,3
+np.float32,0x7f729809,0x7f800000,3
+np.float32,0x3f5a1864,0x3fac0e04,3
+np.float32,0x3e7648b8,0x3e8b3677,3
+np.float32,0x3edade24,0x3f088bc1,3
+np.float32,0x65e16e,0x65e16e,3
+np.float32,0x3f24aa50,0x3f671117,3
+np.float32,0x803cb1d0,0x803cb1d0,3
+np.float32,0xbe7b1858,0xbe5eadcc,3
+np.float32,0xbf19bb27,0xbee726fb,3
+np.float32,0xfd1f6e60,0xbf800000,3
+np.float32,0xfeb0de60,0xbf800000,3
+np.float32,0xff511a52,0xbf800000,3
+np.float32,0xff7757f7,0xbf800000,3
+np.float32,0x463ff5,0x463ff5,3
+np.float32,0x3f770d12,0x3fcffcc2,3
+np.float32,0xbf208562,0xbeee80dc,3
+np.float32,0x6df204,0x6df204,3
+np.float32,0xbf62d24f,0xbf1673fb,3
+np.float32,0x3dfcf210,0x3e069d5f,3
+np.float32,0xbef26002,0xbec114d7,3
+np.float32,0x7f800000,0x7f800000,3
+np.float32,0x7f30fb85,0x7f800000,3
+np.float32,0x7ee5dfef,0x7f800000,3
+np.float32,0x3f317829,0x3f800611,3
+np.float32,0x3f4b0bbd,0x3f9aec88,3
+np.float32,0x7edf708c,0x7f800000,3
+np.float32,0xff071260,0xbf800000,3
+np.float32,0x3e7b8c30,0x3e8e9198,3
+np.float32,0x3f33778b,0x3f82077f,3
+np.float32,0x3e8cd11d,0x3ea215fd,3
+np.float32,0x8004483d,0x8004483d,3
+np.float32,0x801633e3,0x801633e3,3
+np.float32,0x7e76eb15,0x7f800000,3
+np.float32,0x3c1571,0x3c1571,3
+np.float32,0x7de3de52,0x7f800000,3
+np.float32,0x804ae906,0x804ae906,3
+np.float32,0x7f3a2616,0x7f800000,3
+np.float32,0xff7fffff,0xbf800000,3
+np.float32,0xff5d17e4,0xbf800000,3
+np.float32,0xbeaa6704,0xbe90f252,3
+np.float32,0x7e6a43af,0x7f800000,3
+np.float32,0x2a0f35,0x2a0f35,3
+np.float32,0xfd8fece0,0xbf800000,3
+np.float32,0xfeef2e2a,0xbf800000,3
+np.float32,0xff800000,0xbf800000,3
+np.float32,0xbeefcc52,0xbebf78e4,3
+np.float32,0x3db6c490,0x3dbf2bd5,3
+np.float32,0x8290f,0x8290f,3
+np.float32,0xbeace648,0xbe92bb7f,3
+np.float32,0x801fea79,0x801fea79,3
+np.float32,0x3ea6c230,0x3ec51ebf,3
+np.float32,0x3e5f2ca3,0x3e795c8a,3
+np.float32,0x3eb6f634,0x3edbeb9f,3
+np.float32,0xff790b45,0xbf800000,3
+np.float32,0x3d82e240,0x3d872816,3
+np.float32,0x3f0d6a57,0x3f3cc7db,3
+np.float32,0x7f08531a,0x7f800000,3
+np.float32,0x702b6d,0x702b6d,3
+np.float32,0x7d3a3c38,0x7f800000,3
+np.float32,0x3d0a7fb3,0x3d0cddf3,3
+np.float32,0xff28084c,0xbf800000,3
+np.float32,0xfeee8804,0xbf800000,3
+np.float32,0x804094eb,0x804094eb,3
+np.float32,0x7acb39,0x7acb39,3
+np.float32,0x3f01c07a,0x3f28f88c,3
+np.float32,0x3e05c500,0x3e0ee674,3
+np.float32,0xbe6f7c38,0xbe558ac1,3
+np.float32,0x803b1f4b,0x803b1f4b,3
+np.float32,0xbf76561f,0xbf1e332b,3
+np.float32,0xff30d368,0xbf800000,3
+np.float32,0x7e2e1f38,0x7f800000,3
+np.float32,0x3ee085b8,0x3f0ce7c0,3
+np.float32,0x8064c4a7,0x8064c4a7,3
+np.float32,0xa7c1d,0xa7c1d,3
+np.float32,0x3f27498a,0x3f6c14bc,3
+np.float32,0x137ca,0x137ca,3
+np.float32,0x3d0a5c60,0x3d0cb969,3
+np.float32,0x80765f1f,0x80765f1f,3
+np.float32,0x80230a71,0x80230a71,3
+np.float32,0x3f321ed2,0x3f80acf4,3
+np.float32,0x7d61e7f4,0x7f800000,3
+np.float32,0xbf39f7f2,0xbf0430f7,3
+np.float32,0xbe2503f8,0xbe1867e8,3
+np.float32,0x29333d,0x29333d,3
+np.float32,0x7edc5a0e,0x7f800000,3
+np.float32,0xbe81a8a2,0xbe651663,3
+np.float32,0x7f76ab6d,0x7f800000,3
+np.float32,0x7f46111f,0x7f800000,3
+np.float32,0xff0fc888,0xbf800000,3
+np.float32,0x805ece89,0x805ece89,3
+np.float32,0xc390b,0xc390b,3
+np.float32,0xff64bdee,0xbf800000,3
+np.float32,0x3dd07e4e,0x3ddb79bd,3
+np.float32,0xfecc1f10,0xbf800000,3
+np.float32,0x803f5177,0x803f5177,3
+np.float32,0x802a24d2,0x802a24d2,3
+np.float32,0x7f27d0cc,0x7f800000,3
+np.float32,0x3ef57c98,0x3f1d7e88,3
+np.float32,0x7b848d,0x7b848d,3
+np.float32,0x7f7fffff,0x7f800000,3
+np.float32,0xfe889c46,0xbf800000,3
+np.float32,0xff2d6dc5,0xbf800000,3
+np.float32,0x3f53a186,0x3fa492a6,3
+np.float32,0xbf239c94,0xbef1c90c,3
+np.float32,0xff7c0f4e,0xbf800000,3
+np.float32,0x3e7c69a9,0x3e8f1f3a,3
+np.float32,0xbf47c9e9,0xbf0ab2a9,3
+np.float32,0xbc1eaf00,0xbc1deae9,3
+np.float32,0x3f4a6d39,0x3f9a3d8e,3
+np.float32,0x3f677930,0x3fbc26eb,3
+np.float32,0x3f45eea1,0x3f955418,3
+np.float32,0x7f61a1f8,0x7f800000,3
+np.float32,0xff58c7c6,0xbf800000,3
+np.float32,0x80239801,0x80239801,3
+np.float32,0xff56e616,0xbf800000,3
+np.float32,0xff62052c,0xbf800000,3
+np.float32,0x8009b615,0x8009b615,3
+np.float32,0x293d6b,0x293d6b,3
+np.float32,0xfe9e585c,0xbf800000,3
+np.float32,0x7f58ff4b,0x7f800000,3
+np.float32,0x10937c,0x10937c,3
+np.float32,0x7f5cc13f,0x7f800000,3
+np.float32,0x110c5d,0x110c5d,3
+np.float32,0x805e51fc,0x805e51fc,3
+np.float32,0xbedcf70a,0xbeb3766c,3
+np.float32,0x3f4d5e42,0x3f9d8091,3
+np.float32,0xff5925a0,0xbf800000,3
+np.float32,0x7e87cafa,0x7f800000,3
+np.float32,0xbf6474b2,0xbf171fee,3
+np.float32,0x4b39b2,0x4b39b2,3
+np.float32,0x8020cc28,0x8020cc28,3
+np.float32,0xff004ed8,0xbf800000,3
+np.float32,0xbf204cf5,0xbeee448d,3
+np.float32,0x3e30cf10,0x3e40fdb1,3
+np.float32,0x80202bee,0x80202bee,3
+np.float32,0xbf55a985,0xbf10e2bc,3
+np.float32,0xbe297dd8,0xbe1c351c,3
+np.float32,0x5780d9,0x5780d9,3
+np.float32,0x7ef729fa,0x7f800000,3
+np.float32,0x8039a3b5,0x8039a3b5,3
+np.float32,0x7cdd3f,0x7cdd3f,3
+np.float32,0x7ef0145a,0x7f800000,3
+np.float32,0x807ad7ae,0x807ad7ae,3
+np.float32,0x7f6c2643,0x7f800000,3
+np.float32,0xbec56124,0xbea3c929,3
+np.float32,0x512c3b,0x512c3b,3
+np.float32,0xbed3effe,0xbead8c1e,3
+np.float32,0x7f5e0a4d,0x7f800000,3
+np.float32,0x3f315316,0x3f7fc200,3
+np.float32,0x7eca5727,0x7f800000,3
+np.float32,0x7f4834f3,0x7f800000,3
+np.float32,0x8004af6d,0x8004af6d,3
+np.float32,0x3f223ca4,0x3f6277e3,3
+np.float32,0x7eea4fdd,0x7f800000,3
+np.float32,0x3e7143e8,0x3e880763,3
+np.float32,0xbf737008,0xbf1d160e,3
+np.float32,0xfc408b00,0xbf800000,3
+np.float32,0x803912ca,0x803912ca,3
+np.float32,0x7db31f4e,0x7f800000,3
+np.float32,0xff578b54,0xbf800000,3
+np.float32,0x3f068ec4,0x3f31062b,3
+np.float32,0x35f64f,0x35f64f,3
+np.float32,0x80437df4,0x80437df4,3
+np.float32,0x568059,0x568059,3
+np.float32,0x8005f8ba,0x8005f8ba,3
+np.float32,0x6824ad,0x6824ad,3
+np.float32,0xff3fdf30,0xbf800000,3
+np.float32,0xbf6f7682,0xbf1b89d6,3
+np.float32,0x3dcea8a0,0x3dd971f5,3
+np.float32,0x3ee32a62,0x3f0ef5a9,3
+np.float32,0xbf735bcd,0xbf1d0e3d,3
+np.float32,0x7e8c7c28,0x7f800000,3
+np.float32,0x3ed552bc,0x3f045161,3
+np.float32,0xfed90a8a,0xbf800000,3
+np.float32,0xbe454368,0xbe336d2a,3
+np.float32,0xbf171d26,0xbee4442d,3
+np.float32,0x80652bf9,0x80652bf9,3
+np.float32,0xbdbaaa20,0xbdb26914,3
+np.float32,0x3f56063d,0x3fa7522e,3
+np.float32,0x3d3d4fd3,0x3d41c13f,3
+np.float32,0x80456040,0x80456040,3
+np.float32,0x3dc15586,0x3dcac0ef,3
+np.float32,0x7f753060,0x7f800000,3
+np.float32,0x7f7d8039,0x7f800000,3
+np.float32,0xfdebf280,0xbf800000,3
+np.float32,0xbf1892c3,0xbee5e116,3
+np.float32,0xbf0f1468,0xbedb3878,3
+np.float32,0x40d85c,0x40d85c,3
+np.float32,0x3f93dd,0x3f93dd,3
+np.float32,0xbf5730fd,0xbf118c24,3
+np.float32,0xfe17aa44,0xbf800000,3
+np.float32,0x3dc0baf4,0x3dca1716,3
+np.float32,0xbf3433d8,0xbf015efb,3
+np.float32,0x1c59f5,0x1c59f5,3
+np.float32,0x802b1540,0x802b1540,3
+np.float32,0xbe47df6c,0xbe35936e,3
+np.float32,0xbe8e7070,0xbe78af32,3
+np.float32,0xfe7057f4,0xbf800000,3
+np.float32,0x80668b69,0x80668b69,3
+np.float32,0xbe677810,0xbe4f2c2d,3
+np.float32,0xbe7a2f1c,0xbe5df733,3
+np.float32,0xfeb79e3c,0xbf800000,3
+np.float32,0xbeb6e320,0xbe99c9e8,3
+np.float32,0xfea188f2,0xbf800000,3
+np.float32,0x7dcaeb15,0x7f800000,3
+np.float32,0x1be567,0x1be567,3
+np.float32,0xbf4041cc,0xbf07320d,3
+np.float32,0x3f721aa7,0x3fc98e9a,3
+np.float32,0x7f5aa835,0x7f800000,3
+np.float32,0x15180e,0x15180e,3
+np.float32,0x3f73d739,0x3fcbccdb,3
+np.float32,0xbeecd380,0xbebd9b36,3
+np.float32,0x3f2caec7,0x3f768fea,3
+np.float32,0xbeaf65f2,0xbe9482bb,3
+np.float32,0xfe6aa384,0xbf800000,3
+np.float32,0xbf4f2c0a,0xbf0e085e,3
+np.float32,0xbf2b5907,0xbef9d431,3
+np.float32,0x3e855e0d,0x3e985960,3
+np.float32,0x8056cc64,0x8056cc64,3
+np.float32,0xff746bb5,0xbf800000,3
+np.float32,0x3e0332f6,0x3e0bf986,3
+np.float32,0xff637720,0xbf800000,3
+np.float32,0xbf330676,0xbf00c990,3
+np.float32,0x3ec449a1,0x3eef3862,3
+np.float32,0x766541,0x766541,3
+np.float32,0xfe2edf6c,0xbf800000,3
+np.float32,0xbebb28ca,0xbe9cc3e2,3
+np.float32,0x3f16c930,0x3f4d5ce4,3
+np.float32,0x7f1a9a4a,0x7f800000,3
+np.float32,0x3e9ba1,0x3e9ba1,3
+np.float32,0xbf73d5f6,0xbf1d3d69,3
+np.float32,0xfdc8a8b0,0xbf800000,3
+np.float32,0x50f051,0x50f051,3
+np.float32,0xff0add02,0xbf800000,3
+np.float32,0x1e50bf,0x1e50bf,3
+np.float32,0x3f04d287,0x3f2e1948,3
+np.float32,0x7f1e50,0x7f1e50,3
+np.float32,0x2affb3,0x2affb3,3
+np.float32,0x80039f07,0x80039f07,3
+np.float32,0x804ba79e,0x804ba79e,3
+np.float32,0x7b5a8eed,0x7f800000,3
+np.float32,0x3e1a8b28,0x3e26d0a7,3
+np.float32,0x3ea95f29,0x3ec8bfa4,3
+np.float32,0x7e09fa55,0x7f800000,3
+np.float32,0x7eacb1b3,0x7f800000,3
+np.float32,0x3e8ad7c0,0x3e9f7dec,3
+np.float32,0x7e0e997c,0x7f800000,3
+np.float32,0x3f4422b4,0x3f936398,3
+np.float32,0x806bd222,0x806bd222,3
+np.float32,0x677ae6,0x677ae6,3
+np.float32,0x62cf68,0x62cf68,3
+np.float32,0x7e4e594e,0x7f800000,3
+np.float32,0x80445fd1,0x80445fd1,3
+np.float32,0xff3a0d04,0xbf800000,3
+np.float32,0x8052b256,0x8052b256,3
+np.float32,0x3cb34440,0x3cb53e11,3
+np.float32,0xbf0e3865,0xbeda3c6d,3
+np.float32,0x3f49f5df,0x3f99ba17,3
+np.float32,0xbed75a22,0xbeafcc09,3
+np.float32,0xbf7aec64,0xbf1fefc8,3
+np.float32,0x7f35a62d,0x7f800000,3
+np.float32,0xbf787b03,0xbf1f03fc,3
+np.float32,0x8006a62a,0x8006a62a,3
+np.float32,0x3f6419e7,0x3fb803c7,3
+np.float32,0x3ecea2e5,0x3efe8f01,3
+np.float32,0x80603577,0x80603577,3
+np.float32,0xff73198c,0xbf800000,3
+np.float32,0x7def110a,0x7f800000,3
+np.float32,0x544efd,0x544efd,3
+np.float32,0x3f052340,0x3f2ea0fc,3
+np.float32,0xff306666,0xbf800000,3
+np.float32,0xbf800000,0xbf21d2a7,3
+np.float32,0xbed3e150,0xbead826a,3
+np.float32,0x3f430c99,0x3f92390f,3
+np.float32,0xbf4bffa4,0xbf0c9c73,3
+np.float32,0xfd97a710,0xbf800000,3
+np.float32,0x3cadf0fe,0x3cafcd1a,3
+np.float32,0x807af7b4,0x807af7b4,3
+np.float32,0xbc508600,0xbc4f33bc,3
+np.float32,0x7f3e0ec7,0x7f800000,3
+np.float32,0xbe51334c,0xbe3d36f7,3
+np.float32,0xfe7b7fb4,0xbf800000,3
+np.float32,0xfed9c45e,0xbf800000,3
+np.float32,0x3da024eb,0x3da6926a,3
+np.float32,0x7eed9e76,0x7f800000,3
+np.float32,0xbf2b8f1f,0xbefa0b91,3
+np.float32,0x3f2b9286,0x3f746318,3
+np.float32,0xfe8af49c,0xbf800000,3
+np.float32,0x9c4f7,0x9c4f7,3
+np.float32,0x801d7543,0x801d7543,3
+np.float32,0xbf66474a,0xbf17de66,3
+np.float32,0xbf562155,0xbf1116b1,3
+np.float32,0x46a8de,0x46a8de,3
+np.float32,0x8053fe6b,0x8053fe6b,3
+np.float32,0xbf6ee842,0xbf1b51f3,3
+np.float32,0xbf6ad78e,0xbf19b565,3
+np.float32,0xbf012574,0xbecad7ff,3
+np.float32,0x748364,0x748364,3
+np.float32,0x8073f59b,0x8073f59b,3
+np.float32,0xff526825,0xbf800000,3
+np.float32,0xfeb02dc4,0xbf800000,3
+np.float32,0x8033eb1c,0x8033eb1c,3
+np.float32,0x3f3685ea,0x3f8520cc,3
+np.float32,0x7f657902,0x7f800000,3
+np.float32,0xbf75eac4,0xbf1e0a1f,3
+np.float32,0xfe67f384,0xbf800000,3
+np.float32,0x3f56d3cc,0x3fa83faf,3
+np.float32,0x44a4ce,0x44a4ce,3
+np.float32,0x1dc4b3,0x1dc4b3,3
+np.float32,0x4fb3b2,0x4fb3b2,3
+np.float32,0xbea904a4,0xbe8ff3ed,3
+np.float32,0x7e668f16,0x7f800000,3
+np.float32,0x7f538378,0x7f800000,3
+np.float32,0x80541709,0x80541709,3
+np.float32,0x80228040,0x80228040,3
+np.float32,0x7ef9694e,0x7f800000,3
+np.float32,0x3f5fca9b,0x3fb2ce54,3
+np.float32,0xbe9c43c2,0xbe86ab84,3
+np.float32,0xfecee000,0xbf800000,3
+np.float32,0x5a65c2,0x5a65c2,3
+np.float32,0x3f736572,0x3fcb3985,3
+np.float32,0xbf2a03f7,0xbef87600,3
+np.float32,0xfe96b488,0xbf800000,3
+np.float32,0xfedd8800,0xbf800000,3
+np.float32,0x80411804,0x80411804,3
+np.float32,0x7edcb0a6,0x7f800000,3
+np.float32,0x2bb882,0x2bb882,3
+np.float32,0x3f800000,0x3fdbf0a9,3
+np.float32,0x764b27,0x764b27,3
+np.float32,0x7e92035d,0x7f800000,3
+np.float32,0x3e80facb,0x3e92ae1d,3
+np.float32,0x8040b81a,0x8040b81a,3
+np.float32,0x7f487fe4,0x7f800000,3
+np.float32,0xbc641780,0xbc6282ed,3
+np.float32,0x804b0bb9,0x804b0bb9,3
+np.float32,0x7d0b7c39,0x7f800000,3
+np.float32,0xff072080,0xbf800000,3
+np.float32,0xbed7aff8,0xbeb00462,3
+np.float32,0x35e247,0x35e247,3
+np.float32,0xbf7edd19,0xbf216766,3
+np.float32,0x8004a539,0x8004a539,3
+np.float32,0xfdfc1790,0xbf800000,3
+np.float32,0x8037a841,0x8037a841,3
+np.float32,0xfed0a8a8,0xbf800000,3
+np.float32,0x7f1f1697,0x7f800000,3
+np.float32,0x3f2ccc6e,0x3f76ca23,3
+np.float32,0x35eada,0x35eada,3
+np.float32,0xff111f42,0xbf800000,3
+np.float32,0x3ee1ab7f,0x3f0dcbbe,3
+np.float32,0xbf6e89ee,0xbf1b2cd4,3
+np.float32,0x3f58611c,0x3faa0cdc,3
+np.float32,0x1ac6a6,0x1ac6a6,3
+np.float32,0xbf1286fa,0xbedf2312,3
+np.float32,0x7e451137,0x7f800000,3
+np.float32,0xbe92c326,0xbe7f3405,3
+np.float32,0x3f2fdd16,0x3f7cd87b,3
+np.float32,0xbe5c0ea0,0xbe4604c2,3
+np.float32,0xbdb29968,0xbdab0883,3
+np.float32,0x3964,0x3964,3
+np.float32,0x3f0dc236,0x3f3d60a0,3
+np.float32,0x7c3faf06,0x7f800000,3
+np.float32,0xbef41f7a,0xbec22b16,3
+np.float32,0x3f4c0289,0x3f9bfdcc,3
+np.float32,0x806084e9,0x806084e9,3
+np.float32,0x3ed1d8dd,0x3f01b0c1,3
+np.float32,0x806d8d8b,0x806d8d8b,3
+np.float32,0x3f052180,0x3f2e9e0a,3
+np.float32,0x803d85d5,0x803d85d5,3
+np.float32,0x3e0afd70,0x3e14dd48,3
+np.float32,0x2fbc63,0x2fbc63,3
+np.float32,0x2e436f,0x2e436f,3
+np.float32,0xbf7b19e6,0xbf2000da,3
+np.float32,0x3f34022e,0x3f829362,3
+np.float32,0x3d2b40e0,0x3d2ee246,3
+np.float32,0x3f5298b4,0x3fa3649b,3
+np.float32,0xbdb01328,0xbda8b7de,3
+np.float32,0x7f693c81,0x7f800000,3
+np.float32,0xbeb1abc0,0xbe961edc,3
+np.float32,0x801d9b5d,0x801d9b5d,3
+np.float32,0x80628668,0x80628668,3
+np.float32,0x800f57dd,0x800f57dd,3
+np.float32,0x8017c94f,0x8017c94f,3
+np.float32,0xbf16f5f4,0xbee418b8,3
+np.float32,0x3e686476,0x3e827022,3
+np.float32,0xbf256796,0xbef3abd9,3
+np.float32,0x7f1b4485,0x7f800000,3
+np.float32,0xbea0b3cc,0xbe89ed21,3
+np.float32,0xfee08b2e,0xbf800000,3
+np.float32,0x523cb4,0x523cb4,3
+np.float32,0x3daf2cb2,0x3db6e273,3
+np.float32,0xbd531c40,0xbd4dc323,3
+np.float32,0x80078fe5,0x80078fe5,3
+np.float32,0x80800000,0x80800000,3
+np.float32,0x3f232438,0x3f642d1a,3
+np.float32,0x3ec29446,0x3eecb7c0,3
+np.float32,0x3dbcd2a4,0x3dc5cd1d,3
+np.float32,0x7f045b0d,0x7f800000,3
+np.float32,0x7f22e6d1,0x7f800000,3
+np.float32,0xbf5d3430,0xbf141c80,3
+np.float32,0xbe03ec70,0xbdf78ee6,3
+np.float32,0x3e93ec9a,0x3eab822f,3
+np.float32,0x7f3b9262,0x7f800000,3
+np.float32,0x65ac6a,0x65ac6a,3
+np.float32,0x3db9a8,0x3db9a8,3
+np.float32,0xbf37ab59,0xbf031306,3
+np.float32,0x33c40e,0x33c40e,3
+np.float32,0x7f7a478f,0x7f800000,3
+np.float32,0xbe8532d0,0xbe6a906f,3
+np.float32,0x801c081d,0x801c081d,3
+np.float32,0xbe4212a0,0xbe30ca73,3
+np.float32,0xff0b603e,0xbf800000,3
+np.float32,0x4554dc,0x4554dc,3
+np.float32,0x3dd324be,0x3dde695e,3
+np.float32,0x3f224c44,0x3f629557,3
+np.float32,0x8003cd79,0x8003cd79,3
+np.float32,0xbf31351c,0xbeffc2fd,3
+np.float32,0x8034603a,0x8034603a,3
+np.float32,0xbf6fcb70,0xbf1bab24,3
+np.float32,0x804eb67e,0x804eb67e,3
+np.float32,0xff05c00e,0xbf800000,3
+np.float32,0x3eb5b36f,0x3eda1ec7,3
+np.float32,0x3f1ed7f9,0x3f5c1d90,3
+np.float32,0x3f052d8a,0x3f2eb24b,3
+np.float32,0x5ddf51,0x5ddf51,3
+np.float32,0x7e50c11c,0x7f800000,3
+np.float32,0xff74f55a,0xbf800000,3
+np.float32,0x4322d,0x4322d,3
+np.float32,0x3f16f8a9,0x3f4db27a,3
+np.float32,0x3f4f23d6,0x3f9f7c2c,3
+np.float32,0xbf706c1e,0xbf1bea0a,3
+np.float32,0x3f2cbd52,0x3f76ac77,3
+np.float32,0xf3043,0xf3043,3
+np.float32,0xfee79de0,0xbf800000,3
+np.float32,0x7e942f69,0x7f800000,3
+np.float32,0x180139,0x180139,3
+np.float32,0xff69c678,0xbf800000,3
+np.float32,0x3f46773f,0x3f95e840,3
+np.float32,0x804aae1c,0x804aae1c,3
+np.float32,0x3eb383b4,0x3ed7024c,3
+np.float32,0x8032624e,0x8032624e,3
+np.float32,0xbd0a0f80,0xbd07c27d,3
+np.float32,0xbf1c9b98,0xbeea4a61,3
+np.float32,0x7f370999,0x7f800000,3
+np.float32,0x801931f9,0x801931f9,3
+np.float32,0x3f6f45ce,0x3fc5eea0,3
+np.float32,0xff0ab4cc,0xbf800000,3
+np.float32,0x4c043d,0x4c043d,3
+np.float32,0x8002a599,0x8002a599,3
+np.float32,0xbc4a6080,0xbc4921d7,3
+np.float32,0x3f008d14,0x3f26fb72,3
+np.float32,0x7f48b3d9,0x7f800000,3
+np.float32,0x7cb2ec7e,0x7f800000,3
+np.float32,0xbf1338bd,0xbedfeb61,3
+np.float32,0x0,0x0,3
+np.float32,0xbf2f5b64,0xbefde71c,3
+np.float32,0xbe422974,0xbe30dd56,3
+np.float32,0x3f776be8,0x3fd07950,3
+np.float32,0xbf3e97a1,0xbf06684a,3
+np.float32,0x7d28cb26,0x7f800000,3
+np.float32,0x801618d2,0x801618d2,3
+np.float32,0x807e4f83,0x807e4f83,3
+np.float32,0x8006b07d,0x8006b07d,3
+np.float32,0xfea1c042,0xbf800000,3
+np.float32,0xff24ef74,0xbf800000,3
+np.float32,0xfef7ab16,0xbf800000,3
+np.float32,0x70b771,0x70b771,3
+np.float32,0x7daeb64e,0x7f800000,3
+np.float32,0xbe66e378,0xbe4eb59c,3
+np.float32,0xbead1534,0xbe92dcf7,3
+np.float32,0x7e6769b8,0x7f800000,3
+np.float32,0x7ecd0890,0x7f800000,3
+np.float32,0xbe7380d8,0xbe58b747,3
+np.float32,0x3efa6f2f,0x3f218265,3
+np.float32,0x3f59dada,0x3fabc5eb,3
+np.float32,0xff0f2d20,0xbf800000,3
+np.float32,0x8060210e,0x8060210e,3
+np.float32,0x3ef681e8,0x3f1e51c8,3
+np.float32,0x77a6dd,0x77a6dd,3
+np.float32,0xbebfdd0e,0xbea00399,3
+np.float32,0xfe889b72,0xbf800000,3
+np.float32,0x8049ed2c,0x8049ed2c,3
+np.float32,0x3b089dc4,0x3b08c23e,3
+np.float32,0xbf13c7c4,0xbee08c28,3
+np.float32,0x3efa13b9,0x3f2137d7,3
+np.float32,0x3e9385dc,0x3eaaf914,3
+np.float32,0x7e0e6a43,0x7f800000,3
+np.float32,0x7df6d63f,0x7f800000,3
+np.float32,0x3f3efead,0x3f8dea03,3
+np.float32,0xff52548c,0xbf800000,3
+np.float32,0x803ff9d8,0x803ff9d8,3
+np.float32,0x3c825823,0x3c836303,3
+np.float32,0xfc9e97a0,0xbf800000,3
+np.float32,0xfe644f48,0xbf800000,3
+np.float32,0x802f5017,0x802f5017,3
+np.float32,0x3d5753b9,0x3d5d1661,3
+np.float32,0x7f2a55d2,0x7f800000,3
+np.float32,0x7f4dabfe,0x7f800000,3
+np.float32,0x3f49492a,0x3f98fc47,3
+np.float32,0x3f4d1589,0x3f9d2f82,3
+np.float32,0xff016208,0xbf800000,3
+np.float32,0xbf571cb7,0xbf118365,3
+np.float32,0xbf1ef297,0xbeecd136,3
+np.float32,0x36266b,0x36266b,3
+np.float32,0xbed07b0e,0xbeab4129,3
+np.float32,0x7f553365,0x7f800000,3
+np.float32,0xfe9bb8c6,0xbf800000,3
+np.float32,0xbeb497d6,0xbe982e19,3
+np.float32,0xbf27af6c,0xbef60d16,3
+np.float32,0x55cf51,0x55cf51,3
+np.float32,0x3eab1db0,0x3ecb2e4f,3
+np.float32,0x3e777603,0x3e8bf62f,3
+np.float32,0x7f10e374,0x7f800000,3
+np.float32,0xbf1f6480,0xbeed4b8d,3
+np.float32,0x40479d,0x40479d,3
+np.float32,0x156259,0x156259,3
+np.float32,0x3d852e30,0x3d899b2d,3
+np.float32,0x80014ff3,0x80014ff3,3
+np.float32,0xbd812fa8,0xbd7a645c,3
+np.float32,0x800ab780,0x800ab780,3
+np.float32,0x3ea02ff4,0x3ebc13bd,3
+np.float32,0x7e858b8e,0x7f800000,3
+np.float32,0x75d63b,0x75d63b,3
+np.float32,0xbeb15c94,0xbe95e6e3,3
+np.float32,0x3da0cee0,0x3da74a39,3
+np.float32,0xff21c01c,0xbf800000,3
+np.float32,0x8049b5eb,0x8049b5eb,3
+np.float32,0x80177ab0,0x80177ab0,3
+np.float32,0xff137a50,0xbf800000,3
+np.float32,0x3f7febba,0x3fdbd51c,3
+np.float32,0x8041e4dd,0x8041e4dd,3
+np.float32,0x99b8c,0x99b8c,3
+np.float32,0x5621ba,0x5621ba,3
+np.float32,0x14b534,0x14b534,3
+np.float32,0xbe2eb3a8,0xbe209c95,3
+np.float32,0x7e510c28,0x7f800000,3
+np.float32,0x804ec2f2,0x804ec2f2,3
+np.float32,0x3f662406,0x3fba82b0,3
+np.float32,0x800000,0x800000,3
+np.float32,0x3f3120d6,0x3f7f5d96,3
+np.float32,0x7f179b8e,0x7f800000,3
+np.float32,0x7f65278e,0x7f800000,3
+np.float32,0xfeb50f52,0xbf800000,3
+np.float32,0x7f051bd1,0x7f800000,3
+np.float32,0x7ea0558d,0x7f800000,3
+np.float32,0xbd0a96c0,0xbd08453f,3
+np.float64,0xee82da5ddd05c,0xee82da5ddd05c,1
+np.float64,0x800c3a22d7f87446,0x800c3a22d7f87446,1
+np.float64,0xbfd34b20eaa69642,0xbfd0a825e7688d3e,1
+np.float64,0x3fd6a0f2492d41e5,0x3fdb253b906057b3,1
+np.float64,0xbfda13d8783427b0,0xbfd56b1d76684332,1
+np.float64,0xbfe50b5a99ea16b5,0xbfded7dd82c6f746,1
+np.float64,0x3f82468fc0248d20,0x3f825b7fa9378ee9,1
+np.float64,0x7ff0000000000000,0x7ff0000000000000,1
+np.float64,0x856e50290adca,0x856e50290adca,1
+np.float64,0x7fde55a5fa3cab4b,0x7ff0000000000000,1
+np.float64,0x7fcf2c8dd93e591b,0x7ff0000000000000,1
+np.float64,0x8001b3a0e3236743,0x8001b3a0e3236743,1
+np.float64,0x8000fdb14821fb63,0x8000fdb14821fb63,1
+np.float64,0xbfe3645e08e6c8bc,0xbfdd161362a5e9ef,1
+np.float64,0x7feb34d28b3669a4,0x7ff0000000000000,1
+np.float64,0x80099dd810933bb1,0x80099dd810933bb1,1
+np.float64,0xbfedbcc1097b7982,0xbfe35d86414d53dc,1
+np.float64,0x7fdc406fbdb880de,0x7ff0000000000000,1
+np.float64,0x800c4bf85ab897f1,0x800c4bf85ab897f1,1
+np.float64,0x3fd8f7b0e0b1ef60,0x3fde89b497ae20d8,1
+np.float64,0xffe4fced5c69f9da,0xbff0000000000000,1
+np.float64,0xbfe54d421fea9a84,0xbfdf1be0cbfbfcba,1
+np.float64,0x800af72f3535ee5f,0x800af72f3535ee5f,1
+np.float64,0x3fe24e6570e49ccb,0x3fe8b3a86d970411,1
+np.float64,0xbfdd7b22d0baf646,0xbfd79fac2e4f7558,1
+np.float64,0xbfe6a7654c6d4eca,0xbfe03c1f13f3b409,1
+np.float64,0x3fe2c3eb662587d7,0x3fe98566e625d4f5,1
+np.float64,0x3b1ef71e763e0,0x3b1ef71e763e0,1
+np.float64,0xffed03c6baba078d,0xbff0000000000000,1
+np.float64,0x3febac19d0b75834,0x3ff5fdacc9d51bcd,1
+np.float64,0x800635d6794c6bae,0x800635d6794c6bae,1
+np.float64,0xbfe8cafc827195f9,0xbfe1411438608ae1,1
+np.float64,0x7feeb616a83d6c2c,0x7ff0000000000000,1
+np.float64,0x3fd52d62a2aa5ac5,0x3fd91a07a7f18f44,1
+np.float64,0x80036996b8a6d32e,0x80036996b8a6d32e,1
+np.float64,0x2b1945965632a,0x2b1945965632a,1
+np.float64,0xbfecb5e8c9796bd2,0xbfe2f40fca276aa2,1
+np.float64,0x3fe8669ed4f0cd3e,0x3ff24c89fc9cdbff,1
+np.float64,0x71e9f65ee3d3f,0x71e9f65ee3d3f,1
+np.float64,0xbfd5ab262bab564c,0xbfd261ae108ef79e,1
+np.float64,0xbfe7091342ee1226,0xbfe06bf5622d75f6,1
+np.float64,0x49e888d093d12,0x49e888d093d12,1
+np.float64,0x2272f3dc44e5f,0x2272f3dc44e5f,1
+np.float64,0x7fe98736e0b30e6d,0x7ff0000000000000,1
+np.float64,0x30fa9cde61f54,0x30fa9cde61f54,1
+np.float64,0x7fdc163fc0382c7f,0x7ff0000000000000,1
+np.float64,0xffb40d04ee281a08,0xbff0000000000000,1
+np.float64,0xffe624617f2c48c2,0xbff0000000000000,1
+np.float64,0x3febb582bd376b05,0x3ff608da584d1716,1
+np.float64,0xfc30a5a5f8615,0xfc30a5a5f8615,1
+np.float64,0x3fef202efd7e405e,0x3ffa52009319b069,1
+np.float64,0x8004d0259829a04c,0x8004d0259829a04c,1
+np.float64,0x800622dc71ec45ba,0x800622dc71ec45ba,1
+np.float64,0xffefffffffffffff,0xbff0000000000000,1
+np.float64,0x800e89113c9d1223,0x800e89113c9d1223,1
+np.float64,0x7fba7fde3034ffbb,0x7ff0000000000000,1
+np.float64,0xbfeea31e807d463d,0xbfe3b7369b725915,1
+np.float64,0x3feb7c9589f6f92c,0x3ff5c56cf71b0dff,1
+np.float64,0x3fd52d3b59aa5a77,0x3fd919d0f683fd07,1
+np.float64,0x800de90a43fbd215,0x800de90a43fbd215,1
+np.float64,0x3fe7eb35a9efd66b,0x3ff1c940dbfc6ef9,1
+np.float64,0xbda0adcb7b416,0xbda0adcb7b416,1
+np.float64,0x7fc5753e3a2aea7b,0x7ff0000000000000,1
+np.float64,0xffdd101d103a203a,0xbff0000000000000,1
+np.float64,0x7fcb54f56836a9ea,0x7ff0000000000000,1
+np.float64,0xbfd61c8d6eac391a,0xbfd2b23bc0a2cef4,1
+np.float64,0x3feef55de37deabc,0x3ffa198639a0161d,1
+np.float64,0x7fe4ffbfaea9ff7e,0x7ff0000000000000,1
+np.float64,0x9d1071873a20e,0x9d1071873a20e,1
+np.float64,0x3fef1ecb863e3d97,0x3ffa502a81e09cfc,1
+np.float64,0xad2da12b5a5b4,0xad2da12b5a5b4,1
+np.float64,0xffe614b74c6c296e,0xbff0000000000000,1
+np.float64,0xffe60d3f286c1a7e,0xbff0000000000000,1
+np.float64,0x7fda7d91f4b4fb23,0x7ff0000000000000,1
+np.float64,0x800023f266a047e6,0x800023f266a047e6,1
+np.float64,0x7fdf5f9ad23ebf35,0x7ff0000000000000,1
+np.float64,0x3fa7459f002e8b3e,0x3fa7cf178dcf0af6,1
+np.float64,0x3fe9938d61f3271b,0x3ff39516a13caec3,1
+np.float64,0xbfd59314c3ab262a,0xbfd250830f73efd2,1
+np.float64,0xbfc7e193f72fc328,0xbfc5c924339dd7a8,1
+np.float64,0x7fec1965f17832cb,0x7ff0000000000000,1
+np.float64,0xbfd932908eb26522,0xbfd4d4312d272580,1
+np.float64,0xbfdf2d08e2be5a12,0xbfd8add1413b0b1b,1
+np.float64,0x7fdcf7cc74b9ef98,0x7ff0000000000000,1
+np.float64,0x7fc79300912f2600,0x7ff0000000000000,1
+np.float64,0xffd4bd8f23297b1e,0xbff0000000000000,1
+np.float64,0x41869ce0830e,0x41869ce0830e,1
+np.float64,0x3fe5dcec91ebb9da,0x3fef5e213598cbd4,1
+np.float64,0x800815d9c2902bb4,0x800815d9c2902bb4,1
+np.float64,0x800ba1a4b877434a,0x800ba1a4b877434a,1
+np.float64,0x80069d7bdc4d3af8,0x80069d7bdc4d3af8,1
+np.float64,0xcf00d4339e01b,0xcf00d4339e01b,1
+np.float64,0x80072b71bd4e56e4,0x80072b71bd4e56e4,1
+np.float64,0x80059ca6fbab394f,0x80059ca6fbab394f,1
+np.float64,0x3fe522fc092a45f8,0x3fedf212682bf894,1
+np.float64,0x7fe17f384ea2fe70,0x7ff0000000000000,1
+np.float64,0x0,0x0,1
+np.float64,0x3f72bb4c20257698,0x3f72c64766b52069,1
+np.float64,0x7fbc97c940392f92,0x7ff0000000000000,1
+np.float64,0xffc5904ebd2b209c,0xbff0000000000000,1
+np.float64,0xbfe34fb55b669f6a,0xbfdcff81dd30a49d,1
+np.float64,0x8007ccda006f99b5,0x8007ccda006f99b5,1
+np.float64,0x3fee50e4c8fca1ca,0x3ff9434c7750ad0f,1
+np.float64,0x7fee7b07c67cf60f,0x7ff0000000000000,1
+np.float64,0x3fdcce4a5a399c95,0x3fe230c83f28218a,1
+np.float64,0x7fee5187b37ca30e,0x7ff0000000000000,1
+np.float64,0x3fc48f6a97291ed8,0x3fc64db6200a9833,1
+np.float64,0xc7fec3498ffd9,0xc7fec3498ffd9,1
+np.float64,0x800769c59d2ed38c,0x800769c59d2ed38c,1
+np.float64,0xffe69ede782d3dbc,0xbff0000000000000,1
+np.float64,0x3fecd9770979b2ee,0x3ff76a1f2f0f08f2,1
+np.float64,0x5aa358a8b546c,0x5aa358a8b546c,1
+np.float64,0xbfe795a0506f2b40,0xbfe0afcc52c0166b,1
+np.float64,0xffd4ada1e8a95b44,0xbff0000000000000,1
+np.float64,0xffcac1dc213583b8,0xbff0000000000000,1
+np.float64,0xffe393c15fa72782,0xbff0000000000000,1
+np.float64,0xbfcd6a3c113ad478,0xbfca47a2157b9cdd,1
+np.float64,0xffedde20647bbc40,0xbff0000000000000,1
+np.float64,0x3fd0d011b1a1a024,0x3fd33a57945559f4,1
+np.float64,0x3fef27e29f7e4fc6,0x3ffa5c314e0e3d69,1
+np.float64,0xffe96ff71f72dfee,0xbff0000000000000,1
+np.float64,0xffe762414f2ec482,0xbff0000000000000,1
+np.float64,0x3fc2dcfd3d25b9fa,0x3fc452f41682a12e,1
+np.float64,0xbfbdb125b63b6248,0xbfbc08e6553296d4,1
+np.float64,0x7b915740f724,0x7b915740f724,1
+np.float64,0x60b502b2c16a1,0x60b502b2c16a1,1
+np.float64,0xbfeb38b0be367162,0xbfe254f6782cfc47,1
+np.float64,0x800dc39a3edb8735,0x800dc39a3edb8735,1
+np.float64,0x3fea4fb433349f68,0x3ff468b97cf699f5,1
+np.float64,0xbfd49967962932d0,0xbfd19ceb41ff4cd0,1
+np.float64,0xbfebf75cd377eeba,0xbfe2a576bdbccccc,1
+np.float64,0xbfb653d65c2ca7b0,0xbfb561ab8fcb3f26,1
+np.float64,0xffe3f34b8727e696,0xbff0000000000000,1
+np.float64,0x3fdd798064baf301,0x3fe2b7c130a6fc63,1
+np.float64,0x3febe027e6b7c050,0x3ff63bac1b22e12d,1
+np.float64,0x7fcaa371af3546e2,0x7ff0000000000000,1
+np.float64,0xbfe6ee980a2ddd30,0xbfe05f0bc5dc80d2,1
+np.float64,0xc559c33f8ab39,0xc559c33f8ab39,1
+np.float64,0x84542c2b08a86,0x84542c2b08a86,1
+np.float64,0xbfe5645e046ac8bc,0xbfdf3398dc3cc1bd,1
+np.float64,0x3fee8c48ae7d1892,0x3ff9902899480526,1
+np.float64,0x3fb706471c2e0c8e,0x3fb817787aace8db,1
+np.float64,0x7fefe78f91ffcf1e,0x7ff0000000000000,1
+np.float64,0xbfcf6d560b3edaac,0xbfcbddc72a2130df,1
+np.float64,0x7fd282bfd925057f,0x7ff0000000000000,1
+np.float64,0x3fb973dbee32e7b8,0x3fbac2c87cbd0215,1
+np.float64,0x3fd1ce38ff239c72,0x3fd4876de5164420,1
+np.float64,0x8008ac2e3c31585d,0x8008ac2e3c31585d,1
+np.float64,0x3fa05e06dc20bc00,0x3fa0a1b7de904dce,1
+np.float64,0x7fd925f215324be3,0x7ff0000000000000,1
+np.float64,0x3f949d95d0293b2c,0x3f94d31197d51874,1
+np.float64,0xffdded9e67bbdb3c,0xbff0000000000000,1
+np.float64,0x3fed390dcfba721c,0x3ff7e08c7a709240,1
+np.float64,0x7fe6e62300adcc45,0x7ff0000000000000,1
+np.float64,0xbfd779bc312ef378,0xbfd3a6cb64bb0181,1
+np.float64,0x3fe43e9877287d31,0x3fec3e100ef935fd,1
+np.float64,0x210b68e44216e,0x210b68e44216e,1
+np.float64,0x3fcdffc1e73bff84,0x3fd0e729d02ec539,1
+np.float64,0xcea10c0f9d422,0xcea10c0f9d422,1
+np.float64,0x7feb97a82d772f4f,0x7ff0000000000000,1
+np.float64,0x9b4b4d953696a,0x9b4b4d953696a,1
+np.float64,0x3fd1bd8e95237b1d,0x3fd4716dd34cf828,1
+np.float64,0x800fc273841f84e7,0x800fc273841f84e7,1
+np.float64,0xbfd2aef167255de2,0xbfd0340f30d82f18,1
+np.float64,0x800d021a551a0435,0x800d021a551a0435,1
+np.float64,0xffebf934a8b7f268,0xbff0000000000000,1
+np.float64,0x3fd819849fb03308,0x3fdd43bca0aac749,1
+np.float64,0x7ff8000000000000,0x7ff8000000000000,1
+np.float64,0x27c34b064f86a,0x27c34b064f86a,1
+np.float64,0x7fef4f5a373e9eb3,0x7ff0000000000000,1
+np.float64,0x7fd92fccce325f99,0x7ff0000000000000,1
+np.float64,0x800520869d6a410e,0x800520869d6a410e,1
+np.float64,0x3fccbcaddf397958,0x3fd01bf6b0c4d97f,1
+np.float64,0x80039ebfc4273d80,0x80039ebfc4273d80,1
+np.float64,0xbfed1f0b3c7a3e16,0xbfe31ea6e4c69141,1
+np.float64,0x7fee1bb7c4bc376f,0x7ff0000000000000,1
+np.float64,0xbfa8bee1d8317dc0,0xbfa8283b7dbf95a9,1
+np.float64,0x3fe797db606f2fb6,0x3ff171b1c2bc8fe5,1
+np.float64,0xbfee2ecfdbbc5da0,0xbfe38a3f0a43d14e,1
+np.float64,0x3fe815c7f1302b90,0x3ff1f65165c45d71,1
+np.float64,0xbfbb265c94364cb8,0xbfb9c27ec61a9a1d,1
+np.float64,0x3fcf1cab5d3e3957,0x3fd19c07444642f9,1
+np.float64,0xbfe6ae753f6d5cea,0xbfe03f99666dbe17,1
+np.float64,0xbfd18a2a73a31454,0xbfceaee204aca016,1
+np.float64,0x3fb8a1dffc3143c0,0x3fb9db38341ab1a3,1
+np.float64,0x7fd2a0376025406e,0x7ff0000000000000,1
+np.float64,0x7fe718c0e3ae3181,0x7ff0000000000000,1
+np.float64,0x3fb264d42424c9a8,0x3fb3121f071d4db4,1
+np.float64,0xd27190a7a4e32,0xd27190a7a4e32,1
+np.float64,0xbfe467668c68cecd,0xbfde2c4616738d5e,1
+np.float64,0x800ab9a2b9357346,0x800ab9a2b9357346,1
+np.float64,0x7fcbd108d537a211,0x7ff0000000000000,1
+np.float64,0x3fb79bba6e2f3770,0x3fb8bb2c140d3445,1
+np.float64,0xffefa7165e3f4e2c,0xbff0000000000000,1
+np.float64,0x7fb40185a428030a,0x7ff0000000000000,1
+np.float64,0xbfe9e3d58e73c7ab,0xbfe1c04d51c83d69,1
+np.float64,0x7fef5b97b17eb72e,0x7ff0000000000000,1
+np.float64,0x800a2957683452af,0x800a2957683452af,1
+np.float64,0x800f54f1925ea9e3,0x800f54f1925ea9e3,1
+np.float64,0xeffa4e77dff4a,0xeffa4e77dff4a,1
+np.float64,0xffbe501aa03ca038,0xbff0000000000000,1
+np.float64,0x8006c651bced8ca4,0x8006c651bced8ca4,1
+np.float64,0x3fe159faff22b3f6,0x3fe708f78efbdbed,1
+np.float64,0x800e7d59a31cfab3,0x800e7d59a31cfab3,1
+np.float64,0x3fe6ac2f272d585e,0x3ff07ee5305385c3,1
+np.float64,0x7fd014c054202980,0x7ff0000000000000,1
+np.float64,0xbfe4800b11e90016,0xbfde4648c6f29ce5,1
+np.float64,0xbfe6738470ece709,0xbfe0227b5b42b713,1
+np.float64,0x3fed052add3a0a56,0x3ff7a01819e65c6e,1
+np.float64,0xffe03106f120620e,0xbff0000000000000,1
+np.float64,0x7fe11df4d4e23be9,0x7ff0000000000000,1
+np.float64,0xbfcea25d7b3d44bc,0xbfcb3e808e7ce852,1
+np.float64,0xd0807b03a1010,0xd0807b03a1010,1
+np.float64,0x8004eda4fec9db4b,0x8004eda4fec9db4b,1
+np.float64,0x3fceb5c98d3d6b90,0x3fd15a894b15dd9f,1
+np.float64,0xbfee27228afc4e45,0xbfe38741702f3c0b,1
+np.float64,0xbfe606278c6c0c4f,0xbfdfd7cb6093652d,1
+np.float64,0xbfd66f59bc2cdeb4,0xbfd2ecb2297f6afc,1
+np.float64,0x4aee390095dc8,0x4aee390095dc8,1
+np.float64,0xbfe391355d67226a,0xbfdd46ddc0997014,1
+np.float64,0xffd27765e7a4eecc,0xbff0000000000000,1
+np.float64,0xbfe795e20a2f2bc4,0xbfe0afebc66c4dbd,1
+np.float64,0x7fc9a62e81334c5c,0x7ff0000000000000,1
+np.float64,0xffe4e57e52a9cafc,0xbff0000000000000,1
+np.float64,0x7fac326c8c3864d8,0x7ff0000000000000,1
+np.float64,0x3fe8675f6370cebf,0x3ff24d5863029c15,1
+np.float64,0x7fcf4745e73e8e8b,0x7ff0000000000000,1
+np.float64,0x7fcc9aec9f3935d8,0x7ff0000000000000,1
+np.float64,0x3fec2e8fcab85d20,0x3ff699ccd0b2fed6,1
+np.float64,0x3fd110a968222153,0x3fd38e81a88c2d13,1
+np.float64,0xffb3a68532274d08,0xbff0000000000000,1
+np.float64,0xf0e562bbe1cad,0xf0e562bbe1cad,1
+np.float64,0xbfe815b9e5f02b74,0xbfe0ec9f5023aebc,1
+np.float64,0xbf5151d88022a400,0xbf514f80c465feea,1
+np.float64,0x2547e3144a8fd,0x2547e3144a8fd,1
+np.float64,0x3fedcc0c28fb9818,0x3ff899612fbeb4c5,1
+np.float64,0x3fdc3d1c0f387a38,0x3fe1bf6e2d39bd75,1
+np.float64,0x7fe544dbe62a89b7,0x7ff0000000000000,1
+np.float64,0x8001500e48e2a01d,0x8001500e48e2a01d,1
+np.float64,0xbfed3b2b09fa7656,0xbfe329f3e7bada64,1
+np.float64,0xbfe76a943aeed528,0xbfe09b24e3aa3f79,1
+np.float64,0x3fe944330e328866,0x3ff33d472dee70c5,1
+np.float64,0x8004bbbd6cc9777c,0x8004bbbd6cc9777c,1
+np.float64,0xbfe28133fb650268,0xbfdc1ac230ac4ef5,1
+np.float64,0xc1370af7826e2,0xc1370af7826e2,1
+np.float64,0x7fcfa47f5f3f48fe,0x7ff0000000000000,1
+np.float64,0xbfa3002a04260050,0xbfa2a703a538b54e,1
+np.float64,0xffef44f3903e89e6,0xbff0000000000000,1
+np.float64,0xc32cce298659a,0xc32cce298659a,1
+np.float64,0x7b477cc2f68f0,0x7b477cc2f68f0,1
+np.float64,0x40a7f4ec814ff,0x40a7f4ec814ff,1
+np.float64,0xffee38edf67c71db,0xbff0000000000000,1
+np.float64,0x3fe23f6f1ce47ede,0x3fe8992b8bb03499,1
+np.float64,0x7fc8edfe7f31dbfc,0x7ff0000000000000,1
+np.float64,0x800bb8e6fb3771ce,0x800bb8e6fb3771ce,1
+np.float64,0xbfe11d364ee23a6c,0xbfda82a0c2ef9e46,1
+np.float64,0xbfeb993cb4b7327a,0xbfe27df565da85dc,1
+np.float64,0x10000000000000,0x10000000000000,1
+np.float64,0x3fc1f997d723f330,0x3fc34c5cff060af1,1
+np.float64,0x6e326fa0dc64f,0x6e326fa0dc64f,1
+np.float64,0x800fa30c2c5f4618,0x800fa30c2c5f4618,1
+np.float64,0x7fed16ad603a2d5a,0x7ff0000000000000,1
+np.float64,0x9411cf172823a,0x9411cf172823a,1
+np.float64,0xffece51d4cb9ca3a,0xbff0000000000000,1
+np.float64,0x3fdda3d1453b47a3,0x3fe2d954f7849890,1
+np.float64,0xffd58330172b0660,0xbff0000000000000,1
+np.float64,0xbfc6962ae52d2c54,0xbfc4b4bdf0069f17,1
+np.float64,0xbfb4010a8e280218,0xbfb33e1236f7efa0,1
+np.float64,0x7fd0444909208891,0x7ff0000000000000,1
+np.float64,0xbfe027a24de04f44,0xbfd95e9064101e7c,1
+np.float64,0xa6f3f3214de9,0xa6f3f3214de9,1
+np.float64,0xbfe112eb0fe225d6,0xbfda768f7cbdf346,1
+np.float64,0xbfe99e90d4b33d22,0xbfe1a153e45a382a,1
+np.float64,0xffecb34f8e79669e,0xbff0000000000000,1
+np.float64,0xbfdf32c9653e6592,0xbfd8b159caf5633d,1
+np.float64,0x3fe9519829b2a330,0x3ff34c0a8152e20f,1
+np.float64,0xffd08ec8a7a11d92,0xbff0000000000000,1
+np.float64,0xffd19b71b6a336e4,0xbff0000000000000,1
+np.float64,0x7feda6b9377b4d71,0x7ff0000000000000,1
+np.float64,0x800fda2956bfb453,0x800fda2956bfb453,1
+np.float64,0x3fe54f601bea9ec0,0x3fee483cb03cbde4,1
+np.float64,0xbfe2a8ad5ee5515a,0xbfdc46ee7a10bf0d,1
+np.float64,0xbfd336c8bd266d92,0xbfd09916d432274a,1
+np.float64,0xfff0000000000000,0xbff0000000000000,1
+np.float64,0x3fd9a811a9b35024,0x3fdf8fa68cc048e3,1
+np.float64,0x3fe078c68520f18d,0x3fe58aecc1f9649b,1
+np.float64,0xbfc6d5aa3a2dab54,0xbfc4e9ea84f3d73c,1
+np.float64,0xf9682007f2d04,0xf9682007f2d04,1
+np.float64,0x3fee54523dbca8a4,0x3ff947b826de81f4,1
+np.float64,0x80461e5d008c4,0x80461e5d008c4,1
+np.float64,0x3fdd6d12d5bada26,0x3fe2ade8dee2fa02,1
+np.float64,0x3fcd5f0dfd3abe18,0x3fd081d6cd25731d,1
+np.float64,0x7fa36475c826c8eb,0x7ff0000000000000,1
+np.float64,0xbfdf3ce052be79c0,0xbfd8b78baccfb908,1
+np.float64,0x7fcd890dd13b121b,0x7ff0000000000000,1
+np.float64,0x8000000000000001,0x8000000000000001,1
+np.float64,0x800ec0f4281d81e8,0x800ec0f4281d81e8,1
+np.float64,0xbfba960116352c00,0xbfb94085424496d9,1
+np.float64,0x3fdddedc9bbbbdb8,0x3fe30853fe4ef5ce,1
+np.float64,0x238092a847013,0x238092a847013,1
+np.float64,0xbfe38d4803271a90,0xbfdd429a955c46af,1
+np.float64,0xbfd4c9067329920c,0xbfd1bf6255ed91a4,1
+np.float64,0xbfbee213923dc428,0xbfbd17ce1bda6088,1
+np.float64,0xffd5a2d337ab45a6,0xbff0000000000000,1
+np.float64,0x7fe21bfcf82437f9,0x7ff0000000000000,1
+np.float64,0x3fe2a2714da544e3,0x3fe949594a74ea25,1
+np.float64,0x800e05cf8ebc0b9f,0x800e05cf8ebc0b9f,1
+np.float64,0x559a1526ab343,0x559a1526ab343,1
+np.float64,0xffe6a1b7906d436e,0xbff0000000000000,1
+np.float64,0xffef27d6253e4fab,0xbff0000000000000,1
+np.float64,0xbfe0f90ab0a1f216,0xbfda5828a1edde48,1
+np.float64,0x9675d2ab2cebb,0x9675d2ab2cebb,1
+np.float64,0xffee0f7eecfc1efd,0xbff0000000000000,1
+np.float64,0x2ec005625d801,0x2ec005625d801,1
+np.float64,0x7fde35ff14bc6bfd,0x7ff0000000000000,1
+np.float64,0xffe03f36d9e07e6d,0xbff0000000000000,1
+np.float64,0x7fe09ff7c4213fef,0x7ff0000000000000,1
+np.float64,0xffeac29dd1b5853b,0xbff0000000000000,1
+np.float64,0x3fb63120aa2c6241,0x3fb72ea3de98a853,1
+np.float64,0xffd079eb84a0f3d8,0xbff0000000000000,1
+np.float64,0xbfd3c2cc75a78598,0xbfd1005996880b3f,1
+np.float64,0x7fb80507ee300a0f,0x7ff0000000000000,1
+np.float64,0xffe8006105f000c1,0xbff0000000000000,1
+np.float64,0x8009138b0ab22716,0x8009138b0ab22716,1
+np.float64,0xbfd6dfb40b2dbf68,0xbfd33b8e4008e3b0,1
+np.float64,0xbfe7c2cf9bef859f,0xbfe0c55c807460df,1
+np.float64,0xbfe75fe4da6ebfca,0xbfe09600256d3b81,1
+np.float64,0xffd662fc73acc5f8,0xbff0000000000000,1
+np.float64,0x20b99dbc41735,0x20b99dbc41735,1
+np.float64,0x3fe10b38ade21671,0x3fe68229a9bbeefc,1
+np.float64,0x3743b99c6e878,0x3743b99c6e878,1
+np.float64,0xff9eb5ed903d6be0,0xbff0000000000000,1
+np.float64,0x3ff0000000000000,0x3ffb7e151628aed3,1
+np.float64,0xffb9e0569e33c0b0,0xbff0000000000000,1
+np.float64,0x7fd39c804fa73900,0x7ff0000000000000,1
+np.float64,0x3fe881ef67f103df,0x3ff269dd704b7129,1
+np.float64,0x1b6eb40236dd7,0x1b6eb40236dd7,1
+np.float64,0xbfe734ea432e69d4,0xbfe0813e6355d02f,1
+np.float64,0xffcf48f3743e91e8,0xbff0000000000000,1
+np.float64,0xffed10bcf6fa2179,0xbff0000000000000,1
+np.float64,0x3fef07723b7e0ee4,0x3ffa3156123f3c15,1
+np.float64,0xffe45c704aa8b8e0,0xbff0000000000000,1
+np.float64,0xb7b818d96f703,0xb7b818d96f703,1
+np.float64,0x42fcc04085f99,0x42fcc04085f99,1
+np.float64,0xbfda7ced01b4f9da,0xbfd5b0ce1e5524ae,1
+np.float64,0xbfe1e5963d63cb2c,0xbfdb6a87b6c09185,1
+np.float64,0x7fdfa18003bf42ff,0x7ff0000000000000,1
+np.float64,0xbfe3790a43e6f214,0xbfdd2c9a38b4f089,1
+np.float64,0xffe0ff5b9ae1feb6,0xbff0000000000000,1
+np.float64,0x80085a7d3110b4fb,0x80085a7d3110b4fb,1
+np.float64,0xffd6bfa6622d7f4c,0xbff0000000000000,1
+np.float64,0xbfef5ddc7cfebbb9,0xbfe3fe170521593e,1
+np.float64,0x3fc21773fa242ee8,0x3fc36ebda1f91a72,1
+np.float64,0x7fc04d98da209b31,0x7ff0000000000000,1
+np.float64,0xbfeba3b535b7476a,0xbfe282602e3c322e,1
+np.float64,0xffd41fb5c1a83f6c,0xbff0000000000000,1
+np.float64,0xf87d206df0fa4,0xf87d206df0fa4,1
+np.float64,0x800060946fc0c12a,0x800060946fc0c12a,1
+np.float64,0x3fe69d5f166d3abe,0x3ff06fdddcf4ca93,1
+np.float64,0x7fe9b5793b336af1,0x7ff0000000000000,1
+np.float64,0x7fe0dd4143e1ba82,0x7ff0000000000000,1
+np.float64,0xbfa8eaea3c31d5d0,0xbfa8522e397da3bd,1
+np.float64,0x119f0078233e1,0x119f0078233e1,1
+np.float64,0xbfd78a207aaf1440,0xbfd3b225bbf2ab4f,1
+np.float64,0xc66a6d4d8cd4e,0xc66a6d4d8cd4e,1
+np.float64,0xe7fc4b57cff8a,0xe7fc4b57cff8a,1
+np.float64,0x800883e8091107d0,0x800883e8091107d0,1
+np.float64,0x3fa6520c842ca419,0x3fa6d06e1041743a,1
+np.float64,0x3fa563182c2ac630,0x3fa5d70e27a84c97,1
+np.float64,0xe6a30b61cd462,0xe6a30b61cd462,1
+np.float64,0x3fee85dac37d0bb6,0x3ff987cfa41a9778,1
+np.float64,0x3fe8f621db71ec44,0x3ff2e7b768a2e9d0,1
+np.float64,0x800f231d861e463b,0x800f231d861e463b,1
+np.float64,0xbfe22eb07c645d61,0xbfdbbdbb853ab4c6,1
+np.float64,0x7fd2dda2dea5bb45,0x7ff0000000000000,1
+np.float64,0xbfd09b79a0a136f4,0xbfcd4147606ffd27,1
+np.float64,0xca039cc394074,0xca039cc394074,1
+np.float64,0x8000000000000000,0x8000000000000000,1
+np.float64,0xcb34575d9668b,0xcb34575d9668b,1
+np.float64,0x3fea62c1f3f4c584,0x3ff47e6dc67ec89f,1
+np.float64,0x7fe544c8606a8990,0x7ff0000000000000,1
+np.float64,0xffe0a980c4615301,0xbff0000000000000,1
+np.float64,0x3fdd67d5f8bacfac,0x3fe2a9c3421830f1,1
+np.float64,0xffe41d3dda283a7b,0xbff0000000000000,1
+np.float64,0xffeed59e5ffdab3c,0xbff0000000000000,1
+np.float64,0xffeeae8326fd5d05,0xbff0000000000000,1
+np.float64,0x800d70b4fa7ae16a,0x800d70b4fa7ae16a,1
+np.float64,0xffec932e6839265c,0xbff0000000000000,1
+np.float64,0xee30b185dc616,0xee30b185dc616,1
+np.float64,0x7fc3cf4397279e86,0x7ff0000000000000,1
+np.float64,0xbfeab34f1875669e,0xbfe21b868229de7d,1
+np.float64,0xf45f5f7de8bec,0xf45f5f7de8bec,1
+np.float64,0x3fad2c4b203a5896,0x3fae0528b568f3cf,1
+np.float64,0xbfe2479543e48f2a,0xbfdbd9e57cf64028,1
+np.float64,0x3fd41a1473283429,0x3fd79df2bc60debb,1
+np.float64,0x3febb5155ef76a2a,0x3ff608585afd698b,1
+np.float64,0xffe21f5303e43ea6,0xbff0000000000000,1
+np.float64,0x7fe9ef390833de71,0x7ff0000000000000,1
+np.float64,0xffe8ee873d71dd0e,0xbff0000000000000,1
+np.float64,0x7fd7cbc55e2f978a,0x7ff0000000000000,1
+np.float64,0x80081f9080d03f21,0x80081f9080d03f21,1
+np.float64,0x7fecbafc8b3975f8,0x7ff0000000000000,1
+np.float64,0x800b6c4b0b16d896,0x800b6c4b0b16d896,1
+np.float64,0xbfaa0fc2d4341f80,0xbfa968cdf32b98ad,1
+np.float64,0x3fec79fe4078f3fc,0x3ff6f5361a4a5d93,1
+np.float64,0xbfb14b79de2296f0,0xbfb0b93b75ecec11,1
+np.float64,0x800009d084c013a2,0x800009d084c013a2,1
+np.float64,0x4a4cdfe29499d,0x4a4cdfe29499d,1
+np.float64,0xbfe721c2d56e4386,0xbfe077f541987d76,1
+np.float64,0x3e5f539e7cbeb,0x3e5f539e7cbeb,1
+np.float64,0x3fd23f044c247e09,0x3fd51ceafcdd64aa,1
+np.float64,0x3fc70785b02e0f0b,0x3fc93b2a37eb342a,1
+np.float64,0xbfe7ab4ec7af569e,0xbfe0ba28eecbf6b0,1
+np.float64,0x800c1d4134583a83,0x800c1d4134583a83,1
+np.float64,0xffd9a73070334e60,0xbff0000000000000,1
+np.float64,0x68a4bf24d1499,0x68a4bf24d1499,1
+np.float64,0x7feba9d9507753b2,0x7ff0000000000000,1
+np.float64,0xbfe9d747db73ae90,0xbfe1bab53d932010,1
+np.float64,0x800a9a4aed953496,0x800a9a4aed953496,1
+np.float64,0xffcb89b0ad371360,0xbff0000000000000,1
+np.float64,0xbfc62388b82c4710,0xbfc4547be442a38c,1
+np.float64,0x800a006d187400db,0x800a006d187400db,1
+np.float64,0x3fcef2fbd33de5f8,0x3fd18177b2150148,1
+np.float64,0x8000b74e3da16e9d,0x8000b74e3da16e9d,1
+np.float64,0x25be536e4b7cb,0x25be536e4b7cb,1
+np.float64,0x3fa86e189430dc31,0x3fa905b4684c9f01,1
+np.float64,0xa7584b114eb0a,0xa7584b114eb0a,1
+np.float64,0x800331133c866227,0x800331133c866227,1
+np.float64,0x3fb52b48142a5690,0x3fb611a6f6e7c664,1
+np.float64,0x3fe825797cf04af2,0x3ff206fd60e98116,1
+np.float64,0x3fd0bec4e5217d8a,0x3fd323db3ffd59b2,1
+np.float64,0x907b43a120f7,0x907b43a120f7,1
+np.float64,0x3fed31eb1d3a63d6,0x3ff7d7a91c6930a4,1
+np.float64,0x7f97a13d782f427a,0x7ff0000000000000,1
+np.float64,0xffc7121a702e2434,0xbff0000000000000,1
+np.float64,0xbfe8bb4cbbf1769a,0xbfe139d7f46f1fb1,1
+np.float64,0xbfe3593cc5a6b27a,0xbfdd09ec91d6cd48,1
+np.float64,0x7fcff218ff9ff,0x7fcff218ff9ff,1
+np.float64,0x3fe73651d4ae6ca4,0x3ff10c5c1d21d127,1
+np.float64,0x80054e396eaa9c74,0x80054e396eaa9c74,1
+np.float64,0x3fe527d5f9aa4fac,0x3fedfb7743db9b53,1
+np.float64,0x7fec6f28c5f8de51,0x7ff0000000000000,1
+np.float64,0x3fcd2bbff53a5780,0x3fd061987416b49b,1
+np.float64,0xffd1f0046423e008,0xbff0000000000000,1
+np.float64,0x80034d97fac69b31,0x80034d97fac69b31,1
+np.float64,0x3faa803f14350080,0x3fab32e3f8073be4,1
+np.float64,0x3fcf8da0163f1b40,0x3fd1e42ba2354c8e,1
+np.float64,0x3fd573c2632ae785,0x3fd97c37609d18d7,1
+np.float64,0x7f922960482452c0,0x7ff0000000000000,1
+np.float64,0x800ebd0c5d3d7a19,0x800ebd0c5d3d7a19,1
+np.float64,0xbfee63b7807cc76f,0xbfe39ec7981035db,1
+np.float64,0xffdc023f8e380480,0xbff0000000000000,1
+np.float64,0x3fe3ffa02c67ff40,0x3febc7f8b900ceba,1
+np.float64,0x36c508b86d8a2,0x36c508b86d8a2,1
+np.float64,0x3fc9fbb0f133f760,0x3fcccee9f6ba801c,1
+np.float64,0x3fd75c1d5faeb83b,0x3fdc3150f9eff99e,1
+np.float64,0x3fe9a8d907b351b2,0x3ff3accc78a31df8,1
+np.float64,0x3fdd8fdcafbb1fb8,0x3fe2c97c97757994,1
+np.float64,0x3fb10c34ca22186a,0x3fb1a0cc42c76b86,1
+np.float64,0xbff0000000000000,0xbfe43a54e4e98864,1
+np.float64,0xffd046aefda08d5e,0xbff0000000000000,1
+np.float64,0x80067989758cf314,0x80067989758cf314,1
+np.float64,0x3fee9d77763d3aef,0x3ff9a67ff0841ba5,1
+np.float64,0xffe4d3cbf8e9a798,0xbff0000000000000,1
+np.float64,0x800f9cab273f3956,0x800f9cab273f3956,1
+np.float64,0x800a5c84f9f4b90a,0x800a5c84f9f4b90a,1
+np.float64,0x4fd377009fa8,0x4fd377009fa8,1
+np.float64,0xbfe7ba26af6f744e,0xbfe0c13ce45d6f95,1
+np.float64,0x609c8a86c1392,0x609c8a86c1392,1
+np.float64,0x7fe4d0296ea9a052,0x7ff0000000000000,1
+np.float64,0x59847bccb3090,0x59847bccb3090,1
+np.float64,0xbfdf944157bf2882,0xbfd8ed092bacad43,1
+np.float64,0xbfe7560a632eac15,0xbfe091405ec34973,1
+np.float64,0x3fea0699f4340d34,0x3ff415eb72089230,1
+np.float64,0x800a5533f374aa68,0x800a5533f374aa68,1
+np.float64,0xbf8e8cdb103d19c0,0xbf8e52cffcb83774,1
+np.float64,0x3fe87d9e52f0fb3d,0x3ff2653952344b81,1
+np.float64,0x7fca3950f73472a1,0x7ff0000000000000,1
+np.float64,0xffd5d1068aaba20e,0xbff0000000000000,1
+np.float64,0x3fd1a5f169a34be4,0x3fd4524b6ef17f91,1
+np.float64,0x3fdc4b95a8b8972c,0x3fe1caafd8652bf7,1
+np.float64,0x3fe333f65a6667ed,0x3fea502fb1f8a578,1
+np.float64,0xbfc117aaac222f54,0xbfc00018a4b84b6e,1
+np.float64,0x7fecf2efdf39e5df,0x7ff0000000000000,1
+np.float64,0x4e99d83e9d33c,0x4e99d83e9d33c,1
+np.float64,0x800d18937bda3127,0x800d18937bda3127,1
+np.float64,0x3fd6c67778ad8cef,0x3fdb5aba70a3ea9e,1
+np.float64,0x3fdbb71770b76e2f,0x3fe157ae8da20bc5,1
+np.float64,0xbfe9faf6ebf3f5ee,0xbfe1ca963d83f17f,1
+np.float64,0x80038850ac0710a2,0x80038850ac0710a2,1
+np.float64,0x8006beb72f8d7d6f,0x8006beb72f8d7d6f,1
+np.float64,0x3feead67bffd5acf,0x3ff9bb43e8b15e2f,1
+np.float64,0xbfd1174b89222e98,0xbfcdff9972799907,1
+np.float64,0x7fee2c077cfc580e,0x7ff0000000000000,1
+np.float64,0xbfbdbd904e3b7b20,0xbfbc13f4916ed466,1
+np.float64,0xffee47b8fe3c8f71,0xbff0000000000000,1
+np.float64,0xffd161884222c310,0xbff0000000000000,1
+np.float64,0xbfd42f27c4a85e50,0xbfd14fa8d67ba5ee,1
+np.float64,0x7fefffffffffffff,0x7ff0000000000000,1
+np.float64,0x8008151791b02a30,0x8008151791b02a30,1
+np.float64,0xbfba79029234f208,0xbfb926616cf41755,1
+np.float64,0x8004c486be29890e,0x8004c486be29890e,1
+np.float64,0x7fe5325a252a64b3,0x7ff0000000000000,1
+np.float64,0x5a880f04b5103,0x5a880f04b5103,1
+np.float64,0xbfe6f4b7702de96f,0xbfe06209002dd72c,1
+np.float64,0xbfdf8b3739bf166e,0xbfd8e783efe3c30f,1
+np.float64,0xbfe32571c8e64ae4,0xbfdcd128b9aa49a1,1
+np.float64,0xbfe97c98c172f932,0xbfe1920ac0fc040f,1
+np.float64,0x3fd0b513a2a16a28,0x3fd31744e3a1bf0a,1
+np.float64,0xffe3ab70832756e0,0xbff0000000000000,1
+np.float64,0x80030f055ce61e0b,0x80030f055ce61e0b,1
+np.float64,0xffd5f3b21b2be764,0xbff0000000000000,1
+np.float64,0x800c1f2d6c783e5b,0x800c1f2d6c783e5b,1
+np.float64,0x80075f4f148ebe9f,0x80075f4f148ebe9f,1
+np.float64,0xbfa5a046f42b4090,0xbfa52cfbf8992256,1
+np.float64,0xffd6702583ace04c,0xbff0000000000000,1
+np.float64,0x800dc0a5cf1b814c,0x800dc0a5cf1b814c,1
+np.float64,0x14f2203a29e45,0x14f2203a29e45,1
+np.float64,0x800421a40ee84349,0x800421a40ee84349,1
+np.float64,0xbfea7c279df4f84f,0xbfe2037fff3ed877,1
+np.float64,0xbfe9b41ddcf3683c,0xbfe1aafe18a44bf8,1
+np.float64,0xffe7b037022f606e,0xbff0000000000000,1
+np.float64,0x800bafb648775f6d,0x800bafb648775f6d,1
+np.float64,0x800b81681d5702d1,0x800b81681d5702d1,1
+np.float64,0x3fe29f8dc8653f1c,0x3fe9442da1c32c6b,1
+np.float64,0xffef9a05dc7f340b,0xbff0000000000000,1
+np.float64,0x800c8c65a65918cb,0x800c8c65a65918cb,1
+np.float64,0xffe99df0d5f33be1,0xbff0000000000000,1
+np.float64,0x9afeb22535fd7,0x9afeb22535fd7,1
+np.float64,0x7fc620dd822c41ba,0x7ff0000000000000,1
+np.float64,0x29c2cdf25385b,0x29c2cdf25385b,1
+np.float64,0x2d92284e5b246,0x2d92284e5b246,1
+np.float64,0xffc794aa942f2954,0xbff0000000000000,1
+np.float64,0xbfe7ed907eafdb21,0xbfe0d9a7b1442497,1
+np.float64,0xbfd4e0d4aea9c1aa,0xbfd1d09366dba2a7,1
+np.float64,0xa70412c34e083,0xa70412c34e083,1
+np.float64,0x41dc0ee083b9,0x41dc0ee083b9,1
+np.float64,0x8000ece20da1d9c5,0x8000ece20da1d9c5,1
+np.float64,0x3fdf3dae103e7b5c,0x3fe42314bf826bc5,1
+np.float64,0x3fe972533c72e4a6,0x3ff3703761e70f04,1
+np.float64,0xffba1d2b82343a58,0xbff0000000000000,1
+np.float64,0xe0086c83c010e,0xe0086c83c010e,1
+np.float64,0x3fe6fb0dde6df61c,0x3ff0cf5fae01aa08,1
+np.float64,0x3fcfaf057e3f5e0b,0x3fd1f98c1fd20139,1
+np.float64,0xbfdca19d9239433c,0xbfd7158745192ca9,1
+np.float64,0xffb17f394e22fe70,0xbff0000000000000,1
+np.float64,0x7fe40f05c7681e0b,0x7ff0000000000000,1
+np.float64,0x800b3c575d5678af,0x800b3c575d5678af,1
+np.float64,0x7fa4ab20ac295640,0x7ff0000000000000,1
+np.float64,0xbfd2fff4f6a5ffea,0xbfd07069bb50e1a6,1
+np.float64,0xbfef81b9147f0372,0xbfe40b845a749787,1
+np.float64,0x7fd7400e54ae801c,0x7ff0000000000000,1
+np.float64,0x3fd4401a17a88034,0x3fd7d20fb76a4f3d,1
+np.float64,0xbfd3e907fd27d210,0xbfd11c64b7577fc5,1
+np.float64,0x7fe34bed9ae697da,0x7ff0000000000000,1
+np.float64,0x80039119c0472234,0x80039119c0472234,1
+np.float64,0xbfe2e36ac565c6d6,0xbfdc88454ee997b3,1
+np.float64,0xbfec57204478ae40,0xbfe2cd3183de1d2d,1
+np.float64,0x7fed7e2a12fafc53,0x7ff0000000000000,1
+np.float64,0x7fd5c5fa7d2b8bf4,0x7ff0000000000000,1
+np.float64,0x3fdcf368d6b9e6d0,0x3fe24decce1ebd35,1
+np.float64,0xbfe0ebfcf2e1d7fa,0xbfda48c9247ae8cf,1
+np.float64,0xbfe10dbea2e21b7e,0xbfda707d68b59674,1
+np.float64,0xbfdf201b6ebe4036,0xbfd8a5df27742fdf,1
+np.float64,0xffe16555be62caab,0xbff0000000000000,1
+np.float64,0xffc23a5db22474bc,0xbff0000000000000,1
+np.float64,0xffe1cbb3f8a39768,0xbff0000000000000,1
+np.float64,0x8007b823be0f7048,0x8007b823be0f7048,1
+np.float64,0xbfa5d1f3042ba3e0,0xbfa55c97cd77bf6e,1
+np.float64,0xbfe316a074662d41,0xbfdcc0da4e7334d0,1
+np.float64,0xbfdfab2bf2bf5658,0xbfd8fb046b88b51f,1
+np.float64,0xfacc9dabf5994,0xfacc9dabf5994,1
+np.float64,0xffe7e420a4efc841,0xbff0000000000000,1
+np.float64,0x800bb986cd57730e,0x800bb986cd57730e,1
+np.float64,0xbfe314fa38e629f4,0xbfdcbf09302c3bf5,1
+np.float64,0x7fc56b17772ad62e,0x7ff0000000000000,1
+np.float64,0x8006a87d54ad50fb,0x8006a87d54ad50fb,1
+np.float64,0xbfe6633e4a6cc67c,0xbfe01a67c3b3ff32,1
+np.float64,0x3fe0ff56eb21feae,0x3fe66df01defb0fb,1
+np.float64,0xffc369cfc126d3a0,0xbff0000000000000,1
+np.float64,0x7fe8775d9a30eeba,0x7ff0000000000000,1
+np.float64,0x3fb53db13e2a7b60,0x3fb625a7279cdac3,1
+np.float64,0xffee76e7e6fcedcf,0xbff0000000000000,1
+np.float64,0xb45595b568ab3,0xb45595b568ab3,1
+np.float64,0xffa09a1d50213440,0xbff0000000000000,1
+np.float64,0x7d11dc16fa23c,0x7d11dc16fa23c,1
+np.float64,0x7fd4cc2928299851,0x7ff0000000000000,1
+np.float64,0x6a30e0ead461d,0x6a30e0ead461d,1
+np.float64,0x7fd3ee735a27dce6,0x7ff0000000000000,1
+np.float64,0x8008d7084b31ae11,0x8008d7084b31ae11,1
+np.float64,0x3fe469353fe8d26a,0x3fec8e7e2df38590,1
+np.float64,0x3fcecef2743d9de5,0x3fd16a888b715dfd,1
+np.float64,0x460130d68c027,0x460130d68c027,1
+np.float64,0xbfd76510c62eca22,0xbfd398766b741d6e,1
+np.float64,0x800ec88c2a5d9118,0x800ec88c2a5d9118,1
+np.float64,0x3fac969c6c392d40,0x3fad66ca6a1e583c,1
+np.float64,0x3fe5c616bf6b8c2e,0x3fef30f931e8dde5,1
+np.float64,0xb4cb6cd56996e,0xb4cb6cd56996e,1
+np.float64,0xffc3eacf8827d5a0,0xbff0000000000000,1
+np.float64,0x3fe1ceaf60e39d5f,0x3fe7d31e0a627cf9,1
+np.float64,0xffea69b42ff4d368,0xbff0000000000000,1
+np.float64,0x800ff8aef99ff15e,0x800ff8aef99ff15e,1
+np.float64,0x6c3953f0d872b,0x6c3953f0d872b,1
+np.float64,0x8007ca5a0d0f94b5,0x8007ca5a0d0f94b5,1
+np.float64,0x800993ce3ad3279d,0x800993ce3ad3279d,1
+np.float64,0x3fe5a4d1516b49a2,0x3feeef67b22ac65b,1
+np.float64,0x8003d7512a67aea3,0x8003d7512a67aea3,1
+np.float64,0x33864430670c9,0x33864430670c9,1
+np.float64,0xbfdbf477e3b7e8f0,0xbfd6a63f1b36f424,1
+np.float64,0x3fb5da92582bb525,0x3fb6d04ef1a1d31a,1
+np.float64,0xe38aae71c7156,0xe38aae71c7156,1
+np.float64,0x3fcaf5590a35eab2,0x3fce01ed6eb6188e,1
+np.float64,0x800deba9b05bd754,0x800deba9b05bd754,1
+np.float64,0x7fee0cde287c19bb,0x7ff0000000000000,1
+np.float64,0xbfe0c2ae70e1855d,0xbfda17fa64d84fcf,1
+np.float64,0x518618faa30c4,0x518618faa30c4,1
+np.float64,0xbfeb4c49b8769894,0xbfe25d52cd7e529f,1
+np.float64,0xbfeb3aa21b367544,0xbfe255cae1df4cfd,1
+np.float64,0xffd23f1c5d247e38,0xbff0000000000000,1
+np.float64,0xff9a75132034ea20,0xbff0000000000000,1
+np.float64,0xbfef9d96307f3b2c,0xbfe415e8b6ce0e50,1
+np.float64,0x8004046f2f0808df,0x8004046f2f0808df,1
+np.float64,0x3fe15871aea2b0e3,0x3fe706532ea5c770,1
+np.float64,0x7fd86b1576b0d62a,0x7ff0000000000000,1
+np.float64,0xbfc240a5c724814c,0xbfc102c7971ca455,1
+np.float64,0xffd8ea670bb1d4ce,0xbff0000000000000,1
+np.float64,0xbfeb1ddd1ff63bba,0xbfe2497c4e27bb8e,1
+np.float64,0x3fcd47e0a33a8fc1,0x3fd0734444150d83,1
+np.float64,0xe00b6a65c016e,0xe00b6a65c016e,1
+np.float64,0xbfc7d582142fab04,0xbfc5bf1fbe755a4c,1
+np.float64,0x8cc91ca11993,0x8cc91ca11993,1
+np.float64,0x7fdbc530e3b78a61,0x7ff0000000000000,1
+np.float64,0x7fee437522bc86e9,0x7ff0000000000000,1
+np.float64,0xffe9e09ae2b3c135,0xbff0000000000000,1
+np.float64,0x8002841cada5083a,0x8002841cada5083a,1
+np.float64,0x3fd6b485f8ad690c,0x3fdb412135932699,1
+np.float64,0x80070e8d0b0e1d1b,0x80070e8d0b0e1d1b,1
+np.float64,0x7fed5df165babbe2,0x7ff0000000000000,1
+np.float64,0x7ff4000000000000,0x7ffc000000000000,1
+np.float64,0x7fe99d08cd333a11,0x7ff0000000000000,1
+np.float64,0xdfff4201bfff,0xdfff4201bfff,1
+np.float64,0x800ccf7aaf999ef6,0x800ccf7aaf999ef6,1
+np.float64,0x3fddb05aad3b60b5,0x3fe2e34bdd1dd9d5,1
+np.float64,0xbfe5e1c60e6bc38c,0xbfdfb3275cc1675f,1
+np.float64,0x8004fe674269fccf,0x8004fe674269fccf,1
+np.float64,0x7fe9280363325006,0x7ff0000000000000,1
+np.float64,0xf605b9f1ec0b7,0xf605b9f1ec0b7,1
+np.float64,0x800c7c214018f843,0x800c7c214018f843,1
+np.float64,0x7fd97eb6b9b2fd6c,0x7ff0000000000000,1
+np.float64,0x7fd03f8fb6207f1e,0x7ff0000000000000,1
+np.float64,0x7fc526b64d2a4d6c,0x7ff0000000000000,1
+np.float64,0xbfef1a7c42fe34f9,0xbfe3e4b4399e0fcf,1
+np.float64,0xffdde10a2fbbc214,0xbff0000000000000,1
+np.float64,0xbfdd274f72ba4e9e,0xbfd76aa73788863c,1
+np.float64,0xbfecf7f77af9efef,0xbfe30ee2ae03fed1,1
+np.float64,0xffde709322bce126,0xbff0000000000000,1
+np.float64,0x268b5dac4d16d,0x268b5dac4d16d,1
+np.float64,0x8005c099606b8134,0x8005c099606b8134,1
+np.float64,0xffcf54c1593ea984,0xbff0000000000000,1
+np.float64,0xbfee9b8ebabd371d,0xbfe3b44f2663139d,1
+np.float64,0x3faf0330643e0661,0x3faff88fab74b447,1
+np.float64,0x7fe1c6011be38c01,0x7ff0000000000000,1
+np.float64,0xbfe9d58053b3ab01,0xbfe1b9ea12242485,1
+np.float64,0xbfe15a80fee2b502,0xbfdaca2aa7d1231a,1
+np.float64,0x7fe0d766d8a1aecd,0x7ff0000000000000,1
+np.float64,0x800f65e6a21ecbcd,0x800f65e6a21ecbcd,1
+np.float64,0x7fc85e45a530bc8a,0x7ff0000000000000,1
+np.float64,0x3fcc240e5438481d,0x3fcf7954fc080ac3,1
+np.float64,0xffddd49da2bba93c,0xbff0000000000000,1
+np.float64,0x1376f36c26edf,0x1376f36c26edf,1
+np.float64,0x3feffb7af17ff6f6,0x3ffb77f0ead2f881,1
+np.float64,0x3fd9354ea9b26a9d,0x3fdee4e4c8db8239,1
+np.float64,0xffdf7beed4bef7de,0xbff0000000000000,1
+np.float64,0xbfdef256ecbde4ae,0xbfd889b0e213a019,1
+np.float64,0x800d78bd1e7af17a,0x800d78bd1e7af17a,1
+np.float64,0xb66d66276cdad,0xb66d66276cdad,1
+np.float64,0x7fd8f51138b1ea21,0x7ff0000000000000,1
+np.float64,0xffe8c9c302b19385,0xbff0000000000000,1
+np.float64,0x8000be4cf5417c9b,0x8000be4cf5417c9b,1
+np.float64,0xbfe2293a25645274,0xbfdbb78a8c547c68,1
+np.float64,0xce8392c19d08,0xce8392c19d08,1
+np.float64,0xbfe075736b60eae7,0xbfd9bc0f6e34a283,1
+np.float64,0xbfe8d6fe6a71adfd,0xbfe1469ba80b4915,1
+np.float64,0xffe0c7993fa18f32,0xbff0000000000000,1
+np.float64,0x3fce5210fd3ca422,0x3fd11b40a1270a95,1
+np.float64,0x6c0534a8d80a7,0x6c0534a8d80a7,1
+np.float64,0x23c1823647831,0x23c1823647831,1
+np.float64,0x3fc901253732024a,0x3fcb9d264accb07c,1
+np.float64,0x3fe42b8997685714,0x3fec1a39e207b6e4,1
+np.float64,0x3fec4fd00fb89fa0,0x3ff6c1fdd0c262c8,1
+np.float64,0x8007b333caaf6668,0x8007b333caaf6668,1
+np.float64,0x800f9275141f24ea,0x800f9275141f24ea,1
+np.float64,0xffbba361a23746c0,0xbff0000000000000,1
+np.float64,0xbfee4effa9fc9dff,0xbfe396c11d0cd524,1
+np.float64,0x3e47e84c7c8fe,0x3e47e84c7c8fe,1
+np.float64,0x3fe80eb7b1301d6f,0x3ff1eed318a00153,1
+np.float64,0x7fd3f4c5b4a7e98a,0x7ff0000000000000,1
+np.float64,0x158abab02b158,0x158abab02b158,1
+np.float64,0x1,0x1,1
+np.float64,0x1f1797883e2f4,0x1f1797883e2f4,1
+np.float64,0x3feec055d03d80ac,0x3ff9d3fb0394de33,1
+np.float64,0x8010000000000000,0x8010000000000000,1
+np.float64,0xbfd070860ea0e10c,0xbfccfeec2828efef,1
+np.float64,0x80015c8b3e82b917,0x80015c8b3e82b917,1
+np.float64,0xffef9956d9ff32ad,0xbff0000000000000,1
+np.float64,0x7fe7f087dd2fe10f,0x7ff0000000000000,1
+np.float64,0x8002e7718665cee4,0x8002e7718665cee4,1
+np.float64,0x3fdfb9adb2bf735c,0x3fe4887a86214c1e,1
+np.float64,0xffc7747dfb2ee8fc,0xbff0000000000000,1
+np.float64,0x3fec309bb5386137,0x3ff69c44e1738547,1
+np.float64,0xffdbe2bf9ab7c580,0xbff0000000000000,1
+np.float64,0xbfe6a274daed44ea,0xbfe039aff2be9d48,1
+np.float64,0x7fd5a4e4efab49c9,0x7ff0000000000000,1
+np.float64,0xffbe6aaeb03cd560,0xbff0000000000000,1
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/data/umath-validation-set-log.csv b/python/user_packages/Python313/site-packages/numpy/_core/tests/data/umath-validation-set-log.csv
new file mode 100644
index 0000000000000000000000000000000000000000..d4dafe86c4534e256860aab7dd2814e268c82321
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/tests/data/umath-validation-set-log.csv
@@ -0,0 +1,271 @@
+dtype,input,output,ulperrortol
+## +ve denormals ##
+np.float32,0x004b4716,0xc2afbc1b,4
+np.float32,0x007b2490,0xc2aec01e,4
+np.float32,0x007c99fa,0xc2aeba17,4
+np.float32,0x00734a0c,0xc2aee1dc,4
+np.float32,0x0070de24,0xc2aeecba,4
+np.float32,0x007fffff,0xc2aeac50,4
+np.float32,0x00000001,0xc2ce8ed0,4
+## -ve denormals ##
+np.float32,0x80495d65,0xffc00000,4
+np.float32,0x806894f6,0xffc00000,4
+np.float32,0x80555a76,0xffc00000,4
+np.float32,0x804e1fb8,0xffc00000,4
+np.float32,0x80687de9,0xffc00000,4
+np.float32,0x807fffff,0xffc00000,4
+np.float32,0x80000001,0xffc00000,4
+## +/-0.0f, +/-FLT_MIN +/-FLT_MAX ##
+np.float32,0x00000000,0xff800000,4
+np.float32,0x80000000,0xff800000,4
+np.float32,0x7f7fffff,0x42b17218,4
+np.float32,0x80800000,0xffc00000,4
+np.float32,0xff7fffff,0xffc00000,4
+## 1.00f + 0x00000001 ##
+np.float32,0x3f800000,0x00000000,4
+np.float32,0x3f800001,0x33ffffff,4
+np.float32,0x3f800002,0x347ffffe,4
+np.float32,0x3f7fffff,0xb3800000,4
+np.float32,0x3f7ffffe,0xb4000000,4
+np.float32,0x3f7ffffd,0xb4400001,4
+np.float32,0x402df853,0x3f7ffffe,4
+np.float32,0x402df854,0x3f7fffff,4
+np.float32,0x402df855,0x3f800000,4
+np.float32,0x402df856,0x3f800001,4
+np.float32,0x3ebc5ab0,0xbf800001,4
+np.float32,0x3ebc5ab1,0xbf800000,4
+np.float32,0x3ebc5ab2,0xbf800000,4
+np.float32,0x3ebc5ab3,0xbf7ffffe,4
+np.float32,0x423ef575,0x407768ab,4
+np.float32,0x427b8c61,0x408485dd,4
+np.float32,0x4211e9ee,0x406630b0,4
+np.float32,0x424d5c41,0x407c0fed,4
+np.float32,0x42be722a,0x4091cc91,4
+np.float32,0x42b73d30,0x4090908b,4
+np.float32,0x427e48e2,0x4084de7f,4
+np.float32,0x428f759b,0x4088bba3,4
+np.float32,0x41629069,0x4029a0cc,4
+np.float32,0x4272c99d,0x40836379,4
+np.float32,0x4d1b7458,0x4197463d,4
+np.float32,0x4f10c594,0x41ace2b2,4
+np.float32,0x4ea397c2,0x41a85171,4
+np.float32,0x4fefa9d1,0x41b6769c,4
+np.float32,0x4ebac6ab,0x41a960dc,4
+np.float32,0x4f6efb42,0x41b0e535,4
+np.float32,0x4e9ab8e7,0x41a7df44,4
+np.float32,0x4e81b5d1,0x41a67625,4
+np.float32,0x5014d9f2,0x41b832bd,4
+np.float32,0x4f02175c,0x41ac07b8,4
+np.float32,0x7f034f89,0x42b01c47,4
+np.float32,0x7f56d00e,0x42b11849,4
+np.float32,0x7f1cd5f6,0x42b0773a,4
+np.float32,0x7e979174,0x42af02d7,4
+np.float32,0x7f23369f,0x42b08ba2,4
+np.float32,0x7f0637ae,0x42b0277d,4
+np.float32,0x7efcb6e8,0x42b00897,4
+np.float32,0x7f7907c8,0x42b163f6,4
+np.float32,0x7e95c4c2,0x42aefcba,4
+np.float32,0x7f4577b2,0x42b0ed2d,4
+np.float32,0x3f49c92e,0xbe73ae84,4
+np.float32,0x3f4a23d1,0xbe71e2f8,4
+np.float32,0x3f4abb67,0xbe6ee430,4
+np.float32,0x3f48169a,0xbe7c5532,4
+np.float32,0x3f47f5fa,0xbe7cfc37,4
+np.float32,0x3f488309,0xbe7a2ad8,4
+np.float32,0x3f479df4,0xbe7ebf5f,4
+np.float32,0x3f47cfff,0xbe7dbec9,4
+np.float32,0x3f496704,0xbe75a125,4
+np.float32,0x3f478ee8,0xbe7f0c92,4
+np.float32,0x3f4a763b,0xbe7041ce,4
+np.float32,0x3f47a108,0xbe7eaf94,4
+np.float32,0x3f48136c,0xbe7c6578,4
+np.float32,0x3f481c17,0xbe7c391c,4
+np.float32,0x3f47cd28,0xbe7dcd56,4
+np.float32,0x3f478be8,0xbe7f1bf7,4
+np.float32,0x3f4c1f8e,0xbe67e367,4
+np.float32,0x3f489b0c,0xbe79b03f,4
+np.float32,0x3f4934cf,0xbe76a08a,4
+np.float32,0x3f4954df,0xbe75fd6a,4
+np.float32,0x3f47a3f5,0xbe7ea093,4
+np.float32,0x3f4ba4fc,0xbe6a4b02,4
+np.float32,0x3f47a0e1,0xbe7eb05c,4
+np.float32,0x3f48c30a,0xbe78e42f,4
+np.float32,0x3f48cab8,0xbe78bd05,4
+np.float32,0x3f4b0569,0xbe6d6ea4,4
+np.float32,0x3f47de32,0xbe7d7607,4
+np.float32,0x3f477328,0xbe7f9b00,4
+np.float32,0x3f496dab,0xbe757f52,4
+np.float32,0x3f47662c,0xbe7fddac,4
+np.float32,0x3f48ddd8,0xbe785b80,4
+np.float32,0x3f481866,0xbe7c4bff,4
+np.float32,0x3f48b119,0xbe793fb6,4
+np.float32,0x3f48c7e8,0xbe78cb5c,4
+np.float32,0x3f4985f6,0xbe7503da,4
+np.float32,0x3f483fdf,0xbe7b8212,4
+np.float32,0x3f4b1c76,0xbe6cfa67,4
+np.float32,0x3f480b2e,0xbe7c8fa8,4
+np.float32,0x3f48745f,0xbe7a75bf,4
+np.float32,0x3f485bda,0xbe7af308,4
+np.float32,0x3f47a660,0xbe7e942c,4
+np.float32,0x3f47d4d5,0xbe7da600,4
+np.float32,0x3f4b0a26,0xbe6d56be,4
+np.float32,0x3f4a4883,0xbe712924,4
+np.float32,0x3f4769e7,0xbe7fca84,4
+np.float32,0x3f499702,0xbe74ad3f,4
+np.float32,0x3f494ab1,0xbe763131,4
+np.float32,0x3f476b69,0xbe7fc2c6,4
+np.float32,0x3f4884e8,0xbe7a214a,4
+np.float32,0x3f486945,0xbe7aae76,4
+#float64
+## +ve denormal ##
+np.float64,0x0000000000000001,0xc0874385446d71c3,1
+np.float64,0x0001000000000000,0xc086395a2079b70c,1
+np.float64,0x000fffffffffffff,0xc086232bdd7abcd2,1
+np.float64,0x0007ad63e2168cb6,0xc086290bc0b2980f,1
+## -ve denormal ##
+np.float64,0x8000000000000001,0xfff8000000000001,1
+np.float64,0x8001000000000000,0xfff8000000000001,1
+np.float64,0x800fffffffffffff,0xfff8000000000001,1
+np.float64,0x8007ad63e2168cb6,0xfff8000000000001,1
+## +/-0.0f, MAX, MIN##
+np.float64,0x0000000000000000,0xfff0000000000000,1
+np.float64,0x8000000000000000,0xfff0000000000000,1
+np.float64,0x7fefffffffffffff,0x40862e42fefa39ef,1
+np.float64,0xffefffffffffffff,0xfff8000000000001,1
+## near 1.0f ##
+np.float64,0x3ff0000000000000,0x0000000000000000,1
+np.float64,0x3fe8000000000000,0xbfd269621134db92,1
+np.float64,0x3ff0000000000001,0x3cafffffffffffff,1
+np.float64,0x3ff0000020000000,0x3e7fffffe000002b,1
+np.float64,0x3ff0000000000001,0x3cafffffffffffff,1
+np.float64,0x3fefffffe0000000,0xbe70000008000005,1
+np.float64,0x3fefffffffffffff,0xbca0000000000000,1
+## random numbers ##
+np.float64,0x02500186f3d9da56,0xc0855b8abf135773,1
+np.float64,0x09200815a3951173,0xc082ff1ad7131bdc,1
+np.float64,0x0da029623b0243d4,0xc0816fc994695bb5,1
+np.float64,0x48703b8ac483a382,0x40579213a313490b,1
+np.float64,0x09207b74c87c9860,0xc082fee20ff349ef,1
+np.float64,0x62c077698e8df947,0x407821c996d110f0,1
+np.float64,0x2350b45e87c3cfb0,0xc073d6b16b51d072,1
+np.float64,0x3990a23f9ff2b623,0xc051aa60eadd8c61,1
+np.float64,0x0d011386a116c348,0xc081a6cc7ea3b8fb,1
+np.float64,0x1fe0f0303ebe273a,0xc0763870b78a81ca,1
+np.float64,0x0cd1260121d387da,0xc081b7668d61a9d1,1
+np.float64,0x1e6135a8f581d422,0xc077425ac10f08c2,1
+np.float64,0x622168db5fe52d30,0x4077b3c669b9fadb,1
+np.float64,0x69f188e1ec6d1718,0x407d1e2f18c63889,1
+np.float64,0x3aa1bf1d9c4dd1a3,0xc04d682e24bde479,1
+np.float64,0x6c81c4011ce4f683,0x407ee5190e8a8e6a,1
+np.float64,0x2191fa55aa5a5095,0xc0750c0c318b5e2d,1
+np.float64,0x32a1f602a32bf360,0xc06270caa493fc17,1
+np.float64,0x16023c90ba93249b,0xc07d0f88e0801638,1
+np.float64,0x1c525fe6d71fa9ff,0xc078af49c66a5d63,1
+np.float64,0x1a927675815d65b7,0xc079e5bdd7fe376e,1
+np.float64,0x41227b8fe70da028,0x402aa0c9f9a84c71,1
+np.float64,0x4962bb6e853fe87d,0x405a34aa04c83747,1
+np.float64,0x23d2cda00b26b5a4,0xc0737c13a06d00ea,1
+np.float64,0x2d13083fd62987fa,0xc06a25055aeb474e,1
+np.float64,0x10e31e4c9b4579a1,0xc0804e181929418e,1
+np.float64,0x26d3247d556a86a9,0xc0716774171da7e8,1
+np.float64,0x6603379398d0d4ac,0x407a64f51f8a887b,1
+np.float64,0x02d38af17d9442ba,0xc0852d955ac9dd68,1
+np.float64,0x6a2382b4818dd967,0x407d4129d688e5d4,1
+np.float64,0x2ee3c403c79b3934,0xc067a091fefaf8b6,1
+np.float64,0x6493a699acdbf1a4,0x4079663c8602bfc5,1
+np.float64,0x1c8413c4f0de3100,0xc0788c99697059b6,1
+np.float64,0x4573f1ed350d9622,0x404e9bd1e4c08920,1
+np.float64,0x2f34265c9200b69c,0xc067310cfea4e986,1
+np.float64,0x19b43e65fa22029b,0xc07a7f8877de22d6,1
+np.float64,0x0af48ab7925ed6bc,0xc0825c4fbc0e5ade,1
+np.float64,0x4fa49699cad82542,0x4065c76d2a318235,1
+np.float64,0x7204a15e56ade492,0x40815bb87484dffb,1
+np.float64,0x4734aa08a230982d,0x40542a4bf7a361a9,1
+np.float64,0x1ae4ed296c2fd749,0xc079ac4921f20abb,1
+np.float64,0x472514ea4370289c,0x4053ff372bd8f18f,1
+np.float64,0x53a54b3f73820430,0x406b5411fc5f2e33,1
+np.float64,0x64754de5a15684fa,0x407951592e99a5ab,1
+np.float64,0x69358e279868a7c3,0x407c9c671a882c31,1
+np.float64,0x284579ec61215945,0xc0706688e55f0927,1
+np.float64,0x68b5c58806447adc,0x407c43d6f4eff760,1
+np.float64,0x1945a83f98b0e65d,0xc07acc15eeb032cc,1
+np.float64,0x0fc5eb98a16578bf,0xc080b0d02eddca0e,1
+np.float64,0x6a75e208f5784250,0x407d7a7383bf8f05,1
+np.float64,0x0fe63a029c47645d,0xc080a59ca1e98866,1
+np.float64,0x37963ac53f065510,0xc057236281f7bdb6,1
+np.float64,0x135661bb07067ff7,0xc07ee924930c21e4,1
+np.float64,0x4b4699469d458422,0x405f73843756e887,1
+np.float64,0x1a66d73e4bf4881b,0xc07a039ba1c63adf,1
+np.float64,0x12a6b9b119a7da59,0xc07f62e49c6431f3,1
+np.float64,0x24c719aa8fd1bdb5,0xc072d26da4bf84d3,1
+np.float64,0x0fa6ff524ffef314,0xc080bb8514662e77,1
+np.float64,0x1db751d66fdd4a9a,0xc077b77cb50d7c92,1
+np.float64,0x4947374c516da82c,0x4059e9acfc7105bf,1
+np.float64,0x1b1771ab98f3afc8,0xc07989326b8e1f66,1
+np.float64,0x25e78805baac8070,0xc0720a818e6ef080,1
+np.float64,0x4bd7a148225d3687,0x406082d004ea3ee7,1
+np.float64,0x53d7d6b2bbbda00a,0x406b9a398967cbd5,1
+np.float64,0x6997fb9f4e1c685f,0x407ce0a703413eba,1
+np.float64,0x069802c2ff71b951,0xc083df39bf7acddc,1
+np.float64,0x4d683ac9890f66d8,0x4062ae21d8c2acf0,1
+np.float64,0x5a2825863ec14f4c,0x40722d718d549552,1
+np.float64,0x0398799a88f4db80,0xc084e93dab8e2158,1
+np.float64,0x5ed87a8b77e135a5,0x40756d7051777b33,1
+np.float64,0x5828cd6d79b9bede,0x4070cafb22fc6ca1,1
+np.float64,0x7b18ba2a5ec6f068,0x408481386b3ed6fe,1
+np.float64,0x4938fd60922198fe,0x4059c206b762ea7e,1
+np.float64,0x31b8f44fcdd1a46e,0xc063b2faa8b6434e,1
+np.float64,0x5729341c0d918464,0x407019cac0c4a7d7,1
+np.float64,0x13595e9228ee878e,0xc07ee7235a7d8088,1
+np.float64,0x17698b0dc9dd4135,0xc07c1627e3a5ad5f,1
+np.float64,0x63b977c283abb0cc,0x4078cf1ec6ed65be,1
+np.float64,0x7349cc0d4dc16943,0x4081cc697ce4cb53,1
+np.float64,0x4e49a80b732fb28d,0x4063e67e3c5cbe90,1
+np.float64,0x07ba14b848a8ae02,0xc0837ac032a094e0,1
+np.float64,0x3da9f17b691bfddc,0xc03929c25366acda,1
+np.float64,0x02ea39aa6c3ac007,0xc08525af6f21e1c4,1
+np.float64,0x3a6a42f04ed9563d,0xc04e98e825dca46b,1
+np.float64,0x1afa877cd7900be7,0xc0799d6648cb34a9,1
+np.float64,0x58ea986649e052c6,0x4071512e939ad790,1
+np.float64,0x691abbc04647f536,0x407c89aaae0fcb83,1
+np.float64,0x43aabc5063e6f284,0x4044b45d18106fd2,1
+np.float64,0x488b003c893e0bea,0x4057df012a2dafbe,1
+np.float64,0x77eb076ed67caee5,0x40836720de94769e,1
+np.float64,0x5c1b46974aba46f4,0x40738731ba256007,1
+np.float64,0x1a5b29ecb5d3c261,0xc07a0becc77040d6,1
+np.float64,0x5d8b6ccf868c6032,0x4074865c1865e2db,1
+np.float64,0x4cfb6690b4aaf5af,0x406216cd8c7e8ddb,1
+np.float64,0x76cbd8eb5c5fc39e,0x4083038dc66d682b,1
+np.float64,0x28bbd1fec5012814,0xc07014c2dd1b9711,1
+np.float64,0x33dc1b3a4fd6bf7a,0xc060bd0756e07d8a,1
+np.float64,0x52bbe89b37de99f3,0x406a10041aa7d343,1
+np.float64,0x07bc479d15eb2dd3,0xc0837a1a6e3a3b61,1
+np.float64,0x18fc5275711a901d,0xc07aff3e9d62bc93,1
+np.float64,0x114c9758e247dc71,0xc080299a7cf15b05,1
+np.float64,0x25ac8f6d60755148,0xc07233c4c0c511d4,1
+np.float64,0x260cae2bb9e9fd7e,0xc071f128c7e82eac,1
+np.float64,0x572ccdfe0241de82,0x40701bedc84bb504,1
+np.float64,0x0ddcef6c8d41f5ee,0xc0815a7e16d07084,1
+np.float64,0x6dad1d59c988af68,0x407fb4a0bc0142b1,1
+np.float64,0x025d200580d8b6d1,0xc08556c0bc32b1b2,1
+np.float64,0x7aad344b6aa74c18,0x40845bbc453f22be,1
+np.float64,0x5b5d9d6ad9d14429,0x4073036d2d21f382,1
+np.float64,0x49cd8d8dcdf19954,0x405b5c034f5c7353,1
+np.float64,0x63edb9483335c1e6,0x4078f2dd21378786,1
+np.float64,0x7b1dd64c9d2c26bd,0x408482b922017bc9,1
+np.float64,0x782e13e0b574be5f,0x40837e2a0090a5ad,1
+np.float64,0x592dfe18b9d6db2f,0x40717f777fbcb1ec,1
+np.float64,0x654e3232ac60d72c,0x4079e71a95a70446,1
+np.float64,0x7b8e42ad22091456,0x4084a9a6f1e61722,1
+np.float64,0x570e88dfd5860ae6,0x407006ae6c0d137a,1
+np.float64,0x294e98346cb98ef1,0xc06f5edaac12bd44,1
+np.float64,0x1adeaa4ab792e642,0xc079b1431d5e2633,1
+np.float64,0x7b6ead3377529ac8,0x40849eabc8c7683c,1
+np.float64,0x2b8eedae8a9b2928,0xc06c400054deef11,1
+np.float64,0x65defb45b2dcf660,0x407a4b53f181c05a,1
+np.float64,0x1baf582d475e7701,0xc07920bcad4a502c,1
+np.float64,0x461f39cf05a0f15a,0x405126368f984fa1,1
+np.float64,0x7e5f6f5dcfff005b,0x4085a37d610439b4,1
+np.float64,0x136f66e4d09bd662,0xc07ed8a2719f2511,1
+np.float64,0x65afd8983fb6ca1f,0x407a2a7f48bf7fc1,1
+np.float64,0x572fa7f95ed22319,0x40701d706cf82e6f,1
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/data/umath-validation-set-log10.csv b/python/user_packages/Python313/site-packages/numpy/_core/tests/data/umath-validation-set-log10.csv
new file mode 100644
index 0000000000000000000000000000000000000000..0f034e46aacaa9eb18a040f57b4f671561a9cb38
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/tests/data/umath-validation-set-log10.csv
@@ -0,0 +1,1629 @@
+dtype,input,output,ulperrortol
+np.float32,0x3f6fd5c8,0xbce80e8e,4
+np.float32,0x3ea4ab17,0xbefc3deb,4
+np.float32,0x3e87a133,0xbf13b0b7,4
+np.float32,0x3f0d9069,0xbe83bb19,4
+np.float32,0x3f7b9269,0xbbf84f47,4
+np.float32,0x3f7a9ffa,0xbc16fd97,4
+np.float32,0x7f535d34,0x4219cb66,4
+np.float32,0x3e79ad7c,0xbf1ce857,4
+np.float32,0x7e8bfd3b,0x4217dfe9,4
+np.float32,0x3f2d2ee9,0xbe2dcec6,4
+np.float32,0x572e04,0xc21862e4,4
+np.float32,0x7f36f8,0xc217bad5,4
+np.float32,0x3f7982fb,0xbc36aaed,4
+np.float32,0x45b019,0xc218c67c,4
+np.float32,0x3f521c46,0xbdafb3e3,4
+np.float32,0x80000001,0x7fc00000,4
+np.float32,0x3f336c81,0xbe1e107f,4
+np.float32,0x3eac92d7,0xbef1d0bb,4
+np.float32,0x47bdfc,0xc218b990,4
+np.float32,0x7f2d94c8,0x421973d1,4
+np.float32,0x7d53ff8d,0x4214fbb6,4
+np.float32,0x3f581e4e,0xbd96a079,4
+np.float32,0x7ddaf20d,0x42163e4e,4
+np.float32,0x3f341d3c,0xbe1c5b4c,4
+np.float32,0x7ef04ba9,0x4218d032,4
+np.float32,0x620ed2,0xc2182e99,4
+np.float32,0x507850,0xc2188682,4
+np.float32,0x7d08f9,0xc217c284,4
+np.float32,0x7f0cf2aa,0x42191734,4
+np.float32,0x3f109a17,0xbe7e04fe,4
+np.float32,0x7f426152,0x4219a625,4
+np.float32,0x7f32d5a3,0x42198113,4
+np.float32,0x2e14b2,0xc2197e6f,4
+np.float32,0x3a5acd,0xc219156a,4
+np.float32,0x50a565,0xc2188589,4
+np.float32,0x5b751c,0xc2184d97,4
+np.float32,0x7e4149f6,0x42173b22,4
+np.float32,0x3dc34bf9,0xbf82a42a,4
+np.float32,0x3d12bc28,0xbfb910d6,4
+np.float32,0x7ebd2584,0x421865c1,4
+np.float32,0x7f6b3375,0x4219faeb,4
+np.float32,0x7fa00000,0x7fe00000,4
+np.float32,0x3f35fe7d,0xbe17bd33,4
+np.float32,0x7db45c87,0x4215e818,4
+np.float32,0x3efff366,0xbe9a2b8d,4
+np.float32,0x3eb331d0,0xbee971a3,4
+np.float32,0x3f259d5f,0xbe41ae2e,4
+np.float32,0x3eab85ec,0xbef32c4a,4
+np.float32,0x7f194b8a,0x42193c8c,4
+np.float32,0x3f11a614,0xbe7acfc7,4
+np.float32,0x5b17,0xc221f16b,4
+np.float32,0x3f33dadc,0xbe1cff4d,4
+np.float32,0x3cda1506,0xbfc9920f,4
+np.float32,0x3f6856f1,0xbd2c8290,4
+np.float32,0x7f3357fb,0x42198257,4
+np.float32,0x7f56f329,0x4219d2e1,4
+np.float32,0x3ef84108,0xbea0f595,4
+np.float32,0x3f72340f,0xbcc51916,4
+np.float32,0x3daf28,0xc218fcbd,4
+np.float32,0x131035,0xc21b06f4,4
+np.float32,0x3f275c3b,0xbe3d0487,4
+np.float32,0x3ef06130,0xbea82069,4
+np.float32,0x3f57f3b0,0xbd974fef,4
+np.float32,0x7f6c4a78,0x4219fcfa,4
+np.float32,0x7e8421d0,0x4217c639,4
+np.float32,0x3f17a479,0xbe68e08e,4
+np.float32,0x7f03774e,0x4218f83b,4
+np.float32,0x441a33,0xc218d0b8,4
+np.float32,0x539158,0xc21875b6,4
+np.float32,0x3e8fcc75,0xbf0d3018,4
+np.float32,0x7ef74130,0x4218dce4,4
+np.float32,0x3ea6f4fa,0xbef92c38,4
+np.float32,0x7f3948ab,0x421990d5,4
+np.float32,0x7db6f8f5,0x4215ee7c,4
+np.float32,0x3ee44a2f,0xbeb399e5,4
+np.float32,0x156c59,0xc21ad30d,4
+np.float32,0x3f21ee53,0xbe4baf16,4
+np.float32,0x3f2c08f4,0xbe30c424,4
+np.float32,0x3f49885c,0xbdd4c6a9,4
+np.float32,0x3eae0b9c,0xbeefed54,4
+np.float32,0x1b5c1f,0xc21a6646,4
+np.float32,0x3e7330e2,0xbf1fd592,4
+np.float32,0x3ebbeb4c,0xbededf82,4
+np.float32,0x427154,0xc218dbb1,4
+np.float32,0x3f6b8b4b,0xbd142498,4
+np.float32,0x8e769,0xc21c5981,4
+np.float32,0x3e9db557,0xbf02ec1c,4
+np.float32,0x3f001bef,0xbe99f019,4
+np.float32,0x3e58b48c,0xbf2ca77a,4
+np.float32,0x3d46c16b,0xbfa8327c,4
+np.float32,0x7eeeb305,0x4218cd3b,4
+np.float32,0x3e3f163d,0xbf3aa446,4
+np.float32,0x3f66c872,0xbd3877d9,4
+np.float32,0x7f7162f8,0x421a0677,4
+np.float32,0x3edca3bc,0xbebb2e28,4
+np.float32,0x3dc1055b,0xbf834afa,4
+np.float32,0x12b16f,0xc21b0fad,4
+np.float32,0x3f733898,0xbcb62e16,4
+np.float32,0x3e617af8,0xbf283db0,4
+np.float32,0x7e86577a,0x4217cd99,4
+np.float32,0x3f0ba3c7,0xbe86c633,4
+np.float32,0x3f4cad25,0xbdc70247,4
+np.float32,0xb6cdf,0xc21bea9f,4
+np.float32,0x3f42971a,0xbdf3f49e,4
+np.float32,0x3e6ccad2,0xbf22cc78,4
+np.float32,0x7f2121b2,0x421952b8,4
+np.float32,0x3f6d3f55,0xbd075366,4
+np.float32,0x3f524f,0xc218f117,4
+np.float32,0x3e95b5d9,0xbf08b56a,4
+np.float32,0x7f6ae47d,0x4219fa56,4
+np.float32,0x267539,0xc219ceda,4
+np.float32,0x3ef72f6d,0xbea1eb2e,4
+np.float32,0x2100b2,0xc21a12e2,4
+np.float32,0x3d9777d1,0xbf90c4e7,4
+np.float32,0x44c6f5,0xc218cc56,4
+np.float32,0x7f2a613d,0x42196b8a,4
+np.float32,0x390a25,0xc2191f8d,4
+np.float32,0x3f1de5ad,0xbe56e703,4
+np.float32,0x2f59ce,0xc2197258,4
+np.float32,0x7f3b12a1,0x4219951b,4
+np.float32,0x3ecb66d4,0xbecd44ca,4
+np.float32,0x7e74ff,0xc217bd7d,4
+np.float32,0x7ed83f78,0x4218a14d,4
+np.float32,0x685994,0xc21812f1,4
+np.float32,0xbf800000,0x7fc00000,4
+np.float32,0x736f47,0xc217e60b,4
+np.float32,0x7f09c371,0x42190d0a,4
+np.float32,0x3f7ca51d,0xbbbbbce0,4
+np.float32,0x7f4b4d3b,0x4219ba1a,4
+np.float32,0x3f6c4471,0xbd0eb076,4
+np.float32,0xd944e,0xc21b9dcf,4
+np.float32,0x7cb06ffc,0x421375cd,4
+np.float32,0x586187,0xc2185cce,4
+np.float32,0x3f3cbf5b,0xbe078911,4
+np.float32,0x3f30b504,0xbe24d983,4
+np.float32,0x3f0a16ba,0xbe8941fd,4
+np.float32,0x5c43b0,0xc21849af,4
+np.float32,0x3dad74f6,0xbf893bd5,4
+np.float32,0x3c586958,0xbff087a6,4
+np.float32,0x3e8307a8,0xbf1786ba,4
+np.float32,0x7dcd1776,0x4216213d,4
+np.float32,0x3f44d107,0xbde9d662,4
+np.float32,0x3e2e6823,0xbf44cbec,4
+np.float32,0x3d87ea27,0xbf96caca,4
+np.float32,0x3e0c715b,0xbf5ce07e,4
+np.float32,0x7ec9cd5a,0x4218828e,4
+np.float32,0x3e26c0b4,0xbf49c93e,4
+np.float32,0x75b94e,0xc217dd50,4
+np.float32,0x3df7b9f5,0xbf6ad7f4,4
+np.float32,0x0,0xff800000,4
+np.float32,0x3f284795,0xbe3a94da,4
+np.float32,0x7ee49092,0x4218b9f0,4
+np.float32,0x7f4c20e0,0x4219bbe8,4
+np.float32,0x3efbbce8,0xbe9ddc4b,4
+np.float32,0x12274a,0xc21b1cb4,4
+np.float32,0x5fa1b1,0xc21839be,4
+np.float32,0x7f0b210e,0x4219116d,4
+np.float32,0x3f67092a,0xbd368545,4
+np.float32,0x3d572721,0xbfa3ca5b,4
+np.float32,0x3f7913ce,0xbc431028,4
+np.float32,0x3b0613,0xc2191059,4
+np.float32,0x3e1d16c0,0xbf506c6f,4
+np.float32,0xab130,0xc21c081d,4
+np.float32,0x3e23ac97,0xbf4bdb9d,4
+np.float32,0x7ef52368,0x4218d911,4
+np.float32,0x7f38e686,0x42198fe9,4
+np.float32,0x3f106a21,0xbe7e9897,4
+np.float32,0x3ecef8d5,0xbec96644,4
+np.float32,0x3ec37e02,0xbed61683,4
+np.float32,0x3efbd063,0xbe9dcb17,4
+np.float32,0x3f318fe3,0xbe22b402,4
+np.float32,0x7e5e5228,0x4217795d,4
+np.float32,0x72a046,0xc217e92c,4
+np.float32,0x7f6f970b,0x421a0324,4
+np.float32,0x3ed871b4,0xbebf72fb,4
+np.float32,0x7a2eaa,0xc217ccc8,4
+np.float32,0x3e819655,0xbf18c1d7,4
+np.float32,0x80800000,0x7fc00000,4
+np.float32,0x7eab0719,0x421838f9,4
+np.float32,0x7f0763cb,0x4219054f,4
+np.float32,0x3f191672,0xbe64a8af,4
+np.float32,0x7d4327,0xc217c1b6,4
+np.float32,0x3f724ba6,0xbcc3bea3,4
+np.float32,0x60fe06,0xc2183375,4
+np.float32,0x48cd59,0xc218b30b,4
+np.float32,0x3f7fec2b,0xb909d3f3,4
+np.float32,0x1c7bb9,0xc21a5460,4
+np.float32,0x24d8a8,0xc219e1e4,4
+np.float32,0x3e727c52,0xbf20283c,4
+np.float32,0x4bc460,0xc218a14a,4
+np.float32,0x63e313,0xc2182661,4
+np.float32,0x7f625581,0x4219e9d4,4
+np.float32,0x3eeb3e77,0xbeacedc0,4
+np.float32,0x7ef27a47,0x4218d437,4
+np.float32,0x27105a,0xc219c7e6,4
+np.float32,0x22a10b,0xc219fd7d,4
+np.float32,0x3f41e907,0xbdf711ab,4
+np.float32,0x7c1fbf95,0x4212155b,4
+np.float32,0x7e5acceb,0x42177244,4
+np.float32,0x3e0892fa,0xbf5ffb83,4
+np.float32,0x3ea0e51d,0xbf00b2c0,4
+np.float32,0x3e56fc29,0xbf2d8a51,4
+np.float32,0x7ee724ed,0x4218beed,4
+np.float32,0x7ebf142b,0x42186a46,4
+np.float32,0x7f6cf35c,0x4219fe37,4
+np.float32,0x3f11abf7,0xbe7abdcd,4
+np.float32,0x588d7a,0xc2185bf1,4
+np.float32,0x3f6e81d2,0xbcfbcf97,4
+np.float32,0x3f1b6be8,0xbe5dee2b,4
+np.float32,0x7f3815e0,0x42198df2,4
+np.float32,0x3f5bfc88,0xbd86d93d,4
+np.float32,0x3f3775d0,0xbe142bbc,4
+np.float32,0x78a958,0xc217d25a,4
+np.float32,0x2ff7c3,0xc2196c96,4
+np.float32,0x4b9c0,0xc21d733c,4
+np.float32,0x3ec025af,0xbed9ecf3,4
+np.float32,0x6443f0,0xc21824b3,4
+np.float32,0x3f754e28,0xbc97d299,4
+np.float32,0x3eaa91d3,0xbef4699d,4
+np.float32,0x3e5f2837,0xbf296478,4
+np.float32,0xe5676,0xc21b85a4,4
+np.float32,0x3f6859f2,0xbd2c6b90,4
+np.float32,0x3f68686b,0xbd2bfcc6,4
+np.float32,0x4b39b8,0xc218a47b,4
+np.float32,0x630ac4,0xc2182a28,4
+np.float32,0x160980,0xc21ac67d,4
+np.float32,0x3ed91c4d,0xbebec3fd,4
+np.float32,0x7ec27b0d,0x4218721f,4
+np.float32,0x3f3c0a5f,0xbe09344b,4
+np.float32,0x3dbff9c1,0xbf839841,4
+np.float32,0x7f0e8ea7,0x42191c40,4
+np.float32,0x3f36b162,0xbe1608e4,4
+np.float32,0x228bb3,0xc219fe90,4
+np.float32,0x2fdd30,0xc2196d8c,4
+np.float32,0x3e8fce8e,0xbf0d2e79,4
+np.float32,0x3f36acc7,0xbe16141a,4
+np.float32,0x7f44b51c,0x4219ab70,4
+np.float32,0x3ec3371c,0xbed66736,4
+np.float32,0x4388a2,0xc218d473,4
+np.float32,0x3f5aa6c3,0xbd8c4344,4
+np.float32,0x7f09fce4,0x42190dc3,4
+np.float32,0x7ed7854a,0x42189fce,4
+np.float32,0x7f4da83a,0x4219bf3a,4
+np.float32,0x3db8da28,0xbf85b25a,4
+np.float32,0x7f449686,0x4219ab2b,4
+np.float32,0x2eb25,0xc21e498c,4
+np.float32,0x3f2bcc08,0xbe3161bd,4
+np.float32,0x36c923,0xc219317b,4
+np.float32,0x3d52a866,0xbfa4f6d2,4
+np.float32,0x3f7d6688,0xbb913e4e,4
+np.float32,0x3f5a6ba4,0xbd8d33e3,4
+np.float32,0x719740,0xc217ed35,4
+np.float32,0x78a472,0xc217d26c,4
+np.float32,0x7ee33d0c,0x4218b759,4
+np.float32,0x7f668c1d,0x4219f208,4
+np.float32,0x3e29c600,0xbf47ca46,4
+np.float32,0x3f3cefc3,0xbe071712,4
+np.float32,0x3e224ebd,0xbf4cca41,4
+np.float32,0x7f1417be,0x42192d31,4
+np.float32,0x7f29d7d5,0x42196a23,4
+np.float32,0x3338ce,0xc2194f65,4
+np.float32,0x2a7897,0xc219a2b6,4
+np.float32,0x3d6bc3d8,0xbf9eb468,4
+np.float32,0x3f6bd7bf,0xbd11e392,4
+np.float32,0x7f6d26bf,0x4219fe98,4
+np.float32,0x3f52d378,0xbdacadb5,4
+np.float32,0x3efac453,0xbe9eb84a,4
+np.float32,0x3f692eb7,0xbd261184,4
+np.float32,0x3f6a0bb5,0xbd1f7ec1,4
+np.float32,0x3f037a49,0xbe942aa8,4
+np.float32,0x3f465bd4,0xbde2e530,4
+np.float32,0x7ef0f47b,0x4218d16a,4
+np.float32,0x637127,0xc218285e,4
+np.float32,0x3f41e511,0xbdf723d7,4
+np.float32,0x7f800000,0x7f800000,4
+np.float32,0x3f3342d5,0xbe1e77d5,4
+np.float32,0x7f57cfe6,0x4219d4a9,4
+np.float32,0x3e4358ed,0xbf3830a7,4
+np.float32,0x3ce25f15,0xbfc77f2b,4
+np.float32,0x7ed057e7,0x421890be,4
+np.float32,0x7ce154d9,0x4213e295,4
+np.float32,0x3ee91984,0xbeaef703,4
+np.float32,0x7e4e919c,0x421758af,4
+np.float32,0x6830e7,0xc218139e,4
+np.float32,0x3f12f08e,0xbe76e328,4
+np.float32,0x7f0a7a32,0x42190f56,4
+np.float32,0x7f38e,0xc21c8bd3,4
+np.float32,0x3e01def9,0xbf6593e3,4
+np.float32,0x3f5c8c6d,0xbd849432,4
+np.float32,0x3eed8747,0xbeaac7a3,4
+np.float32,0x3cadaa0e,0xbfd63b21,4
+np.float32,0x3f7532a9,0xbc996178,4
+np.float32,0x31f3ac,0xc2195a8f,4
+np.float32,0x3f0e0f97,0xbe82f3af,4
+np.float32,0x3f2a1f35,0xbe35bd3f,4
+np.float32,0x3f4547b2,0xbde7bebd,4
+np.float32,0x3f7988a6,0xbc36094c,4
+np.float32,0x74464c,0xc217e2d2,4
+np.float32,0x7f7518be,0x421a0d3f,4
+np.float32,0x7e97fa0a,0x42180473,4
+np.float32,0x584e3a,0xc2185d2f,4
+np.float32,0x3e7291f3,0xbf201e52,4
+np.float32,0xc0a05,0xc21bd359,4
+np.float32,0x3a3177,0xc21916a6,4
+np.float32,0x4f417f,0xc2188d45,4
+np.float32,0x263fce,0xc219d145,4
+np.float32,0x7e1d58,0xc217beb1,4
+np.float32,0x7f056af3,0x4218fec9,4
+np.float32,0x3f21c181,0xbe4c2a3f,4
+np.float32,0x7eca4956,0x4218839f,4
+np.float32,0x3e58afa8,0xbf2ca9fd,4
+np.float32,0x3f40d583,0xbdfc04ef,4
+np.float32,0x7f432fbb,0x4219a7fc,4
+np.float32,0x43aaa4,0xc218d393,4
+np.float32,0x7f2c9b62,0x42197150,4
+np.float32,0x5c3876,0xc21849e5,4
+np.float32,0x7f2034e8,0x42195029,4
+np.float32,0x7e5be772,0x42177481,4
+np.float32,0x80000000,0xff800000,4
+np.float32,0x3f5be03b,0xbd874bb0,4
+np.float32,0x3e32494f,0xbf4259be,4
+np.float32,0x3e1f4671,0xbf4ee30b,4
+np.float32,0x4606cc,0xc218c454,4
+np.float32,0x425cbc,0xc218dc3b,4
+np.float32,0x7dd9b8bf,0x42163bd0,4
+np.float32,0x3f0465d0,0xbe929db7,4
+np.float32,0x3f735077,0xbcb4d0fa,4
+np.float32,0x4d6a43,0xc21897b8,4
+np.float32,0x3e27d600,0xbf4910f5,4
+np.float32,0x3f06e0cc,0xbe8e7d24,4
+np.float32,0x3f3fd064,0xbe005e45,4
+np.float32,0x176f1,0xc21f7c2d,4
+np.float32,0x3eb64e6f,0xbee59d9c,4
+np.float32,0x7f0f075d,0x42191db8,4
+np.float32,0x3f718cbe,0xbcceb621,4
+np.float32,0x3ead7bda,0xbef0a54a,4
+np.float32,0x7f77c1a8,0x421a120c,4
+np.float32,0x3f6a79c5,0xbd1c3afd,4
+np.float32,0x3e992d1f,0xbf062a02,4
+np.float32,0x3e6f6335,0xbf219639,4
+np.float32,0x7f6d9a3e,0x4219ff70,4
+np.float32,0x557ed1,0xc2186b91,4
+np.float32,0x3f13a456,0xbe74c457,4
+np.float32,0x15c2dc,0xc21acc17,4
+np.float32,0x71f36f,0xc217ebcc,4
+np.float32,0x748dea,0xc217e1c1,4
+np.float32,0x7f0f32e0,0x42191e3f,4
+np.float32,0x5b1da8,0xc2184f41,4
+np.float32,0x3d865d3a,0xbf976e11,4
+np.float32,0x3f800000,0x0,4
+np.float32,0x7f67b56d,0x4219f444,4
+np.float32,0x6266a1,0xc2182d0c,4
+np.float32,0x3ec9c5e4,0xbecf0e6b,4
+np.float32,0x6a6a0e,0xc2180a3b,4
+np.float32,0x7e9db6fd,0x421814ef,4
+np.float32,0x3e7458f7,0xbf1f4e88,4
+np.float32,0x3ead8016,0xbef09fdc,4
+np.float32,0x3e263d1c,0xbf4a211e,4
+np.float32,0x7f6b3329,0x4219faeb,4
+np.float32,0x800000,0xc217b818,4
+np.float32,0x3f0654c7,0xbe8f6471,4
+np.float32,0x3f281b71,0xbe3b0990,4
+np.float32,0x7c4c8e,0xc217c524,4
+np.float32,0x7d113a87,0x4214537d,4
+np.float32,0x734b5f,0xc217e696,4
+np.float32,0x7f079d05,0x4219060b,4
+np.float32,0x3ee830b1,0xbeafd58b,4
+np.float32,0x3f1c3b8b,0xbe5b9d96,4
+np.float32,0x3f2bf0c6,0xbe3102aa,4
+np.float32,0x7ddffe22,0x42164871,4
+np.float32,0x3f1e58b4,0xbe55a37f,4
+np.float32,0x5f3edf,0xc2183b8a,4
+np.float32,0x7f1fb6ec,0x42194eca,4
+np.float32,0x3f78718e,0xbc55311e,4
+np.float32,0x3e574b7d,0xbf2d6152,4
+np.float32,0x7eab27c6,0x4218394e,4
+np.float32,0x7f34603c,0x421984e5,4
+np.float32,0x3f3a8b57,0xbe0cc1ca,4
+np.float32,0x3f744181,0xbca7134e,4
+np.float32,0x3f7e3bc4,0xbb45156b,4
+np.float32,0x93ab4,0xc21c498b,4
+np.float32,0x7ed5541e,0x42189b42,4
+np.float32,0x6bf8ec,0xc21803c4,4
+np.float32,0x757395,0xc217de58,4
+np.float32,0x7f177214,0x42193726,4
+np.float32,0x59935f,0xc21856d6,4
+np.float32,0x2cd9ba,0xc2198a78,4
+np.float32,0x3ef6fd5c,0xbea2183c,4
+np.float32,0x3ebb6c63,0xbedf75e0,4
+np.float32,0x7f43272c,0x4219a7e9,4
+np.float32,0x7f42e67d,0x4219a755,4
+np.float32,0x3f3f744f,0xbe0133f6,4
+np.float32,0x7f5fddaa,0x4219e4f4,4
+np.float32,0x3dc9874f,0xbf80e529,4
+np.float32,0x3f2efe64,0xbe292ec8,4
+np.float32,0x3e0406a6,0xbf63bf7c,4
+np.float32,0x3cdbb0aa,0xbfc92984,4
+np.float32,0x3e6597e7,0xbf263b30,4
+np.float32,0x3f0c1153,0xbe861807,4
+np.float32,0x7fce16,0xc217b8c6,4
+np.float32,0x3f5f4e5f,0xbd730dc6,4
+np.float32,0x3ed41ffa,0xbec3ee69,4
+np.float32,0x3f216c78,0xbe4d1446,4
+np.float32,0x3f123ed7,0xbe78fe4b,4
+np.float32,0x7f7e0ca9,0x421a1d34,4
+np.float32,0x7e318af4,0x42171558,4
+np.float32,0x7f1e1659,0x42194a3d,4
+np.float32,0x34d12a,0xc21941c2,4
+np.float32,0x3d9566ad,0xbf918870,4
+np.float32,0x3e799a47,0xbf1cf0e5,4
+np.float32,0x3e89dd6f,0xbf11df76,4
+np.float32,0x32f0d3,0xc21951d8,4
+np.float32,0x7e89d17e,0x4217d8f6,4
+np.float32,0x1f3b38,0xc21a2b6b,4
+np.float32,0x7ee9e060,0x4218c427,4
+np.float32,0x31a673,0xc2195d41,4
+np.float32,0x5180f1,0xc21880d5,4
+np.float32,0x3cd36f,0xc21902f8,4
+np.float32,0x3bb63004,0xc01050cb,4
+np.float32,0x3e8ee9d1,0xbf0ddfde,4
+np.float32,0x3d2a7da3,0xbfb0b970,4
+np.float32,0x3ea58107,0xbefb1dc3,4
+np.float32,0x7f6760b0,0x4219f3a2,4
+np.float32,0x7f7f9e08,0x421a1ff0,4
+np.float32,0x37e7f1,0xc219287b,4
+np.float32,0x3ef7eb53,0xbea14267,4
+np.float32,0x3e2eb581,0xbf449aa5,4
+np.float32,0x3da7671c,0xbf8b3568,4
+np.float32,0x7af36f7b,0x420f33ee,4
+np.float32,0x3eb3602c,0xbee93823,4
+np.float32,0x3f68bcff,0xbd2975de,4
+np.float32,0x3ea7cefb,0xbef80a9d,4
+np.float32,0x3f329689,0xbe202414,4
+np.float32,0x7f0c7c80,0x421915be,4
+np.float32,0x7f4739b8,0x4219b118,4
+np.float32,0x73af58,0xc217e515,4
+np.float32,0x7f13eb2a,0x42192cab,4
+np.float32,0x30f2d9,0xc2196395,4
+np.float32,0x7ea7066c,0x42182e71,4
+np.float32,0x669fec,0xc2181a5b,4
+np.float32,0x3f7d6876,0xbb90d1ef,4
+np.float32,0x3f08a4ef,0xbe8b9897,4
+np.float32,0x7f2a906c,0x42196c05,4
+np.float32,0x3ed3ca42,0xbec44856,4
+np.float32,0x9d27,0xc220fee2,4
+np.float32,0x3e4508a1,0xbf373c03,4
+np.float32,0x3e41f8de,0xbf38f9bb,4
+np.float32,0x3e912714,0xbf0c255b,4
+np.float32,0xff800000,0x7fc00000,4
+np.float32,0x7eefd13d,0x4218cf4f,4
+np.float32,0x3f491674,0xbdd6bded,4
+np.float32,0x3ef49512,0xbea445c9,4
+np.float32,0x3f045b79,0xbe92af15,4
+np.float32,0x3ef6c412,0xbea24bd5,4
+np.float32,0x3e6f3c28,0xbf21a85d,4
+np.float32,0x3ef71839,0xbea2000e,4
+np.float32,0x1,0xc23369f4,4
+np.float32,0x3e3fcfe4,0xbf3a3876,4
+np.float32,0x3e9d7a65,0xbf0315b2,4
+np.float32,0x20b7c4,0xc21a16bd,4
+np.float32,0x7f707b10,0x421a04cb,4
+np.float32,0x7fc00000,0x7fc00000,4
+np.float32,0x3f285ebd,0xbe3a57ac,4
+np.float32,0x74c9ea,0xc217e0dc,4
+np.float32,0x3f6501f2,0xbd4634ab,4
+np.float32,0x3f248959,0xbe4495cc,4
+np.float32,0x7e915ff0,0x4217f0b3,4
+np.float32,0x7edbb910,0x4218a864,4
+np.float32,0x3f7042dd,0xbce1bddb,4
+np.float32,0x6f08c9,0xc217f754,4
+np.float32,0x7f423993,0x4219a5ca,4
+np.float32,0x3f125704,0xbe78b4cd,4
+np.float32,0x7ef7f5ae,0x4218de28,4
+np.float32,0x3f2dd940,0xbe2c1a33,4
+np.float32,0x3f1ca78e,0xbe5a6a8b,4
+np.float32,0x244863,0xc219e8be,4
+np.float32,0x3f2614fe,0xbe406d6b,4
+np.float32,0x3e75e7a3,0xbf1e99b5,4
+np.float32,0x2bdd6e,0xc2199459,4
+np.float32,0x7e49e279,0x42174e7b,4
+np.float32,0x3e3bb09a,0xbf3ca2cd,4
+np.float32,0x649f06,0xc2182320,4
+np.float32,0x7f4a44e1,0x4219b7d6,4
+np.float32,0x400473,0xc218ec3a,4
+np.float32,0x3edb19ad,0xbebcbcad,4
+np.float32,0x3d8ee956,0xbf94006c,4
+np.float32,0x7e91c603,0x4217f1eb,4
+np.float32,0x221384,0xc21a04a6,4
+np.float32,0x7f7dd660,0x421a1cd5,4
+np.float32,0x7ef34609,0x4218d5ac,4
+np.float32,0x7f5ed529,0x4219e2e5,4
+np.float32,0x7f1bf685,0x42194438,4
+np.float32,0x3cdd094a,0xbfc8d294,4
+np.float32,0x7e87fc8e,0x4217d303,4
+np.float32,0x7f53d971,0x4219cc6b,4
+np.float32,0xabc8b,0xc21c0646,4
+np.float32,0x7f5011e6,0x4219c46a,4
+np.float32,0x7e460638,0x421745e5,4
+np.float32,0xa8126,0xc21c0ffd,4
+np.float32,0x3eec2a66,0xbeac0f2d,4
+np.float32,0x3f3a1213,0xbe0de340,4
+np.float32,0x7f5908db,0x4219d72c,4
+np.float32,0x7e0ad3c5,0x4216a7f3,4
+np.float32,0x3f2de40e,0xbe2bfe90,4
+np.float32,0x3d0463c5,0xbfbec8e4,4
+np.float32,0x7c7cde0b,0x4212e19a,4
+np.float32,0x74c24f,0xc217e0f9,4
+np.float32,0x3f14b4cb,0xbe71929b,4
+np.float32,0x3e94e192,0xbf09537f,4
+np.float32,0x3eebde71,0xbeac56bd,4
+np.float32,0x3f65e413,0xbd3f5b8a,4
+np.float32,0x7e109199,0x4216b9f9,4
+np.float32,0x3f22f5d0,0xbe48ddc0,4
+np.float32,0x3e22d3bc,0xbf4c6f4d,4
+np.float32,0x3f7a812f,0xbc1a680b,4
+np.float32,0x3f67f361,0xbd2f7d7c,4
+np.float32,0x3f1caa63,0xbe5a6281,4
+np.float32,0x3f306fde,0xbe2587ab,4
+np.float32,0x3e8df9d3,0xbf0e9b2f,4
+np.float32,0x3eaaccc4,0xbef41cd4,4
+np.float32,0x7f3f65ec,0x42199f45,4
+np.float32,0x3dc706e0,0xbf8196ec,4
+np.float32,0x3e14eaba,0xbf565cf6,4
+np.float32,0xcc60,0xc2208a09,4
+np.float32,0x358447,0xc2193be7,4
+np.float32,0x3dcecade,0xbf7eec70,4
+np.float32,0x3f20b4f8,0xbe4f0ef0,4
+np.float32,0x7e7c979f,0x4217b222,4
+np.float32,0x7f2387b9,0x4219594a,4
+np.float32,0x3f6f6e5c,0xbcee0e05,4
+np.float32,0x7f19ad81,0x42193da8,4
+np.float32,0x5635e1,0xc21867dd,4
+np.float32,0x4c5e97,0xc2189dc4,4
+np.float32,0x7f35f97f,0x421988d1,4
+np.float32,0x7f685224,0x4219f571,4
+np.float32,0x3eca0616,0xbecec7b8,4
+np.float32,0x3f436d0d,0xbdf024ca,4
+np.float32,0x12a97d,0xc21b106a,4
+np.float32,0x7f0fdc93,0x4219204d,4
+np.float32,0x3debfb42,0xbf703e65,4
+np.float32,0x3c6c54d2,0xbfeba291,4
+np.float32,0x7e5d7491,0x421777a1,4
+np.float32,0x3f4bd2f0,0xbdcab87d,4
+np.float32,0x3f7517f4,0xbc9ae510,4
+np.float32,0x3f71a59a,0xbccd480d,4
+np.float32,0x3f514653,0xbdb33f61,4
+np.float32,0x3f4e6ea4,0xbdbf694b,4
+np.float32,0x3eadadec,0xbef06526,4
+np.float32,0x3f3b41c1,0xbe0b0fbf,4
+np.float32,0xc35a,0xc2209e1e,4
+np.float32,0x384982,0xc2192575,4
+np.float32,0x3464c3,0xc2194556,4
+np.float32,0x7f5e20d9,0x4219e17d,4
+np.float32,0x3ea18b62,0xbf004016,4
+np.float32,0x63a02b,0xc218278c,4
+np.float32,0x7ef547ba,0x4218d953,4
+np.float32,0x3f2496fb,0xbe4470f4,4
+np.float32,0x7ea0c8c6,0x42181d81,4
+np.float32,0x3f42ba60,0xbdf35372,4
+np.float32,0x7e40d9,0xc217be34,4
+np.float32,0x3e95883b,0xbf08d750,4
+np.float32,0x3e0cddf3,0xbf5c8aa8,4
+np.float32,0x3f2305d5,0xbe48b20a,4
+np.float32,0x7f0d0941,0x4219177b,4
+np.float32,0x3f7b98d3,0xbbf6e477,4
+np.float32,0x3f687cdc,0xbd2b6057,4
+np.float32,0x3f42ce91,0xbdf2f73d,4
+np.float32,0x3ee00fc0,0xbeb7c217,4
+np.float32,0x7f3d483a,0x42199a53,4
+np.float32,0x3e1e08eb,0xbf4fc18d,4
+np.float32,0x7e202ff5,0x4216e798,4
+np.float32,0x582898,0xc2185ded,4
+np.float32,0x3e3552b1,0xbf40790c,4
+np.float32,0x3d3f7c87,0xbfaa44b6,4
+np.float32,0x669d8e,0xc2181a65,4
+np.float32,0x3f0e21b4,0xbe82d757,4
+np.float32,0x686f95,0xc2181293,4
+np.float32,0x3f48367f,0xbdda9ead,4
+np.float32,0x3dc27802,0xbf82e0a0,4
+np.float32,0x3f6ac40c,0xbd1a07d4,4
+np.float32,0x3bba6d,0xc2190b12,4
+np.float32,0x3ec7b6b0,0xbed15665,4
+np.float32,0x3f1f9ca4,0xbe521955,4
+np.float32,0x3ef2f147,0xbea5c4b8,4
+np.float32,0x7c65f769,0x4212b762,4
+np.float32,0x7e98e162,0x42180716,4
+np.float32,0x3f0f0c09,0xbe8169ea,4
+np.float32,0x3d67f03b,0xbf9f9d48,4
+np.float32,0x7f3751e4,0x42198c18,4
+np.float32,0x7f1fac61,0x42194ead,4
+np.float32,0x3e9b698b,0xbf048d89,4
+np.float32,0x7e66507b,0x42178913,4
+np.float32,0x7f5cb680,0x4219dea5,4
+np.float32,0x234700,0xc219f53e,4
+np.float32,0x3d9984ad,0xbf900591,4
+np.float32,0x3f33a3f2,0xbe1d872a,4
+np.float32,0x3eaf52b6,0xbeee4cf4,4
+np.float32,0x7f078930,0x421905ca,4
+np.float32,0x3f083b39,0xbe8c44df,4
+np.float32,0x3e3823f8,0xbf3ec231,4
+np.float32,0x3eef6f5d,0xbea9008c,4
+np.float32,0x6145e1,0xc218322c,4
+np.float32,0x16d9ae,0xc21ab65f,4
+np.float32,0x7e543376,0x421764a5,4
+np.float32,0x3ef77ccb,0xbea1a5a0,4
+np.float32,0x3f4a443f,0xbdd18af5,4
+np.float32,0x8f209,0xc21c5770,4
+np.float32,0x3ecac126,0xbecdfa33,4
+np.float32,0x3e8662f9,0xbf14b6c7,4
+np.float32,0x23759a,0xc219f2f4,4
+np.float32,0xf256d,0xc21b6d3f,4
+np.float32,0x3f579f93,0xbd98aaa2,4
+np.float32,0x3ed4cc8e,0xbec339cb,4
+np.float32,0x3ed25400,0xbec5d2a1,4
+np.float32,0x3ed6f8ba,0xbec0f795,4
+np.float32,0x7f36efd9,0x42198b2a,4
+np.float32,0x7f5169dd,0x4219c746,4
+np.float32,0x7de18a20,0x42164b80,4
+np.float32,0x3e8de526,0xbf0eab61,4
+np.float32,0x3de0cbcd,0xbf75a47e,4
+np.float32,0xe265f,0xc21b8b82,4
+np.float32,0x3df3cdbd,0xbf6c9e40,4
+np.float32,0x3f38a25a,0xbe115589,4
+np.float32,0x7f01f2c0,0x4218f311,4
+np.float32,0x3da7d5f4,0xbf8b10a5,4
+np.float32,0x4d4fe8,0xc2189850,4
+np.float32,0x3cc96d9d,0xbfcdfc8d,4
+np.float32,0x259a88,0xc219d8d7,4
+np.float32,0x7f1d5102,0x42194810,4
+np.float32,0x7e17ca91,0x4216cfa7,4
+np.float32,0x3f73d110,0xbcad7a8f,4
+np.float32,0x3f009383,0xbe9920ed,4
+np.float32,0x7e22af,0xc217be9f,4
+np.float32,0x3f7de2ce,0xbb6c0394,4
+np.float32,0x3edd0cd2,0xbebac45a,4
+np.float32,0x3ec9b5c1,0xbecf2035,4
+np.float32,0x3168c5,0xc2195f6b,4
+np.float32,0x3e935522,0xbf0a7d18,4
+np.float32,0x3e494077,0xbf34e120,4
+np.float32,0x3f52ed06,0xbdac41ec,4
+np.float32,0x3f73d51e,0xbcad3f65,4
+np.float32,0x3f03d453,0xbe939295,4
+np.float32,0x7ef4ee68,0x4218d8b1,4
+np.float32,0x3ed0e2,0xc218f4a7,4
+np.float32,0x4efab8,0xc2188ed3,4
+np.float32,0x3dbd5632,0xbf845d3b,4
+np.float32,0x7eecad4f,0x4218c972,4
+np.float32,0x9d636,0xc21c2d32,4
+np.float32,0x3e5f3b6b,0xbf295ae7,4
+np.float32,0x7f4932df,0x4219b57a,4
+np.float32,0x4b59b5,0xc218a3be,4
+np.float32,0x3e5de97f,0xbf2a03b4,4
+np.float32,0x3f1c479d,0xbe5b7b3c,4
+np.float32,0x3f42e7e4,0xbdf283a5,4
+np.float32,0x2445,0xc2238af2,4
+np.float32,0x7aa71b43,0x420e8c9e,4
+np.float32,0x3ede6e4e,0xbeb961e1,4
+np.float32,0x7f05dd3b,0x42190045,4
+np.float32,0x3ef5b55c,0xbea3404b,4
+np.float32,0x7f738624,0x421a0a62,4
+np.float32,0x3e7d50a1,0xbf1b4cb4,4
+np.float32,0x3f44cc4a,0xbde9ebcc,4
+np.float32,0x7e1a7b0b,0x4216d777,4
+np.float32,0x3f1d9868,0xbe57c0da,4
+np.float32,0x1ebee2,0xc21a3263,4
+np.float32,0x31685f,0xc2195f6e,4
+np.float32,0x368a8e,0xc2193379,4
+np.float32,0xa9847,0xc21c0c2e,4
+np.float32,0x3bd3b3,0xc2190a56,4
+np.float32,0x3961e4,0xc2191ce3,4
+np.float32,0x7e13a243,0x4216c34e,4
+np.float32,0x7f7b1790,0x421a17ff,4
+np.float32,0x3e55f020,0xbf2e1545,4
+np.float32,0x3f513861,0xbdb37aa8,4
+np.float32,0x3dd9e754,0xbf791ad2,4
+np.float32,0x5e8d86,0xc2183ec9,4
+np.float32,0x26b796,0xc219cbdd,4
+np.float32,0x429daa,0xc218da89,4
+np.float32,0x3f477caa,0xbdddd9ba,4
+np.float32,0x3f0e5114,0xbe828d45,4
+np.float32,0x3f54f362,0xbda3c286,4
+np.float32,0x6eac1c,0xc217f8c8,4
+np.float32,0x3f04c479,0xbe91fef5,4
+np.float32,0x3e993765,0xbf06228e,4
+np.float32,0x3eafd99f,0xbeeda21b,4
+np.float32,0x3f2a759e,0xbe34db96,4
+np.float32,0x3f05adfb,0xbe907937,4
+np.float32,0x3f6e2dfc,0xbd005980,4
+np.float32,0x3f2f2daa,0xbe28b6b5,4
+np.float32,0x15e746,0xc21ac931,4
+np.float32,0x7d34ca26,0x4214b4e5,4
+np.float32,0x7ebd175c,0x4218659f,4
+np.float32,0x7f1ed26b,0x42194c4c,4
+np.float32,0x2588b,0xc21eaab0,4
+np.float32,0x3f0065e3,0xbe996fe2,4
+np.float32,0x3f610376,0xbd658122,4
+np.float32,0x451995,0xc218ca41,4
+np.float32,0x70e083,0xc217f002,4
+np.float32,0x7e19821a,0x4216d4a8,4
+np.float32,0x3e7cd9a0,0xbf1b80fb,4
+np.float32,0x7f1a8f18,0x42194033,4
+np.float32,0x3f008fee,0xbe99271f,4
+np.float32,0xff7fffff,0x7fc00000,4
+np.float32,0x7f31d826,0x42197e9b,4
+np.float32,0x3f18cf12,0xbe657838,4
+np.float32,0x3e5c1bc7,0xbf2aebf9,4
+np.float32,0x3e3d3993,0xbf3bbaf8,4
+np.float32,0x68457a,0xc2181347,4
+np.float32,0x7ddf7561,0x42164761,4
+np.float32,0x7f47341b,0x4219b10c,4
+np.float32,0x4d3ecd,0xc21898b2,4
+np.float32,0x7f43dee8,0x4219a98b,4
+np.float32,0x3f0def7c,0xbe8325f5,4
+np.float32,0x3d5a551f,0xbfa2f994,4
+np.float32,0x7ed26602,0x4218951b,4
+np.float32,0x3ee7fa5b,0xbeb0099a,4
+np.float32,0x7ef74ea8,0x4218dcfc,4
+np.float32,0x6a3bb2,0xc2180afd,4
+np.float32,0x7f4c1e6e,0x4219bbe3,4
+np.float32,0x3e26f625,0xbf49a5a2,4
+np.float32,0xb8482,0xc21be70b,4
+np.float32,0x3f32f077,0xbe1f445b,4
+np.float32,0x7dd694b6,0x4216355a,4
+np.float32,0x7f3d62fd,0x42199a92,4
+np.float32,0x3f48e41a,0xbdd79cbf,4
+np.float32,0x338fc3,0xc2194c75,4
+np.float32,0x3e8355f0,0xbf174462,4
+np.float32,0x7f487e83,0x4219b3eb,4
+np.float32,0x2227f7,0xc21a039b,4
+np.float32,0x7e4383dd,0x4217403a,4
+np.float32,0x52d28b,0xc21879b2,4
+np.float32,0x12472c,0xc21b19a9,4
+np.float32,0x353530,0xc2193e7b,4
+np.float32,0x3f4e4728,0xbdc0137a,4
+np.float32,0x3bf169,0xc2190979,4
+np.float32,0x3eb3ee2e,0xbee8885f,4
+np.float32,0x3f03e3c0,0xbe937892,4
+np.float32,0x3c9f8408,0xbfdaf47f,4
+np.float32,0x40e792,0xc218e61b,4
+np.float32,0x5a6b29,0xc21852ab,4
+np.float32,0x7f268b83,0x4219616a,4
+np.float32,0x3ee25997,0xbeb57fa7,4
+np.float32,0x3f175324,0xbe69cf53,4
+np.float32,0x3f781d91,0xbc5e9827,4
+np.float32,0x7dba5210,0x4215f68c,4
+np.float32,0x7f1e66,0xc217bb2b,4
+np.float32,0x7f7fffff,0x421a209b,4
+np.float32,0x3f646202,0xbd4b10b8,4
+np.float32,0x575248,0xc218622b,4
+np.float32,0x7c67faa1,0x4212bb42,4
+np.float32,0x7f1683f2,0x42193469,4
+np.float32,0x1a3864,0xc21a7931,4
+np.float32,0x7f30ad75,0x42197bae,4
+np.float32,0x7f1c9d05,0x42194612,4
+np.float32,0x3e791795,0xbf1d2b2c,4
+np.float32,0x7e9ebc19,0x421817cd,4
+np.float32,0x4999b7,0xc218ae31,4
+np.float32,0x3d130e2c,0xbfb8f1cc,4
+np.float32,0x3f7e436f,0xbb41bb07,4
+np.float32,0x3ee00241,0xbeb7cf7d,4
+np.float32,0x7e496181,0x42174d5f,4
+np.float32,0x7efe58be,0x4218e978,4
+np.float32,0x3f5e5b0c,0xbd7aa43f,4
+np.float32,0x7ee4c6ab,0x4218ba59,4
+np.float32,0x3f6da8c6,0xbd043d7e,4
+np.float32,0x3e3e6e0f,0xbf3b064b,4
+np.float32,0x3f0143b3,0xbe97f10a,4
+np.float32,0x79170f,0xc217d0c6,4
+np.float32,0x517645,0xc218810f,4
+np.float32,0x3f1f9960,0xbe52226e,4
+np.float32,0x2a8df9,0xc219a1d6,4
+np.float32,0x2300a6,0xc219f8b8,4
+np.float32,0x3ee31355,0xbeb4c97a,4
+np.float32,0x3f20b05f,0xbe4f1ba9,4
+np.float32,0x3ee64249,0xbeb1b0ff,4
+np.float32,0x3a94b7,0xc21913b2,4
+np.float32,0x7ef7ef43,0x4218de1d,4
+np.float32,0x3f1abb5d,0xbe5fe872,4
+np.float32,0x7f65360b,0x4219ef72,4
+np.float32,0x3d315d,0xc219004c,4
+np.float32,0x3f26bbc4,0xbe3eafb9,4
+np.float32,0x3ee8c6e9,0xbeaf45de,4
+np.float32,0x7e5f1452,0x42177ae1,4
+np.float32,0x3f32e777,0xbe1f5aba,4
+np.float32,0x4d39a1,0xc21898d0,4
+np.float32,0x3e59ad15,0xbf2c2841,4
+np.float32,0x3f4be746,0xbdca5fc4,4
+np.float32,0x72e4fd,0xc217e821,4
+np.float32,0x1af0b8,0xc21a6d25,4
+np.float32,0x3f311147,0xbe23f18d,4
+np.float32,0x3f1ecebb,0xbe545880,4
+np.float32,0x7e90d293,0x4217ef02,4
+np.float32,0x3e3b366a,0xbf3ceb46,4
+np.float32,0x3f133239,0xbe761c96,4
+np.float32,0x7541ab,0xc217df15,4
+np.float32,0x3d8c8275,0xbf94f1a1,4
+np.float32,0x483b92,0xc218b689,4
+np.float32,0x3eb0dbed,0xbeec5c6b,4
+np.float32,0x3f00c676,0xbe98c8e2,4
+np.float32,0x3f445ac2,0xbdebed7c,4
+np.float32,0x3d2af4,0xc219007a,4
+np.float32,0x7f196ee1,0x42193cf2,4
+np.float32,0x290c94,0xc219b1db,4
+np.float32,0x3f5dbdc9,0xbd7f9019,4
+np.float32,0x3e80c62e,0xbf1974fc,4
+np.float32,0x3ec9ed2c,0xbecee326,4
+np.float32,0x7f469d60,0x4219afbb,4
+np.float32,0x3f698413,0xbd2386ce,4
+np.float32,0x42163f,0xc218de14,4
+np.float32,0x67a554,0xc21815f4,4
+np.float32,0x3f4bff74,0xbdc9f651,4
+np.float32,0x16a743,0xc21aba39,4
+np.float32,0x2eb8b0,0xc219784b,4
+np.float32,0x3eed9be1,0xbeaab45b,4
+np.float64,0x7fe0d76873e1aed0,0x40733f9d783bad7a,1
+np.float64,0x3fe22626bb244c4d,0xbfcf86a59864eea2,1
+np.float64,0x7f874113d02e8227,0x407324f54c4015b8,1
+np.float64,0x3fe40a46a9e8148d,0xbfca0411f533fcb9,1
+np.float64,0x3fd03932eea07266,0xbfe312bc9cf5649e,1
+np.float64,0x7fee5d2a1b3cba53,0x407343b5f56367a0,1
+np.float64,0x3feb7bda4a76f7b5,0xbfb0ea2c6edc784a,1
+np.float64,0x3fd6cd831a2d9b06,0xbfdcaf2e1a5faf51,1
+np.float64,0x98324e273064a,0xc0733e0e4c6d11c6,1
+np.float64,0x7fe1dd63b363bac6,0x4073400667c405c3,1
+np.float64,0x3fec5971f178b2e4,0xbfaaef32a7d94563,1
+np.float64,0x17abc07e2f579,0xc0734afca4da721e,1
+np.float64,0x3feec6ab5cfd8d57,0xbf9157f3545a8235,1
+np.float64,0x3fe3ae9622a75d2c,0xbfcb04b5ad254581,1
+np.float64,0x7fea73d854b4e7b0,0x407342c0a548f4c5,1
+np.float64,0x7fe29babf4653757,0x4073404eeb5fe714,1
+np.float64,0x7fd3a55d85a74aba,0x40733bde72e86c27,1
+np.float64,0x3fe83ce305f079c6,0xbfbee3511e85e0f1,1
+np.float64,0x3fd72087ea2e4110,0xbfdc4ab30802d7c2,1
+np.float64,0x7feb54ddab76a9ba,0x407342facb6f3ede,1
+np.float64,0xc57e34a18afd,0xc0734f82ec815baa,1
+np.float64,0x7a8cb97ef5198,0xc0733f8fb3777a67,1
+np.float64,0x7fe801032c300205,0x40734213dbe4eda9,1
+np.float64,0x3aefb1f475df7,0xc07344a5f08a0584,1
+np.float64,0x7fee85f1dd3d0be3,0x407343bf4441c2a7,1
+np.float64,0x3fdc7f1055b8fe21,0xbfd67d300630e893,1
+np.float64,0xe8ecddb3d1d9c,0xc0733b194f18f466,1
+np.float64,0x3fdf2b23c73e5648,0xbfd3ff6872c1f887,1
+np.float64,0x3fdba4aef2b7495e,0xbfd7557205e18b7b,1
+np.float64,0x3fe2ac34c6e5586a,0xbfcdf1dac69bfa08,1
+np.float64,0x3fc9852628330a4c,0xbfe66914f0fb9b0a,1
+np.float64,0x7fda211acf344235,0x40733dd9c2177aeb,1
+np.float64,0x3fe9420eb432841d,0xbfba4dd969a32575,1
+np.float64,0xb2f9d1ed65f3a,0xc0733cedfb6527ff,1
+np.float64,0x3fe9768a68f2ed15,0xbfb967c39c35c435,1
+np.float64,0x7fe8268462b04d08,0x4073421eaed32734,1
+np.float64,0x3fcf331f063e663e,0xbfe39e2f4b427ca9,1
+np.float64,0x7fd4eb9e2b29d73b,0x40733c4e4141418d,1
+np.float64,0x7fd2bba658a5774c,0x40733b89cd53d5b1,1
+np.float64,0x3fdfdf04913fbe09,0xbfd360c7fd9d251b,1
+np.float64,0x3fca5bfd0534b7fa,0xbfe5f5f844b2b20c,1
+np.float64,0x3feacd5032f59aa0,0xbfb3b5234ba8bf7b,1
+np.float64,0x7fe9241cec724839,0x4073426631362cec,1
+np.float64,0x3fe57aca20eaf594,0xbfc628e3ac2c6387,1
+np.float64,0x3fec6553ca38caa8,0xbfaa921368d3b222,1
+np.float64,0x3fe1e9676563d2cf,0xbfd020f866ba9b24,1
+np.float64,0x3fd5590667aab20d,0xbfde8458af5a4fd6,1
+np.float64,0x3fdf7528f43eea52,0xbfd3bdb438d6ba5e,1
+np.float64,0xb8dddc5571bbc,0xc0733cb4601e5bb2,1
+np.float64,0xe6d4e1fbcda9c,0xc0733b295ef4a4ba,1
+np.float64,0x3fe7019d962e033b,0xbfc257c0a6e8de16,1
+np.float64,0x3f94ef585029deb1,0xbffb07e5dfb0e936,1
+np.float64,0x7fc863b08030c760,0x4073388e28d7b354,1
+np.float64,0xf684443bed089,0xc0733ab46cfbff9a,1
+np.float64,0x7fe00e901d201d1f,0x40733f489c05a0f0,1
+np.float64,0x9e5c0a273cb82,0xc0733dc7af797e19,1
+np.float64,0x7fe49734f0692e69,0x4073410303680df0,1
+np.float64,0x7fb7b584442f6b08,0x4073338acff72502,1
+np.float64,0x3f99984c30333098,0xbff9a2642a6ed8cc,1
+np.float64,0x7fea2fcda8745f9a,0x407342aeae7f5e64,1
+np.float64,0xe580caadcb01a,0xc0733b33a3639217,1
+np.float64,0x1899ab3831336,0xc0734ab823729417,1
+np.float64,0x39bd4c76737aa,0xc07344ca6fac6d21,1
+np.float64,0xd755b2dbaeab7,0xc0733ba4fe19f2cc,1
+np.float64,0x3f952bebf82a57d8,0xbffaf3e7749c2512,1
+np.float64,0x3fe62ee5d72c5dcc,0xbfc45e3cb5baad08,1
+np.float64,0xb1264a7d624ca,0xc0733d003a1d0a66,1
+np.float64,0x3fc4bd1bcd297a38,0xbfe94b3058345c46,1
+np.float64,0x7fc5758bb32aeb16,0x407337aa7805497f,1
+np.float64,0x3fb0edcaf421db96,0xbff2dfb09c405294,1
+np.float64,0x3fd240fceaa481fa,0xbfe16f356bb36134,1
+np.float64,0x38c0c62a7181a,0xc07344e916d1e9b7,1
+np.float64,0x3fe98f2b3bf31e56,0xbfb8fc6eb622a820,1
+np.float64,0x3fe2bdf99c257bf3,0xbfcdbd0dbbae4d0b,1
+np.float64,0xce4b390d9c967,0xc0733bf14ada3134,1
+np.float64,0x3fd2ad607ba55ac1,0xbfe11da15167b37b,1
+np.float64,0x3fd8154f11b02a9e,0xbfdb2a6fabb9a026,1
+np.float64,0xf37849fde6f09,0xc0733aca8c64344c,1
+np.float64,0x3fcbae43b2375c87,0xbfe547f267c8e570,1
+np.float64,0x3fcd46fd7d3a8dfb,0xbfe48070f7232929,1
+np.float64,0x7fcdd245273ba489,0x407339f3d907b101,1
+np.float64,0x3fac75cd0838eb9a,0xbff4149d177b057b,1
+np.float64,0x7fe8ff3fd7f1fe7f,0x4073425bf968ba6f,1
+np.float64,0x7febadaa4df75b54,0x407343113a91f0e9,1
+np.float64,0x7fd5e4649c2bc8c8,0x40733c9f0620b065,1
+np.float64,0x903429812069,0xc07351b255e27887,1
+np.float64,0x3fe1d8c51c63b18a,0xbfd03ad448c1f1ee,1
+np.float64,0x3fe573ea646ae7d5,0xbfc63ab0bfd0e601,1
+np.float64,0x3f83b3f3c02767e8,0xc00022677e310649,1
+np.float64,0x7fd15d1582a2ba2a,0x40733b02c469c1d6,1
+np.float64,0x3fe63d3dabec7a7b,0xbfc43a56ee97b27e,1
+np.float64,0x7fe3a452fb2748a5,0x407340af1973c228,1
+np.float64,0x3fafac6b303f58d6,0xbff35651703ae9f2,1
+np.float64,0x513ddd24a27bc,0xc073426af96aaebb,1
+np.float64,0x3fef152246be2a45,0xbf89df79d7719282,1
+np.float64,0x3fe8c923e9f19248,0xbfbc67228e8db5f6,1
+np.float64,0x3fd6e2325fadc465,0xbfdc9602fb0b950f,1
+np.float64,0x3fe9616815f2c2d0,0xbfb9c4311a3b415b,1
+np.float64,0x2fe4e4005fc9d,0xc0734616fe294395,1
+np.float64,0x3fbceb02dc39d606,0xbfee4e68f1c7886f,1
+np.float64,0x7fe35e843d66bd07,0x407340963b066ad6,1
+np.float64,0x7fecd6c648f9ad8c,0x4073435a4c176e94,1
+np.float64,0x7fcbd72bf437ae57,0x4073397994b85665,1
+np.float64,0x3feff6443b3fec88,0xbf40eb380d5318ae,1
+np.float64,0x7fb9373cf6326e79,0x407333f869edef08,1
+np.float64,0x63790d9cc6f22,0xc0734102d4793cda,1
+np.float64,0x3f9de6efe83bcde0,0xbff88db6f0a6b56e,1
+np.float64,0xe00f2dc1c01f,0xc0734ea26ab84ff2,1
+np.float64,0xd7a9aa8baf536,0xc0733ba248fa33ab,1
+np.float64,0x3fee0089ea7c0114,0xbf9cab936ac31c4b,1
+np.float64,0x3fdec0d51cbd81aa,0xbfd45ed8878c5860,1
+np.float64,0x7fe91bf5e9f237eb,0x40734263f005081d,1
+np.float64,0x34ea7d1e69d50,0xc07345659dde7444,1
+np.float64,0x7fe67321a3ace642,0x4073419cc8130d95,1
+np.float64,0x9d1aeb2f3a35e,0xc0733dd5d506425c,1
+np.float64,0x7fbb01df003603bd,0x4073347282f1391d,1
+np.float64,0x42b945b285729,0xc07343c92d1bbef9,1
+np.float64,0x7fc92799b8324f32,0x407338c51e3f0733,1
+np.float64,0x3fe119c19b223383,0xbfd16ab707f65686,1
+np.float64,0x3fc9f9ac5333f359,0xbfe62a2f91ec0dff,1
+np.float64,0x3fd820d5a8b041ab,0xbfdb1d2586fe7b18,1
+np.float64,0x10000000000000,0xc0733a7146f72a42,1
+np.float64,0x3fe7e1543eafc2a8,0xbfc045362889592d,1
+np.float64,0xcbc0e1819783,0xc0734f4b68e05b1c,1
+np.float64,0xeb57e411d6afd,0xc0733b06efec001a,1
+np.float64,0xa9b74b47536ea,0xc0733d4c7bd06ddc,1
+np.float64,0x3fe56d4022eada80,0xbfc64bf8c7e3dd59,1
+np.float64,0x3fd445ca27288b94,0xbfdff40aecd0f882,1
+np.float64,0x3fe5af1cf5ab5e3a,0xbfc5a21d83699a04,1
+np.float64,0x7fed3431eb7a6863,0x40734370aa6131e1,1
+np.float64,0x3fd878dea1b0f1bd,0xbfdab8730dc00517,1
+np.float64,0x7ff8000000000000,0x7ff8000000000000,1
+np.float64,0x3feba9fcc1f753fa,0xbfb03027dcecbf65,1
+np.float64,0x7fca4feed6349fdd,0x4073391526327eb0,1
+np.float64,0x3fe7748ddbaee91c,0xbfc144b438218065,1
+np.float64,0x3fb5fbd94c2bf7b3,0xbff10ee6342c21a0,1
+np.float64,0x3feb603b97f6c077,0xbfb15a1f99d6d25e,1
+np.float64,0x3fe2e6fc8ce5cdf9,0xbfcd43edd7f3b4e6,1
+np.float64,0x7feb2b31f7765663,0x407342f02b306688,1
+np.float64,0x3fe290e2282521c4,0xbfce436deb8dbcf3,1
+np.float64,0x3fe3d5adf9e7ab5c,0xbfca96b8aa55d942,1
+np.float64,0x691899f2d2314,0xc07340a1026897c8,1
+np.float64,0x7fe468b008e8d15f,0x407340f33eadc628,1
+np.float64,0x3fb3a4c416274988,0xbff1d71da539a56e,1
+np.float64,0x3fe2442b29e48856,0xbfcf2b0037322661,1
+np.float64,0x3f376fbc7e6ef,0xc073442939a84643,1
+np.float64,0x3fe7c78d65ef8f1b,0xbfc08157cff411de,1
+np.float64,0xd4f27acba9e50,0xc0733bb8d38daa50,1
+np.float64,0x5198919ea3313,0xc07342633ba7cbea,1
+np.float64,0x7fd09f66f0a13ecd,0x40733ab5310b4385,1
+np.float64,0x3fdfe5531dbfcaa6,0xbfd35b487c7e739f,1
+np.float64,0x3fc4b0fecc2961fe,0xbfe95350c38c1640,1
+np.float64,0x7fd5ae21962b5c42,0x40733c8db78b7250,1
+np.float64,0x3fa4a8fcd42951fa,0xbff64e62fe602b72,1
+np.float64,0x7fc8e0e25831c1c4,0x407338b179b91223,1
+np.float64,0x7fdde1df6f3bc3be,0x40733ec87f9f027e,1
+np.float64,0x3fd8b9ad86b1735b,0xbfda6f385532c41b,1
+np.float64,0x3fd9f20ee933e41e,0xbfd91872fd858597,1
+np.float64,0x7feb35332df66a65,0x407342f2b9c715f0,1
+np.float64,0x7fe783dc7eaf07b8,0x407341ef41873706,1
+np.float64,0x7fceee929f3ddd24,0x40733a34e3c660fd,1
+np.float64,0x985b58d730b6b,0xc0733e0c6cfbb6f8,1
+np.float64,0x3fef4bb55cfe976b,0xbf83cb246c6f2a78,1
+np.float64,0x3fe218014f243003,0xbfcfb20ac683e1f6,1
+np.float64,0x7fe43b9fbea8773e,0x407340e3d5d5d29e,1
+np.float64,0x7fe148c74c62918e,0x40733fcba4367b8b,1
+np.float64,0x3feea4ad083d495a,0xbf93443917f3c991,1
+np.float64,0x8bcf6311179ed,0xc0733ea54d59dd31,1
+np.float64,0xf4b7a2dbe96f5,0xc0733ac175182401,1
+np.float64,0x543338baa8668,0xc073422b59165fe4,1
+np.float64,0x3fdb467317368ce6,0xbfd7b4d515929635,1
+np.float64,0x7fe3bbbc89e77778,0x407340b75cdf3de7,1
+np.float64,0x7fe693377aad266e,0x407341a6af60a0f1,1
+np.float64,0x3fc66210502cc421,0xbfe83bb940610a24,1
+np.float64,0x7fa75638982eac70,0x40732e9da476b816,1
+np.float64,0x3fe0d72a4761ae55,0xbfd1d7c82c479fab,1
+np.float64,0x97dec0dd2fbd8,0xc0733e121e072804,1
+np.float64,0x3fef33ec8c7e67d9,0xbf86701be6be8df1,1
+np.float64,0x7fcfca9b423f9536,0x40733a65a51efb94,1
+np.float64,0x9f2215633e443,0xc0733dbf043de9ed,1
+np.float64,0x2469373e48d28,0xc07347fe9e904b77,1
+np.float64,0x7fecc2e18cb985c2,0x407343557f58dfa2,1
+np.float64,0x3fde4acbfdbc9598,0xbfd4ca559e575e74,1
+np.float64,0x3fd6b11cf1ad623a,0xbfdcd1e17ef36114,1
+np.float64,0x3fc19ec494233d89,0xbfeb8ef228e8826a,1
+np.float64,0x4c89ee389913e,0xc07342d50c904f61,1
+np.float64,0x88c2046f11841,0xc0733ecc91369431,1
+np.float64,0x7fc88c13fd311827,0x40733899a125b392,1
+np.float64,0x3fcebd893a3d7b12,0xbfe3d2f35ab93765,1
+np.float64,0x3feb582a1476b054,0xbfb17ae8ec6a0465,1
+np.float64,0x7fd4369e5da86d3c,0x40733c1118b8cd67,1
+np.float64,0x3fda013fc1340280,0xbfd90831b85e98b2,1
+np.float64,0x7fed33d73fba67ad,0x4073437094ce1bd9,1
+np.float64,0x3fed3191053a6322,0xbfa468cc26a8f685,1
+np.float64,0x3fc04ed51c209daa,0xbfeca24a6f093bca,1
+np.float64,0x3fee4ac8763c9591,0xbf986458abbb90b5,1
+np.float64,0xa2d39dd145a74,0xc0733d9633651fbc,1
+np.float64,0x3fe7d9f86f2fb3f1,0xbfc0565a0b059f1c,1
+np.float64,0x3fe3250144e64a03,0xbfcc8eb2b9ae494b,1
+np.float64,0x7fe2b29507a56529,0x4073405774492075,1
+np.float64,0x7fdcdfcbe2b9bf97,0x40733e8b736b1bd8,1
+np.float64,0x3fc832730f3064e6,0xbfe7267ac9b2e7c3,1
+np.float64,0x3fc7e912e52fd226,0xbfe750dfc0aeae57,1
+np.float64,0x7fc960472f32c08d,0x407338d4b4cb3957,1
+np.float64,0x3fbdf182ea3be306,0xbfedd27150283ffb,1
+np.float64,0x3fd1e9359823d26b,0xbfe1b2ac7fd25f8d,1
+np.float64,0x7fbcf75f6039eebe,0x407334ef13eb16f8,1
+np.float64,0x3fe5a3c910eb4792,0xbfc5bf2f57c5d643,1
+np.float64,0x3fcf4f2a6e3e9e55,0xbfe391b6f065c4b8,1
+np.float64,0x3fee067873fc0cf1,0xbf9c53af0373fc0e,1
+np.float64,0xd3f08b85a7e12,0xc0733bc14357e686,1
+np.float64,0x7ff0000000000000,0x7ff0000000000000,1
+np.float64,0x3fc8635f6430c6bf,0xbfe70a7dc77749a7,1
+np.float64,0x3fe3ff5c52a7feb9,0xbfca22617c6636d5,1
+np.float64,0x3fbbae91fa375d24,0xbfeee9d4c300543f,1
+np.float64,0xe3f71b59c7ee4,0xc0733b3f99187375,1
+np.float64,0x7fca93d3be3527a6,0x40733926fd48ecd6,1
+np.float64,0x3fcd29f7223a53ee,0xbfe48e3edf32fe57,1
+np.float64,0x7fdc4ef6f8389ded,0x40733e68401cf2a6,1
+np.float64,0xe009bc81c014,0xc0734ea295ee3e5b,1
+np.float64,0x61f56c78c3eae,0xc073411e1dbd7c54,1
+np.float64,0x3fde131928bc2632,0xbfd4fda024f6927c,1
+np.float64,0x3fb21ee530243dca,0xbff266aaf0358129,1
+np.float64,0x7feaac82a4f55904,0x407342cf7809d9f9,1
+np.float64,0x3fe66ab177ecd563,0xbfc3c92d4d522819,1
+np.float64,0xfe9f9c2bfd3f4,0xc0733a7ade3a88a7,1
+np.float64,0x7fd0c5217c218a42,0x40733ac4e4c6dfa5,1
+np.float64,0x430f4ae6861ea,0xc07343c03d8a9442,1
+np.float64,0x494bff2a92981,0xc073432209d2fd16,1
+np.float64,0x3f8860e9d030c1d4,0xbffeca059ebf5e89,1
+np.float64,0x3fe43732dc286e66,0xbfc98800388bad2e,1
+np.float64,0x6443b60ec8877,0xc07340f4bab11827,1
+np.float64,0x3feda9be6d7b537d,0xbfa0dcb9a6914069,1
+np.float64,0x3fc5ceb6772b9d6d,0xbfe89868c881db70,1
+np.float64,0x3fbdf153023be2a6,0xbfedd2878c3b4949,1
+np.float64,0x7fe8f6b8e8f1ed71,0x407342599a30b273,1
+np.float64,0x3fea6fbdb8b4df7b,0xbfb53bf66f71ee96,1
+np.float64,0xc7ac3dbb8f588,0xc0733c2b525b7963,1
+np.float64,0x3fef3a91f77e7524,0xbf85b2bd3adbbe31,1
+np.float64,0x3f887cb97030f973,0xbffec21ccbb5d22a,1
+np.float64,0x8b2f1c9f165e4,0xc0733ead49300951,1
+np.float64,0x2c1cb32058397,0xc07346a951bd8d2b,1
+np.float64,0x3fe057edd620afdc,0xbfd2acf1881b7e99,1
+np.float64,0x7f82e9530025d2a5,0x4073238591dd52ce,1
+np.float64,0x3fe4e03dff69c07c,0xbfc7be96c5c006fc,1
+np.float64,0x52727b4aa4e50,0xc0734250c58ebbc1,1
+np.float64,0x3f99a62160334c43,0xbff99ea3ca09d8f9,1
+np.float64,0x3fd5314b4faa6297,0xbfdeb843daf01e03,1
+np.float64,0x3fefde89e13fbd14,0xbf5d1facb7a1e9de,1
+np.float64,0x7fb460f1a228c1e2,0x4073327d8cbc5f86,1
+np.float64,0xeb93efb3d727e,0xc0733b052a4990e4,1
+np.float64,0x3fe884baecf10976,0xbfbd9ba9cfe23713,1
+np.float64,0x7fefffffffffffff,0x40734413509f79ff,1
+np.float64,0x149dc7c6293ba,0xc0734bf26b1df025,1
+np.float64,0x64188f88c8313,0xc07340f7b8e6f4b5,1
+np.float64,0x3fdfac314abf5863,0xbfd38d3e9dba1b0e,1
+np.float64,0x3fd72052a42e40a5,0xbfdc4af30ee0b245,1
+np.float64,0x7fdd951f743b2a3e,0x40733eb68fafa838,1
+np.float64,0x65a2dd5acb45c,0xc07340dc8ed625e1,1
+np.float64,0x7fe89a79997134f2,0x4073423fbceb1cbe,1
+np.float64,0x3fe70a000d6e1400,0xbfc24381e09d02f7,1
+np.float64,0x3fe2cec160259d83,0xbfcd8b5e92354129,1
+np.float64,0x3feb9ef77a773def,0xbfb05c7b2ee6f388,1
+np.float64,0xe0d66689c1acd,0xc0733b582c779620,1
+np.float64,0x3fee86bd0ffd0d7a,0xbf94f7870502c325,1
+np.float64,0x186afc6230d60,0xc0734ac55fb66d5d,1
+np.float64,0xc0631f4b80c64,0xc0733c6d7149d373,1
+np.float64,0x3fdad1b87735a371,0xbfd82cca73ec663b,1
+np.float64,0x7fe7f6d313efeda5,0x40734210e84576ab,1
+np.float64,0x7fd7b7fce6af6ff9,0x40733d2d92ffdaaf,1
+np.float64,0x3fe6f35a28ade6b4,0xbfc27a4239b540c3,1
+np.float64,0x7fdb0b834eb61706,0x40733e17073a61f3,1
+np.float64,0x82f4661105e8d,0xc0733f19b34adeed,1
+np.float64,0x3fc77230112ee460,0xbfe796a7603c0d16,1
+np.float64,0x8000000000000000,0xfff0000000000000,1
+np.float64,0x7fb8317bc63062f7,0x407333aec761a739,1
+np.float64,0x7fd165609a22cac0,0x40733b061541ff15,1
+np.float64,0x3fed394768fa728f,0xbfa42e1596e1faf6,1
+np.float64,0x7febab693d7756d1,0x40734310a9ac828e,1
+np.float64,0x7fe809a69230134c,0x407342165b9acb69,1
+np.float64,0x3fc091d38f2123a7,0xbfec69a70fc23548,1
+np.float64,0x3fb2a8f5dc2551ec,0xbff2327f2641dd0d,1
+np.float64,0x7fc60b6fe02c16df,0x407337da5adc342c,1
+np.float64,0x3fefa53c3bbf4a78,0xbf73d1be15b73b00,1
+np.float64,0x7fee09c1717c1382,0x407343a2c479e1cb,1
+np.float64,0x8000000000000001,0x7ff8000000000000,1
+np.float64,0x3fede0b2733bc165,0xbf9e848ac2ecf604,1
+np.float64,0x3fee2ac331bc5586,0xbf9a3b699b721c9a,1
+np.float64,0x3fd4db12d829b626,0xbfdf2a413d1e453a,1
+np.float64,0x7fe605230dec0a45,0x4073417a67db06be,1
+np.float64,0x3fe378b2bf26f165,0xbfcb9dbb2b6d6832,1
+np.float64,0xc1d4c1ab83a98,0xc0733c60244cadbf,1
+np.float64,0x3feb15500e762aa0,0xbfb28c071d5efc22,1
+np.float64,0x3fe36225a626c44b,0xbfcbde4259e9047e,1
+np.float64,0x3fe7c586a72f8b0d,0xbfc08614b13ed4b2,1
+np.float64,0x7fb0f2d8cc21e5b1,0x40733135b2c7dd99,1
+np.float64,0x5957f3feb2aff,0xc07341c1df75638c,1
+np.float64,0x3fca4851bd3490a3,0xbfe6005ae5279485,1
+np.float64,0x824217d904843,0xc0733f232fd58f0f,1
+np.float64,0x4f9332269f267,0xc073428fd8e9cb32,1
+np.float64,0x3fea6f087374de11,0xbfb53ef0d03918b2,1
+np.float64,0x3fd9409ab4328135,0xbfd9d9231381e2b8,1
+np.float64,0x3fdba03b00374076,0xbfd759ec94a7ab5b,1
+np.float64,0x3fe0ce3766619c6f,0xbfd1e6912582ccf0,1
+np.float64,0x3fabd45ddc37a8bc,0xbff43c78d3188423,1
+np.float64,0x3fc3cadd592795bb,0xbfe9f1576c9b2c79,1
+np.float64,0x3fe10df049621be1,0xbfd17df2f2c28022,1
+np.float64,0x945b5d1328b6c,0xc0733e3bc06f1e75,1
+np.float64,0x7fc1c3742b2386e7,0x4073365a403d1051,1
+np.float64,0x7fdc957138b92ae1,0x40733e7977717586,1
+np.float64,0x7f943fa1a0287f42,0x407328d01de143f5,1
+np.float64,0x3fec9631c4392c64,0xbfa914b176d8f9d2,1
+np.float64,0x3fd8e7c008b1cf80,0xbfda3b9d9b6da8f4,1
+np.float64,0x7222f9fee4460,0xc073400e371516cc,1
+np.float64,0x3fe890e43eb121c8,0xbfbd64921462e823,1
+np.float64,0x3fcfd7fe2a3faffc,0xbfe3557e2f207800,1
+np.float64,0x3fed5dd1c1babba4,0xbfa318bb20db64e6,1
+np.float64,0x3fe6aa34c66d546a,0xbfc32c8a8991c11e,1
+np.float64,0x8ca79801196,0xc0736522bd5adf6a,1
+np.float64,0x3feb274079364e81,0xbfb2427b24b0ca20,1
+np.float64,0x7fe04927e4a0924f,0x40733f61c96f7f89,1
+np.float64,0x7c05f656f80bf,0xc0733f7a70555b4e,1
+np.float64,0x7fe97819eff2f033,0x4073427d4169b0f8,1
+np.float64,0x9def86e33bdf1,0xc0733dcc740b7175,1
+np.float64,0x7fedd1ef3f3ba3dd,0x40734395ceab8238,1
+np.float64,0x77bed86cef7dc,0xc0733fb8e0e9bf73,1
+np.float64,0x9274b41b24e97,0xc0733e52b16dff71,1
+np.float64,0x8010000000000000,0x7ff8000000000000,1
+np.float64,0x9c977855392ef,0xc0733ddba7d421d9,1
+np.float64,0xfb4560a3f68ac,0xc0733a9271e6a118,1
+np.float64,0xa67d9f394cfb4,0xc0733d6e9d58cc94,1
+np.float64,0x3fbfa766b03f4ecd,0xbfed0cccfecfc900,1
+np.float64,0x3fe177417522ee83,0xbfd0d45803bff01a,1
+np.float64,0x7fe85e077bb0bc0e,0x4073422e957a4aa3,1
+np.float64,0x7feeb0a6883d614c,0x407343c8f6568f7c,1
+np.float64,0xbab82edb75706,0xc0733ca2a2b20094,1
+np.float64,0xfadb44bdf5b69,0xc0733a9561b7ec04,1
+np.float64,0x3fefb9b82b3f7370,0xbf6ea776b2dcc3a9,1
+np.float64,0x7fe080ba8a610174,0x40733f795779b220,1
+np.float64,0x3f87faa1c02ff544,0xbffee76acafc92b7,1
+np.float64,0x7fed474108fa8e81,0x4073437531d4313e,1
+np.float64,0x3fdb7b229336f645,0xbfd77f583a4a067f,1
+np.float64,0x256dbf0c4adb9,0xc07347cd94e6fa81,1
+np.float64,0x3fd034ae25a0695c,0xbfe3169c15decdac,1
+np.float64,0x3a72177274e44,0xc07344b4cf7d68cd,1
+np.float64,0x7fa2522d5c24a45a,0x40732cef2f793470,1
+np.float64,0x3fb052bdde20a57c,0xbff3207fd413c848,1
+np.float64,0x3fdccfecbbb99fd9,0xbfd62ec04a1a687a,1
+np.float64,0x3fd403ac53280759,0xbfe027a31df2c8cc,1
+np.float64,0x3fab708e4036e11d,0xbff45591df4f2e8b,1
+np.float64,0x7fcfc001993f8002,0x40733a63539acf9d,1
+np.float64,0x3fd2b295dfa5652c,0xbfe119c1b476c536,1
+np.float64,0x7fe8061262b00c24,0x4073421552ae4538,1
+np.float64,0xffefffffffffffff,0x7ff8000000000000,1
+np.float64,0x7fed52093ffaa411,0x40734377c072a7e8,1
+np.float64,0xf3df902fe7bf2,0xc0733ac79a75ff7a,1
+np.float64,0x7fe13d382e227a6f,0x40733fc6fd0486bd,1
+np.float64,0x3621d5086c43b,0xc073453d31effbcd,1
+np.float64,0x3ff0000000000000,0x0,1
+np.float64,0x3fdaffea27b5ffd4,0xbfd7fd139dc1c2c5,1
+np.float64,0x7fea6536dc34ca6d,0x407342bccc564fdd,1
+np.float64,0x7fd478f00c28f1df,0x40733c27c0072fde,1
+np.float64,0x7fa72ef0502e5de0,0x40732e91e83db75c,1
+np.float64,0x7fd302970626052d,0x40733ba3ec6775f6,1
+np.float64,0x7fbb57ab0036af55,0x407334887348e613,1
+np.float64,0x3fda0ff722b41fee,0xbfd8f87b77930330,1
+np.float64,0x1e983ce23d309,0xc073493438f57e61,1
+np.float64,0x7fc90de97c321bd2,0x407338be01ffd4bd,1
+np.float64,0x7fe074b09c20e960,0x40733f7443f0dbe1,1
+np.float64,0x3fed5dec9fbabbd9,0xbfa317efb1fe8a95,1
+np.float64,0x7fdb877632b70eeb,0x40733e3697c88ba8,1
+np.float64,0x7fe4fb0067e9f600,0x40734124604b99e8,1
+np.float64,0x7fd447dc96288fb8,0x40733c1703ab2cce,1
+np.float64,0x3feb2d1e64f65a3d,0xbfb22a781df61c05,1
+np.float64,0xb6c8e6676d91d,0xc0733cc8859a0b91,1
+np.float64,0x3fdc3c2418387848,0xbfd6bec3a3c3cdb5,1
+np.float64,0x3fdecb9ccdbd973a,0xbfd4551c05721a8e,1
+np.float64,0x3feb1100e7762202,0xbfb29db911fe6768,1
+np.float64,0x3fe0444bc2a08898,0xbfd2ce69582e78c1,1
+np.float64,0x7fda403218b48063,0x40733de201d8340c,1
+np.float64,0x3fdc70421238e084,0xbfd68ba4bd48322b,1
+np.float64,0x3fe06e747c60dce9,0xbfd286bcac34a981,1
+np.float64,0x7fc1931d9623263a,0x407336473da54de4,1
+np.float64,0x229914da45323,0xc073485979ff141c,1
+np.float64,0x3fe142f92da285f2,0xbfd1280909992cb6,1
+np.float64,0xf1d02fa9e3a06,0xc0733ad6b19d71a0,1
+np.float64,0x3fb1fe9b0023fd36,0xbff27317d8252c16,1
+np.float64,0x3fa544b9242a8972,0xbff61ac38569bcfc,1
+np.float64,0x3feeb129d4fd6254,0xbf928f23ad20c1ee,1
+np.float64,0xa2510b7f44a22,0xc0733d9bc81ea0a1,1
+np.float64,0x3fca75694d34ead3,0xbfe5e8975b3646c2,1
+np.float64,0x7fece10621b9c20b,0x4073435cc3dd9a1b,1
+np.float64,0x7fe98a57d3b314af,0x4073428239b6a135,1
+np.float64,0x3fe259c62a64b38c,0xbfcee96682a0f355,1
+np.float64,0x3feaaa9b9d755537,0xbfb445779f3359af,1
+np.float64,0xdaadecfdb55be,0xc0733b899338432a,1
+np.float64,0x3fed00eae4fa01d6,0xbfa5dc8d77be5991,1
+np.float64,0x7fcc96c773392d8e,0x407339a8c5cd786e,1
+np.float64,0x3fef7b8b203ef716,0xbf7cff655ecb6424,1
+np.float64,0x7fd4008113a80101,0x40733bfe6552acb7,1
+np.float64,0x7fe99ff035b33fdf,0x407342881753ee2e,1
+np.float64,0x3ee031e87dc07,0xc0734432d736e492,1
+np.float64,0x3fddfe390f3bfc72,0xbfd510f1d9ec3e36,1
+np.float64,0x3fd9ddce74b3bb9d,0xbfd92e2d75a061bb,1
+np.float64,0x7fe5f742edebee85,0x40734176058e3a77,1
+np.float64,0x3fdb04185b360831,0xbfd7f8c63aa5e1c4,1
+np.float64,0xea2b0f43d4562,0xc0733b0fd77c8118,1
+np.float64,0x7fc3f4973527e92d,0x407337293bbb22c4,1
+np.float64,0x3fb9adfb38335bf6,0xbfeff4f3ea85821a,1
+np.float64,0x87fb98750ff73,0xc0733ed6ad83c269,1
+np.float64,0x3fe005721a200ae4,0xbfd33a9f1ebfb0ac,1
+np.float64,0xd9e04fe7b3c0a,0xc0733b901ee257f3,1
+np.float64,0x2c39102658723,0xc07346a4db63bf55,1
+np.float64,0x3f7dc28e003b851c,0xc0011c1d1233d948,1
+np.float64,0x3430fd3868620,0xc073457e24e0b70d,1
+np.float64,0xbff0000000000000,0x7ff8000000000000,1
+np.float64,0x3fd23e45e0247c8c,0xbfe17146bcf87b57,1
+np.float64,0x6599df3ecb33d,0xc07340dd2c41644c,1
+np.float64,0x3fdf074f31be0e9e,0xbfd41f6e9dbb68a5,1
+np.float64,0x7fdd6233f3bac467,0x40733eaa8f674b72,1
+np.float64,0x7fe03e8481607d08,0x40733f5d3df3b087,1
+np.float64,0x3fcc3b79f13876f4,0xbfe501bf3b379b77,1
+np.float64,0xe5d97ae3cbb30,0xc0733b30f47cbd12,1
+np.float64,0x8acbc4a115979,0xc0733eb240a4d2c6,1
+np.float64,0x3fedbdbc48bb7b79,0xbfa0470fd70c4359,1
+np.float64,0x3fde1611103c2c22,0xbfd4fae1fa8e7e5e,1
+np.float64,0x3fe09478bd2128f1,0xbfd246b7e85711dc,1
+np.float64,0x3fd6dfe8f3adbfd2,0xbfdc98ca2f32c1ad,1
+np.float64,0x72ccf274e599f,0xc0734003e5b0da63,1
+np.float64,0xe27c7265c4f8f,0xc0733b4b2d808566,1
+np.float64,0x7fee3161703c62c2,0x407343abe90f5649,1
+np.float64,0xf54fb5c1eaa0,0xc0734e01384fcf78,1
+np.float64,0xcde5924d9bcb3,0xc0733bf4b83c66c2,1
+np.float64,0x3fc46fdbe528dfb8,0xbfe97f55ef5e9683,1
+np.float64,0x7fe513528a2a26a4,0x4073412c69baceca,1
+np.float64,0x3fd29eca4aa53d95,0xbfe128801cd33ed0,1
+np.float64,0x7febb21718b7642d,0x4073431256def857,1
+np.float64,0x3fcab536c0356a6e,0xbfe5c73c59f41578,1
+np.float64,0x7fc7e9f0d82fd3e1,0x4073386b213e5dfe,1
+np.float64,0xb5b121276b624,0xc0733cd33083941c,1
+np.float64,0x7e0dd9bcfc1bc,0xc0733f5d8bf35050,1
+np.float64,0x3fd1c75106238ea2,0xbfe1cd11cccda0f4,1
+np.float64,0x9f060e673e0c2,0xc0733dc03da71909,1
+np.float64,0x7fd915a2f3322b45,0x40733d912af07189,1
+np.float64,0x3fd8cbae4431975d,0xbfda5b02ca661139,1
+np.float64,0x3fde8b411f3d1682,0xbfd48f6f710a53b6,1
+np.float64,0x3fc17a780622f4f0,0xbfebabb10c55255f,1
+np.float64,0x3fde5cbe5f3cb97d,0xbfd4b9e2e0101fb1,1
+np.float64,0x7fd859036530b206,0x40733d5c2252ff81,1
+np.float64,0xb0f5040f61ea1,0xc0733d02292f527b,1
+np.float64,0x3fde5c49ae3cb893,0xbfd4ba4db3ce2cf3,1
+np.float64,0x3fecc4518df988a3,0xbfa7af0bfc98bc65,1
+np.float64,0x3feffee03cbffdc0,0xbf0f3ede6ca7d695,1
+np.float64,0xbc5eac9b78bd6,0xc0733c92fb51c8ae,1
+np.float64,0x3fe2bb4ef765769e,0xbfcdc4f70a65dadc,1
+np.float64,0x5089443ca1129,0xc073427a7d0cde4a,1
+np.float64,0x3fd0d6e29121adc5,0xbfe28e28ece1db86,1
+np.float64,0xbe171e397c2e4,0xc0733c82cede5d02,1
+np.float64,0x4ede27be9dbc6,0xc073429fba1a4af1,1
+np.float64,0x3fe2aff3af655fe7,0xbfcde6b52a8ed3c1,1
+np.float64,0x7fd85ca295b0b944,0x40733d5d2adcccf1,1
+np.float64,0x24919bba49234,0xc07347f6ed704a6f,1
+np.float64,0x7fd74bc1eeae9783,0x40733d0d94a89011,1
+np.float64,0x3fc1cd12cb239a26,0xbfeb6a9c25c2a11d,1
+np.float64,0x3fdafbc0ac35f781,0xbfd8015ccf1f1b51,1
+np.float64,0x3fee01327c3c0265,0xbf9ca1d0d762dc18,1
+np.float64,0x3fe65bd7702cb7af,0xbfc3ee0de5c36b8d,1
+np.float64,0x7349c82ee693a,0xc0733ffc5b6eccf2,1
+np.float64,0x3fdc5906f738b20e,0xbfd6a26288eb5933,1
+np.float64,0x1,0xc07434e6420f4374,1
+np.float64,0x3fb966128a32cc25,0xbff00e0aa7273838,1
+np.float64,0x3fd501ff9a2a03ff,0xbfdef69133482121,1
+np.float64,0x194d4f3c329ab,0xc0734a861b44cfbe,1
+np.float64,0x3fec5d34f8f8ba6a,0xbfaad1b31510e70b,1
+np.float64,0x1635e4c22c6be,0xc0734b6dec650943,1
+np.float64,0x3fead2f8edb5a5f2,0xbfb39dac30a962cf,1
+np.float64,0x3f7dfa4ce03bf49a,0xc00115a112141aa7,1
+np.float64,0x3fef6827223ed04e,0xbf80a42c9edebfe9,1
+np.float64,0xe771f303cee3f,0xc0733b24a6269fe4,1
+np.float64,0x1160ccc622c1b,0xc0734d22604eacb9,1
+np.float64,0x3fc485cd08290b9a,0xbfe970723008c8c9,1
+np.float64,0x7fef99c518bf3389,0x407343fcf9ed202f,1
+np.float64,0x7fd8c1447a318288,0x40733d79a440b44d,1
+np.float64,0xaf219f955e434,0xc0733d149c13f440,1
+np.float64,0xcf45f6239e8bf,0xc0733be8ddda045d,1
+np.float64,0x7599394aeb328,0xc0733fd90fdbb0ea,1
+np.float64,0xc7f6390f8fec7,0xc0733c28bfbc66a3,1
+np.float64,0x3fd39ae96c2735d3,0xbfe0712274a8742b,1
+np.float64,0xa4d6c18f49ad8,0xc0733d805a0528f7,1
+np.float64,0x7fd9ea78d7b3d4f1,0x40733dcb2b74802a,1
+np.float64,0x3fecd251cb39a4a4,0xbfa742ed41d4ae57,1
+np.float64,0x7fed7a07cd7af40f,0x407343813476027e,1
+np.float64,0x3fd328ae7f26515d,0xbfe0c30b56a83c64,1
+np.float64,0x7fc937ff7a326ffe,0x407338c9a45b9140,1
+np.float64,0x3fcf1d31143e3a62,0xbfe3a7f760fbd6a8,1
+np.float64,0x7fb911dcbc3223b8,0x407333ee158cccc7,1
+np.float64,0x3fd352fc83a6a5f9,0xbfe0a47d2f74d283,1
+np.float64,0x7fd310753fa620e9,0x40733ba8fc4300dd,1
+np.float64,0x3febd64b4577ac97,0xbfaefd4a79f95c4b,1
+np.float64,0x6a6961a4d4d2d,0xc073408ae1687943,1
+np.float64,0x3fe4ba73d16974e8,0xbfc8239341b9e457,1
+np.float64,0x3fed8e7cac3b1cf9,0xbfa1a96a0cc5fcdc,1
+np.float64,0x7fd505ec04aa0bd7,0x40733c56f86e3531,1
+np.float64,0x3fdf166e9abe2cdd,0xbfd411e5f8569d70,1
+np.float64,0x7fe1bc6434e378c7,0x40733ff9861bdabb,1
+np.float64,0x3fd3b0b175a76163,0xbfe061ba5703f3c8,1
+np.float64,0x7fed75d7ffbaebaf,0x4073438037ba6f19,1
+np.float64,0x5a9e109cb53c3,0xc07341a8b04819c8,1
+np.float64,0x3fe14786b4e28f0d,0xbfd120b541bb880e,1
+np.float64,0x3fed4948573a9291,0xbfa3b471ff91614b,1
+np.float64,0x66aac5d8cd559,0xc07340ca9b18af46,1
+np.float64,0x3fdb48efd23691e0,0xbfd7b24c5694838b,1
+np.float64,0x7fe6da7d1eadb4f9,0x407341bc7d1fae43,1
+np.float64,0x7feb702cf336e059,0x40734301b96cc3c0,1
+np.float64,0x3fd1e60987a3cc13,0xbfe1b522cfcc3d0e,1
+np.float64,0x3feca57f50794aff,0xbfa89dc90625d39c,1
+np.float64,0x7fdc46dc56b88db8,0x40733e664294a0f9,1
+np.float64,0x8dc8fd811b920,0xc0733e8c5955df06,1
+np.float64,0xf01634abe02c7,0xc0733ae370a76d0c,1
+np.float64,0x3fc6f8d8ab2df1b1,0xbfe7df5093829464,1
+np.float64,0xda3d7597b47af,0xc0733b8d2702727a,1
+np.float64,0x7feefd53227dfaa5,0x407343da3d04db28,1
+np.float64,0x3fe2fbca3525f794,0xbfcd06e134417c08,1
+np.float64,0x7fd36d3ce226da79,0x40733bca7c322df1,1
+np.float64,0x7fec37e00b786fbf,0x4073433397b48a5b,1
+np.float64,0x3fbf133f163e267e,0xbfed4e72f1362a77,1
+np.float64,0x3fc11efbb9223df7,0xbfebf53002a561fe,1
+np.float64,0x3fc89c0e5431381d,0xbfe6ea562364bf81,1
+np.float64,0x3f9cd45da839a8bb,0xbff8ceb14669ee4b,1
+np.float64,0x23dc8fa647b93,0xc0734819aaa9b0ee,1
+np.float64,0x3fe829110d305222,0xbfbf3e60c45e2399,1
+np.float64,0x7fed8144e57b0289,0x40734382e917a02a,1
+np.float64,0x7fe033fbf7a067f7,0x40733f58bb00b20f,1
+np.float64,0xe3807f45c7010,0xc0733b43379415d1,1
+np.float64,0x3fd708fb342e11f6,0xbfdc670ef9793782,1
+np.float64,0x3fe88c924b311925,0xbfbd78210d9e7164,1
+np.float64,0x3fe0a2a7c7614550,0xbfd22efaf0472c4a,1
+np.float64,0x7fe3a37501a746e9,0x407340aecaeade41,1
+np.float64,0x3fd05077ec20a0f0,0xbfe2fedbf07a5302,1
+np.float64,0x7fd33bf61da677eb,0x40733bb8c58912aa,1
+np.float64,0x3feb29bdae76537b,0xbfb2384a8f61b5f9,1
+np.float64,0x3fec0fc14ff81f83,0xbfad3423e7ade174,1
+np.float64,0x3fd0f8b1a1a1f163,0xbfe2725dd4ccea8b,1
+np.float64,0x3fe382d26a6705a5,0xbfcb80dba4218bdf,1
+np.float64,0x3fa873f2cc30e7e6,0xbff522911cb34279,1
+np.float64,0x7fed7fd7377affad,0x4073438292f6829b,1
+np.float64,0x3feeacd8067d59b0,0xbf92cdbeda94b35e,1
+np.float64,0x7fe464d62228c9ab,0x407340f1eee19aa9,1
+np.float64,0xe997648bd32ed,0xc0733b143aa0fad3,1
+np.float64,0x7fea4869f13490d3,0x407342b5333b54f7,1
+np.float64,0x935b871926b71,0xc0733e47c6683319,1
+np.float64,0x28a9d0c05155,0xc0735a7e3532af83,1
+np.float64,0x79026548f204d,0xc0733fa6339ffa2f,1
+np.float64,0x3fdb1daaabb63b55,0xbfd7de839c240ace,1
+np.float64,0x3fc0db73b421b6e7,0xbfec2c6e36c4f416,1
+np.float64,0xb8b50ac1716b,0xc0734ff9fc60ebce,1
+np.float64,0x7fdf13e0c6be27c1,0x40733f0e44f69437,1
+np.float64,0x3fcd0cb97b3a1973,0xbfe49c34ff531273,1
+np.float64,0x3fcbac034b375807,0xbfe54913d73f180d,1
+np.float64,0x3fe091d2a2e123a5,0xbfd24b290a9218de,1
+np.float64,0xede43627dbc87,0xc0733af3c7c7f716,1
+np.float64,0x7fc037e7ed206fcf,0x407335b85fb0fedb,1
+np.float64,0x3fce7ae4c63cf5ca,0xbfe3f1350fe03f28,1
+np.float64,0x7fcdd862263bb0c3,0x407339f5458bb20e,1
+np.float64,0x4d7adf709af5d,0xc07342bf4edfadb2,1
+np.float64,0xdc6c03f3b8d81,0xc0733b7b74d6a635,1
+np.float64,0x3fe72ae0a4ee55c1,0xbfc1f4665608b21f,1
+np.float64,0xcd62f19d9ac5e,0xc0733bf92235e4d8,1
+np.float64,0xe3a7b8fdc74f7,0xc0733b4204f8e166,1
+np.float64,0x3fdafd35adb5fa6b,0xbfd7ffdca0753b36,1
+np.float64,0x3fa023e8702047d1,0xbff8059150ea1464,1
+np.float64,0x99ff336933fe7,0xc0733df961197517,1
+np.float64,0x7feeb365b9bd66ca,0x407343c995864091,1
+np.float64,0x7fe449b49f689368,0x407340e8aa3369e3,1
+np.float64,0x7faf5843043eb085,0x407330aa700136ca,1
+np.float64,0x3fd47b2922a8f652,0xbfdfab3de86f09ee,1
+np.float64,0x7fd9fc3248b3f864,0x40733dcfea6f9b3e,1
+np.float64,0xe20b0d8dc4162,0xc0733b4ea8fe7b3f,1
+np.float64,0x7feff8e0e23ff1c1,0x40734411c490ed70,1
+np.float64,0x7fa58382d02b0705,0x40732e0cf28e14fe,1
+np.float64,0xb8ad9a1b715b4,0xc0733cb630b8f2d4,1
+np.float64,0xe90abcf1d2158,0xc0733b186b04eeee,1
+np.float64,0x7fd6aa6f32ad54dd,0x40733cdccc636604,1
+np.float64,0x3fd8f84eedb1f09e,0xbfda292909a5298a,1
+np.float64,0x7fecd6b1d9f9ad63,0x4073435a472b05b5,1
+np.float64,0x3fd9f47604b3e8ec,0xbfd915e028cbf4a6,1
+np.float64,0x3fd20d9398241b27,0xbfe19691363dd508,1
+np.float64,0x3fe5ed09bbabda13,0xbfc5043dfc9c8081,1
+np.float64,0x7fbe5265363ca4c9,0x407335406f8e4fac,1
+np.float64,0xac2878af5850f,0xc0733d3311be9786,1
+np.float64,0xac2074555840f,0xc0733d3364970018,1
+np.float64,0x3fcd49b96b3a9373,0xbfe47f24c8181d9c,1
+np.float64,0x3fd10caca6a21959,0xbfe2620ae5594f9a,1
+np.float64,0xec5b87e9d8b71,0xc0733aff499e72ca,1
+np.float64,0x9d5e9fad3abd4,0xc0733dd2d70eeb4a,1
+np.float64,0x7fe3d3a24227a744,0x407340bfc2072fdb,1
+np.float64,0x3fc5f7a77c2bef4f,0xbfe87e69d502d784,1
+np.float64,0x33161a66662c4,0xc07345a436308244,1
+np.float64,0xa27acdc744f5a,0xc0733d99feb3d8ea,1
+np.float64,0x3fe2d9301565b260,0xbfcd6c914e204437,1
+np.float64,0x7fd5d111e12ba223,0x40733c98e14a6fd0,1
+np.float64,0x6c3387bed8672,0xc073406d3648171a,1
+np.float64,0x24d89fe849b15,0xc07347e97bec008c,1
+np.float64,0x3fefd763677faec7,0xbf61ae69caa9cad9,1
+np.float64,0x7fe0a4684ba148d0,0x40733f884d32c464,1
+np.float64,0x3fd5c3c939ab8792,0xbfddfaaefc1c7fca,1
+np.float64,0x3fec9b87a6b9370f,0xbfa8eb34efcc6b9b,1
+np.float64,0x3feb062431f60c48,0xbfb2ca6036698877,1
+np.float64,0x3fef97f6633f2fed,0xbf76bc742860a340,1
+np.float64,0x74477490e88ef,0xc0733fed220986bc,1
+np.float64,0x3fe4bea67ce97d4d,0xbfc818525292b0f6,1
+np.float64,0x3fc6add3a92d5ba7,0xbfe80cfdc9a90bda,1
+np.float64,0x847c9ce308f94,0xc0733f05026f5965,1
+np.float64,0x7fea53fd2eb4a7f9,0x407342b841fc4723,1
+np.float64,0x3fc55a16fc2ab42e,0xbfe8e3849130da34,1
+np.float64,0x3fbdf7d07c3befa1,0xbfedcf84b9c6c161,1
+np.float64,0x3fe5fb25aa6bf64b,0xbfc4e083ff96b116,1
+np.float64,0x61c776a8c38ef,0xc0734121611d84d7,1
+np.float64,0x3fec413164f88263,0xbfabadbd05131546,1
+np.float64,0x9bf06fe137e0e,0xc0733de315469ee0,1
+np.float64,0x2075eefc40ebf,0xc07348cae84de924,1
+np.float64,0x3fdd42e0143a85c0,0xbfd5c0b6f60b3cea,1
+np.float64,0xdbb1ab45b7636,0xc0733b8157329daf,1
+np.float64,0x3feac6d56bf58dab,0xbfb3d00771b28621,1
+np.float64,0x7fb2dc825025b904,0x407331f3e950751a,1
+np.float64,0x3fecea6efd79d4de,0xbfa689309cc0e3fe,1
+np.float64,0x3fd83abec7b0757e,0xbfdaff5c674a9c59,1
+np.float64,0x3fd396f7c0272df0,0xbfe073ee75c414ba,1
+np.float64,0x3fe10036c162006e,0xbfd1945a38342ae1,1
+np.float64,0x3fd5bbded52b77be,0xbfde04cca40d4156,1
+np.float64,0x3fe870945ab0e129,0xbfbdf72f0e6206fa,1
+np.float64,0x3fef72fddcbee5fc,0xbf7ee2dba88b1bad,1
+np.float64,0x4e111aa09c224,0xc07342b1e2b29643,1
+np.float64,0x3fd926d8b5b24db1,0xbfd9f58b78d6b061,1
+np.float64,0x3fc55679172aacf2,0xbfe8e5df687842e2,1
+np.float64,0x7f5f1749803e2e92,0x40731886e16cfc4d,1
+np.float64,0x7fea082b53b41056,0x407342a42227700e,1
+np.float64,0x3fece1d1d039c3a4,0xbfa6cb780988a469,1
+np.float64,0x3b2721d8764e5,0xc073449f6a5a4832,1
+np.float64,0x365cb7006cba,0xc0735879ba5f0b6e,1
+np.float64,0x7ff4000000000000,0x7ffc000000000000,1
+np.float64,0x7fe606ce92ac0d9c,0x4073417aeebe97e8,1
+np.float64,0x3fe237b544a46f6b,0xbfcf50f8f76d7df9,1
+np.float64,0x3fe7265e5eee4cbd,0xbfc1ff39089ec8d0,1
+np.float64,0x7fe2bb3c5ea57678,0x4073405aaad81cf2,1
+np.float64,0x3fd811df84b023bf,0xbfdb2e670ea8d8de,1
+np.float64,0x3f6a0efd00341dfa,0xc003fac1ae831241,1
+np.float64,0x3fd0d214afa1a429,0xbfe2922080a91c72,1
+np.float64,0x3feca6a350b94d47,0xbfa894eea3a96809,1
+np.float64,0x7fe23e5c76247cb8,0x4073402bbaaf71c7,1
+np.float64,0x3fe739a1fdae7344,0xbfc1d109f66efb5d,1
+np.float64,0x3fdf4b8e283e971c,0xbfd3e28f46169cc5,1
+np.float64,0x38f2535271e4b,0xc07344e3085219fa,1
+np.float64,0x7fd263a0f9a4c741,0x40733b68d945dae0,1
+np.float64,0x7fdd941863bb2830,0x40733eb651e3dca9,1
+np.float64,0xace7279159ce5,0xc0733d2b63b5947e,1
+np.float64,0x7fe34670b2268ce0,0x4073408d92770cb5,1
+np.float64,0x7fd11fa6dfa23f4d,0x40733aea02e76ea3,1
+np.float64,0x3fe6d9cbca6db398,0xbfc2b84b5c8c7eab,1
+np.float64,0x3fd69a0274ad3405,0xbfdcee3c7e52c463,1
+np.float64,0x3feb5af671f6b5ed,0xbfb16f88d739477f,1
+np.float64,0x3feea400163d4800,0xbf934e071c64fd0b,1
+np.float64,0x3fefd6bcf17fad7a,0xbf61f711c392b119,1
+np.float64,0x3fe148d43da291a8,0xbfd11e9cd3f91cd3,1
+np.float64,0x7fedf1308b7be260,0x4073439d135656da,1
+np.float64,0x3fe614c99c6c2993,0xbfc49fd1984dfd6d,1
+np.float64,0xd6e8d4e5add1b,0xc0733ba88256026e,1
+np.float64,0xfff0000000000000,0x7ff8000000000000,1
+np.float64,0x3fb530b5562a616b,0xbff1504bcc5c8f73,1
+np.float64,0xb7da68396fb4d,0xc0733cbe2790f52e,1
+np.float64,0x7fad78e26c3af1c4,0x4073303cdbfb0a15,1
+np.float64,0x7fee5698447cad30,0x407343b474573a8b,1
+np.float64,0x3fd488325c291065,0xbfdf999296d901e7,1
+np.float64,0x2669283a4cd26,0xc073479f823109a4,1
+np.float64,0x7fef3b090afe7611,0x407343e805a3b264,1
+np.float64,0x7fe8b96ae0f172d5,0x4073424874a342ab,1
+np.float64,0x7fef409f56fe813e,0x407343e943c3cd44,1
+np.float64,0x3fed28073dfa500e,0xbfa4b17e4cd31a3a,1
+np.float64,0x7f87ecc4802fd988,0x40732527e027b24b,1
+np.float64,0x3fdda24da0bb449b,0xbfd566a43ac035af,1
+np.float64,0x179fc9e62f3fa,0xc0734b0028c80fc1,1
+np.float64,0x3fef85b0927f0b61,0xbf7ac27565d5ab4f,1
+np.float64,0x5631501aac62b,0xc0734201be12c5d4,1
+np.float64,0x3fd782e424af05c8,0xbfdbd57544f8a7c3,1
+np.float64,0x3fe603a9a6ac0753,0xbfc4caff04dc3caf,1
+np.float64,0x7fbd5225163aa449,0x40733504b88f0a56,1
+np.float64,0x3fecd27506b9a4ea,0xbfa741dd70e6b08c,1
+np.float64,0x9c99603b3932c,0xc0733ddb922dc5db,1
+np.float64,0x3fbeb57f1a3d6afe,0xbfed789ff217aa08,1
+np.float64,0x3fef9c0f85bf381f,0xbf75d5c3d6cb281a,1
+np.float64,0x3fde4afb613c95f7,0xbfd4ca2a231c9005,1
+np.float64,0x396233d472c47,0xc07344d56ee70631,1
+np.float64,0x3fb31ea1c6263d44,0xbff207356152138d,1
+np.float64,0x3fe50bdf78aa17bf,0xbfc74ae0cbffb735,1
+np.float64,0xef74c701dee99,0xc0733ae81e4bb443,1
+np.float64,0x9a3e13a1347c3,0xc0733df68b60afc7,1
+np.float64,0x33ba4f886774b,0xc073458e03f0c13e,1
+np.float64,0x3fe8ba0e9931741d,0xbfbcaadf974e8f64,1
+np.float64,0x3fe090a4cd61214a,0xbfd24d236cf365d6,1
+np.float64,0x7fd87d992930fb31,0x40733d668b73b820,1
+np.float64,0x3fe6422b296c8456,0xbfc42e070b695d01,1
+np.float64,0x3febe9334677d267,0xbfae667864606cfe,1
+np.float64,0x771a3ce4ee348,0xc0733fc274d12c97,1
+np.float64,0x3fe0413542e0826b,0xbfd2d3b08fb5b8a6,1
+np.float64,0x3fd00870ea2010e2,0xbfe33cc04cbd42e0,1
+np.float64,0x3fe74fb817ae9f70,0xbfc19c45dbf919e1,1
+np.float64,0x40382fa08071,0xc07357514ced5577,1
+np.float64,0xa14968474292d,0xc0733da71a990f3a,1
+np.float64,0x5487c740a90fa,0xc0734224622d5801,1
+np.float64,0x3fed7d8d14fafb1a,0xbfa228f7ecc2ac03,1
+np.float64,0x3fe39bb485e73769,0xbfcb3a235a722960,1
+np.float64,0x3fd01090b2202121,0xbfe335b752589a22,1
+np.float64,0x3fd21a3e7da4347d,0xbfe18cd435a7c582,1
+np.float64,0x3fe7fa855a2ff50b,0xbfc00ab0665709fe,1
+np.float64,0x3fedc0d4577b81a9,0xbfa02fef3ff553fc,1
+np.float64,0x3fe99d4906333a92,0xbfb8bf18220e5e8e,1
+np.float64,0x3fd944ee3c3289dc,0xbfd9d46071675e73,1
+np.float64,0x3fe3ed8d52e7db1b,0xbfca53f8d4aef484,1
+np.float64,0x7fe748623a6e90c3,0x407341dd97c9dd79,1
+np.float64,0x3fea1b4b98343697,0xbfb6a1560a56927f,1
+np.float64,0xe1215715c242b,0xc0733b55dbf1f0a8,1
+np.float64,0x3fd0d5bccca1ab7a,0xbfe28f1b66d7a470,1
+np.float64,0x881a962710353,0xc0733ed51848a30d,1
+np.float64,0x3fcf022afe3e0456,0xbfe3b40eabf24501,1
+np.float64,0x3fdf1ac6bbbe358d,0xbfd40e03e888288d,1
+np.float64,0x3fa51a5eac2a34bd,0xbff628a7c34d51b3,1
+np.float64,0x3fdbaf408d375e81,0xbfd74ad39d97c92a,1
+np.float64,0x3fcd2418ea3a4832,0xbfe4910b009d8b11,1
+np.float64,0x3fc7b3062a2f660c,0xbfe7706dc47993e1,1
+np.float64,0x7fb8232218304643,0x407333aaa7041a9f,1
+np.float64,0x7fd5f186362be30b,0x40733ca32fdf9cc6,1
+np.float64,0x3fe57ef1d6aafde4,0xbfc61e23d00210c7,1
+np.float64,0x7c6830baf8d07,0xc0733f74f19e9dad,1
+np.float64,0xcacbfd5595980,0xc0733c0fb49edca7,1
+np.float64,0x3fdfdeac873fbd59,0xbfd36114c56bed03,1
+np.float64,0x3fd31f0889263e11,0xbfe0ca0cc1250169,1
+np.float64,0x3fe839fbe47073f8,0xbfbef0a2abc3d63f,1
+np.float64,0x3fc36af57e26d5eb,0xbfea3553f38770b7,1
+np.float64,0x3fe73dbc44ee7b79,0xbfc1c738f8fa6b3d,1
+np.float64,0x3fd3760e4da6ec1d,0xbfe08b5b609d11e5,1
+np.float64,0x3fee1cfa297c39f4,0xbf9b06d081bc9d5b,1
+np.float64,0xdfb01561bf61,0xc0734ea55e559888,1
+np.float64,0x687bd01cd0f7b,0xc07340ab67fe1816,1
+np.float64,0x3fefc88f4cbf911f,0xbf6828c359cf19dc,1
+np.float64,0x8ad34adb15a6a,0xc0733eb1e03811e5,1
+np.float64,0x3fe2b49c12e56938,0xbfcdd8dbdbc0ce59,1
+np.float64,0x6e05037adc0a1,0xc073404f91261635,1
+np.float64,0x3fe2fd737fe5fae7,0xbfcd020407ef4d78,1
+np.float64,0x3fd0f3c0dc21e782,0xbfe2766a1ab02eae,1
+np.float64,0x28564d9850acb,0xc073474875f87c5e,1
+np.float64,0x3fe4758015a8eb00,0xbfc8ddb45134a1bd,1
+np.float64,0x7fe7f19306efe325,0x4073420f626141a7,1
+np.float64,0x7fd27f34c0a4fe69,0x40733b733d2a5b50,1
+np.float64,0x92c2366325847,0xc0733e4f04f8195a,1
+np.float64,0x3fc21f8441243f09,0xbfeb2ad23bc1ab0b,1
+np.float64,0x3fc721d3e42e43a8,0xbfe7c69bb47b40c2,1
+np.float64,0x3fe2f11a1625e234,0xbfcd26363b9c36c3,1
+np.float64,0x3fdcb585acb96b0b,0xbfd648446237cb55,1
+np.float64,0x3fd4060bf2280c18,0xbfe025fd4c8a658b,1
+np.float64,0x7fb8ae2750315c4e,0x407333d23b025d08,1
+np.float64,0x3fe3a03119a74062,0xbfcb2d6c91b38552,1
+np.float64,0x7fdd2af92bba55f1,0x40733e9d737e16e6,1
+np.float64,0x3fe50b05862a160b,0xbfc74d20815fe36b,1
+np.float64,0x164409f82c882,0xc0734b6980e19c03,1
+np.float64,0x3fe4093712a8126e,0xbfca070367fda5e3,1
+np.float64,0xae3049935c609,0xc0733d1e3608797b,1
+np.float64,0x3fd71df4b4ae3be9,0xbfdc4dcb7637600d,1
+np.float64,0x7fca01e8023403cf,0x407339006c521c49,1
+np.float64,0x3fb0c5c43e218b88,0xbff2f03211c63f25,1
+np.float64,0x3fee757af83ceaf6,0xbf95f33a6e56b454,1
+np.float64,0x3f865f1f402cbe3f,0xbfff62d9c9072bd7,1
+np.float64,0x89864e95130ca,0xc0733ec29f1e32c6,1
+np.float64,0x3fe51482bcea2905,0xbfc73414ddc8f1b7,1
+np.float64,0x7fd802f8fa3005f1,0x40733d43684e460a,1
+np.float64,0x3fbeb86ca63d70d9,0xbfed774ccca9b8f5,1
+np.float64,0x3fb355dcc826abba,0xbff1f33f9339e7a3,1
+np.float64,0x3fe506c61eaa0d8c,0xbfc7585a3f7565a6,1
+np.float64,0x7fe393f25ba727e4,0x407340a94bcea73b,1
+np.float64,0xf66f532decdeb,0xc0733ab5041feb0f,1
+np.float64,0x3fe26e872be4dd0e,0xbfceaaab466f32e0,1
+np.float64,0x3fefd9e290bfb3c5,0xbf60977d24496295,1
+np.float64,0x7fe19c5f692338be,0x40733fecef53ad95,1
+np.float64,0x3fe80365ab3006cb,0xbfbfec4090ef76ec,1
+np.float64,0x3fe88ab39eb11567,0xbfbd8099388d054d,1
+np.float64,0x3fe68fb09fad1f61,0xbfc36db9de38c2c0,1
+np.float64,0x3fe9051883b20a31,0xbfbb5b75b8cb8f24,1
+np.float64,0x3fd4708683a8e10d,0xbfdfb9b085dd8a83,1
+np.float64,0x3fe00ac11a601582,0xbfd3316af3e43500,1
+np.float64,0xd16af30ba2d5f,0xc0733bd68e8252f9,1
+np.float64,0x3fb97d654632facb,0xbff007ac1257f575,1
+np.float64,0x7fd637c10fac6f81,0x40733cb949d76546,1
+np.float64,0x7fed2cab6dba5956,0x4073436edfc3764e,1
+np.float64,0x3fed04afbbba095f,0xbfa5bfaa5074b7f4,1
+np.float64,0x0,0xfff0000000000000,1
+np.float64,0x389a1dc671345,0xc07344edd4206338,1
+np.float64,0x3fbc9ba25a393745,0xbfee74c34f49b921,1
+np.float64,0x3feee749947dce93,0xbf8f032d9cf6b5ae,1
+np.float64,0xedc4cf89db89a,0xc0733af4b2a57920,1
+np.float64,0x3fe41629eba82c54,0xbfc9e321faf79e1c,1
+np.float64,0x3feb0bcbf7b61798,0xbfb2b31e5d952869,1
+np.float64,0xad60654b5ac0d,0xc0733d26860df676,1
+np.float64,0x3fe154e1ff22a9c4,0xbfd10b416e58c867,1
+np.float64,0x7fb20e9c8a241d38,0x407331a66453b8bc,1
+np.float64,0x7fcbbaaf7d37755e,0x4073397274f28008,1
+np.float64,0x187d0fbc30fa3,0xc0734ac03cc98cc9,1
+np.float64,0x7fd153afeaa2a75f,0x40733aff00b4311d,1
+np.float64,0x3fe05310a5e0a621,0xbfd2b5386aeecaac,1
+np.float64,0x7fea863b2b750c75,0x407342c57807f700,1
+np.float64,0x3fed5f0c633abe19,0xbfa30f6cfbc4bf94,1
+np.float64,0xf227c8b3e44f9,0xc0733ad42daaec9f,1
+np.float64,0x3fe956524772aca5,0xbfb9f4cabed7081d,1
+np.float64,0xefd11af7dfa24,0xc0733ae570ed2552,1
+np.float64,0x1690fff02d221,0xc0734b51a56c2980,1
+np.float64,0x7fd2e547a825ca8e,0x40733b992d6d9635,1
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/data/umath-validation-set-log1p.csv b/python/user_packages/Python313/site-packages/numpy/_core/tests/data/umath-validation-set-log1p.csv
new file mode 100644
index 0000000000000000000000000000000000000000..f2e05ca39f580102b8173e79ff8fc0b2cf96da84
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/tests/data/umath-validation-set-log1p.csv
@@ -0,0 +1,1429 @@
+dtype,input,output,ulperrortol
+np.float32,0x3e10aca8,0x3e075347,2
+np.float32,0x3f776e66,0x3f2d2003,2
+np.float32,0xbf34e8ce,0xbf9cfd5c,2
+np.float32,0xbf0260ee,0xbf363f69,2
+np.float32,0x3ed285e8,0x3eb05870,2
+np.float32,0x262b88,0x262b88,2
+np.float32,0x3eeffd6c,0x3ec4cfdb,2
+np.float32,0x3ee86808,0x3ebf9f54,2
+np.float32,0x3f36eba8,0x3f0a0524,2
+np.float32,0xbf1c047a,0xbf70afc7,2
+np.float32,0x3ead2916,0x3e952902,2
+np.float32,0x61c9c9,0x61c9c9,2
+np.float32,0xff7fffff,0xffc00000,2
+np.float32,0x7f64ee52,0x42b138e0,2
+np.float32,0x7ed00b1e,0x42afa4ff,2
+np.float32,0x3db53340,0x3dada0b2,2
+np.float32,0x3e6b0a4a,0x3e5397a4,2
+np.float32,0x7ed5d64f,0x42afb310,2
+np.float32,0xbf12bc5f,0xbf59f5ee,2
+np.float32,0xbda12710,0xbda7d8b5,2
+np.float32,0xbe2e89d8,0xbe3f5a9f,2
+np.float32,0x3f5bee75,0x3f1ebea4,2
+np.float32,0x9317a,0x9317a,2
+np.float32,0x7ee00130,0x42afcad8,2
+np.float32,0x7ef0d16d,0x42afefe7,2
+np.float32,0xbec7463a,0xbefc6a44,2
+np.float32,0xbf760ecc,0xc04fe59c,2
+np.float32,0xbecacb3c,0xbf011ae3,2
+np.float32,0x3ead92be,0x3e9577f0,2
+np.float32,0xbf41510d,0xbfb41b3a,2
+np.float32,0x7f71d489,0x42b154f1,2
+np.float32,0x8023bcd5,0x8023bcd5,2
+np.float32,0x801d33d8,0x801d33d8,2
+np.float32,0x3f3f545d,0x3f0ee0d4,2
+np.float32,0xbf700682,0xc0318c25,2
+np.float32,0xbe54e990,0xbe6eb0a3,2
+np.float32,0x7f0289bf,0x42b01941,2
+np.float32,0xbd61ac90,0xbd682113,2
+np.float32,0xbf2ff310,0xbf94cd6f,2
+np.float32,0x7f10064a,0x42b04b98,2
+np.float32,0x804d0d6d,0x804d0d6d,2
+np.float32,0x80317b0a,0x80317b0a,2
+np.float32,0xbddfef18,0xbded2640,2
+np.float32,0x3f00c9ab,0x3ed0a5bd,2
+np.float32,0x7f04b905,0x42b021c1,2
+np.float32,0x7fc00000,0x7fc00000,2
+np.float32,0x6524c4,0x6524c4,2
+np.float32,0x3da08ae0,0x3d9a8f88,2
+np.float32,0x293ea9,0x293ea9,2
+np.float32,0x71499e,0x71499e,2
+np.float32,0xbf14f54d,0xbf5f38a5,2
+np.float32,0x806e60f5,0x806e60f5,2
+np.float32,0x3f5f34bb,0x3f207fff,2
+np.float32,0x80513427,0x80513427,2
+np.float32,0x7f379670,0x42b0c7dc,2
+np.float32,0x3efba888,0x3eccb20b,2
+np.float32,0x3eeadd1b,0x3ec14f4b,2
+np.float32,0x7ec5a27f,0x42af8ab8,2
+np.float32,0x3f2afe4e,0x3f02f7a2,2
+np.float32,0x5591c8,0x5591c8,2
+np.float32,0x3dbb7240,0x3db35bab,2
+np.float32,0x805b911b,0x805b911b,2
+np.float32,0x800000,0x800000,2
+np.float32,0x7e784c04,0x42ae9cab,2
+np.float32,0x7ebaae14,0x42af6d86,2
+np.float32,0xbec84f7a,0xbefe1d42,2
+np.float32,0x7cea8281,0x42aa56bf,2
+np.float32,0xbf542cf6,0xbfe1eb1b,2
+np.float32,0xbf6bfb13,0xc0231a5b,2
+np.float32,0x7d6eeaef,0x42abc32c,2
+np.float32,0xbf062f6b,0xbf3e2000,2
+np.float32,0x8073d8e9,0x8073d8e9,2
+np.float32,0xbea4db14,0xbec6f485,2
+np.float32,0x7d7e8d62,0x42abe3a0,2
+np.float32,0x7e8fc34e,0x42aee7c6,2
+np.float32,0x7dcbb0c3,0x42acd464,2
+np.float32,0x7e123c,0x7e123c,2
+np.float32,0x3d77af62,0x3d707c34,2
+np.float32,0x498cc8,0x498cc8,2
+np.float32,0x7f4e2206,0x42b1032a,2
+np.float32,0x3f734e0a,0x3f2b04a1,2
+np.float32,0x8053a9d0,0x8053a9d0,2
+np.float32,0xbe8a67e0,0xbea15be9,2
+np.float32,0xbf78e0ea,0xc065409e,2
+np.float32,0x352bdd,0x352bdd,2
+np.float32,0x3ee42be7,0x3ebcb38a,2
+np.float32,0x7f482d10,0x42b0f427,2
+np.float32,0xbf23155e,0xbf81b993,2
+np.float32,0x594920,0x594920,2
+np.float32,0x63f53f,0x63f53f,2
+np.float32,0x363592,0x363592,2
+np.float32,0x7dafbb78,0x42ac88cc,2
+np.float32,0x7f69516c,0x42b14298,2
+np.float32,0x3e1d5be2,0x3e126131,2
+np.float32,0x410c23,0x410c23,2
+np.float32,0x7ec9563c,0x42af9439,2
+np.float32,0xbedd3a0e,0xbf10d705,2
+np.float32,0x7f7c4f1f,0x42b16aa8,2
+np.float32,0xbe99b34e,0xbeb6c2d3,2
+np.float32,0x6cdc84,0x6cdc84,2
+np.float32,0x5b3bbe,0x5b3bbe,2
+np.float32,0x252178,0x252178,2
+np.float32,0x7d531865,0x42ab83c8,2
+np.float32,0xbf565b44,0xbfe873bf,2
+np.float32,0x5977ce,0x5977ce,2
+np.float32,0x588a58,0x588a58,2
+np.float32,0x3eae7054,0x3e961d51,2
+np.float32,0x725049,0x725049,2
+np.float32,0x7f2b9386,0x42b0a538,2
+np.float32,0xbe674714,0xbe831245,2
+np.float32,0x8044f0d8,0x8044f0d8,2
+np.float32,0x800a3c21,0x800a3c21,2
+np.float32,0x807b275b,0x807b275b,2
+np.float32,0xbf2463b6,0xbf83896e,2
+np.float32,0x801cca42,0x801cca42,2
+np.float32,0xbf28f2d0,0xbf8a121a,2
+np.float32,0x3f4168c2,0x3f1010ce,2
+np.float32,0x6f91a1,0x6f91a1,2
+np.float32,0xbf2b9eeb,0xbf8e0fc5,2
+np.float32,0xbea4c858,0xbec6d8e4,2
+np.float32,0xbf7abba0,0xc0788e88,2
+np.float32,0x802f18f7,0x802f18f7,2
+np.float32,0xbf7f6c75,0xc0c3145c,2
+np.float32,0xbe988210,0xbeb50f5e,2
+np.float32,0xbf219b7e,0xbf7f6a3b,2
+np.float32,0x7f800000,0x7f800000,2
+np.float32,0x7f7fffff,0x42b17218,2
+np.float32,0xbdca8d90,0xbdd5487e,2
+np.float32,0xbef683b0,0xbf2821b0,2
+np.float32,0x8043e648,0x8043e648,2
+np.float32,0xbf4319a4,0xbfb7cd1b,2
+np.float32,0x62c2b2,0x62c2b2,2
+np.float32,0xbf479ccd,0xbfc1a7b1,2
+np.float32,0x806c8a32,0x806c8a32,2
+np.float32,0x7f004447,0x42b01045,2
+np.float32,0x3f737d36,0x3f2b1ccf,2
+np.float32,0x3ee71f24,0x3ebebced,2
+np.float32,0x3ea0b6b4,0x3e8bc606,2
+np.float32,0x358fd7,0x358fd7,2
+np.float32,0xbe69780c,0xbe847d17,2
+np.float32,0x7f6bed18,0x42b14849,2
+np.float32,0xbf6a5113,0xc01dfe1d,2
+np.float32,0xbf255693,0xbf84de88,2
+np.float32,0x7f34acac,0x42b0bfac,2
+np.float32,0xbe8a3b6a,0xbea11efe,2
+np.float32,0x3f470d84,0x3f1342ab,2
+np.float32,0xbf2cbde3,0xbf8fc602,2
+np.float32,0x47c103,0x47c103,2
+np.float32,0xe3c94,0xe3c94,2
+np.float32,0xbec07afa,0xbef1693a,2
+np.float32,0x6a9cfe,0x6a9cfe,2
+np.float32,0xbe4339e0,0xbe5899da,2
+np.float32,0x7ea9bf1e,0x42af3cd6,2
+np.float32,0x3f6378b4,0x3f22c4c4,2
+np.float32,0xbd989ff0,0xbd9e9c77,2
+np.float32,0xbe6f2f50,0xbe88343d,2
+np.float32,0x3f7f2ac5,0x3f310764,2
+np.float32,0x3f256704,0x3eff2fb2,2
+np.float32,0x80786aca,0x80786aca,2
+np.float32,0x65d02f,0x65d02f,2
+np.float32,0x50d1c3,0x50d1c3,2
+np.float32,0x3f4a9d76,0x3f1541b4,2
+np.float32,0x802cf491,0x802cf491,2
+np.float32,0x3e935cec,0x3e81829b,2
+np.float32,0x3e2ad478,0x3e1dfd81,2
+np.float32,0xbf107cbd,0xbf54bef2,2
+np.float32,0xbf58c02e,0xbff007fe,2
+np.float32,0x80090808,0x80090808,2
+np.float32,0x805d1f66,0x805d1f66,2
+np.float32,0x6aec95,0x6aec95,2
+np.float32,0xbee3fc6e,0xbf16dc73,2
+np.float32,0x7f63314b,0x42b134f9,2
+np.float32,0x550443,0x550443,2
+np.float32,0xbefa8174,0xbf2c026e,2
+np.float32,0x3f7fb380,0x3f314bd5,2
+np.float32,0x80171f2c,0x80171f2c,2
+np.float32,0x3f2f56ae,0x3f058f2d,2
+np.float32,0x3eacaecb,0x3e94cd97,2
+np.float32,0xbe0c4f0c,0xbe16e69d,2
+np.float32,0x3f48e4cb,0x3f144b42,2
+np.float32,0x7f03efe2,0x42b01eb7,2
+np.float32,0xbf1019ac,0xbf53dbe9,2
+np.float32,0x3e958524,0x3e832eb5,2
+np.float32,0xbf1b23c6,0xbf6e72f2,2
+np.float32,0x12c554,0x12c554,2
+np.float32,0x7dee588c,0x42ad24d6,2
+np.float32,0xbe8c216c,0xbea3ba70,2
+np.float32,0x804553cb,0x804553cb,2
+np.float32,0xbe446324,0xbe5a0966,2
+np.float32,0xbef7150a,0xbf28adff,2
+np.float32,0xbf087282,0xbf42ec6e,2
+np.float32,0x3eeef15c,0x3ec41937,2
+np.float32,0x61bbd2,0x61bbd2,2
+np.float32,0x3e51b28d,0x3e3ec538,2
+np.float32,0x57e869,0x57e869,2
+np.float32,0x7e5e7711,0x42ae646c,2
+np.float32,0x8050b173,0x8050b173,2
+np.float32,0xbf63c90c,0xc00d2438,2
+np.float32,0xbeba774c,0xbee7dcf8,2
+np.float32,0x8016faac,0x8016faac,2
+np.float32,0xbe8b448c,0xbea28aaf,2
+np.float32,0x3e8cd448,0x3e78d29e,2
+np.float32,0x80484e02,0x80484e02,2
+np.float32,0x3f63ba68,0x3f22e78c,2
+np.float32,0x2e87bb,0x2e87bb,2
+np.float32,0x230496,0x230496,2
+np.float32,0x1327b2,0x1327b2,2
+np.float32,0xbf046c56,0xbf3a72d2,2
+np.float32,0x3ecefe60,0x3eadd69a,2
+np.float32,0x49c56e,0x49c56e,2
+np.float32,0x3df22d60,0x3de4e550,2
+np.float32,0x3f67c19d,0x3f250707,2
+np.float32,0x3f20eb9c,0x3ef9b624,2
+np.float32,0x3f05ca75,0x3ed742fa,2
+np.float32,0xbe8514f8,0xbe9a1d45,2
+np.float32,0x8070a003,0x8070a003,2
+np.float32,0x7e49650e,0x42ae317a,2
+np.float32,0x3de16ce9,0x3dd5dc3e,2
+np.float32,0xbf4ae952,0xbfc95f1f,2
+np.float32,0xbe44dd84,0xbe5aa0db,2
+np.float32,0x803c3bc0,0x803c3bc0,2
+np.float32,0x3eebb9e8,0x3ec1e692,2
+np.float32,0x80588275,0x80588275,2
+np.float32,0xbea1e69a,0xbec29d86,2
+np.float32,0x3f7b4bf8,0x3f2f154c,2
+np.float32,0x7eb47ecc,0x42af5c46,2
+np.float32,0x3d441e00,0x3d3f911a,2
+np.float32,0x7f54d40e,0x42b11388,2
+np.float32,0xbf47f17e,0xbfc26882,2
+np.float32,0x3ea7da57,0x3e912db4,2
+np.float32,0x3f59cc7b,0x3f1d984e,2
+np.float32,0x570e08,0x570e08,2
+np.float32,0x3e99560c,0x3e8620a2,2
+np.float32,0x3ecfbd14,0x3eae5e55,2
+np.float32,0x7e86be08,0x42aec698,2
+np.float32,0x3f10f28a,0x3ee5b5d3,2
+np.float32,0x7f228722,0x42b0897a,2
+np.float32,0x3f4b979b,0x3f15cd30,2
+np.float32,0xbf134283,0xbf5b30f9,2
+np.float32,0x3f2ae16a,0x3f02e64f,2
+np.float32,0x3e98e158,0x3e85c6cc,2
+np.float32,0x7ec39f27,0x42af857a,2
+np.float32,0x3effedb0,0x3ecf8cea,2
+np.float32,0xbd545620,0xbd5a09c1,2
+np.float32,0x503a28,0x503a28,2
+np.float32,0x3f712744,0x3f29e9a1,2
+np.float32,0x3edc6194,0x3eb748b1,2
+np.float32,0xbf4ec1e5,0xbfd2ff5f,2
+np.float32,0x3f46669e,0x3f12e4b5,2
+np.float32,0xabad3,0xabad3,2
+np.float32,0x80000000,0x80000000,2
+np.float32,0x803f2e6d,0x803f2e6d,2
+np.float32,0xbf431542,0xbfb7c3e6,2
+np.float32,0x3f6f2d53,0x3f28e496,2
+np.float32,0x546bd8,0x546bd8,2
+np.float32,0x25c80a,0x25c80a,2
+np.float32,0x3e50883c,0x3e3dcd7e,2
+np.float32,0xbf5fa2ba,0xc0045c14,2
+np.float32,0x80271c07,0x80271c07,2
+np.float32,0x8043755d,0x8043755d,2
+np.float32,0xbf3c5cea,0xbfaa5ee9,2
+np.float32,0x3f2fea38,0x3f05e6af,2
+np.float32,0x6da3dc,0x6da3dc,2
+np.float32,0xbf095945,0xbf44dc70,2
+np.float32,0xbe33d584,0xbe45c1f5,2
+np.float32,0x7eb41b2e,0x42af5b2b,2
+np.float32,0xbf0feb74,0xbf537242,2
+np.float32,0xbe96225a,0xbeb1b0b1,2
+np.float32,0x3f63b95f,0x3f22e700,2
+np.float32,0x0,0x0,2
+np.float32,0x3e20b0cc,0x3e154374,2
+np.float32,0xbf79880c,0xc06b6801,2
+np.float32,0xbea690b6,0xbec97b93,2
+np.float32,0xbf3e11ca,0xbfada449,2
+np.float32,0x7e7e6292,0x42aea912,2
+np.float32,0x3e793350,0x3e5f0b7b,2
+np.float32,0x802e7183,0x802e7183,2
+np.float32,0x3f1b3695,0x3ef2a788,2
+np.float32,0x801efa20,0x801efa20,2
+np.float32,0x3f1ec43a,0x3ef70f42,2
+np.float32,0xbf12c5ed,0xbf5a0c52,2
+np.float32,0x8005e99c,0x8005e99c,2
+np.float32,0xbf79f5e7,0xc06fcca5,2
+np.float32,0x3ecbaf50,0x3eab7a03,2
+np.float32,0x46b0fd,0x46b0fd,2
+np.float32,0x3edb9023,0x3eb6b631,2
+np.float32,0x7f24bc41,0x42b09063,2
+np.float32,0xbd8d9328,0xbd92b4c6,2
+np.float32,0x3f2c5d7f,0x3f03c9d9,2
+np.float32,0x807bebc9,0x807bebc9,2
+np.float32,0x7f797a99,0x42b164e2,2
+np.float32,0x756e3c,0x756e3c,2
+np.float32,0x80416f8a,0x80416f8a,2
+np.float32,0x3e0d512a,0x3e04611a,2
+np.float32,0x3f7be3e6,0x3f2f61ec,2
+np.float32,0x80075c41,0x80075c41,2
+np.float32,0xbe850294,0xbe9a046c,2
+np.float32,0x684679,0x684679,2
+np.float32,0x3eb393c4,0x3e99eed2,2
+np.float32,0x3f4177c6,0x3f10195b,2
+np.float32,0x3dd1f402,0x3dc7dfe5,2
+np.float32,0x3ef484d4,0x3ec7e2e1,2
+np.float32,0x53eb8f,0x53eb8f,2
+np.float32,0x7f072cb6,0x42b02b20,2
+np.float32,0xbf1b6b55,0xbf6f28d4,2
+np.float32,0xbd8a98d8,0xbd8f827d,2
+np.float32,0x3eafb418,0x3e970e96,2
+np.float32,0x6555af,0x6555af,2
+np.float32,0x7dd5118e,0x42aceb6f,2
+np.float32,0x800a13f7,0x800a13f7,2
+np.float32,0x331a9d,0x331a9d,2
+np.float32,0x8063773f,0x8063773f,2
+np.float32,0x3e95e068,0x3e837553,2
+np.float32,0x80654b32,0x80654b32,2
+np.float32,0x3dabe0e0,0x3da50bb3,2
+np.float32,0xbf6283c3,0xc00a5280,2
+np.float32,0x80751cc5,0x80751cc5,2
+np.float32,0x3f668eb6,0x3f2465c0,2
+np.float32,0x3e13c058,0x3e0a048c,2
+np.float32,0x77780c,0x77780c,2
+np.float32,0x3f7d6e48,0x3f302868,2
+np.float32,0x7e31f9e3,0x42adf22f,2
+np.float32,0x246c7b,0x246c7b,2
+np.float32,0xbe915bf0,0xbeaafa6c,2
+np.float32,0xbf800000,0xff800000,2
+np.float32,0x3f698f42,0x3f25f8e0,2
+np.float32,0x7e698885,0x42ae7d48,2
+np.float32,0x3f5bbd42,0x3f1ea42c,2
+np.float32,0x5b8444,0x5b8444,2
+np.float32,0xbf6065f6,0xc005e2c6,2
+np.float32,0xbeb95036,0xbee60dad,2
+np.float32,0xbf44f846,0xbfbbcade,2
+np.float32,0xc96e5,0xc96e5,2
+np.float32,0xbf213e90,0xbf7e6eae,2
+np.float32,0xbeb309cc,0xbedc4fe6,2
+np.float32,0xbe781cf4,0xbe8e0fe6,2
+np.float32,0x7f0cf0db,0x42b04083,2
+np.float32,0xbf7b6143,0xc08078f9,2
+np.float32,0x80526fc6,0x80526fc6,2
+np.float32,0x3f092bf3,0x3edbaeec,2
+np.float32,0x3ecdf154,0x3ead16df,2
+np.float32,0x2fe85b,0x2fe85b,2
+np.float32,0xbf5100a0,0xbfd8f871,2
+np.float32,0xbec09d40,0xbef1a028,2
+np.float32,0x5e6a85,0x5e6a85,2
+np.float32,0xbec0e2a0,0xbef20f6b,2
+np.float32,0x3f72e788,0x3f2ad00d,2
+np.float32,0x880a6,0x880a6,2
+np.float32,0x3d9e90bf,0x3d98b9fc,2
+np.float32,0x15cf25,0x15cf25,2
+np.float32,0x10171b,0x10171b,2
+np.float32,0x805cf1aa,0x805cf1aa,2
+np.float32,0x3f19bd36,0x3ef0d0d2,2
+np.float32,0x3ebe2bda,0x3ea1b774,2
+np.float32,0xbecd8192,0xbf035c49,2
+np.float32,0x3e2ce508,0x3e1fc21b,2
+np.float32,0x290f,0x290f,2
+np.float32,0x803b679f,0x803b679f,2
+np.float32,0x1,0x1,2
+np.float32,0x807a9c76,0x807a9c76,2
+np.float32,0xbf65fced,0xc01257f8,2
+np.float32,0x3f783414,0x3f2d8475,2
+np.float32,0x3f2d9d92,0x3f0488da,2
+np.float32,0xbddb5798,0xbde80018,2
+np.float32,0x3e91afb8,0x3e8034e7,2
+np.float32,0xbf1b775a,0xbf6f476d,2
+np.float32,0xbf73a32c,0xc041f3ba,2
+np.float32,0xbea39364,0xbec5121b,2
+np.float32,0x80375b94,0x80375b94,2
+np.float32,0x3f331252,0x3f07c3e9,2
+np.float32,0xbf285774,0xbf892e74,2
+np.float32,0x3e699bb8,0x3e526d55,2
+np.float32,0x3f08208a,0x3eda523a,2
+np.float32,0xbf42fb4a,0xbfb78d60,2
+np.float32,0x8029c894,0x8029c894,2
+np.float32,0x3e926c0c,0x3e80c76e,2
+np.float32,0x801e4715,0x801e4715,2
+np.float32,0x3e4b36d8,0x3e395ffd,2
+np.float32,0x8041556b,0x8041556b,2
+np.float32,0xbf2d99ba,0xbf9119bd,2
+np.float32,0x3ed83ea8,0x3eb46250,2
+np.float32,0xbe94a280,0xbeaf92b4,2
+np.float32,0x7f4c7a64,0x42b0ff0a,2
+np.float32,0x806d4022,0x806d4022,2
+np.float32,0xbed382f8,0xbf086d26,2
+np.float32,0x1846fe,0x1846fe,2
+np.float32,0xbe702558,0xbe88d4d8,2
+np.float32,0xbe650ee0,0xbe81a3cc,2
+np.float32,0x3ee9d088,0x3ec0970c,2
+np.float32,0x7f6d4498,0x42b14b30,2
+np.float32,0xbef9f9e6,0xbf2b7ddb,2
+np.float32,0xbf70c384,0xc0349370,2
+np.float32,0xbeff9e9e,0xbf3110c8,2
+np.float32,0xbef06372,0xbf224aa9,2
+np.float32,0xbf15a692,0xbf60e1fa,2
+np.float32,0x8058c117,0x8058c117,2
+np.float32,0xbd9f74b8,0xbda6017b,2
+np.float32,0x801bf130,0x801bf130,2
+np.float32,0x805da84c,0x805da84c,2
+np.float32,0xff800000,0xffc00000,2
+np.float32,0xbeb01de2,0xbed7d6d6,2
+np.float32,0x8077de08,0x8077de08,2
+np.float32,0x3e327668,0x3e2482c1,2
+np.float32,0xbe7add88,0xbe8fe1ab,2
+np.float32,0x805a3c2e,0x805a3c2e,2
+np.float32,0x80326a73,0x80326a73,2
+np.float32,0x800b8a34,0x800b8a34,2
+np.float32,0x8048c83a,0x8048c83a,2
+np.float32,0xbf3799d6,0xbfa1a975,2
+np.float32,0x807649c7,0x807649c7,2
+np.float32,0x3dfdbf90,0x3def3798,2
+np.float32,0xbf1b538a,0xbf6eec4c,2
+np.float32,0xbf1e5989,0xbf76baa0,2
+np.float32,0xc7a80,0xc7a80,2
+np.float32,0x8001be54,0x8001be54,2
+np.float32,0x3f435bbc,0x3f112c6d,2
+np.float32,0xbeabcff8,0xbed151d1,2
+np.float32,0x7de20c78,0x42ad09b7,2
+np.float32,0x3f0e6d2e,0x3ee27b1e,2
+np.float32,0xbf0cb352,0xbf4c3267,2
+np.float32,0x7f6ec06f,0x42b14e61,2
+np.float32,0x7f6fa8ef,0x42b15053,2
+np.float32,0xbf3d2a6a,0xbfabe623,2
+np.float32,0x7f077a4c,0x42b02c46,2
+np.float32,0xbf2a68dc,0xbf8c3cc4,2
+np.float32,0x802a5dbe,0x802a5dbe,2
+np.float32,0x807f631c,0x807f631c,2
+np.float32,0x3dc9b8,0x3dc9b8,2
+np.float32,0x3ebdc1b7,0x3ea16a0a,2
+np.float32,0x7ef29dab,0x42aff3b5,2
+np.float32,0x3e8ab1cc,0x3e757806,2
+np.float32,0x3f27e88e,0x3f011c6d,2
+np.float32,0x3cfd1455,0x3cf93fb5,2
+np.float32,0x7f7eebf5,0x42b16fef,2
+np.float32,0x3c9b2140,0x3c99ade9,2
+np.float32,0x7e928601,0x42aef183,2
+np.float32,0xbd7d2db0,0xbd82abae,2
+np.float32,0x3e6f0df3,0x3e56da20,2
+np.float32,0x7d36a2fc,0x42ab39a3,2
+np.float32,0xbf49d3a2,0xbfc6c859,2
+np.float32,0x7ee541d3,0x42afd6b6,2
+np.float32,0x80753dc0,0x80753dc0,2
+np.float32,0x3f4ce486,0x3f16865d,2
+np.float32,0x39e701,0x39e701,2
+np.float32,0x3f3d9ede,0x3f0de5fa,2
+np.float32,0x7fafb2,0x7fafb2,2
+np.float32,0x3e013fdc,0x3df37090,2
+np.float32,0x807b6a2c,0x807b6a2c,2
+np.float32,0xbe86800a,0xbe9c08c7,2
+np.float32,0x7f40f080,0x42b0e14d,2
+np.float32,0x7eef5afe,0x42afecc8,2
+np.float32,0x7ec30052,0x42af83da,2
+np.float32,0x3eacf768,0x3e9503e1,2
+np.float32,0x7f13ef0e,0x42b0594e,2
+np.float32,0x80419f4a,0x80419f4a,2
+np.float32,0xbf485932,0xbfc3562a,2
+np.float32,0xbe8a24d6,0xbea10011,2
+np.float32,0xbda791c0,0xbdaed2bc,2
+np.float32,0x3e9b5169,0x3e87a67d,2
+np.float32,0x807dd882,0x807dd882,2
+np.float32,0x7f40170e,0x42b0df0a,2
+np.float32,0x7f02f7f9,0x42b01af1,2
+np.float32,0x3ea38bf9,0x3e8decde,2
+np.float32,0x3e2e7ce8,0x3e211ed4,2
+np.float32,0x70a7a6,0x70a7a6,2
+np.float32,0x7d978592,0x42ac3ce7,2
+np.float32,0x804d12d0,0x804d12d0,2
+np.float32,0x80165dc8,0x80165dc8,2
+np.float32,0x80000001,0x80000001,2
+np.float32,0x3e325da0,0x3e246da6,2
+np.float32,0xbe063bb8,0xbe0fe281,2
+np.float32,0x160b8,0x160b8,2
+np.float32,0xbe5687a4,0xbe70bbef,2
+np.float32,0x7f11ab34,0x42b05168,2
+np.float32,0xc955c,0xc955c,2
+np.float32,0xbea0003a,0xbebfd826,2
+np.float32,0x3f7fbdd9,0x3f315102,2
+np.float32,0xbe61aefc,0xbe7ef121,2
+np.float32,0xbf1b9873,0xbf6f9bc3,2
+np.float32,0x3a6d14,0x3a6d14,2
+np.float32,0xbf1ad3b4,0xbf6da808,2
+np.float32,0x3ed2dd24,0x3eb0963d,2
+np.float32,0xbe81a4ca,0xbe957d52,2
+np.float32,0x7f1be3e9,0x42b07421,2
+np.float32,0x7f5ce943,0x42b1269e,2
+np.float32,0x7eebcbdf,0x42afe51d,2
+np.float32,0x807181b5,0x807181b5,2
+np.float32,0xbecb03ba,0xbf0149ad,2
+np.float32,0x42edb8,0x42edb8,2
+np.float32,0xbf3aeec8,0xbfa7b13f,2
+np.float32,0xbd0c4f00,0xbd0ec4a0,2
+np.float32,0x3e48d260,0x3e376070,2
+np.float32,0x1a9731,0x1a9731,2
+np.float32,0x7f323be4,0x42b0b8b5,2
+np.float32,0x1a327f,0x1a327f,2
+np.float32,0x17f1fc,0x17f1fc,2
+np.float32,0xbf2f4f9b,0xbf93c91a,2
+np.float32,0x3ede8934,0x3eb8c9c3,2
+np.float32,0xbf56aaac,0xbfe968bb,2
+np.float32,0x3e22cb5a,0x3e17148c,2
+np.float32,0x7d9def,0x7d9def,2
+np.float32,0x8045b963,0x8045b963,2
+np.float32,0x77404f,0x77404f,2
+np.float32,0x7e2c9efb,0x42ade28b,2
+np.float32,0x8058ad89,0x8058ad89,2
+np.float32,0x7f4139,0x7f4139,2
+np.float32,0x8020e12a,0x8020e12a,2
+np.float32,0x800c9daa,0x800c9daa,2
+np.float32,0x7f2c5ac5,0x42b0a789,2
+np.float32,0x3f04a47b,0x3ed5c043,2
+np.float32,0x804692d5,0x804692d5,2
+np.float32,0xbf6e7fa4,0xc02bb493,2
+np.float32,0x80330756,0x80330756,2
+np.float32,0x7f3e29ad,0x42b0d9e1,2
+np.float32,0xbebf689a,0xbeefb24d,2
+np.float32,0x3f29a86c,0x3f022a56,2
+np.float32,0x3e3bd1c0,0x3e2c72b3,2
+np.float32,0x3f78f2e8,0x3f2de546,2
+np.float32,0x3f3709be,0x3f0a16af,2
+np.float32,0x3e11f150,0x3e086f97,2
+np.float32,0xbf5867ad,0xbfeee8a0,2
+np.float32,0xbebfb328,0xbef0296c,2
+np.float32,0x2f7f15,0x2f7f15,2
+np.float32,0x805cfe84,0x805cfe84,2
+np.float32,0xbf504e01,0xbfd71589,2
+np.float32,0x3ee0903c,0x3eba330c,2
+np.float32,0xbd838990,0xbd87f399,2
+np.float32,0x3f14444e,0x3ee9ee7d,2
+np.float32,0x7e352583,0x42adfb3a,2
+np.float32,0x7e76f824,0x42ae99ec,2
+np.float32,0x3f772d00,0x3f2cfebf,2
+np.float32,0x801f7763,0x801f7763,2
+np.float32,0x3f760bf5,0x3f2c6b87,2
+np.float32,0xbf0bb696,0xbf4a03a5,2
+np.float32,0x3f175d2c,0x3eedd6d2,2
+np.float32,0xbf5723f8,0xbfeae288,2
+np.float32,0x24de0a,0x24de0a,2
+np.float32,0x3cd73f80,0x3cd47801,2
+np.float32,0x7f013305,0x42b013fa,2
+np.float32,0x3e3ad425,0x3e2b9c50,2
+np.float32,0x7d3d16,0x7d3d16,2
+np.float32,0x3ef49738,0x3ec7ef54,2
+np.float32,0x3f5b8612,0x3f1e8678,2
+np.float32,0x7f0eeb5c,0x42b047a7,2
+np.float32,0x7e9d7cb0,0x42af1675,2
+np.float32,0xbdd1cfb0,0xbddd5aa0,2
+np.float32,0xbf645dba,0xc00e78fe,2
+np.float32,0x3f511174,0x3f18d56c,2
+np.float32,0x3d91ad00,0x3d8cba62,2
+np.float32,0x805298da,0x805298da,2
+np.float32,0xbedb6af4,0xbf0f4090,2
+np.float32,0x3d23b1ba,0x3d208205,2
+np.float32,0xbea5783e,0xbec7dc87,2
+np.float32,0x79d191,0x79d191,2
+np.float32,0x3e894413,0x3e7337da,2
+np.float32,0x80800000,0x80800000,2
+np.float32,0xbf34a8d3,0xbf9c907b,2
+np.float32,0x3bae779a,0x3bae011f,2
+np.float32,0x8049284d,0x8049284d,2
+np.float32,0x3eb42cc4,0x3e9a600b,2
+np.float32,0x3da1e2d0,0x3d9bce5f,2
+np.float32,0x3f364b8a,0x3f09a7af,2
+np.float32,0x3d930b10,0x3d8e0118,2
+np.float32,0x8061f8d7,0x8061f8d7,2
+np.float32,0x3f473213,0x3f13573b,2
+np.float32,0x3f1e2a38,0x3ef65102,2
+np.float32,0x8068f7d9,0x8068f7d9,2
+np.float32,0x3f181ef8,0x3eeeca2c,2
+np.float32,0x3eeb6168,0x3ec1a9f5,2
+np.float32,0xc2db6,0xc2db6,2
+np.float32,0x3ef7b578,0x3eca0a69,2
+np.float32,0xbf5b5a84,0xbff8d075,2
+np.float32,0x7f479d5f,0x42b0f2b7,2
+np.float32,0x3e6f3c24,0x3e56ff92,2
+np.float32,0x3f45543a,0x3f1249f0,2
+np.float32,0xbea7c1fa,0xbecb40d2,2
+np.float32,0x7de082,0x7de082,2
+np.float32,0x383729,0x383729,2
+np.float32,0xbd91cb90,0xbd973eb3,2
+np.float32,0x7f320218,0x42b0b80f,2
+np.float32,0x5547f2,0x5547f2,2
+np.float32,0x291fe4,0x291fe4,2
+np.float32,0xbe078ba0,0xbe11655f,2
+np.float32,0x7e0c0658,0x42ad7764,2
+np.float32,0x7e129a2b,0x42ad8ee5,2
+np.float32,0x3f7c96d4,0x3f2fbc0c,2
+np.float32,0x3f800000,0x3f317218,2
+np.float32,0x7f131754,0x42b05662,2
+np.float32,0x15f833,0x15f833,2
+np.float32,0x80392ced,0x80392ced,2
+np.float32,0x3f7c141a,0x3f2f7a36,2
+np.float32,0xbf71c03f,0xc038dcfd,2
+np.float32,0xbe14fb2c,0xbe20fff3,2
+np.float32,0xbee0bac6,0xbf13f14c,2
+np.float32,0x801a32dd,0x801a32dd,2
+np.float32,0x8e12d,0x8e12d,2
+np.float32,0x3f48c606,0x3f143a04,2
+np.float32,0x7f418af5,0x42b0e2e6,2
+np.float32,0x3f1f2918,0x3ef78bb7,2
+np.float32,0x11141b,0x11141b,2
+np.float32,0x3e9fc9e8,0x3e8b11ad,2
+np.float32,0xbea5447a,0xbec79010,2
+np.float32,0xbe31d904,0xbe4359db,2
+np.float32,0x80184667,0x80184667,2
+np.float32,0xbf00503c,0xbf3212c2,2
+np.float32,0x3e0328cf,0x3df6d425,2
+np.float32,0x7ee8e1b7,0x42afdebe,2
+np.float32,0xbef95e24,0xbf2ae5db,2
+np.float32,0x7f3e4eed,0x42b0da45,2
+np.float32,0x3f43ee85,0x3f117fa0,2
+np.float32,0xbcfa2ac0,0xbcfe10fe,2
+np.float32,0x80162774,0x80162774,2
+np.float32,0x372e8b,0x372e8b,2
+np.float32,0x3f263802,0x3f0016b0,2
+np.float32,0x8008725f,0x8008725f,2
+np.float32,0x800beb40,0x800beb40,2
+np.float32,0xbe93308e,0xbead8a77,2
+np.float32,0x3d8a4240,0x3d85cab8,2
+np.float32,0x80179de0,0x80179de0,2
+np.float32,0x7f4a98f2,0x42b0fa4f,2
+np.float32,0x3f0d214e,0x3ee0cff1,2
+np.float32,0x80536c2c,0x80536c2c,2
+np.float32,0x7e7038ed,0x42ae8bbe,2
+np.float32,0x7f345af9,0x42b0bec4,2
+np.float32,0xbf243219,0xbf83442f,2
+np.float32,0x7e0d5555,0x42ad7c27,2
+np.float32,0x762e95,0x762e95,2
+np.float32,0x7ebf4548,0x42af79f6,2
+np.float32,0x8079639e,0x8079639e,2
+np.float32,0x3ef925c0,0x3ecb0260,2
+np.float32,0x3f708695,0x3f2996d6,2
+np.float32,0xfca9f,0xfca9f,2
+np.float32,0x8060dbf4,0x8060dbf4,2
+np.float32,0x4c8840,0x4c8840,2
+np.float32,0xbea922ee,0xbecd4ed5,2
+np.float32,0xbf4f28a9,0xbfd40b98,2
+np.float32,0xbe25ad48,0xbe34ba1b,2
+np.float32,0x3f2fb254,0x3f05c58c,2
+np.float32,0x3f73bcc2,0x3f2b3d5f,2
+np.float32,0xbf479a07,0xbfc1a165,2
+np.float32,0xbeb9a808,0xbee69763,2
+np.float32,0x7eb16a65,0x42af5376,2
+np.float32,0xbeb3e442,0xbedda042,2
+np.float32,0x3d8f439c,0x3d8a79ac,2
+np.float32,0x80347516,0x80347516,2
+np.float32,0x3e8a0c5d,0x3e74738c,2
+np.float32,0xbf0383a4,0xbf389289,2
+np.float32,0x806be8f5,0x806be8f5,2
+np.float32,0x8023f0c5,0x8023f0c5,2
+np.float32,0x2060e9,0x2060e9,2
+np.float32,0xbf759eba,0xc04d239f,2
+np.float32,0x3d84cc5a,0x3d80ab96,2
+np.float32,0xbf57746b,0xbfebdf87,2
+np.float32,0x3e418417,0x3e31401f,2
+np.float32,0xaecce,0xaecce,2
+np.float32,0x3cd1766f,0x3cced45c,2
+np.float32,0x53724a,0x53724a,2
+np.float32,0x3f773710,0x3f2d03de,2
+np.float32,0x8013d040,0x8013d040,2
+np.float32,0x4d0eb2,0x4d0eb2,2
+np.float32,0x8014364a,0x8014364a,2
+np.float32,0x7f3c56c9,0x42b0d4f2,2
+np.float32,0x3eee1e1c,0x3ec3891a,2
+np.float32,0xbdda3eb8,0xbde6c5a0,2
+np.float32,0x26ef4a,0x26ef4a,2
+np.float32,0x7ed3370c,0x42afacbf,2
+np.float32,0xbf06e31b,0xbf3f9ab7,2
+np.float32,0xbe3185f0,0xbe42f556,2
+np.float32,0x3dcf9abe,0x3dc5be41,2
+np.float32,0xbf3696d9,0xbf9fe2bd,2
+np.float32,0x3e68ee50,0x3e51e01a,2
+np.float32,0x3f3d4cc2,0x3f0db6ca,2
+np.float32,0x7fa00000,0x7fe00000,2
+np.float32,0xbf03070c,0xbf3792d0,2
+np.float32,0x3ea79e6c,0x3e910092,2
+np.float32,0xbf1a393a,0xbf6c2251,2
+np.float32,0x3f41eb0e,0x3f105afc,2
+np.float32,0x3ceadb2f,0x3ce78d79,2
+np.float32,0xbf5dc105,0xc000be2c,2
+np.float32,0x7ebb5a0e,0x42af6f5c,2
+np.float32,0xbf7c44eb,0xc0875058,2
+np.float32,0x6aaaf4,0x6aaaf4,2
+np.float32,0x807d8f23,0x807d8f23,2
+np.float32,0xbee6b142,0xbf194fef,2
+np.float32,0xbe83f256,0xbe989526,2
+np.float32,0x7d588e,0x7d588e,2
+np.float32,0x7cc80131,0x42aa0542,2
+np.float32,0x3e0ab198,0x3e02124f,2
+np.float32,0xbf6e64db,0xc02b52eb,2
+np.float32,0x3d238b56,0x3d205d1b,2
+np.float32,0xbeb408e2,0xbeddd8bc,2
+np.float32,0x3f78340d,0x3f2d8471,2
+np.float32,0x806162a3,0x806162a3,2
+np.float32,0x804e484f,0x804e484f,2
+np.float32,0xbeb8c576,0xbee53466,2
+np.float32,0x807aab15,0x807aab15,2
+np.float32,0x3f523e20,0x3f197ab8,2
+np.float32,0xbf009190,0xbf3295de,2
+np.float32,0x3df43da5,0x3de6bd82,2
+np.float32,0x7f639aea,0x42b135e6,2
+np.float32,0x3f1e638a,0x3ef697da,2
+np.float32,0xbf4884de,0xbfc3bac3,2
+np.float32,0xbe9336b6,0xbead931b,2
+np.float32,0x6daf7f,0x6daf7f,2
+np.float32,0xbf1fc152,0xbf7a70b1,2
+np.float32,0x3f103720,0x3ee4c649,2
+np.float32,0x3eeaa227,0x3ec126df,2
+np.float32,0x7f7ea945,0x42b16f69,2
+np.float32,0x3d3cd800,0x3d389ead,2
+np.float32,0x3f3d7268,0x3f0dcc6e,2
+np.float32,0xbf3c1b41,0xbfa9e2e3,2
+np.float32,0x3ecf3818,0x3eadffb2,2
+np.float32,0x3f1af312,0x3ef25372,2
+np.float32,0x48fae4,0x48fae4,2
+np.float64,0x7fedaa1ee4fb543d,0x40862da7ca7c308e,1
+np.float64,0x8007d2d810efa5b1,0x8007d2d810efa5b1,1
+np.float64,0x3fc385e069270bc0,0x3fc22b8884cf2c3b,1
+np.float64,0x68ed4130d1da9,0x68ed4130d1da9,1
+np.float64,0x8008e93e58d1d27d,0x8008e93e58d1d27d,1
+np.float64,0xbfd3d62852a7ac50,0xbfd7be3a7ad1af02,1
+np.float64,0xbfc1fa0ba923f418,0xbfc35f0f19447df7,1
+np.float64,0xbfe01b8cec20371a,0xbfe6658c7e6c8e50,1
+np.float64,0xbfeda81a147b5034,0xc004e9c94f2b91c1,1
+np.float64,0xbfe1c36a97e386d5,0xbfe9ead4d6beaa92,1
+np.float64,0x3fe50be51f2a17ca,0x3fe02c8067d9e5c5,1
+np.float64,0x3febed4d3337da9a,0x3fe413956466134f,1
+np.float64,0x80068ea59ced1d4c,0x80068ea59ced1d4c,1
+np.float64,0x3febe77d5877cefb,0x3fe4107ac088bc71,1
+np.float64,0x800ae77617d5ceed,0x800ae77617d5ceed,1
+np.float64,0x3fd0546b60a0a8d7,0x3fcd16c2e995ab23,1
+np.float64,0xbfe33e1476667c29,0xbfed6d7faec4db2f,1
+np.float64,0x3fe9d2fd51b3a5fb,0x3fe2eef834310219,1
+np.float64,0x8004249878284932,0x8004249878284932,1
+np.float64,0xbfd5b485c72b690c,0xbfda828ccc6a7a5c,1
+np.float64,0x7fcd6e6b6b3adcd6,0x408622807f04768e,1
+np.float64,0x3fd7f9c32caff386,0x3fd45d024514b8da,1
+np.float64,0x7f87eb9d702fd73a,0x40860aa99fcff27f,1
+np.float64,0xbfc5d1f6fb2ba3ec,0xbfc7ec367cb3fecc,1
+np.float64,0x8008316a44d062d5,0x8008316a44d062d5,1
+np.float64,0xbfd54e4358aa9c86,0xbfd9e889d2998a4a,1
+np.float64,0xda65facdb4cc0,0xda65facdb4cc0,1
+np.float64,0x3fc5b4f6f32b69f0,0x3fc40d13aa8e248b,1
+np.float64,0x3fd825a5d5b04b4c,0x3fd47ce73e04d3ff,1
+np.float64,0x7ac9d56ef593b,0x7ac9d56ef593b,1
+np.float64,0xbfd0a51977214a32,0xbfd34702071428be,1
+np.float64,0x3fd21f620b243ec4,0x3fcfea0c02193640,1
+np.float64,0x3fe6fb3f1b2df67e,0x3fe151ffb18c983b,1
+np.float64,0x700de022e01bd,0x700de022e01bd,1
+np.float64,0xbfbb76b81236ed70,0xbfbd0d31deea1ec7,1
+np.float64,0x3fecfc3856f9f870,0x3fe4a2fcadf221e0,1
+np.float64,0x3fede286517bc50c,0x3fe51af2fbd6ef63,1
+np.float64,0x7fdc8da96c391b52,0x408627ce09cfef2b,1
+np.float64,0x8000edfcfb81dbfb,0x8000edfcfb81dbfb,1
+np.float64,0x8009ebc42af3d789,0x8009ebc42af3d789,1
+np.float64,0x7fd658aaf8acb155,0x408625d80cd1ccc9,1
+np.float64,0x3feea584a37d4b09,0x3fe57f29a73729cd,1
+np.float64,0x4cfe494699fca,0x4cfe494699fca,1
+np.float64,0xbfe9d96460b3b2c9,0xbffa62ecfa026c77,1
+np.float64,0x7fdb3852c3b670a5,0x4086276c191dc9b1,1
+np.float64,0xbfe4d1fc9ee9a3f9,0xbff0d37ce37cf479,1
+np.float64,0xffefffffffffffff,0xfff8000000000000,1
+np.float64,0xbfd1c43d7fa3887a,0xbfd4cfbefb5f2c43,1
+np.float64,0x3fec4a8e0d78951c,0x3fe4453a82ca2570,1
+np.float64,0x7fafed74583fdae8,0x4086181017b8dac9,1
+np.float64,0x80076c4ebcced89e,0x80076c4ebcced89e,1
+np.float64,0x8001a9aa7b235356,0x8001a9aa7b235356,1
+np.float64,0x121260fe2424d,0x121260fe2424d,1
+np.float64,0x3fddd028e3bba052,0x3fd87998c4c43c5b,1
+np.float64,0x800ed1cf4a9da39f,0x800ed1cf4a9da39f,1
+np.float64,0xbfef2e63d7fe5cc8,0xc00d53480b16971b,1
+np.float64,0xbfedde3309fbbc66,0xc005ab55b7a7c127,1
+np.float64,0x3fda3e1e85b47c3d,0x3fd5fddafd8d6729,1
+np.float64,0x8007c6443c6f8c89,0x8007c6443c6f8c89,1
+np.float64,0xbfe101705f2202e0,0xbfe8420817665121,1
+np.float64,0x7fe0bff3c1e17fe7,0x4086291539c56d80,1
+np.float64,0x7fe6001dab6c003a,0x40862b43aa7cb060,1
+np.float64,0x7fbdecf7de3bd9ef,0x40861d170b1c51a5,1
+np.float64,0xbfc0fd508c21faa0,0xbfc23a5876e99fa3,1
+np.float64,0xbfcf6eb14f3edd64,0xbfd208cbf742c8ea,1
+np.float64,0x3f6d40ea403a81d5,0x3f6d33934ab8e799,1
+np.float64,0x7fc32600b6264c00,0x40861f10302357e0,1
+np.float64,0x3fd05870baa0b0e0,0x3fcd1d2af420fac7,1
+np.float64,0x80051d5120aa3aa3,0x80051d5120aa3aa3,1
+np.float64,0x3fdb783fcfb6f080,0x3fd6db229658c083,1
+np.float64,0x3fe0b61199e16c24,0x3fdae41e277be2eb,1
+np.float64,0x3daf62167b5ed,0x3daf62167b5ed,1
+np.float64,0xbfec3c53b6f878a7,0xc0011f0ce7a78a2a,1
+np.float64,0x800fc905161f920a,0x800fc905161f920a,1
+np.float64,0x3fdc7b9cc138f73a,0x3fd78f9c2360e661,1
+np.float64,0x7fe4079e97a80f3c,0x40862a83795f2443,1
+np.float64,0x8010000000000000,0x8010000000000000,1
+np.float64,0x7fe6da5345adb4a6,0x40862b9183c1e4b0,1
+np.float64,0xbfd0a76667214ecc,0xbfd34a1e0c1f6186,1
+np.float64,0x37fb0b906ff62,0x37fb0b906ff62,1
+np.float64,0x7fe170e59fa2e1ca,0x408629680a55e5c5,1
+np.float64,0x3fea900c77752019,0x3fe356eec75aa345,1
+np.float64,0x3fc575c63a2aeb8c,0x3fc3d701167d76b5,1
+np.float64,0x3fe8b45da87168bc,0x3fe24ecbb778fd44,1
+np.float64,0xbfcb990ab5373214,0xbfcf1596c076813c,1
+np.float64,0xf146fdfbe28e0,0xf146fdfbe28e0,1
+np.float64,0x8001fcd474c3f9aa,0x8001fcd474c3f9aa,1
+np.float64,0xbfe9b555eeb36aac,0xbffa0630c3bb485b,1
+np.float64,0x800f950be83f2a18,0x800f950be83f2a18,1
+np.float64,0x7feb0e03ab761c06,0x40862ceb30e36887,1
+np.float64,0x7fca51bd4a34a37a,0x4086219b9dfd35c9,1
+np.float64,0xbfdc27c34cb84f86,0xbfe28ccde8d6bc08,1
+np.float64,0x80009ce1714139c4,0x80009ce1714139c4,1
+np.float64,0x8005290fb1ea5220,0x8005290fb1ea5220,1
+np.float64,0xbfee81e6473d03cd,0xc00885972ca1699b,1
+np.float64,0x7fcfb11a373f6233,0x408623180b8f75d9,1
+np.float64,0xbfcb9c4bfd373898,0xbfcf19bd25881928,1
+np.float64,0x7feaec5885f5d8b0,0x40862ce136050e6c,1
+np.float64,0x8009e17a4a53c2f5,0x8009e17a4a53c2f5,1
+np.float64,0xbfe1cceb9e6399d7,0xbfea0038bd3def20,1
+np.float64,0x8009170bd7122e18,0x8009170bd7122e18,1
+np.float64,0xb2b6f7f1656df,0xb2b6f7f1656df,1
+np.float64,0x3fc75bfd1f2eb7f8,0x3fc574c858332265,1
+np.float64,0x3fa24c06ec249800,0x3fa1fa462ffcb8ec,1
+np.float64,0xaa9a4d2d5534a,0xaa9a4d2d5534a,1
+np.float64,0xbfd7b76208af6ec4,0xbfdda0c3200dcc9f,1
+np.float64,0x7f8cbab73039756d,0x40860c20cba57a94,1
+np.float64,0x3fdbcf9f48b79f3f,0x3fd71827a60e8b6d,1
+np.float64,0xbfdd60f71a3ac1ee,0xbfe3a94bc8cf134d,1
+np.float64,0xb9253589724a7,0xb9253589724a7,1
+np.float64,0xbfcf28e37e3e51c8,0xbfd1da9977b741e3,1
+np.float64,0x80011457f7e228b1,0x80011457f7e228b1,1
+np.float64,0x7fec33df737867be,0x40862d404a897122,1
+np.float64,0xae55f8f95cabf,0xae55f8f95cabf,1
+np.float64,0xbfc1ab9397235728,0xbfc303e5533d4a5f,1
+np.float64,0x7fef0f84b3be1f08,0x40862e05f9ba7118,1
+np.float64,0x7fdc94f328b929e5,0x408627d01449d825,1
+np.float64,0x3fee1b598c7c36b3,0x3fe53847be166834,1
+np.float64,0x3fee8326f37d064e,0x3fe56d96f3fbcf43,1
+np.float64,0x3fe7b18a83ef6316,0x3fe1bb6a6d48c675,1
+np.float64,0x3fe5db969c6bb72e,0x3fe0a8d7d151996c,1
+np.float64,0x3e3391d27c673,0x3e3391d27c673,1
+np.float64,0x3fe79a46d76f348e,0x3fe1ae09a96ea628,1
+np.float64,0x7ff4000000000000,0x7ffc000000000000,1
+np.float64,0x7fe57d6505aafac9,0x40862b13925547f1,1
+np.float64,0x3fc433371d28666e,0x3fc2c196a764c47b,1
+np.float64,0x8008dbf69cd1b7ee,0x8008dbf69cd1b7ee,1
+np.float64,0xbfe744f459ee89e8,0xbff4c847ad3ee152,1
+np.float64,0x80098aa245331545,0x80098aa245331545,1
+np.float64,0x6747112ece8e3,0x6747112ece8e3,1
+np.float64,0x5d342a40ba69,0x5d342a40ba69,1
+np.float64,0xf7a17739ef42f,0xf7a17739ef42f,1
+np.float64,0x3fe1b34a9d236695,0x3fdc2d7c4e2c347a,1
+np.float64,0x7fb53bf5ec2a77eb,0x40861a585ec8f7ff,1
+np.float64,0xbfe6256f1cec4ade,0xbff2d89a36be65ae,1
+np.float64,0xb783bc9b6f078,0xb783bc9b6f078,1
+np.float64,0xbfedf74a3bfbee94,0xc0060bb6f2bc11ef,1
+np.float64,0x3fda2a5eccb454be,0x3fd5efd7f18b8e81,1
+np.float64,0xbfb3838ab2270718,0xbfb44c337fbca3c3,1
+np.float64,0x3fb4ac6dc22958e0,0x3fb3e194ca01a502,1
+np.float64,0x76c11aaaed824,0x76c11aaaed824,1
+np.float64,0x80025bb1af04b764,0x80025bb1af04b764,1
+np.float64,0x3fdc02740ab804e8,0x3fd73b8cd6f95f19,1
+np.float64,0x3fe71856f5ee30ae,0x3fe162e9fafb4428,1
+np.float64,0x800236f332646de7,0x800236f332646de7,1
+np.float64,0x7fe13fd9d2e27fb3,0x408629516b42a317,1
+np.float64,0x7fdf6bbd34bed779,0x40862892069d805c,1
+np.float64,0x3fd4727beba8e4f8,0x3fd1be5b48d9e282,1
+np.float64,0x800e0fac9e5c1f59,0x800e0fac9e5c1f59,1
+np.float64,0xfb54423ff6a89,0xfb54423ff6a89,1
+np.float64,0x800fbf7ed47f7efe,0x800fbf7ed47f7efe,1
+np.float64,0x3fe9d41fa2f3a840,0x3fe2ef98dc1fd463,1
+np.float64,0x800d733e805ae67d,0x800d733e805ae67d,1
+np.float64,0x3feebe4c46fd7c98,0x3fe58bcf7f47264e,1
+np.float64,0x7fe1ab77b5e356ee,0x40862982bb3dce34,1
+np.float64,0xbfdddac05abbb580,0xbfe41aa45f72d5a2,1
+np.float64,0x3fe14219dee28434,0x3fdb9b137d1f1220,1
+np.float64,0x3fe25d3d5a24ba7b,0x3fdd06e1cf32d35a,1
+np.float64,0x8000fa4fbe81f4a0,0x8000fa4fbe81f4a0,1
+np.float64,0x3fe303e23e6607c4,0x3fddd94982efa9f1,1
+np.float64,0x3fe89cf5d83139ec,0x3fe24193a2e12f75,1
+np.float64,0x3fe9b36ef87366de,0x3fe2dd7cdc25a4a5,1
+np.float64,0xbfdb8b38f8371672,0xbfe2023ba7e002bb,1
+np.float64,0xafc354955f86b,0xafc354955f86b,1
+np.float64,0xbfe2f3d49e65e7a9,0xbfecb557a94123d3,1
+np.float64,0x800496617c092cc4,0x800496617c092cc4,1
+np.float64,0x32db0cfa65b62,0x32db0cfa65b62,1
+np.float64,0xbfd893bfa2b12780,0xbfdf02a8c1e545aa,1
+np.float64,0x7fd5ac927d2b5924,0x408625997e7c1f9b,1
+np.float64,0x3fde9defb8bd3be0,0x3fd9056190986349,1
+np.float64,0x80030cfeb54619fe,0x80030cfeb54619fe,1
+np.float64,0x3fcba85b273750b8,0x3fc90a5ca976594f,1
+np.float64,0x3fe98f6f5cf31edf,0x3fe2c97fcb4eca25,1
+np.float64,0x3fe33dbf90667b80,0x3fde21b83321b993,1
+np.float64,0x3fe4686636e8d0cc,0x3fdf928cdca751b3,1
+np.float64,0x80018ade6ce315be,0x80018ade6ce315be,1
+np.float64,0x7fa9af70c8335ee1,0x408616528cd5a906,1
+np.float64,0x3fbeb460aa3d68c0,0x3fbcff96b00a2193,1
+np.float64,0x7fa82c869830590c,0x408615d6598d9368,1
+np.float64,0xd08c0e6fa1182,0xd08c0e6fa1182,1
+np.float64,0x3fef4eb750fe9d6f,0x3fe5d522fd4e7f64,1
+np.float64,0xbfc586f5492b0dec,0xbfc791eaae92aad1,1
+np.float64,0x7fede64ac7bbcc95,0x40862db7f444fa7b,1
+np.float64,0x3fe540003d6a8000,0x3fe04bdfc2916a0b,1
+np.float64,0x8009417fe6f28300,0x8009417fe6f28300,1
+np.float64,0x3fe6959cf16d2b3a,0x3fe116a1ce01887b,1
+np.float64,0x3fb0a40036214800,0x3fb01f447778219a,1
+np.float64,0x3feff26e91ffe4dd,0x3fe627798fc859a7,1
+np.float64,0x7fed8e46cd7b1c8d,0x40862da044a1d102,1
+np.float64,0x7fec4eb774f89d6e,0x40862d47e43edb53,1
+np.float64,0x3fe800e5e07001cc,0x3fe1e8e2b9105fc2,1
+np.float64,0x800f4eb2f9be9d66,0x800f4eb2f9be9d66,1
+np.float64,0x800611659bcc22cc,0x800611659bcc22cc,1
+np.float64,0x3fd66e65d2acdccc,0x3fd33ad63a5e1000,1
+np.float64,0x800a9085b7f5210c,0x800a9085b7f5210c,1
+np.float64,0x7fdf933a3fbf2673,0x4086289c0e292f2b,1
+np.float64,0x1cd1ba7a39a38,0x1cd1ba7a39a38,1
+np.float64,0xbfefd0b10fffa162,0xc0149ded900ed851,1
+np.float64,0xbfe8c63485b18c69,0xbff7cf3078b1574f,1
+np.float64,0x3fecde56ca79bcae,0x3fe4934afbd7dda9,1
+np.float64,0x8006cd6888cd9ad2,0x8006cd6888cd9ad2,1
+np.float64,0x3fd7a391c2af4724,0x3fd41e2f74df2329,1
+np.float64,0x3fe6a8ad58ed515a,0x3fe121ccfb28e6f5,1
+np.float64,0x7fe18a80dd631501,0x40862973c09086b9,1
+np.float64,0xbf74fd6d8029fb00,0xbf750b3e368ebe6b,1
+np.float64,0x3fdd35e93dba6bd4,0x3fd810071faaffad,1
+np.float64,0x3feb0d8f57361b1f,0x3fe39b3abdef8b7a,1
+np.float64,0xbfd5ec7288abd8e6,0xbfdad764df0d2ca1,1
+np.float64,0x7fdc848272b90904,0x408627cb78f3fb9e,1
+np.float64,0x800ed3eda91da7db,0x800ed3eda91da7db,1
+np.float64,0x3fefac64857f58c9,0x3fe60459dbaad1ba,1
+np.float64,0x3fd1df7a5ba3bef4,0x3fcf864a39b926ff,1
+np.float64,0xfe26ca4bfc4da,0xfe26ca4bfc4da,1
+np.float64,0xbfd1099f8da21340,0xbfd3cf6e6efe934b,1
+np.float64,0xbfe15de9a7a2bbd4,0xbfe909cc895f8795,1
+np.float64,0x3fe89714ed712e2a,0x3fe23e40d31242a4,1
+np.float64,0x800387113e470e23,0x800387113e470e23,1
+np.float64,0x3fe4f80730e9f00e,0x3fe0208219314cf1,1
+np.float64,0x2f95a97c5f2b6,0x2f95a97c5f2b6,1
+np.float64,0x800ea7cdd87d4f9c,0x800ea7cdd87d4f9c,1
+np.float64,0xbf64b967c0297300,0xbf64c020a145b7a5,1
+np.float64,0xbfc5a91a342b5234,0xbfc7bafd77a61d81,1
+np.float64,0xbfe2226fe76444e0,0xbfeac33eb1d1b398,1
+np.float64,0x3fc6aaa8d42d5552,0x3fc4de79f5c68cd4,1
+np.float64,0x3fe54fd4c1ea9faa,0x3fe05561a9a5922b,1
+np.float64,0x80029c1f75653840,0x80029c1f75653840,1
+np.float64,0xbfcb4a84a2369508,0xbfceb1a23bac3995,1
+np.float64,0x80010abeff02157f,0x80010abeff02157f,1
+np.float64,0x7f92d12cf825a259,0x40860e49bde3a5b6,1
+np.float64,0x800933e7027267ce,0x800933e7027267ce,1
+np.float64,0x3fc022b12e204562,0x3fbe64acc53ed887,1
+np.float64,0xbfe35f938de6bf27,0xbfedc1f3e443c016,1
+np.float64,0x1f8d9bae3f1b4,0x1f8d9bae3f1b4,1
+np.float64,0x3fe552f22ceaa5e4,0x3fe057404072350f,1
+np.float64,0xbfa73753442e6ea0,0xbfa7c24a100190f1,1
+np.float64,0x7fb3e2982827c52f,0x408619d1efa676b6,1
+np.float64,0xbfd80cb7a5301970,0xbfde28e65f344f33,1
+np.float64,0xbfcde835973bd06c,0xbfd10806fba46c8f,1
+np.float64,0xbfd4e3c749a9c78e,0xbfd949aff65de39c,1
+np.float64,0x3fcb4b9d6f36973b,0x3fc8be02ad6dc0d3,1
+np.float64,0x1a63000034c7,0x1a63000034c7,1
+np.float64,0x7fdc9c751e3938e9,0x408627d22df71959,1
+np.float64,0x3fd74f3f712e9e7f,0x3fd3e07df0c37ec1,1
+np.float64,0xbfceab74d33d56e8,0xbfd187e99bf82903,1
+np.float64,0x7ff0000000000000,0x7ff0000000000000,1
+np.float64,0xbfb2cca466259948,0xbfb3868208e8de30,1
+np.float64,0x800204688b8408d2,0x800204688b8408d2,1
+np.float64,0x3e4547407c8aa,0x3e4547407c8aa,1
+np.float64,0xbfe4668846e8cd10,0xbff03c85189f3818,1
+np.float64,0x800dd350245ba6a0,0x800dd350245ba6a0,1
+np.float64,0xbfbc13c160382780,0xbfbdbd56ce996d16,1
+np.float64,0x7fe25a628a24b4c4,0x408629d06eb2d64d,1
+np.float64,0x3fd19dabbc233b57,0x3fcf1f3ed1d34c8c,1
+np.float64,0x547e20faa8fc5,0x547e20faa8fc5,1
+np.float64,0xbfe19392c6232726,0xbfe97ffe4f303335,1
+np.float64,0x3f87f9f6702ff400,0x3f87d64fb471bb04,1
+np.float64,0x9dfc52db3bf8b,0x9dfc52db3bf8b,1
+np.float64,0x800e1f5a9adc3eb5,0x800e1f5a9adc3eb5,1
+np.float64,0xbfddbd09c8bb7a14,0xbfe3fed7d7cffc70,1
+np.float64,0xbfeda71af87b4e36,0xc004e6631c514544,1
+np.float64,0xbfdbfcfe1bb7f9fc,0xbfe266b5d4a56265,1
+np.float64,0x3fe4ee78cd69dcf2,0x3fe01abba4e81fc9,1
+np.float64,0x800f13b820de2770,0x800f13b820de2770,1
+np.float64,0x3f861e09702c3c00,0x3f85ffae83b02c4f,1
+np.float64,0xbfc0972479212e48,0xbfc1c4bf70b30cbc,1
+np.float64,0x7fef057ef57e0afd,0x40862e036479f6a9,1
+np.float64,0x8bdbabe517b76,0x8bdbabe517b76,1
+np.float64,0xbfec495417f892a8,0xc0013ade88746d18,1
+np.float64,0x3fec680ab3f8d015,0x3fe454dd304b560d,1
+np.float64,0xbfae7ce60c3cf9d0,0xbfaf6eef15bbe56b,1
+np.float64,0x3fec314124786282,0x3fe437ca06294f5a,1
+np.float64,0x7fd5ed05b82bda0a,0x408625b125518e58,1
+np.float64,0x3feac9f02f3593e0,0x3fe3768104dd5cb7,1
+np.float64,0x0,0x0,1
+np.float64,0xbfddd2abd5bba558,0xbfe41312b8ea20de,1
+np.float64,0xbfedf9558c7bf2ab,0xc00613c53e0bb33a,1
+np.float64,0x3fef245ffefe48c0,0x3fe5bfb4dfe3b7a5,1
+np.float64,0x7fe178604922f0c0,0x4086296b77d5eaef,1
+np.float64,0x10000000000000,0x10000000000000,1
+np.float64,0x7fed026766ba04ce,0x40862d7a0dc45643,1
+np.float64,0xbfde27d8c3bc4fb2,0xbfe46336b6447697,1
+np.float64,0x3fe9485d9cb290bb,0x3fe2a1e4b6419423,1
+np.float64,0xbfe27b8a7464f715,0xbfeb9382f5b16f65,1
+np.float64,0x5c34d274b869b,0x5c34d274b869b,1
+np.float64,0xbfeee0b7453dc16f,0xc00acdb46459b6e6,1
+np.float64,0x7fe3dfb4d4e7bf69,0x40862a73785fdf12,1
+np.float64,0xb4635eef68c6c,0xb4635eef68c6c,1
+np.float64,0xbfe522a2c82a4546,0xbff148912a59a1d6,1
+np.float64,0x8009ba38a9737472,0x8009ba38a9737472,1
+np.float64,0xbfc056ff3820ae00,0xbfc17b2205fa180d,1
+np.float64,0x7fe1c8b8a0239170,0x4086298feeee6133,1
+np.float64,0x3fe2d2c6b9e5a58e,0x3fdd9b907471031b,1
+np.float64,0x3fa0a161bc2142c0,0x3fa05db36f6a073b,1
+np.float64,0x3fdef4268ebde84c,0x3fd93f980794d1e7,1
+np.float64,0x800ecd9fe2fd9b40,0x800ecd9fe2fd9b40,1
+np.float64,0xbfc9fbd45e33f7a8,0xbfcd0afc47c340f6,1
+np.float64,0x3fe8c3035b718606,0x3fe2570eb65551a1,1
+np.float64,0xbfe78c4ad2ef1896,0xbff54d25b3328742,1
+np.float64,0x8006f5dcf8adebbb,0x8006f5dcf8adebbb,1
+np.float64,0x800301dca2a603ba,0x800301dca2a603ba,1
+np.float64,0xad4289e55a851,0xad4289e55a851,1
+np.float64,0x80037764f9e6eecb,0x80037764f9e6eecb,1
+np.float64,0xbfe73575b26e6aec,0xbff4abfb5e985c62,1
+np.float64,0xbfc6cb91652d9724,0xbfc91a8001b33ec2,1
+np.float64,0xbfe3a918ffe75232,0xbfee7e6e4fd34c53,1
+np.float64,0x9bc84e2b3790a,0x9bc84e2b3790a,1
+np.float64,0x7fdeec303cbdd85f,0x408628714a49d996,1
+np.float64,0x3fe1d1dcb763a3ba,0x3fdc54ce060dc7f4,1
+np.float64,0x8008ae6432b15cc9,0x8008ae6432b15cc9,1
+np.float64,0x3fd8022fa2b00460,0x3fd46322bf02a609,1
+np.float64,0xbfc55b64472ab6c8,0xbfc75d9568f462e0,1
+np.float64,0xbfe8b165437162ca,0xbff7a15e2ead645f,1
+np.float64,0x7f759330feeb3,0x7f759330feeb3,1
+np.float64,0xbfd504f68eaa09ee,0xbfd97b06c01d7473,1
+np.float64,0x54702d5aa8e06,0x54702d5aa8e06,1
+np.float64,0xbfed1779337a2ef2,0xc0032f7109ef5a51,1
+np.float64,0xe248bd4dc4918,0xe248bd4dc4918,1
+np.float64,0xbfd8c59150318b22,0xbfdf53bca6ca8b1e,1
+np.float64,0xbfe3b9d942e773b2,0xbfeea9fcad277ba7,1
+np.float64,0x800934ec127269d9,0x800934ec127269d9,1
+np.float64,0xbfbb7f535a36fea8,0xbfbd16d61b6c52b8,1
+np.float64,0xccb185a199631,0xccb185a199631,1
+np.float64,0x3fe3dda76fe7bb4e,0x3fdee83bc6094301,1
+np.float64,0xbfe0c902f5e19206,0xbfe7ca7c0e888006,1
+np.float64,0xbfefeed08cbfdda1,0xc018aadc483c8724,1
+np.float64,0x7fd0c05c52a180b8,0x40862389daf64aac,1
+np.float64,0xbfd28e3323a51c66,0xbfd5e9ba278fb685,1
+np.float64,0xbef4103b7de82,0xbef4103b7de82,1
+np.float64,0x3fe7661fd12ecc40,0x3fe18ff7dfb696e2,1
+np.float64,0x3fddd5f2f0bbabe4,0x3fd87d8bb6719c3b,1
+np.float64,0x800b3914cfd6722a,0x800b3914cfd6722a,1
+np.float64,0xf3f09a97e7e14,0xf3f09a97e7e14,1
+np.float64,0x7f97092b502e1256,0x40860fe8054cf54e,1
+np.float64,0xbfdbec7917b7d8f2,0xbfe2580b4b792c79,1
+np.float64,0x7fe7ff215aaffe42,0x40862bf5887fa062,1
+np.float64,0x80080186e570030e,0x80080186e570030e,1
+np.float64,0xbfc27f05e624fe0c,0xbfc3fa214be4adc4,1
+np.float64,0x3fe4481be1689038,0x3fdf6b11e9c4ca72,1
+np.float64,0x3fd642cc9cac8598,0x3fd31a857fe70227,1
+np.float64,0xbef8782d7df0f,0xbef8782d7df0f,1
+np.float64,0x8003077dc2e60efc,0x8003077dc2e60efc,1
+np.float64,0x80083eb5a2507d6c,0x80083eb5a2507d6c,1
+np.float64,0x800e8d1eb77d1a3e,0x800e8d1eb77d1a3e,1
+np.float64,0xbfc7737cd22ee6f8,0xbfc9e7716f03f1fc,1
+np.float64,0xbfe9a2b4ddf3456a,0xbff9d71664a8fc78,1
+np.float64,0x7fe67c7d322cf8f9,0x40862b7066465194,1
+np.float64,0x3fec080ce2b8101a,0x3fe421dac225be46,1
+np.float64,0xbfe6d27beb6da4f8,0xbff3fbb1add521f7,1
+np.float64,0x3fdd4f96ceba9f2e,0x3fd821a638986dbe,1
+np.float64,0x3fbd89f1303b13e2,0x3fbbf49223a9d002,1
+np.float64,0xbfe94e2b9d329c57,0xbff907e549c534f5,1
+np.float64,0x3fe2f2cc51e5e599,0x3fddc3d6b4a834a1,1
+np.float64,0xfdcb5b49fb96c,0xfdcb5b49fb96c,1
+np.float64,0xbfea7108fa74e212,0xbffc01b392f4897b,1
+np.float64,0x3fd38baef7a7175c,0x3fd10e7fd3b958dd,1
+np.float64,0x3fa75bf9cc2eb800,0x3fa6d792ecdedb8e,1
+np.float64,0x7fd19fd20aa33fa3,0x408623f1e2cd04c3,1
+np.float64,0x3fd62c708dac58e0,0x3fd309ec7818d16e,1
+np.float64,0x3fdf489047be9120,0x3fd978640617c758,1
+np.float64,0x1,0x1,1
+np.float64,0xbfe21e7c3ea43cf8,0xbfeaba21320697d3,1
+np.float64,0xbfd3649047a6c920,0xbfd71a6f14223744,1
+np.float64,0xbfd68ca68c2d194e,0xbfdbcce6784e5d44,1
+np.float64,0x3fdb26b0ea364d62,0x3fd6a1f86f64ff74,1
+np.float64,0xbfd843821cb08704,0xbfde80e90805ab3f,1
+np.float64,0x3fd508a27aaa1144,0x3fd22fc203a7b9d8,1
+np.float64,0xbfdb951c7eb72a38,0xbfe20aeaec13699b,1
+np.float64,0x3fef556ba57eaad7,0x3fe5d8865cce0a6d,1
+np.float64,0x3fd0d224b3a1a448,0x3fcdde7be5d7e21e,1
+np.float64,0x8007ff272baffe4f,0x8007ff272baffe4f,1
+np.float64,0x3fe1c7bddf638f7c,0x3fdc47cc6cf2f5cd,1
+np.float64,0x7ff8000000000000,0x7ff8000000000000,1
+np.float64,0x2016d560402f,0x2016d560402f,1
+np.float64,0xbfcca10be9394218,0xbfd033f36b94fc54,1
+np.float64,0xbfdb833628b7066c,0xbfe1fb344b840c70,1
+np.float64,0x3fd8529cb3b0a539,0x3fd49d847fe77218,1
+np.float64,0xbfc0b0ebab2161d8,0xbfc1e260c60ffd1b,1
+np.float64,0xbfea8b9a79f51735,0xbffc4ee6be8a0fa2,1
+np.float64,0x7feca8fab7f951f4,0x40862d613e454646,1
+np.float64,0x7fd8c52d82318a5a,0x408626aaf37423a3,1
+np.float64,0xbfe364ad4526c95a,0xbfedcee39bc93ff5,1
+np.float64,0x800b78161256f02d,0x800b78161256f02d,1
+np.float64,0xbfd55f0153aabe02,0xbfda01a78f72d494,1
+np.float64,0x800315a5f0662b4d,0x800315a5f0662b4d,1
+np.float64,0x7fe4c0dca02981b8,0x40862acc27e4819f,1
+np.float64,0x8009825c703304b9,0x8009825c703304b9,1
+np.float64,0x3fe6e94e1cadd29c,0x3fe1478ccc634f49,1
+np.float64,0x7fe622d8586c45b0,0x40862b504177827e,1
+np.float64,0x3fe4458600688b0c,0x3fdf67e79a84b953,1
+np.float64,0xbfdd75d8a1baebb2,0xbfe3bc9e6ca1bbb5,1
+np.float64,0x3fde789c6bbcf138,0x3fd8ec1d435531b3,1
+np.float64,0x3fe7052b94ee0a58,0x3fe157c5c4418dc1,1
+np.float64,0x7fef31652abe62c9,0x40862e0eaeabcfc0,1
+np.float64,0x3fe279691ee4f2d2,0x3fdd2aa41eb43cd4,1
+np.float64,0xbfd533fa95aa67f6,0xbfd9c12f516d29d7,1
+np.float64,0x3fe6d057f96da0b0,0x3fe138fd96693a6a,1
+np.float64,0x800bad984f775b31,0x800bad984f775b31,1
+np.float64,0x7fdd6fdba4badfb6,0x4086280c73d8ef97,1
+np.float64,0x7fe9b5c0eef36b81,0x40862c82c6f57a53,1
+np.float64,0x8000bc02ece17807,0x8000bc02ece17807,1
+np.float64,0xbff0000000000000,0xfff0000000000000,1
+np.float64,0xbfed430be3fa8618,0xc003aaf338c75b3c,1
+np.float64,0x3fee17b759fc2f6f,0x3fe53668696bf48b,1
+np.float64,0x3f8d4cf9d03a9a00,0x3f8d17d2f532afdc,1
+np.float64,0x8005d6257b8bac4c,0x8005d6257b8bac4c,1
+np.float64,0xbfd17a6df9a2f4dc,0xbfd469e3848adc6e,1
+np.float64,0xb28a293965145,0xb28a293965145,1
+np.float64,0xbfe7d011e42fa024,0xbff5cf818998c8ec,1
+np.float64,0xbfe74f0f136e9e1e,0xbff4dad6ebb0443c,1
+np.float64,0x800f249fc9be4940,0x800f249fc9be4940,1
+np.float64,0x2542f8fe4a860,0x2542f8fe4a860,1
+np.float64,0xc48d40cd891a8,0xc48d40cd891a8,1
+np.float64,0x3fe4e64bc8e9cc98,0x3fe015c9eb3caa53,1
+np.float64,0x3fd33881eca67104,0x3fd0cea886be2457,1
+np.float64,0xbfd01748fba02e92,0xbfd28875959e6901,1
+np.float64,0x7fb7ab01f22f5603,0x40861b369927bf53,1
+np.float64,0xbfe340274ce6804e,0xbfed72b39f0ebb24,1
+np.float64,0x7fc16c0c3422d817,0x40861e4eaf1a286c,1
+np.float64,0x3fc26944a324d288,0x3fc133a77b356ac4,1
+np.float64,0xa149d7134293b,0xa149d7134293b,1
+np.float64,0x800837382d106e71,0x800837382d106e71,1
+np.float64,0x797d1740f2fa4,0x797d1740f2fa4,1
+np.float64,0xc3f15b7787e2c,0xc3f15b7787e2c,1
+np.float64,0x80cad1b90195a,0x80cad1b90195a,1
+np.float64,0x3fdd8f1142bb1e23,0x3fd84d21490d1ce6,1
+np.float64,0xbfbde6c9123bcd90,0xbfbfcc030a86836a,1
+np.float64,0x8007f77e032feefd,0x8007f77e032feefd,1
+np.float64,0x3fe74fed1c6e9fda,0x3fe18322cf19cb61,1
+np.float64,0xbfd8a40bbcb14818,0xbfdf1d23520ba74b,1
+np.float64,0xbfeb7a0e6076f41d,0xbfff4ddfb926efa5,1
+np.float64,0xbfcb8c5f663718c0,0xbfcf0570f702bda9,1
+np.float64,0xf668cd97ecd1a,0xf668cd97ecd1a,1
+np.float64,0xbfe92accf572559a,0xbff8b4393878ffdb,1
+np.float64,0xbfeaa955567552ab,0xbffca70c7d73eee5,1
+np.float64,0xbfe083a14f610742,0xbfe739d84bc35077,1
+np.float64,0x78290568f0521,0x78290568f0521,1
+np.float64,0x3fe94bae2372975c,0x3fe2a3beac5c9858,1
+np.float64,0x3fca4fbab9349f78,0x3fc7edbca2492acb,1
+np.float64,0x8000000000000000,0x8000000000000000,1
+np.float64,0x7fb9eb505433d6a0,0x40861bf0adedb74d,1
+np.float64,0x7fdc66f72a38cded,0x408627c32aeecf0f,1
+np.float64,0x2e8e6f445d1cf,0x2e8e6f445d1cf,1
+np.float64,0xbfec43195af88633,0xc0012d7e3f91b7e8,1
+np.float64,0x7fcdb971e93b72e3,0x40862294c9e3a7bc,1
+np.float64,0x800cabc461195789,0x800cabc461195789,1
+np.float64,0x2c79709c58f2f,0x2c79709c58f2f,1
+np.float64,0x8005d772d3cbaee6,0x8005d772d3cbaee6,1
+np.float64,0x3fe84d8c03709b18,0x3fe21490ce3673dd,1
+np.float64,0x7fe5578adc2aaf15,0x40862b056e8437d4,1
+np.float64,0xbf91298c58225320,0xbf914ec86c32d11f,1
+np.float64,0xc7ed2b6d8fda6,0xc7ed2b6d8fda6,1
+np.float64,0x2761404c4ec29,0x2761404c4ec29,1
+np.float64,0x3fbad3c48835a789,0x3fb9833c02385305,1
+np.float64,0x3fa46fee5428dfe0,0x3fa40a357fb24c23,1
+np.float64,0xbfe3900c6fe72019,0xbfee3dba29dd9d43,1
+np.float64,0x3fe7a9e41a6f53c8,0x3fe1b704dfb9884b,1
+np.float64,0xbfe74a7a1eee94f4,0xbff4d269cacb1f29,1
+np.float64,0xbfee609c72fcc139,0xc007da8499d34123,1
+np.float64,0x3fef2d5fc23e5ac0,0x3fe5c44414e59cb4,1
+np.float64,0xbfd7bdc0402f7b80,0xbfddaae1e7bb78fb,1
+np.float64,0xd71ee01dae3dc,0xd71ee01dae3dc,1
+np.float64,0x3fe98cbcdef3197a,0x3fe2c7ffe33c4541,1
+np.float64,0x8000f8dbb3a1f1b8,0x8000f8dbb3a1f1b8,1
+np.float64,0x3fe3e98ad567d316,0x3fdef6e58058313f,1
+np.float64,0x41ad0bfc835a2,0x41ad0bfc835a2,1
+np.float64,0x7fdcc2dc0d3985b7,0x408627dce39f77af,1
+np.float64,0xbfe47b980de8f730,0xbff059acdccd6e2b,1
+np.float64,0xbfef49b6577e936d,0xc00e714f46b2ccc1,1
+np.float64,0x3fac31816c386300,0x3fab71cb92b0db8f,1
+np.float64,0x3fe59097e76b2130,0x3fe07c299fd1127c,1
+np.float64,0xbfecf0df5cf9e1bf,0xc002c7ebdd65039c,1
+np.float64,0x3fd2b7d0b6a56fa1,0x3fd06b638990ae02,1
+np.float64,0xbfeb68deecf6d1be,0xbfff1187e042d3e4,1
+np.float64,0x3fd44a9771a8952f,0x3fd1a01867c5e302,1
+np.float64,0xf79a9dedef354,0xf79a9dedef354,1
+np.float64,0x800c25a170d84b43,0x800c25a170d84b43,1
+np.float64,0x3ff0000000000000,0x3fe62e42fefa39ef,1
+np.float64,0x3fbff4f7623fe9f0,0x3fbe1d3878f4c417,1
+np.float64,0xd284c845a5099,0xd284c845a5099,1
+np.float64,0xbfe3c7815f678f02,0xbfeecdab5ca2e651,1
+np.float64,0x3fc19c934e233927,0x3fc08036104b1f23,1
+np.float64,0x800b6096de16c12e,0x800b6096de16c12e,1
+np.float64,0xbfe962a67e32c54d,0xbff9392313a112a1,1
+np.float64,0x2b9d0116573a1,0x2b9d0116573a1,1
+np.float64,0x3fcab269ed3564d4,0x3fc83f7e1c3095b7,1
+np.float64,0x3fc8c78d86318f1b,0x3fc6a6cde5696f99,1
+np.float64,0xd5b1e9b5ab63d,0xd5b1e9b5ab63d,1
+np.float64,0xbfed802a47fb0054,0xc00465cad3b5b0ef,1
+np.float64,0xbfd73aaf08ae755e,0xbfdcdbd62b8af271,1
+np.float64,0xbfd4f13c0229e278,0xbfd95dacff79e570,1
+np.float64,0xbfe9622808f2c450,0xbff937f13c397e8d,1
+np.float64,0xbfeddfa62efbbf4c,0xc005b0c835eed829,1
+np.float64,0x3fd65663d4acacc8,0x3fd3290cd0e675dc,1
+np.float64,0x8005e890f1abd123,0x8005e890f1abd123,1
+np.float64,0xbfe924919fb24923,0xbff8a5a827a28756,1
+np.float64,0x3fe8cdf490719be9,0x3fe25d39535e8366,1
+np.float64,0x7fc229e6ff2453cd,0x40861ea40ef87a5a,1
+np.float64,0x3fe5cf53ceeb9ea8,0x3fe0a18e0b65f27e,1
+np.float64,0xa79cf6fb4f39f,0xa79cf6fb4f39f,1
+np.float64,0x7fddbb3c0f3b7677,0x40862820d5edf310,1
+np.float64,0x3e1011de7c203,0x3e1011de7c203,1
+np.float64,0x3fc0b59a83216b38,0x3fbf6916510ff411,1
+np.float64,0x8647f98d0c8ff,0x8647f98d0c8ff,1
+np.float64,0x8005dad33ecbb5a7,0x8005dad33ecbb5a7,1
+np.float64,0x8a80d0631501a,0x8a80d0631501a,1
+np.float64,0xbfe18f7d6ee31efb,0xbfe976f06713afc1,1
+np.float64,0xbfe06eaed560dd5e,0xbfe70eac696933e6,1
+np.float64,0xbfed8ef93c7b1df2,0xc00495bfa3195b53,1
+np.float64,0x3febe9c24677d385,0x3fe411b10db16c42,1
+np.float64,0x7fd5d80c1fabb017,0x408625a97a7787ba,1
+np.float64,0x3fca79b59334f368,0x3fc8108a521341dc,1
+np.float64,0xbfccf8db4339f1b8,0xbfd06c9a5424aadb,1
+np.float64,0xbfea5ac5a574b58b,0xbffbc21d1405d840,1
+np.float64,0x800ce2bf4b19c57f,0x800ce2bf4b19c57f,1
+np.float64,0xbfe8df896d31bf13,0xbff807ab38ac41ab,1
+np.float64,0x3feab83da9f5707c,0x3fe36cdd827c0eff,1
+np.float64,0x3fee717683bce2ed,0x3fe564879171719b,1
+np.float64,0x80025e5577c4bcac,0x80025e5577c4bcac,1
+np.float64,0x3fe3e5378e67ca70,0x3fdef1902c5d1efd,1
+np.float64,0x3fa014bb7c202980,0x3f9faacf9238d499,1
+np.float64,0x3fddbf5e16bb7ebc,0x3fd86e2311cb0f6d,1
+np.float64,0x3fd24e50e6a49ca0,0x3fd0198f04f82186,1
+np.float64,0x656b5214cad6b,0x656b5214cad6b,1
+np.float64,0x8b0a4bfd1614a,0x8b0a4bfd1614a,1
+np.float64,0xbfeeb6bd9e7d6d7b,0xc009b669285e319e,1
+np.float64,0x8000000000000001,0x8000000000000001,1
+np.float64,0xbfe719feceee33fe,0xbff47a4c8cbf0cca,1
+np.float64,0xbfd14fa8c8a29f52,0xbfd42f27b1aced39,1
+np.float64,0x7fec9dcb80f93b96,0x40862d5e1e70bbb9,1
+np.float64,0x7fecacb826f9596f,0x40862d6249746915,1
+np.float64,0x973459f52e68b,0x973459f52e68b,1
+np.float64,0x7f40a59e00214b3b,0x4085f194f45f82b1,1
+np.float64,0x7fc5dbaec32bb75d,0x4086201f3e7065d9,1
+np.float64,0x82d0801305a10,0x82d0801305a10,1
+np.float64,0x7fec81c0f4790381,0x40862d5643c0fc85,1
+np.float64,0xbfe2d81e9ee5b03d,0xbfec71a8e864ea40,1
+np.float64,0x6c545c9ad8a8c,0x6c545c9ad8a8c,1
+np.float64,0x3f9be95a5037d2b5,0x3f9b89b48ac8f5d8,1
+np.float64,0x8000cae9702195d4,0x8000cae9702195d4,1
+np.float64,0xbfd375f45126ebe8,0xbfd733677e54a80d,1
+np.float64,0x3fd29a5b81a534b7,0x3fd05494bf200278,1
+np.float64,0xfff0000000000000,0xfff8000000000000,1
+np.float64,0x7fca8fc195351f82,0x408621ae61aa6c13,1
+np.float64,0x1b28e2ae3651d,0x1b28e2ae3651d,1
+np.float64,0x3fe7fdbd14effb7a,0x3fe1e714884b46a8,1
+np.float64,0x3fdf1ce068be39c0,0x3fd95b054e0fad3d,1
+np.float64,0x3fe79f9a636f3f34,0x3fe1b11a40c00b3e,1
+np.float64,0x3fe60eb7036c1d6e,0x3fe0c72a02176874,1
+np.float64,0x229da17e453b5,0x229da17e453b5,1
+np.float64,0x3fc1a921b5235240,0x3fc08b3f35e47fb1,1
+np.float64,0xbb92d2af7725b,0xbb92d2af7725b,1
+np.float64,0x3fe4110cb1e8221a,0x3fdf2787de6c73f7,1
+np.float64,0xbfbc87771a390ef0,0xbfbe3f6e95622363,1
+np.float64,0xbfe74025dfee804c,0xbff4bf7b1895e697,1
+np.float64,0x964eb6592c9d7,0x964eb6592c9d7,1
+np.float64,0x3f951689b82a2d00,0x3f94dfb38d746fdf,1
+np.float64,0x800356271be6ac4f,0x800356271be6ac4f,1
+np.float64,0x7fefffffffffffff,0x40862e42fefa39ef,1
+np.float64,0xbfed5ce250fab9c5,0xc003f7ddfeb94345,1
+np.float64,0x3fec3d5dc1387abc,0x3fe43e39c02d86f4,1
+np.float64,0x3999897e73332,0x3999897e73332,1
+np.float64,0xbfdcb57744b96aee,0xbfe30c4b98f3d088,1
+np.float64,0x7f961fb0b82c3f60,0x40860f9549c3a380,1
+np.float64,0x67d6efcacfadf,0x67d6efcacfadf,1
+np.float64,0x8002c9498f859294,0x8002c9498f859294,1
+np.float64,0xbfa3033800260670,0xbfa35fe3bf43e188,1
+np.float64,0xbfeab2fc157565f8,0xbffcc413c486b4eb,1
+np.float64,0x3fe25e62f364bcc6,0x3fdd0856e19e3430,1
+np.float64,0x7fb2f42dda25e85b,0x4086196fb34a65fd,1
+np.float64,0x3fe0f1a5af61e34c,0x3fdb3235a1786efb,1
+np.float64,0x800a340ca1f4681a,0x800a340ca1f4681a,1
+np.float64,0x7c20b9def8418,0x7c20b9def8418,1
+np.float64,0xdf0842a1be109,0xdf0842a1be109,1
+np.float64,0x3fe9f22cc2f3e45a,0x3fe300359b842bf0,1
+np.float64,0x3fe389ed73e713da,0x3fde809780fe4432,1
+np.float64,0x9500fb932a020,0x9500fb932a020,1
+np.float64,0x3fd8a21ffdb14440,0x3fd4d70862345d86,1
+np.float64,0x800d99c15cbb3383,0x800d99c15cbb3383,1
+np.float64,0x3fd96c98c932d932,0x3fd568959c9b028f,1
+np.float64,0x7fc228483a24508f,0x40861ea358420976,1
+np.float64,0x7fc6737bef2ce6f7,0x408620560ffc6a98,1
+np.float64,0xbfb2c27cee2584f8,0xbfb37b8cc7774b5f,1
+np.float64,0xbfd18409f9230814,0xbfd4771d1a9a24fb,1
+np.float64,0x3fb53cb3f42a7968,0x3fb466f06f88044b,1
+np.float64,0x3fef61d0187ec3a0,0x3fe5dec8a9d13dd9,1
+np.float64,0x3fe59a6ffd2b34e0,0x3fe0820a99c6143d,1
+np.float64,0x3fce18aff43c3160,0x3fcb07c7b523f0d1,1
+np.float64,0xbfb1319a62226338,0xbfb1cc62f31b2b40,1
+np.float64,0xa00cce6d4019a,0xa00cce6d4019a,1
+np.float64,0x80068ae8e0ed15d3,0x80068ae8e0ed15d3,1
+np.float64,0x3fecef353239de6a,0x3fe49c280adc607b,1
+np.float64,0x3fdf1a7fb0be34ff,0x3fd9596bafe2d766,1
+np.float64,0x3feb5e12eeb6bc26,0x3fe3c6be3ede8d07,1
+np.float64,0x3fdeff5cd43dfeba,0x3fd947262ec96b05,1
+np.float64,0x3f995e75e832bd00,0x3f990f511f4c7f1c,1
+np.float64,0xbfeb5b3ed0b6b67e,0xbffee24fc0fc2881,1
+np.float64,0x7fb82aad0a305559,0x40861b614d901182,1
+np.float64,0xbfe5c3a4926b8749,0xbff23cd0ad144fe6,1
+np.float64,0x3fef47da373e8fb4,0x3fe5d1aaa4031993,1
+np.float64,0x7fc6a8c3872d5186,0x40862068f5ca84be,1
+np.float64,0x7fc0c2276221844e,0x40861dff2566d001,1
+np.float64,0x7fc9ce7d28339cf9,0x40862173541f84d1,1
+np.float64,0x3fce2c34933c5869,0x3fcb179428ad241d,1
+np.float64,0xbfcf864c293f0c98,0xbfd21872c4821cfc,1
+np.float64,0x3fc51fd1f82a3fa4,0x3fc38d4f1685c166,1
+np.float64,0xbfe2707b70a4e0f7,0xbfeb795fbd5bb444,1
+np.float64,0x46629b568cc54,0x46629b568cc54,1
+np.float64,0x7fe5f821f32bf043,0x40862b40c2cdea3f,1
+np.float64,0x3fedd2c9457ba592,0x3fe512ce92394526,1
+np.float64,0x7fe6dcb8ceadb971,0x40862b925a7dc05d,1
+np.float64,0x3fd1b983b4a37307,0x3fcf4ae2545cf64e,1
+np.float64,0xbfe1c93104639262,0xbfe9f7d28e4c0c82,1
+np.float64,0x995ebc2932bd8,0x995ebc2932bd8,1
+np.float64,0x800a4c3ee614987e,0x800a4c3ee614987e,1
+np.float64,0x3fbb58766e36b0f0,0x3fb9fb3b9810ec16,1
+np.float64,0xbfe36d636666dac7,0xbfede5080f69053c,1
+np.float64,0x3f4feee1003fddc2,0x3f4feae5f05443d1,1
+np.float64,0x3fed0b772ffa16ee,0x3fe4aafb924903c6,1
+np.float64,0x800bb3faef3767f6,0x800bb3faef3767f6,1
+np.float64,0x3fe285cda5e50b9c,0x3fdd3a58df06c427,1
+np.float64,0x7feb9d560bb73aab,0x40862d152362bb94,1
+np.float64,0x3fecd1f447f9a3e9,0x3fe48cc78288cb3f,1
+np.float64,0x3fca927b0c3524f6,0x3fc8250f49ba28df,1
+np.float64,0x7fcc19944e383328,0x40862221b02fcf43,1
+np.float64,0xbfd8ddf41db1bbe8,0xbfdf7b92073ff2fd,1
+np.float64,0x80006fe736e0dfcf,0x80006fe736e0dfcf,1
+np.float64,0x800bbeb66d577d6d,0x800bbeb66d577d6d,1
+np.float64,0xbfe4329353e86526,0xbfefeaf19ab92b42,1
+np.float64,0x2fad72805f5af,0x2fad72805f5af,1
+np.float64,0x3fe1b827aa637050,0x3fdc33bf46012c0d,1
+np.float64,0x3fc3f3f8e227e7f2,0x3fc28aeb86d65278,1
+np.float64,0x3fec018933780312,0x3fe41e619aa4285c,1
+np.float64,0xbfd92428e0b24852,0xbfdfeecb08d154df,1
+np.float64,0x2d7046845ae0a,0x2d7046845ae0a,1
+np.float64,0x7fde7fd2233cffa3,0x408628550f8a948f,1
+np.float64,0x8000a32cd241465a,0x8000a32cd241465a,1
+np.float64,0x8004267a45084cf5,0x8004267a45084cf5,1
+np.float64,0xbfe6b422556d6844,0xbff3c71f67661e6e,1
+np.float64,0x3fe3a37d922746fb,0x3fdea04e04d6195c,1
+np.float64,0xbfddcc54b53b98aa,0xbfe40d2389cdb848,1
+np.float64,0x3fe18b4b92a31697,0x3fdbf9e68cbf5794,1
+np.float64,0x7fc9c5b2ee338b65,0x408621709a17a47a,1
+np.float64,0x1ebd1ce03d7b,0x1ebd1ce03d7b,1
+np.float64,0x8008a6fc39d14df9,0x8008a6fc39d14df9,1
+np.float64,0x3fec11384c782270,0x3fe426bdaedd2965,1
+np.float64,0x3fefc28344ff8507,0x3fe60f75d34fc3d2,1
+np.float64,0xc35f379786be7,0xc35f379786be7,1
+np.float64,0x3feef51f4a7dea3e,0x3fe5a7b95d7786b5,1
+np.float64,0x3fec9b9f0379373e,0x3fe4702477abbb63,1
+np.float64,0x3fde94f8cdbd29f0,0x3fd8ff50f7df0a6f,1
+np.float64,0xbfed32d1cdfa65a4,0xc0037c1470f6f979,1
+np.float64,0x800d3ba44f5a7749,0x800d3ba44f5a7749,1
+np.float64,0x3fe3c56c8fe78ad9,0x3fdeca4eb9bb8918,1
+np.float64,0xbfe7c97242ef92e4,0xbff5c2950dfd6f69,1
+np.float64,0xbd9440057b288,0xbd9440057b288,1
+np.float64,0x7feb2fc111f65f81,0x40862cf524bd2001,1
+np.float64,0x800a431e2df4863d,0x800a431e2df4863d,1
+np.float64,0x80038a3b79e71478,0x80038a3b79e71478,1
+np.float64,0x80000c93d4601928,0x80000c93d4601928,1
+np.float64,0x7fe9fec022f3fd7f,0x40862c995db8ada0,1
+np.float64,0x3fead0129c35a025,0x3fe379d7a92c8f79,1
+np.float64,0x3fdd8cbaf7bb1974,0x3fd84b87ff0c26c7,1
+np.float64,0x3fe8fb7c60b1f6f9,0x3fe276d5339e7135,1
+np.float64,0x85a255e10b44b,0x85a255e10b44b,1
+np.float64,0xbfe507c23fea0f84,0xbff1212d2260022a,1
+np.float64,0x3fc5487c7b2a90f9,0x3fc3b03222d3d148,1
+np.float64,0x7fec0bdcb8f817b8,0x40862d34e8fd11e7,1
+np.float64,0xbfc5f34b4f2be698,0xbfc8146a899c7a0c,1
+np.float64,0xbfa2a49c14254940,0xbfa2fdab2eae3826,1
+np.float64,0x800ec52f15dd8a5e,0x800ec52f15dd8a5e,1
+np.float64,0xbfe3ba4b12a77496,0xbfeeab256b3e9422,1
+np.float64,0x80034d6c7ba69ada,0x80034d6c7ba69ada,1
+np.float64,0x7fd394d4202729a7,0x408624c98a216742,1
+np.float64,0xbfd4493a38289274,0xbfd865d67af2de91,1
+np.float64,0xe47d6203c8fad,0xe47d6203c8fad,1
+np.float64,0x98eb4e4b31d6a,0x98eb4e4b31d6a,1
+np.float64,0x4507fb128a100,0x4507fb128a100,1
+np.float64,0xbfc77032e42ee064,0xbfc9e36ab747a14d,1
+np.float64,0xa1f8a03b43f14,0xa1f8a03b43f14,1
+np.float64,0xbfc3d4da8527a9b4,0xbfc58c27af2476b0,1
+np.float64,0x3fc0eb7d6921d6fb,0x3fbfc858a077ed61,1
+np.float64,0x7fddb2e9403b65d2,0x4086281e98443709,1
+np.float64,0xbfa7ea62942fd4c0,0xbfa87dfd06b05d2a,1
+np.float64,0xbfe7d5c5426fab8a,0xbff5daa969c6d9e5,1
+np.float64,0x3fbf7cba0c3ef974,0x3fbdb23cd8fe875b,1
+np.float64,0x7fe92021eb324043,0x40862c53aee8b154,1
+np.float64,0x7fefbaa1827f7542,0x40862e3194737072,1
+np.float64,0x3fc6f82c402df059,0x3fc520432cbc533f,1
+np.float64,0x7fb37679a826ecf2,0x408619a5f857e27f,1
+np.float64,0x79ec1528f3d83,0x79ec1528f3d83,1
+np.float64,0x3fbefe1d0c3dfc3a,0x3fbd41650ba2c893,1
+np.float64,0x3fc3e5e11827cbc2,0x3fc27eb9b47c9c42,1
+np.float64,0x16aed1922d5db,0x16aed1922d5db,1
+np.float64,0x800124f7e58249f1,0x800124f7e58249f1,1
+np.float64,0x8004f7d12489efa3,0x8004f7d12489efa3,1
+np.float64,0x3fef80b8e27f0172,0x3fe5ee5fd43322c6,1
+np.float64,0xbfe7740c88eee819,0xbff51f823c8da14d,1
+np.float64,0xbfe6e1f1f6edc3e4,0xbff416bcb1302e7c,1
+np.float64,0x8001a2c4a7e3458a,0x8001a2c4a7e3458a,1
+np.float64,0x3fe861e155f0c3c2,0x3fe2201d3000c329,1
+np.float64,0x3fd00a101a201420,0x3fcca01087dbd728,1
+np.float64,0x7fdf0eb1133e1d61,0x4086287a327839b8,1
+np.float64,0x95e3ffdb2bc80,0x95e3ffdb2bc80,1
+np.float64,0x3fd87a1e8230f43d,0x3fd4ba1eb9be1270,1
+np.float64,0x3fedc4792afb88f2,0x3fe50b6529080f73,1
+np.float64,0x7fc9e81fa833d03e,0x4086217b428cc6ff,1
+np.float64,0xbfd21f1ba5a43e38,0xbfd54e048b988e09,1
+np.float64,0xbfbf52af5a3ea560,0xbfc0b4ab3b81fafc,1
+np.float64,0x7fe475f8e268ebf1,0x40862aaf14fee029,1
+np.float64,0x3fcf56899f3ead10,0x3fcc081de28ae9cf,1
+np.float64,0x917d407122fa8,0x917d407122fa8,1
+np.float64,0x22e23e3245c49,0x22e23e3245c49,1
+np.float64,0xbfeec2814f3d8503,0xc00a00ecca27b426,1
+np.float64,0xbfd97fee1c32ffdc,0xbfe04351dfe306ec,1
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/data/umath-validation-set-log2.csv b/python/user_packages/Python313/site-packages/numpy/_core/tests/data/umath-validation-set-log2.csv
new file mode 100644
index 0000000000000000000000000000000000000000..ee50e227c35ffb1313bb6393294edb7754e454d6
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/tests/data/umath-validation-set-log2.csv
@@ -0,0 +1,1629 @@
+dtype,input,output,ulperrortol
+np.float32,0x80000000,0xff800000,3
+np.float32,0x7f12870a,0x42fe63db,3
+np.float32,0x3ef29cf5,0xbf89eb12,3
+np.float32,0x3d6ba8fb,0xc083d26c,3
+np.float32,0x3d9907e8,0xc06f8230,3
+np.float32,0x4ee592,0xc2fd656e,3
+np.float32,0x58d8b1,0xc2fd0db3,3
+np.float32,0x7ba103,0xc2fc19aa,3
+np.float32,0x7f52e90e,0x42ff70e4,3
+np.float32,0x7fcb15,0xc2fc0132,3
+np.float32,0x7cb7129f,0x42f50855,3
+np.float32,0x9faba,0xc301ae59,3
+np.float32,0x7f300a,0xc2fc04b4,3
+np.float32,0x3f0bf047,0xbf5f10cb,3
+np.float32,0x2fb1fb,0xc2fed934,3
+np.float32,0x3eedb0d1,0xbf8db417,3
+np.float32,0x3d7a0b40,0xc0811638,3
+np.float32,0x2e0bac,0xc2fef334,3
+np.float32,0x6278c1,0xc2fcc1b9,3
+np.float32,0x7f61ab2e,0x42ffa2d9,3
+np.float32,0x8fe7c,0xc301d4be,3
+np.float32,0x3f25e6ee,0xbf203536,3
+np.float32,0x7efc78f0,0x42fdf5c0,3
+np.float32,0x6d7304,0xc2fc73a7,3
+np.float32,0x7f1a472a,0x42fe89ed,3
+np.float32,0x7dd029a6,0x42f96734,3
+np.float32,0x3e9b9327,0xbfdbf8f7,3
+np.float32,0x3f4eefc1,0xbe9d2942,3
+np.float32,0x7f5b9b64,0x42ff8ebc,3
+np.float32,0x3e458ee1,0xc017ed6e,3
+np.float32,0x3f7b766b,0xbcd35acf,3
+np.float32,0x3e616070,0xc00bc378,3
+np.float32,0x7f20e633,0x42fea8f8,3
+np.float32,0x3ee3b461,0xbf95a126,3
+np.float32,0x7e7722ba,0x42fbe5f8,3
+np.float32,0x3f0873d7,0xbf6861fa,3
+np.float32,0x7b4cb2,0xc2fc1ba3,3
+np.float32,0x3f0b6b02,0xbf60712e,3
+np.float32,0x9bff4,0xc301b6f2,3
+np.float32,0x3f07be25,0xbf6a4f0c,3
+np.float32,0x3ef10e57,0xbf8b1b75,3
+np.float32,0x46ad75,0xc2fdb6b1,3
+np.float32,0x3f7bc542,0xbcc4e3a9,3
+np.float32,0x3f6673d4,0xbe1b509c,3
+np.float32,0x7f19fe59,0x42fe8890,3
+np.float32,0x7f800000,0x7f800000,3
+np.float32,0x7f2fe696,0x42feead0,3
+np.float32,0x3dc9432d,0xc0563655,3
+np.float32,0x3ee47623,0xbf950446,3
+np.float32,0x3f1f8817,0xbf2eab51,3
+np.float32,0x7f220ec5,0x42feae44,3
+np.float32,0x2325e3,0xc2ffbab1,3
+np.float32,0x29dfc8,0xc2ff395a,3
+np.float32,0x7f524950,0x42ff6eb3,3
+np.float32,0x3e2234e0,0xc02a21c8,3
+np.float32,0x7f1c6f5a,0x42fe942f,3
+np.float32,0x3b6a61,0xc2fe36e7,3
+np.float32,0x3f1df90e,0xbf324ba9,3
+np.float32,0xb57f0,0xc3017f07,3
+np.float32,0x7d0eba,0xc2fc112e,3
+np.float32,0x403aa9,0xc2fdfd5c,3
+np.float32,0x3e74ecc7,0xc004155f,3
+np.float32,0x17509c,0xc30074f2,3
+np.float32,0x7f62196b,0x42ffa442,3
+np.float32,0x3ecef9a9,0xbfa7417a,3
+np.float32,0x7f14b158,0x42fe6eb1,3
+np.float32,0x3ede12be,0xbf9a40fe,3
+np.float32,0x42cfaa,0xc2fde03f,3
+np.float32,0x3f407b0f,0xbed2a6f5,3
+np.float32,0x7f7fffff,0x43000000,3
+np.float32,0x5467c6,0xc2fd3394,3
+np.float32,0x7ea6b80f,0x42fcc336,3
+np.float32,0x3f21e7b2,0xbf293704,3
+np.float32,0x3dc7e9eb,0xc056d542,3
+np.float32,0x7f3e6e67,0x42ff2571,3
+np.float32,0x3e3e809d,0xc01b4911,3
+np.float32,0x3f800000,0x0,3
+np.float32,0x3d8fd238,0xc0753d52,3
+np.float32,0x3f74aa65,0xbd85cd0e,3
+np.float32,0x7ec30305,0x42fd36ff,3
+np.float32,0x3e97bb93,0xbfe0971d,3
+np.float32,0x3e109d9c,0xc034bb1b,3
+np.float32,0x3f4a0b67,0xbeaed537,3
+np.float32,0x3f25a7aa,0xbf20c228,3
+np.float32,0x3ebc05eb,0xbfb8fd6b,3
+np.float32,0x3eebe749,0xbf8f18e5,3
+np.float32,0x3e9dc479,0xbfd96356,3
+np.float32,0x7f245200,0x42feb882,3
+np.float32,0x1573a8,0xc30093b5,3
+np.float32,0x3e66c4b9,0xc00994a6,3
+np.float32,0x3e73bffc,0xc0048709,3
+np.float32,0x3dfef8e5,0xc0405f16,3
+np.float32,0x403750,0xc2fdfd83,3
+np.float32,0x3ebedf17,0xbfb636a4,3
+np.float32,0x15cae6,0xc3008de2,3
+np.float32,0x3edf4d4e,0xbf993c24,3
+np.float32,0x3f7cc41e,0xbc963fb3,3
+np.float32,0x3e9e12a4,0xbfd907ee,3
+np.float32,0x7ded7b59,0x42f9c889,3
+np.float32,0x7f034878,0x42fe12b5,3
+np.float32,0x7ddce43f,0x42f9930b,3
+np.float32,0x3d82b257,0xc07e1333,3
+np.float32,0x3dae89c1,0xc0635dd4,3
+np.float32,0x6b1d00,0xc2fc8396,3
+np.float32,0x449a5a,0xc2fdccb3,3
+np.float32,0x4e89d2,0xc2fd68cb,3
+np.float32,0x7e1ae83f,0x42fa8cef,3
+np.float32,0x7e4bb22c,0x42fb572e,3
+np.float32,0x3de308ea,0xc04b1634,3
+np.float32,0x7f238c7a,0x42feb508,3
+np.float32,0x3f6c62a3,0xbdeb86f3,3
+np.float32,0x3e58cba6,0xc00f5908,3
+np.float32,0x7f7dd91f,0x42fff9c4,3
+np.float32,0x3d989376,0xc06fc88d,3
+np.float32,0x3dd013c5,0xc0532339,3
+np.float32,0x4b17e6,0xc2fd89ed,3
+np.float32,0x7f67f287,0x42ffb71e,3
+np.float32,0x3f69365e,0xbe09ba3c,3
+np.float32,0x3e4b8b21,0xc0152bf1,3
+np.float32,0x3a75b,0xc3032171,3
+np.float32,0x7f303676,0x42feec1f,3
+np.float32,0x7f6570e5,0x42ffaf18,3
+np.float32,0x3f5ed61e,0xbe4cf676,3
+np.float32,0x3e9b22f9,0xbfdc7e4f,3
+np.float32,0x2c095e,0xc2ff1428,3
+np.float32,0x3f1b17c1,0xbf391754,3
+np.float32,0x422dc6,0xc2fde746,3
+np.float32,0x3f677c8d,0xbe14b365,3
+np.float32,0x3ef85d0c,0xbf8597a9,3
+np.float32,0x3ecaaa6b,0xbfab2430,3
+np.float32,0x3f0607d1,0xbf6eff3d,3
+np.float32,0x3f011fdb,0xbf7cc50d,3
+np.float32,0x6ed7c1,0xc2fc6a4e,3
+np.float32,0x7ec2d1a2,0x42fd3644,3
+np.float32,0x3f75b7fe,0xbd7238a2,3
+np.float32,0x3ef2d146,0xbf89c344,3
+np.float32,0x7ec2cd27,0x42fd3633,3
+np.float32,0x7ee1e55a,0x42fda397,3
+np.float32,0x7f464d6a,0x42ff435c,3
+np.float32,0x7f469a93,0x42ff447b,3
+np.float32,0x7ece752f,0x42fd6121,3
+np.float32,0x2ed878,0xc2fee67b,3
+np.float32,0x75b23,0xc3021eff,3
+np.float32,0x3e0f4be4,0xc03593b8,3
+np.float32,0x2778e1,0xc2ff64fc,3
+np.float32,0x5fe2b7,0xc2fcd561,3
+np.float32,0x19b8a9,0xc30050ab,3
+np.float32,0x7df303e5,0x42f9d98d,3
+np.float32,0x608b8d,0xc2fcd051,3
+np.float32,0x588f46,0xc2fd1017,3
+np.float32,0x3eec6a11,0xbf8eb2a1,3
+np.float32,0x3f714121,0xbdaf4906,3
+np.float32,0x7f4f7b9e,0x42ff64c9,3
+np.float32,0x3c271606,0xc0d3b29c,3
+np.float32,0x3f002fe0,0xbf7f75f6,3
+np.float32,0x7efa4798,0x42fdef4f,3
+np.float32,0x3f61a865,0xbe3a601a,3
+np.float32,0x7e8087aa,0x42fc030d,3
+np.float32,0x3f70f0c7,0xbdb321ba,3
+np.float32,0x5db898,0xc2fce63f,3
+np.float32,0x7a965f,0xc2fc1fea,3
+np.float32,0x7f68b112,0x42ffb97c,3
+np.float32,0x7ef0ed3d,0x42fdd32d,3
+np.float32,0x7f3156a1,0x42fef0d3,3
+np.float32,0x3f1d405f,0xbf33fc6e,3
+np.float32,0x3e3494cf,0xc0203945,3
+np.float32,0x6018de,0xc2fcd3c1,3
+np.float32,0x623e49,0xc2fcc370,3
+np.float32,0x3ea29f0f,0xbfd3cad4,3
+np.float32,0xa514,0xc305a20c,3
+np.float32,0x3e1b2ab1,0xc02e3a8f,3
+np.float32,0x3f450b6f,0xbec1578f,3
+np.float32,0x7eb12908,0x42fcf015,3
+np.float32,0x3f10b720,0xbf52ab48,3
+np.float32,0x3e0a93,0xc2fe16f6,3
+np.float32,0x93845,0xc301cb96,3
+np.float32,0x7f4e9ce3,0x42ff61af,3
+np.float32,0x3f6d4296,0xbde09ceb,3
+np.float32,0x6ddede,0xc2fc70d0,3
+np.float32,0x3f4fb6fd,0xbe9a636d,3
+np.float32,0x3f6d08de,0xbde36c0b,3
+np.float32,0x3f56f057,0xbe8122ad,3
+np.float32,0x334e95,0xc2fea349,3
+np.float32,0x7efadbcd,0x42fdf104,3
+np.float32,0x3db02e88,0xc0628046,3
+np.float32,0x3f3309d1,0xbf041066,3
+np.float32,0x2d8722,0xc2fefb8f,3
+np.float32,0x7e926cac,0x42fc6356,3
+np.float32,0x3e3674ab,0xc01f452e,3
+np.float32,0x1b46ce,0xc3003afc,3
+np.float32,0x3f06a338,0xbf6d53fc,3
+np.float32,0x1b1ba7,0xc3003d46,3
+np.float32,0x319dfb,0xc2febc06,3
+np.float32,0x3e2f126a,0xc02315a5,3
+np.float32,0x3f40fe65,0xbed0af9e,3
+np.float32,0x3f1d842f,0xbf335d4b,3
+np.float32,0x3d044e4f,0xc09e78f8,3
+np.float32,0x7f272674,0x42fec51f,3
+np.float32,0x3cda6d8f,0xc0a753db,3
+np.float32,0x3eb92f12,0xbfbbccbb,3
+np.float32,0x7e4318f4,0x42fb3752,3
+np.float32,0x3c5890,0xc2fe2b6d,3
+np.float32,0x3d1993c9,0xc09796f8,3
+np.float32,0x7f18ef24,0x42fe8377,3
+np.float32,0x3e30c3a0,0xc0223244,3
+np.float32,0x3f27cd27,0xbf1c00ef,3
+np.float32,0x3f150957,0xbf47cd6c,3
+np.float32,0x7e7178a3,0x42fbd4d8,3
+np.float32,0x3f298db8,0xbf182ac3,3
+np.float32,0x7cb3be,0xc2fc1348,3
+np.float32,0x3ef64266,0xbf8729de,3
+np.float32,0x3eeb06ce,0xbf8fc8f2,3
+np.float32,0x3f406e36,0xbed2d845,3
+np.float32,0x7f1e1bd3,0x42fe9c0b,3
+np.float32,0x478dcc,0xc2fdad97,3
+np.float32,0x7f7937b5,0x42ffec2b,3
+np.float32,0x3f20f350,0xbf2b6624,3
+np.float32,0x7f13661a,0x42fe683c,3
+np.float32,0x208177,0xc2fff46b,3
+np.float32,0x263cfb,0xc2ff7c72,3
+np.float32,0x7f0bd28c,0x42fe4141,3
+np.float32,0x7230d8,0xc2fc5453,3
+np.float32,0x3f261bbf,0xbf1fbfb4,3
+np.float32,0x737b56,0xc2fc4c05,3
+np.float32,0x3ef88f33,0xbf857263,3
+np.float32,0x7e036464,0x42fa1352,3
+np.float32,0x4b5c4f,0xc2fd874d,3
+np.float32,0x3f77984d,0xbd454596,3
+np.float32,0x3f674202,0xbe162932,3
+np.float32,0x3e7157d9,0xc0057197,3
+np.float32,0x3f3f21da,0xbed7d861,3
+np.float32,0x7f1fb40f,0x42fea375,3
+np.float32,0x7ef0157f,0x42fdd096,3
+np.float32,0x3f71e88d,0xbda74962,3
+np.float32,0x3f174855,0xbf424728,3
+np.float32,0x3f3fdd2c,0xbed505d5,3
+np.float32,0x7b95d1,0xc2fc19ed,3
+np.float32,0x7f23f4e5,0x42feb6df,3
+np.float32,0x7d741925,0x42f7dcd6,3
+np.float32,0x60f81d,0xc2fccd14,3
+np.float32,0x3f17d267,0xbf40f6ae,3
+np.float32,0x3f036fc8,0xbf7636f8,3
+np.float32,0x167653,0xc30082b5,3
+np.float32,0x256d05,0xc2ff8c4f,3
+np.float32,0x3eccc63d,0xbfa93adb,3
+np.float32,0x7f6c91ea,0x42ffc5b2,3
+np.float32,0x2ee52a,0xc2fee5b3,3
+np.float32,0x3dc3579e,0xc058f80d,3
+np.float32,0x4c7170,0xc2fd7cc4,3
+np.float32,0x7f737f20,0x42ffdb03,3
+np.float32,0x3f2f9dbf,0xbf0b3119,3
+np.float32,0x3f4d0c54,0xbea3eec5,3
+np.float32,0x7e380862,0x42fb0c32,3
+np.float32,0x5d637f,0xc2fce8df,3
+np.float32,0x3f0aa623,0xbf627c27,3
+np.float32,0x3e4d5896,0xc0145b88,3
+np.float32,0x3f6cacdc,0xbde7e7ca,3
+np.float32,0x63a2c3,0xc2fcb90a,3
+np.float32,0x6c138c,0xc2fc7cfa,3
+np.float32,0x2063c,0xc303fb88,3
+np.float32,0x7e9e5a3e,0x42fc9d2f,3
+np.float32,0x56ec64,0xc2fd1ddd,3
+np.float32,0x7f1d6a35,0x42fe98cc,3
+np.float32,0x73dc96,0xc2fc4998,3
+np.float32,0x3e5d74e5,0xc00d6238,3
+np.float32,0x7f033cbb,0x42fe1273,3
+np.float32,0x3f5143fc,0xbe94e4e7,3
+np.float32,0x1d56d9,0xc3002010,3
+np.float32,0x2bf3e4,0xc2ff1591,3
+np.float32,0x3f2a6ef1,0xbf164170,3
+np.float32,0x3f33238b,0xbf03db58,3
+np.float32,0x22780e,0xc2ffc91a,3
+np.float32,0x7f00b873,0x42fe0425,3
+np.float32,0x3f7f6145,0xbb654706,3
+np.float32,0x7fc00000,0x7fc00000,3
+np.float32,0x63895a,0xc2fcb9c7,3
+np.float32,0x18a1b2,0xc30060a8,3
+np.float32,0x7e43c6a6,0x42fb39e3,3
+np.float32,0x78676e,0xc2fc2d30,3
+np.float32,0x3f16d839,0xbf435940,3
+np.float32,0x7eff78ba,0x42fdfe79,3
+np.float32,0x3f2e152c,0xbf0e6e54,3
+np.float32,0x3db20ced,0xc06186e1,3
+np.float32,0x3f0cd1d8,0xbf5cbf57,3
+np.float32,0x3fd7a8,0xc2fe01d2,3
+np.float32,0x3ebb075e,0xbfb9f816,3
+np.float32,0x7f94ef,0xc2fc026b,3
+np.float32,0x3d80ba0e,0xc07f7a2b,3
+np.float32,0x7f227e15,0x42feb03f,3
+np.float32,0x792264bf,0x42e6afcc,3
+np.float32,0x7f501576,0x42ff66ec,3
+np.float32,0x223629,0xc2ffcea3,3
+np.float32,0x40a79e,0xc2fdf87b,3
+np.float32,0x449483,0xc2fdccf2,3
+np.float32,0x3f4fa978,0xbe9a9382,3
+np.float32,0x7f148c53,0x42fe6df9,3
+np.float32,0x3ec98b3c,0xbfac2a98,3
+np.float32,0x3e4da320,0xc0143a0a,3
+np.float32,0x3d1d94bb,0xc09666d0,3
+np.float32,0x3c8e624e,0xc0bb155b,3
+np.float32,0x66a9af,0xc2fca2ef,3
+np.float32,0x3ec76ed7,0xbfae1c57,3
+np.float32,0x3f4b52f3,0xbeaa2b81,3
+np.float32,0x7e99bbb5,0x42fc8750,3
+np.float32,0x3f69a46b,0xbe0701be,3
+np.float32,0x3f775400,0xbd4ba495,3
+np.float32,0x131e56,0xc300be3c,3
+np.float32,0x3f30abb4,0xbf08fb10,3
+np.float32,0x7f7e528c,0x42fffb25,3
+np.float32,0x3eb89515,0xbfbc668a,3
+np.float32,0x7e9191b6,0x42fc5f02,3
+np.float32,0x7e80c7e9,0x42fc047e,3
+np.float32,0x3f77ef58,0xbd3d2995,3
+np.float32,0x7ddb1f8a,0x42f98d1b,3
+np.float32,0x7ebc6c4f,0x42fd1d9c,3
+np.float32,0x3f6638e0,0xbe1ccab8,3
+np.float32,0x7f4c45,0xc2fc0410,3
+np.float32,0x3e7d8aad,0xc000e414,3
+np.float32,0x3f4d148b,0xbea3d12e,3
+np.float32,0x3e98c45c,0xbfdf55f4,3
+np.float32,0x3d754c78,0xc081f8a9,3
+np.float32,0x17e4cf,0xc3006be3,3
+np.float32,0x7eb65814,0x42fd0563,3
+np.float32,0x3f65e0d8,0xbe1f0008,3
+np.float32,0x3e99541f,0xbfdea87e,3
+np.float32,0x3f3cb80e,0xbee13b27,3
+np.float32,0x3e99f0c0,0xbfddec3b,3
+np.float32,0x3f43903e,0xbec6ea66,3
+np.float32,0x7e211cd4,0x42faa9f2,3
+np.float32,0x824af,0xc301f971,3
+np.float32,0x3e16a56e,0xc030f56c,3
+np.float32,0x542b3b,0xc2fd35a6,3
+np.float32,0x3eeea2d1,0xbf8cf873,3
+np.float32,0x232e93,0xc2ffb9fa,3
+np.float32,0x3e8c52b9,0xbfef06aa,3
+np.float32,0x7f69c7e3,0x42ffbcef,3
+np.float32,0x3f573e43,0xbe801714,3
+np.float32,0x43b009,0xc2fdd69f,3
+np.float32,0x3ee571ab,0xbf943966,3
+np.float32,0x3ee3d5d8,0xbf958604,3
+np.float32,0x338b12,0xc2fe9fe4,3
+np.float32,0x29cb1f,0xc2ff3ac6,3
+np.float32,0x3f0892b4,0xbf680e7a,3
+np.float32,0x3e8c4f7f,0xbfef0ae9,3
+np.float32,0x7c9d3963,0x42f497e6,3
+np.float32,0x3f26ba84,0xbf1e5f59,3
+np.float32,0x3dd0acc0,0xc052df6f,3
+np.float32,0x3e43fbda,0xc018aa8c,3
+np.float32,0x3ec4fd0f,0xbfb0635d,3
+np.float32,0x3f52c8c6,0xbe8f8d85,3
+np.float32,0x3f5fdc5d,0xbe462fdb,3
+np.float32,0x3f461920,0xbebd6743,3
+np.float32,0x6161ff,0xc2fcc9ef,3
+np.float32,0x7f7ed306,0x42fffc9a,3
+np.float32,0x3d212263,0xc0955f46,3
+np.float32,0x3eca5826,0xbfab6f36,3
+np.float32,0x7d6317ac,0x42f7a77e,3
+np.float32,0x3eb02063,0xbfc50f60,3
+np.float32,0x7f71a6f8,0x42ffd565,3
+np.float32,0x1a3efe,0xc3004935,3
+np.float32,0x3dc599c9,0xc057e856,3
+np.float32,0x3f3e1301,0xbedbf205,3
+np.float32,0xf17d4,0xc301158d,3
+np.float32,0x3f615f84,0xbe3c3d85,3
+np.float32,0x3de63be1,0xc049cb77,3
+np.float32,0x3e8d2f51,0xbfede541,3
+np.float32,0x3a5cdd,0xc2fe441c,3
+np.float32,0x3f443ec0,0xbec4586a,3
+np.float32,0x3eacbd00,0xbfc8a5ad,3
+np.float32,0x3f600f6a,0xbe44df1b,3
+np.float32,0x5f77a6,0xc2fcd89c,3
+np.float32,0x476706,0xc2fdaf28,3
+np.float32,0x2f469,0xc3036fde,3
+np.float32,0x7dc4ba24,0x42f93d77,3
+np.float32,0x3e2d6080,0xc023fb9b,3
+np.float32,0x7e8d7135,0x42fc49c3,3
+np.float32,0x3f589065,0xbe77247b,3
+np.float32,0x3f59e210,0xbe6e2c05,3
+np.float32,0x7f51d388,0x42ff6d15,3
+np.float32,0x7d9a5fda,0x42f88a63,3
+np.float32,0x3e67d5bc,0xc00927ab,3
+np.float32,0x61d72c,0xc2fcc679,3
+np.float32,0x3ef3351d,0xbf897766,3
+np.float32,0x1,0xc3150000,3
+np.float32,0x7f653429,0x42ffae54,3
+np.float32,0x7e1ad3e5,0x42fa8c8e,3
+np.float32,0x3f4ca01d,0xbea57500,3
+np.float32,0x3f7606db,0xbd6ad13e,3
+np.float32,0x7ec4a27d,0x42fd3d1f,3
+np.float32,0x3efe4fd5,0xbf8138c7,3
+np.float32,0x77c2f1,0xc2fc3124,3
+np.float32,0x7e4d3251,0x42fb5c9a,3
+np.float32,0x3f543ac7,0xbe8a8154,3
+np.float32,0x7c3dbe29,0x42f322c4,3
+np.float32,0x408e01,0xc2fdf9a0,3
+np.float32,0x45069b,0xc2fdc829,3
+np.float32,0x3d7ecab7,0xc08037e8,3
+np.float32,0xf8c22,0xc3010a99,3
+np.float32,0x7f69af63,0x42ffbca2,3
+np.float32,0x7ec7d228,0x42fd48fe,3
+np.float32,0xff800000,0xffc00000,3
+np.float32,0xdd7c5,0xc301357c,3
+np.float32,0x143f38,0xc300a90e,3
+np.float32,0x7e65c176,0x42fbb01b,3
+np.float32,0x2c1a9e,0xc2ff1307,3
+np.float32,0x7f6e9224,0x42ffcbeb,3
+np.float32,0x3d32ab39,0xc0909a77,3
+np.float32,0x3e150b42,0xc031f22b,3
+np.float32,0x1f84b4,0xc300059a,3
+np.float32,0x3f71ce21,0xbda88c2a,3
+np.float32,0x2625c4,0xc2ff7e33,3
+np.float32,0x3dd0b293,0xc052dcdc,3
+np.float32,0x625c11,0xc2fcc290,3
+np.float32,0x3f610297,0xbe3e9f24,3
+np.float32,0x7ebdd5e5,0x42fd2320,3
+np.float32,0x3e883458,0xbff486ff,3
+np.float32,0x782313,0xc2fc2ed4,3
+np.float32,0x7f39c843,0x42ff132f,3
+np.float32,0x7f326aa7,0x42fef54d,3
+np.float32,0x4d2c71,0xc2fd75be,3
+np.float32,0x3f55747c,0xbe86409e,3
+np.float32,0x7f7f0867,0x42fffd34,3
+np.float32,0x321316,0xc2feb53f,3
+np.float32,0x3e1b37ed,0xc02e32b0,3
+np.float32,0x80edf,0xc301fd54,3
+np.float32,0x3f0b08ad,0xbf617607,3
+np.float32,0x7f3f4174,0x42ff28a2,3
+np.float32,0x3d79306d,0xc0813eb0,3
+np.float32,0x3f5f657a,0xbe49413d,3
+np.float32,0x3f56c63a,0xbe81b376,3
+np.float32,0x7f667123,0x42ffb24f,3
+np.float32,0x3f71021b,0xbdb24d43,3
+np.float32,0x7f434ab1,0x42ff380f,3
+np.float32,0x3dcae496,0xc055779c,3
+np.float32,0x3f5a7d88,0xbe6a0f5b,3
+np.float32,0x3cdf5c32,0xc0a64bf5,3
+np.float32,0x3e56222c,0xc0107d11,3
+np.float32,0x561a3a,0xc2fd24df,3
+np.float32,0x7ddd953c,0x42f9955a,3
+np.float32,0x7e35d839,0x42fb035c,3
+np.float32,0x3ec1816c,0xbfb3aeb2,3
+np.float32,0x7c87cfcd,0x42f42bc2,3
+np.float32,0xd9cd,0xc3053baf,3
+np.float32,0x3f388234,0xbef1e5b7,3
+np.float32,0x3edfcaca,0xbf98d47b,3
+np.float32,0x3ef28852,0xbf89fac8,3
+np.float32,0x7f7525df,0x42ffe001,3
+np.float32,0x7f6c33ef,0x42ffc48c,3
+np.float32,0x3ea4a881,0xbfd17e61,3
+np.float32,0x3f3e379f,0xbedb63c6,3
+np.float32,0x3f0524c1,0xbf717301,3
+np.float32,0x3db3e7f0,0xc06091d3,3
+np.float32,0x800000,0xc2fc0000,3
+np.float32,0x3f2f2897,0xbf0c27ce,3
+np.float32,0x7eb1776d,0x42fcf15c,3
+np.float32,0x3f039018,0xbf75dc37,3
+np.float32,0x3c4055,0xc2fe2c96,3
+np.float32,0x3f603653,0xbe43dea5,3
+np.float32,0x7f700d24,0x42ffd07c,3
+np.float32,0x3f4741a3,0xbeb918dc,3
+np.float32,0x3f5fe959,0xbe45da2d,3
+np.float32,0x3f3e4401,0xbedb33b1,3
+np.float32,0x7f0705ff,0x42fe2775,3
+np.float32,0x3ea85662,0xbfcd69b0,3
+np.float32,0x3f15f49f,0xbf458829,3
+np.float32,0x3f17c50e,0xbf411728,3
+np.float32,0x3e483f60,0xc016add2,3
+np.float32,0x3f1ab9e5,0xbf39f71b,3
+np.float32,0x3de0b6fb,0xc04c08fe,3
+np.float32,0x7e671225,0x42fbb452,3
+np.float32,0x80800000,0xffc00000,3
+np.float32,0xe2df3,0xc3012c9d,3
+np.float32,0x3ede1e3c,0xbf9a3770,3
+np.float32,0x3df2ffde,0xc044cfec,3
+np.float32,0x3eed8da5,0xbf8dcf6c,3
+np.float32,0x3ead15c3,0xbfc846e1,3
+np.float32,0x7ef3750a,0x42fddae4,3
+np.float32,0x7e6ab7c0,0x42fbbfe4,3
+np.float32,0x7ea4bbe5,0x42fcba5d,3
+np.float32,0x3f227706,0xbf27f0a1,3
+np.float32,0x3ef39bfd,0xbf89295a,3
+np.float32,0x3f289a20,0xbf1a3edd,3
+np.float32,0x7f225f82,0x42feafb4,3
+np.float32,0x768963,0xc2fc38bc,3
+np.float32,0x3f493c00,0xbeb1ccfc,3
+np.float32,0x3f4e7249,0xbe9ee9a7,3
+np.float32,0x1d0c3a,0xc30023c0,3
+np.float32,0x7f3c5f78,0x42ff1d6a,3
+np.float32,0xff7fffff,0xffc00000,3
+np.float32,0x3ee7896a,0xbf928c2a,3
+np.float32,0x3e788479,0xc002bd2e,3
+np.float32,0x3ee4df17,0xbf94af84,3
+np.float32,0x5e06d7,0xc2fce3d7,3
+np.float32,0x3d7b2776,0xc080e1dc,3
+np.float32,0x3e3d39d3,0xc01be7fd,3
+np.float32,0x7c81dece,0x42f40ab7,3
+np.float32,0x3f7d2085,0xbc856255,3
+np.float32,0x7f7f6627,0x42fffe44,3
+np.float32,0x7f5f2e94,0x42ff9aaa,3
+np.float32,0x7f5835f2,0x42ff8339,3
+np.float32,0x3f6a0e32,0xbe046580,3
+np.float32,0x7e16f586,0x42fa79dd,3
+np.float32,0x3f04a2f2,0xbf72dbc5,3
+np.float32,0x3f35e334,0xbefc7740,3
+np.float32,0x3f0d056e,0xbf5c3824,3
+np.float32,0x7ebeb95e,0x42fd2693,3
+np.float32,0x3c6192,0xc2fe2aff,3
+np.float32,0x3e892b4f,0xbff33958,3
+np.float32,0x3f61d694,0xbe3931df,3
+np.float32,0x29d183,0xc2ff3a56,3
+np.float32,0x7f0b0598,0x42fe3d04,3
+np.float32,0x7f743b28,0x42ffdd3d,3
+np.float32,0x3a2ed6,0xc2fe4663,3
+np.float32,0x3e27403a,0xc0274de8,3
+np.float32,0x3f58ee78,0xbe74a349,3
+np.float32,0x3eaa4b,0xc2fe0f92,3
+np.float32,0x3ecb613b,0xbfaa7de8,3
+np.float32,0x7f637d81,0x42ffa8c9,3
+np.float32,0x3f026e96,0xbf790c73,3
+np.float32,0x386cdf,0xc2fe5d0c,3
+np.float32,0x35abd1,0xc2fe8202,3
+np.float32,0x3eac3cd1,0xbfc92ee8,3
+np.float32,0x3f567869,0xbe82bf47,3
+np.float32,0x3f65c643,0xbe1faae6,3
+np.float32,0x7f5422b9,0x42ff752b,3
+np.float32,0x7c26e9,0xc2fc168c,3
+np.float32,0x7eff5cfd,0x42fdfe29,3
+np.float32,0x3f728e7f,0xbd9f6142,3
+np.float32,0x3f10fd43,0xbf51f874,3
+np.float32,0x7e7ada08,0x42fbf0fe,3
+np.float32,0x3e82a611,0xbffc37be,3
+np.float32,0xbf800000,0xffc00000,3
+np.float32,0x3dbe2e12,0xc05b711c,3
+np.float32,0x7e768fa9,0x42fbe440,3
+np.float32,0x5e44e8,0xc2fce1f0,3
+np.float32,0x7f25071a,0x42febbae,3
+np.float32,0x3f54db5e,0xbe885339,3
+np.float32,0x3f0f2c26,0xbf56a0b8,3
+np.float32,0x22f9a7,0xc2ffbe55,3
+np.float32,0x7ed63dcb,0x42fd7c77,3
+np.float32,0x7ea4fae2,0x42fcbb78,3
+np.float32,0x3f1d7766,0xbf337b47,3
+np.float32,0x7f16d59f,0x42fe7941,3
+np.float32,0x3f3a1bb6,0xbeeb855c,3
+np.float32,0x3ef57128,0xbf87c709,3
+np.float32,0xb24ff,0xc3018591,3
+np.float32,0x3ef99e27,0xbf84a983,3
+np.float32,0x3eac2ccf,0xbfc94013,3
+np.float32,0x3e9d3e1e,0xbfda00dc,3
+np.float32,0x718213,0xc2fc58c1,3
+np.float32,0x7edbf509,0x42fd8fea,3
+np.float32,0x70c7f1,0xc2fc5d80,3
+np.float32,0x3f7012f5,0xbdbdc6cd,3
+np.float32,0x12cba,0xc304c487,3
+np.float32,0x7f5d445d,0x42ff944c,3
+np.float32,0x7f3e30bd,0x42ff2481,3
+np.float32,0x63b110,0xc2fcb8a0,3
+np.float32,0x3f39f728,0xbeec1680,3
+np.float32,0x3f5bea58,0xbe6074b1,3
+np.float32,0x3f350749,0xbefff679,3
+np.float32,0x3e91ab2c,0xbfe81f3e,3
+np.float32,0x7ec53fe0,0x42fd3f6d,3
+np.float32,0x3f6cbbdc,0xbde72c8e,3
+np.float32,0x3f4df49f,0xbea0abcf,3
+np.float32,0x3e9c9638,0xbfdac674,3
+np.float32,0x7f3b82ec,0x42ff1a07,3
+np.float32,0x7f612a09,0x42ffa132,3
+np.float32,0x7ea26650,0x42fcafd3,3
+np.float32,0x3a615138,0xc122f26d,3
+np.float32,0x3f1108bd,0xbf51db39,3
+np.float32,0x6f80f6,0xc2fc65ea,3
+np.float32,0x3f7cb578,0xbc98ecb1,3
+np.float32,0x7f54d31a,0x42ff7790,3
+np.float32,0x196868,0xc3005532,3
+np.float32,0x3f01ee0a,0xbf7a7925,3
+np.float32,0x3e184013,0xc02ffb11,3
+np.float32,0xadde3,0xc3018ee3,3
+np.float32,0x252a91,0xc2ff9173,3
+np.float32,0x3f0382c2,0xbf7601a9,3
+np.float32,0x6d818c,0xc2fc7345,3
+np.float32,0x3bfbfd,0xc2fe2fdd,3
+np.float32,0x7f3cad19,0x42ff1e9a,3
+np.float32,0x4169a7,0xc2fdefdf,3
+np.float32,0x3f615d96,0xbe3c4a2b,3
+np.float32,0x3f036480,0xbf7656ac,3
+np.float32,0x7f5fbda3,0x42ff9c83,3
+np.float32,0x3d202d,0xc2fe21f1,3
+np.float32,0x3d0f5e5d,0xc09ac3e9,3
+np.float32,0x3f0fff6e,0xbf548142,3
+np.float32,0x7f11ed32,0x42fe60d2,3
+np.float32,0x3e6f856b,0xc00624b6,3
+np.float32,0x7f7c4dd7,0x42fff542,3
+np.float32,0x3e76fb86,0xc0034fa0,3
+np.float32,0x3e8a0d6e,0xbff209e7,3
+np.float32,0x3eacad19,0xbfc8b6ad,3
+np.float32,0xa7776,0xc3019cbe,3
+np.float32,0x3dc84d74,0xc056a754,3
+np.float32,0x3efb8052,0xbf834626,3
+np.float32,0x3f0e55fc,0xbf58cacc,3
+np.float32,0x7e0e71e3,0x42fa4efb,3
+np.float32,0x3ed5a800,0xbfa1639c,3
+np.float32,0x3f33335b,0xbf03babf,3
+np.float32,0x38cad7,0xc2fe5842,3
+np.float32,0x3bc21256,0xc0ecc927,3
+np.float32,0x3f09522d,0xbf660a19,3
+np.float32,0xcbd5d,0xc3015428,3
+np.float32,0x492752,0xc2fd9d42,3
+np.float32,0x3f2b9b32,0xbf13b904,3
+np.float32,0x6544ac,0xc2fcad09,3
+np.float32,0x52eb12,0xc2fd40b5,3
+np.float32,0x3f66a7c0,0xbe1a03e8,3
+np.float32,0x7ab289,0xc2fc1f41,3
+np.float32,0x62af5e,0xc2fcc020,3
+np.float32,0x7f73e9cf,0x42ffdc46,3
+np.float32,0x3e5eca,0xc2fe130e,3
+np.float32,0x3e3a10f4,0xc01d7602,3
+np.float32,0x3f04db46,0xbf723f0d,3
+np.float32,0x18fc4a,0xc3005b63,3
+np.float32,0x525bcb,0xc2fd45b6,3
+np.float32,0x3f6b9108,0xbdf5c769,3
+np.float32,0x3e992e8c,0xbfded5c5,3
+np.float32,0x7efea647,0x42fdfc18,3
+np.float32,0x7e8371db,0x42fc139e,3
+np.float32,0x3f397cfb,0xbeedfc69,3
+np.float32,0x7e46d233,0x42fb454a,3
+np.float32,0x7d5281ad,0x42f76f79,3
+np.float32,0x7f4c1878,0x42ff58a1,3
+np.float32,0x3e96ca5e,0xbfe1bd97,3
+np.float32,0x6a2743,0xc2fc8a3d,3
+np.float32,0x7f688781,0x42ffb8f8,3
+np.float32,0x7814b7,0xc2fc2f2d,3
+np.float32,0x3f2ffdc9,0xbf0a6756,3
+np.float32,0x3f766fa8,0xbd60fe24,3
+np.float32,0x4dc64e,0xc2fd7003,3
+np.float32,0x3a296f,0xc2fe46a8,3
+np.float32,0x3f2af942,0xbf15162e,3
+np.float32,0x7f702c32,0x42ffd0dc,3
+np.float32,0x7e61e318,0x42fba390,3
+np.float32,0x7f7d3bdb,0x42fff7fa,3
+np.float32,0x3ee87f3f,0xbf91c881,3
+np.float32,0x2bbc28,0xc2ff193c,3
+np.float32,0x3e01f918,0xc03e966e,3
+np.float32,0x7f0b39f4,0x42fe3e1a,3
+np.float32,0x3eaa4d64,0xbfcb4516,3
+np.float32,0x3e53901e,0xc0119a88,3
+np.float32,0x603cb,0xc3026957,3
+np.float32,0x7e81f926,0x42fc0b4d,3
+np.float32,0x5dab7c,0xc2fce6a6,3
+np.float32,0x3f46fefd,0xbeba1018,3
+np.float32,0x648448,0xc2fcb28a,3
+np.float32,0x3ec49470,0xbfb0c58b,3
+np.float32,0x3e8a5393,0xbff1ac2b,3
+np.float32,0x3f27ccfc,0xbf1c014e,3
+np.float32,0x3ed886e6,0xbf9eeca8,3
+np.float32,0x7cfbe06e,0x42f5f401,3
+np.float32,0x3f5aa7ba,0xbe68f229,3
+np.float32,0x9500d,0xc301c7e3,3
+np.float32,0x3f4861,0xc2fe0853,3
+np.float32,0x3e5ae104,0xc00e76f5,3
+np.float32,0x71253a,0xc2fc5b1e,3
+np.float32,0xcf7b8,0xc3014d9c,3
+np.float32,0x7f7edd2d,0x42fffcb7,3
+np.float32,0x3e9039ee,0xbfe9f5ab,3
+np.float32,0x2fd54e,0xc2fed712,3
+np.float32,0x3f600752,0xbe45147a,3
+np.float32,0x3f4da8f6,0xbea1bb5c,3
+np.float32,0x3f2d34a9,0xbf104bd9,3
+np.float32,0x3e1e66dd,0xc02c52d2,3
+np.float32,0x798276,0xc2fc2670,3
+np.float32,0xd55e2,0xc3014347,3
+np.float32,0x80000001,0xffc00000,3
+np.float32,0x3e7a5ead,0xc0020da6,3
+np.float32,0x7ec4c744,0x42fd3da9,3
+np.float32,0x597e00,0xc2fd085a,3
+np.float32,0x3dff6bf4,0xc0403575,3
+np.float32,0x5d6f1a,0xc2fce883,3
+np.float32,0x7e21faff,0x42faadea,3
+np.float32,0x3e570fea,0xc01016c6,3
+np.float32,0x28e6b6,0xc2ff4ab7,3
+np.float32,0x7e77062d,0x42fbe5a3,3
+np.float32,0x74cac4,0xc2fc43b0,3
+np.float32,0x3f707273,0xbdb93078,3
+np.float32,0x228e96,0xc2ffc737,3
+np.float32,0x686ac1,0xc2fc966b,3
+np.float32,0x3d76400d,0xc081cae8,3
+np.float32,0x3e9f502f,0xbfd7966b,3
+np.float32,0x3f6bc656,0xbdf32b1f,3
+np.float32,0x3edb828b,0xbf9c65d4,3
+np.float32,0x6c6e56,0xc2fc7a8e,3
+np.float32,0x3f04552e,0xbf73b48f,3
+np.float32,0x3f39cb69,0xbeecc457,3
+np.float32,0x7f681c44,0x42ffb7a3,3
+np.float32,0x7f5b44ee,0x42ff8d99,3
+np.float32,0x3e71430a,0xc005798d,3
+np.float32,0x3edcfde3,0xbf9b27c6,3
+np.float32,0x3f616a5a,0xbe3bf67f,3
+np.float32,0x3f523936,0xbe918548,3
+np.float32,0x3f39ce3a,0xbeecb925,3
+np.float32,0x3eac589a,0xbfc91120,3
+np.float32,0x7efc8d3d,0x42fdf5fc,3
+np.float32,0x5704b0,0xc2fd1d0f,3
+np.float32,0x7e7972e9,0x42fbecda,3
+np.float32,0x3eb0811c,0xbfc4aa13,3
+np.float32,0x7f1efcbb,0x42fea023,3
+np.float32,0x3e0b9e32,0xc037fa6b,3
+np.float32,0x7eef6a48,0x42fdce87,3
+np.float32,0x3cc0a373,0xc0ad20c0,3
+np.float32,0x3f2a75bb,0xbf1632ba,3
+np.float32,0x0,0xff800000,3
+np.float32,0x7ecdb6f4,0x42fd5e77,3
+np.float32,0x7f2e2dfd,0x42fee38d,3
+np.float32,0x3ee17f6e,0xbf976d8c,3
+np.float32,0x3f51e7ee,0xbe92a319,3
+np.float32,0x3f06942f,0xbf6d7d3c,3
+np.float32,0x3f7ba528,0xbccac6f1,3
+np.float32,0x3f413787,0xbecfd513,3
+np.float32,0x3e085e48,0xc03a2716,3
+np.float32,0x7e4c5e0e,0x42fb599c,3
+np.float32,0x306f76,0xc2fecdd4,3
+np.float32,0x7f5c2203,0x42ff9081,3
+np.float32,0x3d5355b4,0xc088da05,3
+np.float32,0x9a2a,0xc305bb4f,3
+np.float32,0x3db93a1f,0xc05de0db,3
+np.float32,0x4e50c6,0xc2fd6ae4,3
+np.float32,0x7ec4afed,0x42fd3d51,3
+np.float32,0x3a8f27,0xc2fe41a0,3
+np.float32,0x7f213caf,0x42feaa84,3
+np.float32,0x7e7b5f00,0x42fbf286,3
+np.float32,0x7e367194,0x42fb05ca,3
+np.float32,0x7f56e6de,0x42ff7ebd,3
+np.float32,0x3ed7383e,0xbfa00aef,3
+np.float32,0x7e844752,0x42fc184a,3
+np.float32,0x15157,0xc3049a19,3
+np.float32,0x3f78cd92,0xbd28824a,3
+np.float32,0x7ecddb16,0x42fd5ef9,3
+np.float32,0x3e479f16,0xc016f7d8,3
+np.float32,0x3f5cb418,0xbe5b2bd3,3
+np.float32,0x7c0934cb,0x42f2334e,3
+np.float32,0x3ebe5505,0xbfb6bc69,3
+np.float32,0x3eb1335a,0xbfc3eff5,3
+np.float32,0x3f2488a3,0xbf234444,3
+np.float32,0x642906,0xc2fcb52a,3
+np.float32,0x3da635fa,0xc067e15a,3
+np.float32,0x7e0d80db,0x42fa4a15,3
+np.float32,0x4f0b9d,0xc2fd640a,3
+np.float32,0x7e083806,0x42fa2df8,3
+np.float32,0x7f77f8c6,0x42ffe877,3
+np.float32,0x3e7bb46a,0xc0018ff5,3
+np.float32,0x3f06eb2e,0xbf6c8eca,3
+np.float32,0x7eae8f7c,0x42fce52a,3
+np.float32,0x3de481a0,0xc04a7d7f,3
+np.float32,0x3eed4311,0xbf8e096f,3
+np.float32,0x3f7b0300,0xbce8903d,3
+np.float32,0x3811b,0xc30330dd,3
+np.float32,0x3eb6f8e1,0xbfbe04bc,3
+np.float32,0x3ec35210,0xbfb1f55a,3
+np.float32,0x3d386916,0xc08f24a5,3
+np.float32,0x3f1fa197,0xbf2e704d,3
+np.float32,0x7f2020a5,0x42fea56a,3
+np.float32,0x7e1ea53f,0x42fa9e8c,3
+np.float32,0x3f148903,0xbf490bf9,3
+np.float32,0x3f2f56a0,0xbf0bc6c9,3
+np.float32,0x7da9fc,0xc2fc0d9b,3
+np.float32,0x3d802134,0xc07fe810,3
+np.float32,0x3f6cb927,0xbde74e57,3
+np.float32,0x7e05b125,0x42fa2023,3
+np.float32,0x3f3307f9,0xbf041433,3
+np.float32,0x5666bf,0xc2fd2250,3
+np.float32,0x3f51c93b,0xbe930f28,3
+np.float32,0x3eb5dcfe,0xbfbf241e,3
+np.float32,0xb2773,0xc301853f,3
+np.float32,0x7f4dee96,0x42ff5f3f,3
+np.float32,0x3e3f5c33,0xc01adee1,3
+np.float32,0x3f2ed29a,0xbf0cdd4a,3
+np.float32,0x3e3c01ef,0xc01c80ab,3
+np.float32,0x3ec2236e,0xbfb31458,3
+np.float32,0x7e841dc4,0x42fc1761,3
+np.float32,0x3df2cd8e,0xc044e30c,3
+np.float32,0x3f010901,0xbf7d0670,3
+np.float32,0x3c05ceaa,0xc0ddf39b,3
+np.float32,0x3f517226,0xbe944206,3
+np.float32,0x3f23c83d,0xbf24f522,3
+np.float32,0x7fc9da,0xc2fc0139,3
+np.float32,0x7f1bde53,0x42fe9181,3
+np.float32,0x3ea3786c,0xbfd2d4a5,3
+np.float32,0x3e83a71b,0xbffacdd2,3
+np.float32,0x3f6f0d4f,0xbdca61d5,3
+np.float32,0x7f5ab613,0x42ff8bb7,3
+np.float32,0x3ab1ec,0xc2fe3fea,3
+np.float32,0x4fbf58,0xc2fd5d82,3
+np.float32,0x3dea141b,0xc0484403,3
+np.float32,0x7d86ad3b,0x42f8258f,3
+np.float32,0x7f345315,0x42fefd29,3
+np.float32,0x3f3752fe,0xbef6a780,3
+np.float32,0x64830d,0xc2fcb293,3
+np.float32,0x3d9dc1eb,0xc06cb32a,3
+np.float32,0x3f2f935a,0xbf0b46f6,3
+np.float32,0xb90a4,0xc30177e3,3
+np.float32,0x4111dd,0xc2fdf3c1,3
+np.float32,0x3d4cd078,0xc08a4c68,3
+np.float32,0x3e95c3f1,0xbfe30011,3
+np.float32,0x3ec9f356,0xbfabcb4e,3
+np.float32,0x1b90d5,0xc3003717,3
+np.float32,0xee70f,0xc3011a3e,3
+np.float32,0x7fa00000,0x7fe00000,3
+np.float32,0x3f74cdb6,0xbd8422af,3
+np.float32,0x3d9b56fe,0xc06e2037,3
+np.float32,0x3f1853df,0xbf3fbc40,3
+np.float32,0x7d86a011,0x42f82547,3
+np.float32,0x3dff9629,0xc0402634,3
+np.float32,0x46f8c9,0xc2fdb39f,3
+np.float32,0x3e9b410b,0xbfdc5a87,3
+np.float32,0x3f5aed42,0xbe671cac,3
+np.float32,0x3b739886,0xc101257f,3
+np.float64,0x3fe2f58d6565eb1b,0xbfe82a641138e19a,1
+np.float64,0x3fee7f0642fcfe0d,0xbfb1c702f6974932,1
+np.float64,0x25b71f244b6e5,0xc090030d3b3c5d2b,1
+np.float64,0x8c9cc8e1193b,0xc0900b752a678fa8,1
+np.float64,0x3fd329b5d326536c,0xbffbd607f6db945c,1
+np.float64,0x3fb5109b3a2a2136,0xc00cd36bd15dfb18,1
+np.float64,0x3fd5393ae12a7276,0xbff97a7e4a157154,1
+np.float64,0x3fd374d1b926e9a3,0xbffb7c3e1a3a7ed3,1
+np.float64,0x3fe2c7f4e2658fea,0xbfe899f15ca78fcb,1
+np.float64,0x7fe3d6b81ee7ad6f,0x408ffa7b63d407ee,1
+np.float64,0x3fe086d097e10da1,0xbfee81456ce8dd03,1
+np.float64,0x7fd374a64ca6e94c,0x408ff241c7306d39,1
+np.float64,0x3fc0709a5b20e135,0xc007afdede31b29c,1
+np.float64,0x3fd4218f4b28431f,0xbffab2c696966e2d,1
+np.float64,0x143134c828628,0xc09006a8372c4d8a,1
+np.float64,0x3f8bd0aa0037a154,0xc018cf0e8b9c3107,1
+np.float64,0x7fe0ce905ee19d20,0x408ff8915e71bd67,1
+np.float64,0x3fda0f5f32b41ebe,0xbff4bd5e0869e820,1
+np.float64,0x7fe9ae63d0b35cc7,0x408ffd760ca4f292,1
+np.float64,0x3fe75abd9eeeb57b,0xbfdd1476fc8b3089,1
+np.float64,0x786c3110f0d87,0xc08ff8b44cedbeea,1
+np.float64,0x22c5fe80458d,0xc09013853591c2f2,1
+np.float64,0x3fdc250797384a0f,0xbff2f6a02c961f0b,1
+np.float64,0x3fa2b367b02566cf,0xc013199238485054,1
+np.float64,0x3fd26a910ca4d522,0xbffcc0e2089b1c0c,1
+np.float64,0x8068d3b300d1b,0xc08ff7f690210aac,1
+np.float64,0x3fe663bfa9ecc77f,0xbfe07cd95a43a5ce,1
+np.float64,0x3fd0ddb07321bb61,0xbffec886665e895e,1
+np.float64,0x3f91c730b0238e61,0xc0176452badc8d22,1
+np.float64,0x4dd10d309ba22,0xc08ffdbe738b1d8d,1
+np.float64,0x7fe322afa4a6455e,0x408ffa10c038f9de,1
+np.float64,0x7fdf7f7c42befef8,0x408ff7d147ddaad5,1
+np.float64,0x7fd673f386ace7e6,0x408ff3e920d00eef,1
+np.float64,0x3feaebfcadb5d7f9,0xbfcfe8ec27083478,1
+np.float64,0x3fdc6dc23738db84,0xbff2bb46794f07b8,1
+np.float64,0xcd8819599b103,0xc08ff288c5b2cf0f,1
+np.float64,0xfda00e77fb402,0xc08ff01b895d2236,1
+np.float64,0x840b02ff08161,0xc08ff7a41e41114c,1
+np.float64,0x3fbdce3a383b9c74,0xc008d1e61903a289,1
+np.float64,0x3fd24ed3c4a49da8,0xbffce3c12136b6d3,1
+np.float64,0x3fe8d0834131a107,0xbfd77b194e7051d4,1
+np.float64,0x3fdd0cb11aba1962,0xbff23b9dbd554455,1
+np.float64,0x1a32d97e3465c,0xc090052781a37271,1
+np.float64,0x3fdb09d2b1b613a5,0xbff3e396b862bd83,1
+np.float64,0x3fe04c848aa09909,0xbfef2540dd90103a,1
+np.float64,0x3fce0c48613c1891,0xc000b9f76877d744,1
+np.float64,0x3fc37109a226e213,0xc005c05d8b2b9a2f,1
+np.float64,0x81cf3837039e7,0xc08ff7d686517dff,1
+np.float64,0xd9342c29b2686,0xc08ff1e591c9a895,1
+np.float64,0x7fec731b0638e635,0x408ffea4884550a9,1
+np.float64,0x3fba0fc138341f82,0xc00a5e839b085f64,1
+np.float64,0x7fdda893b03b5126,0x408ff71f7c5a2797,1
+np.float64,0xd2a4bb03a5498,0xc08ff2402f7a907c,1
+np.float64,0x3fea61fb0d34c3f6,0xbfd1d293fbe76183,1
+np.float64,0x3fed5cf486fab9e9,0xbfbfc2e01a7ffff1,1
+np.float64,0x3fcbabc2bf375785,0xc001ad7750c9dbdf,1
+np.float64,0x3fdb5fff53b6bfff,0xbff39a7973a0c6a5,1
+np.float64,0x7feef05a00bde0b3,0x408fff9c5cbc8651,1
+np.float64,0xb1cf24f1639e5,0xc08ff434de10fffb,1
+np.float64,0x3fa583989c2b0731,0xc0124a8a3bbf18ce,1
+np.float64,0x7feae90bf9f5d217,0x408ffe002e7bbbea,1
+np.float64,0x3fe9ef41c4b3de84,0xbfd367878ae4528e,1
+np.float64,0x9be24ce337c4a,0xc08ff5b9b1c31cf9,1
+np.float64,0x3fe916894cb22d13,0xbfd677f915d58503,1
+np.float64,0x3fec1bab20f83756,0xbfc7f2777aabe8ee,1
+np.float64,0x3feaabf2873557e5,0xbfd0d11f28341233,1
+np.float64,0x3fd4d3c3b529a787,0xbff9e9e47acc8ca9,1
+np.float64,0x3fe4cfe96c699fd3,0xbfe3dc53fa739169,1
+np.float64,0xccfdb97399fb7,0xc08ff2908d893400,1
+np.float64,0x3fec7598be78eb31,0xbfc5a750f8f3441a,1
+np.float64,0x355be5fc6ab7e,0xc090010ca315b50b,1
+np.float64,0x3fba9f9074353f21,0xc00a1f80eaf5e581,1
+np.float64,0x7fdcaff189395fe2,0x408ff6bd1c5b90d9,1
+np.float64,0x3fd94d3b64b29a77,0xbff56be1b43d25f3,1
+np.float64,0x4e5f29949cbe6,0xc08ffda972da1d73,1
+np.float64,0x3fe654e2d9aca9c6,0xbfe09b88dcd8f15d,1
+np.float64,0x7fdc130190b82602,0x408ff67d496c1a27,1
+np.float64,0x3fbcd4701e39a8e0,0xc009343e36627e80,1
+np.float64,0x7fdaa4d38f3549a6,0x408ff5e2c6d8678f,1
+np.float64,0x3febe95e5237d2bd,0xbfc93e16d453fe3a,1
+np.float64,0x9ef5ca553deba,0xc08ff57ff4f7883d,1
+np.float64,0x7fe878e91170f1d1,0x408ffce795868fc8,1
+np.float64,0x3fe63dff466c7bff,0xbfe0caf2b79c9e5f,1
+np.float64,0x6561446ccac29,0xc08ffab0e383834c,1
+np.float64,0x30c6c2ae618d9,0xc09001914b30381b,1
+np.float64,0x7ff0000000000000,0x7ff0000000000000,1
+np.float64,0x3fe5c9daf1ab93b6,0xbfe1be81baf4dbdb,1
+np.float64,0x3fe0a03e24a1407c,0xbfee3a73c4c0e8f8,1
+np.float64,0xff2a2cf3fe546,0xc08ff009a7e6e782,1
+np.float64,0x7fcf0332213e0663,0x408fefa36235e210,1
+np.float64,0x3fb612affc2c2560,0xc00c494be9c8c33b,1
+np.float64,0x3fd2b259702564b3,0xbffc67967f077e75,1
+np.float64,0x7fcb63685d36c6d0,0x408fee343343f913,1
+np.float64,0x3fe369f1d5a6d3e4,0xbfe71251139939ad,1
+np.float64,0x3fdd17c618ba2f8c,0xbff232d11c986251,1
+np.float64,0x3f92cc8040259901,0xc01711d8e06b52ee,1
+np.float64,0x69a81dc2d3504,0xc08ffa36cdaf1141,1
+np.float64,0x3fea0fad99b41f5b,0xbfd2f4625a652645,1
+np.float64,0xd1cd5799a39ab,0xc08ff24c02b90d26,1
+np.float64,0x324e59ce649cc,0xc0900163ad091c76,1
+np.float64,0x3fc3d460a227a8c1,0xc00585f903dc7a7f,1
+np.float64,0xa7185ec74e30c,0xc08ff4ec7d65ccd9,1
+np.float64,0x3fa254eaac24a9d5,0xc01337053963321a,1
+np.float64,0x3feaeb112435d622,0xbfcfef3be17f81f6,1
+np.float64,0x60144c3ac028a,0xc08ffb4f8eb94595,1
+np.float64,0x7fa4d2ec6829a5d8,0x408fdb0a9670ab83,1
+np.float64,0x3fed1372f97a26e6,0xbfc1b1fe50d48a55,1
+np.float64,0x3fd5ade5972b5bcb,0xbff8fcf28f525031,1
+np.float64,0x7fe72e335bee5c66,0x408ffc4759236437,1
+np.float64,0x7fdfafab143f5f55,0x408ff7e2e22a8129,1
+np.float64,0x3fe90d0db9321a1b,0xbfd69ae5fe10eb9e,1
+np.float64,0x7fe20a59072414b1,0x408ff962a2492484,1
+np.float64,0x3fed853690bb0a6d,0xbfbdc9dc5f199d2b,1
+np.float64,0x3fd709d469ae13a9,0xbff795a218deb700,1
+np.float64,0x3fe21c35f5e4386c,0xbfea47d71789329b,1
+np.float64,0x9ea5ec053d4be,0xc08ff585c2f6b7a3,1
+np.float64,0x3fc0580f9e20b01f,0xc007c1268f49d037,1
+np.float64,0xd99127abb3225,0xc08ff1e0a1ff339d,1
+np.float64,0x3fdc8c9bbfb91937,0xbff2a2478354effb,1
+np.float64,0x3fe15fc6b162bf8d,0xbfec323ac358e008,1
+np.float64,0xffefffffffffffff,0x7ff8000000000000,1
+np.float64,0x3fee341afb3c6836,0xbfb556b6faee9a84,1
+np.float64,0x3fe4b64c56296c99,0xbfe4154835ad2afe,1
+np.float64,0x85de22810bbc5,0xc08ff77b914fe5b5,1
+np.float64,0x3fd22c72e3a458e6,0xbffd0f4269d20bb9,1
+np.float64,0xc090e5218123,0xc09009a4a65a8a8f,1
+np.float64,0x7fd9641692b2c82c,0x408ff5547782bdfc,1
+np.float64,0x3fd9b9cb28b37396,0xbff509a8fb59a9f1,1
+np.float64,0x3fcd2726f93a4e4e,0xc001135059a22117,1
+np.float64,0x3fa4b493d4296928,0xc0128323c7a55f4a,1
+np.float64,0x47455e788e8ac,0xc08ffec2101c1e82,1
+np.float64,0x3fe0d7e2e261afc6,0xbfeda0f1e2d0f4bd,1
+np.float64,0x3fe860fc5b70c1f9,0xbfd91dc42eaf72c2,1
+np.float64,0xa5d7805b4baf0,0xc08ff502bc819ff6,1
+np.float64,0xd83395b1b0673,0xc08ff1f33c3f94c2,1
+np.float64,0x3f865972e02cb2e6,0xc01a1243651565c8,1
+np.float64,0x52fc6952a5f8e,0xc08ffd006b158179,1
+np.float64,0x7fecac6c793958d8,0x408ffebbb1c09a70,1
+np.float64,0x7fe621ff606c43fe,0x408ffbbeb2b1473a,1
+np.float64,0x3fdb9f3f9db73e7f,0xbff365610c52bda7,1
+np.float64,0x7feab92992757252,0x408ffdeb92a04813,1
+np.float64,0xcc46c79f988d9,0xc08ff29adf03fb7c,1
+np.float64,0x3fe3156a03262ad4,0xbfe7dd0f598781c7,1
+np.float64,0x3fc00e3a61201c75,0xc007f5c121a87302,1
+np.float64,0x3fdce8e9f739d1d4,0xbff2581d41ef50ef,1
+np.float64,0x0,0xfff0000000000000,1
+np.float64,0x7d373ac4fa6e8,0xc08ff840fa8beaec,1
+np.float64,0x3fee41e0653c83c1,0xbfb4ae786f2a0d54,1
+np.float64,0x3ff0000000000000,0x0,1
+np.float64,0x7feca6fff9794dff,0x408ffeb982a70556,1
+np.float64,0x7fc532716d2a64e2,0x408feb3f0f6c095b,1
+np.float64,0x3fe4ec2954a9d853,0xbfe39dd44aa5a040,1
+np.float64,0x7fd3321d52a6643a,0x408ff21a0ab9cd85,1
+np.float64,0x7fd8f1b2dfb1e365,0x408ff52001fa7922,1
+np.float64,0x3fee5e58cabcbcb2,0xbfb3539734a24d8b,1
+np.float64,0x3feebf6e7dfd7edd,0xbfad7c648f025102,1
+np.float64,0x6008026ec0101,0xc08ffb5108b54a93,1
+np.float64,0x3fea06f5e2340dec,0xbfd3134a48283360,1
+np.float64,0x41cad13c8395b,0xc08fffae654b2426,1
+np.float64,0x7fedb5c9353b6b91,0x408fff249f1f32b6,1
+np.float64,0xe00c5af9c018c,0xc08ff189e68c655f,1
+np.float64,0x7feac398ddf58731,0x408ffdf01374de9f,1
+np.float64,0x3fed21127c7a4225,0xbfc15b8cf55628fa,1
+np.float64,0x3fd3446711a688ce,0xbffbb5f7252a9fa3,1
+np.float64,0x7fe75fa07a6ebf40,0x408ffc5fdb096018,1
+np.float64,0x3feeb1618cbd62c3,0xbfaece3bd0863070,1
+np.float64,0x7f5226e180244dc2,0x408fb174d506e52f,1
+np.float64,0x3fcd67deca3acfbe,0xc000f9cd7a490749,1
+np.float64,0xdc6f30efb8de6,0xc08ff1b9f2a22d2e,1
+np.float64,0x9c14931338293,0xc08ff5b5f975ec5d,1
+np.float64,0x7fe93e802df27cff,0x408ffd4354eba0e0,1
+np.float64,0x3feb92ae5077255d,0xbfcb7f2084e44dbb,1
+np.float64,0xd78dbfddaf1b8,0xc08ff1fc19fa5a13,1
+np.float64,0x7fe14c301fa2985f,0x408ff8e666cb6592,1
+np.float64,0xbda3d8b77b47b,0xc08ff37689f4b2e5,1
+np.float64,0x8a42953b14853,0xc08ff71c2db3b8cf,1
+np.float64,0x7fe4ca7e186994fb,0x408ffb05e94254a7,1
+np.float64,0x7fe92ffc5e325ff8,0x408ffd3cb0265b12,1
+np.float64,0x91b262912364d,0xc08ff681619be214,1
+np.float64,0x33fe2b0667fc6,0xc0900132f3fab55e,1
+np.float64,0x3fde10e9183c21d2,0xbff17060fb4416c7,1
+np.float64,0xb6b811cb6d702,0xc08ff3e46303b541,1
+np.float64,0x3fe4a7bda0a94f7b,0xbfe435c6481cd0e3,1
+np.float64,0x7fd9fe6057b3fcc0,0x408ff599c79a822c,1
+np.float64,0x3fef44bf917e897f,0xbfa11484e351a6e9,1
+np.float64,0x3fe57d701daafae0,0xbfe2618ab40fc01b,1
+np.float64,0x7fe52d2adbaa5a55,0x408ffb3c2fb1c99d,1
+np.float64,0xb432f66d6865f,0xc08ff40d6b4084fe,1
+np.float64,0xbff0000000000000,0x7ff8000000000000,1
+np.float64,0x7fecd2292bf9a451,0x408ffecad860de6f,1
+np.float64,0x3fddd2ae153ba55c,0xbff1a059adaca33e,1
+np.float64,0x3fee55d6e5bcabae,0xbfb3bb1c6179d820,1
+np.float64,0x7fc1d0085623a010,0x408fe93d16ada7a7,1
+np.float64,0x829b000105360,0xc08ff7c47629a68f,1
+np.float64,0x7fe1e0257523c04a,0x408ff94782cf0717,1
+np.float64,0x7fd652f9ad2ca5f2,0x408ff3d820ec892e,1
+np.float64,0x3fef2246203e448c,0xbfa444ab6209d8cd,1
+np.float64,0x3fec6c0ae178d816,0xbfc5e559ebd4e790,1
+np.float64,0x3fe6ddfee92dbbfe,0xbfdf06dd7d3fa7a8,1
+np.float64,0x3fb7fbcbea2ff798,0xc00b5404d859d148,1
+np.float64,0x7feb9a154d37342a,0x408ffe4b26c29e55,1
+np.float64,0x3fe4db717aa9b6e3,0xbfe3c2c6b3ef13bc,1
+np.float64,0x3fbae17dda35c2fc,0xc00a030f7f4b37e7,1
+np.float64,0x7fd632b9082c6571,0x408ff3c76826ef19,1
+np.float64,0x7fc4184a15283093,0x408feaa14adf00be,1
+np.float64,0x3fe052d19920a5a3,0xbfef136b5df81a3e,1
+np.float64,0x7fe38b872b67170d,0x408ffa4f51aafc86,1
+np.float64,0x3fef9842d03f3086,0xbf92d3d2a21d4be2,1
+np.float64,0x9cea662139d4d,0xc08ff5a634810daa,1
+np.float64,0x3fe35f0855e6be11,0xbfe72c4b564e62aa,1
+np.float64,0x3fecee3d3779dc7a,0xbfc29ee942f8729e,1
+np.float64,0x3fe7903fd72f2080,0xbfdc41db9b5f4048,1
+np.float64,0xb958889572b11,0xc08ff3ba366cf84b,1
+np.float64,0x3fcb3a67c53674d0,0xc001dd21081ad1ea,1
+np.float64,0xe3b1b53fc7637,0xc08ff15a3505e1ce,1
+np.float64,0xe5954ae9cb2aa,0xc08ff141cbbf0ae4,1
+np.float64,0x3fe394af74e7295f,0xbfe6ad1d13f206e8,1
+np.float64,0x7fe21dd704643bad,0x408ff96f13f80c1a,1
+np.float64,0x3fd23a7cf02474fa,0xbffcfd7454117a05,1
+np.float64,0x7fe257515e24aea2,0x408ff99378764d52,1
+np.float64,0x7fe4c5d0a6e98ba0,0x408ffb03503cf939,1
+np.float64,0x3fadc2c1603b8583,0xc0106b2c17550e3a,1
+np.float64,0x3fc0f7f02421efe0,0xc007525ac446864c,1
+np.float64,0x3feaf0b27275e165,0xbfcfc8a03eaa32ad,1
+np.float64,0x5ce7503cb9ceb,0xc08ffbb2de365fa8,1
+np.float64,0x2a0014f654003,0xc090026e41761a0d,1
+np.float64,0x7fe2c848a8e59090,0x408ff9d9b723ee89,1
+np.float64,0x7f66f54bc02dea97,0x408fbc2ae0ec5623,1
+np.float64,0xa35a890146b6,0xc0900a97b358ddbd,1
+np.float64,0x7fee267ded7c4cfb,0x408fff501560c9f5,1
+np.float64,0x3fe07c328520f865,0xbfee9ef7c3435b58,1
+np.float64,0x3fe67122cf6ce246,0xbfe06147001932ba,1
+np.float64,0x3fdacc8925359912,0xbff41824cece219e,1
+np.float64,0xffa3047fff461,0xc08ff00431ec9be3,1
+np.float64,0x3e1af43e7c35f,0xc090002c6573d29b,1
+np.float64,0x86fa94590df53,0xc08ff7632525ed92,1
+np.float64,0x7fec4c76227898eb,0x408ffe94d032c657,1
+np.float64,0x7fe2274ce1e44e99,0x408ff975194cfdff,1
+np.float64,0x7fe670e1b4ace1c2,0x408ffbe78cc451de,1
+np.float64,0x7fe853871db0a70d,0x408ffcd5e6a6ff47,1
+np.float64,0x3fcbf265db37e4cc,0xc0019026336e1176,1
+np.float64,0x3fef033cef3e067a,0xbfa726712eaae7f0,1
+np.float64,0x5d74973abae94,0xc08ffba15e6bb992,1
+np.float64,0x7fdd9c99b6bb3932,0x408ff71ad24a7ae0,1
+np.float64,0xbdc8e09b7b91c,0xc08ff3744939e9a3,1
+np.float64,0xdbfcff71b7fa0,0xc08ff1bfeecc9dfb,1
+np.float64,0xf9b38cf5f3672,0xc08ff0499af34a43,1
+np.float64,0x3fea820aa6b50415,0xbfd162a38e1927b1,1
+np.float64,0x3fe67f59a12cfeb3,0xbfe04412adca49dc,1
+np.float64,0x3feb301d9c76603b,0xbfce17e6edeb92d5,1
+np.float64,0x828ce00b0519c,0xc08ff7c5b5c57cde,1
+np.float64,0x4f935e229f26c,0xc08ffd7c67c1c54f,1
+np.float64,0x7fcd139e023a273b,0x408feee4f12ff11e,1
+np.float64,0x666a9944ccd54,0xc08ffa92d5e5cd64,1
+np.float64,0x3fe792f0fa6f25e2,0xbfdc374fda28f470,1
+np.float64,0xe996029bd32c1,0xc08ff10eb9b47a11,1
+np.float64,0x3fe7b0dd1eef61ba,0xbfdbc2676dc77db0,1
+np.float64,0x7fd3ec0127a7d801,0x408ff287bf47e27d,1
+np.float64,0x3fe793a8ea6f2752,0xbfdc347f7717e48d,1
+np.float64,0x7fdb89d15e3713a2,0x408ff64457a13ea2,1
+np.float64,0x3fe35b3cbbe6b679,0xbfe73557c8321b70,1
+np.float64,0x66573c94ccae8,0xc08ffa9504af7eb5,1
+np.float64,0x3fc620a2302c4144,0xc00442036b944a67,1
+np.float64,0x49b2fe0693660,0xc08ffe5f131c3c7e,1
+np.float64,0x7fda936cdfb526d9,0x408ff5db3ab3f701,1
+np.float64,0xc774ceef8ee9a,0xc08ff2e16d082fa1,1
+np.float64,0x4da9f8a09b55,0xc0900ee2206d0c88,1
+np.float64,0x3fe2ca5d5ae594bb,0xbfe89406611a5f1a,1
+np.float64,0x7fe0832497e10648,0x408ff85d1de6056e,1
+np.float64,0x3fe6a9e3222d53c6,0xbfdfda35a9bc2de1,1
+np.float64,0x3fed3d92c8ba7b26,0xbfc0a73620db8b98,1
+np.float64,0x3fdd2ec093ba5d81,0xbff2209cf78ce3f1,1
+np.float64,0x62fcb968c5f98,0xc08ffaf775a593c7,1
+np.float64,0xfcfb019ff9f60,0xc08ff0230e95bd16,1
+np.float64,0x3fd7a63e8f2f4c7d,0xbff6faf4fff7dbe0,1
+np.float64,0x3fef23b0ec3e4762,0xbfa4230cb176f917,1
+np.float64,0x340d1e6a681a5,0xc09001314b68a0a2,1
+np.float64,0x7fc0b85ba02170b6,0x408fe8821487b802,1
+np.float64,0x7fe9976e84f32edc,0x408ffd6bb6aaf467,1
+np.float64,0x329a0e9e65343,0xc090015b044e3270,1
+np.float64,0x3fea4928d3f49252,0xbfd2299b05546eab,1
+np.float64,0x3f188c70003118e0,0xc02ac3ce23bc5d5a,1
+np.float64,0x3fecce5020b99ca0,0xbfc36b23153d5f50,1
+np.float64,0x3fe203873e24070e,0xbfea86edb3690830,1
+np.float64,0x3fe02d9eaa205b3d,0xbfef7d18c54a76d2,1
+np.float64,0xef7537ebdeea7,0xc08ff0c55e9d89e7,1
+np.float64,0x3fedf7572efbeeae,0xbfb840af357cf07c,1
+np.float64,0xd1a97a61a354,0xc0900926fdfb96cc,1
+np.float64,0x7fe6a0daeced41b5,0x408ffc001edf1407,1
+np.float64,0x3fe5063625aa0c6c,0xbfe3647cfb949d62,1
+np.float64,0x7fe9b28d31736519,0x408ffd77eb4a922b,1
+np.float64,0x7feea90d033d5219,0x408fff81a4bbff62,1
+np.float64,0x3fe9494d17f2929a,0xbfd5bde02eb5287a,1
+np.float64,0x7feee17a8cbdc2f4,0x408fff96cf0dc16a,1
+np.float64,0xb2ad18ef655a3,0xc08ff4267eda8af8,1
+np.float64,0x3fad3b52683a76a5,0xc01085ab75b797ce,1
+np.float64,0x2300a65846016,0xc090037b81ce9500,1
+np.float64,0x3feb1041f9b62084,0xbfcef0c87d8b3249,1
+np.float64,0x3fdd887d3e3b10fa,0xbff1da0e1ede6db2,1
+np.float64,0x3fd3e410eb27c822,0xbffaf9b5fc9cc8cc,1
+np.float64,0x3fe0aa53e3e154a8,0xbfee1e7b5c486578,1
+np.float64,0x7fe33e389aa67c70,0x408ffa214fe50961,1
+np.float64,0x3fd27e3a43a4fc75,0xbffca84a79e8adeb,1
+np.float64,0x3fb309e0082613c0,0xc00dfe407b77a508,1
+np.float64,0x7feaf2ed8cf5e5da,0x408ffe046a9d1ba9,1
+np.float64,0x1e76167a3cec4,0xc0900448cd35ec67,1
+np.float64,0x3fe0a18e1721431c,0xbfee36cf1165a0d4,1
+np.float64,0x3fa73b78c02e76f2,0xc011d9069823b172,1
+np.float64,0x3fef6d48287eda90,0xbf9ab2d08722c101,1
+np.float64,0x8fdf0da31fbe2,0xc08ff6a6a2accaa1,1
+np.float64,0x3fc3638db826c71b,0xc005c86191688826,1
+np.float64,0xaa9c09c555381,0xc08ff4aefe1d9473,1
+np.float64,0x7fccb0f4523961e8,0x408feebd84773f23,1
+np.float64,0xede75dcfdbcec,0xc08ff0d89ba887d1,1
+np.float64,0x7f8a051520340a29,0x408fcd9cc17f0d95,1
+np.float64,0x3fef5ca2babeb945,0xbf9dc221f3618e6a,1
+np.float64,0x7fea0ff4bcf41fe8,0x408ffda193359f22,1
+np.float64,0x7fe05c53fd20b8a7,0x408ff841dc7123e8,1
+np.float64,0x3fc625664b2c4acd,0xc0043f8749b9a1d8,1
+np.float64,0x7fed58f98f7ab1f2,0x408fff00585f48c2,1
+np.float64,0x3fb3e5e51427cbca,0xc00d7bcb6528cafe,1
+np.float64,0x3fe728bd3d6e517a,0xbfdddafa72bd0f60,1
+np.float64,0x3fe3f005dd27e00c,0xbfe5d7b3ec93bca0,1
+np.float64,0x3fd74fbd1a2e9f7a,0xbff750001b63ce81,1
+np.float64,0x3fd3af6d85a75edb,0xbffb371d678d11b4,1
+np.float64,0x7fa690ad8c2d215a,0x408fdbf7db9c7640,1
+np.float64,0x3fbdfd38e23bfa72,0xc008bfc1c5c9b89e,1
+np.float64,0x3fe2374684a46e8d,0xbfea030c4595dfba,1
+np.float64,0x7fc0806c372100d7,0x408fe85b36fee334,1
+np.float64,0x3fef3ac47b7e7589,0xbfa2007195c5213f,1
+np.float64,0x3fb55473922aa8e7,0xc00cae7af8230e0c,1
+np.float64,0x7fe018dc152031b7,0x408ff811e0d712fa,1
+np.float64,0x3fe3b3fca56767f9,0xbfe6638ae2c99c62,1
+np.float64,0x7fac79818c38f302,0x408fdea720b39c3c,1
+np.float64,0x7fefffffffffffff,0x4090000000000000,1
+np.float64,0xd2b290cba5652,0xc08ff23f6d7152a6,1
+np.float64,0x7fc5848eb52b091c,0x408feb6b6f8b77d0,1
+np.float64,0xf399f62de733f,0xc08ff092ae319ad8,1
+np.float64,0x7fdec56c12bd8ad7,0x408ff78c4ddbc667,1
+np.float64,0x3fca640f1e34c81e,0xc0023969c5cbfa4c,1
+np.float64,0x3fd55225db2aa44c,0xbff95f7442a2189e,1
+np.float64,0x7fefa009a97f4012,0x408fffdd2f42ef9f,1
+np.float64,0x4a3b70609478,0xc0900f24e449bc3d,1
+np.float64,0x7fe3738b1ba6e715,0x408ffa411f2cb5e7,1
+np.float64,0x7fe5e53f0b6bca7d,0x408ffb9ed8d95cea,1
+np.float64,0x3fe274dd24a4e9ba,0xbfe967fb114b2a83,1
+np.float64,0x3fcbc58b8c378b17,0xc001a2bb1e158bcc,1
+np.float64,0x3fefc2c0043f8580,0xbf862c9b464dcf38,1
+np.float64,0xc2c4fafd858a0,0xc08ff327aecc409b,1
+np.float64,0x3fd8bc39a9b17873,0xbff5f1ad46e5a51c,1
+np.float64,0x3fdf341656be682d,0xbff094f41e7cb4c4,1
+np.float64,0x3fef8495c13f092c,0xbf966cf6313bae4c,1
+np.float64,0x3fe14e0f05229c1e,0xbfec6166f26b7161,1
+np.float64,0x3fed42d3b2ba85a7,0xbfc0860b773d35d8,1
+np.float64,0x7fd92bbac5b25775,0x408ff53abcb3fe0c,1
+np.float64,0xb1635b6f62c6c,0xc08ff43bdf47accf,1
+np.float64,0x4a3a2dbc94746,0xc08ffe49fabddb36,1
+np.float64,0x87d831290fb06,0xc08ff750419dc6fb,1
+np.float64,0x3fec4713f7f88e28,0xbfc6d6217c9f5cf9,1
+np.float64,0x7fed43ba2d3a8773,0x408ffef7fa2fc303,1
+np.float64,0x7fd1ec5b56a3d8b6,0x408ff14f62615f1e,1
+np.float64,0x3fee534b6c7ca697,0xbfb3da1951aa3e68,1
+np.float64,0x3febb564c2b76aca,0xbfca9737062e55e7,1
+np.float64,0x943e6b0f287ce,0xc08ff64e2d09335c,1
+np.float64,0xf177d957e2efb,0xc08ff0acab2999fa,1
+np.float64,0x7fb5b881a82b7102,0x408fe3872b4fde5e,1
+np.float64,0x3fdb2b4a97b65695,0xbff3c715c91359bc,1
+np.float64,0x3fac0a17e4381430,0xc010c330967309fb,1
+np.float64,0x7fd8057990b00af2,0x408ff4b0a287a348,1
+np.float64,0x1f9026a23f206,0xc09004144f3a19dd,1
+np.float64,0x3fdb2977243652ee,0xbff3c8a2fd05803d,1
+np.float64,0x3fe0f6e74b21edcf,0xbfed4c3bb956bae0,1
+np.float64,0xde9cc3bbbd399,0xc08ff19ce5c1e762,1
+np.float64,0x3fe72ce106ae59c2,0xbfddca7ab14ceba2,1
+np.float64,0x3fa8ee14e031dc2a,0xc01170d54ca88e86,1
+np.float64,0x3fe0b09bbb216137,0xbfee0d189a95b877,1
+np.float64,0x7fdfdcb157bfb962,0x408ff7f33cf2afea,1
+np.float64,0x3fef84d5f53f09ac,0xbf966134e2a154f4,1
+np.float64,0x3fea0e0b1bb41c16,0xbfd2fa2d36637d19,1
+np.float64,0x1ab76fd6356ef,0xc090050a9616ffbd,1
+np.float64,0x7fd0ccf79a2199ee,0x408ff09045af2dee,1
+np.float64,0x7fea929345f52526,0x408ffddadc322b07,1
+np.float64,0x3fe9ef629cf3dec5,0xbfd367129c166838,1
+np.float64,0x3feedf0ea2fdbe1d,0xbfaa862afca44c00,1
+np.float64,0x7fce725f723ce4be,0x408fef6cfd2769a8,1
+np.float64,0x7fe4313b3ca86275,0x408ffaaf9557ef8c,1
+np.float64,0xe2d46463c5a8d,0xc08ff165725c6b08,1
+np.float64,0x7fbacb4ace359695,0x408fe5f3647bd0d5,1
+np.float64,0x3fbafd009635fa01,0xc009f745a7a5c5d5,1
+np.float64,0x3fe3cea66ce79d4d,0xbfe6253b895e2838,1
+np.float64,0x7feaa71484354e28,0x408ffde3c0bad2a6,1
+np.float64,0x3fd755b8b42eab71,0xbff74a1444c6e654,1
+np.float64,0x3fc313e2172627c4,0xc005f830e77940c3,1
+np.float64,0x12d699a225ad4,0xc090070ec00f2338,1
+np.float64,0x3fa975fe8432ebfd,0xc01151b3da48b3f9,1
+np.float64,0x7fdce3103b39c61f,0x408ff6d19b3326fa,1
+np.float64,0x7fd341cbba268396,0x408ff2237490fdca,1
+np.float64,0x3fd8405885b080b1,0xbff6666d8802a7d5,1
+np.float64,0x3fe0f0cca3a1e199,0xbfed5cdb3e600791,1
+np.float64,0x7fbd56680c3aaccf,0x408fe6ff55bf378d,1
+np.float64,0x3f939c4f3027389e,0xc016d364dd6313fb,1
+np.float64,0x3fe9e87fac73d0ff,0xbfd37f9a2be4fe38,1
+np.float64,0x7fc93c6a883278d4,0x408fed4260e614f1,1
+np.float64,0x7fa88c0ff031181f,0x408fdcf09a46bd3a,1
+np.float64,0xd5487f99aa910,0xc08ff21b6390ab3b,1
+np.float64,0x3fe34acc96e69599,0xbfe75c9d290428fb,1
+np.float64,0x3fd17f5964a2feb3,0xbffdef50b524137b,1
+np.float64,0xe23dec0dc47be,0xc08ff16d1ce61dcb,1
+np.float64,0x3fec8bd64fb917ad,0xbfc5173941614b8f,1
+np.float64,0x3fc81d97d7303b30,0xc00343ccb791401d,1
+np.float64,0x7fe79ad18e2f35a2,0x408ffc7cf0ab0f2a,1
+np.float64,0x3f96306b402c60d7,0xc0161ce54754cac1,1
+np.float64,0xfb09fc97f6140,0xc08ff039d1d30123,1
+np.float64,0x3fec9c4afa793896,0xbfc4ace43ee46079,1
+np.float64,0x3f9262dac824c5b6,0xc01732a3a7eeb598,1
+np.float64,0x3fa5cd33f42b9a68,0xc01236ed4d315a3a,1
+np.float64,0x3fe7bb336caf7667,0xbfdb9a268a82e267,1
+np.float64,0xc6c338f98d867,0xc08ff2ebb8475bbc,1
+np.float64,0x3fd50714482a0e29,0xbff9b14a9f84f2c2,1
+np.float64,0xfff0000000000000,0x7ff8000000000000,1
+np.float64,0x3fde2cd0f93c59a2,0xbff15afe35a43a37,1
+np.float64,0xf1719cb9e2e34,0xc08ff0acf77b06d3,1
+np.float64,0xfd3caaf9fa796,0xc08ff020101771bd,1
+np.float64,0x7f750d63a02a1ac6,0x408fc32ad0caa362,1
+np.float64,0x7fcc50f4e238a1e9,0x408fee96a5622f1a,1
+np.float64,0x421d1da0843a4,0xc08fff9ffe62d869,1
+np.float64,0x3fd9e17023b3c2e0,0xbff4e631d687ee8e,1
+np.float64,0x3fe4999a09693334,0xbfe4556b3734c215,1
+np.float64,0xd619ef03ac33e,0xc08ff21013c85529,1
+np.float64,0x3fc4da522229b4a4,0xc004f150b2c573aa,1
+np.float64,0x3feb04b053b60961,0xbfcf3fc9e00ebc40,1
+np.float64,0x3fbedec5ea3dbd8c,0xc0086a33dc22fab5,1
+np.float64,0x7fec3b217ab87642,0x408ffe8dbc8ca041,1
+np.float64,0xdb257d33b64b0,0xc08ff1cb42d3c182,1
+np.float64,0x7fa2d92ec025b25d,0x408fd9e414d11cb0,1
+np.float64,0x3fa425c550284b8b,0xc012ab7cbf83be12,1
+np.float64,0x10b4869021692,0xc09007c0487d648a,1
+np.float64,0x7f97918c902f2318,0x408fd47867806574,1
+np.float64,0x3fe4f91238e9f224,0xbfe38160b4e99919,1
+np.float64,0x3fc2b1af6125635f,0xc00634343bc58461,1
+np.float64,0x3fc2a98071255301,0xc0063942bc8301be,1
+np.float64,0x3fe4cfc585299f8b,0xbfe3dca39f114f34,1
+np.float64,0x3fd1ea75b3a3d4eb,0xbffd63acd02c5406,1
+np.float64,0x3fd6bf48492d7e91,0xbff7e0cd249f80f9,1
+np.float64,0x76643d36ecc88,0xc08ff8e68f13b38c,1
+np.float64,0x7feeabab3e7d5755,0x408fff82a0fd4501,1
+np.float64,0x46c0d4a68d81b,0xc08ffed79abaddc9,1
+np.float64,0x3fd088d57ca111ab,0xbfff3dd0ed7128ea,1
+np.float64,0x3fed25887cba4b11,0xbfc13f47639bd645,1
+np.float64,0x7fd90984b4b21308,0x408ff52b022c7fb4,1
+np.float64,0x3fe6ef31daadde64,0xbfdec185760cbf21,1
+np.float64,0x3fe48dbe83291b7d,0xbfe47005b99920bd,1
+np.float64,0x3fdce8422f39d084,0xbff258a33a96cc8e,1
+np.float64,0xb8ecdef771d9c,0xc08ff3c0eca61b10,1
+np.float64,0x3fe9bbf9a03377f3,0xbfd41ecfdcc336b9,1
+np.float64,0x7fe2565339a4aca5,0x408ff992d8851eaf,1
+np.float64,0x3fe1693e3822d27c,0xbfec1919da2ca697,1
+np.float64,0x3fd3680488a6d009,0xbffb8b7330275947,1
+np.float64,0x7fbe4f3d2c3c9e79,0x408fe75fa3f4e600,1
+np.float64,0x7fd4cfef3ca99fdd,0x408ff308ee3ab50f,1
+np.float64,0x3fd9c9a51cb3934a,0xbff4fb7440055ce6,1
+np.float64,0x3fe08a9640a1152d,0xbfee76bd1bfbf5c2,1
+np.float64,0x3fef012c41fe0259,0xbfa757a2da7f9707,1
+np.float64,0x3fee653fe2fcca80,0xbfb2ffae0c95025c,1
+np.float64,0x7fd0776933a0eed1,0x408ff054e7b43d41,1
+np.float64,0x4c94e5c09929d,0xc08ffdedb7f49e5e,1
+np.float64,0xca3e3d17947c8,0xc08ff2b86dce2f7a,1
+np.float64,0x3fb528e1342a51c2,0xc00cc626c8e2d9ba,1
+np.float64,0xd774df81aee9c,0xc08ff1fd6f0a7548,1
+np.float64,0x3fc47a9b6128f537,0xc00526c577b80849,1
+np.float64,0x3fe29a6f6a6534df,0xbfe90a5f83644911,1
+np.float64,0x3fecda4f59f9b49f,0xbfc31e4a80c4cbb6,1
+np.float64,0x7fe51d44f5aa3a89,0x408ffb3382437426,1
+np.float64,0x3fd677fc412ceff9,0xbff82999086977e7,1
+np.float64,0x3fe2a3c7e7254790,0xbfe8f33415cdba9d,1
+np.float64,0x3fe6d8d1dc6db1a4,0xbfdf1bc61bc24dff,1
+np.float64,0x7febb32d8ef7665a,0x408ffe55a043ded1,1
+np.float64,0x60677860c0d0,0xc0900da2caa7d571,1
+np.float64,0x7390c2e0e7219,0xc08ff92df18bb5d2,1
+np.float64,0x3fca53711b34a6e2,0xc00240b07a9b529b,1
+np.float64,0x7fe7ce6dd8ef9cdb,0x408ffc961164ead9,1
+np.float64,0x7fc0c9de0d2193bb,0x408fe88e245767f6,1
+np.float64,0xc0ee217981dc4,0xc08ff343b77ea770,1
+np.float64,0x72bd4668e57a9,0xc08ff94323fd74fc,1
+np.float64,0x7fd6970e252d2e1b,0x408ff3fb1e2fead2,1
+np.float64,0x7fdcb61040396c20,0x408ff6bf926bc98f,1
+np.float64,0xda4faa25b49f6,0xc08ff1d68b3877f0,1
+np.float64,0x3feb344749f6688f,0xbfcdfba2d66c72c5,1
+np.float64,0x3fe2aa4284e55485,0xbfe8e32ae0683f57,1
+np.float64,0x3f8e8fcfd03d1fa0,0xc01843efb2129908,1
+np.float64,0x8000000000000000,0xfff0000000000000,1
+np.float64,0x3fd8e01155b1c023,0xbff5d0529dae9515,1
+np.float64,0x3fe8033f3370067e,0xbfda837c80b87e7c,1
+np.float64,0x7fc5bf831e2b7f05,0x408feb8ae3b039a0,1
+np.float64,0x3fd8dcdf5331b9bf,0xbff5d349e1ed422a,1
+np.float64,0x3fe58b4e302b169c,0xbfe243c9cbccde44,1
+np.float64,0x3fea8a2e47b5145d,0xbfd1464e37221894,1
+np.float64,0x75cd1e88eb9a4,0xc08ff8f553ef0475,1
+np.float64,0x7fcfc876e23f90ed,0x408fefebe6cc95e6,1
+np.float64,0x7f51aceb002359d5,0x408fb1263f9003fb,1
+np.float64,0x7fc2a1b877254370,0x408fe9c1ec52f8b9,1
+np.float64,0x7fd495810e292b01,0x408ff2e859414d31,1
+np.float64,0x7fd72048632e4090,0x408ff440690cebdb,1
+np.float64,0x7fd7aafaffaf6,0xc08ff803a390779f,1
+np.float64,0x7fe18067d4a300cf,0x408ff9090a02693f,1
+np.float64,0x3fdc1080f8b82102,0xbff3077bf44a89bd,1
+np.float64,0x3fc34a462f26948c,0xc005d777b3cdf139,1
+np.float64,0x3fe21e4a1fe43c94,0xbfea428acfbc6ea9,1
+np.float64,0x1f0d79083e1b0,0xc090042c65a7abf2,1
+np.float64,0x3fe8d0d15931a1a3,0xbfd779f6bbd4db78,1
+np.float64,0x3fe74578022e8af0,0xbfdd68b6c15e9f5e,1
+np.float64,0x50995dd0a132c,0xc08ffd56a5c8accf,1
+np.float64,0x3f9a6342b034c685,0xc0151ce1973c62bd,1
+np.float64,0x3f30856a00210ad4,0xc027e852f4d1fcbc,1
+np.float64,0x3febcf7646b79eed,0xbfc9e9cc9d12425c,1
+np.float64,0x8010000000000000,0x7ff8000000000000,1
+np.float64,0x3fdf520c02bea418,0xbff07ed5013f3062,1
+np.float64,0x3fe5433ecbea867e,0xbfe2df38968b6d14,1
+np.float64,0x3fb933a84e326751,0xc00ac1a144ad26c5,1
+np.float64,0x7b6d72c2f6daf,0xc08ff86b7a67f962,1
+np.float64,0xaef5dae75debc,0xc08ff46496bb2932,1
+np.float64,0x522d869aa45b1,0xc08ffd1d55281e98,1
+np.float64,0xa2462b05448c6,0xc08ff542fe0ac5fd,1
+np.float64,0x3fe2b71dd6e56e3c,0xbfe8c3690cf15415,1
+np.float64,0x3fe5778231aaef04,0xbfe26e495d09b783,1
+np.float64,0x3fe9b8d564f371ab,0xbfd42a161132970d,1
+np.float64,0x3f89ebc34033d787,0xc019373f90bfc7f1,1
+np.float64,0x3fe438ddc6e871bc,0xbfe53039341b0a93,1
+np.float64,0x873c75250e78f,0xc08ff75d8478dccd,1
+np.float64,0x807134cb00e27,0xc08ff7f5cf59c57a,1
+np.float64,0x3fac459878388b31,0xc010b6fe803bcdc2,1
+np.float64,0xca9dc7eb953b9,0xc08ff2b2fb480784,1
+np.float64,0x7feb38587bb670b0,0x408ffe21ff6d521e,1
+np.float64,0x7fd70e9b782e1d36,0x408ff437936b393a,1
+np.float64,0x3fa4037bbc2806f7,0xc012b55744c65ab2,1
+np.float64,0x3fd3d4637427a8c7,0xbffb0beebf4311ef,1
+np.float64,0x7fdabbda5db577b4,0x408ff5ecbc0d4428,1
+np.float64,0x7fda9be0a2b537c0,0x408ff5dee5d03d5a,1
+np.float64,0x7fe9c74396338e86,0x408ffd813506a18a,1
+np.float64,0x3fd058243e20b048,0xbfff822ffd8a7f21,1
+np.float64,0x3fe6aa6ca9ed54d9,0xbfdfd805629ff49e,1
+np.float64,0x3fd91431d5322864,0xbff5a025eea8c78b,1
+np.float64,0x7fe4d7f02329afdf,0x408ffb0d5d9b7878,1
+np.float64,0x3fe2954a12252a94,0xbfe917266e3e22d5,1
+np.float64,0x3fb25f7c8224bef9,0xc00e6764c81b3718,1
+np.float64,0x3fda4bddeeb497bc,0xbff4880638908c81,1
+np.float64,0x55dfd12eabbfb,0xc08ffc9b54ff4002,1
+np.float64,0x3fe8f399e031e734,0xbfd6f8e5c4dcd93f,1
+np.float64,0x3fd954a24832a945,0xbff56521f4707a06,1
+np.float64,0x3fdea911f2bd5224,0xbff0fcb2d0c2b2e2,1
+np.float64,0x3fe6b4ff8a2d69ff,0xbfdfacfc85cafeab,1
+np.float64,0x3fc7fa02042ff404,0xc00354e13b0767ad,1
+np.float64,0x3fe955088c72aa11,0xbfd593130f29949e,1
+np.float64,0xd7e74ec1afcea,0xc08ff1f74f61721c,1
+np.float64,0x3fe9d69c1ab3ad38,0xbfd3bf710a337e06,1
+np.float64,0x3fd85669a2b0acd3,0xbff65176143ccc1e,1
+np.float64,0x3fea99b285353365,0xbfd11062744783f2,1
+np.float64,0x3fe2c79f80a58f3f,0xbfe89ac33f990289,1
+np.float64,0x3f8332ba30266574,0xc01af2cb7b635783,1
+np.float64,0x30d0150061a1,0xc090119030f74c5d,1
+np.float64,0x3fdbf4cb06b7e996,0xbff31e5207aaa754,1
+np.float64,0x3fe6b56c216d6ad8,0xbfdfab42fb2941c5,1
+np.float64,0x7fc4dc239829b846,0x408feb0fb0e13fbe,1
+np.float64,0x3fd0ab85ef21570c,0xbfff0d95d6c7a35c,1
+np.float64,0x7fe13d75e5e27aeb,0x408ff8dc8efa476b,1
+np.float64,0x3fece3b832f9c770,0xbfc2e21b165d583f,1
+np.float64,0x3fe3a279c4e744f4,0xbfe68ca4fbb55dbf,1
+np.float64,0x3feb64659ef6c8cb,0xbfccb6204b6bf724,1
+np.float64,0x2279a6bc44f36,0xc0900391eeeb3e7c,1
+np.float64,0xb88046d571009,0xc08ff3c7b5b45300,1
+np.float64,0x7ff4000000000000,0x7ffc000000000000,1
+np.float64,0x3fe49af059a935e1,0xbfe4526c294f248f,1
+np.float64,0xa3e5508147cc,0xc0900a92ce5924b1,1
+np.float64,0x7fc56def3d2adbdd,0x408feb5f46c360e8,1
+np.float64,0x7fd99f3574333e6a,0x408ff56f3807987c,1
+np.float64,0x3fdc38d56fb871ab,0xbff2e667cad8f36a,1
+np.float64,0xd0b03507a1607,0xc08ff25bbcf8aa9d,1
+np.float64,0xc493f9078927f,0xc08ff30c5fa4e759,1
+np.float64,0x3fc86ddbcb30dbb8,0xc0031da1fcb56d75,1
+np.float64,0x7fe75dc395aebb86,0x408ffc5eef841491,1
+np.float64,0x1647618a2c8ed,0xc0900616ef9479c1,1
+np.float64,0xdf144763be289,0xc08ff196b527f3c9,1
+np.float64,0x3fe0b29da6a1653b,0xbfee078b5f4d7744,1
+np.float64,0x3feb055852b60ab1,0xbfcf3b4db5779a7a,1
+np.float64,0x3fe8bc1625f1782c,0xbfd7c739ade904bc,1
+np.float64,0x7fd19bfb8ea337f6,0x408ff11b2b55699c,1
+np.float64,0x3fed1d80d1ba3b02,0xbfc1722e8d3ce094,1
+np.float64,0x2d9c65925b38e,0xc09001f46bcd3bc5,1
+np.float64,0x7fed6f4d857ade9a,0x408fff091cf6a3b4,1
+np.float64,0x3fd070cd6ba0e19b,0xbfff5f7609ca29e8,1
+np.float64,0x7fea3508b8f46a10,0x408ffdb1f30bd6be,1
+np.float64,0x508b897ca1172,0xc08ffd58a0eb3583,1
+np.float64,0x7feba367b07746ce,0x408ffe4f0bf4bd4e,1
+np.float64,0x3fefebd5c4bfd7ac,0xbf6d20b4fcf21b69,1
+np.float64,0x3fd8ef07b8b1de0f,0xbff5c2745c0795a5,1
+np.float64,0x3fd38ed518271daa,0xbffb5d75f00f6900,1
+np.float64,0x6de0fecedbc20,0xc08ff9c307bbc647,1
+np.float64,0xafc0ffc35f820,0xc08ff45737e5d6b4,1
+np.float64,0x7fd282097ca50412,0x408ff1ae3b27bf3b,1
+np.float64,0x3fe2f2d50b65e5aa,0xbfe831042e6a1e99,1
+np.float64,0x3faa437bac3486f7,0xc01123d8d962205a,1
+np.float64,0x3feea54434fd4a88,0xbfaff202cc456647,1
+np.float64,0x3fc9e65b8633ccb7,0xc00270e77ffd19da,1
+np.float64,0x7fee15af61fc2b5e,0x408fff49a49154a3,1
+np.float64,0x7fefe670a73fcce0,0x408ffff6c44c1005,1
+np.float64,0x3fc0832d0f21065a,0xc007a2dc2f25384a,1
+np.float64,0x3fecfc96bcb9f92d,0xbfc24367c3912620,1
+np.float64,0x3feb705682b6e0ad,0xbfcc65b1bb16f9c5,1
+np.float64,0x3fe185c4f9630b8a,0xbfebcdb401af67a4,1
+np.float64,0x3fb0a5a9f6214b54,0xc00f8ada2566a047,1
+np.float64,0x7fe2908cdda52119,0x408ff9b744861fb1,1
+np.float64,0x7fee776e183ceedb,0x408fff6ee7c2f86e,1
+np.float64,0x3fce1d608f3c3ac1,0xc000b3685d006474,1
+np.float64,0x7fecf92aa339f254,0x408ffeda6c998267,1
+np.float64,0xce13cb519c27a,0xc08ff280f02882a9,1
+np.float64,0x1,0xc090c80000000000,1
+np.float64,0x3fe485a8afa90b51,0xbfe4823265d5a50a,1
+np.float64,0x3feea60908bd4c12,0xbfafdf7ad7fe203f,1
+np.float64,0x3fd2253033a44a60,0xbffd187d0ec8d5b9,1
+np.float64,0x435338fc86a68,0xc08fff6a591059dd,1
+np.float64,0x7fce8763a73d0ec6,0x408fef74f1e715ff,1
+np.float64,0x3fbe5ddb783cbbb7,0xc0089acc5afa794b,1
+np.float64,0x7fe4cf19ada99e32,0x408ffb0877ca302b,1
+np.float64,0x3fe94c9ea1b2993d,0xbfd5b1c2e867b911,1
+np.float64,0x3fe75541c72eaa84,0xbfdd2a27aa117699,1
+np.float64,0x8000000000000001,0x7ff8000000000000,1
+np.float64,0x7fdbec7f2c37d8fd,0x408ff66d69a7f818,1
+np.float64,0x8ef10d091de22,0xc08ff6b9ca5094f8,1
+np.float64,0x3fea69025b74d205,0xbfd1b9fe2c252c70,1
+np.float64,0x562376d0ac46f,0xc08ffc924111cd31,1
+np.float64,0x8e8097ab1d013,0xc08ff6c2e2706f67,1
+np.float64,0x3fca6803ed34d008,0xc00237aef808825b,1
+np.float64,0x7fe8fe9067b1fd20,0x408ffd25f459a7d1,1
+np.float64,0x3f918e8c7f233,0xc0900009fe011d54,1
+np.float64,0x3fdfe773833fcee7,0xbff011bc1af87bb9,1
+np.float64,0xefffef6fdfffe,0xc08ff0beb0f09eb0,1
+np.float64,0x7fe64610282c8c1f,0x408ffbd17209db18,1
+np.float64,0xe66be8c1ccd7d,0xc08ff13706c056e1,1
+np.float64,0x2837e570506fd,0xc09002ae4dae0c1a,1
+np.float64,0x3febe3a081f7c741,0xbfc964171f2a5a47,1
+np.float64,0x3fe21ed09a243da1,0xbfea41342d29c3ff,1
+np.float64,0x3fe1596c8162b2d9,0xbfec431eee30823a,1
+np.float64,0x8f2b9a131e574,0xc08ff6b51104ed4e,1
+np.float64,0x3fe88ed179711da3,0xbfd870d08a4a4b0c,1
+np.float64,0x34159bc2682b4,0xc09001305a885f94,1
+np.float64,0x1ed31e543da65,0xc0900437481577f8,1
+np.float64,0x3feafbe9de75f7d4,0xbfcf7bcdbacf1c61,1
+np.float64,0xfb16fb27f62e0,0xc08ff03938e682a2,1
+np.float64,0x3fe5cd5ba7eb9ab7,0xbfe1b7165771af3c,1
+np.float64,0x7fe72905e76e520b,0x408ffc44c4e7e80c,1
+np.float64,0x7fb7136e2e2e26db,0x408fe439fd383fb7,1
+np.float64,0x8fa585e11f4c,0xc0900b55a08a486b,1
+np.float64,0x7fed985ce47b30b9,0x408fff192b596821,1
+np.float64,0x3feaaf0869755e11,0xbfd0c671571b3764,1
+np.float64,0x3fa40fd4ec281faa,0xc012b1c8dc0b9e5f,1
+np.float64,0x7fda2a70993454e0,0x408ff5ad47b0c68a,1
+np.float64,0x3fe5f7e931abefd2,0xbfe15d52b3605abf,1
+np.float64,0x3fe9fc6d3533f8da,0xbfd338b06a790994,1
+np.float64,0x3fe060649420c0c9,0xbfeeed1756111891,1
+np.float64,0x3fce8435e33d086c,0xc0008c41cea9ed40,1
+np.float64,0x7ff8000000000000,0x7ff8000000000000,1
+np.float64,0x617820aec2f05,0xc08ffb251e9af0f0,1
+np.float64,0x7fcc4ab6ee38956d,0x408fee9419c8f77d,1
+np.float64,0x7fdefda2fc3dfb45,0x408ff7a15063bc05,1
+np.float64,0x7fe5138ccaaa2719,0x408ffb2e30f3a46e,1
+np.float64,0x3fe3817a836702f5,0xbfe6da7c2b25e35a,1
+np.float64,0x3fb8a7dafa314fb6,0xc00b025bc0784ebe,1
+np.float64,0x349dc420693d,0xc09011215825d2c8,1
+np.float64,0x6b0e504ad61cb,0xc08ffa0fee9c5cd6,1
+np.float64,0x273987644e732,0xc09002d34294ed79,1
+np.float64,0x3fc0bd8a6e217b15,0xc0077a5828b4d2f5,1
+np.float64,0x758b48c4eb16a,0xc08ff8fbc8fbe46a,1
+np.float64,0x3fc8a9a52631534a,0xc00301854ec0ef81,1
+np.float64,0x7fe79d29a76f3a52,0x408ffc7e1607a4c1,1
+np.float64,0x3fd7d3ebce2fa7d8,0xbff6ce8a94aebcda,1
+np.float64,0x7fd1cb68a52396d0,0x408ff13a17533b2b,1
+np.float64,0x7fda514a5d34a294,0x408ff5be5e081578,1
+np.float64,0x3fc40b4382281687,0xc0056632c8067228,1
+np.float64,0x7feff1208c3fe240,0x408ffffaa180fa0d,1
+np.float64,0x8f58739f1eb0f,0xc08ff6b17402689d,1
+np.float64,0x1fdbe9a23fb7e,0xc090040685b2d24f,1
+np.float64,0xcb1d0e87963a2,0xc08ff2abbd903b82,1
+np.float64,0x3fc45a6a1a28b4d4,0xc00538f86c4aeaee,1
+np.float64,0x3fe61885b1ac310b,0xbfe118fd2251d2ec,1
+np.float64,0x3fedf584c8fbeb0a,0xbfb8572433ff67a9,1
+np.float64,0x7fb0bddd1a217bb9,0x408fe085e0d621db,1
+np.float64,0x72d8d3e0e5b3,0xc0900ca02f68c7a1,1
+np.float64,0x5cca6ff6b994f,0xc08ffbb6751fda01,1
+np.float64,0x7fe3197839a632ef,0x408ffa0b2fccfb68,1
+np.float64,0x3fcce4d9c139c9b4,0xc0012dae05baa91b,1
+np.float64,0x3fe76d00f62eda02,0xbfdccc5f12799be1,1
+np.float64,0x3fc53c22f72a7846,0xc004bbaa9cbc7958,1
+np.float64,0x7fdda02f1ebb405d,0x408ff71c37c71659,1
+np.float64,0x3fe0844eaba1089d,0xbfee884722762583,1
+np.float64,0x3febb438dc776872,0xbfca9f05e1c691f1,1
+np.float64,0x3fdf4170cdbe82e2,0xbff08b1561c8d848,1
+np.float64,0x3fce1b8d6f3c371b,0xc000b41b69507671,1
+np.float64,0x8370e60706e1d,0xc08ff7b19ea0b4ca,1
+np.float64,0x7fa5bf92382b7f23,0x408fdb8aebb3df87,1
+np.float64,0x7fe4a59979a94b32,0x408ffaf15c1358cd,1
+np.float64,0x3faa66086034cc11,0xc0111c466b7835d6,1
+np.float64,0x7fb7a958262f52af,0x408fe48408b1e093,1
+np.float64,0x3fdaacc5f635598c,0xbff43390d06b5614,1
+np.float64,0x3fd2825b9e2504b7,0xbffca3234264f109,1
+np.float64,0x3fcede160a3dbc2c,0xc0006a759e29060c,1
+np.float64,0x7fd3b19603a7632b,0x408ff265b528371c,1
+np.float64,0x7fcf8a86ea3f150d,0x408fefd552e7f3b2,1
+np.float64,0xedbcc0f7db798,0xc08ff0daad12096b,1
+np.float64,0xf1e1683de3c2d,0xc08ff0a7a0a37e00,1
+np.float64,0xb6ebd9bf6dd7b,0xc08ff3e11e28378d,1
+np.float64,0x3fec8090d6f90122,0xbfc56031b72194cc,1
+np.float64,0x3fd3e10e37a7c21c,0xbffafd34a3ebc933,1
+np.float64,0x7fbb1c96aa36392c,0x408fe616347b3342,1
+np.float64,0x3fe2f3996f25e733,0xbfe82f25bc5d1bbd,1
+np.float64,0x7fe8709da870e13a,0x408ffce3ab6ce59a,1
+np.float64,0x7fea3233d1b46467,0x408ffdb0b3bbc6de,1
+np.float64,0x65fa4112cbf49,0xc08ffa9f85eb72b9,1
+np.float64,0x3fca2cae9f34595d,0xc00251bb275afb87,1
+np.float64,0x8135fd9f026c0,0xc08ff7e42e14dce7,1
+np.float64,0x7fe0a6f057e14de0,0x408ff876081a4bfe,1
+np.float64,0x10000000000000,0xc08ff00000000000,1
+np.float64,0x3fe1fd506263faa1,0xbfea96dd8c543b72,1
+np.float64,0xa5532c554aa66,0xc08ff50bf5bfc66d,1
+np.float64,0xc239d00b8473a,0xc08ff32ff0ea3f92,1
+np.float64,0x7fdb5314e336a629,0x408ff62d4ff60d82,1
+np.float64,0x3fe5f506e2abea0e,0xbfe16362a4682120,1
+np.float64,0x3fa20c60202418c0,0xc0134e08d82608b6,1
+np.float64,0x7fe03864b22070c8,0x408ff82866d65e9a,1
+np.float64,0x3fe72cf5656e59eb,0xbfddca298969effa,1
+np.float64,0x5c295386b852b,0xc08ffbca90b136c9,1
+np.float64,0x7fd71e5020ae3c9f,0x408ff43f6d58eb7c,1
+np.float64,0x3fd1905a842320b5,0xbffdd8ecd288159c,1
+np.float64,0x3fe6bddb256d7bb6,0xbfdf88fee1a820bb,1
+np.float64,0xe061b967c0c37,0xc08ff18581951561,1
+np.float64,0x3fe534f65cea69ed,0xbfe2fe45fe7d3040,1
+np.float64,0xdc7dae07b8fb6,0xc08ff1b93074ea76,1
+np.float64,0x3fd0425082a084a1,0xbfffa11838b21633,1
+np.float64,0xba723fc974e48,0xc08ff3a8b8d01c58,1
+np.float64,0x3fce42ffc73c8600,0xc000a5062678406e,1
+np.float64,0x3f2e6d3c7e5ce,0xc090001304cfd1c7,1
+np.float64,0x3fd4b2e5f7a965cc,0xbffa0e6e6bae0a68,1
+np.float64,0x3fe6db1d18edb63a,0xbfdf128158ee92d9,1
+np.float64,0x7fe4e5792f29caf1,0x408ffb14d9dbf133,1
+np.float64,0x3fc11cdf992239bf,0xc00739569619cd77,1
+np.float64,0x3fc05ea11220bd42,0xc007bc841b48a890,1
+np.float64,0x4bd592d497ab3,0xc08ffe0ab1c962e2,1
+np.float64,0x280068fc5000e,0xc09002b64955e865,1
+np.float64,0x7fe2f2637065e4c6,0x408ff9f379c1253a,1
+np.float64,0x3fefc38467ff8709,0xbf85e53e64b9a424,1
+np.float64,0x2d78ec5a5af1e,0xc09001f8ea8601e0,1
+np.float64,0x7feeef2b957dde56,0x408fff9bebe995f7,1
+np.float64,0x2639baf44c738,0xc09002f9618d623b,1
+np.float64,0x3fc562964d2ac52d,0xc004a6d76959ef78,1
+np.float64,0x3fe21b071fe4360e,0xbfea4adb2cd96ade,1
+np.float64,0x7fe56aa6802ad54c,0x408ffb5d81d1a898,1
+np.float64,0x4296b452852d7,0xc08fff8ad7fbcbe1,1
+np.float64,0x7fe3fac4ff27f589,0x408ffa9049eec479,1
+np.float64,0x7fe7a83e6caf507c,0x408ffc837f436604,1
+np.float64,0x3fc4ac5b872958b7,0xc0050add72381ac3,1
+np.float64,0x3fd6d697c02dad30,0xbff7c931a3eefb01,1
+np.float64,0x3f61e391c023c724,0xc021ad91e754f94b,1
+np.float64,0x10817f9c21031,0xc09007d20434d7bc,1
+np.float64,0x3fdb9c4c4cb73899,0xbff367d8615c5ece,1
+np.float64,0x3fe26ead6b64dd5b,0xbfe977771def5989,1
+np.float64,0x3fc43ea5c3287d4c,0xc00548c2163ae631,1
+np.float64,0x3fe05bd8bba0b7b1,0xbfeef9ea0db91abc,1
+np.float64,0x3feac78369358f07,0xbfd071e2b0aeab39,1
+np.float64,0x7fe254922ca4a923,0x408ff991bdd4e5d3,1
+np.float64,0x3fe5a2f5842b45eb,0xbfe21135c9a71666,1
+np.float64,0x3fd5daf98c2bb5f3,0xbff8cd24f7c07003,1
+np.float64,0x3fcb2a1384365427,0xc001e40f0d04299a,1
+np.float64,0x3fe073974360e72f,0xbfeeb7183a9930b7,1
+np.float64,0xcf3440819e688,0xc08ff270d3a71001,1
+np.float64,0x3fd35656cda6acae,0xbffba083fba4939d,1
+np.float64,0x7fe6c59b4ded8b36,0x408ffc12ce725425,1
+np.float64,0x3fba896f943512df,0xc00a291cb6947701,1
+np.float64,0x7fe54917e86a922f,0x408ffb4b5e0fb848,1
+np.float64,0x7fed2a3f51ba547e,0x408ffeede945a948,1
+np.float64,0x3fdc72bd5038e57b,0xbff2b73b7e93e209,1
+np.float64,0x7fefdb3f9f3fb67e,0x408ffff2b702a768,1
+np.float64,0x3fb0184430203088,0xc00fee8c1351763c,1
+np.float64,0x7d6c3668fad87,0xc08ff83c195f2cca,1
+np.float64,0x3fd5aa254aab544b,0xbff900f16365991b,1
+np.float64,0x3f963daab02c7b55,0xc0161974495b1b71,1
+np.float64,0x3fa7a9c5982f538b,0xc011bde0f6052a89,1
+np.float64,0xb3a5a74b674b5,0xc08ff4167bc97c81,1
+np.float64,0x7fad0c14503a1828,0x408fdee1f2d56cd7,1
+np.float64,0x43e0e9d887c1e,0xc08fff522837b13b,1
+np.float64,0x3fe513b20aea2764,0xbfe346ea994100e6,1
+np.float64,0x7fe4e10393e9c206,0x408ffb12630f6a06,1
+np.float64,0x68b286e2d1651,0xc08ffa51c0d795d4,1
+np.float64,0x7fe8de453331bc89,0x408ffd17012b75ac,1
+np.float64,0x1b3d77d4367b0,0xc09004edea60aa36,1
+np.float64,0x3fd351cbc326a398,0xbffba5f0f4d5fdba,1
+np.float64,0x3fd264951b24c92a,0xbffcc8636788b9bf,1
+np.float64,0xd2465761a48cb,0xc08ff2455c9c53e5,1
+np.float64,0x7fe46a0ef028d41d,0x408ffacfe32c6f5d,1
+np.float64,0x3fafd8ac4c3fb159,0xc010071bf33195d0,1
+np.float64,0x902aec5d2055e,0xc08ff6a08e28aabc,1
+np.float64,0x3fcea61bb03d4c37,0xc0007f76e509b657,1
+np.float64,0x7fe8d90f9571b21e,0x408ffd1495f952e7,1
+np.float64,0x7fa650c9442ca192,0x408fdbd6ff22fdd8,1
+np.float64,0x3fe8ecfdf171d9fc,0xbfd7115df40e8580,1
+np.float64,0x7fd4e6fe7f29cdfc,0x408ff315b0dae183,1
+np.float64,0x77df4c52efbea,0xc08ff8c1d5c1df33,1
+np.float64,0xe200b0cfc4016,0xc08ff1703cfb8e79,1
+np.float64,0x3fe230ea7e2461d5,0xbfea132d2385160e,1
+np.float64,0x7fd1f7ced723ef9d,0x408ff156bfbf92a4,1
+np.float64,0x3fea762818f4ec50,0xbfd18c12a88e5f79,1
+np.float64,0x7feea4ba7c7d4974,0x408fff8004164054,1
+np.float64,0x833ec605067d9,0xc08ff7b606383841,1
+np.float64,0x7fd0c2d7fea185af,0x408ff0894f3a0cf4,1
+np.float64,0x3fe1d7d61d23afac,0xbfeaf76fee875d3e,1
+np.float64,0x65adecb0cb5be,0xc08ffaa82cb09d68,1
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/data/umath-validation-set-sin.csv b/python/user_packages/Python313/site-packages/numpy/_core/tests/data/umath-validation-set-sin.csv
new file mode 100644
index 0000000000000000000000000000000000000000..67ab0238c43fe63452c2b13f6b310d07236909b0
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/tests/data/umath-validation-set-sin.csv
@@ -0,0 +1,1370 @@
+dtype,input,output,ulperrortol
+## +ve denormals ##
+np.float32,0x004b4716,0x004b4716,2
+np.float32,0x007b2490,0x007b2490,2
+np.float32,0x007c99fa,0x007c99fa,2
+np.float32,0x00734a0c,0x00734a0c,2
+np.float32,0x0070de24,0x0070de24,2
+np.float32,0x007fffff,0x007fffff,2
+np.float32,0x00000001,0x00000001,2
+## -ve denormals ##
+np.float32,0x80495d65,0x80495d65,2
+np.float32,0x806894f6,0x806894f6,2
+np.float32,0x80555a76,0x80555a76,2
+np.float32,0x804e1fb8,0x804e1fb8,2
+np.float32,0x80687de9,0x80687de9,2
+np.float32,0x807fffff,0x807fffff,2
+np.float32,0x80000001,0x80000001,2
+## +/-0.0f, +/-FLT_MIN +/-FLT_MAX ##
+np.float32,0x00000000,0x00000000,2
+np.float32,0x80000000,0x80000000,2
+np.float32,0x00800000,0x00800000,2
+np.float32,0x80800000,0x80800000,2
+## 1.00f ##
+np.float32,0x3f800000,0x3f576aa4,2
+np.float32,0x3f800001,0x3f576aa6,2
+np.float32,0x3f800002,0x3f576aa7,2
+np.float32,0xc090a8b0,0x3f7b4e48,2
+np.float32,0x41ce3184,0x3f192d43,2
+np.float32,0xc1d85848,0xbf7161cb,2
+np.float32,0x402b8820,0x3ee3f29f,2
+np.float32,0x42b4e454,0x3f1d0151,2
+np.float32,0x42a67a60,0x3f7ffa4c,2
+np.float32,0x41d92388,0x3f67beef,2
+np.float32,0x422dd66c,0xbeffb0c1,2
+np.float32,0xc28f5be6,0xbf0bae79,2
+np.float32,0x41ab2674,0x3f0ffe2b,2
+np.float32,0x3f490fdb,0x3f3504f3,2
+np.float32,0xbf490fdb,0xbf3504f3,2
+np.float32,0x3fc90fdb,0x3f800000,2
+np.float32,0xbfc90fdb,0xbf800000,2
+np.float32,0x40490fdb,0xb3bbbd2e,2
+np.float32,0xc0490fdb,0x33bbbd2e,2
+np.float32,0x3fc90fdb,0x3f800000,2
+np.float32,0xbfc90fdb,0xbf800000,2
+np.float32,0x40490fdb,0xb3bbbd2e,2
+np.float32,0xc0490fdb,0x33bbbd2e,2
+np.float32,0x40c90fdb,0x343bbd2e,2
+np.float32,0xc0c90fdb,0xb43bbd2e,2
+np.float32,0x4016cbe4,0x3f3504f3,2
+np.float32,0xc016cbe4,0xbf3504f3,2
+np.float32,0x4096cbe4,0xbf800000,2
+np.float32,0xc096cbe4,0x3f800000,2
+np.float32,0x4116cbe4,0xb2ccde2e,2
+np.float32,0xc116cbe4,0x32ccde2e,2
+np.float32,0x40490fdb,0xb3bbbd2e,2
+np.float32,0xc0490fdb,0x33bbbd2e,2
+np.float32,0x40c90fdb,0x343bbd2e,2
+np.float32,0xc0c90fdb,0xb43bbd2e,2
+np.float32,0x41490fdb,0x34bbbd2e,2
+np.float32,0xc1490fdb,0xb4bbbd2e,2
+np.float32,0x407b53d2,0xbf3504f5,2
+np.float32,0xc07b53d2,0x3f3504f5,2
+np.float32,0x40fb53d2,0x3f800000,2
+np.float32,0xc0fb53d2,0xbf800000,2
+np.float32,0x417b53d2,0xb535563d,2
+np.float32,0xc17b53d2,0x3535563d,2
+np.float32,0x4096cbe4,0xbf800000,2
+np.float32,0xc096cbe4,0x3f800000,2
+np.float32,0x4116cbe4,0xb2ccde2e,2
+np.float32,0xc116cbe4,0x32ccde2e,2
+np.float32,0x4196cbe4,0x334cde2e,2
+np.float32,0xc196cbe4,0xb34cde2e,2
+np.float32,0x40afede0,0xbf3504ef,2
+np.float32,0xc0afede0,0x3f3504ef,2
+np.float32,0x412fede0,0xbf800000,2
+np.float32,0xc12fede0,0x3f800000,2
+np.float32,0x41afede0,0xb5b222c4,2
+np.float32,0xc1afede0,0x35b222c4,2
+np.float32,0x40c90fdb,0x343bbd2e,2
+np.float32,0xc0c90fdb,0xb43bbd2e,2
+np.float32,0x41490fdb,0x34bbbd2e,2
+np.float32,0xc1490fdb,0xb4bbbd2e,2
+np.float32,0x41c90fdb,0x353bbd2e,2
+np.float32,0xc1c90fdb,0xb53bbd2e,2
+np.float32,0x40e231d6,0x3f3504f3,2
+np.float32,0xc0e231d6,0xbf3504f3,2
+np.float32,0x416231d6,0x3f800000,2
+np.float32,0xc16231d6,0xbf800000,2
+np.float32,0x41e231d6,0xb399a6a2,2
+np.float32,0xc1e231d6,0x3399a6a2,2
+np.float32,0x40fb53d2,0x3f800000,2
+np.float32,0xc0fb53d2,0xbf800000,2
+np.float32,0x417b53d2,0xb535563d,2
+np.float32,0xc17b53d2,0x3535563d,2
+np.float32,0x41fb53d2,0x35b5563d,2
+np.float32,0xc1fb53d2,0xb5b5563d,2
+np.float32,0x410a3ae7,0x3f3504eb,2
+np.float32,0xc10a3ae7,0xbf3504eb,2
+np.float32,0x418a3ae7,0xbf800000,2
+np.float32,0xc18a3ae7,0x3f800000,2
+np.float32,0x420a3ae7,0xb6308908,2
+np.float32,0xc20a3ae7,0x36308908,2
+np.float32,0x4116cbe4,0xb2ccde2e,2
+np.float32,0xc116cbe4,0x32ccde2e,2
+np.float32,0x4196cbe4,0x334cde2e,2
+np.float32,0xc196cbe4,0xb34cde2e,2
+np.float32,0x4216cbe4,0x33ccde2e,2
+np.float32,0xc216cbe4,0xb3ccde2e,2
+np.float32,0x41235ce2,0xbf3504f7,2
+np.float32,0xc1235ce2,0x3f3504f7,2
+np.float32,0x41a35ce2,0x3f800000,2
+np.float32,0xc1a35ce2,0xbf800000,2
+np.float32,0x42235ce2,0xb5b889b6,2
+np.float32,0xc2235ce2,0x35b889b6,2
+np.float32,0x412fede0,0xbf800000,2
+np.float32,0xc12fede0,0x3f800000,2
+np.float32,0x41afede0,0xb5b222c4,2
+np.float32,0xc1afede0,0x35b222c4,2
+np.float32,0x422fede0,0x363222c4,2
+np.float32,0xc22fede0,0xb63222c4,2
+np.float32,0x413c7edd,0xbf3504f3,2
+np.float32,0xc13c7edd,0x3f3504f3,2
+np.float32,0x41bc7edd,0xbf800000,2
+np.float32,0xc1bc7edd,0x3f800000,2
+np.float32,0x423c7edd,0xb4000add,2
+np.float32,0xc23c7edd,0x34000add,2
+np.float32,0x41490fdb,0x34bbbd2e,2
+np.float32,0xc1490fdb,0xb4bbbd2e,2
+np.float32,0x41c90fdb,0x353bbd2e,2
+np.float32,0xc1c90fdb,0xb53bbd2e,2
+np.float32,0x42490fdb,0x35bbbd2e,2
+np.float32,0xc2490fdb,0xb5bbbd2e,2
+np.float32,0x4155a0d9,0x3f3504fb,2
+np.float32,0xc155a0d9,0xbf3504fb,2
+np.float32,0x41d5a0d9,0x3f800000,2
+np.float32,0xc1d5a0d9,0xbf800000,2
+np.float32,0x4255a0d9,0xb633bc81,2
+np.float32,0xc255a0d9,0x3633bc81,2
+np.float32,0x416231d6,0x3f800000,2
+np.float32,0xc16231d6,0xbf800000,2
+np.float32,0x41e231d6,0xb399a6a2,2
+np.float32,0xc1e231d6,0x3399a6a2,2
+np.float32,0x426231d6,0x3419a6a2,2
+np.float32,0xc26231d6,0xb419a6a2,2
+np.float32,0x416ec2d4,0x3f3504ef,2
+np.float32,0xc16ec2d4,0xbf3504ef,2
+np.float32,0x41eec2d4,0xbf800000,2
+np.float32,0xc1eec2d4,0x3f800000,2
+np.float32,0x426ec2d4,0xb5bef0a7,2
+np.float32,0xc26ec2d4,0x35bef0a7,2
+np.float32,0x417b53d2,0xb535563d,2
+np.float32,0xc17b53d2,0x3535563d,2
+np.float32,0x41fb53d2,0x35b5563d,2
+np.float32,0xc1fb53d2,0xb5b5563d,2
+np.float32,0x427b53d2,0x3635563d,2
+np.float32,0xc27b53d2,0xb635563d,2
+np.float32,0x4183f268,0xbf3504ff,2
+np.float32,0xc183f268,0x3f3504ff,2
+np.float32,0x4203f268,0x3f800000,2
+np.float32,0xc203f268,0xbf800000,2
+np.float32,0x4283f268,0xb6859a13,2
+np.float32,0xc283f268,0x36859a13,2
+np.float32,0x418a3ae7,0xbf800000,2
+np.float32,0xc18a3ae7,0x3f800000,2
+np.float32,0x420a3ae7,0xb6308908,2
+np.float32,0xc20a3ae7,0x36308908,2
+np.float32,0x428a3ae7,0x36b08908,2
+np.float32,0xc28a3ae7,0xb6b08908,2
+np.float32,0x41908365,0xbf3504f6,2
+np.float32,0xc1908365,0x3f3504f6,2
+np.float32,0x42108365,0xbf800000,2
+np.float32,0xc2108365,0x3f800000,2
+np.float32,0x42908365,0x3592200d,2
+np.float32,0xc2908365,0xb592200d,2
+np.float32,0x4196cbe4,0x334cde2e,2
+np.float32,0xc196cbe4,0xb34cde2e,2
+np.float32,0x4216cbe4,0x33ccde2e,2
+np.float32,0xc216cbe4,0xb3ccde2e,2
+np.float32,0x4296cbe4,0x344cde2e,2
+np.float32,0xc296cbe4,0xb44cde2e,2
+np.float32,0x419d1463,0x3f3504f8,2
+np.float32,0xc19d1463,0xbf3504f8,2
+np.float32,0x421d1463,0x3f800000,2
+np.float32,0xc21d1463,0xbf800000,2
+np.float32,0x429d1463,0xb5c55799,2
+np.float32,0xc29d1463,0x35c55799,2
+np.float32,0x41a35ce2,0x3f800000,2
+np.float32,0xc1a35ce2,0xbf800000,2
+np.float32,0x42235ce2,0xb5b889b6,2
+np.float32,0xc2235ce2,0x35b889b6,2
+np.float32,0x42a35ce2,0x363889b6,2
+np.float32,0xc2a35ce2,0xb63889b6,2
+np.float32,0x41a9a561,0x3f3504e7,2
+np.float32,0xc1a9a561,0xbf3504e7,2
+np.float32,0x4229a561,0xbf800000,2
+np.float32,0xc229a561,0x3f800000,2
+np.float32,0x42a9a561,0xb68733d0,2
+np.float32,0xc2a9a561,0x368733d0,2
+np.float32,0x41afede0,0xb5b222c4,2
+np.float32,0xc1afede0,0x35b222c4,2
+np.float32,0x422fede0,0x363222c4,2
+np.float32,0xc22fede0,0xb63222c4,2
+np.float32,0x42afede0,0x36b222c4,2
+np.float32,0xc2afede0,0xb6b222c4,2
+np.float32,0x41b6365e,0xbf3504f0,2
+np.float32,0xc1b6365e,0x3f3504f0,2
+np.float32,0x4236365e,0x3f800000,2
+np.float32,0xc236365e,0xbf800000,2
+np.float32,0x42b6365e,0x358bb91c,2
+np.float32,0xc2b6365e,0xb58bb91c,2
+np.float32,0x41bc7edd,0xbf800000,2
+np.float32,0xc1bc7edd,0x3f800000,2
+np.float32,0x423c7edd,0xb4000add,2
+np.float32,0xc23c7edd,0x34000add,2
+np.float32,0x42bc7edd,0x34800add,2
+np.float32,0xc2bc7edd,0xb4800add,2
+np.float32,0x41c2c75c,0xbf3504ef,2
+np.float32,0xc1c2c75c,0x3f3504ef,2
+np.float32,0x4242c75c,0xbf800000,2
+np.float32,0xc242c75c,0x3f800000,2
+np.float32,0x42c2c75c,0xb5cbbe8a,2
+np.float32,0xc2c2c75c,0x35cbbe8a,2
+np.float32,0x41c90fdb,0x353bbd2e,2
+np.float32,0xc1c90fdb,0xb53bbd2e,2
+np.float32,0x42490fdb,0x35bbbd2e,2
+np.float32,0xc2490fdb,0xb5bbbd2e,2
+np.float32,0x42c90fdb,0x363bbd2e,2
+np.float32,0xc2c90fdb,0xb63bbd2e,2
+np.float32,0x41cf585a,0x3f3504ff,2
+np.float32,0xc1cf585a,0xbf3504ff,2
+np.float32,0x424f585a,0x3f800000,2
+np.float32,0xc24f585a,0xbf800000,2
+np.float32,0x42cf585a,0xb688cd8c,2
+np.float32,0xc2cf585a,0x3688cd8c,2
+np.float32,0x41d5a0d9,0x3f800000,2
+np.float32,0xc1d5a0d9,0xbf800000,2
+np.float32,0x4255a0d9,0xb633bc81,2
+np.float32,0xc255a0d9,0x3633bc81,2
+np.float32,0x42d5a0d9,0x36b3bc81,2
+np.float32,0xc2d5a0d9,0xb6b3bc81,2
+np.float32,0x41dbe958,0x3f3504e0,2
+np.float32,0xc1dbe958,0xbf3504e0,2
+np.float32,0x425be958,0xbf800000,2
+np.float32,0xc25be958,0x3f800000,2
+np.float32,0x42dbe958,0xb6deab75,2
+np.float32,0xc2dbe958,0x36deab75,2
+np.float32,0x41e231d6,0xb399a6a2,2
+np.float32,0xc1e231d6,0x3399a6a2,2
+np.float32,0x426231d6,0x3419a6a2,2
+np.float32,0xc26231d6,0xb419a6a2,2
+np.float32,0x42e231d6,0x3499a6a2,2
+np.float32,0xc2e231d6,0xb499a6a2,2
+np.float32,0x41e87a55,0xbf3504f8,2
+np.float32,0xc1e87a55,0x3f3504f8,2
+np.float32,0x42687a55,0x3f800000,2
+np.float32,0xc2687a55,0xbf800000,2
+np.float32,0x42e87a55,0xb5d2257b,2
+np.float32,0xc2e87a55,0x35d2257b,2
+np.float32,0x41eec2d4,0xbf800000,2
+np.float32,0xc1eec2d4,0x3f800000,2
+np.float32,0x426ec2d4,0xb5bef0a7,2
+np.float32,0xc26ec2d4,0x35bef0a7,2
+np.float32,0x42eec2d4,0x363ef0a7,2
+np.float32,0xc2eec2d4,0xb63ef0a7,2
+np.float32,0x41f50b53,0xbf3504e7,2
+np.float32,0xc1f50b53,0x3f3504e7,2
+np.float32,0x42750b53,0xbf800000,2
+np.float32,0xc2750b53,0x3f800000,2
+np.float32,0x42f50b53,0xb68a6748,2
+np.float32,0xc2f50b53,0x368a6748,2
+np.float32,0x41fb53d2,0x35b5563d,2
+np.float32,0xc1fb53d2,0xb5b5563d,2
+np.float32,0x427b53d2,0x3635563d,2
+np.float32,0xc27b53d2,0xb635563d,2
+np.float32,0x42fb53d2,0x36b5563d,2
+np.float32,0xc2fb53d2,0xb6b5563d,2
+np.float32,0x4200ce28,0x3f3504f0,2
+np.float32,0xc200ce28,0xbf3504f0,2
+np.float32,0x4280ce28,0x3f800000,2
+np.float32,0xc280ce28,0xbf800000,2
+np.float32,0x4300ce28,0x357dd672,2
+np.float32,0xc300ce28,0xb57dd672,2
+np.float32,0x4203f268,0x3f800000,2
+np.float32,0xc203f268,0xbf800000,2
+np.float32,0x4283f268,0xb6859a13,2
+np.float32,0xc283f268,0x36859a13,2
+np.float32,0x4303f268,0x37059a13,2
+np.float32,0xc303f268,0xb7059a13,2
+np.float32,0x420716a7,0x3f3504ee,2
+np.float32,0xc20716a7,0xbf3504ee,2
+np.float32,0x428716a7,0xbf800000,2
+np.float32,0xc28716a7,0x3f800000,2
+np.float32,0x430716a7,0xb5d88c6d,2
+np.float32,0xc30716a7,0x35d88c6d,2
+np.float32,0x420a3ae7,0xb6308908,2
+np.float32,0xc20a3ae7,0x36308908,2
+np.float32,0x428a3ae7,0x36b08908,2
+np.float32,0xc28a3ae7,0xb6b08908,2
+np.float32,0x430a3ae7,0x37308908,2
+np.float32,0xc30a3ae7,0xb7308908,2
+np.float32,0x420d5f26,0xbf350500,2
+np.float32,0xc20d5f26,0x3f350500,2
+np.float32,0x428d5f26,0x3f800000,2
+np.float32,0xc28d5f26,0xbf800000,2
+np.float32,0x430d5f26,0xb68c0105,2
+np.float32,0xc30d5f26,0x368c0105,2
+np.float32,0x42108365,0xbf800000,2
+np.float32,0xc2108365,0x3f800000,2
+np.float32,0x42908365,0x3592200d,2
+np.float32,0xc2908365,0xb592200d,2
+np.float32,0x43108365,0xb612200d,2
+np.float32,0xc3108365,0x3612200d,2
+np.float32,0x4213a7a5,0xbf3504df,2
+np.float32,0xc213a7a5,0x3f3504df,2
+np.float32,0x4293a7a5,0xbf800000,2
+np.float32,0xc293a7a5,0x3f800000,2
+np.float32,0x4313a7a5,0xb6e1deee,2
+np.float32,0xc313a7a5,0x36e1deee,2
+np.float32,0x4216cbe4,0x33ccde2e,2
+np.float32,0xc216cbe4,0xb3ccde2e,2
+np.float32,0x4296cbe4,0x344cde2e,2
+np.float32,0xc296cbe4,0xb44cde2e,2
+np.float32,0x4316cbe4,0x34ccde2e,2
+np.float32,0xc316cbe4,0xb4ccde2e,2
+np.float32,0x4219f024,0x3f35050f,2
+np.float32,0xc219f024,0xbf35050f,2
+np.float32,0x4299f024,0x3f800000,2
+np.float32,0xc299f024,0xbf800000,2
+np.float32,0x4319f024,0xb71bde6c,2
+np.float32,0xc319f024,0x371bde6c,2
+np.float32,0x421d1463,0x3f800000,2
+np.float32,0xc21d1463,0xbf800000,2
+np.float32,0x429d1463,0xb5c55799,2
+np.float32,0xc29d1463,0x35c55799,2
+np.float32,0x431d1463,0x36455799,2
+np.float32,0xc31d1463,0xb6455799,2
+np.float32,0x422038a3,0x3f3504d0,2
+np.float32,0xc22038a3,0xbf3504d0,2
+np.float32,0x42a038a3,0xbf800000,2
+np.float32,0xc2a038a3,0x3f800000,2
+np.float32,0x432038a3,0xb746cd61,2
+np.float32,0xc32038a3,0x3746cd61,2
+np.float32,0x42235ce2,0xb5b889b6,2
+np.float32,0xc2235ce2,0x35b889b6,2
+np.float32,0x42a35ce2,0x363889b6,2
+np.float32,0xc2a35ce2,0xb63889b6,2
+np.float32,0x43235ce2,0x36b889b6,2
+np.float32,0xc3235ce2,0xb6b889b6,2
+np.float32,0x42268121,0xbf3504f1,2
+np.float32,0xc2268121,0x3f3504f1,2
+np.float32,0x42a68121,0x3f800000,2
+np.float32,0xc2a68121,0xbf800000,2
+np.float32,0x43268121,0x35643aac,2
+np.float32,0xc3268121,0xb5643aac,2
+np.float32,0x4229a561,0xbf800000,2
+np.float32,0xc229a561,0x3f800000,2
+np.float32,0x42a9a561,0xb68733d0,2
+np.float32,0xc2a9a561,0x368733d0,2
+np.float32,0x4329a561,0x370733d0,2
+np.float32,0xc329a561,0xb70733d0,2
+np.float32,0x422cc9a0,0xbf3504ee,2
+np.float32,0xc22cc9a0,0x3f3504ee,2
+np.float32,0x42acc9a0,0xbf800000,2
+np.float32,0xc2acc9a0,0x3f800000,2
+np.float32,0x432cc9a0,0xb5e55a50,2
+np.float32,0xc32cc9a0,0x35e55a50,2
+np.float32,0x422fede0,0x363222c4,2
+np.float32,0xc22fede0,0xb63222c4,2
+np.float32,0x42afede0,0x36b222c4,2
+np.float32,0xc2afede0,0xb6b222c4,2
+np.float32,0x432fede0,0x373222c4,2
+np.float32,0xc32fede0,0xb73222c4,2
+np.float32,0x4233121f,0x3f350500,2
+np.float32,0xc233121f,0xbf350500,2
+np.float32,0x42b3121f,0x3f800000,2
+np.float32,0xc2b3121f,0xbf800000,2
+np.float32,0x4333121f,0xb68f347d,2
+np.float32,0xc333121f,0x368f347d,2
+np.float32,0x4236365e,0x3f800000,2
+np.float32,0xc236365e,0xbf800000,2
+np.float32,0x42b6365e,0x358bb91c,2
+np.float32,0xc2b6365e,0xb58bb91c,2
+np.float32,0x4336365e,0xb60bb91c,2
+np.float32,0xc336365e,0x360bb91c,2
+np.float32,0x42395a9e,0x3f3504df,2
+np.float32,0xc2395a9e,0xbf3504df,2
+np.float32,0x42b95a9e,0xbf800000,2
+np.float32,0xc2b95a9e,0x3f800000,2
+np.float32,0x43395a9e,0xb6e51267,2
+np.float32,0xc3395a9e,0x36e51267,2
+np.float32,0x423c7edd,0xb4000add,2
+np.float32,0xc23c7edd,0x34000add,2
+np.float32,0x42bc7edd,0x34800add,2
+np.float32,0xc2bc7edd,0xb4800add,2
+np.float32,0x433c7edd,0x35000add,2
+np.float32,0xc33c7edd,0xb5000add,2
+np.float32,0x423fa31d,0xbf35050f,2
+np.float32,0xc23fa31d,0x3f35050f,2
+np.float32,0x42bfa31d,0x3f800000,2
+np.float32,0xc2bfa31d,0xbf800000,2
+np.float32,0x433fa31d,0xb71d7828,2
+np.float32,0xc33fa31d,0x371d7828,2
+np.float32,0x4242c75c,0xbf800000,2
+np.float32,0xc242c75c,0x3f800000,2
+np.float32,0x42c2c75c,0xb5cbbe8a,2
+np.float32,0xc2c2c75c,0x35cbbe8a,2
+np.float32,0x4342c75c,0x364bbe8a,2
+np.float32,0xc342c75c,0xb64bbe8a,2
+np.float32,0x4245eb9c,0xbf3504d0,2
+np.float32,0xc245eb9c,0x3f3504d0,2
+np.float32,0x42c5eb9c,0xbf800000,2
+np.float32,0xc2c5eb9c,0x3f800000,2
+np.float32,0x4345eb9c,0xb748671d,2
+np.float32,0xc345eb9c,0x3748671d,2
+np.float32,0x42490fdb,0x35bbbd2e,2
+np.float32,0xc2490fdb,0xb5bbbd2e,2
+np.float32,0x42c90fdb,0x363bbd2e,2
+np.float32,0xc2c90fdb,0xb63bbd2e,2
+np.float32,0x43490fdb,0x36bbbd2e,2
+np.float32,0xc3490fdb,0xb6bbbd2e,2
+np.float32,0x424c341a,0x3f3504f1,2
+np.float32,0xc24c341a,0xbf3504f1,2
+np.float32,0x42cc341a,0x3f800000,2
+np.float32,0xc2cc341a,0xbf800000,2
+np.float32,0x434c341a,0x354a9ee6,2
+np.float32,0xc34c341a,0xb54a9ee6,2
+np.float32,0x424f585a,0x3f800000,2
+np.float32,0xc24f585a,0xbf800000,2
+np.float32,0x42cf585a,0xb688cd8c,2
+np.float32,0xc2cf585a,0x3688cd8c,2
+np.float32,0x434f585a,0x3708cd8c,2
+np.float32,0xc34f585a,0xb708cd8c,2
+np.float32,0x42527c99,0x3f3504ee,2
+np.float32,0xc2527c99,0xbf3504ee,2
+np.float32,0x42d27c99,0xbf800000,2
+np.float32,0xc2d27c99,0x3f800000,2
+np.float32,0x43527c99,0xb5f22833,2
+np.float32,0xc3527c99,0x35f22833,2
+np.float32,0x4255a0d9,0xb633bc81,2
+np.float32,0xc255a0d9,0x3633bc81,2
+np.float32,0x42d5a0d9,0x36b3bc81,2
+np.float32,0xc2d5a0d9,0xb6b3bc81,2
+np.float32,0x4355a0d9,0x3733bc81,2
+np.float32,0xc355a0d9,0xb733bc81,2
+np.float32,0x4258c518,0xbf350500,2
+np.float32,0xc258c518,0x3f350500,2
+np.float32,0x42d8c518,0x3f800000,2
+np.float32,0xc2d8c518,0xbf800000,2
+np.float32,0x4358c518,0xb69267f6,2
+np.float32,0xc358c518,0x369267f6,2
+np.float32,0x425be958,0xbf800000,2
+np.float32,0xc25be958,0x3f800000,2
+np.float32,0x42dbe958,0xb6deab75,2
+np.float32,0xc2dbe958,0x36deab75,2
+np.float32,0x435be958,0x375eab75,2
+np.float32,0xc35be958,0xb75eab75,2
+np.float32,0x425f0d97,0xbf3504df,2
+np.float32,0xc25f0d97,0x3f3504df,2
+np.float32,0x42df0d97,0xbf800000,2
+np.float32,0xc2df0d97,0x3f800000,2
+np.float32,0x435f0d97,0xb6e845e0,2
+np.float32,0xc35f0d97,0x36e845e0,2
+np.float32,0x426231d6,0x3419a6a2,2
+np.float32,0xc26231d6,0xb419a6a2,2
+np.float32,0x42e231d6,0x3499a6a2,2
+np.float32,0xc2e231d6,0xb499a6a2,2
+np.float32,0x436231d6,0x3519a6a2,2
+np.float32,0xc36231d6,0xb519a6a2,2
+np.float32,0x42655616,0x3f35050f,2
+np.float32,0xc2655616,0xbf35050f,2
+np.float32,0x42e55616,0x3f800000,2
+np.float32,0xc2e55616,0xbf800000,2
+np.float32,0x43655616,0xb71f11e5,2
+np.float32,0xc3655616,0x371f11e5,2
+np.float32,0x42687a55,0x3f800000,2
+np.float32,0xc2687a55,0xbf800000,2
+np.float32,0x42e87a55,0xb5d2257b,2
+np.float32,0xc2e87a55,0x35d2257b,2
+np.float32,0x43687a55,0x3652257b,2
+np.float32,0xc3687a55,0xb652257b,2
+np.float32,0x426b9e95,0x3f3504cf,2
+np.float32,0xc26b9e95,0xbf3504cf,2
+np.float32,0x42eb9e95,0xbf800000,2
+np.float32,0xc2eb9e95,0x3f800000,2
+np.float32,0x436b9e95,0xb74a00d9,2
+np.float32,0xc36b9e95,0x374a00d9,2
+np.float32,0x426ec2d4,0xb5bef0a7,2
+np.float32,0xc26ec2d4,0x35bef0a7,2
+np.float32,0x42eec2d4,0x363ef0a7,2
+np.float32,0xc2eec2d4,0xb63ef0a7,2
+np.float32,0x436ec2d4,0x36bef0a7,2
+np.float32,0xc36ec2d4,0xb6bef0a7,2
+np.float32,0x4271e713,0xbf3504f1,2
+np.float32,0xc271e713,0x3f3504f1,2
+np.float32,0x42f1e713,0x3f800000,2
+np.float32,0xc2f1e713,0xbf800000,2
+np.float32,0x4371e713,0x35310321,2
+np.float32,0xc371e713,0xb5310321,2
+np.float32,0x42750b53,0xbf800000,2
+np.float32,0xc2750b53,0x3f800000,2
+np.float32,0x42f50b53,0xb68a6748,2
+np.float32,0xc2f50b53,0x368a6748,2
+np.float32,0x43750b53,0x370a6748,2
+np.float32,0xc3750b53,0xb70a6748,2
+np.float32,0x42782f92,0xbf3504ee,2
+np.float32,0xc2782f92,0x3f3504ee,2
+np.float32,0x42f82f92,0xbf800000,2
+np.float32,0xc2f82f92,0x3f800000,2
+np.float32,0x43782f92,0xb5fef616,2
+np.float32,0xc3782f92,0x35fef616,2
+np.float32,0x427b53d2,0x3635563d,2
+np.float32,0xc27b53d2,0xb635563d,2
+np.float32,0x42fb53d2,0x36b5563d,2
+np.float32,0xc2fb53d2,0xb6b5563d,2
+np.float32,0x437b53d2,0x3735563d,2
+np.float32,0xc37b53d2,0xb735563d,2
+np.float32,0x427e7811,0x3f350500,2
+np.float32,0xc27e7811,0xbf350500,2
+np.float32,0x42fe7811,0x3f800000,2
+np.float32,0xc2fe7811,0xbf800000,2
+np.float32,0x437e7811,0xb6959b6f,2
+np.float32,0xc37e7811,0x36959b6f,2
+np.float32,0x4280ce28,0x3f800000,2
+np.float32,0xc280ce28,0xbf800000,2
+np.float32,0x4300ce28,0x357dd672,2
+np.float32,0xc300ce28,0xb57dd672,2
+np.float32,0x4380ce28,0xb5fdd672,2
+np.float32,0xc380ce28,0x35fdd672,2
+np.float32,0x42826048,0x3f3504de,2
+np.float32,0xc2826048,0xbf3504de,2
+np.float32,0x43026048,0xbf800000,2
+np.float32,0xc3026048,0x3f800000,2
+np.float32,0x43826048,0xb6eb7958,2
+np.float32,0xc3826048,0x36eb7958,2
+np.float32,0x4283f268,0xb6859a13,2
+np.float32,0xc283f268,0x36859a13,2
+np.float32,0x4303f268,0x37059a13,2
+np.float32,0xc303f268,0xb7059a13,2
+np.float32,0x4383f268,0x37859a13,2
+np.float32,0xc383f268,0xb7859a13,2
+np.float32,0x42858487,0xbf3504e2,2
+np.float32,0xc2858487,0x3f3504e2,2
+np.float32,0x43058487,0x3f800000,2
+np.float32,0xc3058487,0xbf800000,2
+np.float32,0x43858487,0x36bea8be,2
+np.float32,0xc3858487,0xb6bea8be,2
+np.float32,0x428716a7,0xbf800000,2
+np.float32,0xc28716a7,0x3f800000,2
+np.float32,0x430716a7,0xb5d88c6d,2
+np.float32,0xc30716a7,0x35d88c6d,2
+np.float32,0x438716a7,0x36588c6d,2
+np.float32,0xc38716a7,0xb6588c6d,2
+np.float32,0x4288a8c7,0xbf3504cf,2
+np.float32,0xc288a8c7,0x3f3504cf,2
+np.float32,0x4308a8c7,0xbf800000,2
+np.float32,0xc308a8c7,0x3f800000,2
+np.float32,0x4388a8c7,0xb74b9a96,2
+np.float32,0xc388a8c7,0x374b9a96,2
+np.float32,0x428a3ae7,0x36b08908,2
+np.float32,0xc28a3ae7,0xb6b08908,2
+np.float32,0x430a3ae7,0x37308908,2
+np.float32,0xc30a3ae7,0xb7308908,2
+np.float32,0x438a3ae7,0x37b08908,2
+np.float32,0xc38a3ae7,0xb7b08908,2
+np.float32,0x428bcd06,0x3f3504f2,2
+np.float32,0xc28bcd06,0xbf3504f2,2
+np.float32,0x430bcd06,0x3f800000,2
+np.float32,0xc30bcd06,0xbf800000,2
+np.float32,0x438bcd06,0x3517675b,2
+np.float32,0xc38bcd06,0xb517675b,2
+np.float32,0x428d5f26,0x3f800000,2
+np.float32,0xc28d5f26,0xbf800000,2
+np.float32,0x430d5f26,0xb68c0105,2
+np.float32,0xc30d5f26,0x368c0105,2
+np.float32,0x438d5f26,0x370c0105,2
+np.float32,0xc38d5f26,0xb70c0105,2
+np.float32,0x428ef146,0x3f3504c0,2
+np.float32,0xc28ef146,0xbf3504c0,2
+np.float32,0x430ef146,0xbf800000,2
+np.float32,0xc30ef146,0x3f800000,2
+np.float32,0x438ef146,0xb790bc40,2
+np.float32,0xc38ef146,0x3790bc40,2
+np.float32,0x42908365,0x3592200d,2
+np.float32,0xc2908365,0xb592200d,2
+np.float32,0x43108365,0xb612200d,2
+np.float32,0xc3108365,0x3612200d,2
+np.float32,0x43908365,0xb692200d,2
+np.float32,0xc3908365,0x3692200d,2
+np.float32,0x42921585,0xbf350501,2
+np.float32,0xc2921585,0x3f350501,2
+np.float32,0x43121585,0x3f800000,2
+np.float32,0xc3121585,0xbf800000,2
+np.float32,0x43921585,0xb698cee8,2
+np.float32,0xc3921585,0x3698cee8,2
+np.float32,0x4293a7a5,0xbf800000,2
+np.float32,0xc293a7a5,0x3f800000,2
+np.float32,0x4313a7a5,0xb6e1deee,2
+np.float32,0xc313a7a5,0x36e1deee,2
+np.float32,0x4393a7a5,0x3761deee,2
+np.float32,0xc393a7a5,0xb761deee,2
+np.float32,0x429539c5,0xbf3504b1,2
+np.float32,0xc29539c5,0x3f3504b1,2
+np.float32,0x431539c5,0xbf800000,2
+np.float32,0xc31539c5,0x3f800000,2
+np.float32,0x439539c5,0xb7bbab34,2
+np.float32,0xc39539c5,0x37bbab34,2
+np.float32,0x4296cbe4,0x344cde2e,2
+np.float32,0xc296cbe4,0xb44cde2e,2
+np.float32,0x4316cbe4,0x34ccde2e,2
+np.float32,0xc316cbe4,0xb4ccde2e,2
+np.float32,0x4396cbe4,0x354cde2e,2
+np.float32,0xc396cbe4,0xb54cde2e,2
+np.float32,0x42985e04,0x3f350510,2
+np.float32,0xc2985e04,0xbf350510,2
+np.float32,0x43185e04,0x3f800000,2
+np.float32,0xc3185e04,0xbf800000,2
+np.float32,0x43985e04,0xb722455d,2
+np.float32,0xc3985e04,0x3722455d,2
+np.float32,0x4299f024,0x3f800000,2
+np.float32,0xc299f024,0xbf800000,2
+np.float32,0x4319f024,0xb71bde6c,2
+np.float32,0xc319f024,0x371bde6c,2
+np.float32,0x4399f024,0x379bde6c,2
+np.float32,0xc399f024,0xb79bde6c,2
+np.float32,0x429b8243,0x3f3504fc,2
+np.float32,0xc29b8243,0xbf3504fc,2
+np.float32,0x431b8243,0xbf800000,2
+np.float32,0xc31b8243,0x3f800000,2
+np.float32,0x439b8243,0x364b2eb8,2
+np.float32,0xc39b8243,0xb64b2eb8,2
+np.float32,0x435b2047,0xbf350525,2
+np.float32,0x42a038a2,0xbf800000,2
+np.float32,0x432038a2,0x3664ca7e,2
+np.float32,0x4345eb9b,0x365e638c,2
+np.float32,0x42c5eb9b,0xbf800000,2
+np.float32,0x42eb9e94,0xbf800000,2
+np.float32,0x4350ea79,0x3f800000,2
+np.float32,0x42dbe957,0x3585522a,2
+np.float32,0x425be957,0xbf800000,2
+np.float32,0x435be957,0xb605522a,2
+np.float32,0x476362a2,0xbd7ff911,2
+np.float32,0x464c99a4,0x3e7f4d41,2
+np.float32,0x4471f73d,0x3e7fe1b0,2
+np.float32,0x445a6752,0x3e7ef367,2
+np.float32,0x474fa400,0x3e7f9fcd,2
+np.float32,0x45c1e72f,0xbe7fc7af,2
+np.float32,0x4558c91d,0x3e7e9f31,2
+np.float32,0x43784f94,0xbdff6654,2
+np.float32,0x466e8500,0xbe7ea0a3,2
+np.float32,0x468e1c25,0x3e7e22fb,2
+np.float32,0x44ea6cfc,0x3dff70c3,2
+np.float32,0x4605126c,0x3e7f89ef,2
+np.float32,0x4788b3c6,0xbb87d853,2
+np.float32,0x4531b042,0x3dffd163,2
+np.float32,0x43f1f71d,0x3dfff387,2
+np.float32,0x462c3fa5,0xbd7fe13d,2
+np.float32,0x441c5354,0xbdff76b4,2
+np.float32,0x44908b69,0x3e7dcf0d,2
+np.float32,0x478813ad,0xbe7e9d80,2
+np.float32,0x441c4351,0x3dff937b,2
+np.float64,0x1,0x1,1
+np.float64,0x8000000000000001,0x8000000000000001,1
+np.float64,0x10000000000000,0x10000000000000,1
+np.float64,0x8010000000000000,0x8010000000000000,1
+np.float64,0x7fefffffffffffff,0x3f7452fc98b34e97,1
+np.float64,0xffefffffffffffff,0xbf7452fc98b34e97,1
+np.float64,0x7ff0000000000000,0xfff8000000000000,1
+np.float64,0xfff0000000000000,0xfff8000000000000,1
+np.float64,0x7ff8000000000000,0x7ff8000000000000,1
+np.float64,0x7ff4000000000000,0x7ffc000000000000,1
+np.float64,0xbfda51b226b4a364,0xbfd9956328ff876c,1
+np.float64,0xbfb4a65aee294cb8,0xbfb4a09fd744f8a5,1
+np.float64,0xbfd73b914fae7722,0xbfd6b9cce55af379,1
+np.float64,0xbfd90c12b4b21826,0xbfd869a3867b51c2,1
+np.float64,0x3fe649bb3d6c9376,0x3fe48778d9b48a21,1
+np.float64,0xbfd5944532ab288a,0xbfd52c30e1951b42,1
+np.float64,0x3fb150c45222a190,0x3fb14d633eb8275d,1
+np.float64,0x3fe4a6ffa9e94e00,0x3fe33f8a95c33299,1
+np.float64,0x3fe8d2157171a42a,0x3fe667d904ac95a6,1
+np.float64,0xbfa889f52c3113f0,0xbfa8878d90a23fa5,1
+np.float64,0x3feb3234bef6646a,0x3fe809d541d9017a,1
+np.float64,0x3fc6de266f2dbc50,0x3fc6bf0ee80a0d86,1
+np.float64,0x3fe8455368f08aa6,0x3fe6028254338ed5,1
+np.float64,0xbfe5576079eaaec1,0xbfe3cb4a8f6bc3f5,1
+np.float64,0xbfe9f822ff73f046,0xbfe7360d7d5cb887,1
+np.float64,0xbfb1960e7e232c20,0xbfb1928438258602,1
+np.float64,0xbfca75938d34eb28,0xbfca4570979bf2fa,1
+np.float64,0x3fd767dd15aecfbc,0x3fd6e33039018bab,1
+np.float64,0xbfe987750ef30eea,0xbfe6e7ed30ce77f0,1
+np.float64,0xbfe87f95a1f0ff2b,0xbfe62ca7e928bb2a,1
+np.float64,0xbfd2465301a48ca6,0xbfd2070245775d76,1
+np.float64,0xbfb1306ed22260e0,0xbfb12d2088eaa4f9,1
+np.float64,0xbfd8089010b01120,0xbfd778f9db77f2f3,1
+np.float64,0x3fbf9cf4ee3f39f0,0x3fbf88674fde1ca2,1
+np.float64,0x3fe6d8468a6db08e,0x3fe4f403f38b7bec,1
+np.float64,0xbfd9e5deefb3cbbe,0xbfd932692c722351,1
+np.float64,0x3fd1584d55a2b09c,0x3fd122253eeecc2e,1
+np.float64,0x3fe857979cf0af30,0x3fe60fc12b5ba8db,1
+np.float64,0x3fe3644149e6c882,0x3fe239f47013cfe6,1
+np.float64,0xbfe22ea62be45d4c,0xbfe13834c17d56fe,1
+np.float64,0xbfe8d93e1df1b27c,0xbfe66cf4ee467fd2,1
+np.float64,0xbfe9c497c9f38930,0xbfe7127417da4204,1
+np.float64,0x3fd6791cecacf238,0x3fd6039ccb5a7fde,1
+np.float64,0xbfc1dc1b1523b838,0xbfc1cd48edd9ae19,1
+np.float64,0xbfc92a8491325508,0xbfc901176e0158a5,1
+np.float64,0x3fa8649b3430c940,0x3fa8623e82d9504f,1
+np.float64,0x3fe0bed6a1617dae,0x3fdffbb307fb1abe,1
+np.float64,0x3febdf7765f7beee,0x3fe87ad01a89b74a,1
+np.float64,0xbfd3a56d46a74ada,0xbfd356cf41bf83cd,1
+np.float64,0x3fd321d824a643b0,0x3fd2d93846a224b3,1
+np.float64,0xbfc6a49fb52d4940,0xbfc686704906e7d3,1
+np.float64,0xbfdd4103c9ba8208,0xbfdc3ef0c03615b4,1
+np.float64,0xbfe0b78a51e16f14,0xbfdfef0d9ffc38b5,1
+np.float64,0xbfdac7a908b58f52,0xbfda0158956ceecf,1
+np.float64,0xbfbfbf12f23f7e28,0xbfbfaa428989258c,1
+np.float64,0xbfd55f5aa2aabeb6,0xbfd4fa39de65f33a,1
+np.float64,0x3fe06969abe0d2d4,0x3fdf6744fafdd9cf,1
+np.float64,0x3fe56ab8be6ad572,0x3fe3da7a1986d543,1
+np.float64,0xbfeefbbec67df77e,0xbfea5d426132f4aa,1
+np.float64,0x3fe6e1f49cedc3ea,0x3fe4fb53f3d8e3d5,1
+np.float64,0x3feceb231c79d646,0x3fe923d3efa55414,1
+np.float64,0xbfd03dd08ea07ba2,0xbfd011549aa1998a,1
+np.float64,0xbfd688327aad1064,0xbfd611c61b56adbe,1
+np.float64,0xbfde3249d8bc6494,0xbfdd16a7237a39d5,1
+np.float64,0x3febd4b65677a96c,0x3fe873e1a401ef03,1
+np.float64,0xbfe46bd2b368d7a6,0xbfe31023c2467749,1
+np.float64,0x3fbf9f5cde3f3ec0,0x3fbf8aca8ec53c45,1
+np.float64,0x3fc20374032406e8,0x3fc1f43f1f2f4d5e,1
+np.float64,0xbfec143b16f82876,0xbfe89caa42582381,1
+np.float64,0xbfd14fa635a29f4c,0xbfd119ced11da669,1
+np.float64,0x3fe25236d4e4a46e,0x3fe156242d644b7a,1
+np.float64,0xbfe4ed793469daf2,0xbfe377a88928fd77,1
+np.float64,0xbfb363572626c6b0,0xbfb35e98d8fe87ae,1
+np.float64,0xbfb389d5aa2713a8,0xbfb384fae55565a7,1
+np.float64,0x3fca6e001934dc00,0x3fca3e0661eaca84,1
+np.float64,0x3fe748f3f76e91e8,0x3fe548ab2168aea6,1
+np.float64,0x3fef150efdfe2a1e,0x3fea6b92d74f60d3,1
+np.float64,0xbfd14b52b1a296a6,0xbfd115a387c0fa93,1
+np.float64,0x3fe3286b5ce650d6,0x3fe208a6469a7527,1
+np.float64,0xbfd57b4f4baaf69e,0xbfd514a12a9f7ab0,1
+np.float64,0xbfef14bd467e297b,0xbfea6b64bbfd42ce,1
+np.float64,0xbfe280bc90650179,0xbfe17d2c49955dba,1
+np.float64,0x3fca8759d7350eb0,0x3fca56d5c17bbc14,1
+np.float64,0xbfdf988f30bf311e,0xbfde53f96f69b05f,1
+np.float64,0x3f6b6eeb4036de00,0x3f6b6ee7e3f86f9a,1
+np.float64,0xbfed560be8faac18,0xbfe9656c5cf973d8,1
+np.float64,0x3fc6102c592c2058,0x3fc5f43efad5396d,1
+np.float64,0xbfdef64ed2bdec9e,0xbfddc4b7fbd45aea,1
+np.float64,0x3fe814acd570295a,0x3fe5df183d543bfe,1
+np.float64,0x3fca21313f344260,0x3fc9f2d47f64fbe2,1
+np.float64,0xbfe89932cc713266,0xbfe63f186a2f60ce,1
+np.float64,0x3fe4ffcff169ffa0,0x3fe386336115ee21,1
+np.float64,0x3fee6964087cd2c8,0x3fea093d31e2c2c5,1
+np.float64,0xbfbeea604e3dd4c0,0xbfbed72734852669,1
+np.float64,0xbfea1954fb7432aa,0xbfe74cdad8720032,1
+np.float64,0x3fea3e1a5ef47c34,0x3fe765ffba65a11d,1
+np.float64,0x3fcedb850b3db708,0x3fce8f39d92f00ba,1
+np.float64,0x3fd3b52d41a76a5c,0x3fd365d22b0003f9,1
+np.float64,0xbfa4108a0c282110,0xbfa40f397fcd844f,1
+np.float64,0x3fd7454c57ae8a98,0x3fd6c2e5542c6c83,1
+np.float64,0xbfeecd3c7a7d9a79,0xbfea42ca943a1695,1
+np.float64,0xbfdddda397bbbb48,0xbfdccb27283d4c4c,1
+np.float64,0x3fe6b52cf76d6a5a,0x3fe4d96ff32925ff,1
+np.float64,0xbfa39a75ec2734f0,0xbfa3993c0da84f87,1
+np.float64,0x3fdd3fe6fdba7fcc,0x3fdc3df12fe9e525,1
+np.float64,0xbfb57a98162af530,0xbfb5742525d5fbe2,1
+np.float64,0xbfd3e166cfa7c2ce,0xbfd38ff2891be9b0,1
+np.float64,0x3fdb6a04f9b6d408,0x3fda955e5018e9dc,1
+np.float64,0x3fe4ab03a4e95608,0x3fe342bfa76e1aa8,1
+np.float64,0xbfe6c8480b6d9090,0xbfe4e7eaa935b3f5,1
+np.float64,0xbdd6b5a17bae,0xbdd6b5a17bae,1
+np.float64,0xd6591979acb23,0xd6591979acb23,1
+np.float64,0x5adbed90b5b7e,0x5adbed90b5b7e,1
+np.float64,0xa664c5314cc99,0xa664c5314cc99,1
+np.float64,0x1727fb162e500,0x1727fb162e500,1
+np.float64,0xdb49a93db6935,0xdb49a93db6935,1
+np.float64,0xb10c958d62193,0xb10c958d62193,1
+np.float64,0xad38276f5a705,0xad38276f5a705,1
+np.float64,0x1d5d0b983aba2,0x1d5d0b983aba2,1
+np.float64,0x915f48e122be9,0x915f48e122be9,1
+np.float64,0x475958ae8eb2c,0x475958ae8eb2c,1
+np.float64,0x3af8406675f09,0x3af8406675f09,1
+np.float64,0x655e88a4cabd2,0x655e88a4cabd2,1
+np.float64,0x40fee8ce81fde,0x40fee8ce81fde,1
+np.float64,0xab83103f57062,0xab83103f57062,1
+np.float64,0x7cf934b8f9f27,0x7cf934b8f9f27,1
+np.float64,0x29f7524853eeb,0x29f7524853eeb,1
+np.float64,0x4a5e954894bd3,0x4a5e954894bd3,1
+np.float64,0x24638f3a48c73,0x24638f3a48c73,1
+np.float64,0xa4f32fc749e66,0xa4f32fc749e66,1
+np.float64,0xf8e92df7f1d26,0xf8e92df7f1d26,1
+np.float64,0x292e9d50525d4,0x292e9d50525d4,1
+np.float64,0xe937e897d26fd,0xe937e897d26fd,1
+np.float64,0xd3bde1d5a77bc,0xd3bde1d5a77bc,1
+np.float64,0xa447ffd548900,0xa447ffd548900,1
+np.float64,0xa3b7b691476f7,0xa3b7b691476f7,1
+np.float64,0x490095c892013,0x490095c892013,1
+np.float64,0xfc853235f90a7,0xfc853235f90a7,1
+np.float64,0x5a8bc082b5179,0x5a8bc082b5179,1
+np.float64,0x1baca45a37595,0x1baca45a37595,1
+np.float64,0x2164120842c83,0x2164120842c83,1
+np.float64,0x66692bdeccd26,0x66692bdeccd26,1
+np.float64,0xf205bdd3e40b8,0xf205bdd3e40b8,1
+np.float64,0x7c3fff98f8801,0x7c3fff98f8801,1
+np.float64,0xccdf10e199bf,0xccdf10e199bf,1
+np.float64,0x92db8e8125b8,0x92db8e8125b8,1
+np.float64,0x5789a8d6af136,0x5789a8d6af136,1
+np.float64,0xbdda869d7bb51,0xbdda869d7bb51,1
+np.float64,0xb665e0596ccbc,0xb665e0596ccbc,1
+np.float64,0x74e6b46ee9cd7,0x74e6b46ee9cd7,1
+np.float64,0x4f39cf7c9e73b,0x4f39cf7c9e73b,1
+np.float64,0xfdbf3907fb7e7,0xfdbf3907fb7e7,1
+np.float64,0xafdef4d55fbdf,0xafdef4d55fbdf,1
+np.float64,0xb49858236930b,0xb49858236930b,1
+np.float64,0x3ebe21d47d7c5,0x3ebe21d47d7c5,1
+np.float64,0x5b620512b6c41,0x5b620512b6c41,1
+np.float64,0x31918cda63232,0x31918cda63232,1
+np.float64,0x68b5741ed16af,0x68b5741ed16af,1
+np.float64,0xa5c09a5b4b814,0xa5c09a5b4b814,1
+np.float64,0x55f51c14abea4,0x55f51c14abea4,1
+np.float64,0xda8a3e41b515,0xda8a3e41b515,1
+np.float64,0x9ea9c8513d539,0x9ea9c8513d539,1
+np.float64,0x7f23b964fe478,0x7f23b964fe478,1
+np.float64,0xf6e08c7bedc12,0xf6e08c7bedc12,1
+np.float64,0x7267aa24e4cf6,0x7267aa24e4cf6,1
+np.float64,0x236bb93a46d78,0x236bb93a46d78,1
+np.float64,0x9a98430b35309,0x9a98430b35309,1
+np.float64,0xbb683fef76d08,0xbb683fef76d08,1
+np.float64,0x1ff0eb6e3fe1e,0x1ff0eb6e3fe1e,1
+np.float64,0xf524038fea481,0xf524038fea481,1
+np.float64,0xd714e449ae29d,0xd714e449ae29d,1
+np.float64,0x4154fd7682aa0,0x4154fd7682aa0,1
+np.float64,0x5b8d2f6cb71a7,0x5b8d2f6cb71a7,1
+np.float64,0xc91aa21d92355,0xc91aa21d92355,1
+np.float64,0xbd94fd117b2a0,0xbd94fd117b2a0,1
+np.float64,0x685b207ad0b65,0x685b207ad0b65,1
+np.float64,0xd2485b05a490c,0xd2485b05a490c,1
+np.float64,0x151ea5e62a3d6,0x151ea5e62a3d6,1
+np.float64,0x2635a7164c6b6,0x2635a7164c6b6,1
+np.float64,0x88ae3b5d115c8,0x88ae3b5d115c8,1
+np.float64,0x8a055a55140ac,0x8a055a55140ac,1
+np.float64,0x756f7694eadef,0x756f7694eadef,1
+np.float64,0x866d74630cdaf,0x866d74630cdaf,1
+np.float64,0x39e44f2873c8b,0x39e44f2873c8b,1
+np.float64,0x2a07ceb6540fb,0x2a07ceb6540fb,1
+np.float64,0xc52b96398a573,0xc52b96398a573,1
+np.float64,0x9546543b2a8cb,0x9546543b2a8cb,1
+np.float64,0x5b995b90b732c,0x5b995b90b732c,1
+np.float64,0x2de10a565bc22,0x2de10a565bc22,1
+np.float64,0x3b06ee94760df,0x3b06ee94760df,1
+np.float64,0xb18e77a5631cf,0xb18e77a5631cf,1
+np.float64,0x3b89ae3a77137,0x3b89ae3a77137,1
+np.float64,0xd9b0b6e5b3617,0xd9b0b6e5b3617,1
+np.float64,0x30b2310861647,0x30b2310861647,1
+np.float64,0x326a3ab464d48,0x326a3ab464d48,1
+np.float64,0x4c18610a9830d,0x4c18610a9830d,1
+np.float64,0x541dea42a83be,0x541dea42a83be,1
+np.float64,0xcd027dbf9a050,0xcd027dbf9a050,1
+np.float64,0x780a0f80f015,0x780a0f80f015,1
+np.float64,0x740ed5b2e81db,0x740ed5b2e81db,1
+np.float64,0xc226814d844d0,0xc226814d844d0,1
+np.float64,0xde958541bd2b1,0xde958541bd2b1,1
+np.float64,0xb563d3296ac7b,0xb563d3296ac7b,1
+np.float64,0x1db3b0b83b677,0x1db3b0b83b677,1
+np.float64,0xa7b0275d4f605,0xa7b0275d4f605,1
+np.float64,0x72f8d038e5f1b,0x72f8d038e5f1b,1
+np.float64,0x860ed1350c1da,0x860ed1350c1da,1
+np.float64,0x79f88262f3f11,0x79f88262f3f11,1
+np.float64,0x8817761f102ef,0x8817761f102ef,1
+np.float64,0xac44784b5888f,0xac44784b5888f,1
+np.float64,0x800fd594241fab28,0x800fd594241fab28,1
+np.float64,0x800ede32f8ddbc66,0x800ede32f8ddbc66,1
+np.float64,0x800de4c1121bc982,0x800de4c1121bc982,1
+np.float64,0x80076ebcddcedd7a,0x80076ebcddcedd7a,1
+np.float64,0x800b3fee06567fdc,0x800b3fee06567fdc,1
+np.float64,0x800b444426b68889,0x800b444426b68889,1
+np.float64,0x800b1c037a563807,0x800b1c037a563807,1
+np.float64,0x8001eb88c2a3d712,0x8001eb88c2a3d712,1
+np.float64,0x80058aae6dab155e,0x80058aae6dab155e,1
+np.float64,0x80083df2d4f07be6,0x80083df2d4f07be6,1
+np.float64,0x800e3b19d97c7634,0x800e3b19d97c7634,1
+np.float64,0x800a71c6f374e38e,0x800a71c6f374e38e,1
+np.float64,0x80048557f1490ab1,0x80048557f1490ab1,1
+np.float64,0x8000a00e6b01401e,0x8000a00e6b01401e,1
+np.float64,0x800766a3e2cecd49,0x800766a3e2cecd49,1
+np.float64,0x80015eb44602bd69,0x80015eb44602bd69,1
+np.float64,0x800bde885a77bd11,0x800bde885a77bd11,1
+np.float64,0x800224c53ea4498b,0x800224c53ea4498b,1
+np.float64,0x80048e8c6a291d1a,0x80048e8c6a291d1a,1
+np.float64,0x800b667e4af6ccfd,0x800b667e4af6ccfd,1
+np.float64,0x800ae3d7e395c7b0,0x800ae3d7e395c7b0,1
+np.float64,0x80086c245550d849,0x80086c245550d849,1
+np.float64,0x800d7d25f6fafa4c,0x800d7d25f6fafa4c,1
+np.float64,0x800f8d9ab0ff1b35,0x800f8d9ab0ff1b35,1
+np.float64,0x800690e949cd21d3,0x800690e949cd21d3,1
+np.float64,0x8003022381060448,0x8003022381060448,1
+np.float64,0x80085e0dad70bc1c,0x80085e0dad70bc1c,1
+np.float64,0x800e2ffc369c5ff9,0x800e2ffc369c5ff9,1
+np.float64,0x800b629b5af6c537,0x800b629b5af6c537,1
+np.float64,0x800fdc964b7fb92d,0x800fdc964b7fb92d,1
+np.float64,0x80036bb4b1c6d76a,0x80036bb4b1c6d76a,1
+np.float64,0x800b382f7f16705f,0x800b382f7f16705f,1
+np.float64,0x800ebac9445d7593,0x800ebac9445d7593,1
+np.float64,0x80015075c3e2a0ec,0x80015075c3e2a0ec,1
+np.float64,0x8002a6ec5ce54dd9,0x8002a6ec5ce54dd9,1
+np.float64,0x8009fab74a93f56f,0x8009fab74a93f56f,1
+np.float64,0x800c94b9ea992974,0x800c94b9ea992974,1
+np.float64,0x800dc2efd75b85e0,0x800dc2efd75b85e0,1
+np.float64,0x800be6400d57cc80,0x800be6400d57cc80,1
+np.float64,0x80021f6858443ed1,0x80021f6858443ed1,1
+np.float64,0x800600e2ac4c01c6,0x800600e2ac4c01c6,1
+np.float64,0x800a2159e6b442b4,0x800a2159e6b442b4,1
+np.float64,0x800c912f4bb9225f,0x800c912f4bb9225f,1
+np.float64,0x800a863a9db50c76,0x800a863a9db50c76,1
+np.float64,0x800ac16851d582d1,0x800ac16851d582d1,1
+np.float64,0x8003f7d32e87efa7,0x8003f7d32e87efa7,1
+np.float64,0x800be4eee3d7c9de,0x800be4eee3d7c9de,1
+np.float64,0x80069ff0ac4d3fe2,0x80069ff0ac4d3fe2,1
+np.float64,0x80061c986d4c3932,0x80061c986d4c3932,1
+np.float64,0x8000737b4de0e6f7,0x8000737b4de0e6f7,1
+np.float64,0x8002066ef7440cdf,0x8002066ef7440cdf,1
+np.float64,0x8001007050c200e1,0x8001007050c200e1,1
+np.float64,0x8008df9fa351bf40,0x8008df9fa351bf40,1
+np.float64,0x800f8394ee5f072a,0x800f8394ee5f072a,1
+np.float64,0x80008e0b01c11c17,0x80008e0b01c11c17,1
+np.float64,0x800f7088ed3ee112,0x800f7088ed3ee112,1
+np.float64,0x800285b86f650b72,0x800285b86f650b72,1
+np.float64,0x8008ec18af51d832,0x8008ec18af51d832,1
+np.float64,0x800da08523bb410a,0x800da08523bb410a,1
+np.float64,0x800de853ca7bd0a8,0x800de853ca7bd0a8,1
+np.float64,0x8008c8aefad1915e,0x8008c8aefad1915e,1
+np.float64,0x80010c39d5821874,0x80010c39d5821874,1
+np.float64,0x8009208349724107,0x8009208349724107,1
+np.float64,0x800783783f0f06f1,0x800783783f0f06f1,1
+np.float64,0x80025caf9984b960,0x80025caf9984b960,1
+np.float64,0x800bc76fa6778ee0,0x800bc76fa6778ee0,1
+np.float64,0x80017e2f89a2fc60,0x80017e2f89a2fc60,1
+np.float64,0x800ef169843de2d3,0x800ef169843de2d3,1
+np.float64,0x80098a5f7db314bf,0x80098a5f7db314bf,1
+np.float64,0x800d646f971ac8df,0x800d646f971ac8df,1
+np.float64,0x800110d1dc6221a4,0x800110d1dc6221a4,1
+np.float64,0x800f8b422a1f1684,0x800f8b422a1f1684,1
+np.float64,0x800785c97dcf0b94,0x800785c97dcf0b94,1
+np.float64,0x800da201283b4403,0x800da201283b4403,1
+np.float64,0x800a117cc7b422fa,0x800a117cc7b422fa,1
+np.float64,0x80024731cfa48e64,0x80024731cfa48e64,1
+np.float64,0x800199d456c333a9,0x800199d456c333a9,1
+np.float64,0x8005f66bab8becd8,0x8005f66bab8becd8,1
+np.float64,0x8008e7227c11ce45,0x8008e7227c11ce45,1
+np.float64,0x8007b66cc42f6cda,0x8007b66cc42f6cda,1
+np.float64,0x800669e6f98cd3cf,0x800669e6f98cd3cf,1
+np.float64,0x800aed917375db23,0x800aed917375db23,1
+np.float64,0x8008b6dd15116dbb,0x8008b6dd15116dbb,1
+np.float64,0x800f49869cfe930d,0x800f49869cfe930d,1
+np.float64,0x800a712661b4e24d,0x800a712661b4e24d,1
+np.float64,0x800944e816f289d1,0x800944e816f289d1,1
+np.float64,0x800eba0f8a1d741f,0x800eba0f8a1d741f,1
+np.float64,0x800cf6ded139edbe,0x800cf6ded139edbe,1
+np.float64,0x80023100c6246202,0x80023100c6246202,1
+np.float64,0x800c5a94add8b52a,0x800c5a94add8b52a,1
+np.float64,0x800adf329b95be66,0x800adf329b95be66,1
+np.float64,0x800af9afc115f360,0x800af9afc115f360,1
+np.float64,0x800d66ce837acd9d,0x800d66ce837acd9d,1
+np.float64,0x8003ffb5e507ff6d,0x8003ffb5e507ff6d,1
+np.float64,0x80027d280024fa51,0x80027d280024fa51,1
+np.float64,0x800fc37e1d1f86fc,0x800fc37e1d1f86fc,1
+np.float64,0x800fc7258b9f8e4b,0x800fc7258b9f8e4b,1
+np.float64,0x8003fb5789e7f6b0,0x8003fb5789e7f6b0,1
+np.float64,0x800eb4e7a13d69cf,0x800eb4e7a13d69cf,1
+np.float64,0x800951850952a30a,0x800951850952a30a,1
+np.float64,0x3fed4071be3a80e3,0x3fe95842074431df,1
+np.float64,0x3f8d2341203a4682,0x3f8d2300b453bd9f,1
+np.float64,0x3fdc8ce332b919c6,0x3fdb9cdf1440c28f,1
+np.float64,0x3fdc69bd84b8d37b,0x3fdb7d25c8166b7b,1
+np.float64,0x3fc4c22ad0298456,0x3fc4aae73e231b4f,1
+np.float64,0x3fea237809f446f0,0x3fe753cc6ca96193,1
+np.float64,0x3fd34cf6462699ed,0x3fd30268909bb47e,1
+np.float64,0x3fafce20643f9c41,0x3fafc8e41a240e35,1
+np.float64,0x3fdc6d416538da83,0x3fdb805262292863,1
+np.float64,0x3fe7d8362aefb06c,0x3fe5b2ce659db7fd,1
+np.float64,0x3fe290087de52011,0x3fe189f9a3eb123d,1
+np.float64,0x3fa62d2bf82c5a58,0x3fa62b65958ca2b8,1
+np.float64,0x3fafd134403fa269,0x3fafcbf670f8a6f3,1
+np.float64,0x3fa224e53c2449ca,0x3fa223ec5de1631b,1
+np.float64,0x3fb67e2c2c2cfc58,0x3fb676c445fb70a0,1
+np.float64,0x3fda358d01346b1a,0x3fd97b9441666eb2,1
+np.float64,0x3fdd30fc4bba61f9,0x3fdc308da423778d,1
+np.float64,0x3fc56e99c52add34,0x3fc5550004492621,1
+np.float64,0x3fe32d08de265a12,0x3fe20c761a73cec2,1
+np.float64,0x3fd46cf932a8d9f2,0x3fd414a7f3db03df,1
+np.float64,0x3fd94cfa2b3299f4,0x3fd8a5961b3e4bdd,1
+np.float64,0x3fed6ea3a6fadd47,0x3fe9745b2f6c9204,1
+np.float64,0x3fe4431d1768863a,0x3fe2ef61d0481de0,1
+np.float64,0x3fe1d8e00ea3b1c0,0x3fe0efab5050ee78,1
+np.float64,0x3fe56f37dcaade70,0x3fe3de00b0f392e0,1
+np.float64,0x3fde919a2dbd2334,0x3fdd6b6d2dcf2396,1
+np.float64,0x3fe251e3d4a4a3c8,0x3fe155de69605d60,1
+np.float64,0x3fe5e0ecc5abc1da,0x3fe436a5de5516cf,1
+np.float64,0x3fcd48780c3a90f0,0x3fcd073fa907ba9b,1
+np.float64,0x3fe4e8149229d029,0x3fe37360801d5b66,1
+np.float64,0x3fb9ef159633de2b,0x3fb9e3bc05a15d1d,1
+np.float64,0x3fc24a3f0424947e,0x3fc23a5432ca0e7c,1
+np.float64,0x3fe55ca196aab943,0x3fe3cf6b3143435a,1
+np.float64,0x3fe184544c2308a9,0x3fe0a7b49fa80aec,1
+np.float64,0x3fe2c76e83658edd,0x3fe1b8355c1ea771,1
+np.float64,0x3fea8d2c4ab51a59,0x3fe79ba85aabc099,1
+np.float64,0x3fd74f98abae9f31,0x3fd6cc85005d0593,1
+np.float64,0x3fec6de9a678dbd3,0x3fe8d59a1d23cdd1,1
+np.float64,0x3fec8a0e50f9141d,0x3fe8e7500f6f6a00,1
+np.float64,0x3fe9de6d08b3bcda,0x3fe7245319508767,1
+np.float64,0x3fe4461fd1688c40,0x3fe2f1cf0b93aba6,1
+np.float64,0x3fde342d9d3c685b,0x3fdd185609d5719d,1
+np.float64,0x3feb413fc8368280,0x3fe813c091d2519a,1
+np.float64,0x3fe64333156c8666,0x3fe48275b9a6a358,1
+np.float64,0x3fe03c65226078ca,0x3fdf18b26786be35,1
+np.float64,0x3fee11054dbc220b,0x3fe9d579a1cfa7ad,1
+np.float64,0x3fbaefccae35df99,0x3fbae314fef7c7ea,1
+np.float64,0x3feed4e3487da9c7,0x3fea4729241c8811,1
+np.float64,0x3fbb655df836cabc,0x3fbb57fcf9a097be,1
+np.float64,0x3fe68b0273ed1605,0x3fe4b96109afdf76,1
+np.float64,0x3fd216bfc3242d80,0x3fd1d957363f6a43,1
+np.float64,0x3fe01328d4a02652,0x3fded083bbf94aba,1
+np.float64,0x3fe3f9a61ae7f34c,0x3fe2b3f701b79028,1
+np.float64,0x3fed4e7cf8fa9cfa,0x3fe960d27084fb40,1
+np.float64,0x3faec08e343d811c,0x3faebbd2aa07ac1f,1
+np.float64,0x3fd2d1bbeea5a378,0x3fd28c9aefcf48ad,1
+np.float64,0x3fd92e941fb25d28,0x3fd889857f88410d,1
+np.float64,0x3fe43decb7e87bd9,0x3fe2eb32b4ee4667,1
+np.float64,0x3fef49cabcfe9395,0x3fea892f9a233f76,1
+np.float64,0x3fe3e96812e7d2d0,0x3fe2a6c6b45dd6ee,1
+np.float64,0x3fd24c0293a49805,0x3fd20c76d54473cb,1
+np.float64,0x3fb43d6b7e287ad7,0x3fb438060772795a,1
+np.float64,0x3fe87bf7d3f0f7f0,0x3fe62a0c47411c62,1
+np.float64,0x3fee82a2e07d0546,0x3fea17e27e752b7b,1
+np.float64,0x3fe40c01bbe81803,0x3fe2c2d9483f44d8,1
+np.float64,0x3fd686ccae2d0d99,0x3fd610763fb61097,1
+np.float64,0x3fe90fcf2af21f9e,0x3fe693c12df59ba9,1
+np.float64,0x3fefb3ce11ff679c,0x3feac3dd4787529d,1
+np.float64,0x3fcec53ff63d8a80,0x3fce79992af00c58,1
+np.float64,0x3fe599dd7bab33bb,0x3fe3ff5da7575d85,1
+np.float64,0x3fe9923b1a732476,0x3fe6ef71d13db456,1
+np.float64,0x3febf76fcef7eee0,0x3fe88a3952e11373,1
+np.float64,0x3fc2cfd128259fa2,0x3fc2be7fd47fd811,1
+np.float64,0x3fe4d37ae269a6f6,0x3fe36300d45e3745,1
+np.float64,0x3fe23aa2e4247546,0x3fe1424e172f756f,1
+np.float64,0x3fe4f0596ca9e0b3,0x3fe379f0c49de7ef,1
+np.float64,0x3fe2e4802fe5c900,0x3fe1d062a8812601,1
+np.float64,0x3fe5989c79eb3139,0x3fe3fe6308552dec,1
+np.float64,0x3fe3c53cb4e78a79,0x3fe28956e573aca4,1
+np.float64,0x3fe6512beeeca258,0x3fe48d2d5ece979f,1
+np.float64,0x3fd8473ddb308e7c,0x3fd7b33e38adc6ad,1
+np.float64,0x3fecd09c9679a139,0x3fe91361fa0c5bcb,1
+np.float64,0x3fc991530e3322a6,0x3fc965e2c514a9e9,1
+np.float64,0x3f6d4508403a8a11,0x3f6d45042b68acc5,1
+np.float64,0x3fea1f198f743e33,0x3fe750ce918d9330,1
+np.float64,0x3fd0a0bb4da14177,0x3fd07100f9c71e1c,1
+np.float64,0x3fd30c45ffa6188c,0x3fd2c499f9961f66,1
+np.float64,0x3fcad98e7c35b31d,0x3fcaa74293cbc52e,1
+np.float64,0x3fec8e4a5eb91c95,0x3fe8e9f898d118db,1
+np.float64,0x3fd19fdb79233fb7,0x3fd1670c00febd24,1
+np.float64,0x3fea9fcbb1f53f97,0x3fe7a836b29c4075,1
+np.float64,0x3fc6d12ea12da25d,0x3fc6b24bd2f89f59,1
+np.float64,0x3fd6af3658ad5e6d,0x3fd636613e08df3f,1
+np.float64,0x3fe31bc385a63787,0x3fe1fe3081621213,1
+np.float64,0x3fc0dbba2221b774,0x3fc0cf42c9313dba,1
+np.float64,0x3fef639ce87ec73a,0x3fea9795454f1036,1
+np.float64,0x3fee5f29dcbcbe54,0x3fea0349b288f355,1
+np.float64,0x3fed46bdb37a8d7b,0x3fe95c199f5aa569,1
+np.float64,0x3fef176afa3e2ed6,0x3fea6ce78b2aa3aa,1
+np.float64,0x3fc841e7683083cf,0x3fc81cccb84848cc,1
+np.float64,0xbfda3ec9a2347d94,0xbfd9840d180e9de3,1
+np.float64,0xbfcd5967ae3ab2d0,0xbfcd17be13142bb9,1
+np.float64,0xbfedf816573bf02d,0xbfe9c6bb06476c60,1
+np.float64,0xbfd0d6e10e21adc2,0xbfd0a54f99d2f3dc,1
+np.float64,0xbfe282df096505be,0xbfe17ef5e2e80760,1
+np.float64,0xbfd77ae6e62ef5ce,0xbfd6f4f6b603ad8a,1
+np.float64,0xbfe37b171aa6f62e,0xbfe24cb4b2d0ade4,1
+np.float64,0xbfef9e5ed9bf3cbe,0xbfeab817b41000bd,1
+np.float64,0xbfe624d6f96c49ae,0xbfe46b1e9c9aff86,1
+np.float64,0xbfefb5da65ff6bb5,0xbfeac4fc9c982772,1
+np.float64,0xbfd29a65d52534cc,0xbfd2579df8ff87b9,1
+np.float64,0xbfd40270172804e0,0xbfd3af6471104aef,1
+np.float64,0xbfb729ee7a2e53e0,0xbfb721d7dbd2705e,1
+np.float64,0xbfb746f1382e8de0,0xbfb73ebc1207f8e3,1
+np.float64,0xbfd3c7e606a78fcc,0xbfd377a8aa1b0dd9,1
+np.float64,0xbfd18c4880231892,0xbfd1543506584ad5,1
+np.float64,0xbfea988080753101,0xbfe7a34cba0d0fa1,1
+np.float64,0xbf877400e02ee800,0xbf8773df47fa7e35,1
+np.float64,0xbfb07e050820fc08,0xbfb07b198d4a52c9,1
+np.float64,0xbfee0a3621fc146c,0xbfe9d1745a05ba77,1
+np.float64,0xbfe78de246ef1bc4,0xbfe57bf2baab91c8,1
+np.float64,0xbfcdbfd3bd3b7fa8,0xbfcd7b728a955a06,1
+np.float64,0xbfe855ea79b0abd5,0xbfe60e8a4a17b921,1
+np.float64,0xbfd86c8e3530d91c,0xbfd7d5e36c918dc1,1
+np.float64,0xbfe4543169e8a863,0xbfe2fd23d42f552e,1
+np.float64,0xbfe41efbf1283df8,0xbfe2d235a2faed1a,1
+np.float64,0xbfd9a55464b34aa8,0xbfd8f7083f7281e5,1
+np.float64,0xbfe5f5078d6bea0f,0xbfe44637d910c270,1
+np.float64,0xbfe6d83e3dedb07c,0xbfe4f3fdadd10552,1
+np.float64,0xbfdb767e70b6ecfc,0xbfdaa0b6c17f3fb1,1
+np.float64,0xbfdfc91b663f9236,0xbfde7eb0dfbeaa26,1
+np.float64,0xbfbfbd18783f7a30,0xbfbfa84bf2fa1c8d,1
+np.float64,0xbfe51199242a2332,0xbfe39447dbe066ae,1
+np.float64,0xbfdbb94814b77290,0xbfdadd63bd796972,1
+np.float64,0xbfd8c6272cb18c4e,0xbfd828f2d9e8607e,1
+np.float64,0xbfce51e0b63ca3c0,0xbfce097ee908083a,1
+np.float64,0xbfe99a177d73342f,0xbfe6f4ec776a57ae,1
+np.float64,0xbfefde2ab0ffbc55,0xbfeadafdcbf54733,1
+np.float64,0xbfcccb5c1c3996b8,0xbfcc8d586a73d126,1
+np.float64,0xbfdf7ddcedbefbba,0xbfde3c749a906de7,1
+np.float64,0xbfef940516ff280a,0xbfeab26429e89f4b,1
+np.float64,0xbfe08009f1e10014,0xbfdf8eab352997eb,1
+np.float64,0xbfe9c02682b3804d,0xbfe70f5fd05f79ee,1
+np.float64,0xbfb3ca1732279430,0xbfb3c50bec5b453a,1
+np.float64,0xbfe368e81926d1d0,0xbfe23dc704d0887c,1
+np.float64,0xbfbd20cc2e3a4198,0xbfbd10b7e6d81c6c,1
+np.float64,0xbfd67ece4d2cfd9c,0xbfd608f527dcc5e7,1
+np.float64,0xbfdc02d1333805a2,0xbfdb20104454b79f,1
+np.float64,0xbfc007a626200f4c,0xbfbff9dc9dc70193,1
+np.float64,0xbfda9e4f8fb53ca0,0xbfd9db8af35dc630,1
+np.float64,0xbfd8173d77302e7a,0xbfd786a0cf3e2914,1
+np.float64,0xbfeb8fcbd0b71f98,0xbfe84734debc10fb,1
+np.float64,0xbfe4bf1cb7697e3a,0xbfe352c891113f29,1
+np.float64,0xbfc18624d5230c48,0xbfc178248e863b64,1
+np.float64,0xbfcf184bac3e3098,0xbfceca3b19be1ebe,1
+np.float64,0xbfd2269c42a44d38,0xbfd1e8920d72b694,1
+np.float64,0xbfe8808526b1010a,0xbfe62d5497292495,1
+np.float64,0xbfe498bd1da9317a,0xbfe334245eadea93,1
+np.float64,0xbfef0855aebe10ab,0xbfea6462f29aeaf9,1
+np.float64,0xbfdeb186c93d630e,0xbfdd87c37943c602,1
+np.float64,0xbfb29fe2ae253fc8,0xbfb29bae3c87efe4,1
+np.float64,0xbfddd9c6c3bbb38e,0xbfdcc7b400bf384b,1
+np.float64,0xbfe3506673e6a0cd,0xbfe2299f26295553,1
+np.float64,0xbfe765957a2ecb2b,0xbfe55e03cf22edab,1
+np.float64,0xbfecc9876c79930f,0xbfe90efaf15b6207,1
+np.float64,0xbfefb37a0a7f66f4,0xbfeac3af3898e7c2,1
+np.float64,0xbfeefa0da7bdf41b,0xbfea5c4cde53c1c3,1
+np.float64,0xbfe6639ee9ecc73e,0xbfe49b4e28a72482,1
+np.float64,0xbfef91a4bb7f2349,0xbfeab114ac9e25dd,1
+np.float64,0xbfc8b392bb316724,0xbfc88c657f4441a3,1
+np.float64,0xbfc88a358231146c,0xbfc863cb900970fe,1
+np.float64,0xbfef25a9d23e4b54,0xbfea74eda432aabe,1
+np.float64,0xbfe6aceea0ed59de,0xbfe4d32e54a3fd01,1
+np.float64,0xbfefe2b3e37fc568,0xbfeadd74f4605835,1
+np.float64,0xbfa9eecb8833dd90,0xbfa9ebf4f4cb2591,1
+np.float64,0xbfd42bad7428575a,0xbfd3d69de8e52d0a,1
+np.float64,0xbfbc366b4a386cd8,0xbfbc27ceee8f3019,1
+np.float64,0xbfd9bca7be337950,0xbfd90c80e6204e57,1
+np.float64,0xbfe8173f53f02e7f,0xbfe5e0f8d8ed329c,1
+np.float64,0xbfce22dbcb3c45b8,0xbfcddbc8159b63af,1
+np.float64,0xbfea2d7ba7345af7,0xbfe75aa62ad5b80a,1
+np.float64,0xbfc08b783e2116f0,0xbfc07faf8d501558,1
+np.float64,0xbfb8c4161c318830,0xbfb8ba33950748ec,1
+np.float64,0xbfddd930bcbbb262,0xbfdcc72dffdf51bb,1
+np.float64,0xbfd108ce8a22119e,0xbfd0d5801e7698bd,1
+np.float64,0xbfd5bd2b5dab7a56,0xbfd552c52c468c76,1
+np.float64,0xbfe7ffe67fefffcd,0xbfe5cfe96e35e6e5,1
+np.float64,0xbfa04ec6bc209d90,0xbfa04e120a2c25cc,1
+np.float64,0xbfef7752cc7eeea6,0xbfeaa28715addc4f,1
+np.float64,0xbfe7083c2eae1078,0xbfe5182bf8ddfc8e,1
+np.float64,0xbfe05dafd0a0bb60,0xbfdf52d397cfe5f6,1
+np.float64,0xbfacb4f2243969e0,0xbfacb118991ea235,1
+np.float64,0xbfc7d47e422fa8fc,0xbfc7b1504714a4fd,1
+np.float64,0xbfbd70b2243ae168,0xbfbd60182efb61de,1
+np.float64,0xbfe930e49cb261c9,0xbfe6ab272b3f9cfc,1
+np.float64,0xbfb5f537e62bea70,0xbfb5ee540dcdc635,1
+np.float64,0xbfbb0c8278361908,0xbfbaffa1f7642a87,1
+np.float64,0xbfe82af2447055e4,0xbfe5ef54ca8db9e8,1
+np.float64,0xbfe92245e6f2448c,0xbfe6a0d32168040b,1
+np.float64,0xbfb799a8522f3350,0xbfb7911a7ada3640,1
+np.float64,0x7faa8290c8350521,0x3fe5916f67209cd6,1
+np.float64,0x7f976597082ecb2d,0x3fcf94dce396bd37,1
+np.float64,0x7fede721237bce41,0x3fe3e7b1575b005f,1
+np.float64,0x7fd5f674d72bece9,0x3fe3210628eba199,1
+np.float64,0x7f9b0f1aa0361e34,0x3feffd34d15d1da7,1
+np.float64,0x7fec48346ab89068,0x3fe93dd84253d9a2,1
+np.float64,0x7f9cac76283958eb,0xbfec4cd999653868,1
+np.float64,0x7fed51ab6bbaa356,0x3fecc27fb5f37bca,1
+np.float64,0x7fded3c116bda781,0xbfda473efee47cf1,1
+np.float64,0x7fd19c48baa33890,0xbfe25700cbfc0326,1
+np.float64,0x7fe5c8f478ab91e8,0xbfee4ab6d84806be,1
+np.float64,0x7fe53c64e46a78c9,0x3fee19c3f227f4e1,1
+np.float64,0x7fc2ad1936255a31,0xbfe56db9b877f807,1
+np.float64,0x7fe2b071b52560e2,0xbfce3990a8d390a9,1
+np.float64,0x7fc93f3217327e63,0xbfd1f6d7ef838d2b,1
+np.float64,0x7fec26df08784dbd,0x3fd5397be41c93d9,1
+np.float64,0x7fcf4770183e8edf,0x3fe6354f5a785016,1
+np.float64,0x7fdc9fcc0bb93f97,0xbfeeeae952e8267d,1
+np.float64,0x7feb21f29c7643e4,0x3fec20122e33f1bf,1
+np.float64,0x7fd0b51273216a24,0x3fefb09f8daba00b,1
+np.float64,0x7fe747a9d76e8f53,0x3feb46a3232842a4,1
+np.float64,0x7fd58885972b110a,0xbfce5ea57c186221,1
+np.float64,0x7fca3ce85c3479d0,0x3fef93a24548e8ca,1
+np.float64,0x7fe1528a46a2a514,0xbfb54bb578d9da91,1
+np.float64,0x7fcc58b21b38b163,0x3feffb5b741ffc2d,1
+np.float64,0x7fdabcaaf5357955,0x3fecbf855db524d1,1
+np.float64,0x7fdd27c6933a4f8c,0xbfef2f41bb80144b,1
+np.float64,0x7fbda4e1be3b49c2,0x3fdb9b33f84f5381,1
+np.float64,0x7fe53363362a66c5,0x3fe4daff3a6a4ed0,1
+np.float64,0x7fe5719d62eae33a,0xbfef761d98f625d5,1
+np.float64,0x7f982ce5a83059ca,0x3fd0b27c3365f0a8,1
+np.float64,0x7fe6db8c42edb718,0x3fe786f4b1fe11a6,1
+np.float64,0x7fe62cca1b2c5993,0x3fd425b6c4c9714a,1
+np.float64,0x7feea88850bd5110,0xbfd7bbb432017175,1
+np.float64,0x7fad6c6ae43ad8d5,0x3fe82e49098bc6de,1
+np.float64,0x7fe70542f02e0a85,0x3fec3017960b4822,1
+np.float64,0x7feaf0bcbb35e178,0xbfc3aac74dd322d5,1
+np.float64,0x7fb5e152fe2bc2a5,0x3fd4b27a4720614c,1
+np.float64,0x7fe456ee5be8addc,0xbfe9e15ab5cff229,1
+np.float64,0x7fd4b53a8d296a74,0xbfefff450f503326,1
+np.float64,0x7fd7149d7a2e293a,0x3fef4ef0a9009096,1
+np.float64,0x7fd43fc5a8a87f8a,0x3fe0c929fee9dce7,1
+np.float64,0x7fef97022aff2e03,0x3fd4ea52a813da20,1
+np.float64,0x7fe035950ae06b29,0x3fef4e125394fb05,1
+np.float64,0x7fecd0548979a0a8,0x3fe89d226244037b,1
+np.float64,0x7fc79b3ac22f3675,0xbfee9c9cf78c8270,1
+np.float64,0x7fd8b8e8263171cf,0x3fe8e24437961db0,1
+np.float64,0x7fc288c23e251183,0xbfbaf8eca50986ca,1
+np.float64,0x7fe436b4b6686d68,0xbfecd661741931c4,1
+np.float64,0x7fcdf99abe3bf334,0x3feaa75c90830b92,1
+np.float64,0x7fd9f9739233f2e6,0xbfebbfcb301b0da5,1
+np.float64,0x7fd6fcbd1b2df979,0xbfccf2c77cb65f56,1
+np.float64,0x7fe242a97b248552,0xbfe5b0f13bcbabc8,1
+np.float64,0x7fe38bf3e06717e7,0x3fbc8fa9004d2668,1
+np.float64,0x7fecd0e8d479a1d1,0xbfe886a6b4f73a4a,1
+np.float64,0x7fe958d60232b1ab,0xbfeb7c4cf0cee2dd,1
+np.float64,0x7f9d492b583a9256,0xbfebe975d00221cb,1
+np.float64,0x7fd6c9983bad932f,0xbfefe817621a31f6,1
+np.float64,0x7fed0d7239fa1ae3,0x3feac7e1b6455b4b,1
+np.float64,0x7fe61dac90ec3b58,0x3fef845b9efe8421,1
+np.float64,0x7f9acd3010359a5f,0xbfe460d376200130,1
+np.float64,0x7fedced9673b9db2,0xbfeeaf23445e1944,1
+np.float64,0x7fd9f271a733e4e2,0xbfd41544535ecb78,1
+np.float64,0x7fe703339bee0666,0x3fef93334626b56c,1
+np.float64,0x7fec7761b7b8eec2,0xbfe6da9179e8e714,1
+np.float64,0x7fdd9fff043b3ffd,0xbfc0761dfb8d94f9,1
+np.float64,0x7fdc10ed17b821d9,0x3fe1481e2a26c77f,1
+np.float64,0x7fe7681e72aed03c,0x3fefff94a6d47c84,1
+np.float64,0x7fe18c29e1e31853,0x3fe86ebd2fd89456,1
+np.float64,0x7fb2fb273c25f64d,0xbfefc136f57e06de,1
+np.float64,0x7fac2bbb90385776,0x3fe25d8e3cdae7e3,1
+np.float64,0x7fed16789efa2cf0,0x3fe94555091fdfd9,1
+np.float64,0x7fd8fe8f7831fd1e,0xbfed58d520361902,1
+np.float64,0x7fa59bde3c2b37bb,0x3fef585391c077ff,1
+np.float64,0x7fda981b53353036,0x3fde02ca08737b5f,1
+np.float64,0x7fd29f388aa53e70,0xbfe04f5499246df2,1
+np.float64,0x7fcd0232513a0464,0xbfd9737f2f565829,1
+np.float64,0x7fe9a881bcf35102,0xbfe079cf285b35dd,1
+np.float64,0x7fdbe399a9b7c732,0x3fe965bc4220f340,1
+np.float64,0x7feb77414af6ee82,0xbfb7df2fcd491f55,1
+np.float64,0x7fa26e86c424dd0d,0xbfea474c3d65b9be,1
+np.float64,0x7feaee869e35dd0c,0xbfd7b333a888cd14,1
+np.float64,0x7fcbd67f6137acfe,0xbfe15a7a15dfcee6,1
+np.float64,0x7fe36991e766d323,0xbfeb288077c4ed9f,1
+np.float64,0x7fdcf4f4fcb9e9e9,0xbfea331ef7a75e7b,1
+np.float64,0x7fbe3445643c688a,0x3fedf21b94ae8e37,1
+np.float64,0x7fd984cfd2b3099f,0x3fc0d3ade71c395e,1
+np.float64,0x7fdec987b23d930e,0x3fe4af5e48f6c26e,1
+np.float64,0x7fde56a9953cad52,0x3fc8e7762cefb8b0,1
+np.float64,0x7fd39fb446273f68,0xbfe6c3443208f44d,1
+np.float64,0x7fc609c1a72c1382,0x3fe884e639571baa,1
+np.float64,0x7fe001be4b20037c,0xbfed0d90cbcb6010,1
+np.float64,0x7fce7ace283cf59b,0xbfd0303792e51f49,1
+np.float64,0x7fe27ba93da4f751,0x3fe548b5ce740d71,1
+np.float64,0x7fcc13c79b38278e,0xbfe2e14f5b64a1e9,1
+np.float64,0x7fc058550620b0a9,0x3fe44bb55ebd0590,1
+np.float64,0x7fa4ba8bf8297517,0x3fee59b39f9d08c4,1
+np.float64,0x7fe50d6872ea1ad0,0xbfea1eaa2d059e13,1
+np.float64,0x7feb7e33b476fc66,0xbfeff28a4424dd3e,1
+np.float64,0x7fe2d7d2a165afa4,0xbfdbaff0ba1ea460,1
+np.float64,0xffd126654b224cca,0xbfef0cd3031fb97c,1
+np.float64,0xffb5f884942bf108,0x3fe0de589bea2e4c,1
+np.float64,0xffe011b4bfe02369,0xbfe805a0edf1e1f2,1
+np.float64,0xffec13eae9b827d5,0x3fb5f30347d78447,1
+np.float64,0xffa6552ae82caa50,0x3fb1ecee60135f2f,1
+np.float64,0xffb62d38b02c5a70,0x3fbd35903148fd12,1
+np.float64,0xffe2c44ea425889d,0xbfd7616547f99a7d,1
+np.float64,0xffea24c61a74498c,0x3fef4a1b15ae9005,1
+np.float64,0xffd23a4ab2a47496,0x3fe933bfaa569ae9,1
+np.float64,0xffc34a073d269410,0xbfeec0f510bb7474,1
+np.float64,0xffeead84cfbd5b09,0x3feb2d635e5a78bd,1
+np.float64,0xffcfd8f3b43fb1e8,0xbfdd59625801771b,1
+np.float64,0xffd3c7f662a78fec,0x3f9cf3209edfbc4e,1
+np.float64,0xffe7b7e4f72f6fca,0xbfefdcff4925632c,1
+np.float64,0xffe48cab05e91956,0x3fe6b41217948423,1
+np.float64,0xffeb6980b336d301,0xbfca5de148f69324,1
+np.float64,0xffe3f15c4aa7e2b8,0xbfeb18efae892081,1
+np.float64,0xffcf290c713e5218,0x3fefe6f1a513ed26,1
+np.float64,0xffd80979b43012f4,0xbfde6c8df91af976,1
+np.float64,0xffc3181e0026303c,0x3fe7448f681def38,1
+np.float64,0xffedfa68f97bf4d1,0xbfeca6efb802d109,1
+np.float64,0xffca0931c0341264,0x3fe31b9f073b08cd,1
+np.float64,0xffe4c44934e98892,0x3feda393a2e8a0f7,1
+np.float64,0xffe65bb56f2cb76a,0xbfeffaf638a4b73e,1
+np.float64,0xffe406a332a80d46,0x3fe8151dadb853c1,1
+np.float64,0xffdb7eae9c36fd5e,0xbfeff89abf5ab16e,1
+np.float64,0xffe245a02da48b40,0x3fef1fb43e85f4b8,1
+np.float64,0xffe2bafa732575f4,0x3fcbab115c6fd86e,1
+np.float64,0xffe8b1eedb7163dd,0x3feff263df6f6b12,1
+np.float64,0xffe6c76c796d8ed8,0xbfe61a8668511293,1
+np.float64,0xffefe327d1ffc64f,0xbfd9b92887a84827,1
+np.float64,0xffa452180c28a430,0xbfa9b9e578a4e52f,1
+np.float64,0xffe9867d0bf30cf9,0xbfca577867588408,1
+np.float64,0xffdfe9b923bfd372,0x3fdab5c15f085c2d,1
+np.float64,0xffed590c6abab218,0xbfd7e7b6c5a120e6,1
+np.float64,0xffeaebcfbab5d79f,0x3fed58be8a9e2c3b,1
+np.float64,0xffe2ba83a8257507,0x3fe6c42a4ac1d4d9,1
+np.float64,0xffe01d5b0ee03ab6,0xbfe5dad6c9247db7,1
+np.float64,0xffe51095d52a212b,0x3fef822cebc32d8e,1
+np.float64,0xffebd7a901b7af51,0xbfe5e63f3e3b1185,1
+np.float64,0xffe4efdcde29dfb9,0xbfe811294dfa758f,1
+np.float64,0xffe3be1aa4a77c35,0x3fdd8dcfcd409bb1,1
+np.float64,0xffbe6f2f763cde60,0x3fd13766e43bd622,1
+np.float64,0xffeed3d80fbda7af,0x3fec10a23c1b7a4a,1
+np.float64,0xffd6ebff37add7fe,0xbfe6177411607c86,1
+np.float64,0xffe85a90f4b0b521,0x3fc09fdd66c8fde9,1
+np.float64,0xffea3d58c2b47ab1,0x3feb5bd4a04b3562,1
+np.float64,0xffef675be6beceb7,0x3fecd840683d1044,1
+np.float64,0xff726a088024d400,0x3feff2b4f47b5214,1
+np.float64,0xffc90856733210ac,0xbfe3c6ffbf6840a5,1
+np.float64,0xffc0b58d9a216b1c,0xbfe10314267d0611,1
+np.float64,0xffee1f3d0abc3e79,0xbfd12ea7efea9067,1
+np.float64,0xffd988c41a331188,0x3febe83802d8a32e,1
+np.float64,0xffe8f1ac9bb1e358,0xbfdbf5fa7e84f2f2,1
+np.float64,0xffe47af279e8f5e4,0x3fef11e339e5fa78,1
+np.float64,0xff9960a7f832c140,0xbfa150363f8ec5b2,1
+np.float64,0xffcac40fa7358820,0xbfec3d5847a3df1d,1
+np.float64,0xffcb024a9d360494,0xbfd060fa31fd6b6a,1
+np.float64,0xffe385ffb3270bff,0xbfee6859e8dcd9e8,1
+np.float64,0xffef62f2c53ec5e5,0x3fe0a71ffddfc718,1
+np.float64,0xffed87ff20fb0ffd,0xbfe661db7c4098e3,1
+np.float64,0xffe369278526d24e,0x3fd64d89a41822fc,1
+np.float64,0xff950288c02a0520,0x3fe1df91d1ad7d5c,1
+np.float64,0xffe70e7c2cee1cf8,0x3fc9fece08df2fd8,1
+np.float64,0xffbaf020b635e040,0xbfc68c43ff9911a7,1
+np.float64,0xffee0120b0fc0240,0x3f9f792e17b490b0,1
+np.float64,0xffe1fa4be7a3f498,0xbfef4b18ab4b319e,1
+np.float64,0xffe61887bf2c310f,0x3fe846714826cb32,1
+np.float64,0xffdc3cf77f3879ee,0x3fe033b948a36125,1
+np.float64,0xffcc2b86f238570c,0xbfefdcceac3f220f,1
+np.float64,0xffe1f030c0a3e061,0x3fef502a808c359a,1
+np.float64,0xffb872c4ee30e588,0x3fef66ed8d3e6175,1
+np.float64,0xffeac8fc617591f8,0xbfe5d8448602aac9,1
+np.float64,0xffe5be16afab7c2d,0x3fee75ccde3cd14d,1
+np.float64,0xffae230ad83c4610,0xbfe49bbe6074d459,1
+np.float64,0xffc8fbeff531f7e0,0x3f77201e0c927f97,1
+np.float64,0xffdc314f48b8629e,0x3fef810dfc5db118,1
+np.float64,0xffec1f8970783f12,0x3fe15567102e042a,1
+np.float64,0xffc6995f902d32c0,0xbfecd5d2eedf342c,1
+np.float64,0xffdc7af76b38f5ee,0xbfd6e754476ab320,1
+np.float64,0xffb30cf8682619f0,0x3fd5ac3dfc4048d0,1
+np.float64,0xffd3a77695a74eee,0xbfefb5d6889e36e9,1
+np.float64,0xffd8b971803172e4,0xbfeb7f62f0b6c70b,1
+np.float64,0xffde4c0234bc9804,0xbfed50ba9e16d5e0,1
+np.float64,0xffb62b3f342c5680,0xbfeabc0de4069b84,1
+np.float64,0xff9af5674035eac0,0xbfed6c198b6b1bd8,1
+np.float64,0xffdfe20cb43fc41a,0x3fb11f8238f66306,1
+np.float64,0xffd2ecd7a0a5d9b0,0xbfec17ef1a62b1e3,1
+np.float64,0xffce60f7863cc1f0,0x3fe6dbcad3e3a006,1
+np.float64,0xffbbb8306a377060,0xbfbfd0fbef485c4c,1
+np.float64,0xffd1b2bd2b23657a,0xbfda3e046d987b99,1
+np.float64,0xffc480f4092901e8,0xbfeeff0427f6897b,1
+np.float64,0xffe6e02d926dc05a,0xbfcd59552778890b,1
+np.float64,0xffd302e5b7a605cc,0xbfee7c08641366b0,1
+np.float64,0xffec2eb92f785d72,0xbfef5c9c7f771050,1
+np.float64,0xffea3e31a9747c62,0xbfc49cd54755faf0,1
+np.float64,0xffce0a4e333c149c,0x3feeb9a6d0db4aee,1
+np.float64,0xffdc520a2db8a414,0x3fefc7b72613dcd0,1
+np.float64,0xffe056b968a0ad72,0xbfe47a9fe1f827fb,1
+np.float64,0xffe5a10f4cab421e,0x3fec2b1f74b73dec,1
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/data/umath-validation-set-sinh.csv b/python/user_packages/Python313/site-packages/numpy/_core/tests/data/umath-validation-set-sinh.csv
new file mode 100644
index 0000000000000000000000000000000000000000..7c2d5c56fa6956cc1a9a63f6a5f2cbe20680940f
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/tests/data/umath-validation-set-sinh.csv
@@ -0,0 +1,1429 @@
+dtype,input,output,ulperrortol
+np.float32,0xfee27582,0xff800000,2
+np.float32,0xff19f092,0xff800000,2
+np.float32,0xbf393576,0xbf49cb31,2
+np.float32,0x8020fdea,0x8020fdea,2
+np.float32,0x455f4e,0x455f4e,2
+np.float32,0xff718c35,0xff800000,2
+np.float32,0x3f3215e3,0x3f40cce5,2
+np.float32,0x19e833,0x19e833,2
+np.float32,0xff2dcd49,0xff800000,2
+np.float32,0x7e8f6c95,0x7f800000,2
+np.float32,0xbf159dac,0xbf1e47a5,2
+np.float32,0x100d3d,0x100d3d,2
+np.float32,0xff673441,0xff800000,2
+np.float32,0x80275355,0x80275355,2
+np.float32,0x4812d0,0x4812d0,2
+np.float32,0x8072b956,0x8072b956,2
+np.float32,0xff3bb918,0xff800000,2
+np.float32,0x0,0x0,2
+np.float32,0xfe327798,0xff800000,2
+np.float32,0x41d4e2,0x41d4e2,2
+np.float32,0xfe34b1b8,0xff800000,2
+np.float32,0x80199f72,0x80199f72,2
+np.float32,0x807242ce,0x807242ce,2
+np.float32,0x3ef4202d,0x3efd7b48,2
+np.float32,0x763529,0x763529,2
+np.float32,0x4f6662,0x4f6662,2
+np.float32,0x3f18efe9,0x3f2232b5,2
+np.float32,0x80701846,0x80701846,2
+np.float32,0x3f599948,0x3f74c393,2
+np.float32,0x5a3d69,0x5a3d69,2
+np.float32,0xbf4a7e65,0xbf6047a3,2
+np.float32,0xff0d4c82,0xff800000,2
+np.float32,0x7a74db,0x7a74db,2
+np.float32,0x803388e6,0x803388e6,2
+np.float32,0x7f4430bb,0x7f800000,2
+np.float32,0x14c5b1,0x14c5b1,2
+np.float32,0xfa113400,0xff800000,2
+np.float32,0x7f4b3209,0x7f800000,2
+np.float32,0x8038d88c,0x8038d88c,2
+np.float32,0xbef2f9de,0xbefc330b,2
+np.float32,0xbe147b38,0xbe15008f,2
+np.float32,0x2b61e6,0x2b61e6,2
+np.float32,0x80000001,0x80000001,2
+np.float32,0x8060456c,0x8060456c,2
+np.float32,0x3f30fa82,0x3f3f6a99,2
+np.float32,0xfd1f0220,0xff800000,2
+np.float32,0xbf2b7555,0xbf389151,2
+np.float32,0xff100b7a,0xff800000,2
+np.float32,0x70d3cd,0x70d3cd,2
+np.float32,0x2a8d4a,0x2a8d4a,2
+np.float32,0xbf7b733f,0xbf92f05f,2
+np.float32,0x3f7106dc,0x3f8b1fc6,2
+np.float32,0x3f39da7a,0x3f4a9d79,2
+np.float32,0x3f5dd73f,0x3f7aaab5,2
+np.float32,0xbe8c8754,0xbe8e4cba,2
+np.float32,0xbf6c74c9,0xbf87c556,2
+np.float32,0x800efbbb,0x800efbbb,2
+np.float32,0xff054ab5,0xff800000,2
+np.float32,0x800b4b46,0x800b4b46,2
+np.float32,0xff77fd74,0xff800000,2
+np.float32,0x257d0,0x257d0,2
+np.float32,0x7caa0c,0x7caa0c,2
+np.float32,0x8025d24d,0x8025d24d,2
+np.float32,0x3d9f1b60,0x3d9f445c,2
+np.float32,0xbe3bf6e8,0xbe3d0595,2
+np.float32,0x54bb93,0x54bb93,2
+np.float32,0xbf3e6a45,0xbf507716,2
+np.float32,0x3f4bb26e,0x3f61e1cd,2
+np.float32,0x3f698edc,0x3f85aac5,2
+np.float32,0xff7bd0ef,0xff800000,2
+np.float32,0xbed07b68,0xbed64a8e,2
+np.float32,0xbf237c72,0xbf2ed3d2,2
+np.float32,0x27b0fa,0x27b0fa,2
+np.float32,0x3f7606d1,0x3f8ed7d6,2
+np.float32,0x790dc0,0x790dc0,2
+np.float32,0x7f68f3ac,0x7f800000,2
+np.float32,0xbed39288,0xbed9a52f,2
+np.float32,0x3f6f8266,0x3f8a0187,2
+np.float32,0x3fbdca,0x3fbdca,2
+np.float32,0xbf7c3e5d,0xbf938b2c,2
+np.float32,0x802321a8,0x802321a8,2
+np.float32,0x3eecab66,0x3ef53031,2
+np.float32,0x62b324,0x62b324,2
+np.float32,0x3f13afac,0x3f1c03fe,2
+np.float32,0xff315ad7,0xff800000,2
+np.float32,0xbf1fac0d,0xbf2a3a63,2
+np.float32,0xbf543984,0xbf6d61d6,2
+np.float32,0x71a212,0x71a212,2
+np.float32,0x114fbe,0x114fbe,2
+np.float32,0x3f5b6ff2,0x3f77505f,2
+np.float32,0xff6ff89e,0xff800000,2
+np.float32,0xff4527a1,0xff800000,2
+np.float32,0x22cb3,0x22cb3,2
+np.float32,0x7f53bb6b,0x7f800000,2
+np.float32,0xff3d2dea,0xff800000,2
+np.float32,0xfd21dac0,0xff800000,2
+np.float32,0xfc486140,0xff800000,2
+np.float32,0x7e2b693a,0x7f800000,2
+np.float32,0x8022a9fb,0x8022a9fb,2
+np.float32,0x80765de0,0x80765de0,2
+np.float32,0x13d299,0x13d299,2
+np.float32,0x7ee53713,0x7f800000,2
+np.float32,0xbde1c770,0xbde23c96,2
+np.float32,0xbd473fc0,0xbd4753de,2
+np.float32,0x3f1cb455,0x3f26acf3,2
+np.float32,0x683e49,0x683e49,2
+np.float32,0x3ed5a9fc,0x3edbeb79,2
+np.float32,0x3f4fe3f6,0x3f67814f,2
+np.float32,0x802a2bce,0x802a2bce,2
+np.float32,0x7e951b4c,0x7f800000,2
+np.float32,0xbe6eb260,0xbe70dd44,2
+np.float32,0xbe3daca8,0xbe3ec2cb,2
+np.float32,0xbe9c38b2,0xbe9ea822,2
+np.float32,0xff2e29dc,0xff800000,2
+np.float32,0x7f62c7cc,0x7f800000,2
+np.float32,0xbf6799a4,0xbf84416c,2
+np.float32,0xbe30a7f0,0xbe318898,2
+np.float32,0xc83d9,0xc83d9,2
+np.float32,0x3f05abf4,0x3f0bd447,2
+np.float32,0x7e9b018a,0x7f800000,2
+np.float32,0xbf0ed72e,0xbf165e5b,2
+np.float32,0x8011ac8c,0x8011ac8c,2
+np.float32,0xbeb7c706,0xbebbbfcb,2
+np.float32,0x803637f9,0x803637f9,2
+np.float32,0xfe787cc8,0xff800000,2
+np.float32,0x3f533d4b,0x3f6c0a50,2
+np.float32,0x3f5c0f1c,0x3f782dde,2
+np.float32,0x3f301f36,0x3f3e590d,2
+np.float32,0x2dc929,0x2dc929,2
+np.float32,0xff15018a,0xff800000,2
+np.float32,0x3f4d0c56,0x3f63afeb,2
+np.float32,0xbf7a2ae3,0xbf91f6e4,2
+np.float32,0xbe771b84,0xbe798346,2
+np.float32,0x80800000,0x80800000,2
+np.float32,0x7f5689ba,0x7f800000,2
+np.float32,0x3f1c3177,0x3f2610df,2
+np.float32,0x3f1b9664,0x3f255825,2
+np.float32,0x3f7e5066,0x3f9520d4,2
+np.float32,0xbf1935f8,0xbf2285ab,2
+np.float32,0x3f096cc7,0x3f101ef9,2
+np.float32,0x8030c180,0x8030c180,2
+np.float32,0x6627ed,0x6627ed,2
+np.float32,0x454595,0x454595,2
+np.float32,0x7de66a33,0x7f800000,2
+np.float32,0xbf800000,0xbf966cfe,2
+np.float32,0xbf35c0a8,0xbf456939,2
+np.float32,0x3f6a6266,0x3f8643e0,2
+np.float32,0x3f0cbcee,0x3f13ef6a,2
+np.float32,0x7efd1e58,0x7f800000,2
+np.float32,0xfe9a74c6,0xff800000,2
+np.float32,0x807ebe6c,0x807ebe6c,2
+np.float32,0x80656736,0x80656736,2
+np.float32,0x800e0608,0x800e0608,2
+np.float32,0xbf30e39a,0xbf3f4e00,2
+np.float32,0x802015fd,0x802015fd,2
+np.float32,0x3e3ce26d,0x3e3df519,2
+np.float32,0x7ec142ac,0x7f800000,2
+np.float32,0xbf68c9ce,0xbf851c78,2
+np.float32,0xfede8356,0xff800000,2
+np.float32,0xbf1507ce,0xbf1d978d,2
+np.float32,0x3e53914c,0x3e551374,2
+np.float32,0x7f3e1c14,0x7f800000,2
+np.float32,0x8070d2ba,0x8070d2ba,2
+np.float32,0xbf4eb793,0xbf65ecee,2
+np.float32,0x7365a6,0x7365a6,2
+np.float32,0x8045cba2,0x8045cba2,2
+np.float32,0x7e4af521,0x7f800000,2
+np.float32,0xbf228625,0xbf2da9e1,2
+np.float32,0x7ee0536c,0x7f800000,2
+np.float32,0x3e126607,0x3e12e5d5,2
+np.float32,0x80311d92,0x80311d92,2
+np.float32,0xbf386b8b,0xbf48ca54,2
+np.float32,0x7f800000,0x7f800000,2
+np.float32,0x8049ec7a,0x8049ec7a,2
+np.float32,0xbf1dfde4,0xbf2836be,2
+np.float32,0x7e719a8c,0x7f800000,2
+np.float32,0x3eb9c856,0x3ebde2e6,2
+np.float32,0xfe3efda8,0xff800000,2
+np.float32,0xbe89d60c,0xbe8b81d1,2
+np.float32,0x3eaad338,0x3eae0317,2
+np.float32,0x7f4e5217,0x7f800000,2
+np.float32,0x3e9d0f40,0x3e9f88ce,2
+np.float32,0xbe026708,0xbe02c155,2
+np.float32,0x5fc22f,0x5fc22f,2
+np.float32,0x1c4572,0x1c4572,2
+np.float32,0xbed89d96,0xbedf22c5,2
+np.float32,0xbf3debee,0xbf4fd441,2
+np.float32,0xbf465520,0xbf5ac6e5,2
+np.float32,0x3f797081,0x3f9169b3,2
+np.float32,0xbf250734,0xbf30b2aa,2
+np.float32,0x7f5068e9,0x7f800000,2
+np.float32,0x3f1b814e,0x3f253f0c,2
+np.float32,0xbf27c5d3,0xbf340b05,2
+np.float32,0x3f1b78ae,0x3f2534c8,2
+np.float32,0x8059b51a,0x8059b51a,2
+np.float32,0x8059f182,0x8059f182,2
+np.float32,0xbf1bb36e,0xbf257ab8,2
+np.float32,0x41ac35,0x41ac35,2
+np.float32,0x68f41f,0x68f41f,2
+np.float32,0xbea504dc,0xbea7e40f,2
+np.float32,0x1,0x1,2
+np.float32,0x3e96b5b0,0x3e98e542,2
+np.float32,0x7f7fffff,0x7f800000,2
+np.float32,0x3c557a80,0x3c557c0c,2
+np.float32,0x800ca3ec,0x800ca3ec,2
+np.float32,0x8077d4aa,0x8077d4aa,2
+np.float32,0x3f000af0,0x3f0572d6,2
+np.float32,0x3e0434dd,0x3e0492f8,2
+np.float32,0x7d1a710a,0x7f800000,2
+np.float32,0x3f70f996,0x3f8b15f8,2
+np.float32,0x8033391d,0x8033391d,2
+np.float32,0x11927c,0x11927c,2
+np.float32,0x7f7784be,0x7f800000,2
+np.float32,0x7acb22af,0x7f800000,2
+np.float32,0x7e8b153c,0x7f800000,2
+np.float32,0x66d402,0x66d402,2
+np.float32,0xfed6e7b0,0xff800000,2
+np.float32,0x7f6872d3,0x7f800000,2
+np.float32,0x1bd49c,0x1bd49c,2
+np.float32,0xfdc4f1b8,0xff800000,2
+np.float32,0xbed8a466,0xbedf2a33,2
+np.float32,0x7ee789,0x7ee789,2
+np.float32,0xbece94b4,0xbed43b52,2
+np.float32,0x3cf3f734,0x3cf4006f,2
+np.float32,0x7e44aa00,0x7f800000,2
+np.float32,0x7f19e99c,0x7f800000,2
+np.float32,0x806ff1bc,0x806ff1bc,2
+np.float32,0x80296934,0x80296934,2
+np.float32,0x7f463363,0x7f800000,2
+np.float32,0xbf212ac3,0xbf2c06bb,2
+np.float32,0x3dc63778,0x3dc686ba,2
+np.float32,0x7f1b4328,0x7f800000,2
+np.float32,0x6311f6,0x6311f6,2
+np.float32,0xbf6b6fb6,0xbf870751,2
+np.float32,0xbf2c44cf,0xbf399155,2
+np.float32,0x3e7a67bc,0x3e7ce887,2
+np.float32,0x7f57c5f7,0x7f800000,2
+np.float32,0x7f2bb4ff,0x7f800000,2
+np.float32,0xbe9d448e,0xbe9fc0a4,2
+np.float32,0xbf4840f0,0xbf5d4f6b,2
+np.float32,0x7f1e1176,0x7f800000,2
+np.float32,0xff76638e,0xff800000,2
+np.float32,0xff055555,0xff800000,2
+np.float32,0x3f32b82b,0x3f419834,2
+np.float32,0xff363aa8,0xff800000,2
+np.float32,0x7f737fd0,0x7f800000,2
+np.float32,0x3da5d798,0x3da60602,2
+np.float32,0x3f1cc126,0x3f26bc3e,2
+np.float32,0x7eb07541,0x7f800000,2
+np.float32,0x3f7b2ff2,0x3f92bd2a,2
+np.float32,0x474f7,0x474f7,2
+np.float32,0x7fc00000,0x7fc00000,2
+np.float32,0xff2b0a4e,0xff800000,2
+np.float32,0xfeb24f16,0xff800000,2
+np.float32,0x2cb9fc,0x2cb9fc,2
+np.float32,0x67189d,0x67189d,2
+np.float32,0x8033d854,0x8033d854,2
+np.float32,0xbe85e94c,0xbe87717a,2
+np.float32,0x80767c6c,0x80767c6c,2
+np.float32,0x7ea84d65,0x7f800000,2
+np.float32,0x3f024bc7,0x3f07fead,2
+np.float32,0xbdcb0100,0xbdcb5625,2
+np.float32,0x3f160a9e,0x3f1ec7c9,2
+np.float32,0xff1734c8,0xff800000,2
+np.float32,0x7f424d5e,0x7f800000,2
+np.float32,0xbf75b215,0xbf8e9862,2
+np.float32,0x3f262a42,0x3f3214c4,2
+np.float32,0xbf4cfb53,0xbf639927,2
+np.float32,0x3f4ac8b8,0x3f60aa7c,2
+np.float32,0x3e90e593,0x3e92d6b3,2
+np.float32,0xbf66bccf,0xbf83a2d8,2
+np.float32,0x7d3d851a,0x7f800000,2
+np.float32,0x7bac783c,0x7f800000,2
+np.float32,0x8001c626,0x8001c626,2
+np.float32,0xbdffd480,0xbe003f7b,2
+np.float32,0x7f6680bf,0x7f800000,2
+np.float32,0xbecf448e,0xbed4f9bb,2
+np.float32,0x584c7,0x584c7,2
+np.float32,0x3f3e8ea0,0x3f50a5fb,2
+np.float32,0xbf5a5f04,0xbf75d56e,2
+np.float32,0x8065ae47,0x8065ae47,2
+np.float32,0xbf48dce3,0xbf5e1dba,2
+np.float32,0xbe8dae2e,0xbe8f7ed8,2
+np.float32,0x3f7ca6ab,0x3f93dace,2
+np.float32,0x4c3e81,0x4c3e81,2
+np.float32,0x80000000,0x80000000,2
+np.float32,0x3ee1f7d9,0x3ee96033,2
+np.float32,0x80588c6f,0x80588c6f,2
+np.float32,0x5ba34e,0x5ba34e,2
+np.float32,0x80095d28,0x80095d28,2
+np.float32,0xbe7ba198,0xbe7e2bdd,2
+np.float32,0xbe0bdcb4,0xbe0c4c22,2
+np.float32,0x1776f7,0x1776f7,2
+np.float32,0x80328b2a,0x80328b2a,2
+np.float32,0x3e978d37,0x3e99c63e,2
+np.float32,0x7ed50906,0x7f800000,2
+np.float32,0x3f776a54,0x3f8fe2bd,2
+np.float32,0xbed624c4,0xbedc7120,2
+np.float32,0x7f0b6a31,0x7f800000,2
+np.float32,0x7eb13913,0x7f800000,2
+np.float32,0xbe733684,0xbe758190,2
+np.float32,0x80016474,0x80016474,2
+np.float32,0x7a51ee,0x7a51ee,2
+np.float32,0x3f6cb91e,0x3f87f729,2
+np.float32,0xbd99b050,0xbd99d540,2
+np.float32,0x7c6e3cba,0x7f800000,2
+np.float32,0xbf00179a,0xbf05811e,2
+np.float32,0x3e609b29,0x3e626954,2
+np.float32,0xff3fd71a,0xff800000,2
+np.float32,0x5d8c2,0x5d8c2,2
+np.float32,0x7ee93662,0x7f800000,2
+np.float32,0x4b0b31,0x4b0b31,2
+np.float32,0x3ec243b7,0x3ec6f594,2
+np.float32,0x804d60f1,0x804d60f1,2
+np.float32,0xbf0cb784,0xbf13e929,2
+np.float32,0x3f13b74d,0x3f1c0cee,2
+np.float32,0xfe37cb64,0xff800000,2
+np.float32,0x1a88,0x1a88,2
+np.float32,0x3e22a472,0x3e2353ba,2
+np.float32,0x7f07d6a0,0x7f800000,2
+np.float32,0x3f78f435,0x3f910bb5,2
+np.float32,0x555a4a,0x555a4a,2
+np.float32,0x3e306c1f,0x3e314be3,2
+np.float32,0x8005877c,0x8005877c,2
+np.float32,0x4df389,0x4df389,2
+np.float32,0x8069ffc7,0x8069ffc7,2
+np.float32,0x3f328f24,0x3f4164c6,2
+np.float32,0x53a31b,0x53a31b,2
+np.float32,0xbe4d6768,0xbe4ec8be,2
+np.float32,0x7fa00000,0x7fe00000,2
+np.float32,0x3f484c1b,0x3f5d5e2f,2
+np.float32,0x8038be05,0x8038be05,2
+np.float32,0x58ac0f,0x58ac0f,2
+np.float32,0x7ed7fb72,0x7f800000,2
+np.float32,0x5a22e1,0x5a22e1,2
+np.float32,0xbebb7394,0xbebfaad6,2
+np.float32,0xbda98160,0xbda9b2ef,2
+np.float32,0x7f3e5c42,0x7f800000,2
+np.float32,0xfed204ae,0xff800000,2
+np.float32,0xbf5ef782,0xbf7c3ec5,2
+np.float32,0xbef7a0a8,0xbf00b292,2
+np.float32,0xfee6e176,0xff800000,2
+np.float32,0xfe121140,0xff800000,2
+np.float32,0xfe9e13be,0xff800000,2
+np.float32,0xbf3c98b1,0xbf4e2003,2
+np.float32,0x77520d,0x77520d,2
+np.float32,0xf17b2,0xf17b2,2
+np.float32,0x724d2f,0x724d2f,2
+np.float32,0x7eb326f5,0x7f800000,2
+np.float32,0x3edd6bf2,0x3ee4636e,2
+np.float32,0x350f57,0x350f57,2
+np.float32,0xff7d4435,0xff800000,2
+np.float32,0x802b2b9d,0x802b2b9d,2
+np.float32,0xbf7fbeee,0xbf963acf,2
+np.float32,0x804f3100,0x804f3100,2
+np.float32,0x7c594a71,0x7f800000,2
+np.float32,0x3ef49340,0x3efdfbb6,2
+np.float32,0x2e0659,0x2e0659,2
+np.float32,0x8006d5fe,0x8006d5fe,2
+np.float32,0xfd2a00b0,0xff800000,2
+np.float32,0xbee1c016,0xbee922ed,2
+np.float32,0x3e3b7de8,0x3e3c8a8b,2
+np.float32,0x805e6bba,0x805e6bba,2
+np.float32,0x1a7da2,0x1a7da2,2
+np.float32,0x6caba4,0x6caba4,2
+np.float32,0x802f7eab,0x802f7eab,2
+np.float32,0xff68b16b,0xff800000,2
+np.float32,0x8064f5e5,0x8064f5e5,2
+np.float32,0x2e39b4,0x2e39b4,2
+np.float32,0x800000,0x800000,2
+np.float32,0xfd0334c0,0xff800000,2
+np.float32,0x3e952fc4,0x3e974e7e,2
+np.float32,0x80057d33,0x80057d33,2
+np.float32,0x3ed3ddc4,0x3ed9f6f1,2
+np.float32,0x3f74ce18,0x3f8dedf4,2
+np.float32,0xff6bb7c0,0xff800000,2
+np.float32,0xff43bc21,0xff800000,2
+np.float32,0x80207570,0x80207570,2
+np.float32,0x7e1dda75,0x7f800000,2
+np.float32,0x3efe335c,0x3f0462ff,2
+np.float32,0xbf252c0c,0xbf30df70,2
+np.float32,0x3ef4b8e3,0x3efe25ba,2
+np.float32,0x7c33938d,0x7f800000,2
+np.float32,0x3eb1593c,0x3eb4ea95,2
+np.float32,0xfe1d0068,0xff800000,2
+np.float32,0xbf10da9b,0xbf18b551,2
+np.float32,0xfeb65748,0xff800000,2
+np.float32,0xfe8c6014,0xff800000,2
+np.float32,0x3f0503e2,0x3f0b14e3,2
+np.float32,0xfe5e5248,0xff800000,2
+np.float32,0xbd10afa0,0xbd10b754,2
+np.float32,0xff64b609,0xff800000,2
+np.float32,0xbf674a96,0xbf84089c,2
+np.float32,0x7f5d200d,0x7f800000,2
+np.float32,0x3cf44900,0x3cf45245,2
+np.float32,0x8044445a,0x8044445a,2
+np.float32,0xff35b676,0xff800000,2
+np.float32,0x806452cd,0x806452cd,2
+np.float32,0xbf2930fb,0xbf35c7b4,2
+np.float32,0x7e500617,0x7f800000,2
+np.float32,0x543719,0x543719,2
+np.float32,0x3ed11068,0x3ed6ec1d,2
+np.float32,0xbd8db068,0xbd8dcd59,2
+np.float32,0x3ede62c8,0x3ee571d0,2
+np.float32,0xbf00a410,0xbf061f9c,2
+np.float32,0xbf44fa39,0xbf58ff5b,2
+np.float32,0x3f1c3114,0x3f261069,2
+np.float32,0xbdea6210,0xbdeae521,2
+np.float32,0x80059f6d,0x80059f6d,2
+np.float32,0xbdba15f8,0xbdba578c,2
+np.float32,0x6d8a61,0x6d8a61,2
+np.float32,0x6f5428,0x6f5428,2
+np.float32,0x18d0e,0x18d0e,2
+np.float32,0x50e131,0x50e131,2
+np.float32,0x3f2f52be,0x3f3d5a7e,2
+np.float32,0x7399d8,0x7399d8,2
+np.float32,0x106524,0x106524,2
+np.float32,0x7ebf1c53,0x7f800000,2
+np.float32,0x80276458,0x80276458,2
+np.float32,0x3ebbde67,0x3ec01ceb,2
+np.float32,0x80144d9d,0x80144d9d,2
+np.float32,0x8017ea6b,0x8017ea6b,2
+np.float32,0xff38f201,0xff800000,2
+np.float32,0x7f2daa82,0x7f800000,2
+np.float32,0x3f3cb7c7,0x3f4e47ed,2
+np.float32,0x7f08c779,0x7f800000,2
+np.float32,0xbecc907a,0xbed20cec,2
+np.float32,0x7d440002,0x7f800000,2
+np.float32,0xbd410d80,0xbd411fcd,2
+np.float32,0x3d63ae07,0x3d63cc0c,2
+np.float32,0x805a9c13,0x805a9c13,2
+np.float32,0x803bdcdc,0x803bdcdc,2
+np.float32,0xbe88b354,0xbe8a5497,2
+np.float32,0x3f4eaf43,0x3f65e1c2,2
+np.float32,0x3f15e5b8,0x3f1e9c60,2
+np.float32,0x3e8a870c,0x3e8c394e,2
+np.float32,0x7e113de9,0x7f800000,2
+np.float32,0x7ee5ba41,0x7f800000,2
+np.float32,0xbe73d178,0xbe7620eb,2
+np.float32,0xfe972e6a,0xff800000,2
+np.float32,0xbf65567d,0xbf82a25a,2
+np.float32,0x3f38247e,0x3f487010,2
+np.float32,0xbece1c62,0xbed3b918,2
+np.float32,0x442c8d,0x442c8d,2
+np.float32,0x2dc52,0x2dc52,2
+np.float32,0x802ed923,0x802ed923,2
+np.float32,0x788cf8,0x788cf8,2
+np.float32,0x8024888e,0x8024888e,2
+np.float32,0x3f789bde,0x3f90c8fc,2
+np.float32,0x3f5de620,0x3f7abf88,2
+np.float32,0x3f0ffc45,0x3f17b2a7,2
+np.float32,0xbf709678,0xbf8accd4,2
+np.float32,0x12181f,0x12181f,2
+np.float32,0xfe54bbe4,0xff800000,2
+np.float32,0x7f1daba0,0x7f800000,2
+np.float32,0xbf6226df,0xbf805e3c,2
+np.float32,0xbd120610,0xbd120dfb,2
+np.float32,0x7f75e951,0x7f800000,2
+np.float32,0x80068048,0x80068048,2
+np.float32,0x45f04a,0x45f04a,2
+np.float32,0xff4c4f58,0xff800000,2
+np.float32,0x311604,0x311604,2
+np.float32,0x805e809c,0x805e809c,2
+np.float32,0x3d1d62c0,0x3d1d6caa,2
+np.float32,0x7f14ccf9,0x7f800000,2
+np.float32,0xff10017c,0xff800000,2
+np.float32,0xbf43ec48,0xbf579df4,2
+np.float32,0xff64da57,0xff800000,2
+np.float32,0x7f0622c5,0x7f800000,2
+np.float32,0x7f5460cd,0x7f800000,2
+np.float32,0xff0ef1c6,0xff800000,2
+np.float32,0xbece1146,0xbed3ad13,2
+np.float32,0x3f4d457f,0x3f63fc70,2
+np.float32,0xbdc1da28,0xbdc2244b,2
+np.float32,0xbe46d3f4,0xbe481463,2
+np.float32,0xff36b3d6,0xff800000,2
+np.float32,0xbec2e76c,0xbec7a540,2
+np.float32,0x8078fb81,0x8078fb81,2
+np.float32,0x7ec819cb,0x7f800000,2
+np.float32,0x39c4d,0x39c4d,2
+np.float32,0xbe8cddc2,0xbe8ea670,2
+np.float32,0xbf36dffb,0xbf46d48b,2
+np.float32,0xbf2302a3,0xbf2e4065,2
+np.float32,0x3e7b34a2,0x3e7dbb9a,2
+np.float32,0x3e3d87e1,0x3e3e9d62,2
+np.float32,0x7f3c94b1,0x7f800000,2
+np.float32,0x80455a85,0x80455a85,2
+np.float32,0xfd875568,0xff800000,2
+np.float32,0xbf618103,0xbf7fd1c8,2
+np.float32,0xbe332e3c,0xbe3418ac,2
+np.float32,0x80736b79,0x80736b79,2
+np.float32,0x3f705d9a,0x3f8aa2e6,2
+np.float32,0xbf3a36d2,0xbf4b134b,2
+np.float32,0xfddc55c0,0xff800000,2
+np.float32,0x805606fd,0x805606fd,2
+np.float32,0x3f4f0bc4,0x3f665e25,2
+np.float32,0xfebe7494,0xff800000,2
+np.float32,0xff0c541b,0xff800000,2
+np.float32,0xff0b8e7f,0xff800000,2
+np.float32,0xbcc51640,0xbcc51b1e,2
+np.float32,0x7ec1c4d0,0x7f800000,2
+np.float32,0xfc5c8e00,0xff800000,2
+np.float32,0x7f48d682,0x7f800000,2
+np.float32,0x7d5c7d8d,0x7f800000,2
+np.float32,0x8052ed03,0x8052ed03,2
+np.float32,0x7d4db058,0x7f800000,2
+np.float32,0xff3a65ee,0xff800000,2
+np.float32,0x806eeb93,0x806eeb93,2
+np.float32,0x803f9733,0x803f9733,2
+np.float32,0xbf2d1388,0xbf3a90e3,2
+np.float32,0x68e260,0x68e260,2
+np.float32,0x3e47a69f,0x3e48eb0e,2
+np.float32,0x3f0c4623,0x3f136646,2
+np.float32,0x3f37a831,0x3f47d249,2
+np.float32,0xff153a0c,0xff800000,2
+np.float32,0x2e8086,0x2e8086,2
+np.float32,0xc3f5e,0xc3f5e,2
+np.float32,0x7f31dc14,0x7f800000,2
+np.float32,0xfee37d68,0xff800000,2
+np.float32,0x711d4,0x711d4,2
+np.float32,0x7ede2ce4,0x7f800000,2
+np.float32,0xbf5d76d0,0xbf7a23d0,2
+np.float32,0xbe2b9eb4,0xbe2c6cac,2
+np.float32,0x2b14d7,0x2b14d7,2
+np.float32,0x3ea1db72,0x3ea4910e,2
+np.float32,0x7f3f03f7,0x7f800000,2
+np.float32,0x92de5,0x92de5,2
+np.float32,0x80322e1b,0x80322e1b,2
+np.float32,0xbf5eb214,0xbf7bdd55,2
+np.float32,0xbf21bf87,0xbf2cba14,2
+np.float32,0xbf5d4b78,0xbf79e73a,2
+np.float32,0xbc302840,0xbc30291e,2
+np.float32,0xfee567c6,0xff800000,2
+np.float32,0x7f70ee14,0x7f800000,2
+np.float32,0x7e5c4b33,0x7f800000,2
+np.float32,0x3f1e7b64,0x3f28ccfd,2
+np.float32,0xbf6309f7,0xbf80ff3e,2
+np.float32,0x1c2fe3,0x1c2fe3,2
+np.float32,0x8e78d,0x8e78d,2
+np.float32,0x7f2fce73,0x7f800000,2
+np.float32,0x7f25f690,0x7f800000,2
+np.float32,0x8074cba5,0x8074cba5,2
+np.float32,0x16975f,0x16975f,2
+np.float32,0x8012cf5c,0x8012cf5c,2
+np.float32,0x7da72138,0x7f800000,2
+np.float32,0xbf563f35,0xbf7025be,2
+np.float32,0x3f69d3f5,0x3f85dcbe,2
+np.float32,0xbf15c148,0xbf1e7184,2
+np.float32,0xbe7a077c,0xbe7c8564,2
+np.float32,0x3ebb6ef1,0x3ebfa5e3,2
+np.float32,0xbe41fde4,0xbe43277b,2
+np.float32,0x7f10b479,0x7f800000,2
+np.float32,0x3e021ace,0x3e02747d,2
+np.float32,0x3e93d984,0x3e95e9be,2
+np.float32,0xfe17e924,0xff800000,2
+np.float32,0xfe21a7cc,0xff800000,2
+np.float32,0x8019b660,0x8019b660,2
+np.float32,0x7e954631,0x7f800000,2
+np.float32,0x7e7330d1,0x7f800000,2
+np.float32,0xbe007d98,0xbe00d3fb,2
+np.float32,0x3ef3870e,0x3efcd077,2
+np.float32,0x7f5bbde8,0x7f800000,2
+np.float32,0x14a5b3,0x14a5b3,2
+np.float32,0x3e84d23f,0x3e8650e8,2
+np.float32,0x80763017,0x80763017,2
+np.float32,0xfe871f36,0xff800000,2
+np.float32,0x7ed43150,0x7f800000,2
+np.float32,0x3cc44547,0x3cc44a16,2
+np.float32,0x3ef0c0fa,0x3ef9b97d,2
+np.float32,0xbede9944,0xbee5ad86,2
+np.float32,0xbf10f0b2,0xbf18cf0a,2
+np.float32,0x3ecdaa78,0x3ed33dd9,2
+np.float32,0x3f7cc058,0x3f93ee6b,2
+np.float32,0x2d952f,0x2d952f,2
+np.float32,0x3f2cf2de,0x3f3a687a,2
+np.float32,0x8029b33c,0x8029b33c,2
+np.float32,0xbf22c737,0xbf2df888,2
+np.float32,0xff53c84a,0xff800000,2
+np.float32,0x40a509,0x40a509,2
+np.float32,0x56abce,0x56abce,2
+np.float32,0xff7fffff,0xff800000,2
+np.float32,0xbf3e67f6,0xbf50741c,2
+np.float32,0xfde67580,0xff800000,2
+np.float32,0x3f103e9b,0x3f17ffc7,2
+np.float32,0x3f3f7232,0x3f51cbe2,2
+np.float32,0x803e6d78,0x803e6d78,2
+np.float32,0x3a61da,0x3a61da,2
+np.float32,0xbc04de80,0xbc04dedf,2
+np.float32,0x7f1e7c52,0x7f800000,2
+np.float32,0x8058ee88,0x8058ee88,2
+np.float32,0x806dd660,0x806dd660,2
+np.float32,0x7e4af9,0x7e4af9,2
+np.float32,0x80702d27,0x80702d27,2
+np.float32,0x802cdad1,0x802cdad1,2
+np.float32,0x3e9b5c23,0x3e9dc149,2
+np.float32,0x7f076e89,0x7f800000,2
+np.float32,0x7f129d68,0x7f800000,2
+np.float32,0x7f6f0b0a,0x7f800000,2
+np.float32,0x7eafafb5,0x7f800000,2
+np.float32,0xbf2ef2ca,0xbf3ce332,2
+np.float32,0xff34c000,0xff800000,2
+np.float32,0x7f559274,0x7f800000,2
+np.float32,0xfed08556,0xff800000,2
+np.float32,0xbf014621,0xbf06d6ad,2
+np.float32,0xff23086a,0xff800000,2
+np.float32,0x6cb33f,0x6cb33f,2
+np.float32,0xfe6e3ffc,0xff800000,2
+np.float32,0x3e6bbec0,0x3e6dd546,2
+np.float32,0x8036afa6,0x8036afa6,2
+np.float32,0xff800000,0xff800000,2
+np.float32,0x3e0ed05c,0x3e0f46ff,2
+np.float32,0x3ec9215c,0x3ece57e6,2
+np.float32,0xbf449fa4,0xbf5888aa,2
+np.float32,0xff2c6640,0xff800000,2
+np.float32,0x7f08f4a7,0x7f800000,2
+np.float32,0xbf4f63e5,0xbf66d4c1,2
+np.float32,0x3f800000,0x3f966cfe,2
+np.float32,0xfe86c7d2,0xff800000,2
+np.float32,0x3f63f969,0x3f81a970,2
+np.float32,0xbd7022d0,0xbd704609,2
+np.float32,0xbead906c,0xbeb0e853,2
+np.float32,0x7ef149ee,0x7f800000,2
+np.float32,0xff0b9ff7,0xff800000,2
+np.float32,0x3f38380d,0x3f4888e7,2
+np.float32,0x3ef3a3e2,0x3efcf09e,2
+np.float32,0xff616477,0xff800000,2
+np.float32,0x3f3f83e4,0x3f51e2c3,2
+np.float32,0xbf79963c,0xbf918642,2
+np.float32,0x801416f4,0x801416f4,2
+np.float32,0xff75ce6d,0xff800000,2
+np.float32,0xbdbf3588,0xbdbf7cad,2
+np.float32,0xbe6ea938,0xbe70d3dc,2
+np.float32,0x8066f977,0x8066f977,2
+np.float32,0x3f5b5362,0x3f7728aa,2
+np.float32,0xbf72052c,0xbf8bdbd8,2
+np.float32,0xbe21ed74,0xbe229a6f,2
+np.float32,0x8062d19c,0x8062d19c,2
+np.float32,0x3ed8d01f,0x3edf59e6,2
+np.float32,0x803ed42b,0x803ed42b,2
+np.float32,0xbe099a64,0xbe0a0481,2
+np.float32,0xbe173eb4,0xbe17cba2,2
+np.float32,0xbebdcf02,0xbec22faf,2
+np.float32,0x7e3ff29e,0x7f800000,2
+np.float32,0x367c92,0x367c92,2
+np.float32,0xbf5c9db8,0xbf78f4a4,2
+np.float32,0xff0b49ea,0xff800000,2
+np.float32,0x3f4f9bc4,0x3f672001,2
+np.float32,0x85d4a,0x85d4a,2
+np.float32,0x80643e33,0x80643e33,2
+np.float32,0x8013aabd,0x8013aabd,2
+np.float32,0xff6997c3,0xff800000,2
+np.float32,0x3f4dd43c,0x3f64bbb6,2
+np.float32,0xff13bbb9,0xff800000,2
+np.float32,0x3f34efa2,0x3f446187,2
+np.float32,0x3e4b2f10,0x3e4c850d,2
+np.float32,0xfef695c6,0xff800000,2
+np.float32,0x7f7e0057,0x7f800000,2
+np.float32,0x3f6e1b9c,0x3f88fa40,2
+np.float32,0x806e46cf,0x806e46cf,2
+np.float32,0x3f15a88a,0x3f1e546c,2
+np.float32,0xbd2de7d0,0xbd2df530,2
+np.float32,0xbf63cae0,0xbf818854,2
+np.float32,0xbdc3e1a0,0xbdc42e1e,2
+np.float32,0xbf11a038,0xbf199b98,2
+np.float32,0xbec13706,0xbec5d56b,2
+np.float32,0x3f1c5f54,0x3f26478d,2
+np.float32,0x3e9ea97e,0x3ea136b4,2
+np.float32,0xfeb5a508,0xff800000,2
+np.float32,0x7f4698f4,0x7f800000,2
+np.float32,0xff51ee2c,0xff800000,2
+np.float32,0xff5994df,0xff800000,2
+np.float32,0x4b9fb9,0x4b9fb9,2
+np.float32,0xfda10d98,0xff800000,2
+np.float32,0x525555,0x525555,2
+np.float32,0x7ed571ef,0x7f800000,2
+np.float32,0xbf600d18,0xbf7dc50c,2
+np.float32,0x3ec674ca,0x3ecb768b,2
+np.float32,0x3cb69115,0x3cb694f3,2
+np.float32,0x7eac75f2,0x7f800000,2
+np.float32,0x804d4d75,0x804d4d75,2
+np.float32,0xfed5292e,0xff800000,2
+np.float32,0x800ed06a,0x800ed06a,2
+np.float32,0xfec37584,0xff800000,2
+np.float32,0x3ef96ac7,0x3f01b326,2
+np.float32,0x42f743,0x42f743,2
+np.float32,0x3f56f442,0x3f711e39,2
+np.float32,0xbf7ea726,0xbf956375,2
+np.float32,0x806c7202,0x806c7202,2
+np.float32,0xbd8ee980,0xbd8f0733,2
+np.float32,0xbdf2e930,0xbdf37b18,2
+np.float32,0x3f103910,0x3f17f955,2
+np.float32,0xff123e8f,0xff800000,2
+np.float32,0x806e4b5d,0x806e4b5d,2
+np.float32,0xbf4f3bfc,0xbf669f07,2
+np.float32,0xbf070c16,0xbf0d6609,2
+np.float32,0xff00e0ba,0xff800000,2
+np.float32,0xff49d828,0xff800000,2
+np.float32,0x7e47f04a,0x7f800000,2
+np.float32,0x7e984dac,0x7f800000,2
+np.float32,0x3f77473c,0x3f8fc858,2
+np.float32,0x3f017439,0x3f070ac8,2
+np.float32,0x118417,0x118417,2
+np.float32,0xbcf7a2c0,0xbcf7ac68,2
+np.float32,0xfee46fee,0xff800000,2
+np.float32,0x3e42a648,0x3e43d2e9,2
+np.float32,0x80131916,0x80131916,2
+np.float32,0x806209d3,0x806209d3,2
+np.float32,0x807c1f12,0x807c1f12,2
+np.float32,0x2f3696,0x2f3696,2
+np.float32,0xff28722b,0xff800000,2
+np.float32,0x7f1416a1,0x7f800000,2
+np.float32,0x8054e7a1,0x8054e7a1,2
+np.float32,0xbddc39a0,0xbddca656,2
+np.float32,0x7dc60175,0x7f800000,2
+np.float64,0x7fd0ae584da15cb0,0x7ff0000000000000,1
+np.float64,0x7fd41d68e5283ad1,0x7ff0000000000000,1
+np.float64,0x7fe93073bb7260e6,0x7ff0000000000000,1
+np.float64,0x3fb4fd19d229fa34,0x3fb5031f57dbac0f,1
+np.float64,0x85609ce10ac2,0x85609ce10ac2,1
+np.float64,0xbfd7aa12ccaf5426,0xbfd8351003a320e2,1
+np.float64,0x8004487c9b4890fa,0x8004487c9b4890fa,1
+np.float64,0x7fe7584cfd2eb099,0x7ff0000000000000,1
+np.float64,0x800ea8edc6dd51dc,0x800ea8edc6dd51dc,1
+np.float64,0x3fe0924aa5a12495,0x3fe15276e271c6dc,1
+np.float64,0x3feb1abf6d36357f,0x3fee76b4d3d06964,1
+np.float64,0x3fa8c14534318280,0x3fa8c3bd5ce5923c,1
+np.float64,0x800b9f5915d73eb3,0x800b9f5915d73eb3,1
+np.float64,0xffc05aaa7820b554,0xfff0000000000000,1
+np.float64,0x800157eda8c2afdc,0x800157eda8c2afdc,1
+np.float64,0xffe8d90042b1b200,0xfff0000000000000,1
+np.float64,0x3feda02ea93b405d,0x3ff1057e61d08d59,1
+np.float64,0xffd03b7361a076e6,0xfff0000000000000,1
+np.float64,0x3fe1a8ecd7e351da,0x3fe291eda9080847,1
+np.float64,0xffc5bfdff82b7fc0,0xfff0000000000000,1
+np.float64,0xbfe6fb3d386df67a,0xbfe9022c05df0565,1
+np.float64,0x7fefffffffffffff,0x7ff0000000000000,1
+np.float64,0x7fa10c340c221867,0x7ff0000000000000,1
+np.float64,0x3fe55cbf1daab97e,0x3fe6fc1648258b75,1
+np.float64,0xbfddeb5f60bbd6be,0xbfdf056d4fb5825f,1
+np.float64,0xffddb1a8213b6350,0xfff0000000000000,1
+np.float64,0xbfb20545e4240a88,0xbfb2091579375176,1
+np.float64,0x3f735ded2026bbda,0x3f735df1dad4ee3a,1
+np.float64,0xbfd1eb91efa3d724,0xbfd227c044dead61,1
+np.float64,0xffd737c588ae6f8c,0xfff0000000000000,1
+np.float64,0x3fc46818ec28d032,0x3fc47e416c4237a6,1
+np.float64,0x0,0x0,1
+np.float64,0xffb632097a2c6410,0xfff0000000000000,1
+np.float64,0xbfcb5ae84b36b5d0,0xbfcb905613af55b8,1
+np.float64,0xbfe7b926402f724c,0xbfe9f4f0be6aacc3,1
+np.float64,0x80081840b3f03082,0x80081840b3f03082,1
+np.float64,0x3fe767a656eecf4d,0x3fe98c53b4779de7,1
+np.float64,0x8005834c088b0699,0x8005834c088b0699,1
+np.float64,0x80074e92658e9d26,0x80074e92658e9d26,1
+np.float64,0x80045d60c268bac2,0x80045d60c268bac2,1
+np.float64,0xffb9aecfe8335da0,0xfff0000000000000,1
+np.float64,0x7fcad3e1cd35a7c3,0x7ff0000000000000,1
+np.float64,0xbf881853d03030c0,0xbf8818783e28fc87,1
+np.float64,0xe18c6d23c318e,0xe18c6d23c318e,1
+np.float64,0x7fcb367b8f366cf6,0x7ff0000000000000,1
+np.float64,0x5c13436cb8269,0x5c13436cb8269,1
+np.float64,0xffe5399938aa7332,0xfff0000000000000,1
+np.float64,0xbfdc45dbc3b88bb8,0xbfdd33958222c27e,1
+np.float64,0xbfd714691bae28d2,0xbfd7954edbef810b,1
+np.float64,0xbfdf18b02b3e3160,0xbfe02ad13634c651,1
+np.float64,0x8003e6f276e7cde6,0x8003e6f276e7cde6,1
+np.float64,0x3febb6b412776d68,0x3fef4f753def31f9,1
+np.float64,0x7fe016a3b4a02d46,0x7ff0000000000000,1
+np.float64,0x3fdc899ac7b91336,0x3fdd7e1cee1cdfc8,1
+np.float64,0x800219271e24324f,0x800219271e24324f,1
+np.float64,0x1529d93e2a53c,0x1529d93e2a53c,1
+np.float64,0x800d5bc827fab790,0x800d5bc827fab790,1
+np.float64,0x3e1495107c293,0x3e1495107c293,1
+np.float64,0x3fe89da0f2b13b42,0x3feb1dc1f3015ad7,1
+np.float64,0x800ba8c17b975183,0x800ba8c17b975183,1
+np.float64,0x8002dacf0265b59f,0x8002dacf0265b59f,1
+np.float64,0xffe6d0a4cc2da149,0xfff0000000000000,1
+np.float64,0x3fdf23fe82be47fc,0x3fe03126d8e2b309,1
+np.float64,0xffe41b1f1c28363e,0xfff0000000000000,1
+np.float64,0xbfd635c634ac6b8c,0xbfd6a8966da6adaa,1
+np.float64,0x800755bc08eeab79,0x800755bc08eeab79,1
+np.float64,0x800ba4c47c374989,0x800ba4c47c374989,1
+np.float64,0x7fec9f7649793eec,0x7ff0000000000000,1
+np.float64,0x7fdbf45738b7e8ad,0x7ff0000000000000,1
+np.float64,0x3f5597f07eab4,0x3f5597f07eab4,1
+np.float64,0xbfbf4599183e8b30,0xbfbf5985d8c65097,1
+np.float64,0xbf5b200580364000,0xbf5b2006501b21ae,1
+np.float64,0x7f91868370230d06,0x7ff0000000000000,1
+np.float64,0x3838e2a67071d,0x3838e2a67071d,1
+np.float64,0xffefe3ff5d3fc7fe,0xfff0000000000000,1
+np.float64,0xffe66b26d06cd64d,0xfff0000000000000,1
+np.float64,0xbfd830a571b0614a,0xbfd8c526927c742c,1
+np.float64,0x7fe8442122f08841,0x7ff0000000000000,1
+np.float64,0x800efa8c637df519,0x800efa8c637df519,1
+np.float64,0xf0026835e004d,0xf0026835e004d,1
+np.float64,0xffb11beefe2237e0,0xfff0000000000000,1
+np.float64,0x3fef9bbb327f3776,0x3ff2809f10641c32,1
+np.float64,0x350595306a0b3,0x350595306a0b3,1
+np.float64,0xf7f6538befecb,0xf7f6538befecb,1
+np.float64,0xffe36379c4a6c6f3,0xfff0000000000000,1
+np.float64,0x28b1d82e5163c,0x28b1d82e5163c,1
+np.float64,0x70a3d804e147c,0x70a3d804e147c,1
+np.float64,0xffd96c1bc9b2d838,0xfff0000000000000,1
+np.float64,0xffce8e00893d1c00,0xfff0000000000000,1
+np.float64,0x800f2bdcb25e57b9,0x800f2bdcb25e57b9,1
+np.float64,0xbfe0d9c63361b38c,0xbfe1a3eb02192b76,1
+np.float64,0xbfdc7b8711b8f70e,0xbfdd6e9db3a01e51,1
+np.float64,0x99e22ec133c46,0x99e22ec133c46,1
+np.float64,0xffeaef6ddab5dedb,0xfff0000000000000,1
+np.float64,0x7fe89c22c0f13845,0x7ff0000000000000,1
+np.float64,0x8002d5207de5aa42,0x8002d5207de5aa42,1
+np.float64,0x3fd1b13353236267,0x3fd1eb1b9345dfca,1
+np.float64,0x800ccae0a41995c1,0x800ccae0a41995c1,1
+np.float64,0x3fdbdaba38b7b574,0x3fdcbdfcbca37ce6,1
+np.float64,0x5b06d12cb60db,0x5b06d12cb60db,1
+np.float64,0xffd52262752a44c4,0xfff0000000000000,1
+np.float64,0x5a17f050b42ff,0x5a17f050b42ff,1
+np.float64,0x3d24205e7a485,0x3d24205e7a485,1
+np.float64,0x7fbed4dec63da9bd,0x7ff0000000000000,1
+np.float64,0xbfe56e9776aadd2f,0xbfe71212863c284f,1
+np.float64,0x7fea0bc952341792,0x7ff0000000000000,1
+np.float64,0x800f692d139ed25a,0x800f692d139ed25a,1
+np.float64,0xffdb63feab36c7fe,0xfff0000000000000,1
+np.float64,0x3fe1c2297fe38452,0x3fe2af21293c9571,1
+np.float64,0x7fede384747bc708,0x7ff0000000000000,1
+np.float64,0x800440169288802e,0x800440169288802e,1
+np.float64,0xffe3241eeb26483e,0xfff0000000000000,1
+np.float64,0xffe28f3879651e70,0xfff0000000000000,1
+np.float64,0xa435cbc1486d,0xa435cbc1486d,1
+np.float64,0x7fe55e08db6abc11,0x7ff0000000000000,1
+np.float64,0x1405e624280be,0x1405e624280be,1
+np.float64,0x3fd861bdf0b0c37c,0x3fd8f9d2e33e45e5,1
+np.float64,0x3feeb67cdc3d6cfa,0x3ff1d337d81d1c14,1
+np.float64,0x3fd159a10e22b342,0x3fd1903be7c2ea0c,1
+np.float64,0x3fd84626bc308c4d,0x3fd8dc373645e65b,1
+np.float64,0xffd3da81d9a7b504,0xfff0000000000000,1
+np.float64,0xbfd4a768b8294ed2,0xbfd503aa7c240051,1
+np.float64,0x3fe3059f2a660b3e,0x3fe42983e0c6bb2e,1
+np.float64,0x3fe3b8353827706a,0x3fe4fdd635c7269b,1
+np.float64,0xbfe4af0399695e07,0xbfe6277d9002b46c,1
+np.float64,0xbfd7e18a92afc316,0xbfd87066b54c4fe6,1
+np.float64,0x800432bcab48657a,0x800432bcab48657a,1
+np.float64,0x80033d609d267ac2,0x80033d609d267ac2,1
+np.float64,0x7fef5f758e7ebeea,0x7ff0000000000000,1
+np.float64,0xbfed7833dbfaf068,0xbff0e85bf45a5ebc,1
+np.float64,0x3fe2283985a45073,0x3fe325b0a9099c74,1
+np.float64,0xe820b4b3d0417,0xe820b4b3d0417,1
+np.float64,0x8003ecb72aa7d96f,0x8003ecb72aa7d96f,1
+np.float64,0xbfeab2c755b5658f,0xbfede7c83e92a625,1
+np.float64,0xbfc7b287f72f6510,0xbfc7d53ef2ffe9dc,1
+np.float64,0xffd9a41d0f33483a,0xfff0000000000000,1
+np.float64,0x3fd3a5b6e3a74b6c,0x3fd3f516f39a4725,1
+np.float64,0x800bc72091578e42,0x800bc72091578e42,1
+np.float64,0x800ff405ce9fe80c,0x800ff405ce9fe80c,1
+np.float64,0x57918600af24,0x57918600af24,1
+np.float64,0x2a5be7fa54b7e,0x2a5be7fa54b7e,1
+np.float64,0xbfdca7886bb94f10,0xbfdd9f142b5b43e4,1
+np.float64,0xbfe216993ee42d32,0xbfe3112936590995,1
+np.float64,0xbfe06bd9cf20d7b4,0xbfe126cd353ab42f,1
+np.float64,0x8003e6c31827cd87,0x8003e6c31827cd87,1
+np.float64,0x8005f37d810be6fc,0x8005f37d810be6fc,1
+np.float64,0x800715b081ae2b62,0x800715b081ae2b62,1
+np.float64,0x3fef94c35bff2986,0x3ff27b4bed2f4051,1
+np.float64,0x6f5798e0deb0,0x6f5798e0deb0,1
+np.float64,0x3fcef1f05c3de3e1,0x3fcf3f557550598f,1
+np.float64,0xbf9a91c400352380,0xbf9a92876273b85c,1
+np.float64,0x3fc9143f7f322880,0x3fc93d678c05d26b,1
+np.float64,0x78ad847af15b1,0x78ad847af15b1,1
+np.float64,0x8000fdc088c1fb82,0x8000fdc088c1fb82,1
+np.float64,0x800200fd304401fb,0x800200fd304401fb,1
+np.float64,0x7fb8ab09dc315613,0x7ff0000000000000,1
+np.float64,0x3fe949771b7292ee,0x3fec00891c3fc5a2,1
+np.float64,0xbfc54cae0e2a995c,0xbfc565e0f3d0e3af,1
+np.float64,0xffd546161e2a8c2c,0xfff0000000000000,1
+np.float64,0x800fe1d1279fc3a2,0x800fe1d1279fc3a2,1
+np.float64,0x3fd9c45301b388a8,0x3fda77fa1f4c79bf,1
+np.float64,0x7fe10ff238221fe3,0x7ff0000000000000,1
+np.float64,0xbfbc2181ae384300,0xbfbc3002229155c4,1
+np.float64,0xbfe7bbfae4ef77f6,0xbfe9f895e91f468d,1
+np.float64,0x800d3d994f7a7b33,0x800d3d994f7a7b33,1
+np.float64,0xffe6e15a896dc2b4,0xfff0000000000000,1
+np.float64,0x800e6b6c8abcd6d9,0x800e6b6c8abcd6d9,1
+np.float64,0xbfd862c938b0c592,0xbfd8faf1cdcb09db,1
+np.float64,0xffe2411f8464823e,0xfff0000000000000,1
+np.float64,0xffd0b32efaa1665e,0xfff0000000000000,1
+np.float64,0x3ac4ace475896,0x3ac4ace475896,1
+np.float64,0xf9c3a7ebf3875,0xf9c3a7ebf3875,1
+np.float64,0xdb998ba5b7332,0xdb998ba5b7332,1
+np.float64,0xbfe438a14fe87142,0xbfe5981751e4c5cd,1
+np.float64,0xbfbcf48cbc39e918,0xbfbd045d60e65d3a,1
+np.float64,0x7fde499615bc932b,0x7ff0000000000000,1
+np.float64,0x800bba269057744e,0x800bba269057744e,1
+np.float64,0x3fc9bb1ba3337638,0x3fc9e78fdb6799c1,1
+np.float64,0xffd9f974fbb3f2ea,0xfff0000000000000,1
+np.float64,0x7fcf1ad1693e35a2,0x7ff0000000000000,1
+np.float64,0x7fe5dcedd32bb9db,0x7ff0000000000000,1
+np.float64,0xeb06500bd60ca,0xeb06500bd60ca,1
+np.float64,0x7fd73e7b592e7cf6,0x7ff0000000000000,1
+np.float64,0xbfe9d91ae873b236,0xbfecc08482849bcd,1
+np.float64,0xffc85338b730a670,0xfff0000000000000,1
+np.float64,0x7fbba41eee37483d,0x7ff0000000000000,1
+np.float64,0x3fed5624fb7aac4a,0x3ff0cf9f0de1fd54,1
+np.float64,0xffe566d80d6acdb0,0xfff0000000000000,1
+np.float64,0x3fd4477884a88ef1,0x3fd49ec7acdd25a0,1
+np.float64,0x3fcb98c5fd37318c,0x3fcbcfa20e2c2712,1
+np.float64,0xffdeba71d5bd74e4,0xfff0000000000000,1
+np.float64,0x8001edc59dc3db8c,0x8001edc59dc3db8c,1
+np.float64,0x3fe6b09e896d613e,0x3fe8a3bb541ec0e3,1
+np.float64,0x3fe8694b4970d296,0x3fead94d271d05cf,1
+np.float64,0xb52c27bf6a585,0xb52c27bf6a585,1
+np.float64,0x7fcb0a21d9361443,0x7ff0000000000000,1
+np.float64,0xbfd9efc68cb3df8e,0xbfdaa7058c0ccbd1,1
+np.float64,0x8007cd170fef9a2f,0x8007cd170fef9a2f,1
+np.float64,0x3fe83325e770664c,0x3fea92c55c9d567e,1
+np.float64,0x800bd0085537a011,0x800bd0085537a011,1
+np.float64,0xffe05b9e7820b73c,0xfff0000000000000,1
+np.float64,0x3fea4ce4347499c8,0x3fed5cea9fdc541b,1
+np.float64,0x7fe08aae1921155b,0x7ff0000000000000,1
+np.float64,0x3fe7a5e7deef4bd0,0x3fe9dc2e20cfb61c,1
+np.float64,0xbfe0ccc8e6e19992,0xbfe195175f32ee3f,1
+np.float64,0xbfe8649717f0c92e,0xbfead3298974dcf0,1
+np.float64,0x7fed6c5308bad8a5,0x7ff0000000000000,1
+np.float64,0xffdbd8c7af37b190,0xfff0000000000000,1
+np.float64,0xbfb2bc4d06257898,0xbfb2c09569912839,1
+np.float64,0x3fc62eca512c5d95,0x3fc64b4251bce8f9,1
+np.float64,0xbfcae2ddbd35c5bc,0xbfcb15971fc61312,1
+np.float64,0x18d26ce831a4f,0x18d26ce831a4f,1
+np.float64,0x7fe38b279267164e,0x7ff0000000000000,1
+np.float64,0x97e1d9ab2fc3b,0x97e1d9ab2fc3b,1
+np.float64,0xbfee8e4785fd1c8f,0xbff1b52d16807627,1
+np.float64,0xbfb189b4a6231368,0xbfb18d37e83860ee,1
+np.float64,0xffd435761ea86aec,0xfff0000000000000,1
+np.float64,0x3fe6c48ebced891e,0x3fe8bcea189c3867,1
+np.float64,0x7fdadd3678b5ba6c,0x7ff0000000000000,1
+np.float64,0x7fea8f15b7b51e2a,0x7ff0000000000000,1
+np.float64,0xbff0000000000000,0xbff2cd9fc44eb982,1
+np.float64,0x80004c071120980f,0x80004c071120980f,1
+np.float64,0x8005367adfea6cf6,0x8005367adfea6cf6,1
+np.float64,0x3fbdc9139a3b9220,0x3fbdda4aba667ce5,1
+np.float64,0x7fed5ee3ad7abdc6,0x7ff0000000000000,1
+np.float64,0x51563fb2a2ac9,0x51563fb2a2ac9,1
+np.float64,0xbfba7d26ce34fa50,0xbfba894229c50ea1,1
+np.float64,0x6c10db36d821c,0x6c10db36d821c,1
+np.float64,0xbfbdaec0d03b5d80,0xbfbdbfca6ede64f4,1
+np.float64,0x800a1cbe7414397d,0x800a1cbe7414397d,1
+np.float64,0x800ae6e7f2d5cdd0,0x800ae6e7f2d5cdd0,1
+np.float64,0x3fea63d3fef4c7a8,0x3fed7c1356688ddc,1
+np.float64,0xbfde1e3a88bc3c76,0xbfdf3dfb09cc2260,1
+np.float64,0xbfd082d75a2105ae,0xbfd0b1e28c84877b,1
+np.float64,0x7fea1e5e85f43cbc,0x7ff0000000000000,1
+np.float64,0xffe2237a1a6446f4,0xfff0000000000000,1
+np.float64,0x3fd1e2be8523c57d,0x3fd21e93dfd1bbc4,1
+np.float64,0x3fd1acd428a359a8,0x3fd1e6916a42bc3a,1
+np.float64,0x61a152f0c342b,0x61a152f0c342b,1
+np.float64,0xbfc61a6b902c34d8,0xbfc6369557690ba0,1
+np.float64,0x7fd1a84b1f235095,0x7ff0000000000000,1
+np.float64,0x1c5cc7e638b9a,0x1c5cc7e638b9a,1
+np.float64,0x8008039755f0072f,0x8008039755f0072f,1
+np.float64,0x80097532d6f2ea66,0x80097532d6f2ea66,1
+np.float64,0xbfc6d979a12db2f4,0xbfc6f89777c53f8f,1
+np.float64,0x8004293ab1085276,0x8004293ab1085276,1
+np.float64,0x3fc2af5c21255eb8,0x3fc2c05dc0652554,1
+np.float64,0xbfd9a5ab87b34b58,0xbfda56d1076abc98,1
+np.float64,0xbfebd360ba77a6c2,0xbfef779fd6595f9b,1
+np.float64,0xffd5313c43aa6278,0xfff0000000000000,1
+np.float64,0xbfe994a262b32945,0xbfec64b969852ed5,1
+np.float64,0x3fce01a52e3c034a,0x3fce48324eb29c31,1
+np.float64,0x56bd74b2ad7af,0x56bd74b2ad7af,1
+np.float64,0xb84093ff70813,0xb84093ff70813,1
+np.float64,0x7fe776df946eedbe,0x7ff0000000000000,1
+np.float64,0xbfe294ac2e652958,0xbfe3a480938afa26,1
+np.float64,0x7fe741b4d0ee8369,0x7ff0000000000000,1
+np.float64,0x800b7e8a1056fd15,0x800b7e8a1056fd15,1
+np.float64,0x7fd28f1269251e24,0x7ff0000000000000,1
+np.float64,0x8009d4492e73a893,0x8009d4492e73a893,1
+np.float64,0x3fe3f27fca67e500,0x3fe543aff825e244,1
+np.float64,0x3fd12447e5a24890,0x3fd158efe43c0452,1
+np.float64,0xbfd58df0f2ab1be2,0xbfd5f6d908e3ebce,1
+np.float64,0xffc0a8e4642151c8,0xfff0000000000000,1
+np.float64,0xbfedb197787b632f,0xbff112367ec9d3e7,1
+np.float64,0xffdde07a7f3bc0f4,0xfff0000000000000,1
+np.float64,0x3fe91f3e5b723e7d,0x3febc886a1d48364,1
+np.float64,0x3fe50415236a082a,0x3fe68f43a5468d8c,1
+np.float64,0xd9a0c875b3419,0xd9a0c875b3419,1
+np.float64,0xbfee04ccf4bc099a,0xbff14f4740a114cf,1
+np.float64,0xbfd2bcc6a125798e,0xbfd30198b1e7d7ed,1
+np.float64,0xbfeb3c16f8f6782e,0xbfeea4ce47d09f58,1
+np.float64,0xffd3ba19e4a77434,0xfff0000000000000,1
+np.float64,0x8010000000000000,0x8010000000000000,1
+np.float64,0x3fdef0a642bde14d,0x3fe0146677b3a488,1
+np.float64,0x3fdc3dd0a2b87ba0,0x3fdd2abe65651487,1
+np.float64,0x3fdbb1fd47b763fb,0x3fdc915a2fd19f4b,1
+np.float64,0x7fbaa375e63546eb,0x7ff0000000000000,1
+np.float64,0x433ef8ee867e0,0x433ef8ee867e0,1
+np.float64,0xf5345475ea68b,0xf5345475ea68b,1
+np.float64,0xa126419b424c8,0xa126419b424c8,1
+np.float64,0x3fe0057248200ae5,0x3fe0b2f488339709,1
+np.float64,0xffc5e3b82f2bc770,0xfff0000000000000,1
+np.float64,0xffb215c910242b90,0xfff0000000000000,1
+np.float64,0xbfeba4ae0837495c,0xbfef3642e4b54aac,1
+np.float64,0xffbb187ebe363100,0xfff0000000000000,1
+np.float64,0x3fe4c6a496a98d49,0x3fe64440cdf06aab,1
+np.float64,0x800767a28f6ecf46,0x800767a28f6ecf46,1
+np.float64,0x3fdbed63b1b7dac8,0x3fdcd27318c0b683,1
+np.float64,0x80006d8339e0db07,0x80006d8339e0db07,1
+np.float64,0x8000b504f0416a0b,0x8000b504f0416a0b,1
+np.float64,0xbfe88055bfb100ac,0xbfeaf767bd2767b9,1
+np.float64,0x3fefe503317fca06,0x3ff2b8d4057240c8,1
+np.float64,0x7fe307538b660ea6,0x7ff0000000000000,1
+np.float64,0x944963c12892d,0x944963c12892d,1
+np.float64,0xbfd2c20b38a58416,0xbfd30717900f8233,1
+np.float64,0x7feed04e3e3da09b,0x7ff0000000000000,1
+np.float64,0x3fe639619cac72c3,0x3fe80de7b8560a8d,1
+np.float64,0x3fde066c66bc0cd9,0x3fdf237fb759a652,1
+np.float64,0xbfc56b22b52ad644,0xbfc584c267a47ebd,1
+np.float64,0x3fc710d5b12e21ab,0x3fc730d817ba0d0c,1
+np.float64,0x3fee1dfc347c3bf8,0x3ff161d9c3e15f68,1
+np.float64,0x3fde400954bc8013,0x3fdf639e5cc9e7a9,1
+np.float64,0x56e701f8adce1,0x56e701f8adce1,1
+np.float64,0xbfe33bbc89e67779,0xbfe46996b39381fe,1
+np.float64,0x7fec89e2f87913c5,0x7ff0000000000000,1
+np.float64,0xbfdad58b40b5ab16,0xbfdba098cc0ad5d3,1
+np.float64,0x3fe99c76a13338ed,0x3fec6f31bae613e7,1
+np.float64,0x3fe4242a29a84854,0x3fe57f6b45e5c0ef,1
+np.float64,0xbfe79d3199ef3a63,0xbfe9d0fb96c846ba,1
+np.float64,0x7ff8000000000000,0x7ff8000000000000,1
+np.float64,0xbfeb35a6cf766b4e,0xbfee9be4e7e943f7,1
+np.float64,0x3e047f267c091,0x3e047f267c091,1
+np.float64,0x4bf1376a97e28,0x4bf1376a97e28,1
+np.float64,0x800ef419685de833,0x800ef419685de833,1
+np.float64,0x3fe0efa61a21df4c,0x3fe1bce98baf2f0f,1
+np.float64,0x3fcc13c4d738278a,0x3fcc4d8c778bcaf7,1
+np.float64,0x800f1d291afe3a52,0x800f1d291afe3a52,1
+np.float64,0x3fd3f10e6da7e21d,0x3fd444106761ea1d,1
+np.float64,0x800706d6d76e0dae,0x800706d6d76e0dae,1
+np.float64,0xffa1ffbc9023ff80,0xfff0000000000000,1
+np.float64,0xbfe098f26d6131e5,0xbfe15a08a5f3eac0,1
+np.float64,0x3fe984f9cc7309f4,0x3fec4fcdbdb1cb9b,1
+np.float64,0x7fd7c2f1eaaf85e3,0x7ff0000000000000,1
+np.float64,0x800a8adb64f515b7,0x800a8adb64f515b7,1
+np.float64,0x80060d3ffc8c1a81,0x80060d3ffc8c1a81,1
+np.float64,0xbfec37e4aef86fc9,0xbff0029a6a1d61e2,1
+np.float64,0x800b21bcfcf6437a,0x800b21bcfcf6437a,1
+np.float64,0xbfc08facc1211f58,0xbfc09b8380ea8032,1
+np.float64,0xffebb4b52577696a,0xfff0000000000000,1
+np.float64,0x800b08096df61013,0x800b08096df61013,1
+np.float64,0x8000000000000000,0x8000000000000000,1
+np.float64,0xffd2f0c9c8a5e194,0xfff0000000000000,1
+np.float64,0xffe78b2299af1644,0xfff0000000000000,1
+np.float64,0x7fd0444794a0888e,0x7ff0000000000000,1
+np.float64,0x307c47b460f8a,0x307c47b460f8a,1
+np.float64,0xffe6b4c851ad6990,0xfff0000000000000,1
+np.float64,0xffe1877224a30ee4,0xfff0000000000000,1
+np.float64,0x48d7b5c091af7,0x48d7b5c091af7,1
+np.float64,0xbfa1dc6b1c23b8d0,0xbfa1dd5889e1b7da,1
+np.float64,0x3fe5004737ea008e,0x3fe68a9c310b08c1,1
+np.float64,0x7fec5f0742b8be0e,0x7ff0000000000000,1
+np.float64,0x3fd0a86285a150c5,0x3fd0d8b238d557fa,1
+np.float64,0x7fed60380efac06f,0x7ff0000000000000,1
+np.float64,0xeeca74dfdd94f,0xeeca74dfdd94f,1
+np.float64,0x3fda05aaa8b40b54,0x3fdabebdbf405e84,1
+np.float64,0x800e530ceb1ca61a,0x800e530ceb1ca61a,1
+np.float64,0x800b3866379670cd,0x800b3866379670cd,1
+np.float64,0xffedb3e7fa3b67cf,0xfff0000000000000,1
+np.float64,0xffdfa4c0713f4980,0xfff0000000000000,1
+np.float64,0x7fe4679e0728cf3b,0x7ff0000000000000,1
+np.float64,0xffe978611ef2f0c2,0xfff0000000000000,1
+np.float64,0x7fc9f4601f33e8bf,0x7ff0000000000000,1
+np.float64,0x3fd4942de6a9285c,0x3fd4ef6e089357dd,1
+np.float64,0x3faafe064435fc00,0x3fab0139cd6564dc,1
+np.float64,0x800d145a519a28b5,0x800d145a519a28b5,1
+np.float64,0xbfd82636f2304c6e,0xbfd8b9f75ddd2f02,1
+np.float64,0xbfdf2e975e3e5d2e,0xbfe037174280788c,1
+np.float64,0x7fd7051d7c2e0a3a,0x7ff0000000000000,1
+np.float64,0x8007933d452f267b,0x8007933d452f267b,1
+np.float64,0xb2043beb64088,0xb2043beb64088,1
+np.float64,0x3febfd9708f7fb2e,0x3fefb2ef090f18d2,1
+np.float64,0xffd9bc6bc83378d8,0xfff0000000000000,1
+np.float64,0xc10f9fd3821f4,0xc10f9fd3821f4,1
+np.float64,0x3fe3c83413a79068,0x3fe510fa1dd8edf7,1
+np.float64,0x3fbe26ccda3c4da0,0x3fbe38a892279975,1
+np.float64,0x3fcc1873103830e6,0x3fcc5257a6ae168d,1
+np.float64,0xe7e000e9cfc00,0xe7e000e9cfc00,1
+np.float64,0xffda73852bb4e70a,0xfff0000000000000,1
+np.float64,0xbfe831be19f0637c,0xbfea90f1b34da3e5,1
+np.float64,0xbfeb568f3076ad1e,0xbfeec97eebfde862,1
+np.float64,0x510a6ad0a214e,0x510a6ad0a214e,1
+np.float64,0x3fe6ba7e35ed74fc,0x3fe8b032a9a28c6a,1
+np.float64,0xffeb5cdcff76b9b9,0xfff0000000000000,1
+np.float64,0x4f0a23e89e145,0x4f0a23e89e145,1
+np.float64,0x446ec20288dd9,0x446ec20288dd9,1
+np.float64,0x7fe2521b02e4a435,0x7ff0000000000000,1
+np.float64,0x8001cd2969e39a54,0x8001cd2969e39a54,1
+np.float64,0x3fdfe90600bfd20c,0x3fe09fdcca10001c,1
+np.float64,0x7fd660c5762cc18a,0x7ff0000000000000,1
+np.float64,0xbfb11b23aa223648,0xbfb11e661949b377,1
+np.float64,0x800e025285fc04a5,0x800e025285fc04a5,1
+np.float64,0xffb180bb18230178,0xfff0000000000000,1
+np.float64,0xaaf590df55eb2,0xaaf590df55eb2,1
+np.float64,0xbfe8637d9df0c6fb,0xbfead1ba429462ec,1
+np.float64,0x7fd2577866a4aef0,0x7ff0000000000000,1
+np.float64,0xbfcfb2ab5a3f6558,0xbfd002ee87f272b9,1
+np.float64,0x7fdd64ae2f3ac95b,0x7ff0000000000000,1
+np.float64,0xffd1a502c9234a06,0xfff0000000000000,1
+np.float64,0x7fc4be4b60297c96,0x7ff0000000000000,1
+np.float64,0xbfb46b712a28d6e0,0xbfb470fca9919172,1
+np.float64,0xffdef913033df226,0xfff0000000000000,1
+np.float64,0x3fd94a3545b2946b,0x3fd9f40431ce9f9c,1
+np.float64,0x7fef88a0b6ff1140,0x7ff0000000000000,1
+np.float64,0xbfbcc81876399030,0xbfbcd7a0ab6cb388,1
+np.float64,0x800a4acfdd9495a0,0x800a4acfdd9495a0,1
+np.float64,0xffe270b3d5e4e167,0xfff0000000000000,1
+np.float64,0xbfd23f601e247ec0,0xbfd27eeca50a49eb,1
+np.float64,0x7fec6e796a78dcf2,0x7ff0000000000000,1
+np.float64,0x3fb85e0c9630bc19,0x3fb867791ccd6c72,1
+np.float64,0x7fe49fc424a93f87,0x7ff0000000000000,1
+np.float64,0xbfe75a99fbaeb534,0xbfe97ba37663de4c,1
+np.float64,0xffe85011b630a023,0xfff0000000000000,1
+np.float64,0xffe5962e492b2c5c,0xfff0000000000000,1
+np.float64,0x6f36ed4cde6de,0x6f36ed4cde6de,1
+np.float64,0x3feb72170af6e42e,0x3feeefbe6f1a2084,1
+np.float64,0x80014d8d60629b1c,0x80014d8d60629b1c,1
+np.float64,0xbfe0eb40d321d682,0xbfe1b7e31f252bf1,1
+np.float64,0x31fe305663fc7,0x31fe305663fc7,1
+np.float64,0x3fd2cd6381a59ac7,0x3fd312edc9868a4d,1
+np.float64,0xffcf0720793e0e40,0xfff0000000000000,1
+np.float64,0xbfeef1ef133de3de,0xbff1ffd5e1a3b648,1
+np.float64,0xbfd01c787aa038f0,0xbfd0482be3158a01,1
+np.float64,0x3fda3607c5b46c10,0x3fdaf3301e217301,1
+np.float64,0xffda9a9911b53532,0xfff0000000000000,1
+np.float64,0x3fc0b37c392166f8,0x3fc0bfa076f3c43e,1
+np.float64,0xbfe06591c760cb24,0xbfe11fad179ea12c,1
+np.float64,0x8006e369c20dc6d4,0x8006e369c20dc6d4,1
+np.float64,0x3fdf2912a8be5224,0x3fe033ff74b92f4d,1
+np.float64,0xffc0feb07821fd60,0xfff0000000000000,1
+np.float64,0xa4b938c949727,0xa4b938c949727,1
+np.float64,0x8008fe676571fccf,0x8008fe676571fccf,1
+np.float64,0xbfdda68459bb4d08,0xbfdeb8faab34fcbc,1
+np.float64,0xbfda18b419343168,0xbfdad360ca52ec7c,1
+np.float64,0x3febcbae35b7975c,0x3fef6cd51c9ebc15,1
+np.float64,0x3fbec615f63d8c30,0x3fbed912ba729926,1
+np.float64,0x7f99a831c8335063,0x7ff0000000000000,1
+np.float64,0x3fe663e8826cc7d1,0x3fe84330bd9aada8,1
+np.float64,0x70a9f9e6e1540,0x70a9f9e6e1540,1
+np.float64,0x8a13a5db14275,0x8a13a5db14275,1
+np.float64,0x7fc4330a3b286613,0x7ff0000000000000,1
+np.float64,0xbfe580c6136b018c,0xbfe728806cc7a99a,1
+np.float64,0x8000000000000001,0x8000000000000001,1
+np.float64,0xffec079d5df80f3a,0xfff0000000000000,1
+np.float64,0x8e1173c31c22f,0x8e1173c31c22f,1
+np.float64,0x3fe088456d21108b,0x3fe14712ca414103,1
+np.float64,0x3fe1b76f73636edf,0x3fe2a2b658557112,1
+np.float64,0xbfd4a1dd162943ba,0xbfd4fdd45cae8fb8,1
+np.float64,0x7fd60b46c8ac168d,0x7ff0000000000000,1
+np.float64,0xffe36cc3b166d987,0xfff0000000000000,1
+np.float64,0x3fdc2ae0cfb855c0,0x3fdd15f026773151,1
+np.float64,0xbfc41aa203283544,0xbfc42fd1b145fdd5,1
+np.float64,0xffed90c55fbb218a,0xfff0000000000000,1
+np.float64,0x3fe67e3a9aecfc75,0x3fe86440db65b4f6,1
+np.float64,0x7fd12dbeaba25b7c,0x7ff0000000000000,1
+np.float64,0xbfe1267c0de24cf8,0xbfe1fbb611bdf1e9,1
+np.float64,0x22e5619645cad,0x22e5619645cad,1
+np.float64,0x7fe327c72ea64f8d,0x7ff0000000000000,1
+np.float64,0x7fd2c3f545a587ea,0x7ff0000000000000,1
+np.float64,0x7fc7b689372f6d11,0x7ff0000000000000,1
+np.float64,0xc5e140bd8bc28,0xc5e140bd8bc28,1
+np.float64,0x3fccb3627a3966c5,0x3fccf11b44fa4102,1
+np.float64,0xbfd2cf725c259ee4,0xbfd315138d0e5dca,1
+np.float64,0x10000000000000,0x10000000000000,1
+np.float64,0xbfd3dfa8b627bf52,0xbfd431d17b235477,1
+np.float64,0xbfb82124e6304248,0xbfb82a4b6d9c2663,1
+np.float64,0x3fdcd590d9b9ab22,0x3fddd1d548806347,1
+np.float64,0x7fdee0cd1b3dc199,0x7ff0000000000000,1
+np.float64,0x8004ebfc60a9d7fa,0x8004ebfc60a9d7fa,1
+np.float64,0x3fe8eb818b71d704,0x3feb842679806108,1
+np.float64,0xffdd5e8fe63abd20,0xfff0000000000000,1
+np.float64,0xbfe3efcbd9e7df98,0xbfe54071436645ee,1
+np.float64,0x3fd5102557aa204b,0x3fd57203d31a05b8,1
+np.float64,0x3fe6318af7ec6316,0x3fe8041a177cbf96,1
+np.float64,0x3fdf3cecdabe79da,0x3fe03f2084ffbc78,1
+np.float64,0x7fe0ab6673a156cc,0x7ff0000000000000,1
+np.float64,0x800037d5c6c06fac,0x800037d5c6c06fac,1
+np.float64,0xffce58b86a3cb170,0xfff0000000000000,1
+np.float64,0xbfe3455d6ce68abb,0xbfe475034cecb2b8,1
+np.float64,0x991b663d3236d,0x991b663d3236d,1
+np.float64,0x3fda82d37c3505a7,0x3fdb46973da05c12,1
+np.float64,0x3f9b736fa036e6df,0x3f9b74471c234411,1
+np.float64,0x8001c96525e392cb,0x8001c96525e392cb,1
+np.float64,0x7ff0000000000000,0x7ff0000000000000,1
+np.float64,0xbfaf59122c3eb220,0xbfaf5e15f8b272b0,1
+np.float64,0xbf9aa7d288354fa0,0xbf9aa897d2a40cb5,1
+np.float64,0x8004a43428694869,0x8004a43428694869,1
+np.float64,0x7feead476dbd5a8e,0x7ff0000000000000,1
+np.float64,0xffca150f81342a20,0xfff0000000000000,1
+np.float64,0x80047ec3bc88fd88,0x80047ec3bc88fd88,1
+np.float64,0xbfee3e5b123c7cb6,0xbff179c8b8334278,1
+np.float64,0x3fd172359f22e46b,0x3fd1a9ba6b1420a1,1
+np.float64,0x3fe8e5e242f1cbc5,0x3feb7cbcaefc4d5c,1
+np.float64,0x8007fb059a6ff60c,0x8007fb059a6ff60c,1
+np.float64,0xe3899e71c7134,0xe3899e71c7134,1
+np.float64,0x7fe3b98326a77305,0x7ff0000000000000,1
+np.float64,0x7fec4e206cb89c40,0x7ff0000000000000,1
+np.float64,0xbfa3b012c4276020,0xbfa3b150c13b3cc5,1
+np.float64,0xffefffffffffffff,0xfff0000000000000,1
+np.float64,0xffe28a5b9aa514b6,0xfff0000000000000,1
+np.float64,0xbfd76a6cc2aed4da,0xbfd7f10f4d04e7f6,1
+np.float64,0xbc2b1c0178564,0xbc2b1c0178564,1
+np.float64,0x6d9d444adb3a9,0x6d9d444adb3a9,1
+np.float64,0xbfdcadd368395ba6,0xbfdda6037b5c429c,1
+np.float64,0x3fe11891fde23124,0x3fe1ebc1c204b14b,1
+np.float64,0x3fdd66c3eebacd88,0x3fde72526b5304c4,1
+np.float64,0xbfe79d85612f3b0b,0xbfe9d1673bd1f6d6,1
+np.float64,0x3fed60abdabac158,0x3ff0d7426b3800a2,1
+np.float64,0xbfb0ffa54021ff48,0xbfb102d81073a9f0,1
+np.float64,0xd2452af5a48a6,0xd2452af5a48a6,1
+np.float64,0xf4b835c1e971,0xf4b835c1e971,1
+np.float64,0x7e269cdafc4d4,0x7e269cdafc4d4,1
+np.float64,0x800097a21d812f45,0x800097a21d812f45,1
+np.float64,0x3fdfcc85e8bf990c,0x3fe08fcf770fd456,1
+np.float64,0xd8d53155b1aa6,0xd8d53155b1aa6,1
+np.float64,0x7fb8ed658831daca,0x7ff0000000000000,1
+np.float64,0xbfec865415b90ca8,0xbff03a4584d719f9,1
+np.float64,0xffd8cda62a319b4c,0xfff0000000000000,1
+np.float64,0x273598d84e6b4,0x273598d84e6b4,1
+np.float64,0x7fd566b5c32acd6b,0x7ff0000000000000,1
+np.float64,0xff61d9d48023b400,0xfff0000000000000,1
+np.float64,0xbfec5c3bf4f8b878,0xbff01c594243337c,1
+np.float64,0x7fd1be0561a37c0a,0x7ff0000000000000,1
+np.float64,0xffeaee3271b5dc64,0xfff0000000000000,1
+np.float64,0x800c0e1931b81c33,0x800c0e1931b81c33,1
+np.float64,0xbfad1171583a22e0,0xbfad1570e5c466d2,1
+np.float64,0x7fd783b0fe2f0761,0x7ff0000000000000,1
+np.float64,0x7fc39903e6273207,0x7ff0000000000000,1
+np.float64,0xffe00003c5600007,0xfff0000000000000,1
+np.float64,0x35a7b9c06b50,0x35a7b9c06b50,1
+np.float64,0x7fee441a22bc8833,0x7ff0000000000000,1
+np.float64,0xff6e47fbc03c9000,0xfff0000000000000,1
+np.float64,0xbfd3c3c9c8a78794,0xbfd41499b1912534,1
+np.float64,0x82c9c87f05939,0x82c9c87f05939,1
+np.float64,0xbfedeb0fe4fbd620,0xbff13c573ce9d3d0,1
+np.float64,0x2b79298656f26,0x2b79298656f26,1
+np.float64,0xbf5ee44f003dc800,0xbf5ee4503353c0ba,1
+np.float64,0xbfe1dd264e63ba4c,0xbfe2ce68116c7bf6,1
+np.float64,0x3fece10b7579c217,0x3ff07b21b11799c6,1
+np.float64,0x3fba47143a348e28,0x3fba52e601adf24c,1
+np.float64,0xffe9816e7a7302dc,0xfff0000000000000,1
+np.float64,0x8009a8047fd35009,0x8009a8047fd35009,1
+np.float64,0x800ac28e4e95851d,0x800ac28e4e95851d,1
+np.float64,0x80093facf4f27f5a,0x80093facf4f27f5a,1
+np.float64,0x3ff0000000000000,0x3ff2cd9fc44eb982,1
+np.float64,0x3fe76a9857eed530,0x3fe99018a5895a4f,1
+np.float64,0xbfd13c59a3a278b4,0xbfd171e133df0b16,1
+np.float64,0x7feb43bc83368778,0x7ff0000000000000,1
+np.float64,0xbfe2970c5fa52e18,0xbfe3a74a434c6efe,1
+np.float64,0xffd091c380212388,0xfff0000000000000,1
+np.float64,0x3febb3b9d2f76774,0x3fef4b4af2bd8580,1
+np.float64,0x7fec66787ef8ccf0,0x7ff0000000000000,1
+np.float64,0xbf935e185826bc40,0xbf935e640557a354,1
+np.float64,0x979df1552f3be,0x979df1552f3be,1
+np.float64,0x7fc096ee73212ddc,0x7ff0000000000000,1
+np.float64,0xbfe9de88faf3bd12,0xbfecc7d1ae691d1b,1
+np.float64,0x7fdc733f06b8e67d,0x7ff0000000000000,1
+np.float64,0xffd71be1a0ae37c4,0xfff0000000000000,1
+np.float64,0xb50dabd36a1b6,0xb50dabd36a1b6,1
+np.float64,0x7fce3d94d63c7b29,0x7ff0000000000000,1
+np.float64,0x7fbaf95e4435f2bc,0x7ff0000000000000,1
+np.float64,0x81a32a6f03466,0x81a32a6f03466,1
+np.float64,0xa99b5b4d5336c,0xa99b5b4d5336c,1
+np.float64,0x7f97c1eeb82f83dc,0x7ff0000000000000,1
+np.float64,0x3fe761636d6ec2c6,0x3fe98451160d2ffb,1
+np.float64,0xbfe3224ef5e6449e,0xbfe44b73eeadac52,1
+np.float64,0x7fde6feb0dbcdfd5,0x7ff0000000000000,1
+np.float64,0xbfee87f9ca7d0ff4,0xbff1b079e9d7f706,1
+np.float64,0x3fe46f4c9828de99,0x3fe5da2ab9609ea5,1
+np.float64,0xffb92fe882325fd0,0xfff0000000000000,1
+np.float64,0x80054bc63cea978d,0x80054bc63cea978d,1
+np.float64,0x3d988bea7b312,0x3d988bea7b312,1
+np.float64,0x3fe6468e1d6c8d1c,0x3fe81e64d37d39a8,1
+np.float64,0x3fd68eefc22d1de0,0x3fd7074264faeead,1
+np.float64,0xffb218a074243140,0xfff0000000000000,1
+np.float64,0x3fdbcb3b6cb79678,0x3fdcad011de40b7d,1
+np.float64,0x7fe3c161772782c2,0x7ff0000000000000,1
+np.float64,0x25575c904aaec,0x25575c904aaec,1
+np.float64,0x800fa43a8f5f4875,0x800fa43a8f5f4875,1
+np.float64,0x3fe41fc9e1e83f94,0x3fe57a25dd1a37f1,1
+np.float64,0x3fd895f4a7b12be9,0x3fd931e7b721a08a,1
+np.float64,0xce31469f9c629,0xce31469f9c629,1
+np.float64,0xffea0f55ca341eab,0xfff0000000000000,1
+np.float64,0xffe831c9ba306393,0xfff0000000000000,1
+np.float64,0x7fe2056f03a40add,0x7ff0000000000000,1
+np.float64,0x7fd6b075e02d60eb,0x7ff0000000000000,1
+np.float64,0x3fdfbef4273f7de8,0x3fe0882c1f59efc0,1
+np.float64,0x8005b9e094ab73c2,0x8005b9e094ab73c2,1
+np.float64,0x3fea881ac6351036,0x3fedad7a319b887c,1
+np.float64,0xbfe2c61c7ee58c39,0xbfe3de9a99d8a9c6,1
+np.float64,0x30b0d3786161b,0x30b0d3786161b,1
+np.float64,0x3fa51d56a02a3aad,0x3fa51edee2d2ecef,1
+np.float64,0x79745732f2e8c,0x79745732f2e8c,1
+np.float64,0x800d55b4907aab69,0x800d55b4907aab69,1
+np.float64,0xbfbe8fcf0a3d1fa0,0xbfbea267fbb5bfdf,1
+np.float64,0xbfd04e2756a09c4e,0xbfd07b74d079f9a2,1
+np.float64,0x3fc65170552ca2e1,0x3fc66e6eb00c82ed,1
+np.float64,0xbfb0674b8020ce98,0xbfb06a2b4771b64c,1
+np.float64,0x2059975840b34,0x2059975840b34,1
+np.float64,0x33d1385467a28,0x33d1385467a28,1
+np.float64,0x3fea41b74ff4836f,0x3fed4dc1a09e53cc,1
+np.float64,0xbfe8e08c9d71c119,0xbfeb75b4c59a6bec,1
+np.float64,0x7fdbbf14d6377e29,0x7ff0000000000000,1
+np.float64,0x3fcd8b71513b16e0,0x3fcdcec80174f9ad,1
+np.float64,0x5c50bc94b8a18,0x5c50bc94b8a18,1
+np.float64,0x969a18f52d343,0x969a18f52d343,1
+np.float64,0x3fd7ae44462f5c89,0x3fd8398bc34e395c,1
+np.float64,0xffdd0f8617ba1f0c,0xfff0000000000000,1
+np.float64,0xfff0000000000000,0xfff0000000000000,1
+np.float64,0xbfe2f9badb65f376,0xbfe41b771320ece8,1
+np.float64,0x3fd140bc7fa29,0x3fd140bc7fa29,1
+np.float64,0xbfe14523b5628a48,0xbfe21ee850972043,1
+np.float64,0x3feedd0336bdba06,0x3ff1f01afc1f3a06,1
+np.float64,0x800de423ad7bc848,0x800de423ad7bc848,1
+np.float64,0x4cef857c99df1,0x4cef857c99df1,1
+np.float64,0xbfea55e0e374abc2,0xbfed691e41d648dd,1
+np.float64,0x3fe70d7a18ae1af4,0x3fe91955a34d8094,1
+np.float64,0xbfc62fc3032c5f88,0xbfc64c3ec25decb8,1
+np.float64,0x3fc915abb5322b58,0x3fc93edac5cc73fe,1
+np.float64,0x69aaff66d3561,0x69aaff66d3561,1
+np.float64,0x5c6a90f2b8d53,0x5c6a90f2b8d53,1
+np.float64,0x3fefe30dc1bfc61c,0x3ff2b752257bdacd,1
+np.float64,0x3fef15db15fe2bb6,0x3ff21aea05601396,1
+np.float64,0xbfe353e5ac66a7cc,0xbfe48644e6553d1a,1
+np.float64,0x3fe6d30cffada61a,0x3fe8cf3e4c61ddac,1
+np.float64,0x7fb7857eb62f0afc,0x7ff0000000000000,1
+np.float64,0xbfdd9b53d23b36a8,0xbfdeac91a7af1340,1
+np.float64,0x3fd1456357228ac7,0x3fd17b3f7d39b27a,1
+np.float64,0x3fb57d10ae2afa21,0x3fb5838702b806f4,1
+np.float64,0x800c59c96c98b393,0x800c59c96c98b393,1
+np.float64,0x7fc1f2413823e481,0x7ff0000000000000,1
+np.float64,0xbfa3983624273070,0xbfa3996fa26c419a,1
+np.float64,0x7fb28874ae2510e8,0x7ff0000000000000,1
+np.float64,0x3fe826d02a304da0,0x3fea82bec50bc0b6,1
+np.float64,0x8008d6f0d3d1ade2,0x8008d6f0d3d1ade2,1
+np.float64,0xffe7c970ca2f92e1,0xfff0000000000000,1
+np.float64,0x7fcf42bcaa3e8578,0x7ff0000000000000,1
+np.float64,0x7fda1ab517343569,0x7ff0000000000000,1
+np.float64,0xbfe7926a65ef24d5,0xbfe9c323dd890d5b,1
+np.float64,0xbfcaf6282d35ec50,0xbfcb294f36a0a33d,1
+np.float64,0x800ca49df8d9493c,0x800ca49df8d9493c,1
+np.float64,0xffea18d26af431a4,0xfff0000000000000,1
+np.float64,0x3fb72f276e2e5e50,0x3fb7374539fd1221,1
+np.float64,0xffa6b613842d6c20,0xfff0000000000000,1
+np.float64,0xbfeb3c7263f678e5,0xbfeea54cdb60b54c,1
+np.float64,0x3fc976d2ba32eda5,0x3fc9a1e83a058de4,1
+np.float64,0xbfe4acd4b0e959aa,0xbfe624d5d4f9b9a6,1
+np.float64,0x7fca410a0f348213,0x7ff0000000000000,1
+np.float64,0xbfde368f77bc6d1e,0xbfdf5910c8c8bcb0,1
+np.float64,0xbfed7412937ae825,0xbff0e55afc428453,1
+np.float64,0xffef6b7b607ed6f6,0xfff0000000000000,1
+np.float64,0xbfb936f17e326de0,0xbfb941629a53c694,1
+np.float64,0x800dbb0c469b7619,0x800dbb0c469b7619,1
+np.float64,0x800f68b0581ed161,0x800f68b0581ed161,1
+np.float64,0x3fe25b2aad64b656,0x3fe361266fa9c5eb,1
+np.float64,0xbfb87e445a30fc88,0xbfb887d676910c3f,1
+np.float64,0x6e6ba9b6dcd76,0x6e6ba9b6dcd76,1
+np.float64,0x3fad27ce583a4f9d,0x3fad2bd72782ffdb,1
+np.float64,0xbfec0bc5d638178c,0xbfefc6e8c8f9095f,1
+np.float64,0x7fcba4a296374944,0x7ff0000000000000,1
+np.float64,0x8004ca237cc99448,0x8004ca237cc99448,1
+np.float64,0xffe85b8c3270b718,0xfff0000000000000,1
+np.float64,0x7fe7ee3eddafdc7d,0x7ff0000000000000,1
+np.float64,0xffd275967ca4eb2c,0xfff0000000000000,1
+np.float64,0xbfa95bc3a032b780,0xbfa95e6b288ecf43,1
+np.float64,0x3fc9e3214b33c643,0x3fca10667e7e7ff4,1
+np.float64,0x8001b89c5d837139,0x8001b89c5d837139,1
+np.float64,0xbf8807dfc0300fc0,0xbf880803e3badfbd,1
+np.float64,0x800aca94b895952a,0x800aca94b895952a,1
+np.float64,0x7fd79534a02f2a68,0x7ff0000000000000,1
+np.float64,0x3fe1b81179e37023,0x3fe2a371d8cc26f0,1
+np.float64,0x800699539d6d32a8,0x800699539d6d32a8,1
+np.float64,0xffe51dfbb3aa3bf7,0xfff0000000000000,1
+np.float64,0xbfdfb775abbf6eec,0xbfe083f48be2f98f,1
+np.float64,0x3fe87979d7b0f2f4,0x3feaee701d959079,1
+np.float64,0x3fd8e4e6a731c9cd,0x3fd986d29f25f982,1
+np.float64,0x3fe3dadaaf67b5b6,0x3fe527520fb02920,1
+np.float64,0x8003c2262bc7844d,0x8003c2262bc7844d,1
+np.float64,0x800c930add392616,0x800c930add392616,1
+np.float64,0xffb7a152a22f42a8,0xfff0000000000000,1
+np.float64,0x80028fe03dc51fc1,0x80028fe03dc51fc1,1
+np.float64,0xffe32ae60c6655cc,0xfff0000000000000,1
+np.float64,0x3fea3527e4746a50,0x3fed3cbbf47f18eb,1
+np.float64,0x800a53059e14a60c,0x800a53059e14a60c,1
+np.float64,0xbfd79e3b202f3c76,0xbfd828672381207b,1
+np.float64,0xffeed7e2eb7dafc5,0xfff0000000000000,1
+np.float64,0x3fec51ed6778a3db,0x3ff01509e34df61d,1
+np.float64,0xbfd84bc577b0978a,0xbfd8e23ec55e42e8,1
+np.float64,0x2483aff849077,0x2483aff849077,1
+np.float64,0x6f57883adeaf2,0x6f57883adeaf2,1
+np.float64,0xffd3fd74d927faea,0xfff0000000000000,1
+np.float64,0x7fca49ec773493d8,0x7ff0000000000000,1
+np.float64,0x7fd08fe2e8211fc5,0x7ff0000000000000,1
+np.float64,0x800852086db0a411,0x800852086db0a411,1
+np.float64,0x3fe5b1f2c9eb63e6,0x3fe7654f511bafc6,1
+np.float64,0xbfe01e2a58e03c54,0xbfe0cedb68f021e6,1
+np.float64,0x800988421d331085,0x800988421d331085,1
+np.float64,0xffd5038b18aa0716,0xfff0000000000000,1
+np.float64,0x8002c9264c85924d,0x8002c9264c85924d,1
+np.float64,0x3fd21ca302243946,0x3fd25ac653a71aab,1
+np.float64,0xbfea60d6e6f4c1ae,0xbfed78031d9dfa2b,1
+np.float64,0xffef97b6263f2f6b,0xfff0000000000000,1
+np.float64,0xbfd524732faa48e6,0xbfd5876ecc415dcc,1
+np.float64,0x660387e8cc072,0x660387e8cc072,1
+np.float64,0x7fcfc108a33f8210,0x7ff0000000000000,1
+np.float64,0x7febe5b0f877cb61,0x7ff0000000000000,1
+np.float64,0xbfa55fdfac2abfc0,0xbfa56176991851a8,1
+np.float64,0x25250f4c4a4a3,0x25250f4c4a4a3,1
+np.float64,0xffe2f6a2f2a5ed46,0xfff0000000000000,1
+np.float64,0x7fa754fcc02ea9f9,0x7ff0000000000000,1
+np.float64,0x3febd19dea37a33c,0x3fef75279f75d3b8,1
+np.float64,0xc5ed55218bdab,0xc5ed55218bdab,1
+np.float64,0x3fe72ff6b3ee5fed,0x3fe945388b979882,1
+np.float64,0xbfe16b854e22d70a,0xbfe24b10fc0dff14,1
+np.float64,0xffb22cbe10245980,0xfff0000000000000,1
+np.float64,0xa54246b54a849,0xa54246b54a849,1
+np.float64,0x3fe7f4cda76fe99c,0x3fea41edc74888b6,1
+np.float64,0x1,0x1,1
+np.float64,0x800d84acce9b095a,0x800d84acce9b095a,1
+np.float64,0xb0eef04761dde,0xb0eef04761dde,1
+np.float64,0x7ff4000000000000,0x7ffc000000000000,1
+np.float64,0xffecaf1dbb795e3b,0xfff0000000000000,1
+np.float64,0x90dbab8d21b76,0x90dbab8d21b76,1
+np.float64,0x3fe79584a9ef2b09,0x3fe9c71fa9e40eb5,1
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/data/umath-validation-set-tan.csv b/python/user_packages/Python313/site-packages/numpy/_core/tests/data/umath-validation-set-tan.csv
new file mode 100644
index 0000000000000000000000000000000000000000..3ce411ca6d220d4e26ef90ffcf254b8b3c3f683f
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/tests/data/umath-validation-set-tan.csv
@@ -0,0 +1,1429 @@
+dtype,input,output,ulperrortol
+np.float32,0xfd97ece0,0xc11186e9,4
+np.float32,0x8013bb34,0x8013bb34,4
+np.float32,0x316389,0x316389,4
+np.float32,0x7f7fffff,0xbf1c9eca,4
+np.float32,0x3f7674bb,0x3fb7e450,4
+np.float32,0x80800000,0x80800000,4
+np.float32,0x7f5995e8,0xbf94106c,4
+np.float32,0x74527,0x74527,4
+np.float32,0x7f08caea,0xbeceddb6,4
+np.float32,0x2d49b2,0x2d49b2,4
+np.float32,0x3f74e5e4,0x3fb58695,4
+np.float32,0x3f3fcd51,0x3f6e1e81,4
+np.float32,0xbf4f3608,0xbf864d3d,4
+np.float32,0xbed974a0,0xbee78c70,4
+np.float32,0xff5f483c,0x3ecf3cb2,4
+np.float32,0x7f4532f4,0xc0b96f7b,4
+np.float32,0x3f0a4f7c,0x3f198cc0,4
+np.float32,0x210193,0x210193,4
+np.float32,0xfeebad7a,0xbf92eba8,4
+np.float32,0xfed29f74,0xc134cab6,4
+np.float32,0x803433a0,0x803433a0,4
+np.float32,0x64eb46,0x64eb46,4
+np.float32,0xbf54ef22,0xbf8c757b,4
+np.float32,0x3f3d5fdd,0x3f69a17b,4
+np.float32,0x80000001,0x80000001,4
+np.float32,0x800a837a,0x800a837a,4
+np.float32,0x6ff0be,0x6ff0be,4
+np.float32,0xfe8f1186,0x3f518820,4
+np.float32,0x804963e5,0x804963e5,4
+np.float32,0xfebaa59a,0x3fa1dbb0,4
+np.float32,0x637970,0x637970,4
+np.float32,0x3e722a6b,0x3e76c89a,4
+np.float32,0xff2b0478,0xbddccb5f,4
+np.float32,0xbf7bd85b,0xbfc06821,4
+np.float32,0x3ec33600,0x3ecd4126,4
+np.float32,0x3e0a43b9,0x3e0b1c69,4
+np.float32,0x7f7511b6,0xbe427083,4
+np.float32,0x3f28c114,0x3f465a73,4
+np.float32,0x3f179e1c,0x3f2c3e7c,4
+np.float32,0x7b2963,0x7b2963,4
+np.float32,0x3f423d06,0x3f72b442,4
+np.float32,0x3f5a24c6,0x3f925508,4
+np.float32,0xff18c834,0xbf79b5c8,4
+np.float32,0x3f401ece,0x3f6eb6ac,4
+np.float32,0x7b8a3013,0xbffab968,4
+np.float32,0x80091ff0,0x80091ff0,4
+np.float32,0x3f389c51,0x3f610b47,4
+np.float32,0x5ea174,0x5ea174,4
+np.float32,0x807a9eb2,0x807a9eb2,4
+np.float32,0x806ce61e,0x806ce61e,4
+np.float32,0xbe956acc,0xbe99cefc,4
+np.float32,0x7e60e247,0xbf5e64a5,4
+np.float32,0x7f398e24,0x404d12ed,4
+np.float32,0x3d9049f8,0x3d908735,4
+np.float32,0x7db17ffc,0xbf5b3d87,4
+np.float32,0xff453f78,0xc0239c9f,4
+np.float32,0x3f024aac,0x3f0ed802,4
+np.float32,0xbe781c30,0xbe7d1508,4
+np.float32,0x3f77962a,0x3fb9a28e,4
+np.float32,0xff7fffff,0x3f1c9eca,4
+np.float32,0x3f7152e3,0x3fb03f9d,4
+np.float32,0xff7cb167,0x3f9ce831,4
+np.float32,0x3e763e30,0x3e7b1a10,4
+np.float32,0xbf126527,0xbf24c253,4
+np.float32,0x803f6660,0x803f6660,4
+np.float32,0xbf79de38,0xbfbd38b1,4
+np.float32,0x8046c2f0,0x8046c2f0,4
+np.float32,0x6dc74e,0x6dc74e,4
+np.float32,0xbec9c45e,0xbed4e768,4
+np.float32,0x3f0eedb6,0x3f1fe610,4
+np.float32,0x7e031999,0xbcc13026,4
+np.float32,0x7efc2fd7,0x41e4b284,4
+np.float32,0xbeab7454,0xbeb22a1b,4
+np.float32,0x805ee67b,0x805ee67b,4
+np.float32,0x7f76e58e,0xc2436659,4
+np.float32,0xbe62b024,0xbe667718,4
+np.float32,0x3eea0808,0x3efbd182,4
+np.float32,0xbf7fd00c,0xbfc70719,4
+np.float32,0x7f27b640,0xbf0d97e0,4
+np.float32,0x3f1b58a4,0x3f31b6f4,4
+np.float32,0x252a9f,0x252a9f,4
+np.float32,0x7f65f95a,0xbead5de3,4
+np.float32,0xfc6ea780,0x42d15801,4
+np.float32,0x7eac4c52,0xc0682424,4
+np.float32,0xbe8a3f5a,0xbe8db54d,4
+np.float32,0xbf1644e2,0xbf2a4abd,4
+np.float32,0x3fc96a,0x3fc96a,4
+np.float32,0x7f38c0e4,0x3cc04af8,4
+np.float32,0x3f623d75,0x3f9c065d,4
+np.float32,0x3ee6a51a,0x3ef7a058,4
+np.float32,0x3dd11020,0x3dd1cacf,4
+np.float32,0xb6918,0xb6918,4
+np.float32,0xfdd7a540,0x3f22f081,4
+np.float32,0x80798563,0x80798563,4
+np.float32,0x3e9a8b7a,0x3e9f6a7e,4
+np.float32,0xbea515d4,0xbeab0df5,4
+np.float32,0xbea9b9f4,0xbeb03abe,4
+np.float32,0xbf11a5fa,0xbf23b478,4
+np.float32,0xfd6cadf0,0xbfa2a878,4
+np.float32,0xbf6edd07,0xbfacbb78,4
+np.float32,0xff5c5328,0x3e2d1552,4
+np.float32,0xbea2f788,0xbea8b3f5,4
+np.float32,0x802efaeb,0x802efaeb,4
+np.float32,0xff1c85e5,0x41f8560e,4
+np.float32,0x3f53b123,0x3f8b18e1,4
+np.float32,0xff798c4a,0x4092e66f,4
+np.float32,0x7f2e6fe7,0xbdcbd58f,4
+np.float32,0xfe8a8196,0x3fd7fc56,4
+np.float32,0x5e7ad4,0x5e7ad4,4
+np.float32,0xbf23a02d,0xbf3e4533,4
+np.float32,0x3f31c55c,0x3f5531bf,4
+np.float32,0x80331be3,0x80331be3,4
+np.float32,0x8056960a,0x8056960a,4
+np.float32,0xff1c06ae,0xbfd26992,4
+np.float32,0xbe0cc4b0,0xbe0da96c,4
+np.float32,0x7e925ad5,0xbf8dba54,4
+np.float32,0x2c8cec,0x2c8cec,4
+np.float32,0x8011951e,0x8011951e,4
+np.float32,0x3f2caf84,0x3f4cb89f,4
+np.float32,0xbd32c220,0xbd32df33,4
+np.float32,0xbec358d6,0xbecd6996,4
+np.float32,0x3f6e4930,0x3fabeb92,4
+np.float32,0xbf6a3afd,0xbfa65a3a,4
+np.float32,0x80067764,0x80067764,4
+np.float32,0x3d8df1,0x3d8df1,4
+np.float32,0x7ee51cf2,0x409e4061,4
+np.float32,0x435f5d,0x435f5d,4
+np.float32,0xbf5b17f7,0xbf936ebe,4
+np.float32,0x3ecaacb5,0x3ed5f81f,4
+np.float32,0x807b0aa5,0x807b0aa5,4
+np.float32,0x52b40b,0x52b40b,4
+np.float32,0x146a97,0x146a97,4
+np.float32,0x7f42b952,0xbfdcb413,4
+np.float32,0xbf1a1af2,0xbf2fe1bb,4
+np.float32,0x3f312034,0x3f541aa2,4
+np.float32,0x3f281d60,0x3f4554f9,4
+np.float32,0x50e451,0x50e451,4
+np.float32,0xbe45838c,0xbe480016,4
+np.float32,0xff7d0aeb,0x3eb0746e,4
+np.float32,0x7f32a489,0xbf96af6d,4
+np.float32,0xbf1b4e27,0xbf31a769,4
+np.float32,0x3f242936,0x3f3f1a44,4
+np.float32,0xbf7482ff,0xbfb4f201,4
+np.float32,0x4bda38,0x4bda38,4
+np.float32,0xbf022208,0xbf0ea2bb,4
+np.float32,0x7d08ca95,0xbe904602,4
+np.float32,0x7ed2f356,0xc02b55ad,4
+np.float32,0xbf131204,0xbf25b734,4
+np.float32,0xff3464b4,0x3fb23706,4
+np.float32,0x5a97cf,0x5a97cf,4
+np.float32,0xbe52db70,0xbe55e388,4
+np.float32,0x3f52934f,0x3f89e2aa,4
+np.float32,0xfeea866a,0x40a2b33f,4
+np.float32,0x80333925,0x80333925,4
+np.float32,0xfef5d13e,0xc00139ec,4
+np.float32,0x3f4750ab,0x3f7c87ad,4
+np.float32,0x3e41bfdd,0x3e44185a,4
+np.float32,0xbf5b0572,0xbf935935,4
+np.float32,0xbe93c9da,0xbe9808d8,4
+np.float32,0x7f501f33,0xc0f9973c,4
+np.float32,0x800af035,0x800af035,4
+np.float32,0x3f29faf8,0x3f4852a8,4
+np.float32,0xbe1e4c20,0xbe1f920c,4
+np.float32,0xbf7e8616,0xbfc4d79d,4
+np.float32,0x43ffbf,0x43ffbf,4
+np.float32,0x7f28e8a9,0xbfa1ac24,4
+np.float32,0xbf1f9f92,0xbf3820bc,4
+np.float32,0x3f07e004,0x3f1641c4,4
+np.float32,0x3ef7ea7f,0x3f06a64a,4
+np.float32,0x7e013101,0x3f6080e6,4
+np.float32,0x7f122a4f,0xbf0a796f,4
+np.float32,0xfe096960,0x3ed7273a,4
+np.float32,0x3f06abf1,0x3f14a4b2,4
+np.float32,0x3e50ded3,0x3e53d0f1,4
+np.float32,0x7f50b346,0x3eabb536,4
+np.float32,0xff5adb0f,0xbd441972,4
+np.float32,0xbecefe46,0xbedb0f66,4
+np.float32,0x7da70bd4,0xbec66273,4
+np.float32,0x169811,0x169811,4
+np.float32,0xbee4dfee,0xbef5721a,4
+np.float32,0x3efbeae3,0x3f0936e6,4
+np.float32,0x8031bd61,0x8031bd61,4
+np.float32,0x8048e443,0x8048e443,4
+np.float32,0xff209aa6,0xbeb364cb,4
+np.float32,0xff477499,0x3c1b0041,4
+np.float32,0x803fe929,0x803fe929,4
+np.float32,0x3f70158b,0x3fae7725,4
+np.float32,0x7f795723,0x3e8e850a,4
+np.float32,0x3cba99,0x3cba99,4
+np.float32,0x80588d2a,0x80588d2a,4
+np.float32,0x805d1f05,0x805d1f05,4
+np.float32,0xff4ac09a,0xbefe614d,4
+np.float32,0x804af084,0x804af084,4
+np.float32,0x7c64ae63,0xc1a8b563,4
+np.float32,0x8078d793,0x8078d793,4
+np.float32,0x7f3e2436,0xbf8bf9d3,4
+np.float32,0x7ccec1,0x7ccec1,4
+np.float32,0xbf6462c7,0xbf9eb830,4
+np.float32,0x3f1002ca,0x3f216843,4
+np.float32,0xfe878ca6,0x409e73a5,4
+np.float32,0x3bd841d9,0x3bd842a7,4
+np.float32,0x7d406f41,0xbd9dcfa3,4
+np.float32,0x7c6d6,0x7c6d6,4
+np.float32,0x3f4ef360,0x3f86074b,4
+np.float32,0x805f534a,0x805f534a,4
+np.float32,0x1,0x1,4
+np.float32,0x3f739ee2,0x3fb39db2,4
+np.float32,0x3d0c2352,0x3d0c3153,4
+np.float32,0xfe8a4f2c,0x3edd8add,4
+np.float32,0x3e52eaa0,0x3e55f362,4
+np.float32,0x7bde9758,0xbf5ba5cf,4
+np.float32,0xff422654,0xbf41e487,4
+np.float32,0x385e5b,0x385e5b,4
+np.float32,0x5751dd,0x5751dd,4
+np.float32,0xff6c671c,0xc03e2d6d,4
+np.float32,0x1458be,0x1458be,4
+np.float32,0x80153d4d,0x80153d4d,4
+np.float32,0x7efd2adb,0x3e25458f,4
+np.float32,0xbe161880,0xbe172e12,4
+np.float32,0x7ecea1aa,0x40a66d79,4
+np.float32,0xbf5b02a2,0xbf9355f0,4
+np.float32,0x15d9ab,0x15d9ab,4
+np.float32,0x2dc7c7,0x2dc7c7,4
+np.float32,0xfebbf81a,0x4193f6e6,4
+np.float32,0xfe8e3594,0xc00a6695,4
+np.float32,0x185aa8,0x185aa8,4
+np.float32,0x3daea156,0x3daf0e00,4
+np.float32,0x3e071688,0x3e07e08e,4
+np.float32,0x802db9e6,0x802db9e6,4
+np.float32,0x7f7be2c4,0x3f1363dd,4
+np.float32,0x7eba3f5e,0xc13eb497,4
+np.float32,0x3de04a00,0x3de130a9,4
+np.float32,0xbf1022bc,0xbf2194eb,4
+np.float32,0xbf5b547e,0xbf93b53b,4
+np.float32,0x3e867bd6,0x3e89aa10,4
+np.float32,0xbea5eb5c,0xbeabfb73,4
+np.float32,0x7f1efae9,0x3ffca038,4
+np.float32,0xff5d0344,0xbe55dbbb,4
+np.float32,0x805167e7,0x805167e7,4
+np.float32,0xbdb3a020,0xbdb41667,4
+np.float32,0xbedea6b4,0xbeedd5fd,4
+np.float32,0x8053b45c,0x8053b45c,4
+np.float32,0x7ed370e9,0x3d90eba5,4
+np.float32,0xbefcd7da,0xbf09cf91,4
+np.float32,0x78b9ac,0x78b9ac,4
+np.float32,0xbf2f6dc0,0xbf5141ef,4
+np.float32,0x802d3a7b,0x802d3a7b,4
+np.float32,0xfd45d120,0x3fec31cc,4
+np.float32,0xbf7e7020,0xbfc4b2af,4
+np.float32,0xf04da,0xf04da,4
+np.float32,0xbe9819d4,0xbe9cbd35,4
+np.float32,0x8075ab35,0x8075ab35,4
+np.float32,0xbf052fdc,0xbf12aa2c,4
+np.float32,0x3f1530d0,0x3f28bd9f,4
+np.float32,0x80791881,0x80791881,4
+np.float32,0x67f309,0x67f309,4
+np.float32,0x3f12f16a,0x3f2588f5,4
+np.float32,0x3ecdac47,0x3ed97ff8,4
+np.float32,0xbf297fb7,0xbf478c39,4
+np.float32,0x8069fa80,0x8069fa80,4
+np.float32,0x807f940e,0x807f940e,4
+np.float32,0xbf648dc8,0xbf9eeecb,4
+np.float32,0x3de873b0,0x3de9748d,4
+np.float32,0x3f1aa645,0x3f30af1f,4
+np.float32,0xff227a62,0x3d8283cc,4
+np.float32,0xbf37187d,0xbf5e5f4c,4
+np.float32,0x803b1b1f,0x803b1b1f,4
+np.float32,0x3f58142a,0x3f8ff8da,4
+np.float32,0x8004339e,0x8004339e,4
+np.float32,0xbf0f5654,0xbf2077a4,4
+np.float32,0x3f17e509,0x3f2ca598,4
+np.float32,0x3f800000,0x3fc75923,4
+np.float32,0xfdf79980,0x42f13047,4
+np.float32,0x7f111381,0x3f13c4c9,4
+np.float32,0xbea40c70,0xbea9e724,4
+np.float32,0x110520,0x110520,4
+np.float32,0x60490d,0x60490d,4
+np.float32,0x3f6703ec,0x3fa21951,4
+np.float32,0xbf098256,0xbf187652,4
+np.float32,0x658951,0x658951,4
+np.float32,0x3f53bf16,0x3f8b2818,4
+np.float32,0xff451811,0xc0026068,4
+np.float32,0x80777ee0,0x80777ee0,4
+np.float32,0x3e4fcc19,0x3e52b286,4
+np.float32,0x7f387ee0,0x3ce93eb6,4
+np.float32,0xff51181f,0xbfca3ee4,4
+np.float32,0xbf5655ae,0xbf8e0304,4
+np.float32,0xff2f1dcd,0x40025471,4
+np.float32,0x7f6e58e5,0xbe9930d5,4
+np.float32,0x7adf11,0x7adf11,4
+np.float32,0xbe9a2bc2,0xbe9f0185,4
+np.float32,0x8065d3a0,0x8065d3a0,4
+np.float32,0x3ed6e826,0x3ee47c45,4
+np.float32,0x80598ea0,0x80598ea0,4
+np.float32,0x7f10b90a,0x40437bd0,4
+np.float32,0x27b447,0x27b447,4
+np.float32,0x7ecd861c,0x3fce250f,4
+np.float32,0x0,0x0,4
+np.float32,0xbeba82d6,0xbec3394c,4
+np.float32,0xbf4958b0,0xbf8048ea,4
+np.float32,0x7c643e,0x7c643e,4
+np.float32,0x580770,0x580770,4
+np.float32,0x805bf54a,0x805bf54a,4
+np.float32,0x7f1f3cee,0xbe1a54d6,4
+np.float32,0xfefefdea,0x3fa84576,4
+np.float32,0x7f007b7a,0x3e8a6d25,4
+np.float32,0xbf177959,0xbf2c0919,4
+np.float32,0xbf30fda0,0xbf53e058,4
+np.float32,0x3f0576be,0x3f130861,4
+np.float32,0x3f49380e,0x3f80283a,4
+np.float32,0xebc56,0xebc56,4
+np.float32,0x654e3b,0x654e3b,4
+np.float32,0x14a4d8,0x14a4d8,4
+np.float32,0xff69b3cb,0xbf822a88,4
+np.float32,0xbe9b6c1c,0xbea06109,4
+np.float32,0xbefddd7e,0xbf0a787b,4
+np.float32,0x4c4ebb,0x4c4ebb,4
+np.float32,0x7d0a74,0x7d0a74,4
+np.float32,0xbebb5f80,0xbec43635,4
+np.float32,0x7ee79723,0xc1c7f3f3,4
+np.float32,0x7f2be4c7,0xbfa6c693,4
+np.float32,0x805bc7d5,0x805bc7d5,4
+np.float32,0x8042f12c,0x8042f12c,4
+np.float32,0x3ef91be8,0x3f07697b,4
+np.float32,0x3cf37ac0,0x3cf38d1c,4
+np.float32,0x800000,0x800000,4
+np.float32,0xbe1ebf4c,0xbe200806,4
+np.float32,0x7f380862,0xbeb512e8,4
+np.float32,0xbe320064,0xbe33d0fc,4
+np.float32,0xff300b0c,0xbfadb805,4
+np.float32,0x308a06,0x308a06,4
+np.float32,0xbf084f6e,0xbf16d7b6,4
+np.float32,0xff47cab6,0x3f892b65,4
+np.float32,0xbed99f4a,0xbee7bfd5,4
+np.float32,0xff7d74c0,0x3ee88c9a,4
+np.float32,0x3c3d23,0x3c3d23,4
+np.float32,0x8074bde8,0x8074bde8,4
+np.float32,0x80042164,0x80042164,4
+np.float32,0x3e97c92a,0x3e9c6500,4
+np.float32,0x3b80e0,0x3b80e0,4
+np.float32,0xbf16646a,0xbf2a783d,4
+np.float32,0x7f3b4cb1,0xc01339be,4
+np.float32,0xbf31f36e,0xbf557fd0,4
+np.float32,0x7f540618,0xbe5f6fc1,4
+np.float32,0x7eee47d0,0x40a27e94,4
+np.float32,0x7f12f389,0xbebed654,4
+np.float32,0x56cff5,0x56cff5,4
+np.float32,0x8056032b,0x8056032b,4
+np.float32,0x3ed34e40,0x3ee02e38,4
+np.float32,0x7d51a908,0xbf19a90e,4
+np.float32,0x80000000,0x80000000,4
+np.float32,0xfdf73fd0,0xbf0f8cad,4
+np.float32,0x7ee4fe6d,0xbf1ea7e4,4
+np.float32,0x1f15ba,0x1f15ba,4
+np.float32,0xd18c3,0xd18c3,4
+np.float32,0x80797705,0x80797705,4
+np.float32,0x7ef07091,0x3f2f3b9a,4
+np.float32,0x7f552f41,0x3faf608c,4
+np.float32,0x3f779977,0x3fb9a7ad,4
+np.float32,0xfe1a7a50,0xbdadc4d1,4
+np.float32,0xbf449cf0,0xbf7740db,4
+np.float32,0xbe44e620,0xbe475cad,4
+np.float32,0x3f63a098,0x3f9dc2b5,4
+np.float32,0xfed40a12,0x4164533a,4
+np.float32,0x7a2bbb,0x7a2bbb,4
+np.float32,0xff7f7b9e,0xbeee8740,4
+np.float32,0x7ee27f8b,0x4233f53b,4
+np.float32,0xbf044c06,0xbf117c28,4
+np.float32,0xbeffde54,0xbf0bc49f,4
+np.float32,0xfeaef2e8,0x3ff258fe,4
+np.float32,0x527451,0x527451,4
+np.float32,0xbcef8d00,0xbcef9e7c,4
+np.float32,0xbf0e20c0,0xbf1ec9b2,4
+np.float32,0x8024afda,0x8024afda,4
+np.float32,0x7ef6cb3e,0x422cad0b,4
+np.float32,0x3c120,0x3c120,4
+np.float32,0xbf125c8f,0xbf24b62c,4
+np.float32,0x7e770a93,0x402c9d86,4
+np.float32,0xbd30a4e0,0xbd30c0ee,4
+np.float32,0xbf4d3388,0xbf843530,4
+np.float32,0x3f529072,0x3f89df92,4
+np.float32,0xff0270b1,0xbf81be9a,4
+np.float32,0x5e07e7,0x5e07e7,4
+np.float32,0x7bec32,0x7bec32,4
+np.float32,0x7fc00000,0x7fc00000,4
+np.float32,0x3e3ba5e0,0x3e3dc6e9,4
+np.float32,0x3ecb62d4,0x3ed6ce2c,4
+np.float32,0x3eb3dde8,0x3ebba68f,4
+np.float32,0x8063f952,0x8063f952,4
+np.float32,0x7f204aeb,0x3e88614e,4
+np.float32,0xbeae1ddc,0xbeb5278e,4
+np.float32,0x6829e9,0x6829e9,4
+np.float32,0xbf361a99,0xbf5ca354,4
+np.float32,0xbf24fbe6,0xbf406326,4
+np.float32,0x3f329d41,0x3f56a061,4
+np.float32,0xfed6d666,0x3e8f71a5,4
+np.float32,0x337f92,0x337f92,4
+np.float32,0xbe1c4970,0xbe1d8305,4
+np.float32,0xbe6b7e18,0xbe6fbbde,4
+np.float32,0x3f2267b9,0x3f3c61da,4
+np.float32,0xbee1ee94,0xbef1d628,4
+np.float32,0x7ecffc1a,0x3f02987e,4
+np.float32,0xbe9b1306,0xbe9fff3b,4
+np.float32,0xbeffacae,0xbf0ba468,4
+np.float32,0x7f800000,0xffc00000,4
+np.float32,0xfefc9aa8,0xc19de2a3,4
+np.float32,0x7d7185bb,0xbf9090ec,4
+np.float32,0x7edfbafd,0x3fe9352f,4
+np.float32,0x4ef2ec,0x4ef2ec,4
+np.float32,0x7f4cab2e,0xbff4e5dd,4
+np.float32,0xff3b1788,0x3e3c22e9,4
+np.float32,0x4e15ee,0x4e15ee,4
+np.float32,0xbf5451e6,0xbf8bc8a7,4
+np.float32,0x3f7f6d2e,0x3fc65e8b,4
+np.float32,0xbf1d9184,0xbf35071b,4
+np.float32,0xbf3a81cf,0xbf646d9b,4
+np.float32,0xbe71acc4,0xbe7643ab,4
+np.float32,0x528b7d,0x528b7d,4
+np.float32,0x2cb1d0,0x2cb1d0,4
+np.float32,0x3f324bf8,0x3f56161a,4
+np.float32,0x80709a21,0x80709a21,4
+np.float32,0x4bc448,0x4bc448,4
+np.float32,0x3e8bd600,0x3e8f6b7a,4
+np.float32,0xbeb97d30,0xbec20dd6,4
+np.float32,0x2a5669,0x2a5669,4
+np.float32,0x805f2689,0x805f2689,4
+np.float32,0xfe569f50,0x3fc51952,4
+np.float32,0x1de44c,0x1de44c,4
+np.float32,0x3ec7036c,0x3ed1ae67,4
+np.float32,0x8052b8e5,0x8052b8e5,4
+np.float32,0xff740a6b,0x3f4981a8,4
+np.float32,0xfee9bb70,0xc05e23be,4
+np.float32,0xff4e12c9,0x4002b4ad,4
+np.float32,0x803de0c2,0x803de0c2,4
+np.float32,0xbf433a07,0xbf74966f,4
+np.float32,0x803e60ca,0x803e60ca,4
+np.float32,0xbf19ee98,0xbf2fa07a,4
+np.float32,0x92929,0x92929,4
+np.float32,0x7f709c27,0x4257ba2d,4
+np.float32,0x803167c6,0x803167c6,4
+np.float32,0xbf095ead,0xbf184607,4
+np.float32,0x617060,0x617060,4
+np.float32,0x2d85b3,0x2d85b3,4
+np.float32,0x53d20b,0x53d20b,4
+np.float32,0x3e046838,0x3e052666,4
+np.float32,0xbe7c5fdc,0xbe80ce4b,4
+np.float32,0x3d18d060,0x3d18e289,4
+np.float32,0x804dc031,0x804dc031,4
+np.float32,0x3f224166,0x3f3c26cd,4
+np.float32,0x7d683e3c,0xbea24f25,4
+np.float32,0xbf3a92aa,0xbf648be4,4
+np.float32,0x8072670b,0x8072670b,4
+np.float32,0xbe281aec,0xbe29a1bc,4
+np.float32,0x7f09d918,0xc0942490,4
+np.float32,0x7ca9fd07,0x4018b990,4
+np.float32,0x7d36ac5d,0x3cf57184,4
+np.float32,0x8039b62f,0x8039b62f,4
+np.float32,0x6cad7b,0x6cad7b,4
+np.float32,0x3c0fd9ab,0x3c0fda9d,4
+np.float32,0x80299883,0x80299883,4
+np.float32,0x3c2d0e3e,0x3c2d0fe4,4
+np.float32,0x8002cf62,0x8002cf62,4
+np.float32,0x801dde97,0x801dde97,4
+np.float32,0x80411856,0x80411856,4
+np.float32,0x6ebce8,0x6ebce8,4
+np.float32,0x7b7d1a,0x7b7d1a,4
+np.float32,0x8031d3de,0x8031d3de,4
+np.float32,0x8005c4ab,0x8005c4ab,4
+np.float32,0xbf7dd803,0xbfc3b3ef,4
+np.float32,0x8017ae60,0x8017ae60,4
+np.float32,0xfe9316ce,0xbfe0544a,4
+np.float32,0x3f136bfe,0x3f2636ff,4
+np.float32,0x3df87b80,0x3df9b57d,4
+np.float32,0xff44c356,0xbf11c7ad,4
+np.float32,0x4914ae,0x4914ae,4
+np.float32,0x80524c21,0x80524c21,4
+np.float32,0x805c7dc8,0x805c7dc8,4
+np.float32,0xfed3c0aa,0xbff0c0ab,4
+np.float32,0x7eb2bfbb,0xbf4600bc,4
+np.float32,0xfec8df84,0x3f5bd350,4
+np.float32,0x3e5431a4,0x3e5748c3,4
+np.float32,0xbee6a3a0,0xbef79e86,4
+np.float32,0xbf6cc9b2,0xbfa9d61a,4
+np.float32,0x3f132bd5,0x3f25dbd9,4
+np.float32,0x7e6d2e48,0x3f9d025b,4
+np.float32,0x3edf430c,0x3eee942d,4
+np.float32,0x3f0d1b8a,0x3f1d60e1,4
+np.float32,0xbdf2f688,0xbdf41bfb,4
+np.float32,0xbe47a284,0xbe4a33ff,4
+np.float32,0x3eaa9fbc,0x3eb13be7,4
+np.float32,0xfe98d45e,0x3eb84517,4
+np.float32,0x7efc23b3,0x3dcc1c99,4
+np.float32,0x3ca36242,0x3ca367ce,4
+np.float32,0x3f76a944,0x3fb834e3,4
+np.float32,0xbf45207c,0xbf783f9b,4
+np.float32,0x3e7c1220,0x3e80a4f8,4
+np.float32,0x3f018200,0x3f0dd14e,4
+np.float32,0x3f53cdde,0x3f8b3839,4
+np.float32,0xbdbacb58,0xbdbb5063,4
+np.float32,0x804af68d,0x804af68d,4
+np.float32,0x3e2c12fc,0x3e2db65b,4
+np.float32,0x3f039433,0x3f10895a,4
+np.float32,0x7ef5193d,0x3f4115f7,4
+np.float32,0x8030afbe,0x8030afbe,4
+np.float32,0x3f06fa2a,0x3f150d5d,4
+np.float32,0x3f124442,0x3f2493d2,4
+np.float32,0xbeb5b792,0xbebdc090,4
+np.float32,0xbedc90a4,0xbeeb4de9,4
+np.float32,0x3f3ff8,0x3f3ff8,4
+np.float32,0x3ee75bc5,0x3ef881e4,4
+np.float32,0xfe80e3de,0xbf5cd535,4
+np.float32,0xf52eb,0xf52eb,4
+np.float32,0x80660ee8,0x80660ee8,4
+np.float32,0x3e173a58,0x3e185648,4
+np.float32,0xfe49520c,0xbf728d7c,4
+np.float32,0xbecbb8ec,0xbed73373,4
+np.float32,0xbf027ae0,0xbf0f173e,4
+np.float32,0xbcab6740,0xbcab6da8,4
+np.float32,0xbf2a15e2,0xbf487e11,4
+np.float32,0x3b781b,0x3b781b,4
+np.float32,0x44f559,0x44f559,4
+np.float32,0xff6a0ca6,0xc174d7c3,4
+np.float32,0x6460ef,0x6460ef,4
+np.float32,0xfe58009c,0x3ee2bb30,4
+np.float32,0xfec3c038,0x3e30d617,4
+np.float32,0x7f0687c0,0xbf62c820,4
+np.float32,0xbf44655e,0xbf76d589,4
+np.float32,0xbf42968c,0xbf735e78,4
+np.float32,0x80385503,0x80385503,4
+np.float32,0xbea7e3a2,0xbeae2d59,4
+np.float32,0x3dd0b770,0x3dd17131,4
+np.float32,0xbf4bc185,0xbf82b907,4
+np.float32,0xfefd7d64,0xbee05650,4
+np.float32,0xfaac3c00,0xbff23bc9,4
+np.float32,0xbf562f0d,0xbf8dd7f4,4
+np.float32,0x7fa00000,0x7fe00000,4
+np.float32,0x3e01bdb8,0x3e027098,4
+np.float32,0x3e2868ab,0x3e29f19e,4
+np.float32,0xfec55f2e,0x3f39f304,4
+np.float32,0xed4e,0xed4e,4
+np.float32,0x3e2b7330,0x3e2d11fa,4
+np.float32,0x7f738542,0x40cbbe16,4
+np.float32,0x3f123521,0x3f247e71,4
+np.float32,0x73572c,0x73572c,4
+np.float32,0x804936c8,0x804936c8,4
+np.float32,0x803b80d8,0x803b80d8,4
+np.float32,0x7f566c57,0xbee2855a,4
+np.float32,0xff0e3bd8,0xbff0543f,4
+np.float32,0x7d2b2fe7,0xbf94ba4c,4
+np.float32,0xbf0da470,0xbf1e1dc2,4
+np.float32,0xbd276500,0xbd277ce0,4
+np.float32,0xfcd15dc0,0x403ccc2a,4
+np.float32,0x80071e59,0x80071e59,4
+np.float32,0xbe9b0c34,0xbe9ff7be,4
+np.float32,0x3f4f9069,0x3f86ac50,4
+np.float32,0x80042a95,0x80042a95,4
+np.float32,0x7de28e39,0x3bc9b7f4,4
+np.float32,0xbf641935,0xbf9e5af8,4
+np.float32,0x8034f068,0x8034f068,4
+np.float32,0xff33a3d2,0xbf408e75,4
+np.float32,0xbcc51540,0xbcc51efc,4
+np.float32,0xff6d1ddf,0x3ef58f0e,4
+np.float32,0xbf64dfc4,0xbf9f5725,4
+np.float32,0xff068a06,0x3eea8987,4
+np.float32,0xff01c0af,0x3f24cdfe,4
+np.float32,0x3f4def7e,0x3f84f802,4
+np.float32,0xbf1b4ae7,0xbf31a299,4
+np.float32,0x8077df2d,0x8077df2d,4
+np.float32,0x3f0155c5,0x3f0d9785,4
+np.float32,0x5a54b2,0x5a54b2,4
+np.float32,0x7f271f9e,0x3efb2ef3,4
+np.float32,0xbf0ff2ec,0xbf215217,4
+np.float32,0x7f500130,0xbf8a7fdd,4
+np.float32,0xfed9891c,0xbf65c872,4
+np.float32,0xfecbfaae,0x403bdbc2,4
+np.float32,0x3f3a5aba,0x3f642772,4
+np.float32,0x7ebc681e,0xbd8df059,4
+np.float32,0xfe05e400,0xbfe35d74,4
+np.float32,0xbf295ace,0xbf4750ea,4
+np.float32,0x7ea055b2,0x3f62d6be,4
+np.float32,0xbd00b520,0xbd00bff9,4
+np.float32,0xbf7677aa,0xbfb7e8cf,4
+np.float32,0x3e83f788,0x3e86f816,4
+np.float32,0x801f6710,0x801f6710,4
+np.float32,0x801133cc,0x801133cc,4
+np.float32,0x41da2a,0x41da2a,4
+np.float32,0xff1622fd,0x3f023650,4
+np.float32,0x806c7a72,0x806c7a72,4
+np.float32,0x3f10779c,0x3f220bb4,4
+np.float32,0xbf08cf94,0xbf17848d,4
+np.float32,0xbecb55b4,0xbed6bebd,4
+np.float32,0xbf0a1528,0xbf193d7b,4
+np.float32,0x806a16bd,0x806a16bd,4
+np.float32,0xc222a,0xc222a,4
+np.float32,0x3930de,0x3930de,4
+np.float32,0x3f5c3588,0x3f94bca2,4
+np.float32,0x1215ad,0x1215ad,4
+np.float32,0x3ed15030,0x3eddcf67,4
+np.float32,0x7da83b2e,0x3fce0d39,4
+np.float32,0x32b0a8,0x32b0a8,4
+np.float32,0x805aed6b,0x805aed6b,4
+np.float32,0x3ef8e02f,0x3f074346,4
+np.float32,0xbdeb6780,0xbdec7250,4
+np.float32,0x3f6e3cec,0x3fabda61,4
+np.float32,0xfefd467a,0x3ef7821a,4
+np.float32,0xfef090fe,0x3bb752a2,4
+np.float32,0x8019c538,0x8019c538,4
+np.float32,0x3e8cf284,0x3e909e81,4
+np.float32,0xbe6c6618,0xbe70b0a2,4
+np.float32,0x7f50a539,0x3f367be1,4
+np.float32,0x8019fe2f,0x8019fe2f,4
+np.float32,0x800c3f48,0x800c3f48,4
+np.float32,0xfd054cc0,0xc0f52802,4
+np.float32,0x3d0cca20,0x3d0cd853,4
+np.float32,0xbf4a7c44,0xbf816e74,4
+np.float32,0x3f46fc40,0x3f7be153,4
+np.float32,0x807c5849,0x807c5849,4
+np.float32,0xd7e41,0xd7e41,4
+np.float32,0x70589b,0x70589b,4
+np.float32,0x80357b95,0x80357b95,4
+np.float32,0x3de239f0,0x3de326a5,4
+np.float32,0x800b08e3,0x800b08e3,4
+np.float32,0x807ec946,0x807ec946,4
+np.float32,0x3e2e4b83,0x3e2fff76,4
+np.float32,0x3f198e0f,0x3f2f12a6,4
+np.float32,0xbecb1aca,0xbed67979,4
+np.float32,0x80134082,0x80134082,4
+np.float32,0x3f3a269f,0x3f63ca05,4
+np.float32,0x3f1381e4,0x3f265622,4
+np.float32,0xff293080,0xbf10be6f,4
+np.float32,0xff800000,0xffc00000,4
+np.float32,0x37d196,0x37d196,4
+np.float32,0x7e57eea7,0x3e7d8138,4
+np.float32,0x804b1dae,0x804b1dae,4
+np.float32,0x7d9508f9,0xc1075b35,4
+np.float32,0x3f7bf468,0x3fc095e0,4
+np.float32,0x55472c,0x55472c,4
+np.float32,0x3ecdcd86,0x3ed9a738,4
+np.float32,0x3ed9be0f,0x3ee7e4e9,4
+np.float32,0x3e7e0ddb,0x3e81b2fe,4
+np.float32,0x7ee6c1d3,0x3f850634,4
+np.float32,0x800f6fad,0x800f6fad,4
+np.float32,0xfefb3bd6,0xbff68ecc,4
+np.float32,0x8013d6e2,0x8013d6e2,4
+np.float32,0x3f3a2cb6,0x3f63d4ee,4
+np.float32,0xff383c84,0x3e7854bb,4
+np.float32,0x3f21946e,0x3f3b1cea,4
+np.float32,0xff322ea2,0x3fb22f31,4
+np.float32,0x8065a024,0x8065a024,4
+np.float32,0x7f395e30,0xbefe0de1,4
+np.float32,0x5b52db,0x5b52db,4
+np.float32,0x7f7caea7,0x3dac8ded,4
+np.float32,0xbf0431f8,0xbf1159b2,4
+np.float32,0x7f15b25b,0xc02a3833,4
+np.float32,0x80131abc,0x80131abc,4
+np.float32,0x7e829d81,0xbeb2e93d,4
+np.float32,0x3f2c64d7,0x3f4c3e4d,4
+np.float32,0x7f228d48,0xc1518c74,4
+np.float32,0xfc3c6f40,0xbf00d585,4
+np.float32,0x7f754f0f,0x3e2152f5,4
+np.float32,0xff65d32b,0xbe8bd56c,4
+np.float32,0xfea6b8c0,0x41608655,4
+np.float32,0x3f7d4b05,0x3fc2c96a,4
+np.float32,0x3f463230,0x3f7a54da,4
+np.float32,0x805117bb,0x805117bb,4
+np.float32,0xbf2ad4f7,0xbf49b30e,4
+np.float32,0x3eaa01ff,0x3eb08b56,4
+np.float32,0xff7a02bb,0x3f095f73,4
+np.float32,0x759176,0x759176,4
+np.float32,0x803c18d5,0x803c18d5,4
+np.float32,0xbe0722d8,0xbe07ed16,4
+np.float32,0x3f4b4a99,0x3f823fc6,4
+np.float32,0x3f7d0451,0x3fc25463,4
+np.float32,0xfee31e40,0xbfb41091,4
+np.float32,0xbf733d2c,0xbfb30cf1,4
+np.float32,0x7ed81015,0x417c380c,4
+np.float32,0x7daafc3e,0xbe2a37ed,4
+np.float32,0x3e44f82b,0x3e476f67,4
+np.float32,0x7c8d99,0x7c8d99,4
+np.float32,0x3f7aec5a,0x3fbee991,4
+np.float32,0xff09fd55,0x3e0709d3,4
+np.float32,0xff4ba4df,0x4173c01f,4
+np.float32,0x3f43d944,0x3f75c7bd,4
+np.float32,0xff6a9106,0x40a10eff,4
+np.float32,0x3bc8341c,0x3bc834bf,4
+np.float32,0x3eea82,0x3eea82,4
+np.float32,0xfea36a3c,0x435729b2,4
+np.float32,0x7dcc1fb0,0x3e330053,4
+np.float32,0x3f616ae6,0x3f9b01ae,4
+np.float32,0x8030963f,0x8030963f,4
+np.float32,0x10d1e2,0x10d1e2,4
+np.float32,0xfeb9a8a6,0x40e6daac,4
+np.float32,0xbe1aba00,0xbe1bea3a,4
+np.float32,0x3cb6b4ea,0x3cb6bcac,4
+np.float32,0x3d8b0b64,0x3d8b422f,4
+np.float32,0x7b6894,0x7b6894,4
+np.float32,0x3e89dcde,0x3e8d4b4b,4
+np.float32,0x3f12b952,0x3f253974,4
+np.float32,0x1c316c,0x1c316c,4
+np.float32,0x7e2da535,0x3f95fe6b,4
+np.float32,0x3ae9a494,0x3ae9a4a4,4
+np.float32,0xbc5f5500,0xbc5f588b,4
+np.float32,0x3e7850fc,0x3e7d4d0e,4
+np.float32,0xbf800000,0xbfc75923,4
+np.float32,0x3e652d69,0x3e691502,4
+np.float32,0xbf6bdd26,0xbfa89129,4
+np.float32,0x3f441cfc,0x3f764a02,4
+np.float32,0x7f5445ff,0xc0906191,4
+np.float32,0x807b2ee3,0x807b2ee3,4
+np.float32,0xbeb6cab8,0xbebef9c0,4
+np.float32,0xff737277,0xbf327011,4
+np.float32,0xfc832aa0,0x402fd52e,4
+np.float32,0xbf0c7538,0xbf1c7c0f,4
+np.float32,0x7e1301c7,0xbf0ee63e,4
+np.float64,0xbfe0ef7df7a1defc,0xbfe2b76a8d8aeb35,1
+np.float64,0x7fdd9c2eae3b385c,0xbfc00d6885485039,1
+np.float64,0xbfb484c710290990,0xbfb4900e0a527555,1
+np.float64,0x7fe73e5d6cee7cba,0x3fefbf70a56b60d3,1
+np.float64,0x800a110aa8d42216,0x800a110aa8d42216,1
+np.float64,0xffedd4f3f3bba9e7,0xbff076f8c4124919,1
+np.float64,0x800093407f812682,0x800093407f812682,1
+np.float64,0x800a23150e54462a,0x800a23150e54462a,1
+np.float64,0xbfb1076864220ed0,0xbfb10dd95a74b733,1
+np.float64,0x3fed1f8b37fa3f16,0x3ff496100985211f,1
+np.float64,0x3fdf762f84beec5f,0x3fe1223eb04a17e0,1
+np.float64,0x53fd4e0aa7faa,0x53fd4e0aa7faa,1
+np.float64,0x3fdbd283bdb7a507,0x3fddb7ec9856a546,1
+np.float64,0xbfe43f449d687e89,0xbfe77724a0d3072b,1
+np.float64,0x618b73bcc316f,0x618b73bcc316f,1
+np.float64,0x67759424ceeb3,0x67759424ceeb3,1
+np.float64,0xbfe4b6f7d9a96df0,0xbfe831371f3bd7a8,1
+np.float64,0x800a531b8b74a637,0x800a531b8b74a637,1
+np.float64,0xffeeffd5c37dffab,0x3fea140cbc2c3726,1
+np.float64,0x3fe648e2002c91c4,0x3feac1b8816f972a,1
+np.float64,0x800f16242a1e2c48,0x800f16242a1e2c48,1
+np.float64,0xffeeff8e1dbdff1b,0xc000b555f117dce7,1
+np.float64,0x3fdf1cf73fbe39f0,0x3fe0e9032401135b,1
+np.float64,0x7fe19c388b633870,0x3fd5271b69317d5b,1
+np.float64,0x918f226d231e5,0x918f226d231e5,1
+np.float64,0x4cc19ab499834,0x4cc19ab499834,1
+np.float64,0xbd3121d57a624,0xbd3121d57a624,1
+np.float64,0xbfd145d334a28ba6,0xbfd1b468866124d6,1
+np.float64,0x8bdbf41517b7f,0x8bdbf41517b7f,1
+np.float64,0x3fd1b8cb3ea37198,0x3fd2306b13396cae,1
+np.float64,0xbfd632a959ac6552,0xbfd7220fcfb5ef78,1
+np.float64,0x1cdaafc639b57,0x1cdaafc639b57,1
+np.float64,0x3febdcce1577b99c,0x3ff2fe076195a2bc,1
+np.float64,0x7fca6e945934dd28,0x3ff43040df7024e8,1
+np.float64,0x3fbe08e78e3c11cf,0x3fbe2c60e6b48f75,1
+np.float64,0x7fc1ed0d0523da19,0x3ff55f8dcad9440f,1
+np.float64,0xbfdc729b8cb8e538,0xbfde7b6e15dd60c4,1
+np.float64,0x3fd219404f243281,0x3fd298d7b3546531,1
+np.float64,0x3fe715c3f56e2b88,0x3fec255b5a59456e,1
+np.float64,0x7fe8b88e74b1711c,0x3ff60efd2c81d13d,1
+np.float64,0xa1d2b9fd43a57,0xa1d2b9fd43a57,1
+np.float64,0xffc1818223230304,0xbfb85c6c1e8018e7,1
+np.float64,0x3fde38ac8b3c7159,0x3fe0580c7e228576,1
+np.float64,0x8008faf7b491f5f0,0x8008faf7b491f5f0,1
+np.float64,0xffe7a1d751af43ae,0xbf7114cd7bbcd981,1
+np.float64,0xffec2db1b4b85b62,0xbff5cae759667f83,1
+np.float64,0x7fefce1ae27f9c35,0x3ff4b8b88f4876cf,1
+np.float64,0x7fd1ff56a523feac,0xbff342ce192f14dd,1
+np.float64,0x80026b3e3f84d67d,0x80026b3e3f84d67d,1
+np.float64,0xffedee5879bbdcb0,0xc02fae11508b2be0,1
+np.float64,0x8003c0dc822781ba,0x8003c0dc822781ba,1
+np.float64,0xffe38a79eca714f4,0xc008aa23b7a63980,1
+np.float64,0xbfda70411eb4e082,0xbfdc0d7e29c89010,1
+np.float64,0x800a5e34f574bc6a,0x800a5e34f574bc6a,1
+np.float64,0x3fc19fac6e233f59,0x3fc1bc66ac0d73d4,1
+np.float64,0x3a8a61ea7514d,0x3a8a61ea7514d,1
+np.float64,0x3fb57b536e2af6a0,0x3fb588451f72f44c,1
+np.float64,0x7fd68c6d082d18d9,0xc032ac926b665c9a,1
+np.float64,0xd5b87cfdab710,0xd5b87cfdab710,1
+np.float64,0xfe80b20bfd017,0xfe80b20bfd017,1
+np.float64,0x3fef8781e37f0f04,0x3ff8215fe2c1315a,1
+np.float64,0xffedddbb9c3bbb76,0x3fd959b82258a32a,1
+np.float64,0x3fc7d41f382fa83e,0x3fc81b94c3a091ba,1
+np.float64,0xffc3275dcf264ebc,0x3fb2b3d4985c6078,1
+np.float64,0x7fe34d2b7ba69a56,0x40001f3618e3c7c9,1
+np.float64,0x3fd64ae35fac95c7,0x3fd73d77e0b730f8,1
+np.float64,0x800e53bf6b3ca77f,0x800e53bf6b3ca77f,1
+np.float64,0xbfddf7c9083bef92,0xbfe02f392744d2d1,1
+np.float64,0x1c237cc038471,0x1c237cc038471,1
+np.float64,0x3fe4172beea82e58,0x3fe739b4bf16bc7e,1
+np.float64,0xfa950523f52a1,0xfa950523f52a1,1
+np.float64,0xffc839a2c5307344,0xbff70ff8a3c9247f,1
+np.float64,0x264f828c4c9f1,0x264f828c4c9f1,1
+np.float64,0x148a650a2914e,0x148a650a2914e,1
+np.float64,0x3fe8d255c0b1a4ac,0x3fef623c3ea8d6e3,1
+np.float64,0x800f4fbb28be9f76,0x800f4fbb28be9f76,1
+np.float64,0x7fdca57bcfb94af7,0x3ff51207563fb6cb,1
+np.float64,0x3fe4944107692882,0x3fe7fad593235364,1
+np.float64,0x800119b4f1a2336b,0x800119b4f1a2336b,1
+np.float64,0xbfe734075e6e680e,0xbfec5b35381069f2,1
+np.float64,0xffeb3c00db767801,0xbfbbd7d22df7b4b3,1
+np.float64,0xbfe95c658cb2b8cb,0xbff03ad5e0bc888a,1
+np.float64,0xffeefeb58fbdfd6a,0xbfd5c9264deb0e11,1
+np.float64,0x7fccc80fde39901f,0xc012c60f914f3ca2,1
+np.float64,0x3fe5da289c2bb451,0x3fea07ad00a0ca63,1
+np.float64,0x800e364b0a5c6c96,0x800e364b0a5c6c96,1
+np.float64,0x3fcf9ea7d23f3d50,0x3fd023b72e8c9dcf,1
+np.float64,0x800a475cfc948eba,0x800a475cfc948eba,1
+np.float64,0xffd4e0d757a9c1ae,0xbfa89d573352e011,1
+np.float64,0xbfd4dbec8229b7da,0xbfd5a165f12c7c40,1
+np.float64,0xffe307ab51260f56,0x3fe6b1639da58c3f,1
+np.float64,0xbfe6955a546d2ab4,0xbfeb44ae2183fee9,1
+np.float64,0xbfca1f18f5343e30,0xbfca7d804ccccdf4,1
+np.float64,0xe9f4dfebd3e9c,0xe9f4dfebd3e9c,1
+np.float64,0xfff0000000000000,0xfff8000000000000,1
+np.float64,0x8008e69c0fb1cd38,0x8008e69c0fb1cd38,1
+np.float64,0xbfead1ccf975a39a,0xbff1c84b3db8ca93,1
+np.float64,0x25a982424b531,0x25a982424b531,1
+np.float64,0x8010000000000000,0x8010000000000000,1
+np.float64,0x80056204ea0ac40b,0x80056204ea0ac40b,1
+np.float64,0x800d1442d07a2886,0x800d1442d07a2886,1
+np.float64,0xbfaef3dadc3de7b0,0xbfaefd85ae6205f0,1
+np.float64,0x7fe969ce4b32d39c,0xbff3c4364fc6778f,1
+np.float64,0x7fe418bac0a83175,0x402167d16b1efe0b,1
+np.float64,0x3fd7c82a25af9054,0x3fd8f0c701315672,1
+np.float64,0x80013782a7826f06,0x80013782a7826f06,1
+np.float64,0x7fc031c7ee20638f,0x400747ab705e6904,1
+np.float64,0x3fe8cf327ff19e65,0x3fef5c14f8aafa89,1
+np.float64,0xbfe331a416a66348,0xbfe5e2290a098dd4,1
+np.float64,0x800607b2116c0f65,0x800607b2116c0f65,1
+np.float64,0x7fb40448f0280891,0xbfd43d4f0ffa1d64,1
+np.float64,0x7fefffffffffffff,0xbf74530cfe729484,1
+np.float64,0x3fe39b5444a736a9,0x3fe67eaa0b6acf27,1
+np.float64,0x3fee4733c4fc8e68,0x3ff631eabeef9696,1
+np.float64,0xbfec840f3b79081e,0xbff3cc8563ab2e74,1
+np.float64,0xbfc8f6854c31ed0c,0xbfc948caacb3bba0,1
+np.float64,0xffbcf754a639eea8,0xbfc88d17cad3992b,1
+np.float64,0x8000bd3163417a64,0x8000bd3163417a64,1
+np.float64,0x3fe766d0eaeecda2,0x3fecb660882f7024,1
+np.float64,0xb6cc30156d986,0xb6cc30156d986,1
+np.float64,0xffc0161f9f202c40,0x3fe19bdefe5cf8b1,1
+np.float64,0xffe1e462caa3c8c5,0x3fe392c47feea17b,1
+np.float64,0x30a36a566146e,0x30a36a566146e,1
+np.float64,0x3fa996f580332deb,0x3fa99c6b4f2abebe,1
+np.float64,0x3fba71716e34e2e0,0x3fba899f35edba1d,1
+np.float64,0xbfe8f7e5e971efcc,0xbfefac431a0e3d55,1
+np.float64,0xf48f1803e91e3,0xf48f1803e91e3,1
+np.float64,0x7fe3edc0a127db80,0xc03d1a579a5d74a8,1
+np.float64,0xffeba82056375040,0x3fdfd701308700db,1
+np.float64,0xbfeb5a924cf6b524,0xbff2640de7cd107f,1
+np.float64,0xfa4cd1a9f499a,0xfa4cd1a9f499a,1
+np.float64,0x800de1be7b9bc37d,0x800de1be7b9bc37d,1
+np.float64,0xffd44e56ad289cae,0x3fdf4b8085db9b67,1
+np.float64,0xbfe4fb3aea69f676,0xbfe89d2cc46fcc50,1
+np.float64,0xbfe596495d6b2c92,0xbfe997a589a1f632,1
+np.float64,0x6f55a2b8deab5,0x6f55a2b8deab5,1
+np.float64,0x7fe72dc4712e5b88,0x4039c4586b28c2bc,1
+np.float64,0x89348bd712692,0x89348bd712692,1
+np.float64,0xffe062156120c42a,0x4005f0580973bc77,1
+np.float64,0xbfeabc714d7578e2,0xbff1b07e2fa57dc0,1
+np.float64,0x8003a56b3e874ad7,0x8003a56b3e874ad7,1
+np.float64,0x800eeadfb85dd5c0,0x800eeadfb85dd5c0,1
+np.float64,0x46d77a4c8daf0,0x46d77a4c8daf0,1
+np.float64,0x8000c06e7dc180de,0x8000c06e7dc180de,1
+np.float64,0x3fe428d211e851a4,0x3fe754b1c00a89bc,1
+np.float64,0xc5be11818b7c2,0xc5be11818b7c2,1
+np.float64,0x7fefc244893f8488,0x401133dc54f52de5,1
+np.float64,0x3fde30eee93c61de,0x3fe0532b827543a6,1
+np.float64,0xbfd447f48b288fea,0xbfd4fd0654f90718,1
+np.float64,0xbfde98dc7b3d31b8,0xbfe094df12f84a06,1
+np.float64,0x3fed2c1a1dfa5834,0x3ff4a6c4f3470a65,1
+np.float64,0xbfe992165073242d,0xbff071ab039c9177,1
+np.float64,0x3fd0145d1b2028ba,0x3fd06d3867b703dc,1
+np.float64,0x3fe179457362f28b,0x3fe3722f1d045fda,1
+np.float64,0x800e28964fbc512d,0x800e28964fbc512d,1
+np.float64,0x8004a5d785294bb0,0x8004a5d785294bb0,1
+np.float64,0xbfd652f2272ca5e4,0xbfd7469713125120,1
+np.float64,0x7fe61f49036c3e91,0xbf9b6ccdf2d87e70,1
+np.float64,0xffb7d47dd02fa8f8,0xc004449a82320b13,1
+np.float64,0x3feb82f996b705f3,0x3ff29336c738a4c5,1
+np.float64,0x3fbb7fceea36ffa0,0x3fbb9b02c8ad7f93,1
+np.float64,0x80004519fb208a35,0x80004519fb208a35,1
+np.float64,0xbfe0539114e0a722,0xbfe1e86dc5aa039c,1
+np.float64,0x0,0x0,1
+np.float64,0xbfe99d1125f33a22,0xbff07cf8ec04300f,1
+np.float64,0xffd4fbeecc29f7de,0x3ffab76775a8455f,1
+np.float64,0xbfbf1c618e3e38c0,0xbfbf43d2764a8333,1
+np.float64,0x800cae02a9d95c06,0x800cae02a9d95c06,1
+np.float64,0x3febc47d3bf788fa,0x3ff2e0d7cf8ef509,1
+np.float64,0x3fef838f767f071f,0x3ff81aeac309bca0,1
+np.float64,0xbfd5e70716abce0e,0xbfd6ccb033ef7a35,1
+np.float64,0x3f9116fa60222df5,0x3f9117625f008e0b,1
+np.float64,0xffe02b1e5f20563c,0xbfe6b2ec293520b7,1
+np.float64,0xbf9b5aec3036b5e0,0xbf9b5c96c4c7f951,1
+np.float64,0xfdb0169bfb603,0xfdb0169bfb603,1
+np.float64,0x7fcdd1d51c3ba3a9,0x401f0e12fa0b7570,1
+np.float64,0xbfd088103fa11020,0xbfd0e8c4a333ffb2,1
+np.float64,0x3fe22df82ee45bf0,0x3fe46d03a7c14de2,1
+np.float64,0xbfd57b0c28aaf618,0xbfd65349a6191de5,1
+np.float64,0x3fe0a42f50a1485f,0x3fe252e26775d9a4,1
+np.float64,0x800fab4e363f569c,0x800fab4e363f569c,1
+np.float64,0xffe9f0ed63f3e1da,0xbfe278c341b171d5,1
+np.float64,0x7fe26c244664d848,0xbfb325269dad1996,1
+np.float64,0xffe830410bf06081,0xc00181a39f606e96,1
+np.float64,0x800c548a0c78a914,0x800c548a0c78a914,1
+np.float64,0x800f94761ebf28ec,0x800f94761ebf28ec,1
+np.float64,0x3fe5984845eb3091,0x3fe99aeb653c666d,1
+np.float64,0x7fe93e5bf8f27cb7,0xc010d159fa27396a,1
+np.float64,0xffefffffffffffff,0x3f74530cfe729484,1
+np.float64,0x4c83f1269907f,0x4c83f1269907f,1
+np.float64,0x3fde0065a8bc00cc,0x3fe034a1cdf026d4,1
+np.float64,0x800743810d6e8703,0x800743810d6e8703,1
+np.float64,0x80040662d5280cc6,0x80040662d5280cc6,1
+np.float64,0x3fed20b2c5ba4166,0x3ff497988519d7aa,1
+np.float64,0xffe8fa15e5f1f42b,0x3fff82ca76d797b4,1
+np.float64,0xbb72e22f76e5d,0xbb72e22f76e5d,1
+np.float64,0x7fc18ffa7c231ff4,0xbff4b8b4c3315026,1
+np.float64,0xbfe8d1ac44f1a358,0xbfef60efc4f821e3,1
+np.float64,0x3fd38c1fe8271840,0x3fd42dc37ff7262b,1
+np.float64,0xe577bee5caef8,0xe577bee5caef8,1
+np.float64,0xbff0000000000000,0xbff8eb245cbee3a6,1
+np.float64,0xffcb3a9dd436753c,0x3fcd1a3aff1c3fc7,1
+np.float64,0x7fe44bf2172897e3,0x3ff60bfe82a379f4,1
+np.float64,0x8009203823924071,0x8009203823924071,1
+np.float64,0x7fef8e0abc7f1c14,0x3fe90e4962d47ce5,1
+np.float64,0xffda50004434a000,0x3fb50dee03e1418b,1
+np.float64,0x7fe2ff276ea5fe4e,0xc0355b7d2a0a8d9d,1
+np.float64,0x3fd0711ba5a0e238,0x3fd0d03823d2d259,1
+np.float64,0xe7625b03cec4c,0xe7625b03cec4c,1
+np.float64,0xbfd492c8d7a92592,0xbfd55006cde8d300,1
+np.float64,0x8001fee99f23fdd4,0x8001fee99f23fdd4,1
+np.float64,0x7ff4000000000000,0x7ffc000000000000,1
+np.float64,0xfa15df97f42bc,0xfa15df97f42bc,1
+np.float64,0xbfec3fdca9787fb9,0xbff377164b13c7a9,1
+np.float64,0xbcec10e579d82,0xbcec10e579d82,1
+np.float64,0xbfc3b4e2132769c4,0xbfc3dd1fcc7150a6,1
+np.float64,0x80045b149ee8b62a,0x80045b149ee8b62a,1
+np.float64,0xffe044554c2088aa,0xbff741436d558785,1
+np.float64,0xffcc65f09f38cbe0,0xc0172b4adc2d317d,1
+np.float64,0xf68b2d3bed166,0xf68b2d3bed166,1
+np.float64,0x7fc7f44c572fe898,0x3fec69f3b1eca790,1
+np.float64,0x3fac51f61438a3ec,0x3fac595d34156002,1
+np.float64,0xbfeaa9f256f553e5,0xbff19bfdf5984326,1
+np.float64,0x800e4742149c8e84,0x800e4742149c8e84,1
+np.float64,0xbfc493df132927c0,0xbfc4c1ba4268ead9,1
+np.float64,0xbfbf0c56383e18b0,0xbfbf3389fcf50c72,1
+np.float64,0xbf978a0e082f1420,0xbf978b1dd1da3d3c,1
+np.float64,0xbfe04375356086ea,0xbfe1d34c57314dd1,1
+np.float64,0x3feaeeb29b75dd65,0x3ff1e8b772374979,1
+np.float64,0xbfe15e42c3a2bc86,0xbfe34d45d56c5c15,1
+np.float64,0x3fe507429a6a0e85,0x3fe8b058176b3225,1
+np.float64,0x3feee2b26c3dc565,0x3ff71b73203de921,1
+np.float64,0xbfd496577aa92cae,0xbfd553fa7fe15a5f,1
+np.float64,0x7fe2c10953e58212,0x3fc8ead6a0d14bbf,1
+np.float64,0x800035b77aa06b70,0x800035b77aa06b70,1
+np.float64,0x2329201e46525,0x2329201e46525,1
+np.float64,0xbfe6225c9a6c44b9,0xbfea80861590fa02,1
+np.float64,0xbfd6925030ad24a0,0xbfd78e70b1c2215d,1
+np.float64,0xbfd82225c4b0444c,0xbfd958a60f845b39,1
+np.float64,0xbb03d8a17609,0xbb03d8a17609,1
+np.float64,0x7fc33967b12672ce,0x40001e00c9af4002,1
+np.float64,0xff9373c6d026e780,0xbff308654a459d3d,1
+np.float64,0x3feab1f9c5f563f4,0x3ff1a4e0fd2f093d,1
+np.float64,0xbf993ef768327de0,0xbf994046b64e308b,1
+np.float64,0xffb87382fc30e708,0xbfde0accb83c891b,1
+np.float64,0x800bb3a118176743,0x800bb3a118176743,1
+np.float64,0x800c810250d90205,0x800c810250d90205,1
+np.float64,0xbfd2c4eb9ba589d8,0xbfd3539508b4a4a8,1
+np.float64,0xbee1f5437dc3f,0xbee1f5437dc3f,1
+np.float64,0x3fc07aeab520f5d8,0x3fc0926272f9d8e2,1
+np.float64,0xbfe23747a3246e90,0xbfe47a20a6e98687,1
+np.float64,0x3fde1296debc252c,0x3fe0401143ff6b5c,1
+np.float64,0xbfcec8c2f73d9184,0xbfcf644e25ed3b74,1
+np.float64,0xff9314f2c82629e0,0x40559a0f9099dfd1,1
+np.float64,0xbfe27487afa4e910,0xbfe4d0e01200bde6,1
+np.float64,0xffb3d6637627acc8,0x3fe326d4b1e1834f,1
+np.float64,0xffe6f84d642df09a,0x3fc73fa9f57c3acb,1
+np.float64,0xffe67cf76fecf9ee,0xc01cf48c97937ef9,1
+np.float64,0x7fdc73fc12b8e7f7,0xbfcfcecde9331104,1
+np.float64,0xffdcf8789239f0f2,0x3fe345e3b8e28776,1
+np.float64,0x800a70af5314e15f,0x800a70af5314e15f,1
+np.float64,0xffc862300730c460,0x3fc4e9ea813beca7,1
+np.float64,0xbfcc6961bd38d2c4,0xbfcce33bfa6c6bd1,1
+np.float64,0xbfc9b76bbf336ed8,0xbfca117456ac37e5,1
+np.float64,0x7fb86e829430dd04,0x400a5bd7a18e302d,1
+np.float64,0x7fb9813ef833027d,0xbfe5a6494f143625,1
+np.float64,0x8005085e2c2a10bd,0x8005085e2c2a10bd,1
+np.float64,0xffe5af099d6b5e12,0x40369bbe31e03e06,1
+np.float64,0xffde03b1fd3c0764,0x3ff061120aa1f52a,1
+np.float64,0x7fa4eb6cdc29d6d9,0x3fe9defbe9010322,1
+np.float64,0x800803f4b11007ea,0x800803f4b11007ea,1
+np.float64,0x7febd50f6df7aa1e,0xbffcf540ccf220dd,1
+np.float64,0x7fed454f08fa8a9d,0xbffc2a8b81079403,1
+np.float64,0xbfed7e8c69bafd19,0xbff5161e51ba6634,1
+np.float64,0xffef92e78eff25ce,0xbffefeecddae0ad3,1
+np.float64,0x7fe5b9b413ab7367,0xbfc681ba29704176,1
+np.float64,0x29284e805252,0x29284e805252,1
+np.float64,0xffed3955bcfa72ab,0xbfc695acb5f468de,1
+np.float64,0x3fe464ee1ca8c9dc,0x3fe7b140ce50fdca,1
+np.float64,0xffe522ae4bea455c,0x3feb957c146e66ef,1
+np.float64,0x8000000000000000,0x8000000000000000,1
+np.float64,0x3fd0c353a2a186a8,0x3fd1283aaa43a411,1
+np.float64,0x3fdb30a749b6614f,0x3fdcf40df006ed10,1
+np.float64,0x800109213cc21243,0x800109213cc21243,1
+np.float64,0xbfe72aa0c5ee5542,0xbfec4a713f513bc5,1
+np.float64,0x800865344ad0ca69,0x800865344ad0ca69,1
+np.float64,0x7feb7df60eb6fbeb,0x3fb1df06a67aa22f,1
+np.float64,0x3fe83a5dd93074bc,0x3fee3d63cda72636,1
+np.float64,0xbfde70e548bce1ca,0xbfe07b8e19c9dac6,1
+np.float64,0xbfeea38d537d471b,0xbff6bb18c230c0be,1
+np.float64,0x3fefeebbc47fdd78,0x3ff8cdaa53b7c7b4,1
+np.float64,0x7fe6512e20eca25b,0xbff623cee44a22b5,1
+np.float64,0xf8fa5ca3f1f4c,0xf8fa5ca3f1f4c,1
+np.float64,0x7fd12d00ed225a01,0xbfe90d518ea61faf,1
+np.float64,0x80027db43504fb69,0x80027db43504fb69,1
+np.float64,0xffc10a01aa221404,0x3fcc2065b3d0157b,1
+np.float64,0xbfef8286e87f050e,0xbff8193a54449b59,1
+np.float64,0xbfc73178092e62f0,0xbfc7735072ba4593,1
+np.float64,0x3fc859d70630b3ae,0x3fc8a626522af1c0,1
+np.float64,0x3fe4654c4268ca99,0x3fe7b1d2913eda1a,1
+np.float64,0xbfce93cd843d279c,0xbfcf2c2ef16a0957,1
+np.float64,0xffbcaa16d4395430,0xbfd511ced032d784,1
+np.float64,0xbfe91f980e723f30,0xbfeffb39cf8c7746,1
+np.float64,0x800556fb6f0aadf8,0x800556fb6f0aadf8,1
+np.float64,0xffd009cde520139c,0x3fe4fa83b1e93d28,1
+np.float64,0x7febc0675e3780ce,0x3feb53930c004dae,1
+np.float64,0xbfe7f975bdeff2ec,0xbfedc36e6729b010,1
+np.float64,0x45aff57c8b5ff,0x45aff57c8b5ff,1
+np.float64,0xbfec7ebd0138fd7a,0xbff3c5cab680aae0,1
+np.float64,0x8009448003b28900,0x8009448003b28900,1
+np.float64,0x3fca4b992d349732,0x3fcaabebcc86aa9c,1
+np.float64,0x3fca069161340d20,0x3fca63ecc742ff3a,1
+np.float64,0x80063bc80bec7791,0x80063bc80bec7791,1
+np.float64,0xbfe1764bffe2ec98,0xbfe36e1cb30cec94,1
+np.float64,0xffd0dba72f21b74e,0x3fb1834964d57ef6,1
+np.float64,0xbfe31848fc263092,0xbfe5bd066445cbc3,1
+np.float64,0xbfd1fb227323f644,0xbfd278334e27f02d,1
+np.float64,0xffdc59069fb8b20e,0xbfdfc363f559ea2c,1
+np.float64,0x3fdea52a52bd4a55,0x3fe09cada4e5344c,1
+np.float64,0x3f715e55a022bd00,0x3f715e5c72a2809e,1
+np.float64,0x1d1ac6023a35a,0x1d1ac6023a35a,1
+np.float64,0x7feacc71627598e2,0x400486b82121da19,1
+np.float64,0xa0287fa340510,0xa0287fa340510,1
+np.float64,0xffe352c5abe6a58b,0xc002623346060543,1
+np.float64,0x7fed577a23baaef3,0x3fda19bc8fa3b21f,1
+np.float64,0x3fde8dd5263d1baa,0x3fe08de0fedf7029,1
+np.float64,0x3feddd3be2bbba78,0x3ff599b2f3e018cc,1
+np.float64,0xc7a009f58f401,0xc7a009f58f401,1
+np.float64,0xbfef03d5a4fe07ab,0xbff74ee08681f47b,1
+np.float64,0x7fe2cf60eea59ec1,0x3fe905fb44f8cc60,1
+np.float64,0xbfe498fcab6931fa,0xbfe8023a6ff8becf,1
+np.float64,0xbfef7142acfee285,0xbff7fd196133a595,1
+np.float64,0xd214ffdba42a0,0xd214ffdba42a0,1
+np.float64,0x8006de7d78cdbcfc,0x8006de7d78cdbcfc,1
+np.float64,0xb247d34f648fb,0xb247d34f648fb,1
+np.float64,0xbfdd5bece6bab7da,0xbfdf9ba63ca2c5b2,1
+np.float64,0x7fe874650af0e8c9,0x3fe74204e122c10f,1
+np.float64,0x800768c49baed18a,0x800768c49baed18a,1
+np.float64,0x3fb4c0a192298140,0x3fb4cc4c8aa43300,1
+np.float64,0xbfa740531c2e80a0,0xbfa7446b7c74ae8e,1
+np.float64,0x7fe10d6edf221add,0x3fedbcd2eae26657,1
+np.float64,0xbfe9175d0f722eba,0xbfefeaca7f32c6e3,1
+np.float64,0x953e11d32a7c2,0x953e11d32a7c2,1
+np.float64,0x80032df90c465bf3,0x80032df90c465bf3,1
+np.float64,0xffec5b799638b6f2,0xbfe95cd2c69be12c,1
+np.float64,0xffe0c3cfa9a1879f,0x3fe20b99b0c108ce,1
+np.float64,0x3fb610d8e22c21b2,0x3fb61ee0d6c16df8,1
+np.float64,0xffe16bb39962d766,0xc016d370381b6b42,1
+np.float64,0xbfdc72edb238e5dc,0xbfde7bd2de10717a,1
+np.float64,0xffed52dee3baa5bd,0xc01994c08899129a,1
+np.float64,0xffa92aab08325550,0xbff2b881ce363cbd,1
+np.float64,0x7fe028282de0504f,0xc0157ff96c69a9c7,1
+np.float64,0xbfdb2151bf3642a4,0xbfdce196fcc35857,1
+np.float64,0x3fcffbd13c3ff7a2,0x3fd0554b5f0371ac,1
+np.float64,0x800d206bff1a40d8,0x800d206bff1a40d8,1
+np.float64,0x458f818c8b1f1,0x458f818c8b1f1,1
+np.float64,0x800a7b56a234f6ae,0x800a7b56a234f6ae,1
+np.float64,0xffe3d86161e7b0c2,0xbff58d0dbde9f188,1
+np.float64,0xe8ed82e3d1db1,0xe8ed82e3d1db1,1
+np.float64,0x3fe234e0176469c0,0x3fe476bd36b96a75,1
+np.float64,0xbfc7cb9c132f9738,0xbfc812c46e185e0b,1
+np.float64,0xbfeba116c1f7422e,0xbff2b6b7563ad854,1
+np.float64,0x7fe7041de62e083b,0x3f5d2b42aca47274,1
+np.float64,0xbfcf60f4ff3ec1e8,0xbfd002eb83406436,1
+np.float64,0xbfc06067a520c0d0,0xbfc0776e5839ecda,1
+np.float64,0x4384965a87093,0x4384965a87093,1
+np.float64,0xd2ed9d01a5db4,0xd2ed9d01a5db4,1
+np.float64,0x3fbea88cb63d5119,0x3fbece49cc34a379,1
+np.float64,0x3fe7e982ebefd306,0x3feda5bd4c435d43,1
+np.float64,0xffdb60a3e036c148,0xbfcb7ed21e7a8f49,1
+np.float64,0x7fdba9231eb75245,0xbfd750cab1536398,1
+np.float64,0x800d593534dab26b,0x800d593534dab26b,1
+np.float64,0xffdf15fb683e2bf6,0x3fb3aaea23357f06,1
+np.float64,0xbfd6f8a2e5adf146,0xbfd802e509d67c67,1
+np.float64,0x3feeaa31513d5463,0x3ff6c52147dc053c,1
+np.float64,0xf2f6dfd3e5edc,0xf2f6dfd3e5edc,1
+np.float64,0x7fd58d8279ab1b04,0x403243f23d02af2a,1
+np.float64,0x8000000000000001,0x8000000000000001,1
+np.float64,0x3fdffb8e0ebff71c,0x3fe1786cb0a6b0f3,1
+np.float64,0xc999826b93331,0xc999826b93331,1
+np.float64,0xffc4966f19292ce0,0x3ff0836c75c56cc7,1
+np.float64,0x7fef95a4b2ff2b48,0xbfbbe2c27c78154f,1
+np.float64,0xb8f1307f71e26,0xb8f1307f71e26,1
+np.float64,0x3fe807bc7eb00f79,0x3fedde19f2d3c42d,1
+np.float64,0x5e4b6580bc98,0x5e4b6580bc98,1
+np.float64,0xffe19353576326a6,0xc0278c51fee07d36,1
+np.float64,0xbfb0ca6f3e2194e0,0xbfb0d09be673fa72,1
+np.float64,0x3fea724211b4e484,0x3ff15ee06f0a0a13,1
+np.float64,0xbfda21e1c4b443c4,0xbfdbb041f3c86832,1
+np.float64,0x8008082b24901057,0x8008082b24901057,1
+np.float64,0xbfd031aa4ea06354,0xbfd08c77729634bb,1
+np.float64,0xbfc407e153280fc4,0xbfc432275711df5f,1
+np.float64,0xbb4fa4b5769f5,0xbb4fa4b5769f5,1
+np.float64,0x7fed6d1daffada3a,0xc037a14bc7b41fab,1
+np.float64,0xffeee589943dcb12,0x3ff2abfe47037778,1
+np.float64,0x301379d260270,0x301379d260270,1
+np.float64,0xbfec2fefc2b85fe0,0xbff36362c0363e06,1
+np.float64,0xbfe0b1c82e216390,0xbfe264f503f7c22c,1
+np.float64,0xbfea2bce78f4579d,0xbff112d6f07935ea,1
+np.float64,0x18508ef230a13,0x18508ef230a13,1
+np.float64,0x800667a74d6ccf4f,0x800667a74d6ccf4f,1
+np.float64,0x79ce5c8cf39cc,0x79ce5c8cf39cc,1
+np.float64,0x3feda61c8efb4c39,0x3ff54c9ade076f54,1
+np.float64,0x3fe27e06b0e4fc0d,0x3fe4de665c1dc3ca,1
+np.float64,0xbfd15fea2722bfd4,0xbfd1d081c55813b0,1
+np.float64,0xbfe5222c4cea4458,0xbfe8db62deb7d2ad,1
+np.float64,0xbfe8a16c33b142d8,0xbfef02d5831592a8,1
+np.float64,0x3fdb60e7c4b6c1d0,0x3fdd2e4265c4c3b6,1
+np.float64,0x800076d62b60edad,0x800076d62b60edad,1
+np.float64,0xbfec8f1527791e2a,0xbff3da7ed3641e8d,1
+np.float64,0x2af03bfe55e08,0x2af03bfe55e08,1
+np.float64,0xa862ee0950c5e,0xa862ee0950c5e,1
+np.float64,0x7fea5a7c1eb4b4f7,0xbffa6f07d28ef211,1
+np.float64,0x90e118fb21c23,0x90e118fb21c23,1
+np.float64,0xbfead0721bf5a0e4,0xbff1c6c7a771a128,1
+np.float64,0x3f63f4a4c027e94a,0x3f63f4a75665da67,1
+np.float64,0x3fece0efa579c1e0,0x3ff443bec52f021e,1
+np.float64,0xbfdbe743b737ce88,0xbfddd129bff89c15,1
+np.float64,0x3fd48c9b8fa91938,0x3fd5492a630a8cb5,1
+np.float64,0x3ff0000000000000,0x3ff8eb245cbee3a6,1
+np.float64,0xbfd51ea33baa3d46,0xbfd5ebd5dc710204,1
+np.float64,0x3fcfbab0183f7560,0x3fd032a054580b00,1
+np.float64,0x8007abce13cf579d,0x8007abce13cf579d,1
+np.float64,0xbfef0f4723be1e8e,0xbff760c7008e8913,1
+np.float64,0x8006340f524c681f,0x8006340f524c681f,1
+np.float64,0x87b7d7010f71,0x87b7d7010f71,1
+np.float64,0x3fe9422da9b2845b,0x3ff02052e6148c45,1
+np.float64,0x7fddd259b93ba4b2,0xc000731aa33d84b6,1
+np.float64,0x3fe0156d12202ada,0x3fe1972ba309cb29,1
+np.float64,0x8004f1264b89e24d,0x8004f1264b89e24d,1
+np.float64,0x3fececdcacb9d9b9,0x3ff4534d5861f731,1
+np.float64,0x3fd1790ab822f215,0x3fd1eb97b1bb6fb4,1
+np.float64,0xffce5d11863cba24,0xbfcb4f38c17210da,1
+np.float64,0x800a30c32a546187,0x800a30c32a546187,1
+np.float64,0x3fa58cc61c2b198c,0x3fa59008add7233e,1
+np.float64,0xbfe0ac77d62158f0,0xbfe25de3dba0bc4a,1
+np.float64,0xeb8c5753d718b,0xeb8c5753d718b,1
+np.float64,0x3fee5438dafca872,0x3ff644fef7e7adb5,1
+np.float64,0x3faad1eb2c35a3e0,0x3faad83499f94057,1
+np.float64,0x3fe39152c46722a6,0x3fe66fba0b96ab6e,1
+np.float64,0xffd6fd17712dfa2e,0xc010d697d1ab8731,1
+np.float64,0x5214a888a4296,0x5214a888a4296,1
+np.float64,0x8000127a5da024f5,0x8000127a5da024f5,1
+np.float64,0x7feb3a366cb6746c,0x3fbe49bd8d5f213a,1
+np.float64,0xca479501948f3,0xca479501948f3,1
+np.float64,0x7fe7c799ce6f8f33,0xbfd796cd98dc620c,1
+np.float64,0xffe20bcf30a4179e,0xbff8ca5453fa088f,1
+np.float64,0x3fe624638a6c48c7,0x3fea83f123832c3c,1
+np.float64,0xbfe5f1377c6be26f,0xbfea2e143a2d522c,1
+np.float64,0x7fd193f9f8a327f3,0xbfb04ee2602574d4,1
+np.float64,0xbfe7419d2fee833a,0xbfec737f140d363d,1
+np.float64,0x1,0x1,1
+np.float64,0x7fe2ac246c655848,0x3fd14fee3237727a,1
+np.float64,0xa459b42948b37,0xa459b42948b37,1
+np.float64,0x3fb26155ae24c2ab,0x3fb2696fc446d4c6,1
+np.float64,0xbfdd7b332e3af666,0xbfdfc296c21f1aa8,1
+np.float64,0xbfe00dbda4a01b7c,0xbfe18d2b060f0506,1
+np.float64,0x8003bb22d3e77646,0x8003bb22d3e77646,1
+np.float64,0x3fee21b0a57c4361,0x3ff5fb6a21dc911c,1
+np.float64,0x80ca69270194d,0x80ca69270194d,1
+np.float64,0xbfd6d80350adb006,0xbfd7ddb501edbde0,1
+np.float64,0xd2f8b801a5f2,0xd2f8b801a5f2,1
+np.float64,0xbfe856b3f170ad68,0xbfee7334fdc49296,1
+np.float64,0x3fed5c1b20bab836,0x3ff4e73ee5d5c7f3,1
+np.float64,0xbfd58085a5ab010c,0xbfd6596ddc381ffa,1
+np.float64,0x3fe4f0134b29e027,0x3fe88b70602fbd21,1
+np.float64,0xffc9098fdc321320,0x4011c334a74a92cf,1
+np.float64,0x794749bef28ea,0x794749bef28ea,1
+np.float64,0xbfc86b547f30d6a8,0xbfc8b84a4fafe0af,1
+np.float64,0x7fe1356b9da26ad6,0x3fd270bca208d899,1
+np.float64,0x7fca0ef1aa341de2,0xbff851044c0734fa,1
+np.float64,0x80064cb8b62c9972,0x80064cb8b62c9972,1
+np.float64,0xffd3a09a83a74136,0x3ffb66dae0accdf5,1
+np.float64,0x800e301aa15c6035,0x800e301aa15c6035,1
+np.float64,0x800e51f323bca3e6,0x800e51f323bca3e6,1
+np.float64,0x7ff0000000000000,0xfff8000000000000,1
+np.float64,0x800c4278c87884f2,0x800c4278c87884f2,1
+np.float64,0xbfe8481649f0902c,0xbfee576772695096,1
+np.float64,0xffe2344e3fa4689c,0x3fb10442ec0888de,1
+np.float64,0xbfeada313d75b462,0xbff1d1aee3fab3a9,1
+np.float64,0x8009ddfb1333bbf7,0x8009ddfb1333bbf7,1
+np.float64,0x7fed3314c93a6629,0x3ff7a9b12dc1cd37,1
+np.float64,0x3fd55c26da2ab84e,0x3fd630a7b8aac78a,1
+np.float64,0x800cdb5203f9b6a4,0x800cdb5203f9b6a4,1
+np.float64,0xffd04a875da0950e,0x4009a13810ab121d,1
+np.float64,0x800f1acb527e3597,0x800f1acb527e3597,1
+np.float64,0xbf9519bf282a3380,0xbf951a82e9b955ff,1
+np.float64,0x3fcd7a42fa3af486,0x3fce028f3c51072d,1
+np.float64,0xbfdd3e21b73a7c44,0xbfdf769f2ff2480b,1
+np.float64,0xffd4361e2aa86c3c,0xbfc211ce8e9f792c,1
+np.float64,0x7fccf97f6939f2fe,0xbff8464bad830f06,1
+np.float64,0x800ce47fb939c900,0x800ce47fb939c900,1
+np.float64,0xffe9e51df173ca3b,0xbfceaf990d652c4e,1
+np.float64,0x3fe05bba5b20b775,0x3fe1f326e4455442,1
+np.float64,0x800a29b4b134536a,0x800a29b4b134536a,1
+np.float64,0xe6f794b7cdef3,0xe6f794b7cdef3,1
+np.float64,0xffb5b688ce2b6d10,0x3ff924bb97ae2f6d,1
+np.float64,0x7fa74105d82e820b,0x3fd49643aaa9eee4,1
+np.float64,0x80020d15f7a41a2d,0x80020d15f7a41a2d,1
+np.float64,0x3fd6a983d5ad5308,0x3fd7a8cc8835b5b8,1
+np.float64,0x7fcd9798f03b2f31,0x3fc534c2f7bf4721,1
+np.float64,0xffdd31873a3a630e,0xbfe3171fcdffb3f7,1
+np.float64,0x80075183234ea307,0x80075183234ea307,1
+np.float64,0x82f3132505e63,0x82f3132505e63,1
+np.float64,0x3febfd9cb837fb39,0x3ff325bbf812515d,1
+np.float64,0xbfb4630fda28c620,0xbfb46e1f802ec278,1
+np.float64,0x3feeed7c89fddafa,0x3ff72c20ce5a9ee4,1
+np.float64,0x7fd3dcb3c127b967,0x40123d27ec9ec31d,1
+np.float64,0xbfe923450c72468a,0xbff00149c5742725,1
+np.float64,0x7fdef7f91abdeff1,0xbfe02ceb21f7923d,1
+np.float64,0x7fdd70d28fbae1a4,0xbfefcc5c9d10cdfd,1
+np.float64,0x800ca445a8d9488c,0x800ca445a8d9488c,1
+np.float64,0x7fec2754e1f84ea9,0x40173f6c1c97f825,1
+np.float64,0x7fcbca31f7379463,0x401e26bd2667075b,1
+np.float64,0x8003fa1d0847f43b,0x8003fa1d0847f43b,1
+np.float64,0xffe95cf85932b9f0,0xc01308e60278aa11,1
+np.float64,0x8009c53948f38a73,0x8009c53948f38a73,1
+np.float64,0x3fdcca9226b99524,0x3fdee7a008f75d41,1
+np.float64,0xbfe9ee241f33dc48,0xbff0d16bfff6c8e9,1
+np.float64,0xbfb3365058266ca0,0xbfb33f9176ebb51d,1
+np.float64,0x7fa98e10f4331c21,0x3fdee04ffd31314e,1
+np.float64,0xbfe1a11aea634236,0xbfe3a8e3d84fda38,1
+np.float64,0xbfd8df051131be0a,0xbfda342805d1948b,1
+np.float64,0x3d49a2407a935,0x3d49a2407a935,1
+np.float64,0xfc51eefff8a3e,0xfc51eefff8a3e,1
+np.float64,0xda63950bb4c73,0xda63950bb4c73,1
+np.float64,0x80050f3d4fea1e7b,0x80050f3d4fea1e7b,1
+np.float64,0x3fcdbd6e453b7ae0,0x3fce497478c28e77,1
+np.float64,0x7ebd4932fd7aa,0x7ebd4932fd7aa,1
+np.float64,0x7fa3904eac27209c,0xc0015f3125efc151,1
+np.float64,0x7fc59f956b2b3f2a,0xc00c012e7a2c281f,1
+np.float64,0xbfd436d716a86dae,0xbfd4ea13533a942b,1
+np.float64,0x9347ae3d268f6,0x9347ae3d268f6,1
+np.float64,0xffd001764d2002ec,0xbffab3462e515623,1
+np.float64,0x3fe6f406662de80d,0x3febe9bac3954999,1
+np.float64,0x3f943ecaf8287d96,0x3f943f77dee5e77f,1
+np.float64,0x3fd6250efcac4a1c,0x3fd712afa947d56f,1
+np.float64,0xbfe849ff777093ff,0xbfee5b089d03391f,1
+np.float64,0xffd3b8ef8f2771e0,0x4000463ff7f29214,1
+np.float64,0xbfc3bae9252775d4,0xbfc3e34c133f1933,1
+np.float64,0xbfea93943df52728,0xbff18355e4fc341d,1
+np.float64,0x3fc4d922ad29b245,0x3fc508d66869ef29,1
+np.float64,0x4329694a8652e,0x4329694a8652e,1
+np.float64,0x8834f1a71069e,0x8834f1a71069e,1
+np.float64,0xe0e5be8dc1cb8,0xe0e5be8dc1cb8,1
+np.float64,0x7fef4d103afe9a1f,0xc0047b88b94554fe,1
+np.float64,0x3fe9b57af4f36af6,0x3ff0963831d51c3f,1
+np.float64,0x3fe081e2fa6103c6,0x3fe22572e41be655,1
+np.float64,0x3fd78cf7b42f19ef,0x3fd8acafa1ad776a,1
+np.float64,0x7fbffd58d43ffab1,0x3fb16092c7de6036,1
+np.float64,0xbfe1e8bfae23d180,0xbfe40c1c6277dd52,1
+np.float64,0x800a9f59fb153eb4,0x800a9f59fb153eb4,1
+np.float64,0xffebe14e33b7c29c,0x3fe0ec532f4deedd,1
+np.float64,0xffc36ca00426d940,0xc000806a712d6e83,1
+np.float64,0xbfcc2be82d3857d0,0xbfcca2a7d372ec64,1
+np.float64,0x800c03b908780772,0x800c03b908780772,1
+np.float64,0xf315a64be62b5,0xf315a64be62b5,1
+np.float64,0xbfe644043cec8808,0xbfeab974d3dc6d80,1
+np.float64,0x3fedb7de3cbb6fbc,0x3ff56549a5acd324,1
+np.float64,0xbfb1a875522350e8,0xbfb1afa41dee338d,1
+np.float64,0xffee8d4a407d1a94,0x3fead1749a636ff6,1
+np.float64,0x8004061c13080c39,0x8004061c13080c39,1
+np.float64,0x3fe650ae7feca15c,0x3feacefb8bc25f64,1
+np.float64,0x3fda8340e6b50682,0x3fdc24275cab1df8,1
+np.float64,0x8009084344321087,0x8009084344321087,1
+np.float64,0x7fdd19cb823a3396,0xbfd1d8fb35d89e3f,1
+np.float64,0xbfe893172571262e,0xbfeee716b592b93c,1
+np.float64,0x8ff5acc11fec,0x8ff5acc11fec,1
+np.float64,0xbfdca0c57cb9418a,0xbfdeb42465a1b59e,1
+np.float64,0xffd77bd2a3aef7a6,0x4012cd69e85b82d8,1
+np.float64,0xbfe6ea78982dd4f1,0xbfebd8ec61fb9e1f,1
+np.float64,0x7fe14b1d80a2963a,0xc02241642102cf71,1
+np.float64,0x3fe712bf286e257e,0x3fec20012329a7fb,1
+np.float64,0x7fcb6fa4d636df49,0x400b899d14a886b3,1
+np.float64,0x3fb82cb39a305960,0x3fb83f29c5f0822e,1
+np.float64,0x7fed694c8b3ad298,0xbfe2724373c69808,1
+np.float64,0xbfcd21229f3a4244,0xbfcda497fc3e1245,1
+np.float64,0x564d3770ac9a8,0x564d3770ac9a8,1
+np.float64,0xf4409e13e8814,0xf4409e13e8814,1
+np.float64,0x80068dca9a8d1b96,0x80068dca9a8d1b96,1
+np.float64,0xbfe13f82afe27f06,0xbfe3236ddded353f,1
+np.float64,0x80023f8114647f03,0x80023f8114647f03,1
+np.float64,0xeafba7dfd5f75,0xeafba7dfd5f75,1
+np.float64,0x3feca74ddeb94e9c,0x3ff3f95dcce5a227,1
+np.float64,0x10000000000000,0x10000000000000,1
+np.float64,0xbfebdb4141f7b682,0xbff2fc29823ac64a,1
+np.float64,0xbfcd75ee2f3aebdc,0xbfcdfdfd87cc6a29,1
+np.float64,0x7fc010cda420219a,0x3fae4ca2cf1f2657,1
+np.float64,0x1a90209e35205,0x1a90209e35205,1
+np.float64,0x8008057d01900afa,0x8008057d01900afa,1
+np.float64,0x3f9cb5f280396be5,0x3f9cb7dfb4e4be4e,1
+np.float64,0xffe1bbb60b63776c,0xc00011b1ffcb2561,1
+np.float64,0xffda883f6fb5107e,0x4044238ef4e2a198,1
+np.float64,0x3fc07c0b4a20f817,0x3fc09387de9eebcf,1
+np.float64,0x8003a9ebc0c753d8,0x8003a9ebc0c753d8,1
+np.float64,0x1d7fd5923affc,0x1d7fd5923affc,1
+np.float64,0xbfe9cd8cf9b39b1a,0xbff0af43e567ba4a,1
+np.float64,0x11285cb42250c,0x11285cb42250c,1
+np.float64,0xffe81ae1ccb035c3,0xbfe038be7eb563a6,1
+np.float64,0xbfe56473b1eac8e8,0xbfe94654d8ab9e75,1
+np.float64,0x3fee904619fd208c,0x3ff69e198152fe17,1
+np.float64,0xbfeeb9a2cbfd7346,0xbff6dc8d96da78cd,1
+np.float64,0x8006cdfa59ed9bf5,0x8006cdfa59ed9bf5,1
+np.float64,0x8008f2366d31e46d,0x8008f2366d31e46d,1
+np.float64,0x8008d5f91e31abf3,0x8008d5f91e31abf3,1
+np.float64,0x3fe85886f8b0b10e,0x3fee76af16f5a126,1
+np.float64,0x3fefb9b2b73f7365,0x3ff8745128fa3e3b,1
+np.float64,0x7fdf3e721f3e7ce3,0xbfb19381541ca2a8,1
+np.float64,0x3fd2768c41a4ed18,0x3fd2fe2f85a3f3a6,1
+np.float64,0xbfcabe3c6a357c78,0xbfcb239fb88bc260,1
+np.float64,0xffdffb6a3dbff6d4,0xbff7af4759fd557c,1
+np.float64,0x800817f75f302fef,0x800817f75f302fef,1
+np.float64,0xbfe6a1d1762d43a3,0xbfeb5a399a095ef3,1
+np.float64,0x7fd6f32f912de65e,0x40016dedc51aabd0,1
+np.float64,0x3fc6cb26652d964d,0x3fc7099f047d924a,1
+np.float64,0x3fe8b975d67172ec,0x3fef31946123c0e7,1
+np.float64,0xffe44a09d1e89413,0x3fdee9e5eac6e540,1
+np.float64,0xbfece76d4cb9cedb,0xbff44c34849d07ba,1
+np.float64,0x7feb76027036ec04,0x3fe08595a5e263ac,1
+np.float64,0xffe194f591a329ea,0x3fbe5bd626400a70,1
+np.float64,0xbfc170698122e0d4,0xbfc18c3de8b63565,1
+np.float64,0x3fc82b2c0f305658,0x3fc875c3b5fbcd08,1
+np.float64,0x3fd5015634aa02ac,0x3fd5cb1df07213c3,1
+np.float64,0x7fe640884b6c8110,0xbff66255a420abb5,1
+np.float64,0x5a245206b448b,0x5a245206b448b,1
+np.float64,0xffe9d9fa2f73b3f4,0xc0272b0dd34ab9bf,1
+np.float64,0x3fd990e8aab321d0,0x3fdb04cd3a29bcc3,1
+np.float64,0xde9dda8bbd3bc,0xde9dda8bbd3bc,1
+np.float64,0xbfe81b32b4703666,0xbfee029937fa9f5a,1
+np.float64,0xbfe68116886d022d,0xbfeb21c62081cb73,1
+np.float64,0x3fb8da191231b432,0x3fb8ee28c71507d3,1
+np.float64,0x3fb111395a222273,0x3fb117b57de3dea4,1
+np.float64,0xffbafadc6a35f5b8,0x3ffcc6d2370297b9,1
+np.float64,0x8002ca475b05948f,0x8002ca475b05948f,1
+np.float64,0xbfeafef57875fdeb,0xbff1fb1315676f24,1
+np.float64,0x7fcda427d73b484f,0xbff9f70212694d17,1
+np.float64,0xffe2517b3ba4a2f6,0xc029ca6707305bf4,1
+np.float64,0x7fc5ee156b2bdc2a,0xbff8384b59e9056e,1
+np.float64,0xbfec22af3278455e,0xbff3530fe25816b4,1
+np.float64,0x6b5a8c2cd6b52,0x6b5a8c2cd6b52,1
+np.float64,0xffdaf6c4b935ed8a,0x4002f00ce58affcf,1
+np.float64,0x800a41813c748303,0x800a41813c748303,1
+np.float64,0xbfd09a1269213424,0xbfd0fc0a0c5de8eb,1
+np.float64,0x7fa2cb74d42596e9,0x3fc3d40e000fa69d,1
+np.float64,0x7ff8000000000000,0x7ff8000000000000,1
+np.float64,0x3fbfbf8ed63f7f1e,0x3fbfe97bcad9f53a,1
+np.float64,0x7fe0ebba65a1d774,0x401b0f17b28618df,1
+np.float64,0x3fd02c3a25a05874,0x3fd086aa55b19c9c,1
+np.float64,0xec628f95d8c52,0xec628f95d8c52,1
+np.float64,0x3fd319329fa63264,0x3fd3afb04e0dec63,1
+np.float64,0x180e0ade301c2,0x180e0ade301c2,1
+np.float64,0xbfe8d78324f1af06,0xbfef6c66153064ee,1
+np.float64,0xffb89fa200313f48,0xbfeb96ff2d9358dc,1
+np.float64,0x7fe6abcf86ed579e,0xc0269f4de86365ec,1
+np.float64,0x7fdff8cd65bff19a,0xbfd0f7c6b9052c9a,1
+np.float64,0xbfd2e3a53d25c74a,0xbfd37520cda5f6b2,1
+np.float64,0x7fe844b096708960,0x3ff696a6182e5a7a,1
+np.float64,0x7fdce0c7a3b9c18e,0x3fd42875d69ed379,1
+np.float64,0xffba5a91cc34b520,0x4001b571e8991951,1
+np.float64,0xffe78fe4a6ef1fc9,0x3ff4507b31f5b3bc,1
+np.float64,0xbfd7047493ae08ea,0xbfd810618a53fffb,1
+np.float64,0xc6559def8cab4,0xc6559def8cab4,1
+np.float64,0x3fe75d67a76ebacf,0x3feca56817de65e4,1
+np.float64,0xffd24adbd6a495b8,0xc012c491addf2df5,1
+np.float64,0x7fed35e28dba6bc4,0x403a0fa555ff7ec6,1
+np.float64,0x80078c4afa0f1897,0x80078c4afa0f1897,1
+np.float64,0xa6ec39114dd87,0xa6ec39114dd87,1
+np.float64,0x7fb1bd33ba237a66,0x4010092bb6810fd4,1
+np.float64,0x800ecf215edd9e43,0x800ecf215edd9e43,1
+np.float64,0x3fb7c169242f82d2,0x3fb7d2ed30c462e6,1
+np.float64,0xbf71b46d60236900,0xbf71b4749a10c112,1
+np.float64,0x800d7851787af0a3,0x800d7851787af0a3,1
+np.float64,0x3fcb4a45e7369488,0x3fcbb61701a1bcec,1
+np.float64,0x3fd4e3682429c6d0,0x3fd5a9bcb916eb94,1
+np.float64,0x800497564c292ead,0x800497564c292ead,1
+np.float64,0xbfca3737a1346e70,0xbfca96a86ae5d687,1
+np.float64,0x19aa87e03356,0x19aa87e03356,1
+np.float64,0xffb2593fe624b280,0xc05fedb99b467ced,1
+np.float64,0xbfdd8748fbbb0e92,0xbfdfd1a7df17252c,1
+np.float64,0x8004c7afc7098f60,0x8004c7afc7098f60,1
+np.float64,0x7fde48b2bf3c9164,0xbfe36ef1158ed420,1
+np.float64,0xbfec8e0eb0f91c1d,0xbff3d9319705a602,1
+np.float64,0xffea1be204f437c3,0xc0144f67298c3e6f,1
+np.float64,0x7fdb906b593720d6,0xbfce99233396eda7,1
+np.float64,0x3fef0f114ffe1e22,0x3ff76072a258a51b,1
+np.float64,0x3fe3e284c8e7c50a,0x3fe6e9b05e17c999,1
+np.float64,0xbfbda9eef23b53e0,0xbfbdcc1abb443597,1
+np.float64,0x3feb6454d4f6c8aa,0x3ff26f65a85baba4,1
+np.float64,0x3fea317439f462e8,0x3ff118e2187ef33f,1
+np.float64,0x376ad0646ed5b,0x376ad0646ed5b,1
+np.float64,0x7fdd461a1c3a8c33,0x3f7ba20fb79e785f,1
+np.float64,0xebc520a3d78a4,0xebc520a3d78a4,1
+np.float64,0x3fca90fe53352200,0x3fcaf45c7fae234d,1
+np.float64,0xbfe80dd1de701ba4,0xbfede97e12cde9de,1
+np.float64,0x3fd242b00ea48560,0x3fd2c5cf9bf69a31,1
+np.float64,0x7fe46c057828d80a,0xbfe2f76837488f94,1
+np.float64,0x3fc162bea322c580,0x3fc17e517c958867,1
+np.float64,0xffebf0452ff7e08a,0x3ffc3fd95c257b54,1
+np.float64,0xffd88043c6310088,0x4008b05598d0d95f,1
+np.float64,0x800d8c49da5b1894,0x800d8c49da5b1894,1
+np.float64,0xbfed33b487ba6769,0xbff4b0ea941f8a6a,1
+np.float64,0x16b881e22d711,0x16b881e22d711,1
+np.float64,0x288bae0051177,0x288bae0051177,1
+np.float64,0xffc83a0fe8307420,0x4006eff03da17f86,1
+np.float64,0x3fc7868b252f0d18,0x3fc7cb4954290324,1
+np.float64,0xbfe195514b232aa2,0xbfe398aae6c8ed76,1
+np.float64,0x800c001ae7f80036,0x800c001ae7f80036,1
+np.float64,0x7feb82abe7370557,0xbff1e13fe6fad23c,1
+np.float64,0xffecf609cdf9ec13,0xc0112aa1805ae59e,1
+np.float64,0xffddd654f63bacaa,0x3fe46cce899f710d,1
+np.float64,0x3fe2163138642c62,0x3fe44b9c760acd4c,1
+np.float64,0x4e570dc09cae2,0x4e570dc09cae2,1
+np.float64,0x7fe9e8d091f3d1a0,0xc000fe20f8e9a4b5,1
+np.float64,0x7fe60042952c0084,0x3fd0aa740f394c2a,1
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/data/umath-validation-set-tanh.csv b/python/user_packages/Python313/site-packages/numpy/_core/tests/data/umath-validation-set-tanh.csv
new file mode 100644
index 0000000000000000000000000000000000000000..f2efa70ba70b1dbb4971200793b39df8babd734a
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/tests/data/umath-validation-set-tanh.csv
@@ -0,0 +1,1429 @@
+dtype,input,output,ulperrortol
+np.float32,0xbe26ebb0,0xbe25752f,2
+np.float32,0xbe22ecc0,0xbe219054,2
+np.float32,0x8010a6b3,0x8010a6b3,2
+np.float32,0x3135da,0x3135da,2
+np.float32,0xbe982afc,0xbe93d727,2
+np.float32,0x16a51f,0x16a51f,2
+np.float32,0x491e56,0x491e56,2
+np.float32,0x4bf7ca,0x4bf7ca,2
+np.float32,0x3eebc21c,0x3edc65b2,2
+np.float32,0x80155c94,0x80155c94,2
+np.float32,0x3e14f626,0x3e13eb6a,2
+np.float32,0x801a238f,0x801a238f,2
+np.float32,0xbde33a80,0xbde24cf9,2
+np.float32,0xbef8439c,0xbee67a51,2
+np.float32,0x7f60d0a5,0x3f800000,2
+np.float32,0x190ee3,0x190ee3,2
+np.float32,0x80759113,0x80759113,2
+np.float32,0x800afa9f,0x800afa9f,2
+np.float32,0x7110cf,0x7110cf,2
+np.float32,0x3cf709f0,0x3cf6f6c6,2
+np.float32,0x3ef58da4,0x3ee44fa7,2
+np.float32,0xbf220ff2,0xbf0f662c,2
+np.float32,0xfd888078,0xbf800000,2
+np.float32,0xbe324734,0xbe307f9b,2
+np.float32,0x3eb5cb4f,0x3eae8560,2
+np.float32,0xbf7e7d02,0xbf425493,2
+np.float32,0x3ddcdcf0,0x3ddc02c2,2
+np.float32,0x8026d27a,0x8026d27a,2
+np.float32,0x3d4c0fb1,0x3d4be484,2
+np.float32,0xbf27d2c9,0xbf134d7c,2
+np.float32,0x8029ff80,0x8029ff80,2
+np.float32,0x7f046d2c,0x3f800000,2
+np.float32,0x13f94b,0x13f94b,2
+np.float32,0x7f4ff922,0x3f800000,2
+np.float32,0x3f4ea2ed,0x3f2b03e4,2
+np.float32,0x3e7211f0,0x3e6da8cf,2
+np.float32,0x7f39d0cf,0x3f800000,2
+np.float32,0xfee57fc6,0xbf800000,2
+np.float32,0xff6fb326,0xbf800000,2
+np.float32,0xff800000,0xbf800000,2
+np.float32,0x3f0437a4,0x3ef32fcd,2
+np.float32,0xff546d1e,0xbf800000,2
+np.float32,0x3eb5645b,0x3eae2a5c,2
+np.float32,0x3f08a6e5,0x3ef9ff8f,2
+np.float32,0x80800000,0x80800000,2
+np.float32,0x7f3413da,0x3f800000,2
+np.float32,0xfd760140,0xbf800000,2
+np.float32,0x7f3ad24a,0x3f800000,2
+np.float32,0xbf56e812,0xbf2f7f14,2
+np.float32,0xbece0338,0xbec3920a,2
+np.float32,0xbeede54a,0xbede22ae,2
+np.float32,0x7eaeb215,0x3f800000,2
+np.float32,0x3c213c00,0x3c213aab,2
+np.float32,0x7eaac217,0x3f800000,2
+np.float32,0xbf2f740e,0xbf1851a6,2
+np.float32,0x7f6ca5b8,0x3f800000,2
+np.float32,0xff42ce95,0xbf800000,2
+np.float32,0x802e4189,0x802e4189,2
+np.float32,0x80000001,0x80000001,2
+np.float32,0xbf31f298,0xbf19ebbe,2
+np.float32,0x3dcb0e6c,0x3dca64c1,2
+np.float32,0xbf29599c,0xbf145204,2
+np.float32,0x2e33f2,0x2e33f2,2
+np.float32,0x1c11e7,0x1c11e7,2
+np.float32,0x3f3b188d,0x3f1fa302,2
+np.float32,0x113300,0x113300,2
+np.float32,0x8054589e,0x8054589e,2
+np.float32,0x2a9e69,0x2a9e69,2
+np.float32,0xff513af7,0xbf800000,2
+np.float32,0x7f2e987a,0x3f800000,2
+np.float32,0x807cd426,0x807cd426,2
+np.float32,0x7f0dc4e4,0x3f800000,2
+np.float32,0x7e7c0d56,0x3f800000,2
+np.float32,0x5cb076,0x5cb076,2
+np.float32,0x80576426,0x80576426,2
+np.float32,0xff616222,0xbf800000,2
+np.float32,0xbf7accb5,0xbf40c005,2
+np.float32,0xfe4118c8,0xbf800000,2
+np.float32,0x804b9327,0x804b9327,2
+np.float32,0x3ed2b428,0x3ec79026,2
+np.float32,0x3f4a048f,0x3f286d41,2
+np.float32,0x800000,0x800000,2
+np.float32,0x7efceb9f,0x3f800000,2
+np.float32,0xbf5fe2d3,0xbf34246f,2
+np.float32,0x807e086a,0x807e086a,2
+np.float32,0x7ef5e856,0x3f800000,2
+np.float32,0xfc546f00,0xbf800000,2
+np.float32,0x3a65b890,0x3a65b88c,2
+np.float32,0x800cfa70,0x800cfa70,2
+np.float32,0x80672ea7,0x80672ea7,2
+np.float32,0x3f2bf3f2,0x3f160a12,2
+np.float32,0xbf0ab67e,0xbefd2004,2
+np.float32,0x3f2a0bb4,0x3f14c824,2
+np.float32,0xbeff5374,0xbeec12d7,2
+np.float32,0xbf221b58,0xbf0f6dff,2
+np.float32,0x7cc1f3,0x7cc1f3,2
+np.float32,0x7f234e3c,0x3f800000,2
+np.float32,0x3f60ff10,0x3f34b37d,2
+np.float32,0xbdd957f0,0xbdd887fe,2
+np.float32,0x801ce048,0x801ce048,2
+np.float32,0x7f3a8f76,0x3f800000,2
+np.float32,0xfdd13d08,0xbf800000,2
+np.float32,0x3e9af4a4,0x3e966445,2
+np.float32,0x1e55f3,0x1e55f3,2
+np.float32,0x327905,0x327905,2
+np.float32,0xbf03cf0b,0xbef28dad,2
+np.float32,0x3f0223d3,0x3eeff4f4,2
+np.float32,0xfdd96ff8,0xbf800000,2
+np.float32,0x428db8,0x428db8,2
+np.float32,0xbd74a200,0xbd7457a5,2
+np.float32,0x2a63a3,0x2a63a3,2
+np.float32,0x7e8aa9d7,0x3f800000,2
+np.float32,0x7f50b810,0x3f800000,2
+np.float32,0xbce5ec80,0xbce5dd0d,2
+np.float32,0x54711,0x54711,2
+np.float32,0x8074212a,0x8074212a,2
+np.float32,0xbf13d0ec,0xbf0551b5,2
+np.float32,0x80217f89,0x80217f89,2
+np.float32,0x3f300824,0x3f18b12f,2
+np.float32,0x7d252462,0x3f800000,2
+np.float32,0x807a154c,0x807a154c,2
+np.float32,0x8064d4b9,0x8064d4b9,2
+np.float32,0x804543b4,0x804543b4,2
+np.float32,0x4c269e,0x4c269e,2
+np.float32,0xff39823b,0xbf800000,2
+np.float32,0x3f5040b1,0x3f2be80b,2
+np.float32,0xbf7028c1,0xbf3bfee5,2
+np.float32,0x3e94eb78,0x3e90db93,2
+np.float32,0x3ccc1b40,0x3ccc1071,2
+np.float32,0xbe8796f0,0xbe8481a1,2
+np.float32,0xfc767bc0,0xbf800000,2
+np.float32,0xbdd81ed0,0xbdd75259,2
+np.float32,0xbed31bfc,0xbec7e82d,2
+np.float32,0xbf350a9e,0xbf1be1c6,2
+np.float32,0x33d41f,0x33d41f,2
+np.float32,0x3f73e076,0x3f3db0b5,2
+np.float32,0x3f800000,0x3f42f7d6,2
+np.float32,0xfee27c14,0xbf800000,2
+np.float32,0x7f6e4388,0x3f800000,2
+np.float32,0x4ea19b,0x4ea19b,2
+np.float32,0xff2d75f2,0xbf800000,2
+np.float32,0x7ee225ca,0x3f800000,2
+np.float32,0x3f31cb4b,0x3f19d2a4,2
+np.float32,0x80554a9d,0x80554a9d,2
+np.float32,0x3f4d57fa,0x3f2a4c03,2
+np.float32,0x3eac6a88,0x3ea62e72,2
+np.float32,0x773520,0x773520,2
+np.float32,0x8079c20a,0x8079c20a,2
+np.float32,0xfeb1eb94,0xbf800000,2
+np.float32,0xfe8d81c0,0xbf800000,2
+np.float32,0xfeed6902,0xbf800000,2
+np.float32,0x8066bb65,0x8066bb65,2
+np.float32,0x7f800000,0x3f800000,2
+np.float32,0x1,0x1,2
+np.float32,0x3f2c66a4,0x3f16554a,2
+np.float32,0x3cd231,0x3cd231,2
+np.float32,0x3e932a64,0x3e8f3e0c,2
+np.float32,0xbf3ab1c3,0xbf1f6420,2
+np.float32,0xbc902b20,0xbc902751,2
+np.float32,0x7dac0a5b,0x3f800000,2
+np.float32,0x3f2b7e06,0x3f15bc93,2
+np.float32,0x75de0,0x75de0,2
+np.float32,0x8020b7bc,0x8020b7bc,2
+np.float32,0x3f257cda,0x3f11bb6b,2
+np.float32,0x807480e5,0x807480e5,2
+np.float32,0xfe00d758,0xbf800000,2
+np.float32,0xbd9b54e0,0xbd9b08cd,2
+np.float32,0x4dfbe3,0x4dfbe3,2
+np.float32,0xff645788,0xbf800000,2
+np.float32,0xbe92c80a,0xbe8ee360,2
+np.float32,0x3eb9b400,0x3eb1f77c,2
+np.float32,0xff20b69c,0xbf800000,2
+np.float32,0x623c28,0x623c28,2
+np.float32,0xff235748,0xbf800000,2
+np.float32,0xbf3bbc56,0xbf2006f3,2
+np.float32,0x7e6f78b1,0x3f800000,2
+np.float32,0x7e1584e9,0x3f800000,2
+np.float32,0xff463423,0xbf800000,2
+np.float32,0x8002861e,0x8002861e,2
+np.float32,0xbf0491d8,0xbef3bb6a,2
+np.float32,0x7ea3bc17,0x3f800000,2
+np.float32,0xbedde7ea,0xbed0fb49,2
+np.float32,0xbf4bac48,0xbf295c8b,2
+np.float32,0xff28e276,0xbf800000,2
+np.float32,0x7e8f3bf5,0x3f800000,2
+np.float32,0xbf0a4a73,0xbefc7c9d,2
+np.float32,0x7ec5bd96,0x3f800000,2
+np.float32,0xbf4c22e8,0xbf299f2c,2
+np.float32,0x3e3970a0,0x3e377064,2
+np.float32,0x3ecb1118,0x3ec10c88,2
+np.float32,0xff548a7a,0xbf800000,2
+np.float32,0xfe8ec550,0xbf800000,2
+np.float32,0x3e158985,0x3e147bb2,2
+np.float32,0x7eb79ad7,0x3f800000,2
+np.float32,0xbe811384,0xbe7cd1ab,2
+np.float32,0xbdc4b9e8,0xbdc41f94,2
+np.float32,0xe0fd5,0xe0fd5,2
+np.float32,0x3f2485f2,0x3f11142b,2
+np.float32,0xfdd3c3d8,0xbf800000,2
+np.float32,0xfe8458e6,0xbf800000,2
+np.float32,0x3f06e398,0x3ef74dd8,2
+np.float32,0xff4752cf,0xbf800000,2
+np.float32,0x6998e3,0x6998e3,2
+np.float32,0x626751,0x626751,2
+np.float32,0x806631d6,0x806631d6,2
+np.float32,0xbf0c3cf4,0xbeff6c54,2
+np.float32,0x802860f8,0x802860f8,2
+np.float32,0xff2952cb,0xbf800000,2
+np.float32,0xff31d40b,0xbf800000,2
+np.float32,0x7c389473,0x3f800000,2
+np.float32,0x3dcd2f1b,0x3dcc8010,2
+np.float32,0x3d70c29f,0x3d707bbc,2
+np.float32,0x3f6bd386,0x3f39f979,2
+np.float32,0x1efec9,0x1efec9,2
+np.float32,0x3f675518,0x3f37d338,2
+np.float32,0x5fdbe3,0x5fdbe3,2
+np.float32,0x5d684e,0x5d684e,2
+np.float32,0xbedfe748,0xbed2a4c7,2
+np.float32,0x3f0cb07a,0x3f000cdc,2
+np.float32,0xbf77151e,0xbf3f1f5d,2
+np.float32,0x7f038ea0,0x3f800000,2
+np.float32,0x3ea91be9,0x3ea3376f,2
+np.float32,0xbdf20738,0xbdf0e861,2
+np.float32,0x807ea380,0x807ea380,2
+np.float32,0x2760ca,0x2760ca,2
+np.float32,0x7f20a544,0x3f800000,2
+np.float32,0x76ed83,0x76ed83,2
+np.float32,0x15a441,0x15a441,2
+np.float32,0x74c76d,0x74c76d,2
+np.float32,0xff3d5c2a,0xbf800000,2
+np.float32,0x7f6a76a6,0x3f800000,2
+np.float32,0x3eb87067,0x3eb0dabe,2
+np.float32,0xbf515cfa,0xbf2c83af,2
+np.float32,0xbdececc0,0xbdebdf9d,2
+np.float32,0x7f51b7c2,0x3f800000,2
+np.float32,0x3eb867ac,0x3eb0d30d,2
+np.float32,0xff50fd84,0xbf800000,2
+np.float32,0x806945e9,0x806945e9,2
+np.float32,0x298eed,0x298eed,2
+np.float32,0x441f53,0x441f53,2
+np.float32,0x8066d4b0,0x8066d4b0,2
+np.float32,0x3f6a479c,0x3f393dae,2
+np.float32,0xbf6ce2a7,0xbf3a7921,2
+np.float32,0x8064c3cf,0x8064c3cf,2
+np.float32,0xbf2d8146,0xbf170dfd,2
+np.float32,0x3b0e82,0x3b0e82,2
+np.float32,0xbea97574,0xbea387dc,2
+np.float32,0x67ad15,0x67ad15,2
+np.float32,0xbf68478f,0xbf38485a,2
+np.float32,0xff6f593b,0xbf800000,2
+np.float32,0xbeda26f2,0xbecdd806,2
+np.float32,0xbd216d50,0xbd2157ee,2
+np.float32,0x7a8544db,0x3f800000,2
+np.float32,0x801df20b,0x801df20b,2
+np.float32,0xbe14ba24,0xbe13b0a8,2
+np.float32,0xfdc6d8a8,0xbf800000,2
+np.float32,0x1d6b49,0x1d6b49,2
+np.float32,0x7f5ff1b8,0x3f800000,2
+np.float32,0x3f75e032,0x3f3e9625,2
+np.float32,0x7f2c5687,0x3f800000,2
+np.float32,0x3d95fb6c,0x3d95b6ee,2
+np.float32,0xbea515e4,0xbe9f97c8,2
+np.float32,0x7f2b2cd7,0x3f800000,2
+np.float32,0x3f076f7a,0x3ef8241e,2
+np.float32,0x5178ca,0x5178ca,2
+np.float32,0xbeb5976a,0xbeae5781,2
+np.float32,0x3e3c3563,0x3e3a1e13,2
+np.float32,0xbd208530,0xbd20702a,2
+np.float32,0x3eb03b04,0x3ea995ef,2
+np.float32,0x17fb9c,0x17fb9c,2
+np.float32,0xfca68e40,0xbf800000,2
+np.float32,0xbf5e7433,0xbf336a9f,2
+np.float32,0xff5b8d3d,0xbf800000,2
+np.float32,0x8003121d,0x8003121d,2
+np.float32,0xbe6dd344,0xbe69a3b0,2
+np.float32,0x67cc4,0x67cc4,2
+np.float32,0x9b01d,0x9b01d,2
+np.float32,0x127c13,0x127c13,2
+np.float32,0xfea5e3d6,0xbf800000,2
+np.float32,0xbdf5c610,0xbdf499c1,2
+np.float32,0x3aff4c00,0x3aff4beb,2
+np.float32,0x3b00afd0,0x3b00afc5,2
+np.float32,0x479618,0x479618,2
+np.float32,0x801cbd05,0x801cbd05,2
+np.float32,0x3ec9249f,0x3ebf6579,2
+np.float32,0x3535c4,0x3535c4,2
+np.float32,0xbeb4f662,0xbeadc915,2
+np.float32,0x8006fda6,0x8006fda6,2
+np.float32,0xbf4f3097,0xbf2b5239,2
+np.float32,0xbf3cb9a8,0xbf20a0e9,2
+np.float32,0x32ced0,0x32ced0,2
+np.float32,0x7ea34e76,0x3f800000,2
+np.float32,0x80063046,0x80063046,2
+np.float32,0x80727e8b,0x80727e8b,2
+np.float32,0xfd6b5780,0xbf800000,2
+np.float32,0x80109815,0x80109815,2
+np.float32,0xfdcc8a78,0xbf800000,2
+np.float32,0x81562,0x81562,2
+np.float32,0x803dfacc,0x803dfacc,2
+np.float32,0xbe204318,0xbe1ef75f,2
+np.float32,0xbf745d34,0xbf3de8e2,2
+np.float32,0xff13fdcc,0xbf800000,2
+np.float32,0x7f75ba8c,0x3f800000,2
+np.float32,0x806c04b4,0x806c04b4,2
+np.float32,0x3ec61ca6,0x3ebcc877,2
+np.float32,0xbeaea984,0xbea8301f,2
+np.float32,0xbf4dcd0e,0xbf2a8d34,2
+np.float32,0x802a01d3,0x802a01d3,2
+np.float32,0xbf747be5,0xbf3df6ad,2
+np.float32,0xbf75cbd2,0xbf3e8d0f,2
+np.float32,0x7db86576,0x3f800000,2
+np.float32,0xff49a2c3,0xbf800000,2
+np.float32,0xbedc5314,0xbecfa978,2
+np.float32,0x8078877b,0x8078877b,2
+np.float32,0xbead4824,0xbea6f499,2
+np.float32,0xbf3926e3,0xbf1e716c,2
+np.float32,0x807f4a1c,0x807f4a1c,2
+np.float32,0x7f2cd8fd,0x3f800000,2
+np.float32,0x806cfcca,0x806cfcca,2
+np.float32,0xff1aa048,0xbf800000,2
+np.float32,0x7eb9ea08,0x3f800000,2
+np.float32,0xbf1034bc,0xbf02ab3a,2
+np.float32,0xbd087830,0xbd086b44,2
+np.float32,0x7e071034,0x3f800000,2
+np.float32,0xbefcc9de,0xbeea122f,2
+np.float32,0x80796d7a,0x80796d7a,2
+np.float32,0x33ce46,0x33ce46,2
+np.float32,0x8074a783,0x8074a783,2
+np.float32,0xbe95a56a,0xbe918691,2
+np.float32,0xbf2ff3f4,0xbf18a42d,2
+np.float32,0x1633e9,0x1633e9,2
+np.float32,0x7f0f104b,0x3f800000,2
+np.float32,0xbf800000,0xbf42f7d6,2
+np.float32,0x3d2cd6,0x3d2cd6,2
+np.float32,0xfed43e16,0xbf800000,2
+np.float32,0x3ee6faec,0x3ed87d2c,2
+np.float32,0x3f2c32d0,0x3f163352,2
+np.float32,0xff4290c0,0xbf800000,2
+np.float32,0xbf66500e,0xbf37546a,2
+np.float32,0x7dfb8fe3,0x3f800000,2
+np.float32,0x3f20ba5d,0x3f0e7b16,2
+np.float32,0xff30c7ae,0xbf800000,2
+np.float32,0x1728a4,0x1728a4,2
+np.float32,0x340d82,0x340d82,2
+np.float32,0xff7870b7,0xbf800000,2
+np.float32,0xbeac6ac4,0xbea62ea7,2
+np.float32,0xbef936fc,0xbee73c36,2
+np.float32,0x3ec7e12c,0x3ebe4ef8,2
+np.float32,0x80673488,0x80673488,2
+np.float32,0xfdf14c90,0xbf800000,2
+np.float32,0x3f182568,0x3f08726e,2
+np.float32,0x7ed7dcd0,0x3f800000,2
+np.float32,0x3de4da34,0x3de3e790,2
+np.float32,0xff7fffff,0xbf800000,2
+np.float32,0x4ff90c,0x4ff90c,2
+np.float32,0x3efb0d1c,0x3ee8b1d6,2
+np.float32,0xbf66e952,0xbf379ef4,2
+np.float32,0xba9dc,0xba9dc,2
+np.float32,0xff67c766,0xbf800000,2
+np.float32,0x7f1ffc29,0x3f800000,2
+np.float32,0x3f51c906,0x3f2cbe99,2
+np.float32,0x3f2e5792,0x3f179968,2
+np.float32,0x3ecb9750,0x3ec17fa0,2
+np.float32,0x7f3fcefc,0x3f800000,2
+np.float32,0xbe4e30fc,0xbe4b72f9,2
+np.float32,0x7e9bc4ce,0x3f800000,2
+np.float32,0x7e70aa1f,0x3f800000,2
+np.float32,0x14c6e9,0x14c6e9,2
+np.float32,0xbcf327c0,0xbcf3157a,2
+np.float32,0xff1fd204,0xbf800000,2
+np.float32,0x7d934a03,0x3f800000,2
+np.float32,0x8028bf1e,0x8028bf1e,2
+np.float32,0x7f0800b7,0x3f800000,2
+np.float32,0xfe04825c,0xbf800000,2
+np.float32,0x807210ac,0x807210ac,2
+np.float32,0x3f7faf7c,0x3f42d5fd,2
+np.float32,0x3e04a543,0x3e03e899,2
+np.float32,0x3e98ea15,0x3e94863e,2
+np.float32,0x3d2a2e48,0x3d2a153b,2
+np.float32,0x7fa00000,0x7fe00000,2
+np.float32,0x20a488,0x20a488,2
+np.float32,0x3f6ba86a,0x3f39e51a,2
+np.float32,0x0,0x0,2
+np.float32,0x3e892ddd,0x3e85fcfe,2
+np.float32,0x3e2da627,0x3e2c00e0,2
+np.float32,0xff000a50,0xbf800000,2
+np.float32,0x3eb749f4,0x3eafd739,2
+np.float32,0x8024c0ae,0x8024c0ae,2
+np.float32,0xfc8f3b40,0xbf800000,2
+np.float32,0xbf685fc7,0xbf385405,2
+np.float32,0x3f1510e6,0x3f063a4f,2
+np.float32,0x3f68e8ad,0x3f3895d8,2
+np.float32,0x3dba8608,0x3dba0271,2
+np.float32,0xbf16ea10,0xbf079017,2
+np.float32,0xb3928,0xb3928,2
+np.float32,0xfe447c00,0xbf800000,2
+np.float32,0x3db9cd57,0x3db94b45,2
+np.float32,0x803b66b0,0x803b66b0,2
+np.float32,0x805b5e02,0x805b5e02,2
+np.float32,0x7ec93f61,0x3f800000,2
+np.float32,0x8005a126,0x8005a126,2
+np.float32,0x6d8888,0x6d8888,2
+np.float32,0x3e21b7de,0x3e206314,2
+np.float32,0xbec9c31e,0xbebfedc2,2
+np.float32,0xbea88aa8,0xbea2b4e5,2
+np.float32,0x3d8fc310,0x3d8f86bb,2
+np.float32,0xbf3cc68a,0xbf20a8b8,2
+np.float32,0x432690,0x432690,2
+np.float32,0xbe51d514,0xbe4ef1a3,2
+np.float32,0xbcda6d20,0xbcda5fe1,2
+np.float32,0xfe24e458,0xbf800000,2
+np.float32,0xfedc8c14,0xbf800000,2
+np.float32,0x7f7e9bd4,0x3f800000,2
+np.float32,0x3ebcc880,0x3eb4ab44,2
+np.float32,0xbe0aa490,0xbe09cd44,2
+np.float32,0x3dc9158c,0x3dc870c3,2
+np.float32,0x3e5c319e,0x3e58dc90,2
+np.float32,0x1d4527,0x1d4527,2
+np.float32,0x2dbf5,0x2dbf5,2
+np.float32,0xbf1f121f,0xbf0d5534,2
+np.float32,0x7e3e9ab5,0x3f800000,2
+np.float32,0x7f74b5c1,0x3f800000,2
+np.float32,0xbf6321ba,0xbf35c42b,2
+np.float32,0xbe5c7488,0xbe591c79,2
+np.float32,0x7e7b02cd,0x3f800000,2
+np.float32,0xfe7cbfa4,0xbf800000,2
+np.float32,0xbeace360,0xbea69a86,2
+np.float32,0x7e149b00,0x3f800000,2
+np.float32,0xbf61a700,0xbf35079a,2
+np.float32,0x7eb592a7,0x3f800000,2
+np.float32,0x3f2105e6,0x3f0eaf30,2
+np.float32,0xfd997a88,0xbf800000,2
+np.float32,0xff5d093b,0xbf800000,2
+np.float32,0x63aede,0x63aede,2
+np.float32,0x6907ee,0x6907ee,2
+np.float32,0xbf7578ee,0xbf3e680f,2
+np.float32,0xfea971e8,0xbf800000,2
+np.float32,0x3f21d0f5,0x3f0f3aed,2
+np.float32,0x3a50e2,0x3a50e2,2
+np.float32,0x7f0f5b1e,0x3f800000,2
+np.float32,0x805b9765,0x805b9765,2
+np.float32,0xbe764ab8,0xbe71a664,2
+np.float32,0x3eafac7f,0x3ea91701,2
+np.float32,0x807f4130,0x807f4130,2
+np.float32,0x7c5f31,0x7c5f31,2
+np.float32,0xbdbe0e30,0xbdbd8300,2
+np.float32,0x7ecfe4e0,0x3f800000,2
+np.float32,0xff7cb628,0xbf800000,2
+np.float32,0xff1842bc,0xbf800000,2
+np.float32,0xfd4163c0,0xbf800000,2
+np.float32,0x800e11f7,0x800e11f7,2
+np.float32,0x7f3adec8,0x3f800000,2
+np.float32,0x7f597514,0x3f800000,2
+np.float32,0xbe986e14,0xbe9414a4,2
+np.float32,0x800fa9d7,0x800fa9d7,2
+np.float32,0xff5b79c4,0xbf800000,2
+np.float32,0x80070565,0x80070565,2
+np.float32,0xbee5628e,0xbed72d60,2
+np.float32,0x3f438ef2,0x3f24b3ca,2
+np.float32,0xcda91,0xcda91,2
+np.float32,0x7e64151a,0x3f800000,2
+np.float32,0xbe95d584,0xbe91b2c7,2
+np.float32,0x8022c2a1,0x8022c2a1,2
+np.float32,0x7e7097bf,0x3f800000,2
+np.float32,0x80139035,0x80139035,2
+np.float32,0x804de2cb,0x804de2cb,2
+np.float32,0xfde5d178,0xbf800000,2
+np.float32,0x6d238,0x6d238,2
+np.float32,0x807abedc,0x807abedc,2
+np.float32,0x3f450a12,0x3f259129,2
+np.float32,0x3ef1c120,0x3ee141f2,2
+np.float32,0xfeb64dae,0xbf800000,2
+np.float32,0x8001732c,0x8001732c,2
+np.float32,0x3f76062e,0x3f3ea711,2
+np.float32,0x3eddd550,0x3ed0ebc8,2
+np.float32,0xff5ca1d4,0xbf800000,2
+np.float32,0xbf49dc5e,0xbf285673,2
+np.float32,0x7e9e5438,0x3f800000,2
+np.float32,0x7e83625e,0x3f800000,2
+np.float32,0x3f5dc41c,0x3f3310da,2
+np.float32,0x3f583efa,0x3f30342f,2
+np.float32,0xbe26bf88,0xbe254a2d,2
+np.float32,0xff1e0beb,0xbf800000,2
+np.float32,0xbe2244c8,0xbe20ec86,2
+np.float32,0xff0b1630,0xbf800000,2
+np.float32,0xff338dd6,0xbf800000,2
+np.float32,0x3eafc22c,0x3ea92a51,2
+np.float32,0x800ea07f,0x800ea07f,2
+np.float32,0x3f46f006,0x3f26aa7e,2
+np.float32,0x3e5f57cd,0x3e5bde16,2
+np.float32,0xbf1b2d8e,0xbf0a9a93,2
+np.float32,0xfeacdbe0,0xbf800000,2
+np.float32,0x7e5ea4bc,0x3f800000,2
+np.float32,0xbf51cbe2,0xbf2cc027,2
+np.float32,0x8073644c,0x8073644c,2
+np.float32,0xff2d6bfe,0xbf800000,2
+np.float32,0x3f65f0f6,0x3f37260a,2
+np.float32,0xff4b37a6,0xbf800000,2
+np.float32,0x712df7,0x712df7,2
+np.float32,0x7f71ef17,0x3f800000,2
+np.float32,0x8042245c,0x8042245c,2
+np.float32,0x3e5dde7b,0x3e5a760d,2
+np.float32,0x8069317d,0x8069317d,2
+np.float32,0x807932dd,0x807932dd,2
+np.float32,0x802f847e,0x802f847e,2
+np.float32,0x7e9300,0x7e9300,2
+np.float32,0x8040b4ab,0x8040b4ab,2
+np.float32,0xff76ef8e,0xbf800000,2
+np.float32,0x4aae3a,0x4aae3a,2
+np.float32,0x8058de73,0x8058de73,2
+np.float32,0x7e4d58c0,0x3f800000,2
+np.float32,0x3d811b30,0x3d80ef79,2
+np.float32,0x7ec952cc,0x3f800000,2
+np.float32,0xfe162b1c,0xbf800000,2
+np.float32,0x3f0f1187,0x3f01d367,2
+np.float32,0xbf2f3458,0xbf182878,2
+np.float32,0x5ceb14,0x5ceb14,2
+np.float32,0xbec29476,0xbeb9b939,2
+np.float32,0x3e71f943,0x3e6d9176,2
+np.float32,0x3ededefc,0x3ed1c909,2
+np.float32,0x805df6ac,0x805df6ac,2
+np.float32,0x3e5ae2c8,0x3e579ca8,2
+np.float32,0x3f6ad2c3,0x3f397fdf,2
+np.float32,0x7d5f94d3,0x3f800000,2
+np.float32,0xbeec7fe4,0xbedd0037,2
+np.float32,0x3f645304,0x3f365b0d,2
+np.float32,0xbf69a087,0xbf38edef,2
+np.float32,0x8025102e,0x8025102e,2
+np.float32,0x800db486,0x800db486,2
+np.float32,0x4df6c7,0x4df6c7,2
+np.float32,0x806d8cdd,0x806d8cdd,2
+np.float32,0x7f0c78cc,0x3f800000,2
+np.float32,0x7e1cf70b,0x3f800000,2
+np.float32,0x3e0ae570,0x3e0a0cf7,2
+np.float32,0x80176ef8,0x80176ef8,2
+np.float32,0x3f38b60c,0x3f1e2bbb,2
+np.float32,0x3d3071e0,0x3d3055f5,2
+np.float32,0x3ebfcfdd,0x3eb750a9,2
+np.float32,0xfe2cdec0,0xbf800000,2
+np.float32,0x7eeb2eed,0x3f800000,2
+np.float32,0x8026c904,0x8026c904,2
+np.float32,0xbec79bde,0xbebe133a,2
+np.float32,0xbf7dfab6,0xbf421d47,2
+np.float32,0x805b3cfd,0x805b3cfd,2
+np.float32,0xfdfcfb68,0xbf800000,2
+np.float32,0xbd537ec0,0xbd534eaf,2
+np.float32,0x52ce73,0x52ce73,2
+np.float32,0xfeac6ea6,0xbf800000,2
+np.float32,0x3f2c2990,0x3f162d41,2
+np.float32,0x3e3354e0,0x3e318539,2
+np.float32,0x802db22b,0x802db22b,2
+np.float32,0x7f0faa83,0x3f800000,2
+np.float32,0x7f10e161,0x3f800000,2
+np.float32,0x7f165c60,0x3f800000,2
+np.float32,0xbf5a756f,0xbf315c82,2
+np.float32,0x7f5a4b68,0x3f800000,2
+np.float32,0xbd77fbf0,0xbd77ae7c,2
+np.float32,0x65d83c,0x65d83c,2
+np.float32,0x3e5f28,0x3e5f28,2
+np.float32,0x8040ec92,0x8040ec92,2
+np.float32,0xbf2b41a6,0xbf1594d5,2
+np.float32,0x7f2f88f1,0x3f800000,2
+np.float32,0xfdb64ab8,0xbf800000,2
+np.float32,0xbf7a3ff1,0xbf4082f5,2
+np.float32,0x1948fc,0x1948fc,2
+np.float32,0x802c1039,0x802c1039,2
+np.float32,0x80119274,0x80119274,2
+np.float32,0x7e885d7b,0x3f800000,2
+np.float32,0xfaf6a,0xfaf6a,2
+np.float32,0x3eba28c4,0x3eb25e1d,2
+np.float32,0x3e4df370,0x3e4b37da,2
+np.float32,0xbf19eff6,0xbf09b97d,2
+np.float32,0xbeddd3c6,0xbed0ea7f,2
+np.float32,0xff6fc971,0xbf800000,2
+np.float32,0x7e93de29,0x3f800000,2
+np.float32,0x3eb12332,0x3eaa6485,2
+np.float32,0x3eb7c6e4,0x3eb04563,2
+np.float32,0x4a67ee,0x4a67ee,2
+np.float32,0xff1cafde,0xbf800000,2
+np.float32,0x3f5e2812,0x3f3343da,2
+np.float32,0x3f060e04,0x3ef605d4,2
+np.float32,0x3e9027d8,0x3e8c76a6,2
+np.float32,0xe2d33,0xe2d33,2
+np.float32,0xff4c94fc,0xbf800000,2
+np.float32,0xbf574908,0xbf2fb26b,2
+np.float32,0xbf786c08,0xbf3fb68e,2
+np.float32,0x8011ecab,0x8011ecab,2
+np.float32,0xbf061c6a,0xbef61bfa,2
+np.float32,0x7eea5f9d,0x3f800000,2
+np.float32,0x3ea2e19c,0x3e9d99a5,2
+np.float32,0x8071550c,0x8071550c,2
+np.float32,0x41c70b,0x41c70b,2
+np.float32,0x80291fc8,0x80291fc8,2
+np.float32,0x43b1ec,0x43b1ec,2
+np.float32,0x32f5a,0x32f5a,2
+np.float32,0xbe9310ec,0xbe8f2692,2
+np.float32,0x7f75f6bf,0x3f800000,2
+np.float32,0x3e6642a6,0x3e6274d2,2
+np.float32,0x3ecb88e0,0x3ec1733f,2
+np.float32,0x804011b6,0x804011b6,2
+np.float32,0x80629cca,0x80629cca,2
+np.float32,0x8016b914,0x8016b914,2
+np.float32,0xbdd05fc0,0xbdcfa870,2
+np.float32,0x807b824d,0x807b824d,2
+np.float32,0xfeec2576,0xbf800000,2
+np.float32,0xbf54bf22,0xbf2e584c,2
+np.float32,0xbf185eb0,0xbf089b6b,2
+np.float32,0xfbc09480,0xbf800000,2
+np.float32,0x3f413054,0x3f234e25,2
+np.float32,0x7e9e32b8,0x3f800000,2
+np.float32,0x266296,0x266296,2
+np.float32,0x460284,0x460284,2
+np.float32,0x3eb0b056,0x3ea9fe5a,2
+np.float32,0x1a7be5,0x1a7be5,2
+np.float32,0x7f099895,0x3f800000,2
+np.float32,0x3f3614f0,0x3f1c88ef,2
+np.float32,0x7e757dc2,0x3f800000,2
+np.float32,0x801fc91e,0x801fc91e,2
+np.float32,0x3f5ce37d,0x3f329ddb,2
+np.float32,0x3e664d70,0x3e627f15,2
+np.float32,0xbf38ed78,0xbf1e4dfa,2
+np.float32,0xbf5c563d,0xbf325543,2
+np.float32,0xbe91cc54,0xbe8dfb24,2
+np.float32,0x3d767fbe,0x3d7633ac,2
+np.float32,0xbf6aeb40,0xbf398b7f,2
+np.float32,0x7f40508b,0x3f800000,2
+np.float32,0x2650df,0x2650df,2
+np.float32,0xbe8cea3c,0xbe897628,2
+np.float32,0x80515af8,0x80515af8,2
+np.float32,0x7f423986,0x3f800000,2
+np.float32,0xbdf250e8,0xbdf1310c,2
+np.float32,0xfe89288a,0xbf800000,2
+np.float32,0x397b3b,0x397b3b,2
+np.float32,0x7e5e91b0,0x3f800000,2
+np.float32,0x6866e2,0x6866e2,2
+np.float32,0x7f4d8877,0x3f800000,2
+np.float32,0x3e6c4a21,0x3e682ee3,2
+np.float32,0xfc3d5980,0xbf800000,2
+np.float32,0x7eae2cd0,0x3f800000,2
+np.float32,0xbf241222,0xbf10c579,2
+np.float32,0xfebc02de,0xbf800000,2
+np.float32,0xff6e0645,0xbf800000,2
+np.float32,0x802030b6,0x802030b6,2
+np.float32,0x7ef9a441,0x3f800000,2
+np.float32,0x3fcf9f,0x3fcf9f,2
+np.float32,0xbf0ccf13,0xbf0023cc,2
+np.float32,0xfefee688,0xbf800000,2
+np.float32,0xbf6c8e0c,0xbf3a5160,2
+np.float32,0xfe749c28,0xbf800000,2
+np.float32,0x7f7fffff,0x3f800000,2
+np.float32,0x58c1a0,0x58c1a0,2
+np.float32,0x3f2de0a1,0x3f174c17,2
+np.float32,0xbf5f7138,0xbf33eb03,2
+np.float32,0x3da15270,0x3da0fd3c,2
+np.float32,0x3da66560,0x3da607e4,2
+np.float32,0xbf306f9a,0xbf18f3c6,2
+np.float32,0x3e81a4de,0x3e7de293,2
+np.float32,0xbebb5fb8,0xbeb36f1a,2
+np.float32,0x14bf64,0x14bf64,2
+np.float32,0xbeac46c6,0xbea60e73,2
+np.float32,0xbdcdf210,0xbdcd4111,2
+np.float32,0x3f7e3cd9,0x3f42395e,2
+np.float32,0xbc4be640,0xbc4be38e,2
+np.float32,0xff5f53b4,0xbf800000,2
+np.float32,0xbf1315ae,0xbf04c90b,2
+np.float32,0x80000000,0x80000000,2
+np.float32,0xbf6a4149,0xbf393aaa,2
+np.float32,0x3f66b8ee,0x3f378772,2
+np.float32,0xff29293e,0xbf800000,2
+np.float32,0xbcc989c0,0xbcc97f58,2
+np.float32,0xbd9a1b70,0xbd99d125,2
+np.float32,0xfef353cc,0xbf800000,2
+np.float32,0xbdc30cf0,0xbdc27683,2
+np.float32,0xfdfd6768,0xbf800000,2
+np.float32,0x7ebac44c,0x3f800000,2
+np.float32,0xff453cd6,0xbf800000,2
+np.float32,0x3ef07720,0x3ee03787,2
+np.float32,0x80219c14,0x80219c14,2
+np.float32,0x805553a8,0x805553a8,2
+np.float32,0x80703928,0x80703928,2
+np.float32,0xff16d3a7,0xbf800000,2
+np.float32,0x3f1472bc,0x3f05c77b,2
+np.float32,0x3eeea37a,0x3edebcf9,2
+np.float32,0x3db801e6,0x3db7838d,2
+np.float32,0x800870d2,0x800870d2,2
+np.float32,0xbea1172c,0xbe9bfa32,2
+np.float32,0x3f1f5e7c,0x3f0d8a42,2
+np.float32,0x123cdb,0x123cdb,2
+np.float32,0x7f6e6b06,0x3f800000,2
+np.float32,0x3ed80573,0x3ecc0def,2
+np.float32,0xfea31b82,0xbf800000,2
+np.float32,0x6744e0,0x6744e0,2
+np.float32,0x695e8b,0x695e8b,2
+np.float32,0xbee3888a,0xbed5a67d,2
+np.float32,0x7f64bc2a,0x3f800000,2
+np.float32,0x7f204244,0x3f800000,2
+np.float32,0x7f647102,0x3f800000,2
+np.float32,0x3dd8ebc0,0x3dd81d03,2
+np.float32,0x801e7ab1,0x801e7ab1,2
+np.float32,0x7d034b56,0x3f800000,2
+np.float32,0x7fc00000,0x7fc00000,2
+np.float32,0x80194193,0x80194193,2
+np.float32,0xfe31c8d4,0xbf800000,2
+np.float32,0x7fc0c4,0x7fc0c4,2
+np.float32,0xd95bf,0xd95bf,2
+np.float32,0x7e4f991d,0x3f800000,2
+np.float32,0x7fc563,0x7fc563,2
+np.float32,0xbe3fcccc,0xbe3d968a,2
+np.float32,0xfdaaa1c8,0xbf800000,2
+np.float32,0xbf48e449,0xbf27c949,2
+np.float32,0x3eb6c584,0x3eaf625e,2
+np.float32,0xbea35a74,0xbe9e0702,2
+np.float32,0x3eeab47a,0x3edb89d5,2
+np.float32,0xbed99556,0xbecd5de5,2
+np.float64,0xbfb94a81e0329500,0xbfb935867ba761fe,2
+np.float64,0xbfec132f1678265e,0xbfe6900eb097abc3,2
+np.float64,0x5685ea72ad0be,0x5685ea72ad0be,2
+np.float64,0xbfd74d3169ae9a62,0xbfd652e09b9daf32,2
+np.float64,0xbfe28df53d651bea,0xbfe0b8a7f50ab433,2
+np.float64,0x0,0x0,2
+np.float64,0xbfed912738bb224e,0xbfe749e3732831ae,2
+np.float64,0x7fcc6faed838df5d,0x3ff0000000000000,2
+np.float64,0xbfe95fe9a432bfd3,0xbfe51f6349919910,2
+np.float64,0xbfc4d5900b29ab20,0xbfc4a6f496179b8b,2
+np.float64,0xbfcd6025033ac04c,0xbfccded7b34b49b0,2
+np.float64,0xbfdfa655b43f4cac,0xbfdd4ca1e5bb9db8,2
+np.float64,0xe7ea5c7fcfd4c,0xe7ea5c7fcfd4c,2
+np.float64,0xffa5449ca42a8940,0xbff0000000000000,2
+np.float64,0xffe63294c1ac6529,0xbff0000000000000,2
+np.float64,0x7feb9cbae7f73975,0x3ff0000000000000,2
+np.float64,0x800eb07c3e3d60f9,0x800eb07c3e3d60f9,2
+np.float64,0x3fc95777e932aef0,0x3fc9040391e20c00,2
+np.float64,0x800736052dee6c0b,0x800736052dee6c0b,2
+np.float64,0x3fe9ae4afd335c96,0x3fe54b569bab45c7,2
+np.float64,0x7fee4c94217c9927,0x3ff0000000000000,2
+np.float64,0x80094b594bd296b3,0x80094b594bd296b3,2
+np.float64,0xffe5adbcee6b5b7a,0xbff0000000000000,2
+np.float64,0x3fecb8eab47971d5,0x3fe6e236be6f27e9,2
+np.float64,0x44956914892ae,0x44956914892ae,2
+np.float64,0xbfe3bd18ef677a32,0xbfe190bf1e07200c,2
+np.float64,0x800104e5b46209cc,0x800104e5b46209cc,2
+np.float64,0x8008fbcecf71f79e,0x8008fbcecf71f79e,2
+np.float64,0x800f0a46a0be148d,0x800f0a46a0be148d,2
+np.float64,0x7fe657a0702caf40,0x3ff0000000000000,2
+np.float64,0xffd3ff1a9027fe36,0xbff0000000000000,2
+np.float64,0x3fe78bc87bef1790,0x3fe40d2e63aaf029,2
+np.float64,0x7feeabdc4c7d57b8,0x3ff0000000000000,2
+np.float64,0xbfabd28d8437a520,0xbfabcb8ce03a0e56,2
+np.float64,0xbfddc3a133bb8742,0xbfdbc9fdb2594451,2
+np.float64,0x7fec911565b9222a,0x3ff0000000000000,2
+np.float64,0x71302604e2605,0x71302604e2605,2
+np.float64,0xee919d2bdd234,0xee919d2bdd234,2
+np.float64,0xbfc04fcff3209fa0,0xbfc0395a739a2ce4,2
+np.float64,0xffe4668a36e8cd14,0xbff0000000000000,2
+np.float64,0xbfeeafeebefd5fde,0xbfe7cd5f3d61a3ec,2
+np.float64,0x7fddb34219bb6683,0x3ff0000000000000,2
+np.float64,0xbfd2cac6cba5958e,0xbfd24520abb2ff36,2
+np.float64,0xbfb857e49630afc8,0xbfb8452d5064dec2,2
+np.float64,0x3fd2dbf90b25b7f2,0x3fd254eaf48484c2,2
+np.float64,0x800af65c94f5ecba,0x800af65c94f5ecba,2
+np.float64,0xa0eef4bf41ddf,0xa0eef4bf41ddf,2
+np.float64,0xffd8e0a4adb1c14a,0xbff0000000000000,2
+np.float64,0xffe858f6e870b1ed,0xbff0000000000000,2
+np.float64,0x3f94c2c308298580,0x3f94c208a4bb006d,2
+np.float64,0xffb45f0d7428be18,0xbff0000000000000,2
+np.float64,0x800ed4f43dbda9e9,0x800ed4f43dbda9e9,2
+np.float64,0x8002dd697e85bad4,0x8002dd697e85bad4,2
+np.float64,0x787ceab2f0f9e,0x787ceab2f0f9e,2
+np.float64,0xbfdff5fcc2bfebfa,0xbfdd8b736b128589,2
+np.float64,0x7fdb2b4294365684,0x3ff0000000000000,2
+np.float64,0xffe711e5e92e23cc,0xbff0000000000000,2
+np.float64,0x800b1c93f1163928,0x800b1c93f1163928,2
+np.float64,0x7fc524d2f22a49a5,0x3ff0000000000000,2
+np.float64,0x7fc88013b5310026,0x3ff0000000000000,2
+np.float64,0x3fe1a910c5e35222,0x3fe00fd779ebaa2a,2
+np.float64,0xbfb57ec9ca2afd90,0xbfb571e47ecb9335,2
+np.float64,0x7fd7594b20aeb295,0x3ff0000000000000,2
+np.float64,0x7fba4641ca348c83,0x3ff0000000000000,2
+np.float64,0xffe61393706c2726,0xbff0000000000000,2
+np.float64,0x7fd54f3c7baa9e78,0x3ff0000000000000,2
+np.float64,0xffe65ffb12ecbff6,0xbff0000000000000,2
+np.float64,0xbfba3b0376347608,0xbfba239cbbbd1b11,2
+np.float64,0x800200886d640112,0x800200886d640112,2
+np.float64,0xbfecf0ba4679e174,0xbfe6fd59de44a3ec,2
+np.float64,0xffe5c57e122b8afc,0xbff0000000000000,2
+np.float64,0x7fdaad0143355a02,0x3ff0000000000000,2
+np.float64,0x46ab32c08d567,0x46ab32c08d567,2
+np.float64,0x7ff8000000000000,0x7ff8000000000000,2
+np.float64,0xbfda7980fdb4f302,0xbfd90fa9c8066109,2
+np.float64,0x3fe237703c646ee0,0x3fe07969f8d8805a,2
+np.float64,0x8000e9fcfc21d3fb,0x8000e9fcfc21d3fb,2
+np.float64,0xbfdfe6e958bfcdd2,0xbfdd7f952fe87770,2
+np.float64,0xbd7baf217af8,0xbd7baf217af8,2
+np.float64,0xbfceba9e4b3d753c,0xbfce26e54359869a,2
+np.float64,0xb95a2caf72b46,0xb95a2caf72b46,2
+np.float64,0x3fb407e25a280fc5,0x3fb3fd71e457b628,2
+np.float64,0xa1da09d943b41,0xa1da09d943b41,2
+np.float64,0xbfe9c7271cf38e4e,0xbfe559296b471738,2
+np.float64,0x3fefae6170ff5cc3,0x3fe83c70ba82f0e1,2
+np.float64,0x7fe7375348ae6ea6,0x3ff0000000000000,2
+np.float64,0xffe18c9cc6e31939,0xbff0000000000000,2
+np.float64,0x800483d13a6907a3,0x800483d13a6907a3,2
+np.float64,0x7fe772a18caee542,0x3ff0000000000000,2
+np.float64,0xffefff64e7bffec9,0xbff0000000000000,2
+np.float64,0x7fcffc31113ff861,0x3ff0000000000000,2
+np.float64,0x3fd91e067e323c0d,0x3fd7e70bf365a7b3,2
+np.float64,0xb0a6673d614cd,0xb0a6673d614cd,2
+np.float64,0xffef9a297e3f3452,0xbff0000000000000,2
+np.float64,0xffe87cc15e70f982,0xbff0000000000000,2
+np.float64,0xffefd6ad8e7fad5a,0xbff0000000000000,2
+np.float64,0x7fe3aaa3a8a75546,0x3ff0000000000000,2
+np.float64,0xddab0341bb561,0xddab0341bb561,2
+np.float64,0x3fe996d6d7332dae,0x3fe53e3ed5be2922,2
+np.float64,0x3fdbe66a18b7ccd4,0x3fda41e6053c1512,2
+np.float64,0x8914775d1228f,0x8914775d1228f,2
+np.float64,0x3fe44621d4688c44,0x3fe1ef9c7225f8bd,2
+np.float64,0xffab29a2a4365340,0xbff0000000000000,2
+np.float64,0xffc8d4a0c431a940,0xbff0000000000000,2
+np.float64,0xbfd426e085284dc2,0xbfd382e2a9617b87,2
+np.float64,0xbfd3b0a525a7614a,0xbfd3176856faccf1,2
+np.float64,0x80036dedcb06dbdc,0x80036dedcb06dbdc,2
+np.float64,0x3feb13823b762704,0x3fe60ca3facdb696,2
+np.float64,0x3fd7246b7bae48d8,0x3fd62f08afded155,2
+np.float64,0x1,0x1,2
+np.float64,0x3fe8ade4b9715bc9,0x3fe4b97cc1387d27,2
+np.float64,0x3fdf2dbec53e5b7e,0x3fdcecfeee33de95,2
+np.float64,0x3fe4292bf9685258,0x3fe1dbb5a6704090,2
+np.float64,0xbfd21acbb8243598,0xbfd1a2ff42174cae,2
+np.float64,0xdd0d2d01ba1a6,0xdd0d2d01ba1a6,2
+np.float64,0x3fa3f3d2f427e7a0,0x3fa3f13d6f101555,2
+np.float64,0x7fdabf4aceb57e95,0x3ff0000000000000,2
+np.float64,0xd4d9e39ba9b3d,0xd4d9e39ba9b3d,2
+np.float64,0xffec773396f8ee66,0xbff0000000000000,2
+np.float64,0x3fa88cc79031198f,0x3fa887f7ade722ba,2
+np.float64,0xffe63a92066c7524,0xbff0000000000000,2
+np.float64,0xbfcf514e2e3ea29c,0xbfceb510e99aaa19,2
+np.float64,0x9d78c19d3af18,0x9d78c19d3af18,2
+np.float64,0x7fdd748bfbbae917,0x3ff0000000000000,2
+np.float64,0xffb3594c4626b298,0xbff0000000000000,2
+np.float64,0x80068ce5b32d19cc,0x80068ce5b32d19cc,2
+np.float64,0x3fec63d60e78c7ac,0x3fe6b85536e44217,2
+np.float64,0x80080bad4dd0175b,0x80080bad4dd0175b,2
+np.float64,0xbfec6807baf8d010,0xbfe6ba69740f9687,2
+np.float64,0x7fedbae0bbfb75c0,0x3ff0000000000000,2
+np.float64,0x8001cb7aa3c396f6,0x8001cb7aa3c396f6,2
+np.float64,0x7fe1f1f03563e3df,0x3ff0000000000000,2
+np.float64,0x7fd83d3978307a72,0x3ff0000000000000,2
+np.float64,0xbfc05ffe9d20bffc,0xbfc049464e3f0af2,2
+np.float64,0xfe6e053ffcdc1,0xfe6e053ffcdc1,2
+np.float64,0xbfd3bdf39d277be8,0xbfd32386edf12726,2
+np.float64,0x800f41b27bde8365,0x800f41b27bde8365,2
+np.float64,0xbfe2c98390e59307,0xbfe0e3c9260fe798,2
+np.float64,0xffdd6206bcbac40e,0xbff0000000000000,2
+np.float64,0x67f35ef4cfe6c,0x67f35ef4cfe6c,2
+np.float64,0x800337e02ae66fc1,0x800337e02ae66fc1,2
+np.float64,0x3fe0ff70afe1fee1,0x3fdf1f46434330df,2
+np.float64,0x3fd7e0a1df2fc144,0x3fd6d3f82c8031e4,2
+np.float64,0x8008da5cd1b1b4ba,0x8008da5cd1b1b4ba,2
+np.float64,0x80065ec9e4ccbd95,0x80065ec9e4ccbd95,2
+np.float64,0x3fe1d1e559a3a3cb,0x3fe02e4f146aa1ab,2
+np.float64,0x7feb7d2f0836fa5d,0x3ff0000000000000,2
+np.float64,0xbfcb33ce9736679c,0xbfcaccd431b205bb,2
+np.float64,0x800e6d0adf5cda16,0x800e6d0adf5cda16,2
+np.float64,0x7fe46f272ca8de4d,0x3ff0000000000000,2
+np.float64,0x4fdfc73e9fbfa,0x4fdfc73e9fbfa,2
+np.float64,0x800958a13112b143,0x800958a13112b143,2
+np.float64,0xbfea01f877f403f1,0xbfe579a541594247,2
+np.float64,0xeefaf599ddf5f,0xeefaf599ddf5f,2
+np.float64,0x80038766c5e70ece,0x80038766c5e70ece,2
+np.float64,0x7fd31bc28ba63784,0x3ff0000000000000,2
+np.float64,0xbfe4df77eee9bef0,0xbfe257abe7083b77,2
+np.float64,0x7fe6790c78acf218,0x3ff0000000000000,2
+np.float64,0xffe7c66884af8cd0,0xbff0000000000000,2
+np.float64,0x800115e36f422bc8,0x800115e36f422bc8,2
+np.float64,0x3fc601945d2c0329,0x3fc5cab917bb20bc,2
+np.float64,0x3fd6ac9546ad592b,0x3fd5c55437ec3508,2
+np.float64,0xa7bd59294f7ab,0xa7bd59294f7ab,2
+np.float64,0x8005c26c8b8b84da,0x8005c26c8b8b84da,2
+np.float64,0x8257501704aea,0x8257501704aea,2
+np.float64,0x5b12aae0b6256,0x5b12aae0b6256,2
+np.float64,0x800232fe02c465fd,0x800232fe02c465fd,2
+np.float64,0x800dae28f85b5c52,0x800dae28f85b5c52,2
+np.float64,0x3fdade1ac135bc36,0x3fd964a2000ace25,2
+np.float64,0x3fed72ca04fae594,0x3fe73b9170d809f9,2
+np.float64,0x7fc6397e2b2c72fb,0x3ff0000000000000,2
+np.float64,0x3fe1f5296d23ea53,0x3fe048802d17621e,2
+np.float64,0xffe05544b920aa89,0xbff0000000000000,2
+np.float64,0xbfdb2e1588365c2c,0xbfd9a7e4113c713e,2
+np.float64,0xbfed6a06fa3ad40e,0xbfe7376be60535f8,2
+np.float64,0xbfe31dcaf5e63b96,0xbfe120417c46cac1,2
+np.float64,0xbfb7ed67ae2fdad0,0xbfb7dba14af33b00,2
+np.float64,0xffd32bb7eb265770,0xbff0000000000000,2
+np.float64,0x80039877b04730f0,0x80039877b04730f0,2
+np.float64,0x3f832e5630265cac,0x3f832e316f47f218,2
+np.float64,0xffe7fa7f732ff4fe,0xbff0000000000000,2
+np.float64,0x9649b87f2c937,0x9649b87f2c937,2
+np.float64,0xffaee447183dc890,0xbff0000000000000,2
+np.float64,0x7fe4e02dd869c05b,0x3ff0000000000000,2
+np.float64,0x3fe1d35e7463a6bd,0x3fe02f67bd21e86e,2
+np.float64,0xffe57f40fe2afe82,0xbff0000000000000,2
+np.float64,0xbfea1362b93426c6,0xbfe5833421dba8fc,2
+np.float64,0xffe9c689fe338d13,0xbff0000000000000,2
+np.float64,0xffc592dd102b25bc,0xbff0000000000000,2
+np.float64,0x3fd283c7aba5078f,0x3fd203d61d1398c3,2
+np.float64,0x8001d6820243ad05,0x8001d6820243ad05,2
+np.float64,0x3fe0ad5991e15ab4,0x3fdea14ef0d47fbd,2
+np.float64,0x3fe3916f2ee722de,0x3fe1722684a9ffb1,2
+np.float64,0xffef9e54e03f3ca9,0xbff0000000000000,2
+np.float64,0x7fe864faebb0c9f5,0x3ff0000000000000,2
+np.float64,0xbfed3587c3fa6b10,0xbfe71e7112df8a68,2
+np.float64,0xbfdd9efc643b3df8,0xbfdbac3a16caf208,2
+np.float64,0xbfd5ac08feab5812,0xbfd4e14575a6e41b,2
+np.float64,0xffda90fae6b521f6,0xbff0000000000000,2
+np.float64,0x8001380ecf22701e,0x8001380ecf22701e,2
+np.float64,0x7fed266fa5fa4cde,0x3ff0000000000000,2
+np.float64,0xffec6c0ac3b8d815,0xbff0000000000000,2
+np.float64,0x3fe7de43c32fbc88,0x3fe43ef62821a5a6,2
+np.float64,0x800bf4ffc357ea00,0x800bf4ffc357ea00,2
+np.float64,0x3fe125c975624b93,0x3fdf59b2de3eff5d,2
+np.float64,0x8004714c1028e299,0x8004714c1028e299,2
+np.float64,0x3fef1bfbf5fe37f8,0x3fe7fd2ba1b63c8a,2
+np.float64,0x800cae15c3195c2c,0x800cae15c3195c2c,2
+np.float64,0x7fde708e083ce11b,0x3ff0000000000000,2
+np.float64,0x7fbcee5df639dcbb,0x3ff0000000000000,2
+np.float64,0x800b1467141628cf,0x800b1467141628cf,2
+np.float64,0x3fe525e0d36a4bc2,0x3fe286b6e59e30f5,2
+np.float64,0xffe987f8b8330ff1,0xbff0000000000000,2
+np.float64,0x7e0a8284fc151,0x7e0a8284fc151,2
+np.float64,0x8006f982442df305,0x8006f982442df305,2
+np.float64,0xbfd75a3cb62eb47a,0xbfd65e54cee981c9,2
+np.float64,0x258e91104b1d3,0x258e91104b1d3,2
+np.float64,0xbfecd0056779a00b,0xbfe6ed7ae97fff1b,2
+np.float64,0x7fc3a4f9122749f1,0x3ff0000000000000,2
+np.float64,0x6e2b1024dc563,0x6e2b1024dc563,2
+np.float64,0x800d575ad4daaeb6,0x800d575ad4daaeb6,2
+np.float64,0xbfceafb1073d5f64,0xbfce1c93023d8414,2
+np.float64,0xffe895cb5f312b96,0xbff0000000000000,2
+np.float64,0x7fe7811ed4ef023d,0x3ff0000000000000,2
+np.float64,0xbfd93f952f327f2a,0xbfd803e6b5576b99,2
+np.float64,0xffdd883a3fbb1074,0xbff0000000000000,2
+np.float64,0x7fee5624eefcac49,0x3ff0000000000000,2
+np.float64,0xbfe264bb2624c976,0xbfe09a9b7cc896e7,2
+np.float64,0xffef14b417be2967,0xbff0000000000000,2
+np.float64,0xbfecbd0d94397a1b,0xbfe6e43bef852d9f,2
+np.float64,0xbfe20d9e4ba41b3c,0xbfe05a98e05846d9,2
+np.float64,0x10000000000000,0x10000000000000,2
+np.float64,0x7fefde93f7bfbd27,0x3ff0000000000000,2
+np.float64,0x80076b9e232ed73d,0x80076b9e232ed73d,2
+np.float64,0xbfe80df52c701bea,0xbfe45b754b433792,2
+np.float64,0x7fe3b5a637676b4b,0x3ff0000000000000,2
+np.float64,0x2c81d14c5903b,0x2c81d14c5903b,2
+np.float64,0x80038945c767128c,0x80038945c767128c,2
+np.float64,0xffeebaf544bd75ea,0xbff0000000000000,2
+np.float64,0xffdb1867d2b630d0,0xbff0000000000000,2
+np.float64,0x3fe3376eaee66ede,0x3fe13285579763d8,2
+np.float64,0xffddf65ca43becba,0xbff0000000000000,2
+np.float64,0xffec8e3e04791c7b,0xbff0000000000000,2
+np.float64,0x80064f4bde2c9e98,0x80064f4bde2c9e98,2
+np.float64,0x7fe534a085ea6940,0x3ff0000000000000,2
+np.float64,0xbfcbabe31d3757c8,0xbfcb3f8e70adf7e7,2
+np.float64,0xbfe45ca11e28b942,0xbfe1ff04515ef809,2
+np.float64,0x65f4df02cbe9d,0x65f4df02cbe9d,2
+np.float64,0xb08b0cbb61162,0xb08b0cbb61162,2
+np.float64,0x3feae2e8b975c5d1,0x3fe5f302b5e8eda2,2
+np.float64,0x7fcf277ff93e4eff,0x3ff0000000000000,2
+np.float64,0x80010999c4821334,0x80010999c4821334,2
+np.float64,0xbfd7f65911afecb2,0xbfd6e6e9cd098f8b,2
+np.float64,0x800e0560ec3c0ac2,0x800e0560ec3c0ac2,2
+np.float64,0x7fec4152ba3882a4,0x3ff0000000000000,2
+np.float64,0xbfb5c77cd42b8ef8,0xbfb5ba1336084908,2
+np.float64,0x457ff1b68afff,0x457ff1b68afff,2
+np.float64,0x5323ec56a647e,0x5323ec56a647e,2
+np.float64,0xbfeed16cf8bda2da,0xbfe7dc49fc9ae549,2
+np.float64,0xffe8446106b088c1,0xbff0000000000000,2
+np.float64,0xffb93cd13c3279a0,0xbff0000000000000,2
+np.float64,0x7fe515c2aeea2b84,0x3ff0000000000000,2
+np.float64,0x80099df83f933bf1,0x80099df83f933bf1,2
+np.float64,0x7fb3a375562746ea,0x3ff0000000000000,2
+np.float64,0x7fcd7efa243afdf3,0x3ff0000000000000,2
+np.float64,0xffe40cddb12819bb,0xbff0000000000000,2
+np.float64,0x8008b68eecd16d1e,0x8008b68eecd16d1e,2
+np.float64,0x2aec688055d8e,0x2aec688055d8e,2
+np.float64,0xffe23750bc646ea1,0xbff0000000000000,2
+np.float64,0x5adacf60b5b7,0x5adacf60b5b7,2
+np.float64,0x7fefb29b1cbf6535,0x3ff0000000000000,2
+np.float64,0xbfeadbf90175b7f2,0xbfe5ef55e2194794,2
+np.float64,0xeaad2885d55a5,0xeaad2885d55a5,2
+np.float64,0xffd7939fba2f2740,0xbff0000000000000,2
+np.float64,0x3fd187ea3aa30fd4,0x3fd11af023472386,2
+np.float64,0xbf6eb579c03d6b00,0xbf6eb57052f47019,2
+np.float64,0x3fefb67b3bff6cf6,0x3fe83fe4499969ac,2
+np.float64,0xbfe5183aacea3076,0xbfe27da1aa0b61a0,2
+np.float64,0xbfb83e47a2307c90,0xbfb82bcb0e12db42,2
+np.float64,0x80088849b1b11094,0x80088849b1b11094,2
+np.float64,0x800ceeed7399dddb,0x800ceeed7399dddb,2
+np.float64,0x80097cd90892f9b2,0x80097cd90892f9b2,2
+np.float64,0x7ec73feefd8e9,0x7ec73feefd8e9,2
+np.float64,0x7fe3291de5a6523b,0x3ff0000000000000,2
+np.float64,0xbfd537086daa6e10,0xbfd4787af5f60653,2
+np.float64,0x800e8ed4455d1da9,0x800e8ed4455d1da9,2
+np.float64,0x800ef8d19cbdf1a3,0x800ef8d19cbdf1a3,2
+np.float64,0x800dc4fa3a5b89f5,0x800dc4fa3a5b89f5,2
+np.float64,0xaa8b85cd55171,0xaa8b85cd55171,2
+np.float64,0xffd67a5f40acf4be,0xbff0000000000000,2
+np.float64,0xbfb7496db22e92d8,0xbfb7390a48130861,2
+np.float64,0x3fd86a8e7ab0d51d,0x3fd74bfba0f72616,2
+np.float64,0xffb7f5b7fc2feb70,0xbff0000000000000,2
+np.float64,0xbfea0960a7f412c1,0xbfe57db6d0ff4191,2
+np.float64,0x375f4fc26ebeb,0x375f4fc26ebeb,2
+np.float64,0x800c537e70b8a6fd,0x800c537e70b8a6fd,2
+np.float64,0x800b3f4506d67e8a,0x800b3f4506d67e8a,2
+np.float64,0x7fe61f2d592c3e5a,0x3ff0000000000000,2
+np.float64,0xffefffffffffffff,0xbff0000000000000,2
+np.float64,0x8005d0bb84eba178,0x8005d0bb84eba178,2
+np.float64,0x800c78b0ec18f162,0x800c78b0ec18f162,2
+np.float64,0xbfc42cccfb285998,0xbfc4027392f66b0d,2
+np.float64,0x3fd8fdc73fb1fb8e,0x3fd7cb46f928153f,2
+np.float64,0x800c71754298e2eb,0x800c71754298e2eb,2
+np.float64,0x3fe4aa7a96a954f5,0x3fe233f5d3bc1352,2
+np.float64,0x7fd53841f6aa7083,0x3ff0000000000000,2
+np.float64,0x3fd0a887b8a15110,0x3fd04ac3b9c0d1ca,2
+np.float64,0x8007b8e164cf71c4,0x8007b8e164cf71c4,2
+np.float64,0xbfddc35c66bb86b8,0xbfdbc9c5dddfb014,2
+np.float64,0x6a3756fed46eb,0x6a3756fed46eb,2
+np.float64,0xffd3dcd05527b9a0,0xbff0000000000000,2
+np.float64,0xbfd7dc75632fb8ea,0xbfd6d0538b340a98,2
+np.float64,0x17501f822ea05,0x17501f822ea05,2
+np.float64,0xbfe1f98b99a3f317,0xbfe04bbf8f8b6cb3,2
+np.float64,0x66ea65d2cdd4d,0x66ea65d2cdd4d,2
+np.float64,0xbfd12241e2224484,0xbfd0bc62f46ea5e1,2
+np.float64,0x3fed6e6fb3fadcdf,0x3fe7398249097285,2
+np.float64,0x3fe0b5ebeba16bd8,0x3fdeae84b3000a47,2
+np.float64,0x66d1bce8cda38,0x66d1bce8cda38,2
+np.float64,0x3fdd728db3bae51b,0x3fdb880f28c52713,2
+np.float64,0xffb45dbe5228bb80,0xbff0000000000000,2
+np.float64,0x1ff8990c3ff14,0x1ff8990c3ff14,2
+np.float64,0x800a68e8f294d1d2,0x800a68e8f294d1d2,2
+np.float64,0xbfe4d08b84a9a117,0xbfe24da40bff6be7,2
+np.float64,0x3fe0177f0ee02efe,0x3fddb83c5971df51,2
+np.float64,0xffc56893692ad128,0xbff0000000000000,2
+np.float64,0x51b44f6aa368b,0x51b44f6aa368b,2
+np.float64,0x2258ff4e44b21,0x2258ff4e44b21,2
+np.float64,0x3fe913649e7226c9,0x3fe4f3f119530f53,2
+np.float64,0xffe3767df766ecfc,0xbff0000000000000,2
+np.float64,0xbfe62ae12fec55c2,0xbfe33108f1f22a94,2
+np.float64,0x7fb6a6308e2d4c60,0x3ff0000000000000,2
+np.float64,0xbfe00f2085e01e41,0xbfddab19b6fc77d1,2
+np.float64,0x3fb66447dc2cc890,0x3fb655b4f46844f0,2
+np.float64,0x3fd80238f6b00470,0x3fd6f143be1617d6,2
+np.float64,0xbfd05bfeb3a0b7fe,0xbfd0031ab3455e15,2
+np.float64,0xffc3a50351274a08,0xbff0000000000000,2
+np.float64,0xffd8f4241cb1e848,0xbff0000000000000,2
+np.float64,0xbfca72a88c34e550,0xbfca13ebe85f2aca,2
+np.float64,0x3fd47d683ba8fad0,0x3fd3d13f1176ed8c,2
+np.float64,0x3fb6418e642c831d,0x3fb6333ebe479ff2,2
+np.float64,0x800fde8e023fbd1c,0x800fde8e023fbd1c,2
+np.float64,0x8001fb01e323f605,0x8001fb01e323f605,2
+np.float64,0x3febb21ff9f76440,0x3fe65ed788d52fee,2
+np.float64,0x3fe47553ffe8eaa8,0x3fe20fe01f853603,2
+np.float64,0x7fca20b3f9344167,0x3ff0000000000000,2
+np.float64,0x3fe704f4ec6e09ea,0x3fe3ba7277201805,2
+np.float64,0xf864359df0c87,0xf864359df0c87,2
+np.float64,0x4d96b01c9b2d7,0x4d96b01c9b2d7,2
+np.float64,0x3fe8a09fe9f14140,0x3fe4b1c6a2d2e095,2
+np.float64,0xffc46c61b228d8c4,0xbff0000000000000,2
+np.float64,0x3fe680a837ed0150,0x3fe3679d6eeb6485,2
+np.float64,0xbfecedc20f39db84,0xbfe6fbe9ee978bf6,2
+np.float64,0x3fb2314eae24629d,0x3fb2297ba6d55d2d,2
+np.float64,0x3fe9f0b8e7b3e172,0x3fe57026eae36db3,2
+np.float64,0x80097a132ed2f427,0x80097a132ed2f427,2
+np.float64,0x800ae5a41955cb49,0x800ae5a41955cb49,2
+np.float64,0xbfd7527279aea4e4,0xbfd6577de356e1bd,2
+np.float64,0x3fe27d3e01e4fa7c,0x3fe0ac7dd96f9179,2
+np.float64,0x7fedd8cb01bbb195,0x3ff0000000000000,2
+np.float64,0x78f8695af1f0e,0x78f8695af1f0e,2
+np.float64,0x800d2d0e927a5a1d,0x800d2d0e927a5a1d,2
+np.float64,0xffe74b46fb2e968e,0xbff0000000000000,2
+np.float64,0xbfdd12d4c8ba25aa,0xbfdb39dae49e1c10,2
+np.float64,0xbfd6c14710ad828e,0xbfd5d79ef5a8d921,2
+np.float64,0x921f4e55243ea,0x921f4e55243ea,2
+np.float64,0x800b4e4c80969c99,0x800b4e4c80969c99,2
+np.float64,0x7fe08c6ab7e118d4,0x3ff0000000000000,2
+np.float64,0xbfed290014fa5200,0xbfe71871f7e859ed,2
+np.float64,0x8008c1d5c59183ac,0x8008c1d5c59183ac,2
+np.float64,0x3fd339e68c2673cd,0x3fd2aaff3f165a9d,2
+np.float64,0xbfdd20d8113a41b0,0xbfdb4553ea2cb2fb,2
+np.float64,0x3fe52a25deea544c,0x3fe2898d5bf4442c,2
+np.float64,0x498602d4930c1,0x498602d4930c1,2
+np.float64,0x3fd8c450113188a0,0x3fd799b0b2a6c43c,2
+np.float64,0xbfd72bc2f2ae5786,0xbfd6357e15ba7f70,2
+np.float64,0xbfd076188ea0ec32,0xbfd01b8fce44d1af,2
+np.float64,0x9aace1713559c,0x9aace1713559c,2
+np.float64,0x8008a730e8914e62,0x8008a730e8914e62,2
+np.float64,0x7fe9e9a3d833d347,0x3ff0000000000000,2
+np.float64,0x800d3a0d69da741b,0x800d3a0d69da741b,2
+np.float64,0xbfe3e28a29e7c514,0xbfe1aad7643a2d19,2
+np.float64,0x7fe9894c71331298,0x3ff0000000000000,2
+np.float64,0xbfe7c6acb5ef8d5a,0xbfe430c9e258ce62,2
+np.float64,0xffb5a520a62b4a40,0xbff0000000000000,2
+np.float64,0x7fc02109ae204212,0x3ff0000000000000,2
+np.float64,0xb5c58f196b8b2,0xb5c58f196b8b2,2
+np.float64,0x3feb4ee82e769dd0,0x3fe62bae9a39d8b1,2
+np.float64,0x3fec5c3cf278b87a,0x3fe6b49000f12441,2
+np.float64,0x81f64b8103eca,0x81f64b8103eca,2
+np.float64,0xbfeab00d73f5601b,0xbfe5d7f755ab73d9,2
+np.float64,0x3fd016bf28a02d7e,0x3fcf843ea23bcd3c,2
+np.float64,0xbfa1db617423b6c0,0xbfa1d9872ddeb5a8,2
+np.float64,0x3fe83c879d70790f,0x3fe4771502d8f012,2
+np.float64,0x6b267586d64cf,0x6b267586d64cf,2
+np.float64,0x3fc91b6d3f3236d8,0x3fc8ca3eb4da25a9,2
+np.float64,0x7fd4e3f8f3a9c7f1,0x3ff0000000000000,2
+np.float64,0x800a75899214eb14,0x800a75899214eb14,2
+np.float64,0x7fdb1f2e07b63e5b,0x3ff0000000000000,2
+np.float64,0xffe7805a11ef00b4,0xbff0000000000000,2
+np.float64,0x3fc8e1b88a31c371,0x3fc892af45330818,2
+np.float64,0xbfe809fe447013fc,0xbfe45918f07da4d9,2
+np.float64,0xbfeb9d7f2ab73afe,0xbfe65446bfddc792,2
+np.float64,0x3fb47f0a5c28fe15,0x3fb473db9113e880,2
+np.float64,0x800a17ae3cb42f5d,0x800a17ae3cb42f5d,2
+np.float64,0xf5540945eaa81,0xf5540945eaa81,2
+np.float64,0xbfe577fc26aaeff8,0xbfe2bcfbf2cf69ff,2
+np.float64,0xbfb99b3e06333680,0xbfb98577b88e0515,2
+np.float64,0x7fd9290391b25206,0x3ff0000000000000,2
+np.float64,0x7fe1aa62ffa354c5,0x3ff0000000000000,2
+np.float64,0x7b0189a0f604,0x7b0189a0f604,2
+np.float64,0x3f9000ed602001db,0x3f900097fe168105,2
+np.float64,0x3fd576128d2aec25,0x3fd4b1002c92286f,2
+np.float64,0xffecc98ece79931d,0xbff0000000000000,2
+np.float64,0x800a1736c7f42e6e,0x800a1736c7f42e6e,2
+np.float64,0xbfed947548bb28eb,0xbfe74b71479ae739,2
+np.float64,0xa45c032148b9,0xa45c032148b9,2
+np.float64,0xbfc13d011c227a04,0xbfc1228447de5e9f,2
+np.float64,0xffed8baa6ebb1754,0xbff0000000000000,2
+np.float64,0x800ea2de243d45bc,0x800ea2de243d45bc,2
+np.float64,0x8001396be52272d9,0x8001396be52272d9,2
+np.float64,0xd018d1cda031a,0xd018d1cda031a,2
+np.float64,0x7fe1fece1fe3fd9b,0x3ff0000000000000,2
+np.float64,0x8009ac484c135891,0x8009ac484c135891,2
+np.float64,0x3fc560ad132ac15a,0x3fc52e5a9479f08e,2
+np.float64,0x3fd6f80ebe2df01d,0x3fd607f70ce8e3f4,2
+np.float64,0xbfd3e69e82a7cd3e,0xbfd34887c2a40699,2
+np.float64,0x3fe232d9baa465b3,0x3fe0760a822ada0c,2
+np.float64,0x3fe769bbc6eed378,0x3fe3f872680f6631,2
+np.float64,0xffe63dbd952c7b7a,0xbff0000000000000,2
+np.float64,0x4e0c00da9c181,0x4e0c00da9c181,2
+np.float64,0xffeae4d89735c9b0,0xbff0000000000000,2
+np.float64,0x3fe030bcbb606179,0x3fdddfc66660bfce,2
+np.float64,0x7fe35ca40d66b947,0x3ff0000000000000,2
+np.float64,0xbfd45bd66628b7ac,0xbfd3b2e04bfe7866,2
+np.float64,0x3fd1f0be2323e17c,0x3fd17c1c340d7a48,2
+np.float64,0x3fd7123b6cae2478,0x3fd61f0675aa9ae1,2
+np.float64,0xbfe918a377723147,0xbfe4f6efe66f5714,2
+np.float64,0x7fc400356f28006a,0x3ff0000000000000,2
+np.float64,0x7fd2dead70a5bd5a,0x3ff0000000000000,2
+np.float64,0xffe9c28f81f3851e,0xbff0000000000000,2
+np.float64,0x3fd09b1ec7a1363e,0x3fd03e3894320140,2
+np.float64,0x7fe6e80c646dd018,0x3ff0000000000000,2
+np.float64,0x7fec3760a4786ec0,0x3ff0000000000000,2
+np.float64,0x309eb6ee613d8,0x309eb6ee613d8,2
+np.float64,0x800731cb0ece6397,0x800731cb0ece6397,2
+np.float64,0xbfdb0c553db618aa,0xbfd98b8a4680ee60,2
+np.float64,0x3fd603a52eac074c,0x3fd52f6b53de7455,2
+np.float64,0x9ecb821b3d971,0x9ecb821b3d971,2
+np.float64,0x3feb7d64dc36faca,0x3fe643c2754bb7f4,2
+np.float64,0xffeb94825ef72904,0xbff0000000000000,2
+np.float64,0x24267418484cf,0x24267418484cf,2
+np.float64,0xbfa6b2fbac2d65f0,0xbfa6af2dca5bfa6f,2
+np.float64,0x8010000000000000,0x8010000000000000,2
+np.float64,0xffe6873978ed0e72,0xbff0000000000000,2
+np.float64,0x800447934ba88f27,0x800447934ba88f27,2
+np.float64,0x3fef305f09fe60be,0x3fe806156b8ca47c,2
+np.float64,0xffd441c697a8838e,0xbff0000000000000,2
+np.float64,0xbfa7684f6c2ed0a0,0xbfa764238d34830c,2
+np.float64,0xffb2c976142592f0,0xbff0000000000000,2
+np.float64,0xbfcc9d1585393a2c,0xbfcc25756bcbca1f,2
+np.float64,0xbfd477bb1ba8ef76,0xbfd3cc1d2114e77e,2
+np.float64,0xbfed1559983a2ab3,0xbfe70f03afd994ee,2
+np.float64,0xbfeb51139036a227,0xbfe62ccf56bc7fff,2
+np.float64,0x7d802890fb006,0x7d802890fb006,2
+np.float64,0x800e00af777c015f,0x800e00af777c015f,2
+np.float64,0x800647ce128c8f9d,0x800647ce128c8f9d,2
+np.float64,0x800a26da91d44db6,0x800a26da91d44db6,2
+np.float64,0x3fdc727eddb8e4fe,0x3fdab5fd9db630b3,2
+np.float64,0x7fd06def2ba0dbdd,0x3ff0000000000000,2
+np.float64,0xffe23678c4a46cf1,0xbff0000000000000,2
+np.float64,0xbfe7198e42ee331c,0xbfe3c7326c9c7553,2
+np.float64,0xffae465f3c3c8cc0,0xbff0000000000000,2
+np.float64,0xff9aea7c5035d500,0xbff0000000000000,2
+np.float64,0xbfeae49c0f35c938,0xbfe5f3e9326cb08b,2
+np.float64,0x3f9a16f300342de6,0x3f9a1581212be50f,2
+np.float64,0x8d99e2c31b33d,0x8d99e2c31b33d,2
+np.float64,0xffd58af253ab15e4,0xbff0000000000000,2
+np.float64,0xbfd205cd25a40b9a,0xbfd18f97155f8b25,2
+np.float64,0xbfebe839bbf7d074,0xbfe67a6024e8fefe,2
+np.float64,0xbfe4fb3595a9f66b,0xbfe26a42f99819ea,2
+np.float64,0x800e867c739d0cf9,0x800e867c739d0cf9,2
+np.float64,0x8bc4274f17885,0x8bc4274f17885,2
+np.float64,0xaec8914b5d912,0xaec8914b5d912,2
+np.float64,0x7fd1d64473a3ac88,0x3ff0000000000000,2
+np.float64,0xbfe6d6f69cedaded,0xbfe39dd61bc7e23e,2
+np.float64,0x7fed05039d7a0a06,0x3ff0000000000000,2
+np.float64,0xbfc40eab0f281d58,0xbfc3e50d14b79265,2
+np.float64,0x45179aec8a2f4,0x45179aec8a2f4,2
+np.float64,0xbfe717e362ee2fc7,0xbfe3c62a95b07d13,2
+np.float64,0xbfe5b8df0d6b71be,0xbfe2e76c7ec5013d,2
+np.float64,0x5c67ba6eb8cf8,0x5c67ba6eb8cf8,2
+np.float64,0xbfda72ce4cb4e59c,0xbfd909fdc7ecfe20,2
+np.float64,0x7fdf59a1e2beb343,0x3ff0000000000000,2
+np.float64,0xc4f7897f89ef1,0xc4f7897f89ef1,2
+np.float64,0x8fcd0a351f9a2,0x8fcd0a351f9a2,2
+np.float64,0x3fb161761022c2ec,0x3fb15aa31c464de2,2
+np.float64,0x8008a985be71530c,0x8008a985be71530c,2
+np.float64,0x3fca4ddb5e349bb7,0x3fc9f0a3b60e49c6,2
+np.float64,0x7fcc10a2d9382145,0x3ff0000000000000,2
+np.float64,0x78902b3af1206,0x78902b3af1206,2
+np.float64,0x7fe1e2765f23c4ec,0x3ff0000000000000,2
+np.float64,0xc1d288cf83a51,0xc1d288cf83a51,2
+np.float64,0x7fe8af692bb15ed1,0x3ff0000000000000,2
+np.float64,0x80057d90fb8afb23,0x80057d90fb8afb23,2
+np.float64,0x3fdc136b8fb826d8,0x3fda6749582b2115,2
+np.float64,0x800ec8ea477d91d5,0x800ec8ea477d91d5,2
+np.float64,0x4c0f4796981ea,0x4c0f4796981ea,2
+np.float64,0xec34c4a5d8699,0xec34c4a5d8699,2
+np.float64,0x7fce343dfb3c687b,0x3ff0000000000000,2
+np.float64,0xbfc95a98a332b530,0xbfc90705b2cc2fec,2
+np.float64,0x800d118e1dba231c,0x800d118e1dba231c,2
+np.float64,0x3fd354f310a6a9e8,0x3fd2c3bb90054154,2
+np.float64,0xbfdac0d4fab581aa,0xbfd94bf37424928e,2
+np.float64,0x3fe7f5391fefea72,0x3fe44cb49d51985b,2
+np.float64,0xd4c3c329a9879,0xd4c3c329a9879,2
+np.float64,0x3fc53977692a72f0,0x3fc50835d85c9ed1,2
+np.float64,0xbfd6989538ad312a,0xbfd5b3a2c08511fe,2
+np.float64,0xbfe329f2906653e5,0xbfe128ec1525a1c0,2
+np.float64,0x7ff0000000000000,0x3ff0000000000000,2
+np.float64,0xbfea57c90974af92,0xbfe5a87b04aa3116,2
+np.float64,0x7fdfba94043f7527,0x3ff0000000000000,2
+np.float64,0x3feedabddafdb57c,0x3fe7e06c0661978d,2
+np.float64,0x4bd9f3b697b3f,0x4bd9f3b697b3f,2
+np.float64,0x3fdd15bbfc3a2b78,0x3fdb3c3b8d070f7e,2
+np.float64,0x3fbd89ccd23b13a0,0x3fbd686b825cff80,2
+np.float64,0x7ff4000000000000,0x7ffc000000000000,2
+np.float64,0x3f9baa8928375512,0x3f9ba8d01ddd5300,2
+np.float64,0x4a3ebdf2947d8,0x4a3ebdf2947d8,2
+np.float64,0x3fe698d5c06d31ac,0x3fe376dff48312c8,2
+np.float64,0xffd5323df12a647c,0xbff0000000000000,2
+np.float64,0xffea7f111174fe22,0xbff0000000000000,2
+np.float64,0x3feb4656a9b68cad,0x3fe627392eb2156f,2
+np.float64,0x7fc1260e9c224c1c,0x3ff0000000000000,2
+np.float64,0x80056e45e5eadc8d,0x80056e45e5eadc8d,2
+np.float64,0x7fd0958ef6a12b1d,0x3ff0000000000000,2
+np.float64,0x8001f85664e3f0ae,0x8001f85664e3f0ae,2
+np.float64,0x3fe553853beaa70a,0x3fe2a4f5e7c83558,2
+np.float64,0xbfeb33ce6276679d,0xbfe61d8ec9e5ff8c,2
+np.float64,0xbfd1b24e21a3649c,0xbfd14245df6065e9,2
+np.float64,0x3fe286fc40650df9,0x3fe0b395c8059429,2
+np.float64,0xffed378058fa6f00,0xbff0000000000000,2
+np.float64,0xbfd0c4a2d7a18946,0xbfd06509a434d6a0,2
+np.float64,0xbfea31d581f463ab,0xbfe593d976139f94,2
+np.float64,0xbfe0705c85e0e0b9,0xbfde42efa978eb0c,2
+np.float64,0xe4c4c339c9899,0xe4c4c339c9899,2
+np.float64,0x3fd68befa9ad17df,0x3fd5a870b3f1f83e,2
+np.float64,0x8000000000000001,0x8000000000000001,2
+np.float64,0x3fe294256965284b,0x3fe0bd271e22d86b,2
+np.float64,0x8005327a862a64f6,0x8005327a862a64f6,2
+np.float64,0xbfdb8155ce3702ac,0xbfd9ed9ef97920f8,2
+np.float64,0xbff0000000000000,0xbfe85efab514f394,2
+np.float64,0xffe66988f1ecd312,0xbff0000000000000,2
+np.float64,0x3fb178a85e22f150,0x3fb171b9fbf95f1d,2
+np.float64,0x7f829b900025371f,0x3ff0000000000000,2
+np.float64,0x8000000000000000,0x8000000000000000,2
+np.float64,0x8006cb77f60d96f1,0x8006cb77f60d96f1,2
+np.float64,0x3fe0c5d53aa18baa,0x3fdec7012ab92b42,2
+np.float64,0x77266426ee4cd,0x77266426ee4cd,2
+np.float64,0xbfec95f468392be9,0xbfe6d11428f60136,2
+np.float64,0x3fedbf532dfb7ea6,0x3fe75f8436dd1d58,2
+np.float64,0x8002fadd3f85f5bb,0x8002fadd3f85f5bb,2
+np.float64,0xbfefebaa8d3fd755,0xbfe8566c6aa90fba,2
+np.float64,0xffc7dd2b712fba58,0xbff0000000000000,2
+np.float64,0x7fe5d3a6e8aba74d,0x3ff0000000000000,2
+np.float64,0x2da061525b40d,0x2da061525b40d,2
+np.float64,0x7fcb9b9953373732,0x3ff0000000000000,2
+np.float64,0x2ca2f6fc59460,0x2ca2f6fc59460,2
+np.float64,0xffeb84b05af70960,0xbff0000000000000,2
+np.float64,0xffe551e86c6aa3d0,0xbff0000000000000,2
+np.float64,0xbfdb311311366226,0xbfd9aa6688faafb9,2
+np.float64,0xbfd4f3875629e70e,0xbfd43bcd73534c66,2
+np.float64,0x7fe95666f932accd,0x3ff0000000000000,2
+np.float64,0x3fc73dfb482e7bf7,0x3fc6fd70c20ebf60,2
+np.float64,0x800cd9e40939b3c8,0x800cd9e40939b3c8,2
+np.float64,0x3fb0c9fa422193f0,0x3fb0c3d38879a2ac,2
+np.float64,0xffd59a38372b3470,0xbff0000000000000,2
+np.float64,0x3fa8320ef4306420,0x3fa82d739e937d35,2
+np.float64,0x3fd517f16caa2fe4,0x3fd45c8de1e93b37,2
+np.float64,0xaed921655db24,0xaed921655db24,2
+np.float64,0x93478fb9268f2,0x93478fb9268f2,2
+np.float64,0x1615e28a2c2bd,0x1615e28a2c2bd,2
+np.float64,0xbfead23010f5a460,0xbfe5ea24d5d8f820,2
+np.float64,0x774a6070ee94d,0x774a6070ee94d,2
+np.float64,0x3fdf5874bd3eb0e9,0x3fdd0ef121dd915c,2
+np.float64,0x8004b25f53a964bf,0x8004b25f53a964bf,2
+np.float64,0xbfddacdd2ebb59ba,0xbfdbb78198fab36b,2
+np.float64,0x8008a3acf271475a,0x8008a3acf271475a,2
+np.float64,0xbfdb537c8736a6fa,0xbfd9c741038bb8f0,2
+np.float64,0xbfe56a133f6ad426,0xbfe2b3d5b8d259a1,2
+np.float64,0xffda1db531343b6a,0xbff0000000000000,2
+np.float64,0x3fcbe05f3a37c0be,0x3fcb71a54a64ddfb,2
+np.float64,0x7fe1ccaa7da39954,0x3ff0000000000000,2
+np.float64,0x3faeadd8343d5bb0,0x3faea475608860e6,2
+np.float64,0x3fe662ba1c2cc574,0x3fe354a6176e90df,2
+np.float64,0xffe4d49f4e69a93e,0xbff0000000000000,2
+np.float64,0xbfeadbc424f5b788,0xbfe5ef39dbe66343,2
+np.float64,0x99cf66f1339ed,0x99cf66f1339ed,2
+np.float64,0x33af77a2675f0,0x33af77a2675f0,2
+np.float64,0x7fec7b32ecf8f665,0x3ff0000000000000,2
+np.float64,0xffef3e44993e7c88,0xbff0000000000000,2
+np.float64,0xffe8f8ceac31f19c,0xbff0000000000000,2
+np.float64,0x7fe0d15b6da1a2b6,0x3ff0000000000000,2
+np.float64,0x4ba795c2974f3,0x4ba795c2974f3,2
+np.float64,0x3fe361aa37a6c354,0x3fe15079021d6b15,2
+np.float64,0xffe709714f6e12e2,0xbff0000000000000,2
+np.float64,0xffe7ea6a872fd4d4,0xbff0000000000000,2
+np.float64,0xffdb9441c8b72884,0xbff0000000000000,2
+np.float64,0xffd5e11ae9abc236,0xbff0000000000000,2
+np.float64,0xffe092a08b612540,0xbff0000000000000,2
+np.float64,0x3fe1f27e1ca3e4fc,0x3fe04685b5131207,2
+np.float64,0xbfe71ce1bdee39c4,0xbfe3c940809a7081,2
+np.float64,0xffe8c3aa68318754,0xbff0000000000000,2
+np.float64,0x800d4e2919da9c52,0x800d4e2919da9c52,2
+np.float64,0x7fe6c8bca76d9178,0x3ff0000000000000,2
+np.float64,0x7fced8751e3db0e9,0x3ff0000000000000,2
+np.float64,0xd61d0c8bac3a2,0xd61d0c8bac3a2,2
+np.float64,0x3fec57732938aee6,0x3fe6b22f15f38352,2
+np.float64,0xff9251cc7024a3a0,0xbff0000000000000,2
+np.float64,0xf4a68cb9e94d2,0xf4a68cb9e94d2,2
+np.float64,0x3feed76703bdaece,0x3fe7def0fc9a080c,2
+np.float64,0xbfe8971ff7712e40,0xbfe4ac3eb8ebff07,2
+np.float64,0x3fe4825f682904bf,0x3fe218c1952fe67d,2
+np.float64,0xbfd60f7698ac1eee,0xbfd539f0979b4b0c,2
+np.float64,0x3fcf0845993e1088,0x3fce7032f7180144,2
+np.float64,0x7fc83443f3306887,0x3ff0000000000000,2
+np.float64,0x3fe93123ae726247,0x3fe504e4fc437e89,2
+np.float64,0x3fbf9eb8363f3d70,0x3fbf75cdfa6828d5,2
+np.float64,0xbf8b45e5d0368bc0,0xbf8b457c29dfe1a9,2
+np.float64,0x8006c2853d0d850b,0x8006c2853d0d850b,2
+np.float64,0xffef26e25ffe4dc4,0xbff0000000000000,2
+np.float64,0x7fefffffffffffff,0x3ff0000000000000,2
+np.float64,0xbfde98f2c2bd31e6,0xbfdc761bfab1c4cb,2
+np.float64,0xffb725e6222e4bd0,0xbff0000000000000,2
+np.float64,0x800c63ead5d8c7d6,0x800c63ead5d8c7d6,2
+np.float64,0x3fea087e95f410fd,0x3fe57d3ab440706c,2
+np.float64,0xbfdf9f8a603f3f14,0xbfdd4742d77dfa57,2
+np.float64,0xfff0000000000000,0xbff0000000000000,2
+np.float64,0xbfcdc0841d3b8108,0xbfcd3a401debba9a,2
+np.float64,0x800f0c8f4f7e191f,0x800f0c8f4f7e191f,2
+np.float64,0x800ba6e75fd74dcf,0x800ba6e75fd74dcf,2
+np.float64,0x7fee4927e8bc924f,0x3ff0000000000000,2
+np.float64,0x3fadf141903be283,0x3fade8878d9d3551,2
+np.float64,0x3efb1a267df64,0x3efb1a267df64,2
+np.float64,0xffebf55f22b7eabe,0xbff0000000000000,2
+np.float64,0x7fbe8045663d008a,0x3ff0000000000000,2
+np.float64,0x3fefc0129f7f8026,0x3fe843f8b7d6cf38,2
+np.float64,0xbfe846b420f08d68,0xbfe47d1709e43937,2
+np.float64,0x7fe8e87043f1d0e0,0x3ff0000000000000,2
+np.float64,0x3fcfb718453f6e31,0x3fcf14ecee7b32b4,2
+np.float64,0x7fe4306b71a860d6,0x3ff0000000000000,2
+np.float64,0x7fee08459f7c108a,0x3ff0000000000000,2
+np.float64,0x3fed705165fae0a3,0x3fe73a66369c5700,2
+np.float64,0x7fd0e63f4da1cc7e,0x3ff0000000000000,2
+np.float64,0xffd1a40c2ea34818,0xbff0000000000000,2
+np.float64,0xbfa369795c26d2f0,0xbfa36718218d46b3,2
+np.float64,0xef70b9f5dee17,0xef70b9f5dee17,2
+np.float64,0x3fb50a0a6e2a1410,0x3fb4fdf27724560a,2
+np.float64,0x7fe30a0f6166141e,0x3ff0000000000000,2
+np.float64,0xbfd7b3ca7daf6794,0xbfd6accb81032b2d,2
+np.float64,0x3fc21dceb3243b9d,0x3fc1ff15d5d277a3,2
+np.float64,0x3fe483e445a907c9,0x3fe219ca0e269552,2
+np.float64,0x3fb2b1e2a22563c0,0x3fb2a96554900eaf,2
+np.float64,0x4b1ff6409641,0x4b1ff6409641,2
+np.float64,0xbfd92eabc9b25d58,0xbfd7f55d7776d64e,2
+np.float64,0x8003b8604c8770c1,0x8003b8604c8770c1,2
+np.float64,0x800d20a9df1a4154,0x800d20a9df1a4154,2
+np.float64,0xecf8a535d9f15,0xecf8a535d9f15,2
+np.float64,0x3fe92d15bab25a2b,0x3fe50296aa15ae85,2
+np.float64,0x800239c205a47385,0x800239c205a47385,2
+np.float64,0x3fc48664a9290cc8,0x3fc459d126320ef6,2
+np.float64,0x3fe7620625eec40c,0x3fe3f3bcbee3e8c6,2
+np.float64,0x3fd242ff4ca48600,0x3fd1c81ed7a971c8,2
+np.float64,0xbfe39bafcfa73760,0xbfe17959c7a279db,2
+np.float64,0x7fdcd2567239a4ac,0x3ff0000000000000,2
+np.float64,0x3fe5f2f292ebe5e6,0x3fe30d12f05e2752,2
+np.float64,0x7fda3819d1347033,0x3ff0000000000000,2
+np.float64,0xffca5b4d4334b69c,0xbff0000000000000,2
+np.float64,0xb8a2b7cd71457,0xb8a2b7cd71457,2
+np.float64,0x3fee689603fcd12c,0x3fe7ad4ace26d6dd,2
+np.float64,0x7fe26541a564ca82,0x3ff0000000000000,2
+np.float64,0x3fe6912ee66d225e,0x3fe3720d242c4d82,2
+np.float64,0xffe6580c75ecb018,0xbff0000000000000,2
+np.float64,0x7fe01a3370603466,0x3ff0000000000000,2
+np.float64,0xffe84e3f84b09c7e,0xbff0000000000000,2
+np.float64,0x3ff0000000000000,0x3fe85efab514f394,2
+np.float64,0x3fe214d4266429a8,0x3fe05fec03a3c247,2
+np.float64,0x3fd00aec5da015d8,0x3fcf6e070ad4ad62,2
+np.float64,0x800aac8631f5590d,0x800aac8631f5590d,2
+np.float64,0xbfe7c4f5f76f89ec,0xbfe42fc1c57b4a13,2
+np.float64,0xaf146c7d5e28e,0xaf146c7d5e28e,2
+np.float64,0xbfe57188b66ae312,0xbfe2b8be4615ef75,2
+np.float64,0xffef8cb8e1ff1971,0xbff0000000000000,2
+np.float64,0x8001daf8aa63b5f2,0x8001daf8aa63b5f2,2
+np.float64,0x3fdddcc339bbb986,0x3fdbde5f3783538b,2
+np.float64,0xdd8c92c3bb193,0xdd8c92c3bb193,2
+np.float64,0xbfe861a148f0c342,0xbfe48cf1d228a336,2
+np.float64,0xffe260a32e24c146,0xbff0000000000000,2
+np.float64,0x1f7474b43ee8f,0x1f7474b43ee8f,2
+np.float64,0x3fe81dbd89703b7c,0x3fe464d78df92b7b,2
+np.float64,0x7fed0101177a0201,0x3ff0000000000000,2
+np.float64,0x7fd8b419a8316832,0x3ff0000000000000,2
+np.float64,0x3fe93debccf27bd8,0x3fe50c27727917f0,2
+np.float64,0xe5ead05bcbd5a,0xe5ead05bcbd5a,2
+np.float64,0xbfebbbc4cff7778a,0xbfe663c4ca003bbf,2
+np.float64,0xbfea343eb474687e,0xbfe59529f73ea151,2
+np.float64,0x3fbe74a5963ce94b,0x3fbe50123ed05d8d,2
+np.float64,0x3fd31d3a5d263a75,0x3fd290c026cb38a5,2
+np.float64,0xbfd79908acaf3212,0xbfd695620e31c3c6,2
+np.float64,0xbfc26a350324d46c,0xbfc249f335f3e465,2
+np.float64,0xbfac38d5583871b0,0xbfac31866d12a45e,2
+np.float64,0x3fe40cea672819d5,0x3fe1c83754e72c92,2
+np.float64,0xbfa74770642e8ee0,0xbfa74355fcf67332,2
+np.float64,0x7fc60942d32c1285,0x3ff0000000000000,2
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/examples/cython/__pycache__/setup.cpython-313.pyc b/python/user_packages/Python313/site-packages/numpy/_core/tests/examples/cython/__pycache__/setup.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..40c80165023005fe2b33f6150f9219f77632c123
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/_core/tests/examples/cython/__pycache__/setup.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/examples/cython/checks.pyx b/python/user_packages/Python313/site-packages/numpy/_core/tests/examples/cython/checks.pyx
new file mode 100644
index 0000000000000000000000000000000000000000..94b1642c6aa4ddca830a200b7aeac126ebc89718
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/tests/examples/cython/checks.pyx
@@ -0,0 +1,381 @@
+#cython: language_level=3
+
+"""
+Functions in this module give python-space wrappers for cython functions
+exposed in numpy/__init__.pxd, so they can be tested in test_cython.py
+"""
+import numpy as np
+cimport numpy as cnp
+cnp.import_array()
+
+
+def is_td64(obj):
+ return cnp.is_timedelta64_object(obj)
+
+
+def is_dt64(obj):
+ return cnp.is_datetime64_object(obj)
+
+
+def get_dt64_value(obj):
+ return cnp.get_datetime64_value(obj)
+
+
+def get_td64_value(obj):
+ return cnp.get_timedelta64_value(obj)
+
+
+def get_dt64_unit(obj):
+ return cnp.get_datetime64_unit(obj)
+
+
+def is_integer(obj):
+ return isinstance(obj, (cnp.integer, int))
+
+
+def get_datetime_iso_8601_strlen():
+ return cnp.get_datetime_iso_8601_strlen(0, cnp.NPY_FR_ns)
+
+
+def convert_datetime64_to_datetimestruct():
+ cdef:
+ cnp.npy_datetimestruct dts
+ cnp.PyArray_DatetimeMetaData meta
+ cnp.int64_t value = 1647374515260292
+ # i.e. (time.time() * 10**6) at 2022-03-15 20:01:55.260292 UTC
+
+ meta.base = cnp.NPY_FR_us
+ meta.num = 1
+ cnp.convert_datetime64_to_datetimestruct(&meta, value, &dts)
+ return dts
+
+
+def make_iso_8601_datetime(dt: "datetime"):
+ cdef:
+ cnp.npy_datetimestruct dts
+ char result[36] # 36 corresponds to NPY_FR_s passed below
+ int local = 0
+ int utc = 0
+ int tzoffset = 0
+
+ dts.year = dt.year
+ dts.month = dt.month
+ dts.day = dt.day
+ dts.hour = dt.hour
+ dts.min = dt.minute
+ dts.sec = dt.second
+ dts.us = dt.microsecond
+ dts.ps = dts.as = 0
+
+ cnp.make_iso_8601_datetime(
+ &dts,
+ result,
+ sizeof(result),
+ local,
+ utc,
+ cnp.NPY_FR_s,
+ tzoffset,
+ cnp.NPY_NO_CASTING,
+ )
+ return result
+
+
+cdef cnp.broadcast multiiter_from_broadcast_obj(object bcast):
+ cdef dict iter_map = {
+ 1: cnp.PyArray_MultiIterNew1,
+ 2: cnp.PyArray_MultiIterNew2,
+ 3: cnp.PyArray_MultiIterNew3,
+ 4: cnp.PyArray_MultiIterNew4,
+ 5: cnp.PyArray_MultiIterNew5,
+ }
+ arrays = [x.base for x in bcast.iters]
+ cdef cnp.broadcast result = iter_map[len(arrays)](*arrays)
+ return result
+
+
+def get_multiiter_size(bcast: "broadcast"):
+ cdef cnp.broadcast multi = multiiter_from_broadcast_obj(bcast)
+ return multi.size
+
+
+def get_multiiter_number_of_dims(bcast: "broadcast"):
+ cdef cnp.broadcast multi = multiiter_from_broadcast_obj(bcast)
+ return multi.nd
+
+
+def get_multiiter_current_index(bcast: "broadcast"):
+ cdef cnp.broadcast multi = multiiter_from_broadcast_obj(bcast)
+ return multi.index
+
+
+def get_multiiter_num_of_iterators(bcast: "broadcast"):
+ cdef cnp.broadcast multi = multiiter_from_broadcast_obj(bcast)
+ return multi.numiter
+
+
+def get_multiiter_shape(bcast: "broadcast"):
+ cdef cnp.broadcast multi = multiiter_from_broadcast_obj(bcast)
+ return tuple([multi.dimensions[i] for i in range(bcast.nd)])
+
+
+def get_multiiter_iters(bcast: "broadcast"):
+ cdef cnp.broadcast multi = multiiter_from_broadcast_obj(bcast)
+ return tuple([multi.iters[i] for i in range(bcast.numiter)])
+
+
+def get_default_integer():
+ if cnp.NPY_DEFAULT_INT == cnp.NPY_LONG:
+ return cnp.dtype("long")
+ if cnp.NPY_DEFAULT_INT == cnp.NPY_INTP:
+ return cnp.dtype("intp")
+ return None
+
+def get_ravel_axis():
+ return cnp.NPY_RAVEL_AXIS
+
+
+def conv_intp(cnp.intp_t val):
+ return val
+
+
+def get_dtype_flags(cnp.dtype dtype):
+ return dtype.flags
+
+
+cdef cnp.NpyIter* npyiter_from_nditer_obj(object it):
+ """A function to create a NpyIter struct from a nditer object.
+
+ This function is only meant for testing purposes and only extracts the
+ necessary info from nditer to test the functionality of NpyIter methods
+ """
+ cdef:
+ cnp.NpyIter* cit
+ cnp.PyArray_Descr* op_dtypes[3]
+ cnp.npy_uint32 op_flags[3]
+ cnp.PyArrayObject* ops[3]
+ cnp.npy_uint32 flags = 0
+
+ if it.has_index:
+ flags |= cnp.NPY_ITER_C_INDEX
+ if it.has_delayed_bufalloc:
+ flags |= cnp.NPY_ITER_BUFFERED | cnp.NPY_ITER_DELAY_BUFALLOC
+ if it.has_multi_index:
+ flags |= cnp.NPY_ITER_MULTI_INDEX
+
+ # one of READWRITE, READONLY and WRTIEONLY at the minimum must be specified for op_flags
+ for i in range(it.nop):
+ op_flags[i] = cnp.NPY_ITER_READONLY
+
+ for i in range(it.nop):
+ op_dtypes[i] = cnp.PyArray_DESCR(it.operands[i])
+ ops[i] = it.operands[i]
+
+ cit = cnp.NpyIter_MultiNew(it.nop, &ops[0], flags, cnp.NPY_KEEPORDER,
+ cnp.NPY_NO_CASTING, &op_flags[0],
+ NULL)
+ return cit
+
+
+def get_npyiter_size(it: "nditer"):
+ cdef cnp.NpyIter* cit = npyiter_from_nditer_obj(it)
+ result = cnp.NpyIter_GetIterSize(cit)
+ cnp.NpyIter_Deallocate(cit)
+ return result
+
+
+def get_npyiter_ndim(it: "nditer"):
+ cdef cnp.NpyIter* cit = npyiter_from_nditer_obj(it)
+ result = cnp.NpyIter_GetNDim(cit)
+ cnp.NpyIter_Deallocate(cit)
+ return result
+
+
+def get_npyiter_nop(it: "nditer"):
+ cdef cnp.NpyIter* cit = npyiter_from_nditer_obj(it)
+ result = cnp.NpyIter_GetNOp(cit)
+ cnp.NpyIter_Deallocate(cit)
+ return result
+
+
+def get_npyiter_operands(it: "nditer"):
+ cdef cnp.NpyIter* cit = npyiter_from_nditer_obj(it)
+ try:
+ arr = cnp.NpyIter_GetOperandArray(cit)
+ return tuple([arr[i] for i in range(it.nop)])
+ finally:
+ cnp.NpyIter_Deallocate(cit)
+
+
+def get_npyiter_itviews(it: "nditer"):
+ cdef cnp.NpyIter* cit = npyiter_from_nditer_obj(it)
+ result = tuple([cnp.NpyIter_GetIterView(cit, i) for i in range(it.nop)])
+ cnp.NpyIter_Deallocate(cit)
+ return result
+
+
+def get_npyiter_dtypes(it: "nditer"):
+ cdef cnp.NpyIter* cit = npyiter_from_nditer_obj(it)
+ try:
+ arr = cnp.NpyIter_GetDescrArray(cit)
+ return tuple([arr[i] for i in range(it.nop)])
+ finally:
+ cnp.NpyIter_Deallocate(cit)
+
+
+def npyiter_has_delayed_bufalloc(it: "nditer"):
+ cdef cnp.NpyIter* cit = npyiter_from_nditer_obj(it)
+ result = cnp.NpyIter_HasDelayedBufAlloc(cit)
+ cnp.NpyIter_Deallocate(cit)
+ return result
+
+
+def npyiter_has_index(it: "nditer"):
+ cdef cnp.NpyIter* cit = npyiter_from_nditer_obj(it)
+ result = cnp.NpyIter_HasIndex(cit)
+ cnp.NpyIter_Deallocate(cit)
+ return result
+
+
+def npyiter_has_multi_index(it: "nditer"):
+ cdef cnp.NpyIter* cit = npyiter_from_nditer_obj(it)
+ result = cnp.NpyIter_HasMultiIndex(cit)
+ cnp.NpyIter_Deallocate(cit)
+ return result
+
+
+def test_get_multi_index_iter_next(it: "nditer", cnp.ndarray[cnp.float64_t, ndim=2] arr):
+ cdef cnp.NpyIter* cit = npyiter_from_nditer_obj(it)
+ cdef cnp.NpyIter_GetMultiIndexFunc _get_multi_index = \
+ cnp.NpyIter_GetGetMultiIndex(cit, NULL)
+ cdef cnp.NpyIter_IterNextFunc _iternext = \
+ cnp.NpyIter_GetIterNext(cit, NULL)
+ cnp.NpyIter_Deallocate(cit)
+ return 1
+
+
+def npyiter_has_finished(it: "nditer"):
+ cdef cnp.NpyIter* cit
+ try:
+ cit = npyiter_from_nditer_obj(it)
+ cnp.NpyIter_GotoIterIndex(cit, it.index)
+ return not (cnp.NpyIter_GetIterIndex(cit) < cnp.NpyIter_GetIterSize(cit))
+ finally:
+ cnp.NpyIter_Deallocate(cit)
+
+def compile_fillwithbyte():
+ # Regression test for gh-25878, mostly checks it compiles.
+ cdef cnp.npy_intp dims[2]
+ dims = (1, 2)
+ pos = cnp.PyArray_ZEROS(2, dims, cnp.NPY_UINT8, 0)
+ cnp.PyArray_FILLWBYTE(pos, 1)
+ return pos
+
+def inc2_cfloat_struct(cnp.ndarray[cnp.cfloat_t] arr):
+ # This works since we compile in C mode, it will fail in cpp mode
+ arr[1].real += 1
+ arr[1].imag += 1
+ # This works in both modes
+ arr[1].real = arr[1].real + 1
+ arr[1].imag = arr[1].imag + 1
+
+
+def npystring_pack(arr):
+ cdef char *string = "Hello world"
+ cdef size_t size = 11
+
+ allocator = cnp.NpyString_acquire_allocator(
+ cnp.PyArray_DESCR(arr)
+ )
+
+ # copy string->packed_string, the pointer to the underlying array buffer
+ ret = cnp.NpyString_pack(
+ allocator, cnp.PyArray_DATA(arr), string, size,
+ )
+
+ cnp.NpyString_release_allocator(allocator)
+ return ret
+
+
+def npystring_load(arr):
+ allocator = cnp.NpyString_acquire_allocator(
+ cnp.PyArray_DESCR(arr)
+ )
+
+ cdef cnp.npy_static_string sdata
+ sdata.size = 0
+ sdata.buf = NULL
+
+ cdef cnp.npy_packed_static_string *packed_string = cnp.PyArray_DATA(arr)
+ cdef int is_null = cnp.NpyString_load(allocator, packed_string, &sdata)
+ cnp.NpyString_release_allocator(allocator)
+ if is_null == -1:
+ raise ValueError("String unpacking failed.")
+ elif is_null == 1:
+ # String in the array buffer is the null string
+ return ""
+ else:
+ # Cython syntax for copying a c string to python bytestring:
+ # slice the char * by the length of the string
+ return sdata.buf[:sdata.size].decode('utf-8')
+
+
+def npystring_pack_multiple(arr1, arr2):
+ cdef cnp.npy_string_allocator *allocators[2]
+ cdef cnp.PyArray_Descr *descrs[2]
+ descrs[0] = cnp.PyArray_DESCR(arr1)
+ descrs[1] = cnp.PyArray_DESCR(arr2)
+
+ cnp.NpyString_acquire_allocators(2, descrs, allocators)
+
+ # Write into the first element of each array
+ cdef int ret1 = cnp.NpyString_pack(
+ allocators[0], cnp.PyArray_DATA(arr1), "Hello world", 11,
+ )
+ cdef int ret2 = cnp.NpyString_pack(
+ allocators[1], cnp.PyArray_DATA(arr2), "test this", 9,
+ )
+
+ # Write a null string into the last element
+ cdef cnp.npy_intp elsize = cnp.PyArray_ITEMSIZE(arr1)
+ cdef int ret3 = cnp.NpyString_pack_null(
+ allocators[0],
+ (cnp.PyArray_DATA(arr1) + 2*elsize),
+ )
+
+ cnp.NpyString_release_allocators(2, allocators)
+ if ret1 == -1 or ret2 == -1 or ret3 == -1:
+ return -1
+
+ return 0
+
+
+def npystring_allocators_other_types(arr1, arr2):
+ cdef cnp.npy_string_allocator *allocators[2]
+ cdef cnp.PyArray_Descr *descrs[2]
+ descrs[0] = cnp.PyArray_DESCR(arr1)
+ descrs[1] = cnp.PyArray_DESCR(arr2)
+
+ cnp.NpyString_acquire_allocators(2, descrs, allocators)
+
+ # None of the dtypes here are StringDType, so every allocator
+ # should be NULL upon acquisition.
+ cdef int ret = 0
+ for allocator in allocators:
+ if allocator != NULL:
+ ret = -1
+ break
+
+ cnp.NpyString_release_allocators(2, allocators)
+ return ret
+
+
+def check_npy_uintp_type_enum():
+ # Regression test for gh-27890: cnp.NPY_UINTP was not defined.
+ # Cython would fail to compile this before gh-27890 was fixed.
+ return cnp.NPY_UINTP > 0
+
+
+def resize_refcheck_test():
+ # see gh-30991
+ a = np.array([[0, 1], [2, 3]], order='C')
+ a.resize((2, 1))
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/examples/cython/meson.build b/python/user_packages/Python313/site-packages/numpy/_core/tests/examples/cython/meson.build
new file mode 100644
index 0000000000000000000000000000000000000000..499de153bc539cbcdb2e4fcef18b520b792c1075
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/tests/examples/cython/meson.build
@@ -0,0 +1,43 @@
+project('checks', 'c', 'cython')
+
+py = import('python').find_installation(pure: false)
+
+cc = meson.get_compiler('c')
+cy = meson.get_compiler('cython')
+
+# Keep synced with pyproject.toml
+if not cy.version().version_compare('>=3.0.6')
+ error('tests requires Cython >= 3.0.6')
+endif
+
+cython_args = []
+if cy.version().version_compare('>=3.1.0')
+ cython_args += ['-Xfreethreading_compatible=True']
+endif
+
+npy_include_path = run_command(py, [
+ '-c',
+ 'import os; os.chdir(".."); import numpy; print(os.path.abspath(numpy.get_include()))'
+ ], check: true).stdout().strip()
+
+npy_path = run_command(py, [
+ '-c',
+ 'import os; os.chdir(".."); import numpy; print(os.path.dirname(numpy.__file__).removesuffix("numpy"))'
+ ], check: true).stdout().strip()
+
+# TODO: This is a hack due to gh-25135, where cython may not find the right
+# __init__.pyd file.
+add_project_arguments('-I', npy_path, language : 'cython')
+
+py.extension_module(
+ 'checks',
+ 'checks.pyx',
+ install: false,
+ c_args: [
+ '-DNPY_NO_DEPRECATED_API=0', # Cython still uses old NumPy C API
+ # Require 1.25+ to test datetime additions
+ '-DNPY_TARGET_VERSION=NPY_2_0_API_VERSION',
+ ],
+ include_directories: [npy_include_path],
+ cython_args: cython_args,
+)
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/examples/cython/setup.py b/python/user_packages/Python313/site-packages/numpy/_core/tests/examples/cython/setup.py
new file mode 100644
index 0000000000000000000000000000000000000000..4a2c3dbc45d704d417e962eaa4dbb4fa95796f4b
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/tests/examples/cython/setup.py
@@ -0,0 +1,39 @@
+"""
+Provide python-space access to the functions exposed in numpy/__init__.pxd
+for testing.
+"""
+
+import os
+from distutils.core import setup
+
+import Cython
+from Cython.Build import cythonize
+from setuptools.extension import Extension
+
+import numpy as np
+from numpy._utils import _pep440
+
+macros = [
+ ("NPY_NO_DEPRECATED_API", 0),
+ # Require 1.25+ to test datetime additions
+ ("NPY_TARGET_VERSION", "NPY_2_0_API_VERSION"),
+]
+
+checks = Extension(
+ "checks",
+ sources=[os.path.join('.', "checks.pyx")],
+ include_dirs=[np.get_include()],
+ define_macros=macros,
+)
+
+extensions = [checks]
+
+compiler_directives = {}
+if _pep440.parse(Cython.__version__) >= _pep440.parse("3.1.0a0"):
+ compiler_directives['freethreading_compatible'] = True
+
+setup(
+ ext_modules=cythonize(
+ extensions,
+ compiler_directives=compiler_directives)
+)
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/examples/limited_api/__pycache__/setup.cpython-313.pyc b/python/user_packages/Python313/site-packages/numpy/_core/tests/examples/limited_api/__pycache__/setup.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..676f663142cb9c574907630049b57c8742451ba8
Binary files /dev/null and b/python/user_packages/Python313/site-packages/numpy/_core/tests/examples/limited_api/__pycache__/setup.cpython-313.pyc differ
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/examples/limited_api/limited_api1.c b/python/user_packages/Python313/site-packages/numpy/_core/tests/examples/limited_api/limited_api1.c
new file mode 100644
index 0000000000000000000000000000000000000000..c7e96d6b9c2704e3a5454bf9783e0db9bd197890
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/tests/examples/limited_api/limited_api1.c
@@ -0,0 +1,15 @@
+#include
+#include
+#include
+
+static PyModuleDef moduledef = {
+ .m_base = PyModuleDef_HEAD_INIT,
+ .m_name = "limited_api1"
+};
+
+PyMODINIT_FUNC PyInit_limited_api1(void)
+{
+ import_array();
+ import_umath();
+ return PyModule_Create(&moduledef);
+}
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/examples/limited_api/limited_api2.pyx b/python/user_packages/Python313/site-packages/numpy/_core/tests/examples/limited_api/limited_api2.pyx
new file mode 100644
index 0000000000000000000000000000000000000000..dd88ece92c2d71b90e5dc1de62f624d9fdfc7c4c
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/tests/examples/limited_api/limited_api2.pyx
@@ -0,0 +1,11 @@
+#cython: language_level=3
+
+"""
+Make sure cython can compile in limited API mode (see meson.build)
+"""
+
+cdef extern from "numpy/arrayobject.h":
+ pass
+cdef extern from "numpy/arrayscalars.h":
+ pass
+
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/examples/limited_api/limited_api_latest.c b/python/user_packages/Python313/site-packages/numpy/_core/tests/examples/limited_api/limited_api_latest.c
new file mode 100644
index 0000000000000000000000000000000000000000..3f71a6b710951bdcb4f0617346cb3eefa3a48454
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/tests/examples/limited_api/limited_api_latest.c
@@ -0,0 +1,19 @@
+#include
+#include
+#include
+
+#if Py_LIMITED_API != PY_VERSION_HEX & 0xffff0000
+ # error "Py_LIMITED_API not defined to Python major+minor version"
+#endif
+
+static PyModuleDef moduledef = {
+ .m_base = PyModuleDef_HEAD_INIT,
+ .m_name = "limited_api_latest"
+};
+
+PyMODINIT_FUNC PyInit_limited_api_latest(void)
+{
+ import_array();
+ import_umath();
+ return PyModule_Create(&moduledef);
+}
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/examples/limited_api/meson.build b/python/user_packages/Python313/site-packages/numpy/_core/tests/examples/limited_api/meson.build
new file mode 100644
index 0000000000000000000000000000000000000000..74eda8039d03324c52a2675fea03ed90facb3aa4
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/tests/examples/limited_api/meson.build
@@ -0,0 +1,63 @@
+project(
+ 'checks',
+ 'c', 'cython',
+ meson_version: '>=1.8.3',
+)
+
+py = import('python').find_installation(pure: false)
+
+cc = meson.get_compiler('c')
+cy = meson.get_compiler('cython')
+
+# Keep synced with pyproject.toml
+if not cy.version().version_compare('>=3.0.6')
+ error('tests requires Cython >= 3.0.6')
+endif
+
+npy_include_path = run_command(py, [
+ '-c',
+ 'import os; os.chdir(".."); import numpy; print(os.path.abspath(numpy.get_include()))'
+ ], check: true).stdout().strip()
+
+npy_path = run_command(py, [
+ '-c',
+ 'import os; os.chdir(".."); import numpy; print(os.path.dirname(numpy.__file__).removesuffix("numpy"))'
+ ], check: true).stdout().strip()
+
+# TODO: This is a hack due to https://github.com/cython/cython/issues/5820,
+# where cython may not find the right __init__.pyd file.
+add_project_arguments('-I', npy_path, language : 'cython')
+
+py.extension_module(
+ 'limited_api1',
+ 'limited_api1.c',
+ c_args: [
+ '-DNPY_NO_DEPRECATED_API=NPY_1_21_API_VERSION',
+ ],
+ include_directories: [npy_include_path],
+ limited_api: '3.9',
+)
+
+py.extension_module(
+ 'limited_api_latest',
+ 'limited_api_latest.c',
+ c_args: [
+ '-DNPY_NO_DEPRECATED_API=NPY_1_21_API_VERSION',
+ ],
+ include_directories: [npy_include_path],
+ limited_api: py.language_version(),
+)
+
+py.extension_module(
+ 'limited_api2',
+ 'limited_api2.pyx',
+ install: false,
+ c_args: [
+ '-DNPY_NO_DEPRECATED_API=0',
+ # Require 1.25+ to test datetime additions
+ '-DNPY_TARGET_VERSION=NPY_2_0_API_VERSION',
+ '-DCYTHON_LIMITED_API=1',
+ ],
+ include_directories: [npy_include_path],
+ limited_api: '3.9',
+)
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/examples/limited_api/setup.py b/python/user_packages/Python313/site-packages/numpy/_core/tests/examples/limited_api/setup.py
new file mode 100644
index 0000000000000000000000000000000000000000..d1e4ee30475e314f0aaaeb1e24659cfe9bc42a8b
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/tests/examples/limited_api/setup.py
@@ -0,0 +1,24 @@
+"""
+Build an example package using the limited Python C API.
+"""
+
+import os
+
+from setuptools import Extension, setup
+
+import numpy as np
+
+macros = [("NPY_NO_DEPRECATED_API", 0), ("Py_LIMITED_API", "0x03060000")]
+
+limited_api = Extension(
+ "limited_api",
+ sources=[os.path.join('.', "limited_api.c")],
+ include_dirs=[np.get_include()],
+ define_macros=macros,
+)
+
+extensions = [limited_api]
+
+setup(
+ ext_modules=extensions
+)
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/test__exceptions.py b/python/user_packages/Python313/site-packages/numpy/_core/tests/test__exceptions.py
new file mode 100644
index 0000000000000000000000000000000000000000..0f83b11af458d78020a6c147b34b606328096c11
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/tests/test__exceptions.py
@@ -0,0 +1,90 @@
+"""
+Tests of the ._exceptions module. Primarily for exercising the __str__ methods.
+"""
+
+import pickle
+
+import pytest
+
+import numpy as np
+from numpy.exceptions import AxisError
+
+_ArrayMemoryError = np._core._exceptions._ArrayMemoryError
+_UFuncNoLoopError = np._core._exceptions._UFuncNoLoopError
+
+class TestArrayMemoryError:
+ def test_pickling(self):
+ """ Test that _ArrayMemoryError can be pickled """
+ error = _ArrayMemoryError((1023,), np.dtype(np.uint8))
+ res = pickle.loads(pickle.dumps(error))
+ assert res._total_size == error._total_size
+
+ def test_str(self):
+ e = _ArrayMemoryError((1023,), np.dtype(np.uint8))
+ str(e) # not crashing is enough
+
+ # testing these properties is easier than testing the full string repr
+ def test__size_to_string(self):
+ """ Test e._size_to_string """
+ f = _ArrayMemoryError._size_to_string
+ Ki = 1024
+ assert f(0) == '0 bytes'
+ assert f(1) == '1 bytes'
+ assert f(1023) == '1023 bytes'
+ assert f(Ki) == '1.00 KiB'
+ assert f(Ki + 1) == '1.00 KiB'
+ assert f(10 * Ki) == '10.0 KiB'
+ assert f(int(999.4 * Ki)) == '999. KiB'
+ assert f(int(1023.4 * Ki)) == '1023. KiB'
+ assert f(int(1023.5 * Ki)) == '1.00 MiB'
+ assert f(Ki * Ki) == '1.00 MiB'
+
+ # 1023.9999 Mib should round to 1 GiB
+ assert f(int(Ki * Ki * Ki * 0.9999)) == '1.00 GiB'
+ assert f(Ki * Ki * Ki * Ki * Ki * Ki) == '1.00 EiB'
+ # larger than sys.maxsize, adding larger prefixes isn't going to help
+ # anyway.
+ assert f(Ki * Ki * Ki * Ki * Ki * Ki * 123456) == '123456. EiB'
+
+ def test__total_size(self):
+ """ Test e._total_size """
+ e = _ArrayMemoryError((1,), np.dtype(np.uint8))
+ assert e._total_size == 1
+
+ e = _ArrayMemoryError((2, 4), np.dtype((np.uint64, 16)))
+ assert e._total_size == 1024
+
+
+class TestUFuncNoLoopError:
+ def test_pickling(self):
+ """ Test that _UFuncNoLoopError can be pickled """
+ assert isinstance(pickle.dumps(_UFuncNoLoopError), bytes)
+
+
+@pytest.mark.parametrize("args", [
+ (2, 1, None),
+ (2, 1, "test_prefix"),
+ ("test message",),
+])
+class TestAxisError:
+ def test_attr(self, args):
+ """Validate attribute types."""
+ exc = AxisError(*args)
+ if len(args) == 1:
+ assert exc.axis is None
+ assert exc.ndim is None
+ else:
+ axis, ndim, *_ = args
+ assert exc.axis == axis
+ assert exc.ndim == ndim
+
+ def test_pickling(self, args):
+ """Test that `AxisError` can be pickled."""
+ exc = AxisError(*args)
+ exc2 = pickle.loads(pickle.dumps(exc))
+
+ assert type(exc) is type(exc2)
+ for name in ("axis", "ndim", "args"):
+ attr1 = getattr(exc, name)
+ attr2 = getattr(exc2, name)
+ assert attr1 == attr2, name
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/test_abc.py b/python/user_packages/Python313/site-packages/numpy/_core/tests/test_abc.py
new file mode 100644
index 0000000000000000000000000000000000000000..a61036f1e89c9bdea9cc1ae6bdbb1d0b05d64814
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/tests/test_abc.py
@@ -0,0 +1,54 @@
+import numbers
+
+import numpy as np
+from numpy._core.numerictypes import sctypes
+from numpy.testing import assert_
+
+
+class TestABC:
+ def test_abstract(self):
+ assert_(issubclass(np.number, numbers.Number))
+
+ assert_(issubclass(np.inexact, numbers.Complex))
+ assert_(issubclass(np.complexfloating, numbers.Complex))
+ assert_(issubclass(np.floating, numbers.Real))
+
+ assert_(issubclass(np.integer, numbers.Integral))
+ assert_(issubclass(np.signedinteger, numbers.Integral))
+ assert_(issubclass(np.unsignedinteger, numbers.Integral))
+
+ def test_floats(self):
+ for t in sctypes['float']:
+ assert_(isinstance(t(), numbers.Real),
+ f"{t.__name__} is not instance of Real")
+ assert_(issubclass(t, numbers.Real),
+ f"{t.__name__} is not subclass of Real")
+ assert_(not isinstance(t(), numbers.Rational),
+ f"{t.__name__} is instance of Rational")
+ assert_(not issubclass(t, numbers.Rational),
+ f"{t.__name__} is subclass of Rational")
+
+ def test_complex(self):
+ for t in sctypes['complex']:
+ assert_(isinstance(t(), numbers.Complex),
+ f"{t.__name__} is not instance of Complex")
+ assert_(issubclass(t, numbers.Complex),
+ f"{t.__name__} is not subclass of Complex")
+ assert_(not isinstance(t(), numbers.Real),
+ f"{t.__name__} is instance of Real")
+ assert_(not issubclass(t, numbers.Real),
+ f"{t.__name__} is subclass of Real")
+
+ def test_int(self):
+ for t in sctypes['int']:
+ assert_(isinstance(t(), numbers.Integral),
+ f"{t.__name__} is not instance of Integral")
+ assert_(issubclass(t, numbers.Integral),
+ f"{t.__name__} is not subclass of Integral")
+
+ def test_uint(self):
+ for t in sctypes['uint']:
+ assert_(isinstance(t(), numbers.Integral),
+ f"{t.__name__} is not instance of Integral")
+ assert_(issubclass(t, numbers.Integral),
+ f"{t.__name__} is not subclass of Integral")
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/test_api.py b/python/user_packages/Python313/site-packages/numpy/_core/tests/test_api.py
new file mode 100644
index 0000000000000000000000000000000000000000..ac2f03f63e352e53e8a2233f2d38e9074dc01878
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/tests/test_api.py
@@ -0,0 +1,655 @@
+import sys
+
+import pytest
+
+import numpy as np
+import numpy._core.umath as ncu
+from numpy._core._rational_tests import rational
+from numpy.lib import stride_tricks
+from numpy.testing import (
+ HAS_REFCOUNT,
+ assert_,
+ assert_array_equal,
+ assert_equal,
+ assert_raises,
+)
+
+
+def test_array_array():
+ tobj = type(object)
+ ones11 = np.ones((1, 1), np.float64)
+ tndarray = type(ones11)
+ # Test is_ndarray
+ assert_equal(np.array(ones11, dtype=np.float64), ones11)
+ if HAS_REFCOUNT:
+ old_refcount = sys.getrefcount(tndarray)
+ np.array(ones11)
+ assert_equal(old_refcount, sys.getrefcount(tndarray))
+
+ # test None
+ assert_equal(np.array(None, dtype=np.float64),
+ np.array(np.nan, dtype=np.float64))
+ if HAS_REFCOUNT:
+ old_refcount = sys.getrefcount(tobj)
+ np.array(None, dtype=np.float64)
+ assert_equal(old_refcount, sys.getrefcount(tobj))
+
+ # test scalar
+ assert_equal(np.array(1.0, dtype=np.float64),
+ np.ones((), dtype=np.float64))
+ if HAS_REFCOUNT:
+ old_refcount = sys.getrefcount(np.float64)
+ np.array(np.array(1.0, dtype=np.float64), dtype=np.float64)
+ assert_equal(old_refcount, sys.getrefcount(np.float64))
+
+ # test string
+ S2 = np.dtype((bytes, 2))
+ S3 = np.dtype((bytes, 3))
+ S5 = np.dtype((bytes, 5))
+ assert_equal(np.array(b"1.0", dtype=np.float64),
+ np.ones((), dtype=np.float64))
+ assert_equal(np.array(b"1.0").dtype, S3)
+ assert_equal(np.array(b"1.0", dtype=bytes).dtype, S3)
+ assert_equal(np.array(b"1.0", dtype=S2), np.array(b"1."))
+ assert_equal(np.array(b"1", dtype=S5), np.ones((), dtype=S5))
+
+ # test string
+ U2 = np.dtype((str, 2))
+ U3 = np.dtype((str, 3))
+ U5 = np.dtype((str, 5))
+ assert_equal(np.array("1.0", dtype=np.float64),
+ np.ones((), dtype=np.float64))
+ assert_equal(np.array("1.0").dtype, U3)
+ assert_equal(np.array("1.0", dtype=str).dtype, U3)
+ assert_equal(np.array("1.0", dtype=U2), np.array("1."))
+ assert_equal(np.array("1", dtype=U5), np.ones((), dtype=U5))
+
+ builtins = getattr(__builtins__, '__dict__', __builtins__)
+ assert_(hasattr(builtins, 'get'))
+
+ # test memoryview
+ dat = np.array(memoryview(b'1.0'), dtype=np.float64)
+ assert_equal(dat, [49.0, 46.0, 48.0])
+ assert_(dat.dtype.type is np.float64)
+
+ dat = np.array(memoryview(b'1.0'))
+ assert_equal(dat, [49, 46, 48])
+ assert_(dat.dtype.type is np.uint8)
+
+ # test array interface
+ a = np.array(100.0, dtype=np.float64)
+ o = type("o", (object,),
+ {"__array_interface__": a.__array_interface__})
+ assert_equal(np.array(o, dtype=np.float64), a)
+
+ # test array_struct interface
+ a = np.array([(1, 4.0, 'Hello'), (2, 6.0, 'World')],
+ dtype=[('f0', int), ('f1', float), ('f2', str)])
+ o = type("o", (object,),
+ {"__array_struct__": a.__array_struct__})
+ # wasn't what I expected... is np.array(o) supposed to equal a ?
+ # instead we get an array([...], dtype=">V18")
+ assert_equal(bytes(np.array(o).data), bytes(a.data))
+
+ # test __array__
+ def custom__array__(self, dtype=None, copy=None):
+ return np.array(100.0, dtype=dtype, copy=copy)
+
+ o = type("o", (object,), {"__array__": custom__array__})()
+ assert_equal(np.array(o, dtype=np.float64), np.array(100.0, np.float64))
+
+ # test recursion
+ nested = 1.5
+ for i in range(ncu.MAXDIMS):
+ nested = [nested]
+
+ # no error
+ np.array(nested)
+
+ # Exceeds recursion limit
+ assert_raises(ValueError, np.array, [nested], dtype=np.float64)
+
+ # Try with lists...
+ # float32
+ assert_equal(np.array([None] * 10, dtype=np.float32),
+ np.full((10,), np.nan, dtype=np.float32))
+ assert_equal(np.array([[None]] * 10, dtype=np.float32),
+ np.full((10, 1), np.nan, dtype=np.float32))
+ assert_equal(np.array([[None] * 10], dtype=np.float32),
+ np.full((1, 10), np.nan, dtype=np.float32))
+ assert_equal(np.array([[None] * 10] * 10, dtype=np.float32),
+ np.full((10, 10), np.nan, dtype=np.float32))
+ # float64
+ assert_equal(np.array([None] * 10, dtype=np.float64),
+ np.full((10,), np.nan, dtype=np.float64))
+ assert_equal(np.array([[None]] * 10, dtype=np.float64),
+ np.full((10, 1), np.nan, dtype=np.float64))
+ assert_equal(np.array([[None] * 10], dtype=np.float64),
+ np.full((1, 10), np.nan, dtype=np.float64))
+ assert_equal(np.array([[None] * 10] * 10, dtype=np.float64),
+ np.full((10, 10), np.nan, dtype=np.float64))
+
+ assert_equal(np.array([1.0] * 10, dtype=np.float64),
+ np.ones((10,), dtype=np.float64))
+ assert_equal(np.array([[1.0]] * 10, dtype=np.float64),
+ np.ones((10, 1), dtype=np.float64))
+ assert_equal(np.array([[1.0] * 10], dtype=np.float64),
+ np.ones((1, 10), dtype=np.float64))
+ assert_equal(np.array([[1.0] * 10] * 10, dtype=np.float64),
+ np.ones((10, 10), dtype=np.float64))
+
+ # Try with tuples
+ assert_equal(np.array((None,) * 10, dtype=np.float64),
+ np.full((10,), np.nan, dtype=np.float64))
+ assert_equal(np.array([(None,)] * 10, dtype=np.float64),
+ np.full((10, 1), np.nan, dtype=np.float64))
+ assert_equal(np.array([(None,) * 10], dtype=np.float64),
+ np.full((1, 10), np.nan, dtype=np.float64))
+ assert_equal(np.array([(None,) * 10] * 10, dtype=np.float64),
+ np.full((10, 10), np.nan, dtype=np.float64))
+
+ assert_equal(np.array((1.0,) * 10, dtype=np.float64),
+ np.ones((10,), dtype=np.float64))
+ assert_equal(np.array([(1.0,)] * 10, dtype=np.float64),
+ np.ones((10, 1), dtype=np.float64))
+ assert_equal(np.array([(1.0,) * 10], dtype=np.float64),
+ np.ones((1, 10), dtype=np.float64))
+ assert_equal(np.array([(1.0,) * 10] * 10, dtype=np.float64),
+ np.ones((10, 10), dtype=np.float64))
+
+
+@pytest.mark.skipif(not HAS_REFCOUNT, reason="Python lacks refcounts")
+def test___array___refcount():
+ class MyArray:
+ def __init__(self, dtype):
+ self.val = np.array(-1, dtype=dtype)
+
+ def __array__(self, dtype=None, copy=None):
+ return self.val.__array__(dtype=dtype, copy=copy)
+
+ # test all possible scenarios:
+ # dtype(none | same | different) x copy(true | false | none)
+ dt = np.dtype(np.int32)
+ old_refcount = sys.getrefcount(dt)
+ np.array(MyArray(dt))
+ assert_equal(old_refcount, sys.getrefcount(dt))
+ np.array(MyArray(dt), dtype=dt)
+ assert_equal(old_refcount, sys.getrefcount(dt))
+ np.array(MyArray(dt), copy=None)
+ assert_equal(old_refcount, sys.getrefcount(dt))
+ np.array(MyArray(dt), dtype=dt, copy=None)
+ assert_equal(old_refcount, sys.getrefcount(dt))
+ dt2 = np.dtype(np.int16)
+ old_refcount2 = sys.getrefcount(dt2)
+ np.array(MyArray(dt), dtype=dt2)
+ assert_equal(old_refcount2, sys.getrefcount(dt2))
+ np.array(MyArray(dt), dtype=dt2, copy=None)
+ assert_equal(old_refcount2, sys.getrefcount(dt2))
+ with pytest.raises(ValueError):
+ np.array(MyArray(dt), dtype=dt2, copy=False)
+ assert_equal(old_refcount2, sys.getrefcount(dt2))
+
+
+@pytest.mark.parametrize("array", [True, False])
+def test_array_impossible_casts(array):
+ # All builtin types can be forcibly cast, at least theoretically,
+ # but user dtypes cannot necessarily.
+ rt = rational(1, 2)
+ if array:
+ rt = np.array(rt)
+ with assert_raises(TypeError):
+ np.array(rt, dtype="M8")
+
+
+def test_array_astype():
+ a = np.arange(6, dtype='f4').reshape(2, 3)
+ # Default behavior: allows unsafe casts, keeps memory layout,
+ # always copies.
+ b = a.astype('i4')
+ assert_equal(a, b)
+ assert_equal(b.dtype, np.dtype('i4'))
+ assert_equal(a.strides, b.strides)
+ b = a.T.astype('i4')
+ assert_equal(a.T, b)
+ assert_equal(b.dtype, np.dtype('i4'))
+ assert_equal(a.T.strides, b.strides)
+ b = a.astype('f4')
+ assert_equal(a, b)
+ assert_(not (a is b))
+
+ # copy=False parameter skips a copy
+ b = a.astype('f4', copy=False)
+ assert_(a is b)
+
+ # order parameter allows overriding of the memory layout,
+ # forcing a copy if the layout is wrong
+ b = a.astype('f4', order='F', copy=False)
+ assert_equal(a, b)
+ assert_(not (a is b))
+ assert_(b.flags.f_contiguous)
+
+ b = a.astype('f4', order='C', copy=False)
+ assert_equal(a, b)
+ assert_(a is b)
+ assert_(b.flags.c_contiguous)
+
+ # casting parameter allows catching bad casts
+ b = a.astype('c8', casting='safe')
+ assert_equal(a, b)
+ assert_equal(b.dtype, np.dtype('c8'))
+
+ assert_raises(TypeError, a.astype, 'i4', casting='safe')
+
+ # subok=False passes through a non-subclassed array
+ b = a.astype('f4', subok=0, copy=False)
+ assert_(a is b)
+
+ class MyNDArray(np.ndarray):
+ pass
+
+ a = np.array([[0, 1, 2], [3, 4, 5]], dtype='f4').view(MyNDArray)
+
+ # subok=True passes through a subclass
+ b = a.astype('f4', subok=True, copy=False)
+ assert_(a is b)
+
+ # subok=True is default, and creates a subtype on a cast
+ b = a.astype('i4', copy=False)
+ assert_equal(a, b)
+ assert_equal(type(b), MyNDArray)
+
+ # subok=False never returns a subclass
+ b = a.astype('f4', subok=False, copy=False)
+ assert_equal(a, b)
+ assert_(not (a is b))
+ assert_(type(b) is not MyNDArray)
+
+ # Make sure converting from string object to fixed length string
+ # does not truncate.
+ a = np.array([b'a' * 100], dtype='O')
+ b = a.astype('S')
+ assert_equal(a, b)
+ assert_equal(b.dtype, np.dtype('S100'))
+ a = np.array(['a' * 100], dtype='O')
+ b = a.astype('U')
+ assert_equal(a, b)
+ assert_equal(b.dtype, np.dtype('U100'))
+
+ # Same test as above but for strings shorter than 64 characters
+ a = np.array([b'a' * 10], dtype='O')
+ b = a.astype('S')
+ assert_equal(a, b)
+ assert_equal(b.dtype, np.dtype('S10'))
+ a = np.array(['a' * 10], dtype='O')
+ b = a.astype('U')
+ assert_equal(a, b)
+ assert_equal(b.dtype, np.dtype('U10'))
+
+ a = np.array(123456789012345678901234567890, dtype='O').astype('S')
+ assert_array_equal(a, np.array(b'1234567890' * 3, dtype='S30'))
+ a = np.array(123456789012345678901234567890, dtype='O').astype('U')
+ assert_array_equal(a, np.array('1234567890' * 3, dtype='U30'))
+
+ a = np.array([123456789012345678901234567890], dtype='O').astype('S')
+ assert_array_equal(a, np.array(b'1234567890' * 3, dtype='S30'))
+ a = np.array([123456789012345678901234567890], dtype='O').astype('U')
+ assert_array_equal(a, np.array('1234567890' * 3, dtype='U30'))
+
+ a = np.array(123456789012345678901234567890, dtype='S')
+ assert_array_equal(a, np.array(b'1234567890' * 3, dtype='S30'))
+ a = np.array(123456789012345678901234567890, dtype='U')
+ assert_array_equal(a, np.array('1234567890' * 3, dtype='U30'))
+
+ a = np.array('a\u0140', dtype='U')
+ b = np.ndarray(buffer=a, dtype='uint32', shape=2)
+ assert_(b.size == 2)
+
+ a = np.array([1000], dtype='i4')
+ assert_raises(TypeError, a.astype, 'S1', casting='safe')
+
+ a = np.array(1000, dtype='i4')
+ assert_raises(TypeError, a.astype, 'U1', casting='safe')
+
+ # gh-24023
+ assert_raises(TypeError, a.astype)
+
+@pytest.mark.parametrize("dt", ["S", "U"])
+def test_array_astype_to_string_discovery_empty(dt):
+ # See also gh-19085
+ arr = np.array([""], dtype=object)
+ # Note, the itemsize is the `0 -> 1` logic, which should change.
+ # The important part the test is rather that it does not error.
+ assert arr.astype(dt).dtype.itemsize == np.dtype(f"{dt}1").itemsize
+
+ # check the same thing for `np.can_cast` (since it accepts arrays)
+ assert np.can_cast(arr, dt, casting="unsafe")
+ assert not np.can_cast(arr, dt, casting="same_kind")
+ # as well as for the object as a descriptor:
+ assert np.can_cast("O", dt, casting="unsafe")
+
+@pytest.mark.parametrize("dt", ["d", "f", "S13", "U32"])
+def test_array_astype_to_void(dt):
+ dt = np.dtype(dt)
+ arr = np.array([], dtype=dt)
+ assert arr.astype("V").dtype.itemsize == dt.itemsize
+
+def test_object_array_astype_to_void():
+ # This is different to `test_array_astype_to_void` as object arrays
+ # are inspected. The default void is "V8" (8 is the length of double)
+ arr = np.array([], dtype="O").astype("V")
+ assert arr.dtype == "V8"
+
+@pytest.mark.parametrize("t",
+ np._core.sctypes['uint'] +
+ np._core.sctypes['int'] +
+ np._core.sctypes['float']
+)
+def test_array_astype_warning(t):
+ # test ComplexWarning when casting from complex to float or int
+ a = np.array(10, dtype=np.complex128)
+ pytest.warns(np.exceptions.ComplexWarning, a.astype, t)
+
+@pytest.mark.parametrize(["dtype", "out_dtype"],
+ [(np.bytes_, np.bool),
+ (np.str_, np.bool),
+ (np.dtype("S10,S9"), np.dtype("?,?")),
+ # The following also checks unaligned unicode access:
+ (np.dtype("S7,U9"), np.dtype("?,?"))])
+def test_string_to_boolean_cast(dtype, out_dtype):
+ # Only the last two (empty) strings are falsy (the `\0` is stripped):
+ arr = np.array(
+ ["10", "10\0\0\0", "0\0\0", "0", "False", " ", "", "\0"],
+ dtype=dtype)
+ expected = np.array(
+ [True, True, True, True, True, True, False, False],
+ dtype=out_dtype)
+ assert_array_equal(arr.astype(out_dtype), expected)
+ # As it's similar, check that nonzero behaves the same (structs are
+ # nonzero if all entries are)
+ assert_array_equal(np.nonzero(arr), np.nonzero(expected))
+
+@pytest.mark.parametrize("str_type", [str, bytes, np.str_])
+@pytest.mark.parametrize("scalar_type",
+ [np.complex64, np.complex128, np.clongdouble])
+def test_string_to_complex_cast(str_type, scalar_type):
+ value = scalar_type(b"1+3j")
+ assert scalar_type(value) == 1 + 3j
+ assert np.array([value], dtype=object).astype(scalar_type)[()] == 1 + 3j
+ assert np.array(value).astype(scalar_type)[()] == 1 + 3j
+ arr = np.zeros(1, dtype=scalar_type)
+ arr[0] = value
+ assert arr[0] == 1 + 3j
+
+@pytest.mark.parametrize("dtype", np.typecodes["AllFloat"])
+def test_none_to_nan_cast(dtype):
+ # Note that at the time of writing this test, the scalar constructors
+ # reject None
+ arr = np.zeros(1, dtype=dtype)
+ arr[0] = None
+ assert np.isnan(arr)[0]
+ assert np.isnan(np.array(None, dtype=dtype))[()]
+ assert np.isnan(np.array([None], dtype=dtype))[0]
+ assert np.isnan(np.array(None).astype(dtype))[()]
+
+def test_copyto_fromscalar():
+ a = np.arange(6, dtype='f4').reshape(2, 3)
+
+ # Simple copy
+ np.copyto(a, 1.5)
+ assert_equal(a, 1.5)
+ np.copyto(a.T, 2.5)
+ assert_equal(a, 2.5)
+
+ # Where-masked copy
+ mask = np.array([[0, 1, 0], [0, 0, 1]], dtype='?')
+ np.copyto(a, 3.5, where=mask)
+ assert_equal(a, [[2.5, 3.5, 2.5], [2.5, 2.5, 3.5]])
+ mask = np.array([[0, 1], [1, 1], [1, 0]], dtype='?')
+ np.copyto(a.T, 4.5, where=mask)
+ assert_equal(a, [[2.5, 4.5, 4.5], [4.5, 4.5, 3.5]])
+
+def test_copyto():
+ a = np.arange(6, dtype='i4').reshape(2, 3)
+
+ # Simple copy
+ np.copyto(a, [[3, 1, 5], [6, 2, 1]])
+ assert_equal(a, [[3, 1, 5], [6, 2, 1]])
+
+ # Overlapping copy should work
+ np.copyto(a[:, :2], a[::-1, 1::-1])
+ assert_equal(a, [[2, 6, 5], [1, 3, 1]])
+
+ # Defaults to 'same_kind' casting
+ assert_raises(TypeError, np.copyto, a, 1.5)
+
+ # Force a copy with 'unsafe' casting, truncating 1.5 to 1
+ np.copyto(a, 1.5, casting='unsafe')
+ assert_equal(a, 1)
+
+ # Copying with a mask
+ np.copyto(a, 3, where=[True, False, True])
+ assert_equal(a, [[3, 1, 3], [3, 1, 3]])
+
+ # Casting rule still applies with a mask
+ assert_raises(TypeError, np.copyto, a, 3.5, where=[True, False, True])
+
+ # Lists of integer 0's and 1's is ok too
+ np.copyto(a, 4.0, casting='unsafe', where=[[0, 1, 1], [1, 0, 0]])
+ assert_equal(a, [[3, 4, 4], [4, 1, 3]])
+
+ # Overlapping copy with mask should work
+ np.copyto(a[:, :2], a[::-1, 1::-1], where=[[0, 1], [1, 1]])
+ assert_equal(a, [[3, 4, 4], [4, 3, 3]])
+
+ # 'dst' must be an array
+ assert_raises(TypeError, np.copyto, [1, 2, 3], [2, 3, 4])
+
+
+def test_copyto_cast_safety():
+ with pytest.raises(TypeError):
+ np.copyto(np.arange(3), 3., casting="safe")
+
+ # Can put integer and float scalars safely (and equiv):
+ np.copyto(np.arange(3), 3, casting="equiv")
+ np.copyto(np.arange(3.), 3., casting="equiv")
+ # And also with less precision safely:
+ np.copyto(np.arange(3, dtype="uint8"), 3, casting="safe")
+ np.copyto(np.arange(3., dtype="float32"), 3., casting="safe")
+
+ # But not equiv:
+ with pytest.raises(TypeError):
+ np.copyto(np.arange(3, dtype="uint8"), 3, casting="equiv")
+
+ with pytest.raises(TypeError):
+ np.copyto(np.arange(3., dtype="float32"), 3., casting="equiv")
+
+ # As a special thing, object is equiv currently:
+ np.copyto(np.arange(3, dtype=object), 3, casting="equiv")
+
+ # The following raises an overflow error/gives a warning but not
+ # type error (due to casting), though:
+ with pytest.raises(OverflowError):
+ np.copyto(np.arange(3), 2**80, casting="safe")
+
+ with pytest.warns(RuntimeWarning):
+ np.copyto(np.arange(3, dtype=np.float32), 2e300, casting="safe")
+
+
+def test_copyto_permut():
+ # test explicit overflow case
+ pad = 500
+ l = [True] * pad + [True, True, True, True]
+ r = np.zeros(len(l) - pad)
+ d = np.ones(len(l) - pad)
+ mask = np.array(l)[pad:]
+ np.copyto(r, d, where=mask[::-1])
+
+ # test all permutation of possible masks, 9 should be sufficient for
+ # current 4 byte unrolled code
+ power = 9
+ d = np.ones(power)
+ for i in range(2**power):
+ r = np.zeros(power)
+ l = [(i & x) != 0 for x in range(power)]
+ mask = np.array(l)
+ np.copyto(r, d, where=mask)
+ assert_array_equal(r == 1, l)
+ assert_equal(r.sum(), sum(l))
+
+ r = np.zeros(power)
+ np.copyto(r, d, where=mask[::-1])
+ assert_array_equal(r == 1, l[::-1])
+ assert_equal(r.sum(), sum(l))
+
+ r = np.zeros(power)
+ np.copyto(r[::2], d[::2], where=mask[::2])
+ assert_array_equal(r[::2] == 1, l[::2])
+ assert_equal(r[::2].sum(), sum(l[::2]))
+
+ r = np.zeros(power)
+ np.copyto(r[::2], d[::2], where=mask[::-2])
+ assert_array_equal(r[::2] == 1, l[::-2])
+ assert_equal(r[::2].sum(), sum(l[::-2]))
+
+ for c in [0xFF, 0x7F, 0x02, 0x10]:
+ r = np.zeros(power)
+ mask = np.array(l)
+ imask = np.array(l).view(np.uint8)
+ imask[mask != 0] = c
+ np.copyto(r, d, where=mask)
+ assert_array_equal(r == 1, l)
+ assert_equal(r.sum(), sum(l))
+
+ r = np.zeros(power)
+ np.copyto(r, d, where=True)
+ assert_equal(r.sum(), r.size)
+ r = np.ones(power)
+ d = np.zeros(power)
+ np.copyto(r, d, where=False)
+ assert_equal(r.sum(), r.size)
+
+def test_copy_order():
+ a = np.arange(24).reshape(2, 1, 3, 4)
+ b = a.copy(order='F')
+ c = np.arange(24).reshape(2, 1, 4, 3).swapaxes(2, 3)
+
+ def check_copy_result(x, y, ccontig, fcontig, strides=False):
+ assert_(not (x is y))
+ assert_equal(x, y)
+ assert_equal(res.flags.c_contiguous, ccontig)
+ assert_equal(res.flags.f_contiguous, fcontig)
+
+ # Validate the initial state of a, b, and c
+ assert_(a.flags.c_contiguous)
+ assert_(not a.flags.f_contiguous)
+ assert_(not b.flags.c_contiguous)
+ assert_(b.flags.f_contiguous)
+ assert_(not c.flags.c_contiguous)
+ assert_(not c.flags.f_contiguous)
+
+ # Copy with order='C'
+ res = a.copy(order='C')
+ check_copy_result(res, a, ccontig=True, fcontig=False, strides=True)
+ res = b.copy(order='C')
+ check_copy_result(res, b, ccontig=True, fcontig=False, strides=False)
+ res = c.copy(order='C')
+ check_copy_result(res, c, ccontig=True, fcontig=False, strides=False)
+ res = np.copy(a, order='C')
+ check_copy_result(res, a, ccontig=True, fcontig=False, strides=True)
+ res = np.copy(b, order='C')
+ check_copy_result(res, b, ccontig=True, fcontig=False, strides=False)
+ res = np.copy(c, order='C')
+ check_copy_result(res, c, ccontig=True, fcontig=False, strides=False)
+
+ # Copy with order='F'
+ res = a.copy(order='F')
+ check_copy_result(res, a, ccontig=False, fcontig=True, strides=False)
+ res = b.copy(order='F')
+ check_copy_result(res, b, ccontig=False, fcontig=True, strides=True)
+ res = c.copy(order='F')
+ check_copy_result(res, c, ccontig=False, fcontig=True, strides=False)
+ res = np.copy(a, order='F')
+ check_copy_result(res, a, ccontig=False, fcontig=True, strides=False)
+ res = np.copy(b, order='F')
+ check_copy_result(res, b, ccontig=False, fcontig=True, strides=True)
+ res = np.copy(c, order='F')
+ check_copy_result(res, c, ccontig=False, fcontig=True, strides=False)
+
+ # Copy with order='K'
+ res = a.copy(order='K')
+ check_copy_result(res, a, ccontig=True, fcontig=False, strides=True)
+ res = b.copy(order='K')
+ check_copy_result(res, b, ccontig=False, fcontig=True, strides=True)
+ res = c.copy(order='K')
+ check_copy_result(res, c, ccontig=False, fcontig=False, strides=True)
+ res = np.copy(a, order='K')
+ check_copy_result(res, a, ccontig=True, fcontig=False, strides=True)
+ res = np.copy(b, order='K')
+ check_copy_result(res, b, ccontig=False, fcontig=True, strides=True)
+ res = np.copy(c, order='K')
+ check_copy_result(res, c, ccontig=False, fcontig=False, strides=True)
+
+def test_contiguous_flags():
+ a = np.ones((4, 4, 1))[::2, :, :]
+ a = stride_tricks.as_strided(a, strides=a.strides[:2] + (-123,))
+ b = np.ones((2, 2, 1, 2, 2)).swapaxes(3, 4)
+
+ def check_contig(a, ccontig, fcontig):
+ assert_(a.flags.c_contiguous == ccontig)
+ assert_(a.flags.f_contiguous == fcontig)
+
+ # Check if new arrays are correct:
+ check_contig(a, False, False)
+ check_contig(b, False, False)
+ check_contig(np.empty((2, 2, 0, 2, 2)), True, True)
+ check_contig(np.array([[[1], [2]]], order='F'), True, True)
+ check_contig(np.empty((2, 2)), True, False)
+ check_contig(np.empty((2, 2), order='F'), False, True)
+
+ # Check that np.array creates correct contiguous flags:
+ check_contig(np.array(a, copy=None), False, False)
+ check_contig(np.array(a, copy=None, order='C'), True, False)
+ check_contig(np.array(a, ndmin=4, copy=None, order='F'), False, True)
+
+ # Check slicing update of flags and :
+ check_contig(a[0], True, True)
+ check_contig(a[None, ::4, ..., None], True, True)
+ check_contig(b[0, 0, ...], False, True)
+ check_contig(b[:, :, 0:0, :, :], True, True)
+
+ # Test ravel and squeeze.
+ check_contig(a.ravel(), True, True)
+ check_contig(np.ones((1, 3, 1)).squeeze(), True, True)
+
+def test_broadcast_arrays():
+ # Test user defined dtypes
+ dtype = 'u4,u4,u4'
+ a = np.array([(1, 2, 3)], dtype=dtype)
+ b = np.array([(1, 2, 3), (4, 5, 6), (7, 8, 9)], dtype=dtype)
+ result = np.broadcast_arrays(a, b)
+ assert_equal(result[0], np.array([(1, 2, 3), (1, 2, 3), (1, 2, 3)], dtype=dtype))
+ assert_equal(result[1], np.array([(1, 2, 3), (4, 5, 6), (7, 8, 9)], dtype=dtype))
+
+@pytest.mark.parametrize(["shape", "fill_value", "expected_output"],
+ [((2, 2), [5.0, 6.0], np.array([[5.0, 6.0], [5.0, 6.0]])),
+ ((3, 2), [1.0, 2.0], np.array([[1.0, 2.0], [1.0, 2.0], [1.0, 2.0]]))])
+def test_full_from_list(shape, fill_value, expected_output):
+ output = np.full(shape, fill_value)
+ assert_equal(output, expected_output)
+
+def test_astype_copyflag():
+ # test the various copyflag options
+ arr = np.arange(10, dtype=np.intp)
+
+ res_true = arr.astype(np.intp, copy=True)
+ assert not np.shares_memory(arr, res_true)
+
+ res_false = arr.astype(np.intp, copy=False)
+ assert np.shares_memory(arr, res_false)
+
+ res_false_float = arr.astype(np.float64, copy=False)
+ assert not np.shares_memory(arr, res_false_float)
+
+ # _CopyMode enum isn't allowed
+ assert_raises(ValueError, arr.astype, np.float64,
+ copy=np._CopyMode.NEVER)
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/test_argparse.py b/python/user_packages/Python313/site-packages/numpy/_core/tests/test_argparse.py
new file mode 100644
index 0000000000000000000000000000000000000000..f61193b4ebe33e71ad44406ef4f4e90664690c74
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/tests/test_argparse.py
@@ -0,0 +1,90 @@
+"""
+Tests for the private NumPy argument parsing functionality.
+They mainly exists to ensure good test coverage without having to try the
+weirder cases on actual numpy functions but test them in one place.
+
+The test function is defined in C to be equivalent to (errors may not always
+match exactly, and could be adjusted):
+
+ def func(arg1, /, arg2, *, arg3):
+ i = integer(arg1) # reproducing the 'i' parsing in Python.
+ return None
+"""
+
+import threading
+
+import pytest
+
+import numpy as np
+from numpy._core._multiarray_tests import (
+ argparse_example_function as func,
+ threaded_argparse_example_function as thread_func,
+)
+from numpy.testing import IS_WASM
+
+
+@pytest.mark.skipif(IS_WASM, reason="wasm doesn't have support for threads")
+def test_thread_safe_argparse_cache():
+ b = threading.Barrier(8)
+
+ def call_thread_func():
+ b.wait()
+ thread_func(arg1=3, arg2=None)
+
+ tasks = [threading.Thread(target=call_thread_func) for _ in range(8)]
+ [t.start() for t in tasks]
+ [t.join() for t in tasks]
+
+
+def test_invalid_integers():
+ with pytest.raises(TypeError,
+ match="integer argument expected, got float"):
+ func(1.)
+ with pytest.raises(OverflowError):
+ func(2**100)
+
+
+def test_missing_arguments():
+ with pytest.raises(TypeError,
+ match="missing required positional argument 0"):
+ func()
+ with pytest.raises(TypeError,
+ match="missing required positional argument 0"):
+ func(arg2=1, arg3=4)
+ with pytest.raises(TypeError,
+ match=r"missing required argument \'arg2\' \(pos 1\)"):
+ func(1, arg3=5)
+
+
+def test_too_many_positional():
+ # the second argument is positional but can be passed as keyword.
+ with pytest.raises(TypeError,
+ match="takes from 2 to 3 positional arguments but 4 were given"):
+ func(1, 2, 3, 4)
+
+
+def test_multiple_values():
+ with pytest.raises(TypeError,
+ match=r"given by name \('arg2'\) and position \(position 1\)"):
+ func(1, 2, arg2=3)
+
+
+def test_string_fallbacks():
+ # We can (currently?) use numpy strings to test the "slow" fallbacks
+ # that should normally not be taken due to string interning.
+ arg2 = np.str_("arg2")
+ missing_arg = np.str_("missing_arg")
+ func(1, **{arg2: 3})
+ with pytest.raises(TypeError,
+ match="got an unexpected keyword argument 'missing_arg'"):
+ func(2, **{missing_arg: 3})
+
+
+def test_too_many_arguments_method_forwarding():
+ # Not directly related to the standard argument parsing, but we sometimes
+ # forward methods to Python: arr.mean() calls np._core._methods._mean()
+ # This adds code coverage for this `npy_forward_method`.
+ arr = np.arange(3)
+ args = range(1000)
+ with pytest.raises(TypeError):
+ arr.mean(*args)
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/test_array_api_info.py b/python/user_packages/Python313/site-packages/numpy/_core/tests/test_array_api_info.py
new file mode 100644
index 0000000000000000000000000000000000000000..401a12fcc319efb432d7a474bfd611554f4ee81d
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/tests/test_array_api_info.py
@@ -0,0 +1,113 @@
+import pytest
+
+import numpy as np
+
+info = np.__array_namespace_info__()
+
+
+def test_capabilities():
+ caps = info.capabilities()
+ assert caps["boolean indexing"] is True
+ assert caps["data-dependent shapes"] is True
+
+ # This will be added in the 2024.12 release of the array API standard.
+
+ # assert caps["max rank"] == 64
+ # np.zeros((1,)*64)
+ # with pytest.raises(ValueError):
+ # np.zeros((1,)*65)
+
+
+def test_default_device():
+ assert info.default_device() == "cpu" == np.asarray(0).device
+
+
+def test_default_dtypes():
+ dtypes = info.default_dtypes()
+ assert dtypes["real floating"] == np.float64 == np.asarray(0.0).dtype
+ assert dtypes["complex floating"] == np.complex128 == \
+ np.asarray(0.0j).dtype
+ assert dtypes["integral"] == np.intp == np.asarray(0).dtype
+ assert dtypes["indexing"] == np.intp == np.argmax(np.zeros(10)).dtype
+
+ with pytest.raises(ValueError, match="Device not understood"):
+ info.default_dtypes(device="gpu")
+
+
+def test_dtypes_all():
+ dtypes = info.dtypes()
+ assert dtypes == {
+ "bool": np.bool_,
+ "int8": np.int8,
+ "int16": np.int16,
+ "int32": np.int32,
+ "int64": np.int64,
+ "uint8": np.uint8,
+ "uint16": np.uint16,
+ "uint32": np.uint32,
+ "uint64": np.uint64,
+ "float32": np.float32,
+ "float64": np.float64,
+ "complex64": np.complex64,
+ "complex128": np.complex128,
+ }
+
+
+dtype_categories = {
+ "bool": {"bool": np.bool_},
+ "signed integer": {
+ "int8": np.int8,
+ "int16": np.int16,
+ "int32": np.int32,
+ "int64": np.int64,
+ },
+ "unsigned integer": {
+ "uint8": np.uint8,
+ "uint16": np.uint16,
+ "uint32": np.uint32,
+ "uint64": np.uint64,
+ },
+ "integral": ("signed integer", "unsigned integer"),
+ "real floating": {"float32": np.float32, "float64": np.float64},
+ "complex floating": {"complex64": np.complex64, "complex128":
+ np.complex128},
+ "numeric": ("integral", "real floating", "complex floating"),
+}
+
+
+@pytest.mark.parametrize("kind", dtype_categories)
+def test_dtypes_kind(kind):
+ expected = dtype_categories[kind]
+ if isinstance(expected, tuple):
+ assert info.dtypes(kind=kind) == info.dtypes(kind=expected)
+ else:
+ assert info.dtypes(kind=kind) == expected
+
+
+def test_dtypes_tuple():
+ dtypes = info.dtypes(kind=("bool", "integral"))
+ assert dtypes == {
+ "bool": np.bool_,
+ "int8": np.int8,
+ "int16": np.int16,
+ "int32": np.int32,
+ "int64": np.int64,
+ "uint8": np.uint8,
+ "uint16": np.uint16,
+ "uint32": np.uint32,
+ "uint64": np.uint64,
+ }
+
+
+def test_dtypes_invalid_kind():
+ with pytest.raises(ValueError, match="unsupported kind"):
+ info.dtypes(kind="invalid")
+
+
+def test_dtypes_invalid_device():
+ with pytest.raises(ValueError, match="Device not understood"):
+ info.dtypes(device="gpu")
+
+
+def test_devices():
+ assert info.devices() == ["cpu"]
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/test_array_coercion.py b/python/user_packages/Python313/site-packages/numpy/_core/tests/test_array_coercion.py
new file mode 100644
index 0000000000000000000000000000000000000000..64912293f1587b153186a029b80913469318533a
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/tests/test_array_coercion.py
@@ -0,0 +1,928 @@
+"""
+Tests for array coercion, mainly through testing `np.array` results directly.
+Note that other such tests exist, e.g., in `test_api.py` and many corner-cases
+are tested (sometimes indirectly) elsewhere.
+"""
+
+from itertools import permutations, product
+
+import pytest
+from pytest import param
+
+import numpy as np
+import numpy._core._multiarray_umath as ncu
+from numpy._core._rational_tests import rational
+from numpy.testing import IS_64BIT, IS_PYPY, assert_array_equal
+
+
+def arraylikes():
+ """
+ Generator for functions converting an array into various array-likes.
+ If full is True (default) it includes array-likes not capable of handling
+ all dtypes.
+ """
+ # base array:
+ def ndarray(a):
+ return a
+
+ yield param(ndarray, id="ndarray")
+
+ # subclass:
+ class MyArr(np.ndarray):
+ pass
+
+ def subclass(a):
+ return a.view(MyArr)
+
+ yield subclass
+
+ class _SequenceLike:
+ # Older NumPy versions, sometimes cared whether a protocol array was
+ # also _SequenceLike. This shouldn't matter, but keep it for now
+ # for __array__ and not the others.
+ def __len__(self):
+ raise TypeError
+
+ def __getitem__(self, _, /):
+ raise TypeError
+
+ # Array-interface
+ class ArrayDunder(_SequenceLike):
+ def __init__(self, a):
+ self.a = a
+
+ def __array__(self, dtype=None, copy=None):
+ if dtype is None:
+ return self.a
+ return self.a.astype(dtype)
+
+ yield param(ArrayDunder, id="__array__")
+
+ # memory-view
+ yield param(memoryview, id="memoryview")
+
+ # Array-interface
+ class ArrayInterface:
+ def __init__(self, a):
+ self.a = a # need to hold on to keep interface valid
+ self.__array_interface__ = a.__array_interface__
+
+ yield param(ArrayInterface, id="__array_interface__")
+
+ # Array-Struct
+ class ArrayStruct:
+ def __init__(self, a):
+ self.a = a # need to hold on to keep struct valid
+ self.__array_struct__ = a.__array_struct__
+
+ yield param(ArrayStruct, id="__array_struct__")
+
+
+def scalar_instances(times=True, extended_precision=True, user_dtype=True):
+ # Hard-coded list of scalar instances.
+ # Floats:
+ yield param(np.sqrt(np.float16(5)), id="float16")
+ yield param(np.sqrt(np.float32(5)), id="float32")
+ yield param(np.sqrt(np.float64(5)), id="float64")
+ if extended_precision:
+ yield param(np.sqrt(np.longdouble(5)), id="longdouble")
+
+ # Complex:
+ yield param(np.sqrt(np.complex64(2 + 3j)), id="complex64")
+ yield param(np.sqrt(np.complex128(2 + 3j)), id="complex128")
+ if extended_precision:
+ yield param(np.sqrt(np.clongdouble(2 + 3j)), id="clongdouble")
+
+ # Bool:
+ # XFAIL: Bool should be added, but has some bad properties when it
+ # comes to strings, see also gh-9875
+ # yield param(np.bool(0), id="bool")
+
+ # Integers:
+ yield param(np.int8(2), id="int8")
+ yield param(np.int16(2), id="int16")
+ yield param(np.int32(2), id="int32")
+ yield param(np.int64(2), id="int64")
+
+ yield param(np.uint8(2), id="uint8")
+ yield param(np.uint16(2), id="uint16")
+ yield param(np.uint32(2), id="uint32")
+ yield param(np.uint64(2), id="uint64")
+
+ # Rational:
+ if user_dtype:
+ yield param(rational(1, 2), id="rational")
+
+ # Cannot create a structured void scalar directly:
+ structured = np.array([(1, 3)], "i,i")[0]
+ assert isinstance(structured, np.void)
+ assert structured.dtype == np.dtype("i,i")
+ yield param(structured, id="structured")
+
+ if times:
+ # Datetimes and timedelta
+ yield param(np.timedelta64(2), id="timedelta64[generic]")
+ yield param(np.timedelta64(23, "s"), id="timedelta64[s]")
+ yield param(np.timedelta64("NaT", "s"), id="timedelta64[s](NaT)")
+
+ yield param(np.datetime64("NaT"), id="datetime64[generic](NaT)")
+ yield param(np.datetime64("2020-06-07 12:43", "ms"), id="datetime64[ms]")
+
+ # Strings and unstructured void:
+ yield param(np.bytes_(b"1234"), id="bytes")
+ yield param(np.str_("2345"), id="unicode")
+ yield param(np.void(b"4321"), id="unstructured_void")
+
+
+def is_parametric_dtype(dtype):
+ """Returns True if the dtype is a parametric legacy dtype (itemsize
+ is 0, or a datetime without units)
+ """
+ if dtype.itemsize == 0:
+ return True
+ if issubclass(dtype.type, (np.datetime64, np.timedelta64)):
+ if dtype.name.endswith("64"):
+ # Generic time units
+ return True
+ return False
+
+
+class TestStringDiscovery:
+ @pytest.mark.parametrize("obj",
+ [object(), 1.2, 10**43, None, "string"],
+ ids=["object", "1.2", "10**43", "None", "string"])
+ def test_basic_stringlength(self, obj):
+ length = len(str(obj))
+ expected = np.dtype(f"S{length}")
+
+ assert np.array(obj, dtype="S").dtype == expected
+ assert np.array([obj], dtype="S").dtype == expected
+
+ # A nested array is also discovered correctly
+ arr = np.array(obj, dtype="O")
+ assert np.array(arr, dtype="S").dtype == expected
+ # Also if we use the dtype class
+ assert np.array(arr, dtype=type(expected)).dtype == expected
+ # Check that .astype() behaves identical
+ assert arr.astype("S").dtype == expected
+ # The DType class is accepted by `.astype()`
+ assert arr.astype(type(np.dtype("S"))).dtype == expected
+
+ @pytest.mark.parametrize("obj",
+ [object(), 1.2, 10**43, None, "string"],
+ ids=["object", "1.2", "10**43", "None", "string"])
+ def test_nested_arrays_stringlength(self, obj):
+ length = len(str(obj))
+ expected = np.dtype(f"S{length}")
+ arr = np.array(obj, dtype="O")
+ assert np.array([arr, arr], dtype="S").dtype == expected
+
+ @pytest.mark.parametrize("arraylike", arraylikes())
+ def test_unpack_first_level(self, arraylike):
+ # We unpack exactly one level of array likes
+ obj = np.array([None])
+ obj[0] = np.array(1.2)
+ # the length of the included item, not of the float dtype
+ length = len(str(obj[0]))
+ expected = np.dtype(f"S{length}")
+
+ obj = arraylike(obj)
+ # casting to string usually calls str(obj)
+ arr = np.array([obj], dtype="S")
+ assert arr.shape == (1, 1)
+ assert arr.dtype == expected
+
+
+class TestScalarDiscovery:
+ def test_void_special_case(self):
+ # Void dtypes with structures discover tuples as elements
+ arr = np.array((1, 2, 3), dtype="i,i,i")
+ assert arr.shape == ()
+ arr = np.array([(1, 2, 3)], dtype="i,i,i")
+ assert arr.shape == (1,)
+
+ def test_char_special_case(self):
+ arr = np.array("string", dtype="c")
+ assert arr.shape == (6,)
+ assert arr.dtype.char == "c"
+ arr = np.array(["string"], dtype="c")
+ assert arr.shape == (1, 6)
+ assert arr.dtype.char == "c"
+
+ def test_char_special_case_deep(self):
+ # Check that the character special case errors correctly if the
+ # array is too deep:
+ nested = ["string"] # 2 dimensions (due to string being sequence)
+ for i in range(ncu.MAXDIMS - 2):
+ nested = [nested]
+
+ arr = np.array(nested, dtype='c')
+ assert arr.shape == (1,) * (ncu.MAXDIMS - 1) + (6,)
+ with pytest.raises(ValueError):
+ np.array([nested], dtype="c")
+
+ def test_unknown_object(self):
+ arr = np.array(object())
+ assert arr.shape == ()
+ assert arr.dtype == np.dtype("O")
+
+ @pytest.mark.parametrize("scalar", scalar_instances())
+ def test_scalar(self, scalar):
+ arr = np.array(scalar)
+ assert arr.shape == ()
+ assert arr.dtype == scalar.dtype
+
+ arr = np.array([[scalar, scalar]])
+ assert arr.shape == (1, 2)
+ assert arr.dtype == scalar.dtype
+
+ # Additionally to string this test also runs into a corner case
+ # with datetime promotion (the difference is the promotion order).
+ @pytest.mark.filterwarnings("ignore:Promotion of numbers:FutureWarning")
+ def test_scalar_promotion(self):
+ for sc1, sc2 in product(scalar_instances(), scalar_instances()):
+ sc1, sc2 = sc1.values[0], sc2.values[0]
+ # test all combinations:
+ try:
+ arr = np.array([sc1, sc2])
+ except (TypeError, ValueError):
+ # The promotion between two times can fail
+ # XFAIL (ValueError): Some object casts are currently undefined
+ continue
+ assert arr.shape == (2,)
+ try:
+ dt1, dt2 = sc1.dtype, sc2.dtype
+ expected_dtype = np.promote_types(dt1, dt2)
+ assert arr.dtype == expected_dtype
+ except TypeError as e:
+ # Will currently always go to object dtype
+ assert arr.dtype == np.dtype("O")
+
+ @pytest.mark.parametrize("scalar", scalar_instances())
+ def test_scalar_coercion(self, scalar):
+ # This tests various scalar coercion paths, mainly for the numerical
+ # types. It includes some paths not directly related to `np.array`.
+ if isinstance(scalar, np.inexact):
+ # Ensure we have a full-precision number if available
+ scalar = type(scalar)((scalar * 2)**0.5)
+
+ # Use casting from object:
+ arr = np.array(scalar, dtype=object).astype(scalar.dtype)
+
+ # Test various ways to create an array containing this scalar:
+ arr1 = np.array(scalar).reshape(1)
+ arr2 = np.array([scalar])
+ arr3 = np.empty(1, dtype=scalar.dtype)
+ arr3[0] = scalar
+ arr4 = np.empty(1, dtype=scalar.dtype)
+ arr4[:] = [scalar]
+ # All of these methods should yield the same results
+ assert_array_equal(arr, arr1)
+ assert_array_equal(arr, arr2)
+ assert_array_equal(arr, arr3)
+ assert_array_equal(arr, arr4)
+
+ @pytest.mark.xfail(IS_PYPY, reason="`int(np.complex128(3))` fails on PyPy")
+ @pytest.mark.filterwarnings("ignore::numpy.exceptions.ComplexWarning")
+ @pytest.mark.parametrize("cast_to", scalar_instances())
+ def test_scalar_coercion_same_as_cast_and_assignment(self, cast_to):
+ """
+ Test that in most cases:
+ * `np.array(scalar, dtype=dtype)`
+ * `np.empty((), dtype=dtype)[()] = scalar`
+ * `np.array(scalar).astype(dtype)`
+ should behave the same. The only exceptions are parametric dtypes
+ (mainly datetime/timedelta without unit) and void without fields.
+ """
+ dtype = cast_to.dtype # use to parametrize only the target dtype
+
+ for scalar in scalar_instances(times=False):
+ scalar = scalar.values[0]
+
+ if dtype.type == np.void:
+ if scalar.dtype.fields is not None and dtype.fields is None:
+ # Here, coercion to "V6" works, but the cast fails.
+ # Since the types are identical, SETITEM takes care of
+ # this, but has different rules than the cast.
+ with pytest.raises(TypeError):
+ np.array(scalar).astype(dtype)
+ np.array(scalar, dtype=dtype)
+ np.array([scalar], dtype=dtype)
+ continue
+
+ # The main test, we first try to use casting and if it succeeds
+ # continue below testing that things are the same, otherwise
+ # test that the alternative paths at least also fail.
+ try:
+ cast = np.array(scalar).astype(dtype)
+ except (TypeError, ValueError, RuntimeError):
+ # coercion should also raise (error type may change)
+ with pytest.raises(Exception): # noqa: B017
+ np.array(scalar, dtype=dtype)
+
+ if (isinstance(scalar, rational) and
+ np.issubdtype(dtype, np.signedinteger)):
+ return
+
+ with pytest.raises(Exception): # noqa: B017
+ np.array([scalar], dtype=dtype)
+ # assignment should also raise
+ res = np.zeros((), dtype=dtype)
+ with pytest.raises(Exception): # noqa: B017
+ res[()] = scalar
+
+ return
+
+ # Non error path:
+ arr = np.array(scalar, dtype=dtype)
+ assert_array_equal(arr, cast)
+ # assignment behaves the same
+ ass = np.zeros((), dtype=dtype)
+ ass[()] = scalar
+ assert_array_equal(ass, cast)
+
+ @pytest.mark.parametrize("pyscalar", [10, 10.32, 10.14j, 10**100])
+ def test_pyscalar_subclasses(self, pyscalar):
+ """NumPy arrays are read/write which means that anything but invariant
+ behaviour is on thin ice. However, we currently are happy to discover
+ subclasses of Python float, int, complex the same as the base classes.
+ This should potentially be deprecated.
+ """
+ class MyScalar(type(pyscalar)):
+ pass
+
+ res = np.array(MyScalar(pyscalar))
+ expected = np.array(pyscalar)
+ assert_array_equal(res, expected)
+
+ @pytest.mark.parametrize("dtype_char", np.typecodes["All"])
+ def test_default_dtype_instance(self, dtype_char):
+ if dtype_char in "SU":
+ dtype = np.dtype(dtype_char + "1")
+ elif dtype_char == "V":
+ # Legacy behaviour was to use V8. The reason was float64 being the
+ # default dtype and that having 8 bytes.
+ dtype = np.dtype("V8")
+ else:
+ dtype = np.dtype(dtype_char)
+
+ discovered_dtype, _ = ncu._discover_array_parameters([], type(dtype))
+
+ assert discovered_dtype == dtype
+ assert discovered_dtype.itemsize == dtype.itemsize
+
+ @pytest.mark.parametrize("dtype", np.typecodes["Integer"])
+ @pytest.mark.parametrize(["scalar", "error"],
+ [(np.float64(np.nan), ValueError),
+ (np.array(-1).astype(np.ulonglong)[()], OverflowError)])
+ def test_scalar_to_int_coerce_does_not_cast(self, dtype, scalar, error):
+ """
+ Signed integers are currently different in that they do not cast other
+ NumPy scalar, but instead use scalar.__int__(). The hardcoded
+ exception to this rule is `np.array(scalar, dtype=integer)`.
+ """
+ dtype = np.dtype(dtype)
+
+ # This is a special case using casting logic. It warns for the NaN
+ # but allows the cast (giving undefined behaviour).
+ with np.errstate(invalid="ignore"):
+ coerced = np.array(scalar, dtype=dtype)
+ cast = np.array(scalar).astype(dtype)
+ assert_array_equal(coerced, cast)
+
+ # However these fail:
+ with pytest.raises(error):
+ np.array([scalar], dtype=dtype)
+ with pytest.raises(error):
+ cast[()] = scalar
+
+
+class TestTimeScalars:
+ @pytest.mark.parametrize("dtype", [np.int64, np.float32])
+ @pytest.mark.parametrize("scalar",
+ [param(np.timedelta64("NaT", "s"), id="timedelta64[s](NaT)"),
+ param(np.timedelta64(123, "s"), id="timedelta64[s]"),
+ param(np.datetime64("NaT", "generic"), id="datetime64[generic](NaT)"),
+ param(np.datetime64(1, "D"), id="datetime64[D]")],)
+ def test_coercion_basic(self, dtype, scalar):
+ # Note the `[scalar]` is there because np.array(scalar) uses stricter
+ # `scalar.__int__()` rules for backward compatibility right now.
+ arr = np.array(scalar, dtype=dtype)
+ cast = np.array(scalar).astype(dtype)
+ assert_array_equal(arr, cast)
+
+ ass = np.ones((), dtype=dtype)
+ if issubclass(dtype, np.integer):
+ with pytest.raises(TypeError):
+ # raises, as would np.array([scalar], dtype=dtype), this is
+ # conversion from times, but behaviour of integers.
+ ass[()] = scalar
+ else:
+ ass[()] = scalar
+ assert_array_equal(ass, cast)
+
+ @pytest.mark.parametrize("dtype", [np.int64, np.float32])
+ @pytest.mark.parametrize("scalar",
+ [param(np.timedelta64(123, "ns"), id="timedelta64[ns]"),
+ param(np.timedelta64(12, "generic"), id="timedelta64[generic]")])
+ def test_coercion_timedelta_convert_to_number(self, dtype, scalar):
+ # Only "ns" and "generic" timedeltas can be converted to numbers
+ # so these are slightly special.
+ arr = np.array(scalar, dtype=dtype)
+ cast = np.array(scalar).astype(dtype)
+ ass = np.ones((), dtype=dtype)
+ ass[()] = scalar # raises, as would np.array([scalar], dtype=dtype)
+
+ assert_array_equal(arr, cast)
+ assert_array_equal(cast, cast)
+
+ @pytest.mark.parametrize("dtype", ["S6", "U6"])
+ @pytest.mark.parametrize(["val", "unit"],
+ [param(123, "s", id="[s]"), param(123, "D", id="[D]")])
+ def test_coercion_assignment_datetime(self, val, unit, dtype):
+ # String from datetime64 assignment is currently special cased to
+ # never use casting. This is because casting will error in this
+ # case, and traditionally in most cases the behaviour is maintained
+ # like this. (`np.array(scalar, dtype="U6")` would have failed before)
+ # TODO: This discrepancy _should_ be resolved, either by relaxing the
+ # cast, or by deprecating the first part.
+ scalar = np.datetime64(val, unit)
+ dtype = np.dtype(dtype)
+ cut_string = dtype.type(str(scalar)[:6])
+
+ arr = np.array(scalar, dtype=dtype)
+ assert arr[()] == cut_string
+ ass = np.ones((), dtype=dtype)
+ ass[()] = scalar
+ assert ass[()] == cut_string
+
+ with pytest.raises(RuntimeError):
+ # However, unlike the above assignment using `str(scalar)[:6]`
+ # due to being handled by the string DType and not be casting
+ # the explicit cast fails:
+ np.array(scalar).astype(dtype)
+
+ @pytest.mark.parametrize(["val", "unit"],
+ [param(123, "s", id="[s]"), param(123, "D", id="[D]")])
+ def test_coercion_assignment_timedelta(self, val, unit):
+ scalar = np.timedelta64(val, unit)
+
+ # Unlike datetime64, timedelta allows the unsafe cast:
+ np.array(scalar, dtype="S6")
+ cast = np.array(scalar).astype("S6")
+ ass = np.ones((), dtype="S6")
+ ass[()] = scalar
+ expected = scalar.astype("S")[:6]
+ assert cast[()] == expected
+ assert ass[()] == expected
+
+class TestNested:
+ def test_nested_simple(self):
+ initial = [1.2]
+ nested = initial
+ for i in range(ncu.MAXDIMS - 1):
+ nested = [nested]
+
+ arr = np.array(nested, dtype="float64")
+ assert arr.shape == (1,) * ncu.MAXDIMS
+ with pytest.raises(ValueError):
+ np.array([nested], dtype="float64")
+
+ with pytest.raises(ValueError, match=".*would exceed the maximum"):
+ np.array([nested]) # user must ask for `object` explicitly
+
+ arr = np.array([nested], dtype=object)
+ assert arr.dtype == np.dtype("O")
+ assert arr.shape == (1,) * ncu.MAXDIMS
+ assert arr.item() is initial
+
+ def test_pathological_self_containing(self):
+ # Test that this also works for two nested sequences
+ l = []
+ l.append(l)
+ arr = np.array([l, l, l], dtype=object)
+ assert arr.shape == (3,) + (1,) * (ncu.MAXDIMS - 1)
+
+ # Also check a ragged case:
+ arr = np.array([l, [None], l], dtype=object)
+ assert arr.shape == (3, 1)
+
+ @pytest.mark.parametrize("arraylike", arraylikes())
+ def test_nested_arraylikes(self, arraylike):
+ # We try storing an array like into an array, but the array-like
+ # will have too many dimensions. This means the shape discovery
+ # decides that the array-like must be treated as an object (a special
+ # case of ragged discovery). The result will be an array with one
+ # dimension less than the maximum dimensions, and the array being
+ # assigned to it (which does work for object or if `float(arraylike)`
+ # works).
+ initial = arraylike(np.ones((1, 1)))
+
+ nested = initial
+ for i in range(ncu.MAXDIMS - 1):
+ nested = [nested]
+
+ with pytest.raises(ValueError, match=".*would exceed the maximum"):
+ # It will refuse to assign the array into
+ np.array(nested, dtype="float64")
+
+ # If this is object, we end up assigning a (1, 1) array into (1,)
+ # (due to running out of dimensions), this is currently supported but
+ # a special case which is not ideal.
+ arr = np.array(nested, dtype=object)
+ assert arr.shape == (1,) * ncu.MAXDIMS
+ assert arr.item() == np.array(initial).item()
+
+ @pytest.mark.parametrize("arraylike", arraylikes())
+ def test_uneven_depth_ragged(self, arraylike):
+ arr = np.arange(4).reshape((2, 2))
+ arr = arraylike(arr)
+
+ # Array is ragged in the second dimension already:
+ out = np.array([arr, [arr]], dtype=object)
+ assert out.shape == (2,)
+ assert out[0] is arr
+ assert type(out[1]) is list
+
+ # Array is ragged in the third dimension:
+ with pytest.raises(ValueError):
+ # This is a broadcast error during assignment, because
+ # the array shape would be (2, 2, 2) but `arr[0, 0] = arr` fails.
+ np.array([arr, [arr, arr]], dtype=object)
+
+ def test_empty_sequence(self):
+ arr = np.array([[], [1], [[1]]], dtype=object)
+ assert arr.shape == (3,)
+
+ # The empty sequence stops further dimension discovery, so the
+ # result shape will be (0,) which leads to an error during:
+ with pytest.raises(ValueError):
+ np.array([[], np.empty((0, 1))], dtype=object)
+
+ def test_array_of_different_depths(self):
+ # When multiple arrays (or array-likes) are included in a
+ # sequences and have different depth, we currently discover
+ # as many dimensions as they share. (see also gh-17224)
+ arr = np.zeros((3, 2))
+ mismatch_first_dim = np.zeros((1, 2))
+ mismatch_second_dim = np.zeros((3, 3))
+
+ dtype, shape = ncu._discover_array_parameters(
+ [arr, mismatch_second_dim], dtype=np.dtype("O"))
+ assert shape == (2, 3)
+
+ dtype, shape = ncu._discover_array_parameters(
+ [arr, mismatch_first_dim], dtype=np.dtype("O"))
+ assert shape == (2,)
+ # The second case is currently supported because the arrays
+ # can be stored as objects:
+ res = np.asarray([arr, mismatch_first_dim], dtype=np.dtype("O"))
+ assert res[0] is arr
+ assert res[1] is mismatch_first_dim
+
+
+class TestBadSequences:
+ # These are tests for bad objects passed into `np.array`, in general
+ # these have undefined behaviour. In the old code they partially worked
+ # when now they will fail. We could (and maybe should) create a copy
+ # of all sequences to be safe against bad-actors.
+
+ def test_growing_list(self):
+ # List to coerce, `mylist` will append to it during coercion
+ obj = []
+
+ class mylist(list):
+ def __len__(self):
+ obj.append([1, 2])
+ return super().__len__()
+
+ obj.append(mylist([1, 2]))
+
+ with pytest.raises(RuntimeError):
+ np.array(obj)
+
+ # Note: We do not test a shrinking list. These do very evil things
+ # and the only way to fix them would be to copy all sequences.
+ # (which may be a real option in the future).
+
+ def test_mutated_list(self):
+ # List to coerce, `mylist` will mutate the first element
+ obj = []
+
+ class mylist(list):
+ def __len__(self):
+ obj[0] = [2, 3] # replace with a different list.
+ return super().__len__()
+
+ obj.append([2, 3])
+ obj.append(mylist([1, 2]))
+ # Does not crash:
+ np.array(obj)
+
+ def test_replace_0d_array(self):
+ # List to coerce, `mylist` will mutate the first element
+ obj = []
+
+ class baditem:
+ def __len__(self):
+ obj[0][0] = 2 # replace with a different list.
+ raise ValueError("not actually a sequence!")
+
+ def __getitem__(self, _, /):
+ pass
+
+ # Runs into a corner case in the new code, the `array(2)` is cached
+ # so replacing it invalidates the cache.
+ obj.append([np.array(2), baditem()])
+ with pytest.raises(RuntimeError):
+ np.array(obj)
+
+
+class TestArrayLikes:
+ @pytest.mark.parametrize("arraylike", arraylikes())
+ def test_0d_object_special_case(self, arraylike):
+ arr = np.array(0.)
+ obj = arraylike(arr)
+ # A single array-like is always converted:
+ res = np.array(obj, dtype=object)
+ assert_array_equal(arr, res)
+
+ # But a single 0-D nested array-like never:
+ res = np.array([obj], dtype=object)
+ assert res[0] is obj
+
+ @pytest.mark.parametrize("arraylike", arraylikes())
+ @pytest.mark.parametrize("arr", [np.array(0.), np.arange(4)])
+ def test_object_assignment_special_case(self, arraylike, arr):
+ obj = arraylike(arr)
+ empty = np.arange(1, dtype=object)
+ empty[:] = [obj]
+ assert empty[0] is obj
+
+ def test_0d_generic_special_case(self):
+ class ArraySubclass(np.ndarray):
+ def __float__(self):
+ raise TypeError("e.g. quantities raise on this")
+
+ arr = np.array(0.)
+ obj = arr.view(ArraySubclass)
+ res = np.array(obj)
+ # The subclass is simply cast:
+ assert_array_equal(arr, res)
+
+ # If the 0-D array-like is included, __float__ is currently
+ # guaranteed to be used. We may want to change that, quantities
+ # and masked arrays half make use of this.
+ with pytest.raises(TypeError):
+ np.array([obj])
+
+ # The same holds for memoryview:
+ obj = memoryview(arr)
+ res = np.array(obj)
+ assert_array_equal(arr, res)
+ with pytest.raises(ValueError):
+ # The error type does not matter much here.
+ np.array([obj])
+
+ def test_arraylike_classes(self):
+ # The classes of array-likes should generally be acceptable to be
+ # stored inside a numpy (object) array. This tests all of the
+ # special attributes (since all are checked during coercion).
+ arr = np.array(np.int64)
+ assert arr[()] is np.int64
+ arr = np.array([np.int64])
+ assert arr[0] is np.int64
+
+ # This also works for properties/unbound methods:
+ class ArrayLike:
+ @property
+ def __array_interface__(self):
+ pass
+
+ @property
+ def __array_struct__(self):
+ pass
+
+ def __array__(self, dtype=None, copy=None):
+ pass
+
+ arr = np.array(ArrayLike)
+ assert arr[()] is ArrayLike
+ arr = np.array([ArrayLike])
+ assert arr[0] is ArrayLike
+
+ @pytest.mark.skipif(not IS_64BIT, reason="Needs 64bit platform")
+ @pytest.mark.thread_unsafe(reason="large slow test in parallel")
+ def test_too_large_array_error_paths(self):
+ """Test the error paths, including for memory leaks"""
+ arr = np.array(0, dtype="uint8")
+ # Guarantees that a contiguous copy won't work:
+ arr = np.broadcast_to(arr, 2**62)
+
+ for i in range(5):
+ # repeat, to ensure caching cannot have an effect:
+ with pytest.raises(MemoryError):
+ np.array(arr)
+ with pytest.raises(MemoryError):
+ np.array([arr])
+
+ @pytest.mark.parametrize("attribute",
+ ["__array_interface__", "__array__", "__array_struct__"])
+ @pytest.mark.parametrize("error", [RecursionError, MemoryError])
+ def test_bad_array_like_attributes(self, attribute, error):
+ # RecursionError and MemoryError are considered fatal. All errors
+ # (except AttributeError) should probably be raised in the future,
+ # but shapely made use of it, so it will require a deprecation.
+
+ class BadInterface:
+ def __getattr__(self, attr):
+ if attr == attribute:
+ raise error
+ super().__getattr__(attr)
+
+ with pytest.raises(error):
+ np.array(BadInterface())
+
+ @pytest.mark.parametrize("error", [RecursionError, MemoryError])
+ def test_bad_array_like_bad_length(self, error):
+ # RecursionError and MemoryError are considered "critical" in
+ # sequences. We could expand this more generally though. (NumPy 1.20)
+ class BadSequence:
+ def __len__(self):
+ raise error
+
+ def __getitem__(self, _, /):
+ # must have getitem to be a Sequence
+ return 1
+
+ with pytest.raises(error):
+ np.array(BadSequence())
+
+ def test_array_interface_descr_optional(self):
+ # The descr should be optional regression test for gh-27249
+ arr = np.ones(10, dtype="V10")
+ iface = arr.__array_interface__
+ iface.pop("descr")
+
+ class MyClass:
+ __array_interface__ = iface
+
+ assert_array_equal(np.asarray(MyClass), arr)
+
+
+class TestAsArray:
+ """Test expected behaviors of ``asarray``."""
+
+ def test_dtype_identity(self):
+ """Confirm the intended behavior for *dtype* kwarg.
+
+ The result of ``asarray()`` should have the dtype provided through the
+ keyword argument, when used. This forces unique array handles to be
+ produced for unique np.dtype objects, but (for equivalent dtypes), the
+ underlying data (the base object) is shared with the original array
+ object.
+
+ Ref https://github.com/numpy/numpy/issues/1468
+ """
+ int_array = np.array([1, 2, 3], dtype='i')
+ assert np.asarray(int_array) is int_array
+
+ # The character code resolves to the singleton dtype object provided
+ # by the numpy package.
+ assert np.asarray(int_array, dtype='i') is int_array
+
+ # Derive a dtype from n.dtype('i'), but add a metadata object to force
+ # the dtype to be distinct.
+ unequal_type = np.dtype('i', metadata={'spam': True})
+ annotated_int_array = np.asarray(int_array, dtype=unequal_type)
+ assert annotated_int_array is not int_array
+ assert annotated_int_array.base is int_array
+ # Create an equivalent descriptor with a new and distinct dtype
+ # instance.
+ equivalent_requirement = np.dtype('i', metadata={'spam': True})
+ annotated_int_array_alt = np.asarray(annotated_int_array,
+ dtype=equivalent_requirement)
+ assert unequal_type == equivalent_requirement
+ assert unequal_type is not equivalent_requirement
+ assert annotated_int_array_alt is not annotated_int_array
+ assert annotated_int_array_alt.dtype is equivalent_requirement
+
+ # Check the same logic for a pair of C types whose equivalence may vary
+ # between computing environments.
+ # Find an equivalent pair.
+ integer_type_codes = ('i', 'l', 'q')
+ integer_dtypes = [np.dtype(code) for code in integer_type_codes]
+ typeA = None
+ typeB = None
+ for typeA, typeB in permutations(integer_dtypes, r=2):
+ if typeA == typeB:
+ assert typeA is not typeB
+ break
+ assert isinstance(typeA, np.dtype) and isinstance(typeB, np.dtype)
+
+ # These ``asarray()`` calls may produce a new view or a copy,
+ # but never the same object.
+ long_int_array = np.asarray(int_array, dtype='l')
+ long_long_int_array = np.asarray(int_array, dtype='q')
+ assert long_int_array is not int_array
+ assert long_long_int_array is not int_array
+ assert np.asarray(long_int_array, dtype='q') is not long_int_array
+ array_a = np.asarray(int_array, dtype=typeA)
+ assert typeA == typeB
+ assert typeA is not typeB
+ assert array_a.dtype is typeA
+ assert array_a is not np.asarray(array_a, dtype=typeB)
+ assert np.asarray(array_a, dtype=typeB).dtype is typeB
+ assert array_a is np.asarray(array_a, dtype=typeB).base
+
+
+class TestSpecialAttributeLookupFailure:
+ # An exception was raised while fetching the attribute
+
+ class WeirdArrayLike:
+ @property
+ def __array__(self, dtype=None, copy=None): # noqa: PLR0206
+ raise RuntimeError("oops!")
+
+ class WeirdArrayInterface:
+ @property
+ def __array_interface__(self):
+ raise RuntimeError("oops!")
+
+ def test_deprecated(self):
+ with pytest.raises(RuntimeError):
+ np.array(self.WeirdArrayLike())
+ with pytest.raises(RuntimeError):
+ np.array(self.WeirdArrayInterface())
+
+
+def test_subarray_from_array_construction():
+ # Arrays are more complex, since they "broadcast" on success:
+ arr = np.array([1, 2])
+
+ res = arr.astype("2i")
+ assert_array_equal(res, [[1, 1], [2, 2]])
+
+ res = np.array(arr, dtype="(2,)i")
+
+ assert_array_equal(res, [[1, 1], [2, 2]])
+
+ res = np.array([[(1,), (2,)], arr], dtype="2i")
+ assert_array_equal(res, [[[1, 1], [2, 2]], [[1, 1], [2, 2]]])
+
+ # Also try a multi-dimensional example:
+ arr = np.arange(5 * 2).reshape(5, 2)
+ expected = np.broadcast_to(arr[:, :, np.newaxis, np.newaxis], (5, 2, 2, 2))
+
+ res = arr.astype("(2,2)f")
+ assert_array_equal(res, expected)
+
+ res = np.array(arr, dtype="(2,2)f")
+ assert_array_equal(res, expected)
+
+
+def test_empty_string():
+ # Empty strings are unfortunately often converted to S1 and we need to
+ # make sure we are filling the S1 and not the (possibly) detected S0
+ # result. This should likely just return S0 and if not maybe the decision
+ # to return S1 should be moved.
+ res = np.array([""] * 10, dtype="S")
+ assert_array_equal(res, np.array("\0", "S1"))
+ assert res.dtype == "S1"
+
+ arr = np.array([""] * 10, dtype=object)
+
+ res = arr.astype("S")
+ assert_array_equal(res, b"")
+ assert res.dtype == "S1"
+
+ res = np.array(arr, dtype="S")
+ assert_array_equal(res, b"")
+ # TODO: This is arguably weird/wrong, but seems old:
+ assert res.dtype == f"S{np.dtype('O').itemsize}"
+
+ res = np.array([[""] * 10, arr], dtype="S")
+ assert_array_equal(res, b"")
+ assert res.shape == (2, 10)
+ assert res.dtype == "S1"
+
+
+@pytest.mark.parametrize("dtype", ["S", "U", object])
+@pytest.mark.parametrize("res_dt,hug_val",
+ [("float16", "1e30"), ("float32", "1e200")])
+def test_string_to_float_coercion_errors(dtype, res_dt, hug_val):
+ # This test primarly tests setitem
+ val = np.array(["3M"], dtype=dtype)[0] # use the scalar
+
+ with pytest.raises(ValueError):
+ np.array(val, dtype=res_dt)
+
+ val = np.array([hug_val], dtype=dtype)[0] # use the scalar
+
+ with np.errstate(all="warn"):
+ with pytest.warns(RuntimeWarning):
+ np.array(val, dtype=res_dt)
+
+ with np.errstate(all="raise"):
+ with pytest.raises(FloatingPointError):
+ np.array(val, dtype=res_dt)
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/test_array_interface.py b/python/user_packages/Python313/site-packages/numpy/_core/tests/test_array_interface.py
new file mode 100644
index 0000000000000000000000000000000000000000..c8cf748adc7c8e95cd3e69a6bd5f2351c1d96a11
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/tests/test_array_interface.py
@@ -0,0 +1,222 @@
+import sys
+import sysconfig
+
+import pytest
+
+import numpy as np
+from numpy.testing import IS_EDITABLE, IS_WASM, extbuild
+
+
+@pytest.fixture
+def get_module(tmp_path):
+ """ Some codes to generate data and manage temporary buffers use when
+ sharing with numpy via the array interface protocol.
+ """
+ if sys.platform.startswith('cygwin'):
+ pytest.skip('link fails on cygwin')
+ if IS_WASM:
+ pytest.skip("Can't build module inside Wasm")
+ if IS_EDITABLE:
+ pytest.skip("Can't build module for editable install")
+
+ prologue = '''
+ #include
+ #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
+ #include
+ #include
+ #include
+
+ NPY_NO_EXPORT
+ void delete_array_struct(PyObject *cap) {
+
+ /* get the array interface structure */
+ PyArrayInterface *inter = (PyArrayInterface*)
+ PyCapsule_GetPointer(cap, NULL);
+
+ /* get the buffer by which data was shared */
+ double *ptr = (double*)PyCapsule_GetContext(cap);
+
+ /* for the purposes of the regression test set the elements
+ to nan */
+ for (npy_intp i = 0; i < inter->shape[0]; ++i)
+ ptr[i] = nan("");
+
+ /* free the shared buffer */
+ free(ptr);
+
+ /* free the array interface structure */
+ free(inter->shape);
+ free(inter);
+
+ fprintf(stderr, "delete_array_struct\\ncap = %ld inter = %ld"
+ " ptr = %ld\\n", (long)cap, (long)inter, (long)ptr);
+ }
+ '''
+
+ functions = [
+ ("new_array_struct", "METH_VARARGS", """
+
+ long long n_elem = 0;
+ double value = 0.0;
+
+ if (!PyArg_ParseTuple(args, "Ld", &n_elem, &value)) {
+ Py_RETURN_NONE;
+ }
+
+ /* allocate and initialize the data to share with numpy */
+ long long n_bytes = n_elem*sizeof(double);
+ double *data = (double*)malloc(n_bytes);
+
+ if (!data) {
+ PyErr_Format(PyExc_MemoryError,
+ "Failed to malloc %lld bytes", n_bytes);
+
+ Py_RETURN_NONE;
+ }
+
+ for (long long i = 0; i < n_elem; ++i) {
+ data[i] = value;
+ }
+
+ /* calculate the shape and stride */
+ int nd = 1;
+
+ npy_intp *ss = (npy_intp*)malloc(2*nd*sizeof(npy_intp));
+ npy_intp *shape = ss;
+ npy_intp *stride = ss + nd;
+
+ shape[0] = n_elem;
+ stride[0] = sizeof(double);
+
+ /* construct the array interface */
+ PyArrayInterface *inter = (PyArrayInterface*)
+ malloc(sizeof(PyArrayInterface));
+
+ memset(inter, 0, sizeof(PyArrayInterface));
+
+ inter->two = 2;
+ inter->nd = nd;
+ inter->typekind = 'f';
+ inter->itemsize = sizeof(double);
+ inter->shape = shape;
+ inter->strides = stride;
+ inter->data = data;
+ inter->flags = NPY_ARRAY_WRITEABLE | NPY_ARRAY_NOTSWAPPED |
+ NPY_ARRAY_ALIGNED | NPY_ARRAY_C_CONTIGUOUS;
+
+ /* package into a capsule */
+ PyObject *cap = PyCapsule_New(inter, NULL, delete_array_struct);
+
+ /* save the pointer to the data */
+ PyCapsule_SetContext(cap, data);
+
+ fprintf(stderr, "new_array_struct\\ncap = %ld inter = %ld"
+ " ptr = %ld\\n", (long)cap, (long)inter, (long)data);
+
+ return cap;
+ """)
+ ]
+
+ more_init = "import_array();"
+
+ try:
+ import array_interface_testing
+ return array_interface_testing
+ except ImportError:
+ pass
+
+ # if it does not exist, build and load it
+ if sysconfig.get_platform() == "win-arm64":
+ pytest.skip("Meson unable to find MSVC linker on win-arm64")
+ return extbuild.build_and_import_extension('array_interface_testing',
+ functions,
+ prologue=prologue,
+ include_dirs=[np.get_include()],
+ build_dir=tmp_path,
+ more_init=more_init)
+
+
+@pytest.mark.slow
+def test_cstruct(get_module):
+
+ class data_source:
+ """
+ This class is for testing the timing of the PyCapsule destructor
+ invoked when numpy release its reference to the shared data as part of
+ the numpy array interface protocol. If the PyCapsule destructor is
+ called early the shared data is freed and invalid memory accesses will
+ occur.
+ """
+
+ def __init__(self, size, value):
+ self.size = size
+ self.value = value
+
+ @property
+ def __array_struct__(self):
+ return get_module.new_array_struct(self.size, self.value)
+
+ # write to the same stream as the C code
+ stderr = sys.__stderr__
+
+ # used to validate the shared data.
+ expected_value = -3.1415
+ multiplier = -10000.0
+
+ # create some data to share with numpy via the array interface
+ # assign the data an expected value.
+ stderr.write(' ---- create an object to share data ---- \n')
+ buf = data_source(256, expected_value)
+ stderr.write(' ---- OK!\n\n')
+
+ # share the data
+ stderr.write(' ---- share data via the array interface protocol ---- \n')
+ arr = np.array(buf, copy=False)
+ stderr.write(f'arr.__array_interface___ = {str(arr.__array_interface__)}\n')
+ stderr.write(f'arr.base = {str(arr.base)}\n')
+ stderr.write(' ---- OK!\n\n')
+
+ # release the source of the shared data. this will not release the data
+ # that was shared with numpy, that is done in the PyCapsule destructor.
+ stderr.write(' ---- destroy the object that shared data ---- \n')
+ buf = None
+ stderr.write(' ---- OK!\n\n')
+
+ # check that we got the expected data. If the PyCapsule destructor we
+ # defined was prematurely called then this test will fail because our
+ # destructor sets the elements of the array to NaN before free'ing the
+ # buffer. Reading the values here may also cause a SEGV
+ assert np.allclose(arr, expected_value)
+
+ # read the data. If the PyCapsule destructor we defined was prematurely
+ # called then reading the values here may cause a SEGV and will be reported
+ # as invalid reads by valgrind
+ stderr.write(' ---- read shared data ---- \n')
+ stderr.write(f'arr = {str(arr)}\n')
+ stderr.write(' ---- OK!\n\n')
+
+ # write to the shared buffer. If the shared data was prematurely deleted
+ # this will may cause a SEGV and valgrind will report invalid writes
+ stderr.write(' ---- modify shared data ---- \n')
+ arr *= multiplier
+ expected_value *= multiplier
+ stderr.write(f'arr.__array_interface___ = {str(arr.__array_interface__)}\n')
+ stderr.write(f'arr.base = {str(arr.base)}\n')
+ stderr.write(' ---- OK!\n\n')
+
+ # read the data. If the shared data was prematurely deleted this
+ # will may cause a SEGV and valgrind will report invalid reads
+ stderr.write(' ---- read modified shared data ---- \n')
+ stderr.write(f'arr = {str(arr)}\n')
+ stderr.write(' ---- OK!\n\n')
+
+ # check that we got the expected data. If the PyCapsule destructor we
+ # defined was prematurely called then this test will fail because our
+ # destructor sets the elements of the array to NaN before free'ing the
+ # buffer. Reading the values here may also cause a SEGV
+ assert np.allclose(arr, expected_value)
+
+ # free the shared data, the PyCapsule destructor should run here
+ stderr.write(' ---- free shared data ---- \n')
+ arr = None
+ stderr.write(' ---- OK!\n\n')
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/test_arraymethod.py b/python/user_packages/Python313/site-packages/numpy/_core/tests/test_arraymethod.py
new file mode 100644
index 0000000000000000000000000000000000000000..5b78396caa50b65e510c8ff54ec98f8fe7158ad6
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/tests/test_arraymethod.py
@@ -0,0 +1,84 @@
+"""
+This file tests the generic aspects of ArrayMethod. At the time of writing
+this is private API, but when added, public API may be added here.
+"""
+
+import types
+from typing import Any
+
+import pytest
+
+import numpy as np
+from numpy._core._multiarray_umath import _get_castingimpl as get_castingimpl
+
+
+class TestResolveDescriptors:
+ # Test mainly error paths of the resolve_descriptors function,
+ # note that the `casting_unittests` tests exercise this non-error paths.
+
+ # Casting implementations are the main/only current user:
+ method = get_castingimpl(type(np.dtype("d")), type(np.dtype("f")))
+
+ @pytest.mark.parametrize("args", [
+ (True,), # Not a tuple.
+ ((None,)), # Too few elements
+ ((None, None, None),), # Too many
+ ((None, None),), # Input dtype is None, which is invalid.
+ ((np.dtype("d"), True),), # Output dtype is not a dtype
+ ((np.dtype("f"), None),), # Input dtype does not match method
+ ])
+ def test_invalid_arguments(self, args):
+ with pytest.raises(TypeError):
+ self.method._resolve_descriptors(*args)
+
+
+class TestSimpleStridedCall:
+ # Test mainly error paths of the resolve_descriptors function,
+ # note that the `casting_unittests` tests exercise this non-error paths.
+
+ # Casting implementations are the main/only current user:
+ method = get_castingimpl(type(np.dtype("d")), type(np.dtype("f")))
+
+ @pytest.mark.parametrize(["args", "error"], [
+ ((True,), TypeError), # Not a tuple
+ (((None,),), TypeError), # Too few elements
+ ((None, None), TypeError), # Inputs are not arrays.
+ (((None, None, None),), TypeError), # Too many
+ (((np.arange(3), np.arange(3)),), TypeError), # Incorrect dtypes
+ (((np.ones(3, dtype=">d"), np.ones(3, dtype=" None:
+ """Test `ndarray.__class_getitem__`."""
+ alias = cls[Any, Any]
+ assert isinstance(alias, types.GenericAlias)
+ assert alias.__origin__ is cls
+
+ @pytest.mark.parametrize("arg_len", range(4))
+ def test_subscript_tup(self, cls: type[np.ndarray], arg_len: int) -> None:
+ arg_tup = (Any,) * arg_len
+ if arg_len in (1, 2):
+ assert cls[arg_tup]
+ else:
+ match = f"Too {'few' if arg_len == 0 else 'many'} arguments"
+ with pytest.raises(TypeError, match=match):
+ cls[arg_tup]
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/test_arrayobject.py b/python/user_packages/Python313/site-packages/numpy/_core/tests/test_arrayobject.py
new file mode 100644
index 0000000000000000000000000000000000000000..ece842bb47d75adb320642d755d19b65509008fe
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/tests/test_arrayobject.py
@@ -0,0 +1,95 @@
+import sys
+
+import pytest
+
+import numpy as np
+from numpy.testing import HAS_REFCOUNT, assert_array_equal
+
+
+def test_matrix_transpose_raises_error_for_1d():
+ msg = "matrix transpose with ndim < 2 is undefined"
+ arr = np.arange(48)
+ with pytest.raises(ValueError, match=msg):
+ arr.mT
+
+
+def test_matrix_transpose_equals_transpose_2d():
+ arr = np.arange(48).reshape((6, 8))
+ assert_array_equal(arr.T, arr.mT)
+
+
+ARRAY_SHAPES_TO_TEST = (
+ (5, 2),
+ (5, 2, 3),
+ (5, 2, 3, 4),
+)
+
+
+@pytest.mark.parametrize("shape", ARRAY_SHAPES_TO_TEST)
+def test_matrix_transpose_equals_swapaxes(shape):
+ num_of_axes = len(shape)
+ vec = np.arange(shape[-1])
+ arr = np.broadcast_to(vec, shape)
+ tgt = np.swapaxes(arr, num_of_axes - 2, num_of_axes - 1)
+ mT = arr.mT
+ assert_array_equal(tgt, mT)
+
+
+class MyArr(np.ndarray):
+ def __array_wrap__(self, arr, context=None, return_scalar=None):
+ return super().__array_wrap__(arr, context, return_scalar)
+
+
+class MyArrNoWrap(np.ndarray):
+ pass
+
+
+@pytest.mark.parametrize("subclass_self", [np.ndarray, MyArr, MyArrNoWrap])
+@pytest.mark.parametrize("subclass_arr", [np.ndarray, MyArr, MyArrNoWrap])
+def test_array_wrap(subclass_self, subclass_arr):
+ # NumPy should allow `__array_wrap__` to be called on arrays, it's logic
+ # is designed in a way that:
+ #
+ # * Subclasses never return scalars by default (to preserve their
+ # information). They can choose to if they wish.
+ # * NumPy returns scalars, if `return_scalar` is passed as True to allow
+ # manual calls to `arr.__array_wrap__` to do the right thing.
+ # * The type of the input should be ignored (it should be a base-class
+ # array, but I am not sure this is guaranteed).
+
+ arr = np.arange(3).view(subclass_self)
+
+ arr0d = np.array(3, dtype=np.int8).view(subclass_arr)
+ # With third argument True, ndarray allows "decay" to scalar.
+ # (I don't think NumPy would pass `None`, but it seems clear to support)
+ if subclass_self is np.ndarray:
+ assert type(arr.__array_wrap__(arr0d, None, True)) is np.int8
+ else:
+ assert type(arr.__array_wrap__(arr0d, None, True)) is type(arr)
+
+ # Otherwise, result should be viewed as the subclass
+ assert type(arr.__array_wrap__(arr0d)) is type(arr)
+ assert type(arr.__array_wrap__(arr0d, None, None)) is type(arr)
+ assert type(arr.__array_wrap__(arr0d, None, False)) is type(arr)
+
+ # Non 0-D array can't be converted to scalar, so we ignore that
+ arr1d = np.array([3], dtype=np.int8).view(subclass_arr)
+ assert type(arr.__array_wrap__(arr1d, None, True)) is type(arr)
+
+
+@pytest.mark.skipif(not HAS_REFCOUNT, reason="Python lacks refcounts")
+def test_cleanup_with_refs_non_contig():
+ # Regression test, leaked the dtype (but also good for rest)
+ dtype = np.dtype("O,i")
+ obj = object()
+ expected_ref_dtype = sys.getrefcount(dtype)
+ expected_ref_obj = sys.getrefcount(obj)
+ proto = np.full((3, 4, 5, 6, 7), np.array((obj, 2), dtype=dtype))
+ # Give array a non-trivial order to exercise more cleanup paths.
+ arr = proto.transpose((2, 0, 3, 1, 4)).copy("K")
+ del proto, arr
+
+ actual_ref_dtype = sys.getrefcount(dtype)
+ actual_ref_obj = sys.getrefcount(obj)
+ assert actual_ref_dtype == expected_ref_dtype
+ assert actual_ref_obj == actual_ref_dtype
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/test_arrayprint.py b/python/user_packages/Python313/site-packages/numpy/_core/tests/test_arrayprint.py
new file mode 100644
index 0000000000000000000000000000000000000000..adde407a7b1c4052898e7e77d3ea09ac29f41a9b
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/tests/test_arrayprint.py
@@ -0,0 +1,1324 @@
+import gc
+import sys
+import textwrap
+
+import pytest
+from hypothesis import given
+from hypothesis.extra import numpy as hynp
+
+import numpy as np
+from numpy._core.arrayprint import _typelessdata
+from numpy.testing import (
+ HAS_REFCOUNT,
+ IS_WASM,
+ assert_,
+ assert_equal,
+ assert_raises,
+ assert_raises_regex,
+)
+from numpy.testing._private.utils import run_threaded
+
+
+class TestArrayRepr:
+ def test_nan_inf(self):
+ x = np.array([np.nan, np.inf])
+ assert_equal(repr(x), 'array([nan, inf])')
+
+ def test_subclass(self):
+ class sub(np.ndarray):
+ pass
+
+ # one dimensional
+ x1d = np.array([1, 2]).view(sub)
+ assert_equal(repr(x1d), 'sub([1, 2])')
+
+ # two dimensional
+ x2d = np.array([[1, 2], [3, 4]]).view(sub)
+ assert_equal(repr(x2d),
+ 'sub([[1, 2],\n'
+ ' [3, 4]])')
+
+ # two dimensional with flexible dtype
+ xstruct = np.ones((2, 2), dtype=[('a', ' 1)
+ y = sub(None)
+ x[()] = y
+ y[()] = x
+ assert_equal(repr(x),
+ 'sub(sub(sub(..., dtype=object), dtype=object), dtype=object)')
+ assert_equal(str(x), '...')
+ x[()] = 0 # resolve circular references for garbage collector
+
+ # nested 0d-subclass-object
+ x = sub(None)
+ x[()] = sub(None)
+ assert_equal(repr(x), 'sub(sub(None, dtype=object), dtype=object)')
+ assert_equal(str(x), 'None')
+
+ # gh-10663
+ class DuckCounter(np.ndarray):
+ def __getitem__(self, item):
+ result = super().__getitem__(item)
+ if not isinstance(result, DuckCounter):
+ result = result[...].view(DuckCounter)
+ return result
+
+ def to_string(self):
+ return {0: 'zero', 1: 'one', 2: 'two'}.get(self.item(), 'many')
+
+ def __str__(self):
+ if self.shape == ():
+ return self.to_string()
+ else:
+ fmt = {'all': lambda x: x.to_string()}
+ return np.array2string(self, formatter=fmt)
+
+ dc = np.arange(5).view(DuckCounter)
+ assert_equal(str(dc), "[zero one two many many]")
+ assert_equal(str(dc[0]), "zero")
+
+ def test_self_containing(self):
+ arr0d = np.array(None)
+ arr0d[()] = arr0d
+ assert_equal(repr(arr0d),
+ 'array(array(..., dtype=object), dtype=object)')
+ arr0d[()] = 0 # resolve recursion for garbage collector
+
+ arr1d = np.array([None, None])
+ arr1d[1] = arr1d
+ assert_equal(repr(arr1d),
+ 'array([None, array(..., dtype=object)], dtype=object)')
+ arr1d[1] = 0 # resolve recursion for garbage collector
+
+ first = np.array(None)
+ second = np.array(None)
+ first[()] = second
+ second[()] = first
+ assert_equal(repr(first),
+ 'array(array(array(..., dtype=object), dtype=object), dtype=object)')
+ first[()] = 0 # resolve circular references for garbage collector
+
+ def test_containing_list(self):
+ # printing square brackets directly would be ambiguous
+ arr1d = np.array([None, None])
+ arr1d[0] = [1, 2]
+ arr1d[1] = [3]
+ assert_equal(repr(arr1d),
+ 'array([list([1, 2]), list([3])], dtype=object)')
+
+ def test_void_scalar_recursion(self):
+ # gh-9345
+ repr(np.void(b'test')) # RecursionError ?
+
+ def test_fieldless_structured(self):
+ # gh-10366
+ no_fields = np.dtype([])
+ arr_no_fields = np.empty(4, dtype=no_fields)
+ assert_equal(repr(arr_no_fields), 'array([(), (), (), ()], dtype=[])')
+
+
+class TestComplexArray:
+ def test_str(self):
+ rvals = [0, 1, -1, np.inf, -np.inf, np.nan]
+ cvals = [complex(rp, ip) for rp in rvals for ip in rvals]
+ dtypes = [np.complex64, np.cdouble, np.clongdouble]
+ actual = [str(np.array([c], dt)) for c in cvals for dt in dtypes]
+ wanted = [
+ '[0.+0.j]', '[0.+0.j]', '[0.+0.j]',
+ '[0.+1.j]', '[0.+1.j]', '[0.+1.j]',
+ '[0.-1.j]', '[0.-1.j]', '[0.-1.j]',
+ '[0.+infj]', '[0.+infj]', '[0.+infj]',
+ '[0.-infj]', '[0.-infj]', '[0.-infj]',
+ '[0.+nanj]', '[0.+nanj]', '[0.+nanj]',
+ '[1.+0.j]', '[1.+0.j]', '[1.+0.j]',
+ '[1.+1.j]', '[1.+1.j]', '[1.+1.j]',
+ '[1.-1.j]', '[1.-1.j]', '[1.-1.j]',
+ '[1.+infj]', '[1.+infj]', '[1.+infj]',
+ '[1.-infj]', '[1.-infj]', '[1.-infj]',
+ '[1.+nanj]', '[1.+nanj]', '[1.+nanj]',
+ '[-1.+0.j]', '[-1.+0.j]', '[-1.+0.j]',
+ '[-1.+1.j]', '[-1.+1.j]', '[-1.+1.j]',
+ '[-1.-1.j]', '[-1.-1.j]', '[-1.-1.j]',
+ '[-1.+infj]', '[-1.+infj]', '[-1.+infj]',
+ '[-1.-infj]', '[-1.-infj]', '[-1.-infj]',
+ '[-1.+nanj]', '[-1.+nanj]', '[-1.+nanj]',
+ '[inf+0.j]', '[inf+0.j]', '[inf+0.j]',
+ '[inf+1.j]', '[inf+1.j]', '[inf+1.j]',
+ '[inf-1.j]', '[inf-1.j]', '[inf-1.j]',
+ '[inf+infj]', '[inf+infj]', '[inf+infj]',
+ '[inf-infj]', '[inf-infj]', '[inf-infj]',
+ '[inf+nanj]', '[inf+nanj]', '[inf+nanj]',
+ '[-inf+0.j]', '[-inf+0.j]', '[-inf+0.j]',
+ '[-inf+1.j]', '[-inf+1.j]', '[-inf+1.j]',
+ '[-inf-1.j]', '[-inf-1.j]', '[-inf-1.j]',
+ '[-inf+infj]', '[-inf+infj]', '[-inf+infj]',
+ '[-inf-infj]', '[-inf-infj]', '[-inf-infj]',
+ '[-inf+nanj]', '[-inf+nanj]', '[-inf+nanj]',
+ '[nan+0.j]', '[nan+0.j]', '[nan+0.j]',
+ '[nan+1.j]', '[nan+1.j]', '[nan+1.j]',
+ '[nan-1.j]', '[nan-1.j]', '[nan-1.j]',
+ '[nan+infj]', '[nan+infj]', '[nan+infj]',
+ '[nan-infj]', '[nan-infj]', '[nan-infj]',
+ '[nan+nanj]', '[nan+nanj]', '[nan+nanj]']
+
+ for res, val in zip(actual, wanted):
+ assert_equal(res, val)
+
+class TestArray2String:
+ def test_basic(self):
+ """Basic test of array2string."""
+ a = np.arange(3)
+ assert_(np.array2string(a) == '[0 1 2]')
+ assert_(np.array2string(a, max_line_width=4, legacy='1.13') == '[0 1\n 2]')
+ assert_(np.array2string(a, max_line_width=4) == '[0\n 1\n 2]')
+
+ def test_unexpected_kwarg(self):
+ # ensure than an appropriate TypeError
+ # is raised when array2string receives
+ # an unexpected kwarg
+
+ with assert_raises_regex(TypeError, 'nonsense'):
+ np.array2string(np.array([1, 2, 3]),
+ nonsense=None)
+
+ def test_format_function(self):
+ """Test custom format function for each element in array."""
+ def _format_function(x):
+ if np.abs(x) < 1:
+ return '.'
+ elif np.abs(x) < 2:
+ return 'o'
+ else:
+ return 'O'
+
+ x = np.arange(3)
+ x_hex = "[0x0 0x1 0x2]"
+ x_oct = "[0o0 0o1 0o2]"
+ assert_(np.array2string(x, formatter={'all': _format_function}) ==
+ "[. o O]")
+ assert_(np.array2string(x, formatter={'int_kind': _format_function}) ==
+ "[. o O]")
+ assert_(np.array2string(x, formatter={'all': lambda x: f"{x:.4f}"}) ==
+ "[0.0000 1.0000 2.0000]")
+ assert_equal(np.array2string(x, formatter={'int': hex}),
+ x_hex)
+ assert_equal(np.array2string(x, formatter={'int': oct}),
+ x_oct)
+
+ x = np.arange(3.)
+ assert_(np.array2string(x, formatter={'float_kind': lambda x: f"{x:.2f}"}) ==
+ "[0.00 1.00 2.00]")
+ assert_(np.array2string(x, formatter={'float': lambda x: f"{x:.2f}"}) ==
+ "[0.00 1.00 2.00]")
+
+ s = np.array(['abc', 'def'])
+ assert_(np.array2string(s, formatter={'numpystr': lambda s: s * 2}) ==
+ '[abcabc defdef]')
+
+ def test_structure_format_mixed(self):
+ dt = np.dtype([('name', np.str_, 16), ('grades', np.float64, (2,))])
+ x = np.array([('Sarah', (8.0, 7.0)), ('John', (6.0, 7.0))], dtype=dt)
+ assert_equal(np.array2string(x),
+ "[('Sarah', [8., 7.]) ('John', [6., 7.])]")
+
+ np.set_printoptions(legacy='1.13')
+ try:
+ # for issue #5692
+ A = np.zeros(shape=10, dtype=[("A", "M8[s]")])
+ A[5:].fill(np.datetime64('NaT'))
+ assert_equal(
+ np.array2string(A),
+ textwrap.dedent("""\
+ [('1970-01-01T00:00:00',) ('1970-01-01T00:00:00',) ('1970-01-01T00:00:00',)
+ ('1970-01-01T00:00:00',) ('1970-01-01T00:00:00',) ('NaT',) ('NaT',)
+ ('NaT',) ('NaT',) ('NaT',)]""")
+ )
+ finally:
+ np.set_printoptions(legacy=False)
+
+ # same again, but with non-legacy behavior
+ assert_equal(
+ np.array2string(A),
+ textwrap.dedent("""\
+ [('1970-01-01T00:00:00',) ('1970-01-01T00:00:00',)
+ ('1970-01-01T00:00:00',) ('1970-01-01T00:00:00',)
+ ('1970-01-01T00:00:00',) ( 'NaT',)
+ ( 'NaT',) ( 'NaT',)
+ ( 'NaT',) ( 'NaT',)]""")
+ )
+
+ # and again, with timedeltas
+ A = np.full(10, 123456, dtype=[("A", "m8[s]")])
+ A[5:].fill(np.datetime64('NaT'))
+ assert_equal(
+ np.array2string(A),
+ textwrap.dedent("""\
+ [(123456,) (123456,) (123456,) (123456,) (123456,) ( 'NaT',) ( 'NaT',)
+ ( 'NaT',) ( 'NaT',) ( 'NaT',)]""")
+ )
+
+ def test_structure_format_int(self):
+ # See #8160
+ struct_int = np.array([([1, -1],), ([123, 1],)],
+ dtype=[('B', 'i4', 2)])
+ assert_equal(np.array2string(struct_int),
+ "[([ 1, -1],) ([123, 1],)]")
+ struct_2dint = np.array([([[0, 1], [2, 3]],), ([[12, 0], [0, 0]],)],
+ dtype=[('B', 'i4', (2, 2))])
+ assert_equal(np.array2string(struct_2dint),
+ "[([[ 0, 1], [ 2, 3]],) ([[12, 0], [ 0, 0]],)]")
+
+ def test_structure_format_float(self):
+ # See #8172
+ array_scalar = np.array(
+ (1., 2.1234567890123456789, 3.), dtype=('f8,f8,f8'))
+ assert_equal(np.array2string(array_scalar), "(1., 2.12345679, 3.)")
+
+ def test_unstructured_void_repr(self):
+ a = np.array([27, 91, 50, 75, 7, 65, 10, 8, 27, 91, 51, 49, 109, 82, 101, 100],
+ dtype='u1').view('V8')
+ assert_equal(repr(a[0]),
+ r"np.void(b'\x1B\x5B\x32\x4B\x07\x41\x0A\x08')")
+ assert_equal(str(a[0]), r"b'\x1B\x5B\x32\x4B\x07\x41\x0A\x08'")
+ assert_equal(repr(a),
+ r"array([b'\x1B\x5B\x32\x4B\x07\x41\x0A\x08',"
+ "\n"
+ r" b'\x1B\x5B\x33\x31\x6D\x52\x65\x64'], dtype='|V8')")
+
+ assert_equal(eval(repr(a), vars(np)), a)
+ assert_equal(eval(repr(a[0]), {'np': np}), a[0])
+
+ def test_edgeitems_kwarg(self):
+ # previously the global print options would be taken over the kwarg
+ arr = np.zeros(3, int)
+ assert_equal(
+ np.array2string(arr, edgeitems=1, threshold=0),
+ "[0 ... 0]"
+ )
+
+ def test_summarize_1d(self):
+ A = np.arange(1001)
+ strA = '[ 0 1 2 ... 998 999 1000]'
+ assert_equal(str(A), strA)
+
+ reprA = 'array([ 0, 1, 2, ..., 998, 999, 1000])'
+ try:
+ np.set_printoptions(legacy='2.1')
+ assert_equal(repr(A), reprA)
+ finally:
+ np.set_printoptions(legacy=False)
+
+ assert_equal(repr(A), reprA.replace(')', ', shape=(1001,))'))
+
+ def test_summarize_2d(self):
+ A = np.arange(1002).reshape(2, 501)
+ strA = '[[ 0 1 2 ... 498 499 500]\n' \
+ ' [ 501 502 503 ... 999 1000 1001]]'
+ assert_equal(str(A), strA)
+
+ reprA = 'array([[ 0, 1, 2, ..., 498, 499, 500],\n' \
+ ' [ 501, 502, 503, ..., 999, 1000, 1001]])'
+ try:
+ np.set_printoptions(legacy='2.1')
+ assert_equal(repr(A), reprA)
+ finally:
+ np.set_printoptions(legacy=False)
+
+ assert_equal(repr(A), reprA.replace(')', ', shape=(2, 501))'))
+
+ def test_summarize_2d_dtype(self):
+ A = np.arange(1002, dtype='i2').reshape(2, 501)
+ strA = '[[ 0 1 2 ... 498 499 500]\n' \
+ ' [ 501 502 503 ... 999 1000 1001]]'
+ assert_equal(str(A), strA)
+
+ reprA = ('array([[ 0, 1, 2, ..., 498, 499, 500],\n'
+ ' [ 501, 502, 503, ..., 999, 1000, 1001]],\n'
+ ' shape=(2, 501), dtype=int16)')
+ assert_equal(repr(A), reprA)
+
+ def test_summarize_structure(self):
+ A = (np.arange(2002, dtype="i8", (2, 1001))])
+ strB = "[([[1, 1, 1, ..., 1, 1, 1], [1, 1, 1, ..., 1, 1, 1]],)]"
+ assert_equal(str(B), strB)
+
+ reprB = (
+ "array([([[1, 1, 1, ..., 1, 1, 1], [1, 1, 1, ..., 1, 1, 1]],)],\n"
+ " dtype=[('i', '>i8', (2, 1001))])"
+ )
+ assert_equal(repr(B), reprB)
+
+ C = (np.arange(22, dtype=" 1:
+ # if the type is >1 byte, the non-native endian version
+ # must show endianness.
+ assert non_native_repr != native_repr
+ assert f"dtype='{non_native_dtype.byteorder}" in non_native_repr
+
+ def test_linewidth_repr(self):
+ a = np.full(7, fill_value=2)
+ np.set_printoptions(linewidth=17)
+ assert_equal(
+ repr(a),
+ textwrap.dedent("""\
+ array([2, 2, 2,
+ 2, 2, 2,
+ 2])""")
+ )
+ np.set_printoptions(linewidth=17, legacy='1.13')
+ assert_equal(
+ repr(a),
+ textwrap.dedent("""\
+ array([2, 2, 2,
+ 2, 2, 2, 2])""")
+ )
+
+ a = np.full(8, fill_value=2)
+
+ np.set_printoptions(linewidth=18, legacy=False)
+ assert_equal(
+ repr(a),
+ textwrap.dedent("""\
+ array([2, 2, 2,
+ 2, 2, 2,
+ 2, 2])""")
+ )
+
+ np.set_printoptions(linewidth=18, legacy='1.13')
+ assert_equal(
+ repr(a),
+ textwrap.dedent("""\
+ array([2, 2, 2, 2,
+ 2, 2, 2, 2])""")
+ )
+
+ def test_linewidth_str(self):
+ a = np.full(18, fill_value=2)
+ np.set_printoptions(linewidth=18)
+ assert_equal(
+ str(a),
+ textwrap.dedent("""\
+ [2 2 2 2 2 2 2 2
+ 2 2 2 2 2 2 2 2
+ 2 2]""")
+ )
+ np.set_printoptions(linewidth=18, legacy='1.13')
+ assert_equal(
+ str(a),
+ textwrap.dedent("""\
+ [2 2 2 2 2 2 2 2 2
+ 2 2 2 2 2 2 2 2 2]""")
+ )
+
+ def test_edgeitems(self):
+ np.set_printoptions(edgeitems=1, threshold=1)
+ a = np.arange(27).reshape((3, 3, 3))
+ assert_equal(
+ repr(a),
+ textwrap.dedent("""\
+ array([[[ 0, ..., 2],
+ ...,
+ [ 6, ..., 8]],
+
+ ...,
+
+ [[18, ..., 20],
+ ...,
+ [24, ..., 26]]], shape=(3, 3, 3))""")
+ )
+
+ b = np.zeros((3, 3, 1, 1))
+ assert_equal(
+ repr(b),
+ textwrap.dedent("""\
+ array([[[[0.]],
+
+ ...,
+
+ [[0.]]],
+
+
+ ...,
+
+
+ [[[0.]],
+
+ ...,
+
+ [[0.]]]], shape=(3, 3, 1, 1))""")
+ )
+
+ # 1.13 had extra trailing spaces, and was missing newlines
+ try:
+ np.set_printoptions(legacy='1.13')
+ assert_equal(repr(a), (
+ "array([[[ 0, ..., 2],\n"
+ " ..., \n"
+ " [ 6, ..., 8]],\n"
+ "\n"
+ " ..., \n"
+ " [[18, ..., 20],\n"
+ " ..., \n"
+ " [24, ..., 26]]])")
+ )
+ assert_equal(repr(b), (
+ "array([[[[ 0.]],\n"
+ "\n"
+ " ..., \n"
+ " [[ 0.]]],\n"
+ "\n"
+ "\n"
+ " ..., \n"
+ " [[[ 0.]],\n"
+ "\n"
+ " ..., \n"
+ " [[ 0.]]]])")
+ )
+ finally:
+ np.set_printoptions(legacy=False)
+
+ def test_edgeitems_structured(self):
+ np.set_printoptions(edgeitems=1, threshold=1)
+ A = np.arange(5 * 2 * 3, dtype="f4')])"),
+ (np.void(b'a'), r"void(b'\x61')", r"np.void(b'\x61')"),
+ ])
+def test_scalar_repr_special(scalar, legacy_repr, representation):
+ # Test NEP 51 scalar repr (and legacy option) for numeric types
+ assert repr(scalar) == representation
+
+ with np.printoptions(legacy="1.25"):
+ assert repr(scalar) == legacy_repr
+
+def test_scalar_void_float_str():
+ # Note that based on this currently we do not print the same as a tuple
+ # would, since the tuple would include the repr() inside for floats, but
+ # we do not do that.
+ scalar = np.void((1.0, 2.0), dtype=[('f0', 'f4')])
+ assert str(scalar) == "(1.0, 2.0)"
+
+@pytest.mark.skipif(IS_WASM, reason="wasm doesn't support asyncio")
+@pytest.mark.skipif(sys.version_info < (3, 11),
+ reason="asyncio.barrier was added in Python 3.11")
+def test_printoptions_asyncio_safe():
+ asyncio = pytest.importorskip("asyncio")
+
+ b = asyncio.Barrier(2)
+
+ async def legacy_113():
+ np.set_printoptions(legacy='1.13', precision=12)
+ await b.wait()
+ po = np.get_printoptions()
+ assert po['legacy'] == '1.13'
+ assert po['precision'] == 12
+ orig_linewidth = po['linewidth']
+ with np.printoptions(linewidth=34, legacy='1.21'):
+ po = np.get_printoptions()
+ assert po['legacy'] == '1.21'
+ assert po['precision'] == 12
+ assert po['linewidth'] == 34
+ po = np.get_printoptions()
+ assert po['linewidth'] == orig_linewidth
+ assert po['legacy'] == '1.13'
+ assert po['precision'] == 12
+
+ async def legacy_125():
+ np.set_printoptions(legacy='1.25', precision=7)
+ await b.wait()
+ po = np.get_printoptions()
+ assert po['legacy'] == '1.25'
+ assert po['precision'] == 7
+ orig_linewidth = po['linewidth']
+ with np.printoptions(linewidth=6, legacy='1.13'):
+ po = np.get_printoptions()
+ assert po['legacy'] == '1.13'
+ assert po['precision'] == 7
+ assert po['linewidth'] == 6
+ po = np.get_printoptions()
+ assert po['linewidth'] == orig_linewidth
+ assert po['legacy'] == '1.25'
+ assert po['precision'] == 7
+
+ async def main():
+ await asyncio.gather(legacy_125(), legacy_125())
+
+ loop = asyncio.new_event_loop()
+ asyncio.run(main())
+ loop.close()
+
+@pytest.mark.skipif(IS_WASM, reason="wasm doesn't support threads")
+@pytest.mark.thread_unsafe(reason="test is already explicitly multi-threaded")
+def test_multithreaded_array_printing():
+ # the dragon4 implementation uses a static scratch space for performance
+ # reasons this test makes sure it is set up in a thread-safe manner
+
+ run_threaded(TestPrintOptions().test_floatmode, 500)
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/test_casting_floatingpoint_errors.py b/python/user_packages/Python313/site-packages/numpy/_core/tests/test_casting_floatingpoint_errors.py
new file mode 100644
index 0000000000000000000000000000000000000000..8365a7407e2d8552fe717589f5a343b32163334a
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/tests/test_casting_floatingpoint_errors.py
@@ -0,0 +1,154 @@
+import pytest
+from pytest import param
+
+import numpy as np
+from numpy.testing import IS_WASM
+
+
+def values_and_dtypes():
+ """
+ Generate value+dtype pairs that generate floating point errors during
+ casts. The invalid casts to integers will generate "invalid" value
+ warnings, the float casts all generate "overflow".
+
+ (The Python int/float paths don't need to get tested in all the same
+ situations, but it does not hurt.)
+ """
+ # Casting to float16:
+ yield param(70000, "float16", id="int-to-f2")
+ yield param("70000", "float16", id="str-to-f2")
+ yield param(70000.0, "float16", id="float-to-f2")
+ yield param(np.longdouble(70000.), "float16", id="longdouble-to-f2")
+ yield param(np.float64(70000.), "float16", id="double-to-f2")
+ yield param(np.float32(70000.), "float16", id="float-to-f2")
+ # Casting to float32:
+ yield param(10**100, "float32", id="int-to-f4")
+ yield param(1e100, "float32", id="float-to-f2")
+ yield param(np.longdouble(1e300), "float32", id="longdouble-to-f2")
+ yield param(np.float64(1e300), "float32", id="double-to-f2")
+ # Casting to float64:
+ # If longdouble is double-double, its max can be rounded down to the double
+ # max. So we correct the double spacing (a bit weird, admittedly):
+ max_ld = np.finfo(np.longdouble).max
+ spacing = np.spacing(np.nextafter(np.finfo("f8").max, 0))
+ if max_ld - spacing > np.finfo("f8").max:
+ yield param(np.finfo(np.longdouble).max, "float64",
+ id="longdouble-to-f8")
+
+ # Cast to complex32:
+ yield param(2e300, "complex64", id="float-to-c8")
+ yield param(2e300 + 0j, "complex64", id="complex-to-c8")
+ yield param(2e300j, "complex64", id="complex-to-c8")
+ yield param(np.longdouble(2e300), "complex64", id="longdouble-to-c8")
+
+ # Invalid float to integer casts:
+ with np.errstate(over="ignore"):
+ for to_dt in np.typecodes["AllInteger"]:
+ for value in [np.inf, np.nan]:
+ for from_dt in np.typecodes["AllFloat"]:
+ from_dt = np.dtype(from_dt)
+ from_val = from_dt.type(value)
+
+ yield param(from_val, to_dt, id=f"{from_val}-to-{to_dt}")
+
+
+def check_operations(dtype, value):
+ """
+ There are many dedicated paths in NumPy which cast and should check for
+ floating point errors which occurred during those casts.
+ """
+ if dtype.kind != 'i':
+ # These assignments use the stricter setitem logic:
+ def assignment():
+ arr = np.empty(3, dtype=dtype)
+ arr[0] = value
+
+ yield assignment
+
+ def fill():
+ arr = np.empty(3, dtype=dtype)
+ arr.fill(value)
+
+ yield fill
+
+ def copyto_scalar():
+ arr = np.empty(3, dtype=dtype)
+ np.copyto(arr, value, casting="unsafe")
+
+ yield copyto_scalar
+
+ def copyto():
+ arr = np.empty(3, dtype=dtype)
+ np.copyto(arr, np.array([value, value, value]), casting="unsafe")
+
+ yield copyto
+
+ def copyto_scalar_masked():
+ arr = np.empty(3, dtype=dtype)
+ np.copyto(arr, value, casting="unsafe",
+ where=[True, False, True])
+
+ yield copyto_scalar_masked
+
+ def copyto_masked():
+ arr = np.empty(3, dtype=dtype)
+ np.copyto(arr, np.array([value, value, value]), casting="unsafe",
+ where=[True, False, True])
+
+ yield copyto_masked
+
+ def direct_cast():
+ np.array([value, value, value]).astype(dtype)
+
+ yield direct_cast
+
+ def direct_cast_nd_strided():
+ arr = np.full((5, 5, 5), fill_value=value)[:, ::2, :]
+ arr.astype(dtype)
+
+ yield direct_cast_nd_strided
+
+ def boolean_array_assignment():
+ arr = np.empty(3, dtype=dtype)
+ arr[[True, False, True]] = np.array([value, value])
+
+ yield boolean_array_assignment
+
+ def integer_array_assignment():
+ arr = np.empty(3, dtype=dtype)
+ values = np.array([value, value])
+
+ arr[[0, 1]] = values
+
+ yield integer_array_assignment
+
+ def integer_array_assignment_with_subspace():
+ arr = np.empty((5, 3), dtype=dtype)
+ values = np.array([value, value, value])
+
+ arr[[0, 2]] = values
+
+ yield integer_array_assignment_with_subspace
+
+ def flat_assignment():
+ arr = np.empty((3,), dtype=dtype)
+ values = np.array([value, value, value])
+ arr.flat[:] = values
+
+ yield flat_assignment
+
+@pytest.mark.skipif(IS_WASM, reason="no wasm fp exception support")
+@pytest.mark.parametrize(["value", "dtype"], values_and_dtypes())
+@pytest.mark.filterwarnings("ignore::numpy.exceptions.ComplexWarning")
+def test_floatingpoint_errors_casting(dtype, value):
+ dtype = np.dtype(dtype)
+ for operation in check_operations(dtype, value):
+ dtype = np.dtype(dtype)
+
+ match = "invalid" if dtype.kind in 'iu' else "overflow"
+ with pytest.warns(RuntimeWarning, match=match):
+ operation()
+
+ with np.errstate(all="raise"):
+ with pytest.raises(FloatingPointError, match=match):
+ operation()
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/test_casting_unittests.py b/python/user_packages/Python313/site-packages/numpy/_core/tests/test_casting_unittests.py
new file mode 100644
index 0000000000000000000000000000000000000000..f89966e9559740aaf1085b0d78e24a7f2c23cd8a
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/tests/test_casting_unittests.py
@@ -0,0 +1,955 @@
+"""
+The tests exercise the casting machinery in a more low-level manner.
+The reason is mostly to test a new implementation of the casting machinery.
+
+Unlike most tests in NumPy, these are closer to unit-tests rather
+than integration tests.
+"""
+
+import ctypes
+import enum
+import random
+import textwrap
+import warnings
+
+import pytest
+
+import numpy as np
+from numpy._core._multiarray_umath import _get_castingimpl as get_castingimpl
+from numpy.lib.stride_tricks import as_strided
+from numpy.testing import assert_array_equal, assert_equal
+
+# Simple skips object, parametric and long double (unsupported by struct)
+simple_dtypes = "?bhilqBHILQefdFD"
+if np.dtype("l").itemsize != np.dtype("q").itemsize:
+ # Remove l and L, the table was generated with 64bit linux in mind.
+ simple_dtypes = simple_dtypes.replace("l", "").replace("L", "")
+simple_dtypes = [type(np.dtype(c)) for c in simple_dtypes]
+
+
+def simple_dtype_instances():
+ for dtype_class in simple_dtypes:
+ dt = dtype_class()
+ yield pytest.param(dt, id=str(dt))
+ if dt.byteorder != "|":
+ dt = dt.newbyteorder()
+ yield pytest.param(dt, id=str(dt))
+
+
+def get_expected_stringlength(dtype):
+ """Returns the string length when casting the basic dtypes to strings.
+ """
+ if dtype == np.bool:
+ return 5
+ if dtype.kind in "iu":
+ if dtype.itemsize == 1:
+ length = 3
+ elif dtype.itemsize == 2:
+ length = 5
+ elif dtype.itemsize == 4:
+ length = 10
+ elif dtype.itemsize == 8:
+ length = 20
+ else:
+ raise AssertionError(f"did not find expected length for {dtype}")
+
+ if dtype.kind == "i":
+ length += 1 # adds one character for the sign
+
+ return length
+
+ # Note: Can't do dtype comparison for longdouble on windows
+ if dtype.char == "g":
+ return 48
+ elif dtype.char == "G":
+ return 48 * 2
+ elif dtype.kind == "f":
+ return 32 # also for half apparently.
+ elif dtype.kind == "c":
+ return 32 * 2
+
+ raise AssertionError(f"did not find expected length for {dtype}")
+
+
+class Casting(enum.IntEnum):
+ no = 0
+ equiv = 1
+ safe = 2
+ same_kind = 3
+ unsafe = 4
+ same_value = 64
+
+
+same_value_dtypes = tuple(type(np.dtype(c)) for c in "?bhilqBHILQefdgFDG")
+
+def _get_cancast_table():
+ table = textwrap.dedent("""
+ X ? b h i l q B H I L Q e f d g F D G S U V O M m
+ ? # = = = = = = = = = = = = = = = = = = = = = . =
+ b . # = = = = . . . . . = = = = = = = = = = = . =
+ h . ~ # = = = . . . . . ~ = = = = = = = = = = . =
+ i . ~ ~ # = = . . . . . ~ ~ = = ~ = = = = = = . =
+ l . ~ ~ ~ # # . . . . . ~ ~ = = ~ = = = = = = . =
+ q . ~ ~ ~ # # . . . . . ~ ~ = = ~ = = = = = = . =
+ B . ~ = = = = # = = = = = = = = = = = = = = = . =
+ H . ~ ~ = = = ~ # = = = ~ = = = = = = = = = = . =
+ I . ~ ~ ~ = = ~ ~ # = = ~ ~ = = ~ = = = = = = . =
+ L . ~ ~ ~ ~ ~ ~ ~ ~ # # ~ ~ = = ~ = = = = = = . ~
+ Q . ~ ~ ~ ~ ~ ~ ~ ~ # # ~ ~ = = ~ = = = = = = . ~
+ e . . . . . . . . . . . # = = = = = = = = = = . .
+ f . . . . . . . . . . . ~ # = = = = = = = = = . .
+ d . . . . . . . . . . . ~ ~ # = ~ = = = = = = . .
+ g . . . . . . . . . . . ~ ~ ~ # ~ ~ = = = = = . .
+ F . . . . . . . . . . . . . . . # = = = = = = . .
+ D . . . . . . . . . . . . . . . ~ # = = = = = . .
+ G . . . . . . . . . . . . . . . ~ ~ # = = = = . .
+ S . . . . . . . . . . . . . . . . . . # = = = . .
+ U . . . . . . . . . . . . . . . . . . . # = = . .
+ V . . . . . . . . . . . . . . . . . . . . # = . .
+ O . . . . . . . . . . . . . . . . . . . . = # . .
+ M . . . . . . . . . . . . . . . . . . . . = = # .
+ m . . . . . . . . . . . . . . . . . . . . = = . #
+ """).strip().split("\n")
+ dtypes = [type(np.dtype(c)) for c in table[0][2::2]]
+
+ convert_cast = {".": Casting.unsafe, "~": Casting.same_kind,
+ "=": Casting.safe, "#": Casting.equiv,
+ " ": -1}
+
+ cancast = {}
+ for from_dt, row in zip(dtypes, table[1:]):
+ cancast[from_dt] = {}
+ for to_dt, c in zip(dtypes, row[2::2]):
+ cancast[from_dt][to_dt] = convert_cast[c]
+ # Of the types checked, numeric cast support same-value
+ if from_dt in same_value_dtypes and to_dt in same_value_dtypes:
+ cancast[from_dt][to_dt] |= Casting.same_value
+
+ return cancast
+
+
+CAST_TABLE = _get_cancast_table()
+
+
+class TestChanges:
+ """
+ These test cases exercise some behaviour changes
+ """
+ @pytest.mark.parametrize("string", ["S", "U"])
+ @pytest.mark.parametrize("floating", ["e", "f", "d", "g"])
+ def test_float_to_string(self, floating, string):
+ assert np.can_cast(floating, string)
+ # 100 is long enough to hold any formatted floating
+ assert np.can_cast(floating, f"{string}100")
+
+ def test_to_void(self):
+ # But in general, we do consider these safe:
+ assert np.can_cast("d", "V")
+ assert np.can_cast("S20", "V")
+
+ # Do not consider it a safe cast if the void is too smaller:
+ assert not np.can_cast("d", "V1")
+ assert not np.can_cast("S20", "V1")
+ assert not np.can_cast("U1", "V1")
+ # Structured to unstructured is just like any other:
+ assert np.can_cast("d,i", "V", casting="same_kind")
+ # Unstructured void to unstructured is actually no cast at all:
+ assert np.can_cast("V3", "V", casting="no")
+ assert np.can_cast("V0", "V", casting="no")
+
+
+class TestCasting:
+ size = 1500 # Best larger than NPY_LOWLEVEL_BUFFER_BLOCKSIZE * itemsize
+
+ def get_data(self, dtype1, dtype2):
+ if dtype2 is None or dtype1.itemsize >= dtype2.itemsize:
+ length = self.size // dtype1.itemsize
+ else:
+ length = self.size // dtype2.itemsize
+
+ # Assume that the base array is well enough aligned for all inputs.
+ arr1 = np.empty(length, dtype=dtype1)
+ assert arr1.flags.c_contiguous
+ assert arr1.flags.aligned
+
+ values = [random.randrange(-128, 128) for _ in range(length)]
+
+ for i, value in enumerate(values):
+ # Use item assignment to ensure this is not using casting:
+ if value < 0 and dtype1.kind == "u":
+ # Manually rollover unsigned integers (-1 -> int.max)
+ value = value + np.iinfo(dtype1).max + 1
+ arr1[i] = value
+
+ if dtype2 is None:
+ if dtype1.char == "?":
+ values = [bool(v) for v in values]
+ return arr1, values
+
+ if dtype2.char == "?":
+ values = [bool(v) for v in values]
+
+ arr2 = np.empty(length, dtype=dtype2)
+ assert arr2.flags.c_contiguous
+ assert arr2.flags.aligned
+
+ for i, value in enumerate(values):
+ # Use item assignment to ensure this is not using casting:
+ if value < 0 and dtype2.kind == "u":
+ # Manually rollover unsigned integers (-1 -> int.max)
+ value = value + np.iinfo(dtype2).max + 1
+ arr2[i] = value
+
+ return arr1, arr2, values
+
+ def get_data_variation(self, arr1, arr2, aligned=True, contig=True):
+ """
+ Returns a copy of arr1 that may be non-contiguous or unaligned, and a
+ matching array for arr2 (although not a copy).
+ """
+ if contig:
+ stride1 = arr1.dtype.itemsize
+ stride2 = arr2.dtype.itemsize
+ elif aligned:
+ stride1 = 2 * arr1.dtype.itemsize
+ stride2 = 2 * arr2.dtype.itemsize
+ else:
+ stride1 = arr1.dtype.itemsize + 1
+ stride2 = arr2.dtype.itemsize + 1
+
+ max_size1 = len(arr1) * 3 * arr1.dtype.itemsize + 1
+ max_size2 = len(arr2) * 3 * arr2.dtype.itemsize + 1
+ from_bytes = np.zeros(max_size1, dtype=np.uint8)
+ to_bytes = np.zeros(max_size2, dtype=np.uint8)
+
+ # Sanity check that the above is large enough:
+ assert stride1 * len(arr1) <= from_bytes.nbytes
+ assert stride2 * len(arr2) <= to_bytes.nbytes
+
+ if aligned:
+ new1 = as_strided(from_bytes[:-1].view(arr1.dtype),
+ arr1.shape, (stride1,))
+ new2 = as_strided(to_bytes[:-1].view(arr2.dtype),
+ arr2.shape, (stride2,))
+ else:
+ new1 = as_strided(from_bytes[1:].view(arr1.dtype),
+ arr1.shape, (stride1,))
+ new2 = as_strided(to_bytes[1:].view(arr2.dtype),
+ arr2.shape, (stride2,))
+
+ new1[...] = arr1
+
+ if not contig:
+ # Ensure we did not overwrite bytes that should not be written:
+ offset = arr1.dtype.itemsize if aligned else 0
+ buf = from_bytes[offset::stride1].tobytes()
+ assert buf.count(b"\0") == len(buf)
+
+ if contig:
+ assert new1.flags.c_contiguous
+ assert new2.flags.c_contiguous
+ else:
+ assert not new1.flags.c_contiguous
+ assert not new2.flags.c_contiguous
+
+ if aligned:
+ assert new1.flags.aligned
+ assert new2.flags.aligned
+ else:
+ assert not new1.flags.aligned or new1.dtype.alignment == 1
+ assert not new2.flags.aligned or new2.dtype.alignment == 1
+
+ return new1, new2
+
+ @pytest.mark.parametrize("from_Dt", simple_dtypes)
+ def test_simple_cancast(self, from_Dt):
+ for to_Dt in simple_dtypes:
+ cast = get_castingimpl(from_Dt, to_Dt)
+
+ for from_dt in [from_Dt(), from_Dt().newbyteorder()]:
+ default = cast._resolve_descriptors((from_dt, None))[1][1]
+ assert default == to_Dt()
+ del default
+
+ for to_dt in [to_Dt(), to_Dt().newbyteorder()]:
+ casting, (from_res, to_res), view_off = (
+ cast._resolve_descriptors((from_dt, to_dt)))
+ assert type(from_res) == from_Dt
+ assert type(to_res) == to_Dt
+ if view_off is not None:
+ # If a view is acceptable, this is "no" casting
+ # and byte order must be matching.
+ assert casting == Casting.no | Casting.same_value
+ # The above table lists this as "equivalent", perhaps
+ # with "same_value"
+ v = CAST_TABLE[from_Dt][to_Dt] & ~Casting.same_value
+ assert Casting.equiv == v
+ # Note that to_res may not be the same as from_dt
+ assert from_res.isnative == to_res.isnative
+ else:
+ if from_Dt == to_Dt:
+ # Note that to_res may not be the same as from_dt
+ assert from_res.isnative != to_res.isnative
+ assert casting == CAST_TABLE[from_Dt][to_Dt]
+
+ if from_Dt is to_Dt:
+ assert from_dt is from_res
+ assert to_dt is to_res
+
+ @pytest.mark.filterwarnings("ignore::numpy.exceptions.ComplexWarning")
+ @pytest.mark.parametrize("from_dt", simple_dtype_instances())
+ def test_simple_direct_casts(self, from_dt):
+ """
+ This test checks numeric direct casts for dtypes supported also by the
+ struct module (plus complex). It tries to be test a wide range of
+ inputs, but skips over possibly undefined behaviour (e.g. int rollover).
+ Longdouble and CLongdouble are tested, but only using double precision.
+
+ If this test creates issues, it should possibly just be simplified
+ or even removed (checking whether unaligned/non-contiguous casts give
+ the same results is useful, though).
+ """
+ for to_dt in simple_dtype_instances():
+ to_dt = to_dt.values[0]
+ cast = get_castingimpl(type(from_dt), type(to_dt))
+
+ # print("from_dt", from_dt, "to_dt", to_dt)
+ casting, (from_res, to_res), view_off = cast._resolve_descriptors(
+ (from_dt, to_dt))
+
+ if from_res is not from_dt or to_res is not to_dt:
+ # Do not test this case, it is handled in multiple steps,
+ # each of which should is tested individually.
+ return
+
+ safe = casting <= Casting.safe
+ del from_res, to_res, casting
+
+ arr1, arr2, values = self.get_data(from_dt, to_dt)
+
+ # print("2", arr1, arr2, cast)
+ cast._simple_strided_call((arr1, arr2))
+ # print("3")
+
+ # Check via python list
+ assert arr2.tolist() == values
+
+ # Check that the same results are achieved for strided loops
+ arr1_o, arr2_o = self.get_data_variation(arr1, arr2, True, False)
+ cast._simple_strided_call((arr1_o, arr2_o))
+
+ assert_array_equal(arr2_o, arr2)
+ assert arr2_o.tobytes() == arr2.tobytes()
+
+ # Check if alignment makes a difference, but only if supported
+ # and only if the alignment can be wrong
+ if ((from_dt.alignment == 1 and to_dt.alignment == 1) or
+ not cast._supports_unaligned):
+ return
+
+ arr1_o, arr2_o = self.get_data_variation(arr1, arr2, False, True)
+ cast._simple_strided_call((arr1_o, arr2_o))
+
+ assert_array_equal(arr2_o, arr2)
+ assert arr2_o.tobytes() == arr2.tobytes()
+
+ arr1_o, arr2_o = self.get_data_variation(arr1, arr2, False, False)
+ cast._simple_strided_call((arr1_o, arr2_o))
+
+ assert_array_equal(arr2_o, arr2)
+ assert arr2_o.tobytes() == arr2.tobytes()
+
+ del arr1_o, arr2_o, cast
+
+ @pytest.mark.parametrize("from_Dt", simple_dtypes)
+ def test_numeric_to_times(self, from_Dt):
+ # We currently only implement contiguous loops, so only need to
+ # test those.
+ from_dt = from_Dt()
+
+ time_dtypes = [np.dtype("M8"), np.dtype("M8[ms]"), np.dtype("M8[4D]"),
+ np.dtype("m8"), np.dtype("m8[ms]"), np.dtype("m8[4D]")]
+ for time_dt in time_dtypes:
+ cast = get_castingimpl(type(from_dt), type(time_dt))
+
+ casting, (from_res, to_res), view_off = cast._resolve_descriptors(
+ (from_dt, time_dt))
+
+ assert from_res is from_dt
+ assert to_res is time_dt
+ del from_res, to_res
+
+ assert casting & CAST_TABLE[from_Dt][type(time_dt)]
+ assert view_off is None
+
+ int64_dt = np.dtype(np.int64)
+ arr1, arr2, values = self.get_data(from_dt, int64_dt)
+ arr2 = arr2.view(time_dt)
+ arr2[...] = np.datetime64("NaT")
+
+ if time_dt == np.dtype("M8"):
+ # This is a bit of a strange path, and could probably be removed
+ arr1[-1] = 0 # ensure at least one value is not NaT
+
+ # The cast currently succeeds, but the values are invalid:
+ cast._simple_strided_call((arr1, arr2))
+ with pytest.raises(ValueError):
+ str(arr2[-1]) # e.g. conversion to string fails
+ return
+
+ cast._simple_strided_call((arr1, arr2))
+
+ assert [int(v) for v in arr2.tolist()] == values
+
+ # Check that the same results are achieved for strided loops
+ arr1_o, arr2_o = self.get_data_variation(arr1, arr2, True, False)
+ cast._simple_strided_call((arr1_o, arr2_o))
+
+ assert_array_equal(arr2_o, arr2)
+ assert arr2_o.tobytes() == arr2.tobytes()
+
+ @pytest.mark.parametrize(
+ ["from_dt", "to_dt", "expected_casting", "expected_view_off",
+ "nom", "denom"],
+ [("M8[ns]", None, Casting.no, 0, 1, 1),
+ (str(np.dtype("M8[ns]").newbyteorder()), None,
+ Casting.equiv, None, 1, 1),
+ ("M8", "M8[ms]", Casting.safe, 0, 1, 1),
+ # should be invalid cast:
+ ("M8[ms]", "M8", Casting.unsafe, None, 1, 1),
+ ("M8[5ms]", "M8[5ms]", Casting.no, 0, 1, 1),
+ ("M8[ns]", "M8[ms]", Casting.same_kind, None, 1, 10**6),
+ ("M8[ms]", "M8[ns]", Casting.safe, None, 10**6, 1),
+ ("M8[ms]", "M8[7ms]", Casting.same_kind, None, 1, 7),
+ ("M8[4D]", "M8[1M]", Casting.same_kind, None, None,
+ # give full values based on NumPy 1.19.x
+ [-2**63, 0, -1, 1314, -1315, 564442610]),
+ ("m8[ns]", None, Casting.no, 0, 1, 1),
+ (str(np.dtype("m8[ns]").newbyteorder()), None,
+ Casting.equiv, None, 1, 1),
+ ("m8", "m8[ms]", Casting.safe, 0, 1, 1),
+ # should be invalid cast:
+ ("m8[ms]", "m8", Casting.unsafe, None, 1, 1),
+ ("m8[5ms]", "m8[5ms]", Casting.no, 0, 1, 1),
+ ("m8[ns]", "m8[ms]", Casting.same_kind, None, 1, 10**6),
+ ("m8[ms]", "m8[ns]", Casting.safe, None, 10**6, 1),
+ ("m8[ms]", "m8[7ms]", Casting.same_kind, None, 1, 7),
+ ("m8[4D]", "m8[1M]", Casting.unsafe, None, None,
+ # give full values based on NumPy 1.19.x
+ [-2**63, 0, 0, 1314, -1315, 564442610])])
+ def test_time_to_time(self, from_dt, to_dt,
+ expected_casting, expected_view_off,
+ nom, denom):
+ from_dt = np.dtype(from_dt)
+ if to_dt is not None:
+ to_dt = np.dtype(to_dt)
+
+ # Test a few values for casting (results generated with NumPy 1.19)
+ values = np.array([-2**63, 1, 2**63 - 1, 10000, -10000, 2**32])
+ values = values.astype(np.dtype("int64").newbyteorder(from_dt.byteorder))
+ assert values.dtype.byteorder == from_dt.byteorder
+ assert np.isnat(values.view(from_dt)[0])
+
+ DType = type(from_dt)
+ cast = get_castingimpl(DType, DType)
+ casting, (from_res, to_res), view_off = cast._resolve_descriptors(
+ (from_dt, to_dt))
+ assert from_res is from_dt
+ assert to_res is to_dt or to_dt is None
+ assert casting == expected_casting
+ assert view_off == expected_view_off
+
+ if nom is not None:
+ expected_out = (values * nom // denom).view(to_res)
+ expected_out[0] = "NaT"
+ else:
+ expected_out = np.empty_like(values)
+ expected_out[...] = denom
+ expected_out = expected_out.view(to_dt)
+
+ orig_arr = values.view(from_dt)
+ orig_out = np.empty_like(expected_out)
+
+ if casting == Casting.unsafe and (to_dt == "m8" or to_dt == "M8"): # noqa: PLR1714
+ # Casting from non-generic to generic units is an error and should
+ # probably be reported as an invalid cast earlier.
+ with pytest.raises(ValueError):
+ cast._simple_strided_call((orig_arr, orig_out))
+ return
+
+ for aligned in [True, True]:
+ for contig in [True, True]:
+ arr, out = self.get_data_variation(
+ orig_arr, orig_out, aligned, contig)
+ out[...] = 0
+ cast._simple_strided_call((arr, out))
+ assert_array_equal(out.view("int64"), expected_out.view("int64"))
+
+ def string_with_modified_length(self, dtype, change_length):
+ fact = 1 if dtype.char == "S" else 4
+ length = dtype.itemsize // fact + change_length
+ return np.dtype(f"{dtype.byteorder}{dtype.char}{length}")
+
+ @pytest.mark.parametrize("other_DT", simple_dtypes)
+ @pytest.mark.parametrize("string_char", ["S", "U"])
+ def test_string_cancast(self, other_DT, string_char):
+ fact = 1 if string_char == "S" else 4
+
+ string_DT = type(np.dtype(string_char))
+ cast = get_castingimpl(other_DT, string_DT)
+
+ other_dt = other_DT()
+ expected_length = get_expected_stringlength(other_dt)
+ string_dt = np.dtype(f"{string_char}{expected_length}")
+
+ safety, (res_other_dt, res_dt), view_off = cast._resolve_descriptors(
+ (other_dt, None))
+ assert res_dt.itemsize == expected_length * fact
+ assert safety == Casting.safe # we consider to string casts "safe"
+ assert view_off is None
+ assert isinstance(res_dt, string_DT)
+
+ # These casts currently implement changing the string length, so
+ # check the cast-safety for too long/fixed string lengths:
+ for change_length in [-1, 0, 1]:
+ if change_length >= 0:
+ expected_safety = Casting.safe
+ else:
+ expected_safety = Casting.same_kind
+
+ to_dt = self.string_with_modified_length(string_dt, change_length)
+ safety, (_, res_dt), view_off = cast._resolve_descriptors(
+ (other_dt, to_dt))
+ assert res_dt is to_dt
+ assert safety == expected_safety
+ assert view_off is None
+
+ # The opposite direction is always considered unsafe:
+ cast = get_castingimpl(string_DT, other_DT)
+
+ safety, _, view_off = cast._resolve_descriptors((string_dt, other_dt))
+ assert safety == Casting.unsafe
+ assert view_off is None
+
+ cast = get_castingimpl(string_DT, other_DT)
+ safety, (_, res_dt), view_off = cast._resolve_descriptors(
+ (string_dt, None))
+ assert safety == Casting.unsafe
+ assert view_off is None
+ assert other_dt is res_dt # returns the singleton for simple dtypes
+
+ @pytest.mark.parametrize("string_char", ["S", "U"])
+ @pytest.mark.parametrize("other_dt", simple_dtype_instances())
+ def test_simple_string_casts_roundtrip(self, other_dt, string_char):
+ """
+ Tests casts from and to string by checking the roundtripping property.
+
+ The test also covers some string to string casts (but not all).
+
+ If this test creates issues, it should possibly just be simplified
+ or even removed (checking whether unaligned/non-contiguous casts give
+ the same results is useful, though).
+ """
+ string_DT = type(np.dtype(string_char))
+
+ cast = get_castingimpl(type(other_dt), string_DT)
+ cast_back = get_castingimpl(string_DT, type(other_dt))
+ _, (res_other_dt, string_dt), _ = cast._resolve_descriptors(
+ (other_dt, None))
+
+ if res_other_dt is not other_dt:
+ # do not support non-native byteorder, skip test in that case
+ assert other_dt.byteorder != res_other_dt.byteorder
+ return
+
+ orig_arr, values = self.get_data(other_dt, None)
+ str_arr = np.zeros(len(orig_arr), dtype=string_dt)
+ string_dt_short = self.string_with_modified_length(string_dt, -1)
+ str_arr_short = np.zeros(len(orig_arr), dtype=string_dt_short)
+ string_dt_long = self.string_with_modified_length(string_dt, 1)
+ str_arr_long = np.zeros(len(orig_arr), dtype=string_dt_long)
+
+ assert not cast._supports_unaligned # if support is added, should test
+ assert not cast_back._supports_unaligned
+
+ for contig in [True, False]:
+ other_arr, str_arr = self.get_data_variation(
+ orig_arr, str_arr, True, contig)
+ _, str_arr_short = self.get_data_variation(
+ orig_arr, str_arr_short.copy(), True, contig)
+ _, str_arr_long = self.get_data_variation(
+ orig_arr, str_arr_long, True, contig)
+
+ cast._simple_strided_call((other_arr, str_arr))
+
+ cast._simple_strided_call((other_arr, str_arr_short))
+ assert_array_equal(str_arr.astype(string_dt_short), str_arr_short)
+
+ cast._simple_strided_call((other_arr, str_arr_long))
+ assert_array_equal(str_arr, str_arr_long)
+
+ if other_dt.kind == "b":
+ # Booleans do not roundtrip
+ continue
+
+ other_arr[...] = 0
+ cast_back._simple_strided_call((str_arr, other_arr))
+ assert_array_equal(orig_arr, other_arr)
+
+ other_arr[...] = 0
+ cast_back._simple_strided_call((str_arr_long, other_arr))
+ assert_array_equal(orig_arr, other_arr)
+
+ @pytest.mark.parametrize("other_dt", ["S8", "U8"])
+ @pytest.mark.parametrize("string_char", ["S", "U"])
+ def test_string_to_string_cancast(self, other_dt, string_char):
+ other_dt = np.dtype(other_dt)
+
+ fact = 1 if string_char == "S" else 4
+ div = 1 if other_dt.char == "S" else 4
+
+ string_DT = type(np.dtype(string_char))
+ cast = get_castingimpl(type(other_dt), string_DT)
+
+ expected_length = other_dt.itemsize // div
+ string_dt = np.dtype(f"{string_char}{expected_length}")
+
+ safety, (res_other_dt, res_dt), view_off = cast._resolve_descriptors(
+ (other_dt, None))
+ assert res_dt.itemsize == expected_length * fact
+ assert isinstance(res_dt, string_DT)
+
+ expected_view_off = None
+ if other_dt.char == string_char:
+ if other_dt.isnative:
+ expected_safety = Casting.no
+ expected_view_off = 0
+ else:
+ expected_safety = Casting.equiv
+ elif string_char == "U":
+ expected_safety = Casting.safe
+ else:
+ expected_safety = Casting.unsafe
+
+ assert view_off == expected_view_off
+ assert expected_safety == safety
+
+ for change_length in [-1, 0, 1]:
+ to_dt = self.string_with_modified_length(string_dt, change_length)
+ safety, (_, res_dt), view_off = cast._resolve_descriptors(
+ (other_dt, to_dt))
+
+ assert res_dt is to_dt
+ if change_length <= 0:
+ assert view_off == expected_view_off
+ else:
+ assert view_off is None
+ if expected_safety == Casting.unsafe:
+ assert safety == expected_safety
+ elif change_length < 0:
+ assert safety == Casting.same_kind
+ elif change_length == 0:
+ assert safety == expected_safety
+ elif change_length > 0:
+ assert safety == Casting.safe
+
+ @pytest.mark.parametrize("order1", [">", "<"])
+ @pytest.mark.parametrize("order2", [">", "<"])
+ def test_unicode_byteswapped_cast(self, order1, order2):
+ # Very specific tests (not using the castingimpl directly)
+ # that tests unicode bytedwaps including for unaligned array data.
+ dtype1 = np.dtype(f"{order1}U30")
+ dtype2 = np.dtype(f"{order2}U30")
+ data1 = np.empty(30 * 4 + 1, dtype=np.uint8)[1:].view(dtype1)
+ data2 = np.empty(30 * 4 + 1, dtype=np.uint8)[1:].view(dtype2)
+ if dtype1.alignment != 1:
+ # alignment should always be >1, but skip the check if not
+ assert not data1.flags.aligned
+ assert not data2.flags.aligned
+
+ element = "this is a ünicode string‽"
+ data1[()] = element
+ # Test both `data1` and `data1.copy()` (which should be aligned)
+ for data in [data1, data1.copy()]:
+ data2[...] = data1
+ assert data2[()] == element
+ assert data2.copy()[()] == element
+
+ def test_void_to_string_special_case(self):
+ # Cover a small special case in void to string casting that could
+ # probably just as well be turned into an error (compare
+ # `test_object_to_parametric_internal_error` below).
+ assert np.array([], dtype="V5").astype("S").dtype.itemsize == 5
+ assert np.array([], dtype="V5").astype("U").dtype.itemsize == 4 * 5
+
+ def test_object_to_parametric_internal_error(self):
+ # We reject casting from object to a parametric type, without
+ # figuring out the correct instance first.
+ object_dtype = type(np.dtype(object))
+ other_dtype = type(np.dtype(str))
+ cast = get_castingimpl(object_dtype, other_dtype)
+ with pytest.raises(TypeError,
+ match="casting from object to the parametric DType"):
+ cast._resolve_descriptors((np.dtype("O"), None))
+
+ @pytest.mark.parametrize("dtype", simple_dtype_instances())
+ def test_object_and_simple_resolution(self, dtype):
+ # Simple test to exercise the cast when no instance is specified
+ object_dtype = type(np.dtype(object))
+ cast = get_castingimpl(object_dtype, type(dtype))
+
+ safety, (_, res_dt), view_off = cast._resolve_descriptors(
+ (np.dtype("O"), dtype))
+ assert safety == Casting.unsafe
+ assert view_off is None
+ assert res_dt is dtype
+
+ safety, (_, res_dt), view_off = cast._resolve_descriptors(
+ (np.dtype("O"), None))
+ assert safety == Casting.unsafe
+ assert view_off is None
+ assert res_dt == dtype.newbyteorder("=")
+
+ @pytest.mark.parametrize("dtype", simple_dtype_instances())
+ def test_simple_to_object_resolution(self, dtype):
+ # Simple test to exercise the cast when no instance is specified
+ object_dtype = type(np.dtype(object))
+ cast = get_castingimpl(type(dtype), object_dtype)
+
+ safety, (_, res_dt), view_off = cast._resolve_descriptors(
+ (dtype, None))
+ assert safety == Casting.safe
+ assert view_off is None
+ assert res_dt is np.dtype("O")
+
+ @pytest.mark.parametrize("casting", ["no", "unsafe"])
+ def test_void_and_structured_with_subarray(self, casting):
+ # test case corresponding to gh-19325
+ dtype = np.dtype([("foo", " casts may succeed or fail, but a NULL'ed array must
+ # behave the same as one filled with None's.
+ arr_normal = np.array([None] * 5)
+ arr_NULLs = np.empty_like(arr_normal)
+ ctypes.memset(arr_NULLs.ctypes.data, 0, arr_NULLs.nbytes)
+ # If the check fails (maybe it should) the test would lose its purpose:
+ assert arr_NULLs.tobytes() == b"\x00" * arr_NULLs.nbytes
+
+ try:
+ expected = arr_normal.astype(dtype)
+ except TypeError:
+ with pytest.raises(TypeError):
+ arr_NULLs.astype(dtype)
+ else:
+ assert_array_equal(expected, arr_NULLs.astype(dtype))
+
+ @pytest.mark.parametrize("dtype",
+ np.typecodes["AllInteger"] + np.typecodes["AllFloat"])
+ def test_nonstandard_bool_to_other(self, dtype):
+ # simple test for casting bool_ to numeric types, which should not
+ # expose the detail that NumPy bools can sometimes take values other
+ # than 0 and 1. See also gh-19514.
+ nonstandard_bools = np.array([0, 3, -7], dtype=np.int8).view(bool)
+ res = nonstandard_bools.astype(dtype)
+ expected = [0, 1, 1]
+ assert_array_equal(res, expected)
+
+ @pytest.mark.parametrize("to_dtype",
+ np.typecodes["AllInteger"] + np.typecodes["AllFloat"])
+ @pytest.mark.parametrize("from_dtype",
+ np.typecodes["AllInteger"] + np.typecodes["AllFloat"])
+ @pytest.mark.filterwarnings("ignore::numpy.exceptions.ComplexWarning")
+ def test_same_value_overflow(self, from_dtype, to_dtype):
+ if from_dtype == to_dtype:
+ return
+ top1 = 0
+ top2 = 0
+ try:
+ top1 = np.iinfo(from_dtype).max
+ except ValueError:
+ top1 = np.finfo(from_dtype).max
+ try:
+ top2 = np.iinfo(to_dtype).max
+ except ValueError:
+ top2 = np.finfo(to_dtype).max
+ # No need to test if top2 > top1, since the test will also do the
+ # reverse dtype matching. Catch then warning if the comparison warns,
+ # i.e. np.int16(65535) < np.float16(6.55e4)
+ with warnings.catch_warnings(record=True):
+ warnings.simplefilter("always", RuntimeWarning)
+ if top2 >= top1:
+ # will be tested when the dtypes are reversed
+ return
+ # Happy path
+ arr1 = np.array([0] * 10, dtype=from_dtype)
+ arr2 = np.array([0] * 10, dtype=to_dtype)
+ arr1_astype = arr1.astype(to_dtype, casting='same_value')
+ assert_equal(arr1_astype, arr2, strict=True)
+ # Make it overflow, both aligned and unaligned
+ arr1[0] = top1
+ aligned = np.empty(arr1.itemsize * arr1.size + 1, 'uint8')
+ unaligned = aligned[1:].view(arr1.dtype)
+ unaligned[:] = arr1
+ with pytest.raises(ValueError):
+ # Casting float to float with overflow should raise
+ # RuntimeWarning (fperror)
+ # Casting float to int with overflow sometimes raises
+ # RuntimeWarning (fperror)
+ # Casting with overflow and 'same_value', should raise ValueError
+ with warnings.catch_warnings(record=True) as w:
+ warnings.simplefilter("always", RuntimeWarning)
+ arr1.astype(to_dtype, casting='same_value')
+ assert len(w) < 2
+ with pytest.raises(ValueError):
+ # again, unaligned
+ with warnings.catch_warnings(record=True) as w:
+ warnings.simplefilter("always", RuntimeWarning)
+ unaligned.astype(to_dtype, casting='same_value')
+ assert len(w) < 2
+
+ @pytest.mark.parametrize("to_dtype",
+ np.typecodes["AllInteger"])
+ @pytest.mark.parametrize("from_dtype",
+ np.typecodes["AllFloat"])
+ @pytest.mark.filterwarnings("ignore::RuntimeWarning")
+ def test_same_value_float_to_int(self, from_dtype, to_dtype):
+ # Should not raise, since the values can round trip
+ arr1 = np.arange(10, dtype=from_dtype)
+ aligned = np.empty(arr1.itemsize * arr1.size + 1, 'uint8')
+ unaligned = aligned[1:].view(arr1.dtype)
+ unaligned[:] = arr1
+ arr2 = np.arange(10, dtype=to_dtype)
+ assert_array_equal(arr1.astype(to_dtype, casting='same_value'), arr2)
+ assert_array_equal(unaligned.astype(to_dtype, casting='same_value'), arr2)
+
+ # Should raise, since values cannot round trip. Might warn too about
+ # FPE errors
+ arr1_66 = arr1 + 0.666
+ unaligned_66 = unaligned + 0.66
+ with pytest.raises(ValueError):
+ arr1_66.astype(to_dtype, casting='same_value')
+ with pytest.raises(ValueError):
+ unaligned_66.astype(to_dtype, casting='same_value')
+
+ @pytest.mark.parametrize("to_dtype",
+ np.typecodes["AllInteger"])
+ @pytest.mark.parametrize("from_dtype",
+ np.typecodes["AllFloat"])
+ @pytest.mark.filterwarnings("ignore::RuntimeWarning")
+ def test_same_value_float_to_int_scalar(self, from_dtype, to_dtype):
+ # Should not raise, since the values can round trip
+ s1 = np.array(10, dtype=from_dtype)
+ assert s1.astype(to_dtype, casting='same_value') == 10
+
+ # Should raise, since values cannot round trip
+ s1_66 = s1 + 0.666
+ with pytest.raises(ValueError):
+ s1_66.astype(to_dtype, casting='same_value')
+
+ @pytest.mark.parametrize("value", [np.nan, np.inf, -np.inf])
+ @pytest.mark.filterwarnings("ignore::numpy.exceptions.ComplexWarning")
+ @pytest.mark.filterwarnings("ignore::RuntimeWarning")
+ def test_same_value_naninf(self, value):
+ # These work, but may trigger FPE warnings on macOS
+ np.array([value], dtype=np.half).astype(np.cdouble, casting='same_value')
+ np.array([value], dtype=np.half).astype(np.double, casting='same_value')
+ np.array([value], dtype=np.float32).astype(np.cdouble, casting='same_value')
+ np.array([value], dtype=np.float32).astype(np.double, casting='same_value')
+ np.array([value], dtype=np.float32).astype(np.half, casting='same_value')
+ np.array([value], dtype=np.complex64).astype(np.half, casting='same_value')
+ # These fail
+ with pytest.raises(ValueError):
+ np.array([value], dtype=np.half).astype(np.int64, casting='same_value')
+ with pytest.raises(ValueError):
+ np.array([value], dtype=np.complex64).astype(np.int64, casting='same_value')
+ with pytest.raises(ValueError):
+ np.array([value], dtype=np.float32).astype(np.int64, casting='same_value')
+
+ @pytest.mark.filterwarnings("ignore::numpy.exceptions.ComplexWarning")
+ def test_same_value_complex(self):
+ arr = np.array([complex(1, 1)], dtype=np.cdouble)
+ # This works
+ arr.astype(np.complex64, casting='same_value')
+ # Casting with a non-zero imag part fails
+ with pytest.raises(ValueError):
+ arr.astype(np.float32, casting='same_value')
+
+ def test_same_value_scalar(self):
+ i = np.array(123, dtype=np.int64)
+ f = np.array(123, dtype=np.float64)
+ assert i.astype(np.float64, casting='same_value') == f
+ assert f.astype(np.int64, casting='same_value') == f
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/test_conversion_utils.py b/python/user_packages/Python313/site-packages/numpy/_core/tests/test_conversion_utils.py
new file mode 100644
index 0000000000000000000000000000000000000000..a1e61f105da632e1d6697efbe70ff96ebd08486f
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/tests/test_conversion_utils.py
@@ -0,0 +1,209 @@
+"""
+Tests for numpy/_core/src/multiarray/conversion_utils.c
+"""
+import re
+
+import pytest
+
+import numpy._core._multiarray_tests as mt
+from numpy._core.multiarray import CLIP, RAISE, WRAP
+from numpy.testing import assert_raises
+
+
+class StringConverterTestCase:
+ allow_bytes = True
+ case_insensitive = True
+ exact_match = False
+ warn = True
+
+ def _check_value_error(self, val):
+ pattern = fr'\(got {re.escape(repr(val))}\)'
+ with pytest.raises(ValueError, match=pattern) as exc:
+ self.conv(val)
+
+ def _check_conv_assert_warn(self, val, expected):
+ if self.warn:
+ with assert_raises(ValueError) as exc:
+ assert self.conv(val) == expected
+ else:
+ assert self.conv(val) == expected
+
+ def _check(self, val, expected):
+ """Takes valid non-deprecated inputs for converters,
+ runs converters on inputs, checks correctness of outputs,
+ warnings and errors"""
+ assert self.conv(val) == expected
+
+ if self.allow_bytes:
+ assert self.conv(val.encode('ascii')) == expected
+ else:
+ with pytest.raises(TypeError):
+ self.conv(val.encode('ascii'))
+
+ if len(val) != 1:
+ if self.exact_match:
+ self._check_value_error(val[:1])
+ self._check_value_error(val + '\0')
+ else:
+ self._check_conv_assert_warn(val[:1], expected)
+
+ if self.case_insensitive:
+ if val != val.lower():
+ self._check_conv_assert_warn(val.lower(), expected)
+ if val != val.upper():
+ self._check_conv_assert_warn(val.upper(), expected)
+ else:
+ if val != val.lower():
+ self._check_value_error(val.lower())
+ if val != val.upper():
+ self._check_value_error(val.upper())
+
+ def test_wrong_type(self):
+ # common cases which apply to all the below
+ with pytest.raises(TypeError):
+ self.conv({})
+ with pytest.raises(TypeError):
+ self.conv([])
+
+ def test_wrong_value(self):
+ # nonsense strings
+ self._check_value_error('')
+ self._check_value_error('\N{greek small letter pi}')
+
+ if self.allow_bytes:
+ self._check_value_error(b'')
+ # bytes which can't be converted to strings via utf8
+ self._check_value_error(b"\xFF")
+ if self.exact_match:
+ self._check_value_error("there's no way this is supported")
+
+
+class TestByteorderConverter(StringConverterTestCase):
+ """ Tests of PyArray_ByteorderConverter """
+ conv = mt.run_byteorder_converter
+ warn = False
+
+ def test_valid(self):
+ for s in ['big', '>']:
+ self._check(s, 'NPY_BIG')
+ for s in ['little', '<']:
+ self._check(s, 'NPY_LITTLE')
+ for s in ['native', '=']:
+ self._check(s, 'NPY_NATIVE')
+ for s in ['ignore', '|']:
+ self._check(s, 'NPY_IGNORE')
+ for s in ['swap']:
+ self._check(s, 'NPY_SWAP')
+
+
+class TestSortkindConverter(StringConverterTestCase):
+ """ Tests of PyArray_SortkindConverter """
+ conv = mt.run_sortkind_converter
+ warn = False
+
+ def test_valid(self):
+ self._check('quicksort', 'NPY_QUICKSORT')
+ self._check('heapsort', 'NPY_HEAPSORT')
+ self._check('mergesort', 'NPY_STABLESORT') # alias
+ self._check('stable', 'NPY_STABLESORT')
+
+
+class TestSelectkindConverter(StringConverterTestCase):
+ """ Tests of PyArray_SelectkindConverter """
+ conv = mt.run_selectkind_converter
+ case_insensitive = False
+ exact_match = True
+
+ def test_valid(self):
+ self._check('introselect', 'NPY_INTROSELECT')
+
+
+class TestSearchsideConverter(StringConverterTestCase):
+ """ Tests of PyArray_SearchsideConverter """
+ conv = mt.run_searchside_converter
+
+ def test_valid(self):
+ self._check('left', 'NPY_SEARCHLEFT')
+ self._check('right', 'NPY_SEARCHRIGHT')
+
+
+class TestOrderConverter(StringConverterTestCase):
+ """ Tests of PyArray_OrderConverter """
+ conv = mt.run_order_converter
+ warn = False
+
+ def test_valid(self):
+ self._check('c', 'NPY_CORDER')
+ self._check('f', 'NPY_FORTRANORDER')
+ self._check('a', 'NPY_ANYORDER')
+ self._check('k', 'NPY_KEEPORDER')
+
+ def test_flatten_invalid_order(self):
+ # invalid after gh-14596
+ with pytest.raises(ValueError):
+ self.conv('Z')
+ for order in [False, True, 0, 8]:
+ with pytest.raises(TypeError):
+ self.conv(order)
+
+
+class TestClipmodeConverter(StringConverterTestCase):
+ """ Tests of PyArray_ClipmodeConverter """
+ conv = mt.run_clipmode_converter
+
+ def test_valid(self):
+ self._check('clip', 'NPY_CLIP')
+ self._check('wrap', 'NPY_WRAP')
+ self._check('raise', 'NPY_RAISE')
+
+ # integer values allowed here
+ assert self.conv(CLIP) == 'NPY_CLIP'
+ assert self.conv(WRAP) == 'NPY_WRAP'
+ assert self.conv(RAISE) == 'NPY_RAISE'
+
+
+class TestCastingConverter(StringConverterTestCase):
+ """ Tests of PyArray_CastingConverter """
+ conv = mt.run_casting_converter
+ case_insensitive = False
+ exact_match = True
+
+ def test_valid(self):
+ self._check("no", "NPY_NO_CASTING")
+ self._check("equiv", "NPY_EQUIV_CASTING")
+ self._check("safe", "NPY_SAFE_CASTING")
+ self._check("unsafe", "NPY_UNSAFE_CASTING")
+ self._check("same_kind", "NPY_SAME_KIND_CASTING")
+
+ def test_invalid(self):
+ # Currently, 'same_value' is supported only in ndarray.astype
+ self._check_value_error("same_value")
+
+class TestIntpConverter:
+ """ Tests of PyArray_IntpConverter """
+ conv = mt.run_intp_converter
+
+ def test_basic(self):
+ assert self.conv(1) == (1,)
+ assert self.conv((1, 2)) == (1, 2)
+ assert self.conv([1, 2]) == (1, 2)
+ assert self.conv(()) == ()
+
+ def test_none(self):
+ with pytest.raises(TypeError):
+ assert self.conv(None) == ()
+
+ def test_float(self):
+ with pytest.raises(TypeError):
+ self.conv(1.0)
+ with pytest.raises(TypeError):
+ self.conv([1, 1.0])
+
+ def test_too_large(self):
+ with pytest.raises(ValueError):
+ self.conv(2**64)
+
+ def test_too_many_dims(self):
+ assert self.conv([1] * 64) == (1,) * 64
+ with pytest.raises(ValueError):
+ self.conv([1] * 65)
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/test_cpu_dispatcher.py b/python/user_packages/Python313/site-packages/numpy/_core/tests/test_cpu_dispatcher.py
new file mode 100644
index 0000000000000000000000000000000000000000..ce96d450b4b332301758d54b57753965248f74a6
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/tests/test_cpu_dispatcher.py
@@ -0,0 +1,48 @@
+from numpy._core import _umath_tests
+from numpy._core._multiarray_umath import (
+ __cpu_baseline__,
+ __cpu_dispatch__,
+ __cpu_features__,
+)
+from numpy.testing import assert_equal
+
+
+def test_dispatcher():
+ """
+ Testing the utilities of the CPU dispatcher
+ """
+ targets = (
+ "X86_V2", "X86_V3",
+ "VSX", "VSX2", "VSX3",
+ "NEON", "ASIMD", "ASIMDHP",
+ "VX", "VXE", "LSX", "RVV"
+ )
+ highest_sfx = "" # no suffix for the baseline
+ all_sfx = []
+ for feature in reversed(targets):
+ # skip baseline features, by the default `CCompilerOpt` do not generate separated objects
+ # for the baseline, just one object combined all of them via 'baseline' option
+ # within the configuration statements.
+ if feature in __cpu_baseline__:
+ continue
+ # check compiler and running machine support
+ if feature not in __cpu_dispatch__ or not __cpu_features__[feature]:
+ continue
+
+ if not highest_sfx:
+ highest_sfx = "_" + feature
+ all_sfx.append("func" + "_" + feature)
+
+ test = _umath_tests.test_dispatch()
+ assert_equal(test["func"], "func" + highest_sfx)
+ assert_equal(test["var"], "var" + highest_sfx)
+
+ if highest_sfx:
+ assert_equal(test["func_xb"], "func" + highest_sfx)
+ assert_equal(test["var_xb"], "var" + highest_sfx)
+ else:
+ assert_equal(test["func_xb"], "nobase")
+ assert_equal(test["var_xb"], "nobase")
+
+ all_sfx.append("func") # add the baseline
+ assert_equal(test["all"], all_sfx)
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/test_cpu_features.py b/python/user_packages/Python313/site-packages/numpy/_core/tests/test_cpu_features.py
new file mode 100644
index 0000000000000000000000000000000000000000..8222d8b88a262b2d636515aff2d51bcfcb465869
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/tests/test_cpu_features.py
@@ -0,0 +1,482 @@
+import os
+import pathlib
+import platform
+import re
+import subprocess
+import sys
+
+import pytest
+
+from numpy._core._multiarray_umath import (
+ __cpu_baseline__,
+ __cpu_dispatch__,
+ __cpu_features__,
+)
+
+
+def assert_features_equal(actual, desired, fname):
+ __tracebackhide__ = True # Hide traceback for py.test
+ actual, desired = str(actual), str(desired)
+ if actual == desired:
+ return
+ detected = str(__cpu_features__).replace("'", "")
+ try:
+ with open("/proc/cpuinfo") as fd:
+ cpuinfo = fd.read(2048)
+ except Exception as err:
+ cpuinfo = str(err)
+
+ try:
+ import subprocess
+ auxv = subprocess.check_output(['/bin/true'], env={"LD_SHOW_AUXV": "1"})
+ auxv = auxv.decode()
+ except Exception as err:
+ auxv = str(err)
+
+ import textwrap
+ error_report = textwrap.indent(
+f"""
+###########################################
+### Extra debugging information
+###########################################
+-------------------------------------------
+--- NumPy Detections
+-------------------------------------------
+{detected}
+-------------------------------------------
+--- SYS / CPUINFO
+-------------------------------------------
+{cpuinfo}....
+-------------------------------------------
+--- SYS / AUXV
+-------------------------------------------
+{auxv}
+""", prefix='\r')
+
+ raise AssertionError((
+ "Failure Detection\n"
+ " NAME: '%s'\n"
+ " ACTUAL: %s\n"
+ " DESIRED: %s\n"
+ "%s"
+ ) % (fname, actual, desired, error_report))
+
+def _text_to_list(txt):
+ out = txt.strip("][\n").replace("'", "").split(', ')
+ return None if out[0] == "" else out
+
+class AbstractTest:
+ features = []
+ features_groups = {}
+ features_map = {}
+ features_flags = set()
+
+ def load_flags(self):
+ # a hook
+ pass
+
+ def test_features(self):
+ self.load_flags()
+ for gname, features in self.features_groups.items():
+ test_features = [self.cpu_have(f) for f in features]
+ assert_features_equal(__cpu_features__.get(gname), all(test_features), gname)
+
+ for feature_name in self.features:
+ cpu_have = self.cpu_have(feature_name)
+ npy_have = __cpu_features__.get(feature_name)
+ assert_features_equal(npy_have, cpu_have, feature_name)
+
+ def cpu_have(self, feature_name):
+ map_names = self.features_map.get(feature_name, feature_name)
+ if isinstance(map_names, str):
+ return map_names in self.features_flags
+ return any(f in self.features_flags for f in map_names)
+
+ def load_flags_cpuinfo(self, magic_key):
+ self.features_flags = self.get_cpuinfo_item(magic_key)
+
+ def get_cpuinfo_item(self, magic_key):
+ values = set()
+ with open('/proc/cpuinfo') as fd:
+ for line in fd:
+ if not line.startswith(magic_key):
+ continue
+ flags_value = [s.strip() for s in line.split(':', 1)]
+ if len(flags_value) == 2:
+ values = values.union(flags_value[1].upper().split())
+ return values
+
+ def load_flags_auxv(self):
+ auxv = subprocess.check_output(['/bin/true'], env={"LD_SHOW_AUXV": "1"})
+ for at in auxv.split(b'\n'):
+ if not at.startswith(b"AT_HWCAP"):
+ continue
+ hwcap_value = [s.strip() for s in at.split(b':', 1)]
+ if len(hwcap_value) == 2:
+ self.features_flags = self.features_flags.union(
+ hwcap_value[1].upper().decode().split()
+ )
+
+@pytest.mark.skipif(
+ sys.platform == 'emscripten',
+ reason=(
+ "The subprocess module is not available on WASM platforms and"
+ " therefore this test class cannot be properly executed."
+ ),
+)
+@pytest.mark.thread_unsafe(reason="setup & tmp_path_factory threads-unsafe, modifies environment variables")
+class TestEnvPrivation:
+ cwd = pathlib.Path(__file__).parent.resolve()
+ env = os.environ.copy()
+ _enable = os.environ.pop('NPY_ENABLE_CPU_FEATURES', None)
+ _disable = os.environ.pop('NPY_DISABLE_CPU_FEATURES', None)
+ SUBPROCESS_ARGS = {"cwd": cwd, "capture_output": True, "text": True, "check": True}
+ unavailable_feats = [
+ feat for feat in __cpu_dispatch__ if not __cpu_features__[feat]
+ ]
+ UNAVAILABLE_FEAT = (
+ None if len(unavailable_feats) == 0
+ else unavailable_feats[0]
+ )
+ BASELINE_FEAT = None if len(__cpu_baseline__) == 0 else __cpu_baseline__[0]
+ SCRIPT = """
+def main():
+ from numpy._core._multiarray_umath import (
+ __cpu_features__,
+ __cpu_dispatch__
+ )
+
+ detected = [feat for feat in __cpu_dispatch__ if __cpu_features__[feat]]
+ print(detected)
+
+if __name__ == "__main__":
+ main()
+ """
+
+ @pytest.fixture(autouse=True)
+ def setup_class(self, tmp_path_factory):
+ file = tmp_path_factory.mktemp("runtime_test_script")
+ file /= "_runtime_detect.py"
+ file.write_text(self.SCRIPT)
+ self.file = file
+
+ def _run(self):
+ return subprocess.run(
+ [sys.executable, self.file],
+ env=self.env,
+ **self.SUBPROCESS_ARGS,
+ )
+
+ # Helper function mimicking pytest.raises for subprocess call
+ def _expect_error(
+ self,
+ msg,
+ err_type,
+ no_error_msg="Failed to generate error"
+ ):
+ try:
+ self._run()
+ except subprocess.CalledProcessError as e:
+ assertion_message = f"Expected: {msg}\nGot: {e.stderr}"
+ assert re.search(msg, e.stderr), assertion_message
+
+ assertion_message = (
+ f"Expected error of type: {err_type}; see full "
+ f"error:\n{e.stderr}"
+ )
+ assert re.search(err_type, e.stderr), assertion_message
+ else:
+ assert False, no_error_msg
+
+ def setup_method(self):
+ """Ensure that the environment is reset"""
+ self.env = os.environ.copy()
+
+ def test_runtime_feature_selection(self):
+ """
+ Ensure that when selecting `NPY_ENABLE_CPU_FEATURES`, only the
+ features exactly specified are dispatched.
+ """
+
+ # Capture runtime-enabled features
+ out = self._run()
+ non_baseline_features = _text_to_list(out.stdout)
+
+ if non_baseline_features is None:
+ pytest.skip(
+ "No dispatchable features outside of baseline detected."
+ )
+ feature = non_baseline_features[0]
+
+ # Capture runtime-enabled features when `NPY_ENABLE_CPU_FEATURES` is
+ # specified
+ self.env['NPY_ENABLE_CPU_FEATURES'] = feature
+ out = self._run()
+ enabled_features = _text_to_list(out.stdout)
+
+ # Ensure that only one feature is enabled, and it is exactly the one
+ # specified by `NPY_ENABLE_CPU_FEATURES`
+ assert set(enabled_features) == {feature}
+
+ if len(non_baseline_features) < 2:
+ pytest.skip("Only one non-baseline feature detected.")
+ # Capture runtime-enabled features when `NPY_ENABLE_CPU_FEATURES` is
+ # specified
+ self.env['NPY_ENABLE_CPU_FEATURES'] = ",".join(non_baseline_features)
+ out = self._run()
+ enabled_features = _text_to_list(out.stdout)
+
+ # Ensure that both features are enabled, and they are exactly the ones
+ # specified by `NPY_ENABLE_CPU_FEATURES`
+ assert set(enabled_features) == set(non_baseline_features)
+
+ @pytest.mark.parametrize("enabled, disabled",
+ [
+ ("feature", "feature"),
+ ("feature", "same"),
+ ])
+ def test_both_enable_disable_set(self, enabled, disabled):
+ """
+ Ensure that when both environment variables are set then an
+ ImportError is thrown
+ """
+ self.env['NPY_ENABLE_CPU_FEATURES'] = enabled
+ self.env['NPY_DISABLE_CPU_FEATURES'] = disabled
+ msg = "Both NPY_DISABLE_CPU_FEATURES and NPY_ENABLE_CPU_FEATURES"
+ err_type = "ImportError"
+ self._expect_error(msg, err_type)
+
+ @pytest.mark.skipif(
+ not __cpu_dispatch__,
+ reason=(
+ "NPY_*_CPU_FEATURES only parsed if "
+ "`__cpu_dispatch__` is non-empty"
+ )
+ )
+ @pytest.mark.parametrize("action", ["ENABLE", "DISABLE"])
+ def test_variable_too_long(self, action):
+ """
+ Test that an error is thrown if the environment variables are too long
+ to be processed. Current limit is 1024, but this may change later.
+ """
+ MAX_VAR_LENGTH = 1024
+ # Actual length is MAX_VAR_LENGTH + 1 due to null-termination
+ self.env[f'NPY_{action}_CPU_FEATURES'] = "t" * MAX_VAR_LENGTH
+ msg = (
+ f"Length of environment variable 'NPY_{action}_CPU_FEATURES' is "
+ f"{MAX_VAR_LENGTH + 1}, only {MAX_VAR_LENGTH} accepted"
+ )
+ err_type = "RuntimeError"
+ self._expect_error(msg, err_type)
+
+ @pytest.mark.skipif(
+ not __cpu_dispatch__,
+ reason=(
+ "NPY_*_CPU_FEATURES only parsed if "
+ "`__cpu_dispatch__` is non-empty"
+ )
+ )
+ def test_impossible_feature_disable(self):
+ """
+ Test that a RuntimeError is thrown if an impossible feature-disabling
+ request is made. This includes disabling a baseline feature.
+ """
+
+ if self.BASELINE_FEAT is None:
+ pytest.skip("There are no unavailable features to test with")
+ bad_feature = self.BASELINE_FEAT
+ self.env['NPY_DISABLE_CPU_FEATURES'] = bad_feature
+ msg = (
+ f"You cannot disable CPU feature '{bad_feature}', since it is "
+ "part of the baseline optimizations"
+ )
+ err_type = "RuntimeError"
+ self._expect_error(msg, err_type)
+
+ def test_impossible_feature_enable(self):
+ """
+ Test that a RuntimeError is thrown if an impossible feature-enabling
+ request is made. This includes enabling a feature not supported by the
+ machine, or disabling a baseline optimization.
+ """
+
+ if self.UNAVAILABLE_FEAT is None:
+ pytest.skip("There are no unavailable features to test with")
+ bad_feature = self.UNAVAILABLE_FEAT
+ self.env['NPY_ENABLE_CPU_FEATURES'] = bad_feature
+ msg = (
+ f"You cannot enable CPU features \\({bad_feature}\\), since "
+ "they are not supported by your machine."
+ )
+ err_type = "RuntimeError"
+ self._expect_error(msg, err_type)
+
+ # Ensure that it fails even when providing garbage in addition
+ feats = f"{bad_feature}, Foobar"
+ self.env['NPY_ENABLE_CPU_FEATURES'] = feats
+ msg = (
+ f"You cannot enable CPU features \\({bad_feature}\\), since they "
+ "are not supported by your machine."
+ )
+ self._expect_error(msg, err_type)
+
+ if self.BASELINE_FEAT is not None:
+ # Ensure that only the bad feature gets reported
+ feats = f"{bad_feature}, {self.BASELINE_FEAT}"
+ self.env['NPY_ENABLE_CPU_FEATURES'] = feats
+ msg = (
+ f"You cannot enable CPU features \\({bad_feature}\\), since "
+ "they are not supported by your machine."
+ )
+ self._expect_error(msg, err_type)
+
+
+is_linux = sys.platform.startswith('linux')
+is_cygwin = sys.platform.startswith('cygwin')
+machine = platform.machine()
+is_x86 = re.match(r"^(amd64|x86|i386|i686)", machine, re.IGNORECASE)
+@pytest.mark.skipif(
+ not (is_linux or is_cygwin) or not is_x86, reason="Only for Linux and x86"
+)
+class Test_X86_Features(AbstractTest):
+ features = []
+
+ features_groups = {
+ "X86_V2": [
+ "SSE", "SSE2", "SSE3", "SSSE3", "SSE41", "SSE42",
+ "POPCNT", "LAHF", "CX16"
+ ],
+ }
+ features_groups["X86_V3"] = features_groups["X86_V2"] + [
+ "AVX", "AVX2", "FMA3", "BMI", "BMI2",
+ "LZCNT", "F16C", "MOVBE"
+ ]
+ features_groups["X86_V4"] = features_groups["X86_V3"] + [
+ "AVX512F", "AVX512CD", "AVX512BW", "AVX512DQ", "AVX512VL"
+ ]
+ features_groups["AVX512_ICL"] = features_groups["X86_V4"] + [
+ "AVX512IFMA", "AVX512VBMI", "AVX512VNNI",
+ "AVX512VBMI2", "AVX512BITALG", "AVX512VPOPCNTDQ",
+ "VAES", "VPCLMULQDQ", "GFNI"
+ ]
+ features_groups["AVX512_SPR"] = features_groups["AVX512_ICL"] + ["AVX512FP16", "AVX512BF16"]
+
+ features_map = {
+ "SSE3": "PNI", "SSE41": "SSE4_1", "SSE42": "SSE4_2", "FMA3": "FMA",
+ "BMI": "BMI1", "LZCNT": "ABM", "LAHF": "LAHF_LM",
+ "AVX512VNNI": "AVX512_VNNI", "AVX512BITALG": "AVX512_BITALG",
+ "AVX512VBMI2": "AVX512_VBMI2", "AVX5124FMAPS": "AVX512_4FMAPS",
+ "AVX5124VNNIW": "AVX512_4VNNIW", "AVX512VPOPCNTDQ": "AVX512_VPOPCNTDQ",
+ "AVX512FP16": "AVX512_FP16", "AVX512BF16": "AVX512_BF16"
+ }
+
+ def load_flags(self):
+ self.load_flags_cpuinfo("flags")
+
+
+is_power = re.match(r"^(powerpc|ppc)64", machine, re.IGNORECASE)
+@pytest.mark.skipif(not is_linux or not is_power, reason="Only for Linux and Power")
+class Test_POWER_Features(AbstractTest):
+ features = ["VSX", "VSX2", "VSX3", "VSX4"]
+ features_map = {
+ "VSX": "ARCH_2_06",
+ "VSX2": "ARCH_2_07",
+ "VSX3": "ARCH_3_00",
+ "VSX4": "ARCH_3_1B"
+ }
+
+ def load_flags(self):
+ self.load_flags_auxv()
+ platform = self._get_platform()
+
+ if platform:
+ power_match = re.search(r'power(\d+)', platform, re.IGNORECASE)
+ if power_match:
+ power_gen = int(power_match.group(1))
+ if power_gen >= 7:
+ self.features_flags.add("ARCH_2_06")
+ if power_gen >= 8:
+ self.features_flags.add("ARCH_2_07")
+ if power_gen >= 9:
+ self.features_flags.add("ARCH_3_00")
+ if power_gen >= 10:
+ self.features_flags.add("ARCH_3_1B")
+
+ def _get_platform(self):
+ """Get the AT_PLATFORM value from AUXV"""
+ try:
+ auxv = subprocess.check_output(['/bin/true'], env={"LD_SHOW_AUXV": "1"})
+ for line in auxv.split(b'\n'):
+ if line.startswith(b'AT_PLATFORM'):
+ parts = line.split(b':', 1)
+ if len(parts) == 2:
+ return parts[1].strip().decode().lower()
+ except Exception:
+ pass
+ return None
+
+
+is_zarch = re.match(r"^(s390x)", machine, re.IGNORECASE)
+@pytest.mark.skipif(not is_linux or not is_zarch,
+ reason="Only for Linux and IBM Z")
+class Test_ZARCH_Features(AbstractTest):
+ features = ["VX", "VXE", "VXE2"]
+
+ def load_flags(self):
+ self.load_flags_auxv()
+
+
+is_arm = re.match(r"^(arm|aarch64)", machine, re.IGNORECASE)
+@pytest.mark.skipif(not is_linux or not is_arm, reason="Only for Linux and ARM")
+class Test_ARM_Features(AbstractTest):
+ features = [
+ "SVE", "NEON", "ASIMD", "FPHP", "ASIMDHP", "ASIMDDP", "ASIMDFHM"
+ ]
+ features_groups = {
+ "NEON_FP16": ["NEON", "HALF"],
+ "NEON_VFPV4": ["NEON", "VFPV4"],
+ }
+
+ def load_flags(self):
+ self.load_flags_cpuinfo("Features")
+ arch = self.get_cpuinfo_item("CPU architecture")
+ # in case of mounting virtual filesystem of aarch64 kernel without linux32
+ is_rootfs_v8 = (
+ not re.match(r"^armv[0-9]+l$", machine) and
+ (int('0' + next(iter(arch))) > 7 if arch else 0)
+ )
+ if re.match(r"^(aarch64|AARCH64)", machine) or is_rootfs_v8:
+ self.features_map = {
+ "NEON": "ASIMD", "HALF": "ASIMD", "VFPV4": "ASIMD"
+ }
+ else:
+ self.features_map = {
+ # ELF auxiliary vector and /proc/cpuinfo on Linux kernel(armv8 aarch32)
+ # doesn't provide information about ASIMD, so we assume that ASIMD is supported
+ # if the kernel reports any one of the following ARM8 features.
+ "ASIMD": ("AES", "SHA1", "SHA2", "PMULL", "CRC32")
+ }
+
+
+is_loongarch = re.match(r"^(loongarch)", machine, re.IGNORECASE)
+@pytest.mark.skipif(not is_linux or not is_loongarch, reason="Only for Linux and LoongArch")
+class Test_LOONGARCH_Features(AbstractTest):
+ features = ["LSX"]
+
+ def load_flags(self):
+ self.load_flags_cpuinfo("Features")
+
+
+is_riscv = re.match(r"^(riscv)", machine, re.IGNORECASE)
+@pytest.mark.skipif(not is_linux or not is_riscv, reason="Only for Linux and RISC-V")
+class Test_RISCV_Features(AbstractTest):
+ features = ["RVV"]
+
+ def load_flags(self):
+ self.load_flags_auxv()
+ if not self.features_flags:
+ # Let the test fail and dump if we cannot read HWCAP.
+ return
+ hwcap = int(next(iter(self.features_flags)), 16)
+ if hwcap & (1 << 21): # HWCAP_RISCV_V
+ self.features_flags.add("RVV")
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/test_custom_dtypes.py b/python/user_packages/Python313/site-packages/numpy/_core/tests/test_custom_dtypes.py
new file mode 100644
index 0000000000000000000000000000000000000000..9fe370c621f81a22765e0ecbb52c298950f84a44
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/tests/test_custom_dtypes.py
@@ -0,0 +1,393 @@
+from tempfile import NamedTemporaryFile
+
+import pytest
+
+import numpy as np
+from numpy._core._multiarray_umath import (
+ _discover_array_parameters as discover_array_params,
+ _get_sfloat_dtype,
+)
+from numpy.testing import assert_array_equal
+
+SF = _get_sfloat_dtype()
+
+
+class TestSFloat:
+ def _get_array(self, scaling, aligned=True):
+ if not aligned:
+ a = np.empty(3 * 8 + 1, dtype=np.uint8)[1:]
+ a = a.view(np.float64)
+ a[:] = [1., 2., 3.]
+ else:
+ a = np.array([1., 2., 3.])
+
+ a *= 1. / scaling # the casting code also uses the reciprocal.
+ return a.view(SF(scaling))
+
+ def test_sfloat_rescaled(self):
+ sf = SF(1.)
+ sf2 = sf.scaled_by(2.)
+ assert sf2.get_scaling() == 2.
+ sf6 = sf2.scaled_by(3.)
+ assert sf6.get_scaling() == 6.
+
+ def test_class_discovery(self):
+ # This does not test much, since we always discover the scaling as 1.
+ # But most of NumPy (when writing) does not understand DType classes
+ dt, _ = discover_array_params([1., 2., 3.], dtype=SF)
+ assert dt == SF(1.)
+
+ @pytest.mark.parametrize("scaling", [1., -1., 2.])
+ def test_scaled_float_from_floats(self, scaling):
+ a = np.array([1., 2., 3.], dtype=SF(scaling))
+
+ assert a.dtype.get_scaling() == scaling
+ assert_array_equal(scaling * a.view(np.float64), [1., 2., 3.])
+
+ def test_repr(self):
+ # Check the repr, mainly to cover the code paths:
+ assert repr(SF(scaling=1.)) == "_ScaledFloatTestDType(scaling=1.0)"
+
+ def test_dtype_str(self):
+ assert SF(1.).str == "_ScaledFloatTestDType(scaling=1.0)"
+
+ def test_dtype_name(self):
+ assert SF(1.).name == "_ScaledFloatTestDType64"
+
+ def test_sfloat_structured_dtype_printing(self):
+ dt = np.dtype([("id", int), ("value", SF(0.5))])
+ # repr of structured dtypes need special handling because the
+ # implementation bypasses the object repr
+ assert "('value', '_ScaledFloatTestDType64')" in repr(dt)
+
+ @pytest.mark.parametrize("scaling", [1., -1., 2.])
+ def test_sfloat_from_float(self, scaling):
+ a = np.array([1., 2., 3.]).astype(dtype=SF(scaling))
+
+ assert a.dtype.get_scaling() == scaling
+ assert_array_equal(scaling * a.view(np.float64), [1., 2., 3.])
+
+ @pytest.mark.parametrize("aligned", [True, False])
+ @pytest.mark.parametrize("scaling", [1., -1., 2.])
+ def test_sfloat_getitem(self, aligned, scaling):
+ a = self._get_array(1., aligned)
+ assert a.tolist() == [1., 2., 3.]
+
+ @pytest.mark.parametrize("aligned", [True, False])
+ def test_sfloat_casts(self, aligned):
+ a = self._get_array(1., aligned)
+
+ assert np.can_cast(a, SF(-1.), casting="equiv")
+ assert not np.can_cast(a, SF(-1.), casting="no")
+ na = a.astype(SF(-1.))
+ assert_array_equal(-1 * na.view(np.float64), a.view(np.float64))
+
+ assert np.can_cast(a, SF(2.), casting="same_kind")
+ assert not np.can_cast(a, SF(2.), casting="safe")
+ a2 = a.astype(SF(2.))
+ assert_array_equal(2 * a2.view(np.float64), a.view(np.float64))
+
+ @pytest.mark.parametrize("aligned", [True, False])
+ def test_sfloat_cast_internal_errors(self, aligned):
+ a = self._get_array(2e300, aligned)
+
+ with pytest.raises(TypeError,
+ match="error raised inside the core-loop: non-finite factor!"):
+ a.astype(SF(2e-300))
+
+ def test_sfloat_promotion(self):
+ assert np.result_type(SF(2.), SF(3.)) == SF(3.)
+ assert np.result_type(SF(3.), SF(2.)) == SF(3.)
+ # Float64 -> SF(1.) and then promotes normally, so both of this work:
+ assert np.result_type(SF(3.), np.float64) == SF(3.)
+ assert np.result_type(np.float64, SF(0.5)) == SF(1.)
+
+ # Test an undefined promotion:
+ with pytest.raises(TypeError):
+ np.result_type(SF(1.), np.int64)
+
+ def test_basic_multiply(self):
+ a = self._get_array(2.)
+ b = self._get_array(4.)
+
+ res = a * b
+ # multiplies dtype scaling and content separately:
+ assert res.dtype.get_scaling() == 8.
+ expected_view = a.view(np.float64) * b.view(np.float64)
+ assert_array_equal(res.view(np.float64), expected_view)
+
+ def test_possible_and_impossible_reduce(self):
+ # For reductions to work, the first and last operand must have the
+ # same dtype. For this parametric DType that is not necessarily true.
+ a = self._get_array(2.)
+ # Addition reduction works (as of writing requires to pass initial
+ # because setting a scaled-float from the default `0` fails).
+ res = np.add.reduce(a, initial=0.)
+ assert res == a.astype(np.float64).sum()
+
+ # But each multiplication changes the factor, so a reduction is not
+ # possible (the relaxed version of the old refusal to handle any
+ # flexible dtype).
+ with pytest.raises(TypeError,
+ match="the resolved dtypes are not compatible"):
+ np.multiply.reduce(a)
+
+ def test_basic_ufunc_at(self):
+ float_a = np.array([1., 2., 3.])
+ b = self._get_array(2.)
+
+ float_b = b.view(np.float64).copy()
+ np.multiply.at(float_b, [1, 1, 1], float_a)
+ np.multiply.at(b, [1, 1, 1], float_a)
+
+ assert_array_equal(b.view(np.float64), float_b)
+
+ def test_basic_multiply_promotion(self):
+ float_a = np.array([1., 2., 3.])
+ b = self._get_array(2.)
+
+ res1 = float_a * b
+ res2 = b * float_a
+
+ # one factor is one, so we get the factor of b:
+ assert res1.dtype == res2.dtype == b.dtype
+ expected_view = float_a * b.view(np.float64)
+ assert_array_equal(res1.view(np.float64), expected_view)
+ assert_array_equal(res2.view(np.float64), expected_view)
+
+ # Check that promotion works when `out` is used:
+ np.multiply(b, float_a, out=res2)
+ with pytest.raises(TypeError):
+ # The promoter accepts this (maybe it should not), but the SFloat
+ # result cannot be cast to integer:
+ np.multiply(b, float_a, out=np.arange(3))
+
+ def test_basic_addition(self):
+ a = self._get_array(2.)
+ b = self._get_array(4.)
+
+ res = a + b
+ # addition uses the type promotion rules for the result:
+ assert res.dtype == np.result_type(a.dtype, b.dtype)
+ expected_view = (a.astype(res.dtype).view(np.float64) +
+ b.astype(res.dtype).view(np.float64))
+ assert_array_equal(res.view(np.float64), expected_view)
+
+ def test_addition_cast_safety(self):
+ """The addition method is special for the scaled float, because it
+ includes the "cast" between different factors, thus cast-safety
+ is influenced by the implementation.
+ """
+ a = self._get_array(2.)
+ b = self._get_array(-2.)
+ c = self._get_array(3.)
+
+ # sign change is "equiv":
+ np.add(a, b, casting="equiv")
+ with pytest.raises(TypeError):
+ np.add(a, b, casting="no")
+
+ # Different factor is "same_kind" (default) so check that "safe" fails
+ with pytest.raises(TypeError):
+ np.add(a, c, casting="safe")
+
+ # Check that casting the output fails also (done by the ufunc here)
+ with pytest.raises(TypeError):
+ np.add(a, a, out=c, casting="safe")
+
+ @pytest.mark.parametrize("ufunc",
+ [np.logical_and, np.logical_or, np.logical_xor])
+ def test_logical_ufuncs_casts_to_bool(self, ufunc):
+ a = self._get_array(2.)
+ a[0] = 0. # make sure first element is considered False.
+
+ float_equiv = a.astype(float)
+ expected = ufunc(float_equiv, float_equiv)
+ res = ufunc(a, a)
+ assert_array_equal(res, expected)
+
+ # also check that the same works for reductions:
+ expected = ufunc.reduce(float_equiv)
+ res = ufunc.reduce(a)
+ assert_array_equal(res, expected)
+
+ # The output casting does not match the bool, bool -> bool loop:
+ with pytest.raises(TypeError):
+ ufunc(a, a, out=np.empty(a.shape, dtype=int), casting="equiv")
+
+ def test_wrapped_and_wrapped_reductions(self):
+ a = self._get_array(2.)
+ float_equiv = a.astype(float)
+
+ expected = np.hypot(float_equiv, float_equiv)
+ res = np.hypot(a, a)
+ assert res.dtype == a.dtype
+ res_float = res.view(np.float64) * 2
+ assert_array_equal(res_float, expected)
+
+ # Also check reduction (keepdims, due to incorrect getitem)
+ res = np.hypot.reduce(a, keepdims=True)
+ assert res.dtype == a.dtype
+ expected = np.hypot.reduce(float_equiv, keepdims=True)
+ assert res.view(np.float64) * 2 == expected
+
+ def test_sort(self):
+ a = self._get_array(1.)
+ a = a[::-1] # reverse it
+
+ a.sort()
+ assert_array_equal(a.view(np.float64), [1., 2., 3.])
+
+ a = self._get_array(1.)
+ a = a[::-1] # reverse it
+
+ sorted_a = np.sort(a)
+ assert_array_equal(sorted_a.view(np.float64), [1., 2., 3.])
+ # original is unchanged
+ assert_array_equal(a.view(np.float64), [3., 2., 1.])
+
+ a = self._get_array(0.5) # different factor
+ a = a[::2][::-1] # non-contiguous
+ sorted_a = np.sort(a)
+ assert_array_equal(sorted_a.view(np.float64), [2., 6.])
+ # original is unchanged
+ assert_array_equal(a.view(np.float64), [6., 2.])
+
+ a = self._get_array(0.5, aligned=False)
+ a = a[::-1] # reverse it
+ sorted_a = np.sort(a)
+ assert_array_equal(sorted_a.view(np.float64), [2., 4., 6.])
+ # original is unchanged
+ assert_array_equal(a.view(np.float64), [6., 4., 2.])
+
+ sorted_a = np.sort(a, stable=True)
+ assert_array_equal(sorted_a.view(np.float64), [2., 4., 6.])
+ # original is unchanged
+ assert_array_equal(a.view(np.float64), [6., 4., 2.])
+
+ sorted_a = np.sort(a, stable=False)
+ assert_array_equal(sorted_a.view(np.float64), [2., 4., 6.])
+ # original is unchanged
+ assert_array_equal(a.view(np.float64), [6., 4., 2.])
+
+ def test_argsort(self):
+ a = self._get_array(1.)
+ a = a[::-1] # reverse it
+
+ indices = np.argsort(a)
+ assert_array_equal(indices, [2, 1, 0])
+ # original is unchanged
+ assert_array_equal(a.view(np.float64), [3., 2., 1.])
+
+ a = self._get_array(0.5)
+ a = a[::2][::-1] # reverse it
+ indices = np.argsort(a)
+ assert_array_equal(indices, [1, 0])
+ # original is unchanged
+ assert_array_equal(a.view(np.float64), [6., 2.])
+
+ a = self._get_array(0.5, aligned=False)
+ a = a[::-1] # reverse it
+ indices = np.argsort(a)
+ assert_array_equal(indices, [2, 1, 0])
+ # original is unchanged
+ assert_array_equal(a.view(np.float64), [6., 4., 2.])
+
+ sorted_indices = np.argsort(a, stable=True)
+ assert_array_equal(sorted_indices, [2, 1, 0])
+ # original is unchanged
+ assert_array_equal(a.view(np.float64), [6., 4., 2.])
+
+ sorted_indices = np.argsort(a, stable=False)
+ assert_array_equal(sorted_indices, [2, 1, 0])
+ # original is unchanged
+ assert_array_equal(a.view(np.float64), [6., 4., 2.])
+
+ def test_astype_class(self):
+ # Very simple test that we accept `.astype()` also on the class.
+ # ScaledFloat always returns the default descriptor, but it does
+ # check the relevant code paths.
+ arr = np.array([1., 2., 3.], dtype=object)
+
+ res = arr.astype(SF) # passing the class class
+ expected = arr.astype(SF(1.)) # above will have discovered 1. scaling
+ assert_array_equal(res.view(np.float64), expected.view(np.float64))
+
+ def test_creation_class(self):
+ # passing in a dtype class should return
+ # the default descriptor
+ arr1 = np.array([1., 2., 3.], dtype=SF)
+ assert arr1.dtype == SF(1.)
+ arr2 = np.array([1., 2., 3.], dtype=SF(1.))
+ assert_array_equal(arr1.view(np.float64), arr2.view(np.float64))
+ assert arr1.dtype == arr2.dtype
+
+ assert np.empty(3, dtype=SF).dtype == SF(1.)
+ assert np.empty_like(arr1, dtype=SF).dtype == SF(1.)
+ assert np.zeros(3, dtype=SF).dtype == SF(1.)
+ assert np.zeros_like(arr1, dtype=SF).dtype == SF(1.)
+
+ @pytest.mark.thread_unsafe(
+ reason="_ScaledFloatTestDType setup is thread-unsafe (gh-29850)"
+ )
+ def test_np_save_load(self):
+ # this monkeypatch is needed because pickle
+ # uses the repr of a type to reconstruct it
+ np._ScaledFloatTestDType = SF
+
+ arr = np.array([1.0, 2.0, 3.0], dtype=SF(1.0))
+
+ # adapted from RoundtripTest.roundtrip in np.save tests
+ with NamedTemporaryFile("wb", delete=False, suffix=".npz") as f:
+ with pytest.warns(UserWarning) as record:
+ np.savez(f.name, arr)
+
+ assert len(record) == 1
+
+ with np.load(f.name, allow_pickle=True) as data:
+ larr = data["arr_0"]
+ assert_array_equal(arr.view(np.float64), larr.view(np.float64))
+ assert larr.dtype == arr.dtype == SF(1.0)
+
+ del np._ScaledFloatTestDType
+
+ def test_flatiter(self):
+ arr = np.array([1.0, 2.0, 3.0], dtype=SF(1.0))
+
+ for i, val in enumerate(arr.flat):
+ assert arr[i] == val
+
+ @pytest.mark.parametrize(
+ "index", [
+ [1, 2], ..., slice(None, 2, None),
+ np.array([True, True, False]), np.array([0, 1])
+ ], ids=["int_list", "ellipsis", "slice", "bool_array", "int_array"])
+ def test_flatiter_index(self, index):
+ arr = np.array([1.0, 2.0, 3.0], dtype=SF(1.0))
+ np.testing.assert_array_equal(
+ arr[index].view(np.float64), arr.flat[index].view(np.float64))
+
+ arr2 = arr.copy()
+ arr[index] = 5.0
+ arr2.flat[index] = 5.0
+ np.testing.assert_array_equal(
+ arr.view(np.float64), arr2.view(np.float64))
+
+@pytest.mark.thread_unsafe(
+ reason="_ScaledFloatTestDType setup is thread-unsafe (gh-29850)"
+)
+def test_type_pickle():
+ # can't actually unpickle, but we can pickle (if in namespace)
+ import pickle
+
+ np._ScaledFloatTestDType = SF
+
+ s = pickle.dumps(SF)
+ res = pickle.loads(s)
+ assert res is SF
+
+ del np._ScaledFloatTestDType
+
+
+def test_is_numeric():
+ assert SF._is_numeric
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/test_cython.py b/python/user_packages/Python313/site-packages/numpy/_core/tests/test_cython.py
new file mode 100644
index 0000000000000000000000000000000000000000..e595fe463ec6d066fa23c1047865ee1a5d9804b6
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/tests/test_cython.py
@@ -0,0 +1,367 @@
+import os
+import subprocess
+import sys
+import sysconfig
+from datetime import datetime
+
+import pytest
+
+import numpy as np
+from numpy.testing import IS_EDITABLE, IS_WASM, assert_array_equal
+
+# This import is copied from random.tests.test_extending
+try:
+ import cython
+ from Cython.Compiler.Version import version as cython_version
+except ImportError:
+ cython = None
+else:
+ from numpy._utils import _pep440
+
+ # Note: keep in sync with the one in pyproject.toml
+ required_version = "3.0.6"
+ if _pep440.parse(cython_version) < _pep440.Version(required_version):
+ # too old or wrong cython, skip the test
+ cython = None
+
+pytestmark = pytest.mark.skipif(cython is None, reason="requires cython")
+
+
+if IS_EDITABLE:
+ pytest.skip(
+ "Editable install doesn't support tests with a compile step",
+ allow_module_level=True
+ )
+
+
+@pytest.fixture(scope='module')
+def install_temp(tmpdir_factory):
+ # Based in part on test_cython from random.tests.test_extending
+ if IS_WASM:
+ pytest.skip("No subprocess")
+
+ srcdir = os.path.join(os.path.dirname(__file__), 'examples', 'cython')
+ build_dir = tmpdir_factory.mktemp("cython_test") / "build"
+ os.makedirs(build_dir, exist_ok=True)
+ # Ensure we use the correct Python interpreter even when `meson` is
+ # installed in a different Python environment (see gh-24956)
+ native_file = str(build_dir / 'interpreter-native-file.ini')
+ with open(native_file, 'w') as f:
+ f.write("[binaries]\n")
+ f.write(f"python = '{sys.executable}'\n")
+ f.write(f"python3 = '{sys.executable}'")
+
+ try:
+ subprocess.check_call(["meson", "--version"])
+ except FileNotFoundError:
+ pytest.skip("No usable 'meson' found")
+ if sysconfig.get_platform() == "win-arm64":
+ pytest.skip("Meson unable to find MSVC linker on win-arm64")
+ if sys.platform == "win32":
+ subprocess.check_call(["meson", "setup",
+ "--buildtype=release",
+ "--vsenv", "--native-file", native_file,
+ str(srcdir)],
+ cwd=build_dir,
+ )
+ else:
+ subprocess.check_call(["meson", "setup",
+ "--native-file", native_file, str(srcdir)],
+ cwd=build_dir
+ )
+ try:
+ subprocess.check_call(["meson", "compile", "-vv"], cwd=build_dir)
+ except subprocess.CalledProcessError:
+ print("----------------")
+ print("meson build failed when doing")
+ print(f"'meson setup --native-file {native_file} {srcdir}'")
+ print("'meson compile -vv'")
+ print(f"in {build_dir}")
+ print("----------------")
+ raise
+
+ sys.path.append(str(build_dir))
+
+
+def test_is_timedelta64_object(install_temp):
+ import checks
+
+ assert checks.is_td64(np.timedelta64(1234))
+ assert checks.is_td64(np.timedelta64(1234, "ns"))
+ assert checks.is_td64(np.timedelta64("NaT", "ns"))
+
+ assert not checks.is_td64(1)
+ assert not checks.is_td64(None)
+ assert not checks.is_td64("foo")
+ assert not checks.is_td64(np.datetime64("now", "s"))
+
+
+def test_is_datetime64_object(install_temp):
+ import checks
+
+ assert checks.is_dt64(np.datetime64(1234, "ns"))
+ assert checks.is_dt64(np.datetime64("NaT", "ns"))
+
+ assert not checks.is_dt64(1)
+ assert not checks.is_dt64(None)
+ assert not checks.is_dt64("foo")
+ assert not checks.is_dt64(np.timedelta64(1234))
+
+
+def test_get_datetime64_value(install_temp):
+ import checks
+
+ dt64 = np.datetime64("2016-01-01", "ns")
+
+ result = checks.get_dt64_value(dt64)
+ expected = dt64.view("i8")
+
+ assert result == expected
+
+
+def test_get_timedelta64_value(install_temp):
+ import checks
+
+ td64 = np.timedelta64(12345, "h")
+
+ result = checks.get_td64_value(td64)
+ expected = td64.view("i8")
+
+ assert result == expected
+
+
+def test_get_datetime64_unit(install_temp):
+ import checks
+
+ dt64 = np.datetime64("2016-01-01", "ns")
+ result = checks.get_dt64_unit(dt64)
+ expected = 10
+ assert result == expected
+
+ td64 = np.timedelta64(12345, "h")
+ result = checks.get_dt64_unit(td64)
+ expected = 5
+ assert result == expected
+
+
+def test_abstract_scalars(install_temp):
+ import checks
+
+ assert checks.is_integer(1)
+ assert checks.is_integer(np.int8(1))
+ assert checks.is_integer(np.uint64(1))
+
+def test_default_int(install_temp):
+ import checks
+
+ assert checks.get_default_integer() is np.dtype(int)
+
+
+def test_ravel_axis(install_temp):
+ import checks
+
+ assert checks.get_ravel_axis() == np.iinfo("intc").min
+
+
+def test_convert_datetime64_to_datetimestruct(install_temp):
+ # GH#21199
+ import checks
+
+ res = checks.convert_datetime64_to_datetimestruct()
+
+ exp = {
+ "year": 2022,
+ "month": 3,
+ "day": 15,
+ "hour": 20,
+ "min": 1,
+ "sec": 55,
+ "us": 260292,
+ "ps": 0,
+ "as": 0,
+ }
+
+ assert res == exp
+
+
+class TestDatetimeStrings:
+ def test_make_iso_8601_datetime(self, install_temp):
+ # GH#21199
+ import checks
+ dt = datetime(2016, 6, 2, 10, 45, 19)
+ # uses NPY_FR_s
+ result = checks.make_iso_8601_datetime(dt)
+ assert result == b"2016-06-02T10:45:19"
+
+ def test_get_datetime_iso_8601_strlen(self, install_temp):
+ # GH#21199
+ import checks
+ # uses NPY_FR_ns
+ res = checks.get_datetime_iso_8601_strlen()
+ assert res == 48
+
+
+@pytest.mark.parametrize(
+ "arrays",
+ [
+ [np.random.rand(2)],
+ [np.random.rand(2), np.random.rand(3, 1)],
+ [np.random.rand(2), np.random.rand(2, 3, 2), np.random.rand(1, 3, 2)],
+ [np.random.rand(2, 1)] * 4 + [np.random.rand(1, 1, 1)],
+ ]
+)
+def test_multiiter_fields(install_temp, arrays):
+ import checks
+ bcast = np.broadcast(*arrays)
+
+ assert bcast.ndim == checks.get_multiiter_number_of_dims(bcast)
+ assert bcast.size == checks.get_multiiter_size(bcast)
+ assert bcast.numiter == checks.get_multiiter_num_of_iterators(bcast)
+ assert bcast.shape == checks.get_multiiter_shape(bcast)
+ assert bcast.index == checks.get_multiiter_current_index(bcast)
+ assert all(
+ x.base is y.base
+ for x, y in zip(bcast.iters, checks.get_multiiter_iters(bcast))
+ )
+
+
+def test_dtype_flags(install_temp):
+ import checks
+ dtype = np.dtype("i,O") # dtype with somewhat interesting flags
+ assert dtype.flags == checks.get_dtype_flags(dtype)
+
+
+def test_conv_intp(install_temp):
+ import checks
+
+ class myint:
+ def __int__(self):
+ return 3
+
+ # These conversion passes via `__int__`, not `__index__`:
+ assert checks.conv_intp(3.) == 3
+ assert checks.conv_intp(myint()) == 3
+
+
+def test_npyiter_api(install_temp):
+ import checks
+ arr = np.random.rand(3, 2)
+
+ it = np.nditer(arr)
+ assert checks.get_npyiter_size(it) == it.itersize == np.prod(arr.shape)
+ assert checks.get_npyiter_ndim(it) == it.ndim == 1
+ assert checks.npyiter_has_index(it) == it.has_index == False
+
+ it = np.nditer(arr, flags=["c_index"])
+ assert checks.npyiter_has_index(it) == it.has_index == True
+ assert (
+ checks.npyiter_has_delayed_bufalloc(it)
+ == it.has_delayed_bufalloc
+ == False
+ )
+
+ it = np.nditer(arr, flags=["buffered", "delay_bufalloc"])
+ assert (
+ checks.npyiter_has_delayed_bufalloc(it)
+ == it.has_delayed_bufalloc
+ == True
+ )
+
+ it = np.nditer(arr, flags=["multi_index"])
+ assert checks.get_npyiter_size(it) == it.itersize == np.prod(arr.shape)
+ assert checks.npyiter_has_multi_index(it) == it.has_multi_index == True
+ assert checks.get_npyiter_ndim(it) == it.ndim == 2
+ assert checks.test_get_multi_index_iter_next(it, arr)
+
+ arr2 = np.random.rand(2, 1, 2)
+ it = np.nditer([arr, arr2])
+ assert checks.get_npyiter_nop(it) == it.nop == 2
+ assert checks.get_npyiter_size(it) == it.itersize == 12
+ assert checks.get_npyiter_ndim(it) == it.ndim == 3
+ assert all(
+ x is y for x, y in zip(checks.get_npyiter_operands(it), it.operands)
+ )
+ assert all(
+ np.allclose(x, y)
+ for x, y in zip(checks.get_npyiter_itviews(it), it.itviews)
+ )
+
+
+def test_fillwithbytes(install_temp):
+ import checks
+
+ arr = checks.compile_fillwithbyte()
+ assert_array_equal(arr, np.ones((1, 2)))
+
+
+def test_complex(install_temp):
+ from checks import inc2_cfloat_struct
+
+ arr = np.array([0, 10 + 10j], dtype="F")
+ inc2_cfloat_struct(arr)
+ assert arr[1] == (12 + 12j)
+
+
+def test_npystring_pack(install_temp):
+ """Check that the cython API can write to a vstring array."""
+ import checks
+
+ arr = np.array(['a', 'b', 'c'], dtype='T')
+ assert checks.npystring_pack(arr) == 0
+
+ # checks.npystring_pack writes to the beginning of the array
+ assert arr[0] == "Hello world"
+
+def test_npystring_load(install_temp):
+ """Check that the cython API can load strings from a vstring array."""
+ import checks
+
+ arr = np.array(['abcd', 'b', 'c'], dtype='T')
+ result = checks.npystring_load(arr)
+ assert result == 'abcd'
+
+
+def test_npystring_multiple_allocators(install_temp):
+ """Check that the cython API can acquire/release multiple vstring allocators."""
+ import checks
+
+ dt = np.dtypes.StringDType(na_object=None)
+ arr1 = np.array(['abcd', 'b', 'c'], dtype=dt)
+ arr2 = np.array(['a', 'b', 'c'], dtype=dt)
+
+ assert checks.npystring_pack_multiple(arr1, arr2) == 0
+ assert arr1[0] == "Hello world"
+ assert arr1[-1] is None
+ assert arr2[0] == "test this"
+
+
+def test_npystring_allocators_other_dtype(install_temp):
+ """Check that allocators for non-StringDType arrays is NULL."""
+ import checks
+
+ arr1 = np.array([1, 2, 3], dtype='i')
+ arr2 = np.array([4, 5, 6], dtype='i')
+
+ assert checks.npystring_allocators_other_types(arr1, arr2) == 0
+
+
+@pytest.mark.skipif(sysconfig.get_platform() == 'win-arm64',
+ reason='no checks module on win-arm64')
+def test_npy_uintp_type_enum(install_temp):
+ import checks
+ assert checks.check_npy_uintp_type_enum()
+
+
+@pytest.mark.skipif(
+ sys.version_info < (3, 14),
+ reason="Tests behavior that happens on Python 3.14 and newer"
+)
+@pytest.mark.skipif(
+ sysconfig.get_platform() == 'win-arm64',
+ reason='no checks module on win-arm64'
+)
+def test_resize_refcheck(install_temp):
+ import checks
+ msg = "It is possible that this is a false positive."
+ with pytest.raises(ValueError, match=msg):
+ checks.resize_refcheck_test()
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/test_datetime.py b/python/user_packages/Python313/site-packages/numpy/_core/tests/test_datetime.py
new file mode 100644
index 0000000000000000000000000000000000000000..fb49ffe52ce6b5843304b8d6440d6975f64d4b65
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/tests/test_datetime.py
@@ -0,0 +1,2797 @@
+import datetime
+import pickle
+import warnings
+from zoneinfo import ZoneInfo, ZoneInfoNotFoundError
+
+import pytest
+
+import numpy
+import numpy as np
+from numpy.testing import (
+ IS_WASM,
+ assert_,
+ assert_array_equal,
+ assert_equal,
+ assert_raises,
+ assert_raises_regex,
+)
+
+try:
+ RecursionError
+except NameError:
+ RecursionError = RuntimeError # python < 3.5
+
+try:
+ ZoneInfo("US/Central")
+ _has_tz = True
+except ZoneInfoNotFoundError:
+ _has_tz = False
+
+def _assert_equal_hash(v1, v2):
+ assert v1 == v2
+ assert hash(v1) == hash(v2)
+ assert v2 in {v1}
+
+
+class TestDateTime:
+
+ def test_string(self):
+ msg = "no explicit representation of timezones available for " \
+ "np.datetime64"
+ with pytest.warns(UserWarning, match=msg):
+ np.datetime64('2000-01-01T00+01')
+
+ def test_datetime(self):
+ msg = "no explicit representation of timezones available for " \
+ "np.datetime64"
+ with pytest.warns(UserWarning, match=msg):
+ t0 = np.datetime64('2023-06-09T12:18:40Z', 'ns')
+
+ t0 = np.datetime64('2023-06-09T12:18:40', 'ns')
+
+ def test_datetime_dtype_creation(self):
+ for unit in ['Y', 'M', 'W', 'D',
+ 'h', 'm', 's', 'ms', 'us',
+ 'μs', # alias for us
+ 'ns', 'ps', 'fs', 'as']:
+ dt1 = np.dtype(f'M8[750{unit}]')
+ assert_(dt1 == np.dtype(f'datetime64[750{unit}]'))
+ dt2 = np.dtype(f'm8[{unit}]')
+ assert_(dt2 == np.dtype(f'timedelta64[{unit}]'))
+
+ # Generic units shouldn't add [] to the end
+ assert_equal(str(np.dtype("M8")), "datetime64")
+
+ # Should be possible to specify the endianness
+ assert_equal(np.dtype("=M8"), np.dtype("M8"))
+ assert_equal(np.dtype("=M8[s]"), np.dtype("M8[s]"))
+ assert_(np.dtype(">M8") == np.dtype("M8") or
+ np.dtype("M8[D]") == np.dtype("M8[D]") or
+ np.dtype("M8") != np.dtype("m8") == np.dtype("m8") or
+ np.dtype("m8[D]") == np.dtype("m8[D]") or
+ np.dtype("m8") != np.dtype(" Scalars
+ assert_equal(np.datetime64(b, '[s]'), np.datetime64('NaT', '[s]'))
+ assert_equal(np.datetime64(b, '[ms]'), np.datetime64('NaT', '[ms]'))
+ assert_equal(np.datetime64(b, '[M]'), np.datetime64('NaT', '[M]'))
+ assert_equal(np.datetime64(b, '[Y]'), np.datetime64('NaT', '[Y]'))
+ assert_equal(np.datetime64(b, '[W]'), np.datetime64('NaT', '[W]'))
+
+ # Arrays -> Scalars
+ assert_equal(np.datetime64(a, '[s]'), np.datetime64('NaT', '[s]'))
+ assert_equal(np.datetime64(a, '[ms]'), np.datetime64('NaT', '[ms]'))
+ assert_equal(np.datetime64(a, '[M]'), np.datetime64('NaT', '[M]'))
+ assert_equal(np.datetime64(a, '[Y]'), np.datetime64('NaT', '[Y]'))
+ assert_equal(np.datetime64(a, '[W]'), np.datetime64('NaT', '[W]'))
+
+ # NaN -> NaT
+ nan = np.array([np.nan] * 8 + [0])
+ fnan = nan.astype('f')
+ lnan = nan.astype('g')
+ cnan = nan.astype('D')
+ cfnan = nan.astype('F')
+ clnan = nan.astype('G')
+ hnan = nan.astype(np.half)
+
+ nat = np.array([np.datetime64('NaT')] * 8 + [np.datetime64(0, 'D')])
+ assert_equal(nan.astype('M8[ns]'), nat)
+ assert_equal(fnan.astype('M8[ns]'), nat)
+ assert_equal(lnan.astype('M8[ns]'), nat)
+ assert_equal(cnan.astype('M8[ns]'), nat)
+ assert_equal(cfnan.astype('M8[ns]'), nat)
+ assert_equal(clnan.astype('M8[ns]'), nat)
+ assert_equal(hnan.astype('M8[ns]'), nat)
+
+ nat = np.array([np.timedelta64('NaT')] * 8 + [np.timedelta64(0)])
+ assert_equal(nan.astype('timedelta64[ns]'), nat)
+ assert_equal(fnan.astype('timedelta64[ns]'), nat)
+ assert_equal(lnan.astype('timedelta64[ns]'), nat)
+ assert_equal(cnan.astype('timedelta64[ns]'), nat)
+ assert_equal(cfnan.astype('timedelta64[ns]'), nat)
+ assert_equal(clnan.astype('timedelta64[ns]'), nat)
+ assert_equal(hnan.astype('timedelta64[ns]'), nat)
+
+ def test_days_creation(self):
+ assert_equal(np.array('1599', dtype='M8[D]').astype('i8'),
+ (1600 - 1970) * 365 - (1972 - 1600) / 4 + 3 - 365)
+ assert_equal(np.array('1600', dtype='M8[D]').astype('i8'),
+ (1600 - 1970) * 365 - (1972 - 1600) / 4 + 3)
+ assert_equal(np.array('1601', dtype='M8[D]').astype('i8'),
+ (1600 - 1970) * 365 - (1972 - 1600) / 4 + 3 + 366)
+ assert_equal(np.array('1900', dtype='M8[D]').astype('i8'),
+ (1900 - 1970) * 365 - (1970 - 1900) // 4)
+ assert_equal(np.array('1901', dtype='M8[D]').astype('i8'),
+ (1900 - 1970) * 365 - (1970 - 1900) // 4 + 365)
+ assert_equal(np.array('1967', dtype='M8[D]').astype('i8'), -3 * 365 - 1)
+ assert_equal(np.array('1968', dtype='M8[D]').astype('i8'), -2 * 365 - 1)
+ assert_equal(np.array('1969', dtype='M8[D]').astype('i8'), -1 * 365)
+ assert_equal(np.array('1970', dtype='M8[D]').astype('i8'), 0 * 365)
+ assert_equal(np.array('1971', dtype='M8[D]').astype('i8'), 1 * 365)
+ assert_equal(np.array('1972', dtype='M8[D]').astype('i8'), 2 * 365)
+ assert_equal(np.array('1973', dtype='M8[D]').astype('i8'), 3 * 365 + 1)
+ assert_equal(np.array('1974', dtype='M8[D]').astype('i8'), 4 * 365 + 1)
+ assert_equal(np.array('2000', dtype='M8[D]').astype('i8'),
+ (2000 - 1970) * 365 + (2000 - 1972) // 4)
+ assert_equal(np.array('2001', dtype='M8[D]').astype('i8'),
+ (2000 - 1970) * 365 + (2000 - 1972) // 4 + 366)
+ assert_equal(np.array('2400', dtype='M8[D]').astype('i8'),
+ (2400 - 1970) * 365 + (2400 - 1972) // 4 - 3)
+ assert_equal(np.array('2401', dtype='M8[D]').astype('i8'),
+ (2400 - 1970) * 365 + (2400 - 1972) // 4 - 3 + 366)
+
+ assert_equal(np.array('1600-02-29', dtype='M8[D]').astype('i8'),
+ (1600 - 1970) * 365 - (1972 - 1600) // 4 + 3 + 31 + 28)
+ assert_equal(np.array('1600-03-01', dtype='M8[D]').astype('i8'),
+ (1600 - 1970) * 365 - (1972 - 1600) // 4 + 3 + 31 + 29)
+ assert_equal(np.array('2000-02-29', dtype='M8[D]').astype('i8'),
+ (2000 - 1970) * 365 + (2000 - 1972) // 4 + 31 + 28)
+ assert_equal(np.array('2000-03-01', dtype='M8[D]').astype('i8'),
+ (2000 - 1970) * 365 + (2000 - 1972) // 4 + 31 + 29)
+ assert_equal(np.array('2001-03-22', dtype='M8[D]').astype('i8'),
+ (2000 - 1970) * 365 + (2000 - 1972) // 4 + 366 + 31 + 28 + 21)
+
+ def test_days_to_pydate(self):
+ assert_equal(np.array('1599', dtype='M8[D]').astype('O'),
+ datetime.date(1599, 1, 1))
+ assert_equal(np.array('1600', dtype='M8[D]').astype('O'),
+ datetime.date(1600, 1, 1))
+ assert_equal(np.array('1601', dtype='M8[D]').astype('O'),
+ datetime.date(1601, 1, 1))
+ assert_equal(np.array('1900', dtype='M8[D]').astype('O'),
+ datetime.date(1900, 1, 1))
+ assert_equal(np.array('1901', dtype='M8[D]').astype('O'),
+ datetime.date(1901, 1, 1))
+ assert_equal(np.array('2000', dtype='M8[D]').astype('O'),
+ datetime.date(2000, 1, 1))
+ assert_equal(np.array('2001', dtype='M8[D]').astype('O'),
+ datetime.date(2001, 1, 1))
+ assert_equal(np.array('1600-02-29', dtype='M8[D]').astype('O'),
+ datetime.date(1600, 2, 29))
+ assert_equal(np.array('1600-03-01', dtype='M8[D]').astype('O'),
+ datetime.date(1600, 3, 1))
+ assert_equal(np.array('2001-03-22', dtype='M8[D]').astype('O'),
+ datetime.date(2001, 3, 22))
+
+ def test_dtype_comparison(self):
+ assert_(not (np.dtype('M8[us]') == np.dtype('M8[ms]')))
+ assert_(np.dtype('M8[us]') != np.dtype('M8[ms]'))
+ assert_(np.dtype('M8[2D]') != np.dtype('M8[D]'))
+ assert_(np.dtype('M8[D]') != np.dtype('M8[2D]'))
+
+ def test_pydatetime_creation(self):
+ a = np.array(['1960-03-12', datetime.date(1960, 3, 12)], dtype='M8[D]')
+ assert_equal(a[0], a[1])
+ a = np.array(['1999-12-31', datetime.date(1999, 12, 31)], dtype='M8[D]')
+ assert_equal(a[0], a[1])
+ a = np.array(['2000-01-01', datetime.date(2000, 1, 1)], dtype='M8[D]')
+ assert_equal(a[0], a[1])
+ # Will fail if the date changes during the exact right moment
+ a = np.array(['today', datetime.date.today()], dtype='M8[D]')
+ assert_equal(a[0], a[1])
+ # datetime.datetime.now() returns local time, not UTC
+ #a = np.array(['now', datetime.datetime.now()], dtype='M8[s]')
+ #assert_equal(a[0], a[1])
+
+ # we can give a datetime.date time units
+ assert_equal(np.array(datetime.date(1960, 3, 12), dtype='M8[s]'),
+ np.array(np.datetime64('1960-03-12T00:00:00')))
+
+ def test_datetime_string_conversion(self):
+ a = ['2011-03-16', '1920-01-01', '2013-05-19']
+ str_a = np.array(a, dtype='S')
+ uni_a = np.array(a, dtype='U')
+ dt_a = np.array(a, dtype='M')
+
+ # String to datetime
+ assert_equal(dt_a, str_a.astype('M'))
+ assert_equal(dt_a.dtype, str_a.astype('M').dtype)
+ dt_b = np.empty_like(dt_a)
+ dt_b[...] = str_a
+ assert_equal(dt_a, dt_b)
+
+ # Datetime to string
+ assert_equal(str_a, dt_a.astype('S0'))
+ str_b = np.empty_like(str_a)
+ str_b[...] = dt_a
+ assert_equal(str_a, str_b)
+
+ # Unicode to datetime
+ assert_equal(dt_a, uni_a.astype('M'))
+ assert_equal(dt_a.dtype, uni_a.astype('M').dtype)
+ dt_b = np.empty_like(dt_a)
+ dt_b[...] = uni_a
+ assert_equal(dt_a, dt_b)
+
+ # Datetime to unicode
+ assert_equal(uni_a, dt_a.astype('U'))
+ uni_b = np.empty_like(uni_a)
+ uni_b[...] = dt_a
+ assert_equal(uni_a, uni_b)
+
+ # Datetime to long string - gh-9712
+ assert_equal(str_a, dt_a.astype((np.bytes_, 128)))
+ str_b = np.empty(str_a.shape, dtype=(np.bytes_, 128))
+ str_b[...] = dt_a
+ assert_equal(str_a, str_b)
+
+ @pytest.mark.parametrize("time_dtype", ["m8[D]", "M8[Y]"])
+ def test_time_byteswapping(self, time_dtype):
+ times = np.array(["2017", "NaT"], dtype=time_dtype)
+ times_swapped = times.astype(times.dtype.newbyteorder())
+ assert_array_equal(times, times_swapped)
+
+ unswapped = times_swapped.view(np.dtype("int64").newbyteorder())
+ assert_array_equal(unswapped, times.view(np.int64))
+
+ @pytest.mark.parametrize(["time1", "time2"],
+ [("M8[s]", "M8[D]"), ("m8[s]", "m8[ns]")])
+ def test_time_byteswapped_cast(self, time1, time2):
+ dtype1 = np.dtype(time1)
+ dtype2 = np.dtype(time2)
+ times = np.array(["2017", "NaT"], dtype=dtype1)
+ expected = times.astype(dtype2)
+
+ # Test that every byte-swapping combination also returns the same
+ # results (previous tests check that this comparison works fine).
+ res = times.astype(dtype1.newbyteorder()).astype(dtype2)
+ assert_array_equal(res, expected)
+ res = times.astype(dtype2.newbyteorder())
+ assert_array_equal(res, expected)
+ res = times.astype(dtype1.newbyteorder()).astype(dtype2.newbyteorder())
+ assert_array_equal(res, expected)
+
+ @pytest.mark.parametrize("time_dtype", ["m8[D]", "M8[Y]"])
+ @pytest.mark.parametrize("str_dtype", ["U", "S"])
+ def test_datetime_conversions_byteorders(self, str_dtype, time_dtype):
+ times = np.array(["2017", "NaT"], dtype=time_dtype)
+ # Unfortunately, timedelta does not roundtrip:
+ from_strings = np.array(["2017", "NaT"], dtype=str_dtype)
+ to_strings = times.astype(str_dtype) # assume this is correct
+
+ # Check that conversion from times to string works if src is swapped:
+ times_swapped = times.astype(times.dtype.newbyteorder())
+ res = times_swapped.astype(str_dtype)
+ assert_array_equal(res, to_strings)
+ # And also if both are swapped:
+ res = times_swapped.astype(to_strings.dtype.newbyteorder())
+ assert_array_equal(res, to_strings)
+ # only destination is swapped:
+ res = times.astype(to_strings.dtype.newbyteorder())
+ assert_array_equal(res, to_strings)
+
+ # Check that conversion from string to times works if src is swapped:
+ from_strings_swapped = from_strings.astype(
+ from_strings.dtype.newbyteorder())
+ res = from_strings_swapped.astype(time_dtype)
+ assert_array_equal(res, times)
+ # And if both are swapped:
+ res = from_strings_swapped.astype(times.dtype.newbyteorder())
+ assert_array_equal(res, times)
+ # Only destination is swapped:
+ res = from_strings.astype(times.dtype.newbyteorder())
+ assert_array_equal(res, times)
+
+ def test_datetime_array_str(self):
+ a = np.array(['2011-03-16', '1920-01-01', '2013-05-19'], dtype='M')
+ assert_equal(str(a), "['2011-03-16' '1920-01-01' '2013-05-19']")
+
+ a = np.array(['2011-03-16T13:55', '1920-01-01T03:12'], dtype='M')
+ assert_equal(np.array2string(a, separator=', ',
+ formatter={'datetime': lambda x:
+ f"'{np.datetime_as_string(x, timezone='UTC')}'"}),
+ "['2011-03-16T13:55Z', '1920-01-01T03:12Z']")
+
+ # Check that one NaT doesn't corrupt subsequent entries
+ a = np.array(['2010', 'NaT', '2030']).astype('M')
+ assert_equal(str(a), "['2010' 'NaT' '2030']")
+
+ def test_timedelta_array_str(self):
+ a = np.array([-1, 0, 100], dtype='m')
+ assert_equal(str(a), "[ -1 0 100]")
+ a = np.array(['NaT', 'NaT'], dtype='m')
+ assert_equal(str(a), "['NaT' 'NaT']")
+ # Check right-alignment with NaTs
+ a = np.array([-1, 'NaT', 0], dtype='m')
+ assert_equal(str(a), "[ -1 'NaT' 0]")
+ a = np.array([-1, 'NaT', 1234567], dtype='m')
+ assert_equal(str(a), "[ -1 'NaT' 1234567]")
+
+ # Test with other byteorder:
+ a = np.array([-1, 'NaT', 1234567], dtype='>m')
+ assert_equal(str(a), "[ -1 'NaT' 1234567]")
+ a = np.array([-1, 'NaT', 1234567], dtype=''\np4\nNNNI-1\nI-1\nI0\n((dp5\n(S'us'\np6\n"\
+ b"I1\nI1\nI1\ntp7\ntp8\ntp9\nb."
+ assert_equal(pickle.loads(pkl), np.dtype('>M8[us]'))
+
+ def test_gh_29555(self):
+ # check that dtype metadata round-trips when none
+ dt = np.dtype('>M8[us]')
+ assert dt.metadata is None
+ for proto in range(2, pickle.HIGHEST_PROTOCOL + 1):
+ res = pickle.loads(pickle.dumps(dt, protocol=proto))
+ assert_equal(res, dt)
+ assert res.metadata is None
+
+ def test_setstate(self):
+ "Verify that datetime dtype __setstate__ can handle bad arguments"
+ dt = np.dtype('>M8[us]')
+ assert_raises(ValueError, dt.__setstate__,
+ (4, '>', None, None, None, -1, -1, 0, 1))
+ assert_(dt.__reduce__()[2] == np.dtype('>M8[us]').__reduce__()[2])
+ assert_raises(TypeError, dt.__setstate__,
+ (4, '>', None, None, None, -1, -1, 0, ({}, 'xxx')))
+ assert_(dt.__reduce__()[2] == np.dtype('>M8[us]').__reduce__()[2])
+
+ def test_dtype_promotion(self):
+ # datetime datetime computes the metadata gcd
+ # timedelta timedelta computes the metadata gcd
+ for mM in ['m', 'M']:
+ assert_equal(
+ np.promote_types(np.dtype(mM + '8[2Y]'), np.dtype(mM + '8[2Y]')),
+ np.dtype(mM + '8[2Y]'))
+ assert_equal(
+ np.promote_types(np.dtype(mM + '8[12Y]'), np.dtype(mM + '8[15Y]')),
+ np.dtype(mM + '8[3Y]'))
+ assert_equal(
+ np.promote_types(np.dtype(mM + '8[62M]'), np.dtype(mM + '8[24M]')),
+ np.dtype(mM + '8[2M]'))
+ assert_equal(
+ np.promote_types(np.dtype(mM + '8[1W]'), np.dtype(mM + '8[2D]')),
+ np.dtype(mM + '8[1D]'))
+ assert_equal(
+ np.promote_types(np.dtype(mM + '8[W]'), np.dtype(mM + '8[13s]')),
+ np.dtype(mM + '8[s]'))
+ assert_equal(
+ np.promote_types(np.dtype(mM + '8[13W]'), np.dtype(mM + '8[49s]')),
+ np.dtype(mM + '8[7s]'))
+ # timedelta timedelta raises when there is no reasonable gcd
+ assert_raises(TypeError, np.promote_types,
+ np.dtype('m8[Y]'), np.dtype('m8[D]'))
+ assert_raises(TypeError, np.promote_types,
+ np.dtype('m8[M]'), np.dtype('m8[W]'))
+ # timedelta and float cannot be safely cast with each other
+ assert_raises(TypeError, np.promote_types, "float32", "m8")
+ assert_raises(TypeError, np.promote_types, "m8", "float32")
+ assert_raises(TypeError, np.promote_types, "uint64", "m8")
+ assert_raises(TypeError, np.promote_types, "m8", "uint64")
+
+ # timedelta timedelta may overflow with big unit ranges
+ assert_raises(OverflowError, np.promote_types,
+ np.dtype('m8[W]'), np.dtype('m8[fs]'))
+ assert_raises(OverflowError, np.promote_types,
+ np.dtype('m8[s]'), np.dtype('m8[as]'))
+
+ def test_cast_overflow(self):
+ # gh-4486
+ def cast():
+ numpy.datetime64("1971-01-01 00:00:00.000000000000000").astype("datetime64[{unit}]')
+ assert_equal(np.isnat(arr), res)
+ arr = np.array([123, -321, "NaT"], dtype=f'timedelta64[{unit}]')
+ assert_equal(np.isnat(arr), res)
+
+ def test_isnat_error(self):
+ # Test that only datetime dtype arrays are accepted
+ for t in np.typecodes["All"]:
+ if t in np.typecodes["Datetime"]:
+ continue
+ assert_raises(TypeError, np.isnat, np.zeros(10, t))
+
+ def test_isfinite_scalar(self):
+ assert_(not np.isfinite(np.datetime64('NaT', 'ms')))
+ assert_(not np.isfinite(np.datetime64('NaT', 'ns')))
+ assert_(np.isfinite(np.datetime64('2038-01-19T03:14:07')))
+
+ assert_(not np.isfinite(np.timedelta64('NaT', "ms")))
+ assert_(np.isfinite(np.timedelta64(34, "ms")))
+
+ @pytest.mark.parametrize('unit', ['Y', 'M', 'W', 'D', 'h', 'm', 's', 'ms',
+ 'us', 'ns', 'ps', 'fs', 'as'])
+ @pytest.mark.parametrize('dstr', ['datetime64[%s]',
+ 'timedelta64[%s]'])
+ def test_isfinite_isinf_isnan_units(self, unit, dstr):
+ '''check isfinite, isinf, isnan for all units of M, m dtypes
+ '''
+ arr_val = [123, -321, "NaT"]
+ arr = np.array(arr_val, dtype=(dstr % unit))
+ pos = np.array([True, True, False])
+ neg = np.array([False, False, True])
+ false = np.array([False, False, False])
+ assert_equal(np.isfinite(arr), pos)
+ assert_equal(np.isinf(arr), false)
+ assert_equal(np.isnan(arr), neg)
+
+ def test_assert_equal(self):
+ assert_raises(AssertionError, assert_equal,
+ np.datetime64('nat'), np.timedelta64('nat'))
+
+ def test_corecursive_input(self):
+ # construct a co-recursive list
+ a, b = [], []
+ a.append(b)
+ b.append(a)
+ obj_arr = np.array([None])
+ obj_arr[0] = a
+
+ # At some point this caused a stack overflow (gh-11154). Now raises
+ # ValueError since the nested list cannot be converted to a datetime.
+ assert_raises(ValueError, obj_arr.astype, 'M8')
+ assert_raises(ValueError, obj_arr.astype, 'm8')
+
+ @pytest.mark.parametrize("shape", [(), (1,)])
+ def test_discovery_from_object_array(self, shape):
+ arr = np.array("2020-10-10", dtype=object).reshape(shape)
+ res = np.array("2020-10-10", dtype="M8").reshape(shape)
+ assert res.dtype == np.dtype("M8[D]")
+ assert_equal(arr.astype("M8"), res)
+ arr[...] = np.bytes_("2020-10-10") # try a numpy string type
+ assert_equal(arr.astype("M8"), res)
+ arr = arr.astype("S")
+ assert_equal(arr.astype("S").astype("M8"), res)
+
+ @pytest.mark.parametrize("time_unit", [
+ "Y", "M", "W", "D", "h", "m", "s", "ms", "us", "ns", "ps", "fs", "as",
+ # compound units
+ "10D", "2M",
+ ])
+ def test_limit_symmetry(self, time_unit):
+ """
+ Dates should have symmetric limits around the unix epoch at +/-np.int64
+ """
+ epoch = np.datetime64(0, time_unit)
+ latest = np.datetime64(np.iinfo(np.int64).max, time_unit)
+ earliest = np.datetime64(-np.iinfo(np.int64).max, time_unit)
+
+ # above should not have overflowed
+ assert earliest < epoch < latest
+
+ @pytest.mark.parametrize("time_unit", [
+ "Y", "M",
+ pytest.param("W", marks=pytest.mark.xfail(reason="gh-13197")),
+ "D", "h", "m",
+ "s", "ms", "us", "ns", "ps", "fs", "as",
+ pytest.param("10D", marks=pytest.mark.xfail(reason="similar to gh-13197")),
+ ])
+ @pytest.mark.parametrize("sign", [-1, 1])
+ def test_limit_str_roundtrip(self, time_unit, sign):
+ """
+ Limits should roundtrip when converted to strings.
+
+ This tests the conversion to and from npy_datetimestruct.
+ """
+ # TODO: add absolute (gold standard) time span limit strings
+ limit = np.datetime64(np.iinfo(np.int64).max * sign, time_unit)
+
+ # Convert to string and back. Explicit unit needed since the day and
+ # week reprs are not distinguishable.
+ limit_via_str = np.datetime64(str(limit), time_unit)
+ assert limit_via_str == limit
+
+ def test_datetime_hash_nat(self):
+ nat1 = np.datetime64()
+ nat2 = np.datetime64()
+ assert nat1 is not nat2
+ assert nat1 != nat2
+ assert hash(nat1) != hash(nat2)
+
+ @pytest.mark.parametrize('unit', ('Y', 'M', 'W', 'D', 'h', 'm', 's', 'ms', 'us'))
+ def test_datetime_hash_weeks(self, unit):
+ dt = np.datetime64(2348, 'W') # 2015-01-01
+ dt2 = np.datetime64(dt, unit)
+ _assert_equal_hash(dt, dt2)
+
+ dt3 = np.datetime64(int(dt2.astype(int)) + 1, unit)
+ assert hash(dt) != hash(dt3) # doesn't collide
+
+ @pytest.mark.parametrize('unit', ('h', 'm', 's', 'ms', 'us'))
+ def test_datetime_hash_weeks_vs_pydatetime(self, unit):
+ dt = np.datetime64(2348, 'W') # 2015-01-01
+ dt2 = np.datetime64(dt, unit)
+ pydt = dt2.astype(datetime.datetime)
+ assert isinstance(pydt, datetime.datetime)
+ _assert_equal_hash(pydt, dt2)
+
+ @pytest.mark.parametrize('unit', ('Y', 'M', 'W', 'D', 'h', 'm', 's', 'ms', 'us'))
+ def test_datetime_hash_big_negative(self, unit):
+ dt = np.datetime64(-102894, 'W') # -002-01-01
+ dt2 = np.datetime64(dt, unit)
+ _assert_equal_hash(dt, dt2)
+
+ # can only go down to "fs" before integer overflow
+ @pytest.mark.parametrize('unit', ('m', 's', 'ms', 'us', 'ns', 'ps', 'fs'))
+ def test_datetime_hash_minutes(self, unit):
+ dt = np.datetime64(3, 'm')
+ dt2 = np.datetime64(dt, unit)
+ _assert_equal_hash(dt, dt2)
+
+ @pytest.mark.parametrize('unit', ('ns', 'ps', 'fs', 'as'))
+ def test_datetime_hash_ns(self, unit):
+ dt = np.datetime64(3, 'ns')
+ dt2 = np.datetime64(dt, unit)
+ _assert_equal_hash(dt, dt2)
+
+ dt3 = np.datetime64(int(dt2.astype(int)) + 1, unit)
+ assert hash(dt) != hash(dt3) # doesn't collide
+
+ @pytest.mark.parametrize('wk', range(500000, 500010)) # 11552-09-04
+ @pytest.mark.parametrize('unit', ('W', 'D', 'h', 'm', 's', 'ms', 'us'))
+ def test_datetime_hash_big_positive(self, wk, unit):
+ dt = np.datetime64(wk, 'W')
+ dt2 = np.datetime64(dt, unit)
+ _assert_equal_hash(dt, dt2)
+
+ def test_timedelta_hash_generic(self):
+ assert_raises(ValueError, hash, np.timedelta64(123)) # generic
+
+ @pytest.mark.parametrize('unit', ('Y', 'M'))
+ def test_timedelta_hash_year_month(self, unit):
+ td = np.timedelta64(45, 'Y')
+ td2 = np.timedelta64(td, unit)
+ _assert_equal_hash(td, td2)
+
+ @pytest.mark.parametrize('unit', ('W', 'D', 'h', 'm', 's', 'ms', 'us'))
+ def test_timedelta_hash_weeks(self, unit):
+ td = np.timedelta64(10, 'W')
+ td2 = np.timedelta64(td, unit)
+ _assert_equal_hash(td, td2)
+
+ td3 = np.timedelta64(int(td2.astype(int)) + 1, unit)
+ assert hash(td) != hash(td3) # doesn't collide
+
+ @pytest.mark.parametrize('unit', ('W', 'D', 'h', 'm', 's', 'ms', 'us'))
+ def test_timedelta_hash_weeks_vs_pydelta(self, unit):
+ td = np.timedelta64(10, 'W')
+ td2 = np.timedelta64(td, unit)
+ pytd = td2.astype(datetime.timedelta)
+ assert isinstance(pytd, datetime.timedelta)
+ _assert_equal_hash(pytd, td2)
+
+ @pytest.mark.parametrize('unit', ('ms', 'us', 'ns', 'ps', 'fs', 'as'))
+ def test_timedelta_hash_ms(self, unit):
+ td = np.timedelta64(3, 'ms')
+ td2 = np.timedelta64(td, unit)
+ _assert_equal_hash(td, td2)
+
+ td3 = np.timedelta64(int(td2.astype(int)) + 1, unit)
+ assert hash(td) != hash(td3) # doesn't collide
+
+ @pytest.mark.parametrize('wk', range(500000, 500010))
+ @pytest.mark.parametrize('unit', ('W', 'D', 'h', 'm', 's', 'ms', 'us'))
+ def test_timedelta_hash_big_positive(self, wk, unit):
+ td = np.timedelta64(wk, 'W')
+ td2 = np.timedelta64(td, unit)
+ _assert_equal_hash(td, td2)
+
+ @pytest.mark.parametrize(
+ "inputs, divisor, expected",
+ [
+ (
+ np.array(
+ [datetime.timedelta(seconds=20), datetime.timedelta(days=2)],
+ dtype="object",
+ ),
+ np.int64(2),
+ np.array(
+ [datetime.timedelta(seconds=10), datetime.timedelta(days=1)],
+ dtype="object",
+ ),
+ ),
+ (
+ np.array(
+ [datetime.timedelta(seconds=20), datetime.timedelta(days=2)],
+ dtype="object",
+ ),
+ np.timedelta64(2, "s"),
+ np.array(
+ [10.0, 24.0 * 60.0 * 60.0],
+ dtype="object",
+ ),
+ ),
+ (
+ datetime.timedelta(seconds=2),
+ np.array(
+ [datetime.timedelta(seconds=20), datetime.timedelta(days=2)],
+ dtype="object",
+ ),
+ np.array(
+ [1.0 / 10.0, 1.0 / (24.0 * 60.0 * 60.0)],
+ dtype="object",
+ ),
+ ),
+ ],
+ )
+ def test_true_divide_object_by_timedelta(
+ self,
+ inputs: np.ndarray | type[np.generic],
+ divisor: np.ndarray | type[np.generic],
+ expected: np.ndarray,
+ ):
+ # gh-30025
+ results = inputs / divisor
+ assert_array_equal(results, expected)
+
+
+class TestDateTimeData:
+
+ def test_basic(self):
+ a = np.array(['1980-03-23'], dtype=np.datetime64)
+ assert_equal(np.datetime_data(a.dtype), ('D', 1))
+
+ def test_bytes(self):
+ # byte units are converted to unicode
+ dt = np.datetime64('2000', (b'ms', 5))
+ assert np.datetime_data(dt.dtype) == ('ms', 5)
+
+ dt = np.datetime64('2000', b'5ms')
+ assert np.datetime_data(dt.dtype) == ('ms', 5)
+
+ def test_non_ascii(self):
+ # μs is normalized to μ
+ dt = np.datetime64('2000', ('μs', 5))
+ assert np.datetime_data(dt.dtype) == ('us', 5)
+
+ dt = np.datetime64('2000', '5μs')
+ assert np.datetime_data(dt.dtype) == ('us', 5)
+
+
+def test_comparisons_return_not_implemented():
+ # GH#17017
+
+ class custom:
+ __array_priority__ = 10000
+
+ obj = custom()
+
+ dt = np.datetime64('2000', 'ns')
+ td = dt - dt
+
+ for item in [dt, td]:
+ assert item.__eq__(obj) is NotImplemented
+ assert item.__ne__(obj) is NotImplemented
+ assert item.__le__(obj) is NotImplemented
+ assert item.__lt__(obj) is NotImplemented
+ assert item.__ge__(obj) is NotImplemented
+ assert item.__gt__(obj) is NotImplemented
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/test_defchararray.py b/python/user_packages/Python313/site-packages/numpy/_core/tests/test_defchararray.py
new file mode 100644
index 0000000000000000000000000000000000000000..e45b6ffd659bc8854cb9f03d4e3b6390ae7e8026
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/tests/test_defchararray.py
@@ -0,0 +1,858 @@
+import pytest
+
+import numpy as np
+from numpy._core.multiarray import _vec_string
+from numpy.testing import (
+ assert_,
+ assert_array_equal,
+ assert_equal,
+ assert_raises,
+ assert_raises_regex,
+)
+
+kw_unicode_true = {'unicode': True} # make 2to3 work properly
+kw_unicode_false = {'unicode': False}
+
+class TestBasic:
+ def test_from_object_array(self):
+ A = np.array([['abc', 2],
+ ['long ', '0123456789']], dtype='O')
+ B = np.char.array(A)
+ assert_equal(B.dtype.itemsize, 10)
+ assert_array_equal(B, [[b'abc', b'2'],
+ [b'long', b'0123456789']])
+
+ def test_from_object_array_unicode(self):
+ A = np.array([['abc', 'Sigma \u03a3'],
+ ['long ', '0123456789']], dtype='O')
+ assert_raises(ValueError, np.char.array, (A,))
+ B = np.char.array(A, **kw_unicode_true)
+ assert_equal(B.dtype.itemsize, 10 * np.array('a', 'U').dtype.itemsize)
+ assert_array_equal(B, [['abc', 'Sigma \u03a3'],
+ ['long', '0123456789']])
+
+ def test_from_string_array(self):
+ A = np.array([[b'abc', b'foo'],
+ [b'long ', b'0123456789']])
+ assert_equal(A.dtype.type, np.bytes_)
+ B = np.char.array(A)
+ assert_array_equal(B, A)
+ assert_equal(B.dtype, A.dtype)
+ assert_equal(B.shape, A.shape)
+ B[0, 0] = 'changed'
+ assert_(B[0, 0] != A[0, 0])
+ C = np.char.asarray(A)
+ assert_array_equal(C, A)
+ assert_equal(C.dtype, A.dtype)
+ C[0, 0] = 'changed again'
+ assert_(C[0, 0] != B[0, 0])
+ assert_(C[0, 0] == A[0, 0])
+
+ def test_from_unicode_array(self):
+ A = np.array([['abc', 'Sigma \u03a3'],
+ ['long ', '0123456789']])
+ assert_equal(A.dtype.type, np.str_)
+ B = np.char.array(A)
+ assert_array_equal(B, A)
+ assert_equal(B.dtype, A.dtype)
+ assert_equal(B.shape, A.shape)
+ B = np.char.array(A, **kw_unicode_true)
+ assert_array_equal(B, A)
+ assert_equal(B.dtype, A.dtype)
+ assert_equal(B.shape, A.shape)
+
+ def fail():
+ np.char.array(A, **kw_unicode_false)
+
+ assert_raises(UnicodeEncodeError, fail)
+
+ def test_unicode_upconvert(self):
+ A = np.char.array(['abc'])
+ B = np.char.array(['\u03a3'])
+ assert_(issubclass((A + B).dtype.type, np.str_))
+
+ def test_from_string(self):
+ A = np.char.array(b'abc')
+ assert_equal(len(A), 1)
+ assert_equal(len(A[0]), 3)
+ assert_(issubclass(A.dtype.type, np.bytes_))
+
+ def test_from_unicode(self):
+ A = np.char.array('\u03a3')
+ assert_equal(len(A), 1)
+ assert_equal(len(A[0]), 1)
+ assert_equal(A.itemsize, 4)
+ assert_(issubclass(A.dtype.type, np.str_))
+
+class TestVecString:
+ def test_non_existent_method(self):
+
+ def fail():
+ _vec_string('a', np.bytes_, 'bogus')
+
+ assert_raises(AttributeError, fail)
+
+ def test_non_string_array(self):
+
+ def fail():
+ _vec_string(1, np.bytes_, 'strip')
+
+ assert_raises(TypeError, fail)
+
+ def test_invalid_args_tuple(self):
+
+ def fail():
+ _vec_string(['a'], np.bytes_, 'strip', 1)
+
+ assert_raises(TypeError, fail)
+
+ def test_invalid_type_descr(self):
+
+ def fail():
+ _vec_string(['a'], 'BOGUS', 'strip')
+
+ assert_raises(TypeError, fail)
+
+ def test_invalid_function_args(self):
+
+ def fail():
+ _vec_string(['a'], np.bytes_, 'strip', (1,))
+
+ assert_raises(TypeError, fail)
+
+ def test_invalid_result_type(self):
+
+ def fail():
+ _vec_string(['a'], np.int_, 'strip')
+
+ assert_raises(TypeError, fail)
+
+ def test_broadcast_error(self):
+
+ def fail():
+ _vec_string([['abc', 'def']], np.int_, 'find', (['a', 'd', 'j'],))
+
+ assert_raises(ValueError, fail)
+
+class TestWhitespace:
+ def test1(self):
+ A = np.array([['abc ', '123 '],
+ ['789 ', 'xyz ']]).view(np.char.chararray)
+ B = np.array([['abc', '123'],
+ ['789', 'xyz']]).view(np.char.chararray)
+ assert_(np.all(A == B))
+ assert_(np.all(A >= B))
+ assert_(np.all(A <= B))
+ assert_(not np.any(A > B))
+ assert_(not np.any(A < B))
+ assert_(not np.any(A != B))
+
+class TestChar:
+ def test_it(self):
+ A = np.array('abc1', dtype='c').view(np.char.chararray)
+ assert_equal(A.shape, (4,))
+ assert_equal(A.upper()[:2].tobytes(), b'AB')
+
+class TestComparisons:
+ def A(self):
+ return np.array([['abc', 'abcc', '123'],
+ ['789', 'abc', 'xyz']]).view(np.char.chararray)
+
+ def B(self):
+ return np.array([['efg', 'efg', '123 '],
+ ['051', 'efgg', 'tuv']]).view(np.char.chararray)
+
+ def test_not_equal(self):
+ A, B = self.A(), self.B()
+ assert_array_equal((A != B),
+ [[True, True, False], [True, True, True]])
+
+ def test_equal(self):
+ A, B = self.A(), self.B()
+ assert_array_equal((A == B),
+ [[False, False, True], [False, False, False]])
+
+ def test_greater_equal(self):
+ A, B = self.A(), self.B()
+ assert_array_equal((A >= B),
+ [[False, False, True], [True, False, True]])
+
+ def test_less_equal(self):
+ A, B = self.A(), self.B()
+ assert_array_equal((A <= B),
+ [[True, True, True], [False, True, False]])
+
+ def test_greater(self):
+ A, B = self.A(), self.B()
+ assert_array_equal((A > B),
+ [[False, False, False], [True, False, True]])
+
+ def test_less(self):
+ A, B = self.A(), self.B()
+ assert_array_equal((A < B),
+ [[True, True, False], [False, True, False]])
+
+ def test_type(self):
+ A, B = self.A(), self.B()
+ out1 = np.char.equal(A, B)
+ out2 = np.char.equal('a', 'a')
+ assert_(isinstance(out1, np.ndarray))
+ assert_(isinstance(out2, np.ndarray))
+
+class TestComparisonsMixed1(TestComparisons):
+ """Ticket #1276"""
+
+ def B(self):
+ return np.array(
+ [['efg', 'efg', '123 '],
+ ['051', 'efgg', 'tuv']], np.str_).view(np.char.chararray)
+
+class TestComparisonsMixed2(TestComparisons):
+ """Ticket #1276"""
+
+ def A(self):
+ return np.array(
+ [['abc', 'abcc', '123'],
+ ['789', 'abc', 'xyz']], np.str_).view(np.char.chararray)
+
+class TestInformation:
+ def A(self):
+ return np.array([[' abc ', ''],
+ ['12345', 'MixedCase'],
+ ['123 \t 345 \0 ', 'UPPER']]) \
+ .view(np.char.chararray)
+
+ def B(self):
+ return np.array([[' \u03a3 ', ''],
+ ['12345', 'MixedCase'],
+ ['123 \t 345 \0 ', 'UPPER']]) \
+ .view(np.char.chararray)
+
+ def test_len(self):
+ A, B = self.A(), self.B()
+ assert_(issubclass(np.char.str_len(A).dtype.type, np.integer))
+ assert_array_equal(np.char.str_len(A), [[5, 0], [5, 9], [12, 5]])
+ assert_array_equal(np.char.str_len(B), [[3, 0], [5, 9], [12, 5]])
+
+ def test_count(self):
+ A, B = self.A(), self.B()
+ assert_(issubclass(A.count('').dtype.type, np.integer))
+ assert_array_equal(A.count('a'), [[1, 0], [0, 1], [0, 0]])
+ assert_array_equal(A.count('123'), [[0, 0], [1, 0], [1, 0]])
+ # Python doesn't seem to like counting NULL characters
+ assert_array_equal(A.count('a', 0, 2), [[1, 0], [0, 0], [0, 0]])
+ assert_array_equal(B.count('a'), [[0, 0], [0, 1], [0, 0]])
+ assert_array_equal(B.count('123'), [[0, 0], [1, 0], [1, 0]])
+
+ def test_endswith(self):
+ A = self.A()
+ assert_(issubclass(A.endswith('').dtype.type, np.bool))
+ assert_array_equal(A.endswith(' '), [[1, 0], [0, 0], [1, 0]])
+ assert_array_equal(A.endswith('3', 0, 3), [[0, 0], [1, 0], [1, 0]])
+
+ def fail():
+ A.endswith('3', 'fdjk')
+
+ assert_raises(TypeError, fail)
+
+ @pytest.mark.parametrize(
+ "dtype, encode",
+ [("U", str),
+ ("S", lambda x: x.encode('ascii')),
+ ])
+ def test_find(self, dtype, encode):
+ A = self.A().astype(dtype)
+ assert_(issubclass(A.find(encode('a')).dtype.type, np.integer))
+ assert_array_equal(A.find(encode('a')),
+ [[1, -1], [-1, 6], [-1, -1]])
+ assert_array_equal(A.find(encode('3')),
+ [[-1, -1], [2, -1], [2, -1]])
+ assert_array_equal(A.find(encode('a'), 0, 2),
+ [[1, -1], [-1, -1], [-1, -1]])
+ assert_array_equal(A.find([encode('1'), encode('P')]),
+ [[-1, -1], [0, -1], [0, 1]])
+ C = (np.array(['ABCDEFGHIJKLMNOPQRSTUVWXYZ',
+ '01234567890123456789012345'])
+ .view(np.char.chararray)).astype(dtype)
+ assert_array_equal(C.find(encode('M')), [12, -1])
+
+ def test_index(self):
+ A = self.A()
+
+ def fail():
+ A.index('a')
+
+ assert_raises(ValueError, fail)
+ assert_(np.char.index('abcba', 'b') == 1)
+ assert_(issubclass(np.char.index('abcba', 'b').dtype.type, np.integer))
+
+ def test_isalnum(self):
+ A = self.A()
+ assert_(issubclass(A.isalnum().dtype.type, np.bool))
+ assert_array_equal(A.isalnum(), [[False, False], [True, True], [False, True]])
+
+ def test_isalpha(self):
+ A = self.A()
+ assert_(issubclass(A.isalpha().dtype.type, np.bool))
+ assert_array_equal(A.isalpha(), [[False, False], [False, True], [False, True]])
+
+ def test_isdigit(self):
+ A = self.A()
+ assert_(issubclass(A.isdigit().dtype.type, np.bool))
+ assert_array_equal(A.isdigit(), [[False, False], [True, False], [False, False]])
+
+ def test_islower(self):
+ A = self.A()
+ assert_(issubclass(A.islower().dtype.type, np.bool))
+ assert_array_equal(A.islower(), [[True, False], [False, False], [False, False]])
+
+ def test_isspace(self):
+ A = self.A()
+ assert_(issubclass(A.isspace().dtype.type, np.bool))
+ assert_array_equal(A.isspace(), [[False, False], [False, False], [False, False]])
+
+ def test_istitle(self):
+ A = self.A()
+ assert_(issubclass(A.istitle().dtype.type, np.bool))
+ assert_array_equal(A.istitle(), [[False, False], [False, False], [False, False]])
+
+ def test_isupper(self):
+ A = self.A()
+ assert_(issubclass(A.isupper().dtype.type, np.bool))
+ assert_array_equal(A.isupper(), [[False, False], [False, False], [False, True]])
+
+ def test_rfind(self):
+ A = self.A()
+ assert_(issubclass(A.rfind('a').dtype.type, np.integer))
+ assert_array_equal(A.rfind('a'), [[1, -1], [-1, 6], [-1, -1]])
+ assert_array_equal(A.rfind('3'), [[-1, -1], [2, -1], [6, -1]])
+ assert_array_equal(A.rfind('a', 0, 2), [[1, -1], [-1, -1], [-1, -1]])
+ assert_array_equal(A.rfind(['1', 'P']), [[-1, -1], [0, -1], [0, 2]])
+
+ def test_rindex(self):
+ A = self.A()
+
+ def fail():
+ A.rindex('a')
+
+ assert_raises(ValueError, fail)
+ assert_(np.char.rindex('abcba', 'b') == 3)
+ assert_(issubclass(np.char.rindex('abcba', 'b').dtype.type, np.integer))
+
+ def test_startswith(self):
+ A = self.A()
+ assert_(issubclass(A.startswith('').dtype.type, np.bool))
+ assert_array_equal(A.startswith(' '), [[1, 0], [0, 0], [0, 0]])
+ assert_array_equal(A.startswith('1', 0, 3), [[0, 0], [1, 0], [1, 0]])
+
+ def fail():
+ A.startswith('3', 'fdjk')
+
+ assert_raises(TypeError, fail)
+
+class TestMethods:
+ def A(self):
+ return np.array([[' abc ', ''],
+ ['12345', 'MixedCase'],
+ ['123 \t 345 \0 ', 'UPPER']],
+ dtype='S').view(np.char.chararray)
+
+ def B(self):
+ return np.array([[' \u03a3 ', ''],
+ ['12345', 'MixedCase'],
+ ['123 \t 345 \0 ', 'UPPER']]) \
+ .view(np.char.chararray)
+
+ def test_capitalize(self):
+ A, B = self.A(), self.B()
+ tgt = [[b' abc ', b''],
+ [b'12345', b'Mixedcase'],
+ [b'123 \t 345 \0 ', b'Upper']]
+ assert_(issubclass(A.capitalize().dtype.type, np.bytes_))
+ assert_array_equal(A.capitalize(), tgt)
+
+ tgt = [[' \u03c3 ', ''],
+ ['12345', 'Mixedcase'],
+ ['123 \t 345 \0 ', 'Upper']]
+ assert_(issubclass(B.capitalize().dtype.type, np.str_))
+ assert_array_equal(B.capitalize(), tgt)
+
+ def test_center(self):
+ A = self.A()
+ assert_(issubclass(A.center(10).dtype.type, np.bytes_))
+ C = A.center([10, 20])
+ assert_array_equal(np.char.str_len(C), [[10, 20], [10, 20], [12, 20]])
+
+ C = A.center(20, b'#')
+ assert_(np.all(C.startswith(b'#')))
+ assert_(np.all(C.endswith(b'#')))
+
+ C = np.char.center(b'FOO', [[10, 20], [15, 8]])
+ tgt = [[b' FOO ', b' FOO '],
+ [b' FOO ', b' FOO ']]
+ assert_(issubclass(C.dtype.type, np.bytes_))
+ assert_array_equal(C, tgt)
+
+ def test_decode(self):
+ A = np.char.array([b'\\u03a3'])
+ assert_(A.decode('unicode-escape')[0] == '\u03a3')
+
+ def test_encode(self):
+ B = self.B().encode('unicode_escape')
+ assert_(B[0][0] == ' \\u03a3 '.encode('latin1'))
+
+ def test_expandtabs(self):
+ T = self.A().expandtabs()
+ assert_(T[2, 0] == b'123 345 \0')
+
+ def test_join(self):
+ # NOTE: list(b'123') == [49, 50, 51]
+ # so that b','.join(b'123') results to an error on Py3
+ A0 = self.A().decode('ascii')
+
+ A = np.char.join([',', '#'], A0)
+ assert_(issubclass(A.dtype.type, np.str_))
+ tgt = np.array([[' ,a,b,c, ', ''],
+ ['1,2,3,4,5', 'M#i#x#e#d#C#a#s#e'],
+ ['1,2,3, ,\t, ,3,4,5, ,\x00, ', 'U#P#P#E#R']])
+ assert_array_equal(np.char.join([',', '#'], A0), tgt)
+
+ def test_ljust(self):
+ A = self.A()
+ assert_(issubclass(A.ljust(10).dtype.type, np.bytes_))
+
+ C = A.ljust([10, 20])
+ assert_array_equal(np.char.str_len(C), [[10, 20], [10, 20], [12, 20]])
+
+ C = A.ljust(20, b'#')
+ assert_array_equal(C.startswith(b'#'), [
+ [False, True], [False, False], [False, False]])
+ assert_(np.all(C.endswith(b'#')))
+
+ C = np.char.ljust(b'FOO', [[10, 20], [15, 8]])
+ tgt = [[b'FOO ', b'FOO '],
+ [b'FOO ', b'FOO ']]
+ assert_(issubclass(C.dtype.type, np.bytes_))
+ assert_array_equal(C, tgt)
+
+ def test_lower(self):
+ A, B = self.A(), self.B()
+ tgt = [[b' abc ', b''],
+ [b'12345', b'mixedcase'],
+ [b'123 \t 345 \0 ', b'upper']]
+ assert_(issubclass(A.lower().dtype.type, np.bytes_))
+ assert_array_equal(A.lower(), tgt)
+
+ tgt = [[' \u03c3 ', ''],
+ ['12345', 'mixedcase'],
+ ['123 \t 345 \0 ', 'upper']]
+ assert_(issubclass(B.lower().dtype.type, np.str_))
+ assert_array_equal(B.lower(), tgt)
+
+ def test_lstrip(self):
+ A, B = self.A(), self.B()
+ tgt = [[b'abc ', b''],
+ [b'12345', b'MixedCase'],
+ [b'123 \t 345 \0 ', b'UPPER']]
+ assert_(issubclass(A.lstrip().dtype.type, np.bytes_))
+ assert_array_equal(A.lstrip(), tgt)
+
+ tgt = [[b' abc', b''],
+ [b'2345', b'ixedCase'],
+ [b'23 \t 345 \x00', b'UPPER']]
+ assert_array_equal(A.lstrip([b'1', b'M']), tgt)
+
+ tgt = [['\u03a3 ', ''],
+ ['12345', 'MixedCase'],
+ ['123 \t 345 \0 ', 'UPPER']]
+ assert_(issubclass(B.lstrip().dtype.type, np.str_))
+ assert_array_equal(B.lstrip(), tgt)
+
+ def test_partition(self):
+ A = self.A()
+ P = A.partition([b'3', b'M'])
+ tgt = [[(b' abc ', b'', b''), (b'', b'', b'')],
+ [(b'12', b'3', b'45'), (b'', b'M', b'ixedCase')],
+ [(b'12', b'3', b' \t 345 \0 '), (b'UPPER', b'', b'')]]
+ assert_(issubclass(P.dtype.type, np.bytes_))
+ assert_array_equal(P, tgt)
+
+ def test_replace(self):
+ A = self.A()
+ R = A.replace([b'3', b'a'],
+ [b'##########', b'@'])
+ tgt = [[b' abc ', b''],
+ [b'12##########45', b'MixedC@se'],
+ [b'12########## \t ##########45 \x00 ', b'UPPER']]
+ assert_(issubclass(R.dtype.type, np.bytes_))
+ assert_array_equal(R, tgt)
+ # Test special cases that should just return the input array,
+ # since replacements are not possible or do nothing.
+ S1 = A.replace(b'A very long byte string, longer than A', b'')
+ assert_array_equal(S1, A)
+ S2 = A.replace(b'', b'')
+ assert_array_equal(S2, A)
+ S3 = A.replace(b'3', b'3')
+ assert_array_equal(S3, A)
+ S4 = A.replace(b'3', b'', count=0)
+ assert_array_equal(S4, A)
+
+ def test_replace_count_and_size(self):
+ a = np.array(['0123456789' * i for i in range(4)]
+ ).view(np.char.chararray)
+ r1 = a.replace('5', 'ABCDE')
+ assert r1.dtype.itemsize == (3 * 10 + 3 * 4) * 4
+ assert_array_equal(r1, np.array(['01234ABCDE6789' * i
+ for i in range(4)]))
+ r2 = a.replace('5', 'ABCDE', count=1)
+ assert r2.dtype.itemsize == (3 * 10 + 4) * 4
+ r3 = a.replace('5', 'ABCDE', count=0)
+ assert r3.dtype.itemsize == a.dtype.itemsize
+ assert_array_equal(r3, a)
+ # Negative values mean to replace all.
+ r4 = a.replace('5', 'ABCDE', count=-1)
+ assert r4.dtype.itemsize == (3 * 10 + 3 * 4) * 4
+ assert_array_equal(r4, r1)
+ # We can do count on an element-by-element basis.
+ r5 = a.replace('5', 'ABCDE', count=[-1, -1, -1, 1])
+ assert r5.dtype.itemsize == (3 * 10 + 4) * 4
+ assert_array_equal(r5, np.array(
+ ['01234ABCDE6789' * i for i in range(3)]
+ + ['01234ABCDE6789' + '0123456789' * 2]))
+
+ def test_replace_broadcasting(self):
+ a = np.array('0,0,0').view(np.char.chararray)
+ r1 = a.replace('0', '1', count=np.arange(3))
+ assert r1.dtype == a.dtype
+ assert_array_equal(r1, np.array(['0,0,0', '1,0,0', '1,1,0']))
+ r2 = a.replace('0', [['1'], ['2']], count=np.arange(1, 4))
+ assert_array_equal(r2, np.array([['1,0,0', '1,1,0', '1,1,1'],
+ ['2,0,0', '2,2,0', '2,2,2']]))
+ r3 = a.replace(['0', '0,0', '0,0,0'], 'X')
+ assert_array_equal(r3, np.array(['X,X,X', 'X,0', 'X']))
+
+ def test_rjust(self):
+ A = self.A()
+ assert_(issubclass(A.rjust(10).dtype.type, np.bytes_))
+
+ C = A.rjust([10, 20])
+ assert_array_equal(np.char.str_len(C), [[10, 20], [10, 20], [12, 20]])
+
+ C = A.rjust(20, b'#')
+ assert_(np.all(C.startswith(b'#')))
+ assert_array_equal(C.endswith(b'#'),
+ [[False, True], [False, False], [False, False]])
+
+ C = np.char.rjust(b'FOO', [[10, 20], [15, 8]])
+ tgt = [[b' FOO', b' FOO'],
+ [b' FOO', b' FOO']]
+ assert_(issubclass(C.dtype.type, np.bytes_))
+ assert_array_equal(C, tgt)
+
+ def test_rpartition(self):
+ A = self.A()
+ P = A.rpartition([b'3', b'M'])
+ tgt = [[(b'', b'', b' abc '), (b'', b'', b'')],
+ [(b'12', b'3', b'45'), (b'', b'M', b'ixedCase')],
+ [(b'123 \t ', b'3', b'45 \0 '), (b'', b'', b'UPPER')]]
+ assert_(issubclass(P.dtype.type, np.bytes_))
+ assert_array_equal(P, tgt)
+
+ def test_rsplit(self):
+ A = self.A().rsplit(b'3')
+ tgt = [[[b' abc '], [b'']],
+ [[b'12', b'45'], [b'MixedCase']],
+ [[b'12', b' \t ', b'45 \x00 '], [b'UPPER']]]
+ assert_(issubclass(A.dtype.type, np.object_))
+ assert_equal(A.tolist(), tgt)
+
+ def test_rstrip(self):
+ A, B = self.A(), self.B()
+ assert_(issubclass(A.rstrip().dtype.type, np.bytes_))
+
+ tgt = [[b' abc', b''],
+ [b'12345', b'MixedCase'],
+ [b'123 \t 345', b'UPPER']]
+ assert_array_equal(A.rstrip(), tgt)
+
+ tgt = [[b' abc ', b''],
+ [b'1234', b'MixedCase'],
+ [b'123 \t 345 \x00', b'UPP']
+ ]
+ assert_array_equal(A.rstrip([b'5', b'ER']), tgt)
+
+ tgt = [[' \u03a3', ''],
+ ['12345', 'MixedCase'],
+ ['123 \t 345', 'UPPER']]
+ assert_(issubclass(B.rstrip().dtype.type, np.str_))
+ assert_array_equal(B.rstrip(), tgt)
+
+ def test_strip(self):
+ A, B = self.A(), self.B()
+ tgt = [[b'abc', b''],
+ [b'12345', b'MixedCase'],
+ [b'123 \t 345', b'UPPER']]
+ assert_(issubclass(A.strip().dtype.type, np.bytes_))
+ assert_array_equal(A.strip(), tgt)
+
+ tgt = [[b' abc ', b''],
+ [b'234', b'ixedCas'],
+ [b'23 \t 345 \x00', b'UPP']]
+ assert_array_equal(A.strip([b'15', b'EReM']), tgt)
+
+ tgt = [['\u03a3', ''],
+ ['12345', 'MixedCase'],
+ ['123 \t 345', 'UPPER']]
+ assert_(issubclass(B.strip().dtype.type, np.str_))
+ assert_array_equal(B.strip(), tgt)
+
+ def test_split(self):
+ A = self.A().split(b'3')
+ tgt = [
+ [[b' abc '], [b'']],
+ [[b'12', b'45'], [b'MixedCase']],
+ [[b'12', b' \t ', b'45 \x00 '], [b'UPPER']]]
+ assert_(issubclass(A.dtype.type, np.object_))
+ assert_equal(A.tolist(), tgt)
+
+ def test_splitlines(self):
+ A = np.char.array(['abc\nfds\nwer']).splitlines()
+ assert_(issubclass(A.dtype.type, np.object_))
+ assert_(A.shape == (1,))
+ assert_(len(A[0]) == 3)
+
+ def test_swapcase(self):
+ A, B = self.A(), self.B()
+ tgt = [[b' ABC ', b''],
+ [b'12345', b'mIXEDcASE'],
+ [b'123 \t 345 \0 ', b'upper']]
+ assert_(issubclass(A.swapcase().dtype.type, np.bytes_))
+ assert_array_equal(A.swapcase(), tgt)
+
+ tgt = [[' \u03c3 ', ''],
+ ['12345', 'mIXEDcASE'],
+ ['123 \t 345 \0 ', 'upper']]
+ assert_(issubclass(B.swapcase().dtype.type, np.str_))
+ assert_array_equal(B.swapcase(), tgt)
+
+ def test_title(self):
+ A, B = self.A(), self.B()
+ tgt = [[b' Abc ', b''],
+ [b'12345', b'Mixedcase'],
+ [b'123 \t 345 \0 ', b'Upper']]
+ assert_(issubclass(A.title().dtype.type, np.bytes_))
+ assert_array_equal(A.title(), tgt)
+
+ tgt = [[' \u03a3 ', ''],
+ ['12345', 'Mixedcase'],
+ ['123 \t 345 \0 ', 'Upper']]
+ assert_(issubclass(B.title().dtype.type, np.str_))
+ assert_array_equal(B.title(), tgt)
+
+ def test_upper(self):
+ A, B = self.A(), self.B()
+ tgt = [[b' ABC ', b''],
+ [b'12345', b'MIXEDCASE'],
+ [b'123 \t 345 \0 ', b'UPPER']]
+ assert_(issubclass(A.upper().dtype.type, np.bytes_))
+ assert_array_equal(A.upper(), tgt)
+
+ tgt = [[' \u03a3 ', ''],
+ ['12345', 'MIXEDCASE'],
+ ['123 \t 345 \0 ', 'UPPER']]
+ assert_(issubclass(B.upper().dtype.type, np.str_))
+ assert_array_equal(B.upper(), tgt)
+
+ def test_isnumeric(self):
+ A, B = self.A(), self.B()
+
+ def fail():
+ A.isnumeric()
+
+ assert_raises(TypeError, fail)
+ assert_(issubclass(B.isnumeric().dtype.type, np.bool))
+ assert_array_equal(B.isnumeric(), [
+ [False, False], [True, False], [False, False]])
+
+ def test_isdecimal(self):
+ A, B = self.A(), self.B()
+
+ def fail():
+ A.isdecimal()
+
+ assert_raises(TypeError, fail)
+ assert_(issubclass(B.isdecimal().dtype.type, np.bool))
+ assert_array_equal(B.isdecimal(), [
+ [False, False], [True, False], [False, False]])
+
+class TestOperations:
+ def A(self):
+ return np.array([['abc', '123'],
+ ['789', 'xyz']]).view(np.char.chararray)
+
+ def B(self):
+ return np.array([['efg', '456'],
+ ['051', 'tuv']]).view(np.char.chararray)
+
+ def test_argsort(self):
+ arr = np.array(['abc'] * 4).view(np.char.chararray)
+ actual = arr.argsort(stable=True)
+ assert_array_equal(actual, [0, 1, 2, 3])
+
+ def test_add(self):
+ A, B = self.A(), self.B()
+ AB = np.array([['abcefg', '123456'],
+ ['789051', 'xyztuv']]).view(np.char.chararray)
+ assert_array_equal(AB, (A + B))
+ assert_(len((A + B)[0][0]) == 6)
+
+ def test_radd(self):
+ A = self.A()
+ QA = np.array([['qabc', 'q123'],
+ ['q789', 'qxyz']]).view(np.char.chararray)
+ assert_array_equal(QA, ('q' + A))
+
+ def test_mul(self):
+ A = self.A()
+ for r in (2, 3, 5, 7, 197):
+ Ar = np.array([[A[0, 0] * r, A[0, 1] * r],
+ [A[1, 0] * r, A[1, 1] * r]]).view(np.char.chararray)
+
+ assert_array_equal(Ar, (A * r))
+
+ for ob in [object(), 'qrs']:
+ with assert_raises_regex(ValueError,
+ 'Can only multiply by integers'):
+ A * ob
+
+ def test_rmul(self):
+ A = self.A()
+ for r in (2, 3, 5, 7, 197):
+ Ar = np.array([[A[0, 0] * r, A[0, 1] * r],
+ [A[1, 0] * r, A[1, 1] * r]]).view(np.char.chararray)
+ assert_array_equal(Ar, (r * A))
+
+ for ob in [object(), 'qrs']:
+ with assert_raises_regex(ValueError,
+ 'Can only multiply by integers'):
+ ob * A
+
+ def test_mod(self):
+ """Ticket #856"""
+ F = np.array([['%d', '%f'], ['%s', '%r']]).view(np.char.chararray)
+ C = np.array([[3, 7], [19, 1]], dtype=np.int64)
+ FC = np.array([['3', '7.000000'],
+ ['19', 'np.int64(1)']]).view(np.char.chararray)
+ assert_array_equal(FC, F % C)
+
+ A = np.array([['%.3f', '%d'], ['%s', '%r']]).view(np.char.chararray)
+ A1 = np.array([['1.000', '1'],
+ ['1', repr(np.array(1)[()])]]).view(np.char.chararray)
+ assert_array_equal(A1, (A % 1))
+
+ A2 = np.array([['1.000', '2'],
+ ['3', repr(np.array(4)[()])]]).view(np.char.chararray)
+ assert_array_equal(A2, (A % [[1, 2], [3, 4]]))
+
+ def test_rmod(self):
+ A = self.A()
+ assert_(f"{A}" == str(A))
+ assert_(f"{A!r}" == repr(A))
+
+ for ob in [42, object()]:
+ with assert_raises_regex(
+ TypeError, "unsupported operand type.* and 'chararray'"):
+ ob % A
+
+ def test_slice(self):
+ """Regression test for https://github.com/numpy/numpy/issues/5982"""
+
+ arr = np.array([['abc ', 'def '], ['geh ', 'ijk ']],
+ dtype='S4').view(np.char.chararray)
+ sl1 = arr[:]
+ assert_array_equal(sl1, arr)
+ assert_(sl1.base is arr)
+ assert_(sl1.base.base is arr.base)
+
+ sl2 = arr[:, :]
+ assert_array_equal(sl2, arr)
+ assert_(sl2.base is arr)
+ assert_(sl2.base.base is arr.base)
+
+ assert_(arr[0, 0] == b'abc')
+
+ @pytest.mark.parametrize('data', [['plate', ' ', 'shrimp'],
+ [b'retro', b' ', b'encabulator']])
+ def test_getitem_length_zero_item(self, data):
+ # Regression test for gh-26375.
+ a = np.char.array(data)
+ # a.dtype.type() will be an empty string or bytes instance.
+ # The equality test will fail if a[1] has the wrong type
+ # or does not have length 0.
+ assert_equal(a[1], a.dtype.type())
+
+class TestMethodsEmptyArray:
+ def test_encode(self):
+ res = np.char.encode(np.array([], dtype='U'))
+ assert_array_equal(res, [])
+ assert_(res.dtype.char == 'S')
+
+ def test_decode(self):
+ res = np.char.decode(np.array([], dtype='S'))
+ assert_array_equal(res, [])
+ assert_(res.dtype.char == 'U')
+
+ def test_decode_with_reshape(self):
+ res = np.char.decode(np.array([], dtype='S').reshape((1, 0, 1)))
+ assert_(res.shape == (1, 0, 1))
+
+class TestMethodsScalarValues:
+ def test_mod(self):
+ A = np.array([[' abc ', ''],
+ ['12345', 'MixedCase'],
+ ['123 \t 345 \0 ', 'UPPER']], dtype='S')
+ tgt = [[b'123 abc ', b'123'],
+ [b'12312345', b'123MixedCase'],
+ [b'123123 \t 345 \0 ', b'123UPPER']]
+ assert_array_equal(np.char.mod(b"123%s", A), tgt)
+
+ def test_decode(self):
+ bytestring = b'\x81\xc1\x81\xc1\x81\xc1'
+ assert_equal(np.char.decode(bytestring, encoding='cp037'),
+ 'aAaAaA')
+
+ def test_encode(self):
+ unicode = 'aAaAaA'
+ assert_equal(np.char.encode(unicode, encoding='cp037'),
+ b'\x81\xc1\x81\xc1\x81\xc1')
+
+ def test_expandtabs(self):
+ s = "\tone level of indentation\n\t\ttwo levels of indentation"
+ assert_equal(
+ np.char.expandtabs(s, tabsize=2),
+ " one level of indentation\n two levels of indentation"
+ )
+
+ def test_join(self):
+ seps = np.array(['-', '_'])
+ assert_array_equal(np.char.join(seps, 'hello'),
+ ['h-e-l-l-o', 'h_e_l_l_o'])
+
+ def test_partition(self):
+ assert_equal(np.char.partition('This string', ' '),
+ ['This', ' ', 'string'])
+
+ def test_rpartition(self):
+ assert_equal(np.char.rpartition('This string here', ' '),
+ ['This string', ' ', 'here'])
+
+ def test_replace(self):
+ assert_equal(np.char.replace('Python is good', 'good', 'great'),
+ 'Python is great')
+
+def test_empty_indexing():
+ """Regression test for ticket 1948."""
+ # Check that indexing a chararray with an empty list/array returns an
+ # empty chararray instead of a chararray with a single empty string in it.
+ s = np.char.chararray((4,))
+ assert_(s[[]].size == 0)
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/test_deprecations.py b/python/user_packages/Python313/site-packages/numpy/_core/tests/test_deprecations.py
new file mode 100644
index 0000000000000000000000000000000000000000..0d4ad034bc36a07d03f3fe2bff4a74066b1ccb06
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/tests/test_deprecations.py
@@ -0,0 +1,460 @@
+"""
+Tests related to deprecation warnings. Also a convenient place
+to document how deprecations should eventually be turned into errors.
+
+"""
+import contextlib
+import warnings
+
+import pytest
+
+import numpy as np
+import numpy._core._struct_ufunc_tests as struct_ufunc
+from numpy._core._multiarray_tests import fromstring_null_term_c_api # noqa: F401
+from numpy.testing import assert_raises
+
+
+class _DeprecationTestCase:
+ # Just as warning: warnings uses re.match, so the start of this message
+ # must match.
+ message = ''
+ warning_cls = DeprecationWarning
+
+ @contextlib.contextmanager
+ def filter_warnings(self):
+ with warnings.catch_warnings(record=True) as w:
+ # Do *not* ignore other DeprecationWarnings. Ignoring warnings
+ # can give very confusing results because of
+ # https://bugs.python.org/issue4180 and it is probably simplest to
+ # try to keep the tests cleanly giving only the right warning type.
+ # (While checking them set to "error" those are ignored anyway)
+ # We still have them show up, because otherwise they would be raised
+ warnings.filterwarnings("always", category=self.warning_cls)
+ warnings.filterwarnings("always", message=self.message,
+ category=self.warning_cls)
+ yield w
+ return
+
+ def assert_deprecated(self, function, num=1, ignore_others=False,
+ function_fails=False,
+ exceptions=np._NoValue,
+ args=(), kwargs={}):
+ """Test if DeprecationWarnings are given and raised.
+
+ This first checks if the function when called gives `num`
+ DeprecationWarnings, after that it tries to raise these
+ DeprecationWarnings and compares them with `exceptions`.
+ The exceptions can be different for cases where this code path
+ is simply not anticipated and the exception is replaced.
+
+ Parameters
+ ----------
+ function : callable
+ The function to test
+ num : int
+ Number of DeprecationWarnings to expect. This should normally be 1.
+ ignore_others : bool
+ Whether warnings of the wrong type should be ignored (note that
+ the message is not checked)
+ function_fails : bool
+ If the function would normally fail, setting this will check for
+ warnings inside a try/except block.
+ exceptions : Exception or tuple of Exceptions
+ Exception to expect when turning the warnings into an error.
+ The default checks for DeprecationWarnings. If exceptions is
+ empty the function is expected to run successfully.
+ args : tuple
+ Arguments for `function`
+ kwargs : dict
+ Keyword arguments for `function`
+ """
+ __tracebackhide__ = True # Hide traceback for py.test
+
+ if exceptions is np._NoValue:
+ exceptions = (self.warning_cls,)
+
+ if function_fails:
+ context_manager = contextlib.suppress(Exception)
+ else:
+ context_manager = contextlib.nullcontext()
+ with context_manager:
+ with self.filter_warnings() as w_context:
+ function(*args, **kwargs)
+
+ # just in case, clear the registry
+ num_found = 0
+ for warning in w_context:
+ if warning.category is self.warning_cls:
+ num_found += 1
+ elif not ignore_others:
+ raise AssertionError(
+ "expected %s but got: %s" %
+ (self.warning_cls.__name__, warning.category))
+ if num is not None and num_found != num:
+ msg = f"{len(w_context)} warnings found but {num} expected."
+ lst = [str(w) for w in w_context]
+ raise AssertionError("\n".join([msg] + lst))
+
+ with warnings.catch_warnings():
+ warnings.filterwarnings("error", message=self.message,
+ category=self.warning_cls)
+ try:
+ function(*args, **kwargs)
+ if exceptions != ():
+ raise AssertionError(
+ "No error raised during function call")
+ except exceptions:
+ if exceptions == ():
+ raise AssertionError(
+ "Error raised during function call")
+
+ def assert_not_deprecated(self, function, args=(), kwargs={}):
+ """Test that warnings are not raised.
+
+ This is just a shorthand for:
+
+ self.assert_deprecated(function, num=0, ignore_others=True,
+ exceptions=tuple(), args=args, kwargs=kwargs)
+ """
+ self.assert_deprecated(function, num=0, ignore_others=True,
+ exceptions=(), args=args, kwargs=kwargs)
+
+
+class _VisibleDeprecationTestCase(_DeprecationTestCase):
+ warning_cls = np.exceptions.VisibleDeprecationWarning
+
+
+class TestTestDeprecated:
+ def test_assert_deprecated(self):
+ test_case_instance = _DeprecationTestCase()
+ assert_raises(AssertionError,
+ test_case_instance.assert_deprecated,
+ lambda: None)
+
+ def foo():
+ warnings.warn("foo", category=DeprecationWarning, stacklevel=2)
+
+ test_case_instance.assert_deprecated(foo)
+
+
+class TestBincount(_DeprecationTestCase):
+ # 2024-07-29, 2.1.0
+ @pytest.mark.parametrize('badlist', [[0.5, 1.2, 1.5],
+ ['0', '1', '1']])
+ def test_bincount_bad_list(self, badlist):
+ self.assert_deprecated(lambda: np.bincount(badlist))
+
+
+class BuiltInRoundComplexDType(_DeprecationTestCase):
+ # 2020-03-31 1.19.0
+ deprecated_types = [np.csingle, np.cdouble, np.clongdouble]
+ not_deprecated_types = [
+ np.int8, np.int16, np.int32, np.int64,
+ np.uint8, np.uint16, np.uint32, np.uint64,
+ np.float16, np.float32, np.float64,
+ ]
+
+ def test_deprecated(self):
+ for scalar_type in self.deprecated_types:
+ scalar = scalar_type(0)
+ self.assert_deprecated(round, args=(scalar,))
+ self.assert_deprecated(round, args=(scalar, 0))
+ self.assert_deprecated(round, args=(scalar,), kwargs={'ndigits': 0})
+
+ def test_not_deprecated(self):
+ for scalar_type in self.not_deprecated_types:
+ scalar = scalar_type(0)
+ self.assert_not_deprecated(round, args=(scalar,))
+ self.assert_not_deprecated(round, args=(scalar, 0))
+ self.assert_not_deprecated(round, args=(scalar,), kwargs={'ndigits': 0})
+
+
+class FlatteningConcatenateUnsafeCast(_DeprecationTestCase):
+ # NumPy 1.20, 2020-09-03
+ message = "concatenate with `axis=None` will use same-kind casting"
+
+ def test_deprecated(self):
+ self.assert_deprecated(np.concatenate,
+ args=(([0.], [1.]),),
+ kwargs={'axis': None, 'out': np.empty(2, dtype=np.int64)})
+
+ def test_not_deprecated(self):
+ self.assert_not_deprecated(np.concatenate,
+ args=(([0.], [1.]),),
+ kwargs={'axis': None, 'out': np.empty(2, dtype=np.int64),
+ 'casting': "unsafe"})
+
+ with assert_raises(TypeError):
+ # Tests should notice if the deprecation warning is given first...
+ np.concatenate(([0.], [1.]), out=np.empty(2, dtype=np.int64),
+ casting="same_kind")
+
+
+class TestCtypesGetter(_DeprecationTestCase):
+ ctypes = np.array([1]).ctypes
+
+ @pytest.mark.parametrize("name", ["data", "shape", "strides", "_as_parameter_"])
+ def test_not_deprecated(self, name: str) -> None:
+ self.assert_not_deprecated(lambda: getattr(self.ctypes, name))
+
+
+class TestPyIntConversion(_DeprecationTestCase):
+ message = r".*stop allowing conversion of out-of-bound.*"
+
+ @pytest.mark.parametrize("dtype", np.typecodes["AllInteger"])
+ def test_deprecated_scalar(self, dtype):
+ dtype = np.dtype(dtype)
+ info = np.iinfo(dtype)
+
+ # Cover the most common creation paths (all end up in the
+ # same place):
+ def scalar(value, dtype):
+ dtype.type(value)
+
+ def assign(value, dtype):
+ arr = np.array([0, 0, 0], dtype=dtype)
+ arr[2] = value
+
+ def create(value, dtype):
+ np.array([value], dtype=dtype)
+
+ for creation_func in [scalar, assign, create]:
+ try:
+ self.assert_deprecated(
+ lambda: creation_func(info.min - 1, dtype))
+ except OverflowError:
+ pass # OverflowErrors always happened also before and are OK.
+
+ try:
+ self.assert_deprecated(
+ lambda: creation_func(info.max + 1, dtype))
+ except OverflowError:
+ pass # OverflowErrors always happened also before and are OK.
+
+
+@pytest.mark.parametrize("name", ["str", "bytes", "object"])
+def test_future_scalar_attributes(name):
+ # FutureWarning added 2022-11-17, NumPy 1.24,
+ assert name not in dir(np) # we may want to not add them
+ with pytest.warns(FutureWarning,
+ match=f"In the future .*{name}"):
+ assert not hasattr(np, name)
+
+ # Unfortunately, they are currently still valid via `np.dtype()`
+ np.dtype(name)
+ name in np._core.sctypeDict
+
+
+# Ignore the above future attribute warning for this test.
+@pytest.mark.filterwarnings("ignore:In the future:FutureWarning")
+class TestRemovedGlobals:
+ # Removed 2023-01-12, NumPy 1.24.0
+ # Not a deprecation, but the large error was added to aid those who missed
+ # the previous deprecation, and should be removed similarly to one
+ # (or faster).
+ @pytest.mark.parametrize("name",
+ ["object", "float", "complex", "str", "int"])
+ def test_attributeerror_includes_info(self, name):
+ msg = f".*\n`np.{name}` was a deprecated alias for the builtin"
+ with pytest.raises(AttributeError, match=msg):
+ getattr(np, name)
+
+
+class TestDeprecatedFinfo(_DeprecationTestCase):
+ # Deprecated in NumPy 1.25, 2023-01-16
+ def test_deprecated_none(self):
+ self.assert_deprecated(np.finfo, args=(None,))
+
+
+class TestMathAlias(_DeprecationTestCase):
+ def test_deprecated_np_lib_math(self):
+ self.assert_deprecated(lambda: np.lib.math)
+
+
+class TestLibImports(_DeprecationTestCase):
+ # Deprecated in Numpy 1.26.0, 2023-09
+ def test_lib_functions_deprecation_call(self):
+ from numpy import row_stack
+ from numpy._core.numerictypes import maximum_sctype
+ from numpy.lib._npyio_impl import recfromcsv, recfromtxt
+ from numpy.lib._shape_base_impl import get_array_wrap
+ from numpy.lib._utils_impl import safe_eval
+ from numpy.lib.tests.test_io import TextIO
+
+ self.assert_deprecated(lambda: safe_eval("None"))
+
+ data_gen = lambda: TextIO('A,B\n0,1\n2,3')
+ kwargs = {'delimiter': ",", 'missing_values': "N/A", 'names': True}
+ self.assert_deprecated(lambda: recfromcsv(data_gen()))
+ self.assert_deprecated(lambda: recfromtxt(data_gen(), **kwargs))
+
+ self.assert_deprecated(get_array_wrap)
+ self.assert_deprecated(lambda: maximum_sctype(int))
+
+ self.assert_deprecated(lambda: row_stack([[]]))
+ self.assert_deprecated(lambda: np.chararray)
+
+
+class TestDeprecatedDTypeAliases(_DeprecationTestCase):
+
+ def _check_for_warning(self, func):
+ with pytest.warns(DeprecationWarning,
+ match="alias 'a' was deprecated in NumPy 2.0") as w:
+ func()
+ assert len(w) == 1
+
+ def test_a_dtype_alias(self):
+ for dtype in ["a", "a10"]:
+ f = lambda: np.dtype(dtype)
+ self._check_for_warning(f)
+ self.assert_deprecated(f)
+ f = lambda: np.array(["hello", "world"]).astype("a10")
+ self._check_for_warning(f)
+ self.assert_deprecated(f)
+
+
+class TestDeprecatedArrayWrap(_DeprecationTestCase):
+ message = "__array_wrap__.*"
+
+ def test_deprecated(self):
+ class Test1:
+ def __array__(self, dtype=None, copy=None):
+ return np.arange(4)
+
+ def __array_wrap__(self, arr, context=None):
+ self.called = True
+ return 'pass context'
+
+ class Test2(Test1):
+ def __array_wrap__(self, arr):
+ self.called = True
+ return 'pass'
+
+ test1 = Test1()
+ test2 = Test2()
+ self.assert_deprecated(lambda: np.negative(test1))
+ assert test1.called
+ self.assert_deprecated(lambda: np.negative(test2))
+ assert test2.called
+
+class TestDeprecatedArrayAttributeSetting(_DeprecationTestCase):
+ message = "Setting the .*on a NumPy array has been deprecated.*"
+
+ def test_deprecated_strides_set(self):
+ x = np.eye(2)
+ self.assert_deprecated(setattr, args=(x, 'strides', x.strides))
+
+
+class TestDeprecatedDTypeParenthesizedRepeatCount(_DeprecationTestCase):
+ message = "Passing in a parenthesized single number"
+
+ @pytest.mark.parametrize("string", ["(2)i,", "(3)3S,", "f,(2)f"])
+ def test_parenthesized_repeat_count(self, string):
+ self.assert_deprecated(np.dtype, args=(string,))
+
+
+class TestAddNewdocUFunc(_DeprecationTestCase):
+ # Deprecated in Numpy 2.2, 2024-11
+ @pytest.mark.thread_unsafe(
+ reason="modifies and checks docstring which is global state"
+ )
+ def test_deprecated(self):
+ doc = struct_ufunc.add_triplet.__doc__
+ # gh-26718
+ # This test mutates the C-level docstring pointer for add_triplet,
+ # which is permanent once set. Skip when re-running tests.
+ if doc is not None and "new docs" in doc:
+ pytest.skip("Cannot retest deprecation, otherwise ValueError: "
+ "Cannot change docstring of ufunc with non-NULL docstring")
+ self.assert_deprecated(
+ lambda: np._core.umath._add_newdoc_ufunc(
+ struct_ufunc.add_triplet, "new docs"
+ )
+ )
+
+
+class TestDTypeAlignBool(_VisibleDeprecationTestCase):
+ # Deprecated in Numpy 2.4, 2025-07
+ # NOTE: As you can see, finalizing this deprecation breaks some (very) old
+ # pickle files. This may be fine, but needs to be done with some care since
+ # it breaks all of them and not just some.
+ # (Maybe it should be a 3.0 or only after warning more explicitly around pickles.)
+ message = r"dtype\(\): align should be passed as Python or NumPy boolean but got "
+
+ def test_deprecated(self):
+ # in particular integers should be rejected because one may think they mean
+ # alignment, or pass them accidentally as a subarray shape (meaning to pass
+ # a tuple).
+ self.assert_deprecated(lambda: np.dtype("f8", align=3))
+
+ @pytest.mark.parametrize("align", [True, False, np.True_, np.False_])
+ def test_not_deprecated(self, align):
+ # if the user passes a bool, it is accepted.
+ self.assert_not_deprecated(lambda: np.dtype("f8", align=align))
+
+
+class TestFlatiterIndexing0dBoolIndex(_DeprecationTestCase):
+ # Deprecated in Numpy 2.4, 2025-07
+ message = r"Indexing flat iterators with a 0-dimensional boolean index"
+
+ def test_0d_boolean_index_deprecated(self):
+ arr = np.arange(3)
+ # 0d boolean indices on flat iterators are deprecated
+ self.assert_deprecated(lambda: arr.flat[True])
+
+ def test_0d_boolean_assign_index_deprecated(self):
+ arr = np.arange(3)
+
+ def assign_to_index():
+ arr.flat[True] = 10
+
+ self.assert_deprecated(assign_to_index)
+
+
+class TestFlatiterIndexingFloatIndex(_DeprecationTestCase):
+ # Deprecated in NumPy 2.4, 2025-07
+ message = r"Invalid non-array indices for iterator objects"
+
+ def test_float_index_deprecated(self):
+ arr = np.arange(3)
+ # float indices on flat iterators are deprecated
+ self.assert_deprecated(lambda: arr.flat[[1.]])
+
+ def test_float_assign_index_deprecated(self):
+ arr = np.arange(3)
+
+ def assign_to_index():
+ arr.flat[[1.]] = 10
+
+ self.assert_deprecated(assign_to_index)
+
+
+@pytest.mark.thread_unsafe(
+ reason="warning control utilities are deprecated due to being thread-unsafe"
+)
+class TestWarningUtilityDeprecations(_DeprecationTestCase):
+ # Deprecation in NumPy 2.4, 2025-08
+ message = r"NumPy warning suppression and assertion utilities are deprecated."
+
+ def test_assert_warns_deprecated(self):
+ def use_assert_warns():
+ with np.testing.assert_warns(RuntimeWarning):
+ warnings.warn("foo", RuntimeWarning, stacklevel=1)
+
+ self.assert_deprecated(use_assert_warns)
+
+ def test_suppress_warnings_deprecated(self):
+ def use_suppress_warnings():
+ with np.testing.suppress_warnings() as sup:
+ sup.filter(RuntimeWarning, 'invalid value encountered in divide')
+
+ self.assert_deprecated(use_suppress_warnings)
+
+
+class TestTooManyArgsExtremum(_DeprecationTestCase):
+ # Deprecated in Numpy 2.4, 2025-08, gh-27639
+ message = "Passing more than 2 positional arguments to np.maximum and np.minimum "
+
+ @pytest.mark.parametrize("ufunc", [np.minimum, np.maximum])
+ def test_extremem_3_args(self, ufunc):
+ self.assert_deprecated(ufunc, args=(np.ones(1), np.zeros(1), np.empty(1)))
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/test_dlpack.py b/python/user_packages/Python313/site-packages/numpy/_core/tests/test_dlpack.py
new file mode 100644
index 0000000000000000000000000000000000000000..a5d6cbfddb8b6d917bc54e899557c015290f7e4d
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/tests/test_dlpack.py
@@ -0,0 +1,190 @@
+import sys
+
+import pytest
+
+import numpy as np
+from numpy.testing import IS_PYPY, assert_array_equal
+
+
+def new_and_old_dlpack():
+ yield np.arange(5)
+
+ class OldDLPack(np.ndarray):
+ # Support only the "old" version
+ def __dlpack__(self, stream=None):
+ return super().__dlpack__(stream=None)
+
+ yield np.arange(5).view(OldDLPack)
+
+
+class TestDLPack:
+ @pytest.mark.skipif(IS_PYPY, reason="PyPy can't get refcounts.")
+ @pytest.mark.parametrize("max_version", [(0, 0), None, (1, 0), (100, 3)])
+ def test_dunder_dlpack_refcount(self, max_version):
+ x = np.arange(5)
+ y = x.__dlpack__(max_version=max_version)
+ startcount = sys.getrefcount(x)
+ del y
+ assert startcount - sys.getrefcount(x) == 1
+
+ def test_dunder_dlpack_stream(self):
+ x = np.arange(5)
+ x.__dlpack__(stream=None)
+
+ with pytest.raises(RuntimeError):
+ x.__dlpack__(stream=1)
+
+ def test_dunder_dlpack_copy(self):
+ # Checks the argument parsing of __dlpack__ explicitly.
+ # Honoring the flag is tested in the from_dlpack round-tripping test.
+ x = np.arange(5)
+ x.__dlpack__(copy=True)
+ x.__dlpack__(copy=None)
+ x.__dlpack__(copy=False)
+
+ with pytest.raises(ValueError):
+ # NOTE: The copy converter should be stricter, but not just here.
+ x.__dlpack__(copy=np.array([1, 2, 3]))
+
+ def test_strides_not_multiple_of_itemsize(self):
+ dt = np.dtype([('int', np.int32), ('char', np.int8)])
+ y = np.zeros((5,), dtype=dt)
+ z = y['int']
+
+ with pytest.raises(BufferError):
+ np.from_dlpack(z)
+
+ @pytest.mark.skipif(IS_PYPY, reason="PyPy can't get refcounts.")
+ @pytest.mark.parametrize("arr", new_and_old_dlpack())
+ def test_from_dlpack_refcount(self, arr):
+ arr = arr.copy()
+ y = np.from_dlpack(arr)
+ startcount = sys.getrefcount(arr)
+ del y
+ assert startcount - sys.getrefcount(arr) == 1
+
+ @pytest.mark.parametrize("dtype", [
+ np.bool,
+ np.int8, np.int16, np.int32, np.int64,
+ np.uint8, np.uint16, np.uint32, np.uint64,
+ np.float16, np.float32, np.float64,
+ np.complex64, np.complex128
+ ])
+ @pytest.mark.parametrize("arr", new_and_old_dlpack())
+ def test_dtype_passthrough(self, arr, dtype):
+ x = arr.astype(dtype)
+ y = np.from_dlpack(x)
+
+ assert y.dtype == x.dtype
+ assert_array_equal(x, y)
+
+ def test_invalid_dtype(self):
+ x = np.asarray(np.datetime64('2021-05-27'))
+
+ with pytest.raises(BufferError):
+ np.from_dlpack(x)
+
+ def test_invalid_byte_swapping(self):
+ dt = np.dtype('=i8').newbyteorder()
+ x = np.arange(5, dtype=dt)
+
+ with pytest.raises(BufferError):
+ np.from_dlpack(x)
+
+ def test_non_contiguous(self):
+ x = np.arange(25).reshape((5, 5))
+
+ y1 = x[0]
+ assert_array_equal(y1, np.from_dlpack(y1))
+
+ y2 = x[:, 0]
+ assert_array_equal(y2, np.from_dlpack(y2))
+
+ y3 = x[1, :]
+ assert_array_equal(y3, np.from_dlpack(y3))
+
+ y4 = x[1]
+ assert_array_equal(y4, np.from_dlpack(y4))
+
+ y5 = np.diagonal(x).copy()
+ assert_array_equal(y5, np.from_dlpack(y5))
+
+ @pytest.mark.parametrize("ndim", range(33))
+ def test_higher_dims(self, ndim):
+ shape = (1,) * ndim
+ x = np.zeros(shape, dtype=np.float64)
+
+ assert shape == np.from_dlpack(x).shape
+
+ def test_dlpack_device(self):
+ x = np.arange(5)
+ assert x.__dlpack_device__() == (1, 0)
+ y = np.from_dlpack(x)
+ assert y.__dlpack_device__() == (1, 0)
+ z = y[::2]
+ assert z.__dlpack_device__() == (1, 0)
+
+ def dlpack_deleter_exception(self, max_version):
+ x = np.arange(5)
+ _ = x.__dlpack__(max_version=max_version)
+ raise RuntimeError
+
+ @pytest.mark.parametrize("max_version", [None, (1, 0)])
+ def test_dlpack_destructor_exception(self, max_version):
+ with pytest.raises(RuntimeError):
+ self.dlpack_deleter_exception(max_version=max_version)
+
+ def test_readonly(self):
+ x = np.arange(5)
+ x.flags.writeable = False
+ # Raises without max_version
+ with pytest.raises(BufferError):
+ x.__dlpack__()
+
+ # But works fine if we try with version
+ y = np.from_dlpack(x)
+ assert not y.flags.writeable
+
+ def test_writeable(self):
+ x_new, x_old = new_and_old_dlpack()
+
+ # new dlpacks respect writeability
+ y = np.from_dlpack(x_new)
+ assert y.flags.writeable
+
+ # old dlpacks are not writeable for backwards compatibility
+ y = np.from_dlpack(x_old)
+ assert not y.flags.writeable
+
+ def test_ndim0(self):
+ x = np.array(1.0)
+ y = np.from_dlpack(x)
+ assert_array_equal(x, y)
+
+ def test_size1dims_arrays(self):
+ x = np.ndarray(dtype='f8', shape=(10, 5, 1), strides=(8, 80, 4),
+ buffer=np.ones(1000, dtype=np.uint8), order='F')
+ y = np.from_dlpack(x)
+ assert_array_equal(x, y)
+
+ def test_copy(self):
+ x = np.arange(5)
+
+ y = np.from_dlpack(x)
+ assert np.may_share_memory(x, y)
+ y = np.from_dlpack(x, copy=False)
+ assert np.may_share_memory(x, y)
+ y = np.from_dlpack(x, copy=True)
+ assert not np.may_share_memory(x, y)
+
+ def test_device(self):
+ x = np.arange(5)
+ # requesting (1, 0), i.e. CPU device works in both calls:
+ x.__dlpack__(dl_device=(1, 0))
+ np.from_dlpack(x, device="cpu")
+ np.from_dlpack(x, device=None)
+
+ with pytest.raises(BufferError):
+ x.__dlpack__(dl_device=(10, 0))
+ with pytest.raises(ValueError):
+ np.from_dlpack(x, device="gpu")
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/test_dtype.py b/python/user_packages/Python313/site-packages/numpy/_core/tests/test_dtype.py
new file mode 100644
index 0000000000000000000000000000000000000000..e255863126a86351de1e1d548c362a2c4feec5c1
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/tests/test_dtype.py
@@ -0,0 +1,2110 @@
+import contextlib
+import ctypes
+import gc
+import inspect
+import operator
+import pickle
+import sys
+import types
+from itertools import permutations
+from typing import Any
+
+import hypothesis
+import pytest
+from hypothesis.extra import numpy as hynp
+
+import numpy as np
+import numpy.dtypes
+from numpy._core._multiarray_tests import create_custom_field_dtype
+from numpy._core._rational_tests import rational
+from numpy.testing import (
+ HAS_REFCOUNT,
+ IS_64BIT,
+ IS_PYPY,
+ IS_PYSTON,
+ IS_WASM,
+ assert_,
+ assert_array_equal,
+ assert_equal,
+ assert_raises,
+)
+
+
+def assert_dtype_equal(a, b):
+ assert_equal(a, b)
+ assert_equal(hash(a), hash(b),
+ "two equivalent types do not hash to the same value !")
+
+def assert_dtype_not_equal(a, b):
+ assert_(a != b)
+ assert_(hash(a) != hash(b),
+ "two different types hash to the same value !")
+
+class TestBuiltin:
+ @pytest.mark.parametrize('t', [int, float, complex, np.int32, str, object])
+ def test_run(self, t):
+ """Only test hash runs at all."""
+ dt = np.dtype(t)
+ hash(dt)
+
+ @pytest.mark.parametrize('t', [int, float])
+ def test_dtype(self, t):
+ # Make sure equivalent byte order char hash the same (e.g. < and = on
+ # little endian)
+ dt = np.dtype(t)
+ dt2 = dt.newbyteorder("<")
+ dt3 = dt.newbyteorder(">")
+ if dt == dt2:
+ assert_(dt.byteorder != dt2.byteorder, "bogus test")
+ assert_dtype_equal(dt, dt2)
+ else:
+ assert_(dt.byteorder != dt3.byteorder, "bogus test")
+ assert_dtype_equal(dt, dt3)
+
+ def test_equivalent_dtype_hashing(self):
+ # Make sure equivalent dtypes with different type num hash equal
+ uintp = np.dtype(np.uintp)
+ if uintp.itemsize == 4:
+ left = uintp
+ right = np.dtype(np.uint32)
+ else:
+ left = uintp
+ right = np.dtype(np.ulonglong)
+ assert_(left == right)
+ assert_(hash(left) == hash(right))
+
+ def test_invalid_types(self):
+ # Make sure invalid type strings raise an error
+
+ assert_raises(TypeError, np.dtype, 'O3')
+ assert_raises(TypeError, np.dtype, 'O5')
+ assert_raises(TypeError, np.dtype, 'O7')
+ assert_raises(TypeError, np.dtype, 'b3')
+ assert_raises(TypeError, np.dtype, 'h4')
+ assert_raises(TypeError, np.dtype, 'I5')
+ assert_raises(TypeError, np.dtype, 'e3')
+ assert_raises(TypeError, np.dtype, 'f5')
+
+ if np.dtype('g').itemsize == 8 or np.dtype('g').itemsize == 16:
+ assert_raises(TypeError, np.dtype, 'g12')
+ elif np.dtype('g').itemsize == 12:
+ assert_raises(TypeError, np.dtype, 'g16')
+
+ if np.dtype('l').itemsize == 8:
+ assert_raises(TypeError, np.dtype, 'l4')
+ assert_raises(TypeError, np.dtype, 'L4')
+ else:
+ assert_raises(TypeError, np.dtype, 'l8')
+ assert_raises(TypeError, np.dtype, 'L8')
+
+ if np.dtype('q').itemsize == 8:
+ assert_raises(TypeError, np.dtype, 'q4')
+ assert_raises(TypeError, np.dtype, 'Q4')
+ else:
+ assert_raises(TypeError, np.dtype, 'q8')
+ assert_raises(TypeError, np.dtype, 'Q8')
+
+ # Make sure negative-sized dtype raises an error
+ assert_raises(TypeError, np.dtype, 'S-1')
+ assert_raises(TypeError, np.dtype, 'U-1')
+ assert_raises(TypeError, np.dtype, 'V-1')
+
+ def test_richcompare_invalid_dtype_equality(self):
+ # Make sure objects that cannot be converted to valid
+ # dtypes results in False/True when compared to valid dtypes.
+ # Here 7 cannot be converted to dtype. No exceptions should be raised
+
+ assert not np.dtype(np.int32) == 7, "dtype richcompare failed for =="
+ assert np.dtype(np.int32) != 7, "dtype richcompare failed for !="
+
+ @pytest.mark.parametrize(
+ 'operation',
+ [operator.le, operator.lt, operator.ge, operator.gt])
+ def test_richcompare_invalid_dtype_comparison(self, operation):
+ # Make sure TypeError is raised for comparison operators
+ # for invalid dtypes. Here 7 is an invalid dtype.
+
+ with pytest.raises(TypeError):
+ operation(np.dtype(np.int32), 7)
+
+ @pytest.mark.parametrize("dtype",
+ ['Bool', 'Bytes0', 'Complex32', 'Complex64',
+ 'Datetime64', 'Float16', 'Float32', 'Float64',
+ 'Int8', 'Int16', 'Int32', 'Int64',
+ 'Object0', 'Str0', 'Timedelta64',
+ 'UInt8', 'UInt16', 'Uint32', 'UInt32',
+ 'Uint64', 'UInt64', 'Void0',
+ "Float128", "Complex128"])
+ def test_numeric_style_types_are_invalid(self, dtype):
+ with assert_raises(TypeError):
+ np.dtype(dtype)
+
+ def test_expired_dtypes_with_bad_bytesize(self):
+ match: str = r".*removed in NumPy 2.0.*"
+ with pytest.raises(TypeError, match=match):
+ np.dtype("int0")
+ with pytest.raises(TypeError, match=match):
+ np.dtype("uint0")
+ with pytest.raises(TypeError, match=match):
+ np.dtype("bool8")
+ with pytest.raises(TypeError, match=match):
+ np.dtype("bytes0")
+ with pytest.raises(TypeError, match=match):
+ np.dtype("str0")
+ with pytest.raises(TypeError, match=match):
+ np.dtype("object0")
+ with pytest.raises(TypeError, match=match):
+ np.dtype("void0")
+
+ @pytest.mark.parametrize(
+ 'value',
+ ['m8', 'M8', 'datetime64', 'timedelta64',
+ 'i4, (2,3)f8, f4', 'S3, 3u8, (3,4)S10',
+ '>f', '= (3, 12),
+ reason="Python 3.12 has immortal refcounts, this test will no longer "
+ "work. See gh-23986"
+)
+@pytest.mark.skipif(not HAS_REFCOUNT, reason="Python lacks refcounts")
+class TestStructuredObjectRefcounting:
+ """These tests cover various uses of complicated structured types which
+ include objects and thus require reference counting.
+ """
+ @pytest.mark.parametrize(['dt', 'pat', 'count', 'singleton'],
+ iter_struct_object_dtypes())
+ @pytest.mark.parametrize(["creation_func", "creation_obj"], [
+ pytest.param(np.empty, None,
+ # None is probably used for too many things
+ marks=pytest.mark.skip("unreliable due to python's behaviour")),
+ (np.ones, 1),
+ (np.zeros, 0)])
+ def test_structured_object_create_delete(self, dt, pat, count, singleton,
+ creation_func, creation_obj):
+ """Structured object reference counting in creation and deletion"""
+ # The test assumes that 0, 1, and None are singletons.
+ gc.collect()
+ before = sys.getrefcount(creation_obj)
+ arr = creation_func(3, dt)
+
+ now = sys.getrefcount(creation_obj)
+ assert now - before == count * 3
+ del arr
+ now = sys.getrefcount(creation_obj)
+ assert now == before
+
+ @pytest.mark.parametrize(['dt', 'pat', 'count', 'singleton'],
+ iter_struct_object_dtypes())
+ def test_structured_object_item_setting(self, dt, pat, count, singleton):
+ """Structured object reference counting for simple item setting"""
+ one = 1
+
+ gc.collect()
+ before = sys.getrefcount(singleton)
+ arr = np.array([pat] * 3, dt)
+ assert sys.getrefcount(singleton) - before == count * 3
+ # Fill with `1` and check that it was replaced correctly:
+ before2 = sys.getrefcount(one)
+ arr[...] = one
+ after2 = sys.getrefcount(one)
+ assert after2 - before2 == count * 3
+ del arr
+ gc.collect()
+ assert sys.getrefcount(one) == before2
+ assert sys.getrefcount(singleton) == before
+
+ @pytest.mark.parametrize(['dt', 'pat', 'count', 'singleton'],
+ iter_struct_object_dtypes())
+ @pytest.mark.parametrize(
+ ['shape', 'index', 'items_changed'],
+ [((3,), ([0, 2],), 2),
+ ((3, 2), ([0, 2], slice(None)), 4),
+ ((3, 2), ([0, 2], [1]), 2),
+ ((3,), ([True, False, True]), 2)])
+ def test_structured_object_indexing(self, shape, index, items_changed,
+ dt, pat, count, singleton):
+ """Structured object reference counting for advanced indexing."""
+ # Use two small negative values (should be singletons, but less likely
+ # to run into race-conditions). This failed in some threaded envs
+ # When using 0 and 1. If it fails again, should remove all explicit
+ # checks, and rely on `pytest-leaks` reference count checker only.
+ val0 = -4
+ val1 = -5
+
+ arr = np.full(shape, val0, dt)
+
+ gc.collect()
+ before_val0 = sys.getrefcount(val0)
+ before_val1 = sys.getrefcount(val1)
+ # Test item getting:
+ part = arr[index]
+ after_val0 = sys.getrefcount(val0)
+ assert after_val0 - before_val0 == count * items_changed
+ del part
+ # Test item setting:
+ arr[index] = val1
+ gc.collect()
+ after_val0 = sys.getrefcount(val0)
+ after_val1 = sys.getrefcount(val1)
+ assert before_val0 - after_val0 == count * items_changed
+ assert after_val1 - before_val1 == count * items_changed
+
+ @pytest.mark.parametrize(['dt', 'pat', 'count', 'singleton'],
+ iter_struct_object_dtypes())
+ def test_structured_object_take_and_repeat(self, dt, pat, count, singleton):
+ """Structured object reference counting for specialized functions.
+ The older functions such as take and repeat use different code paths
+ then item setting (when writing this).
+ """
+ indices = [0, 1]
+
+ arr = np.array([pat] * 3, dt)
+ gc.collect()
+ before = sys.getrefcount(singleton)
+ res = arr.take(indices)
+ after = sys.getrefcount(singleton)
+ assert after - before == count * 2
+ new = res.repeat(10)
+ gc.collect()
+ after_repeat = sys.getrefcount(singleton)
+ assert after_repeat - after == count * 2 * 10
+
+
+class TestStructuredDtypeSparseFields:
+ """Tests subarray fields which contain sparse dtypes so that
+ not all memory is used by the dtype work. Such dtype's should
+ leave the underlying memory unchanged.
+ """
+ dtype = np.dtype([('a', {'names': ['aa', 'ab'], 'formats': ['f', 'f'],
+ 'offsets': [0, 4]}, (2, 3))])
+ sparse_dtype = np.dtype([('a', {'names': ['ab'], 'formats': ['f'],
+ 'offsets': [4]}, (2, 3))])
+
+ def test_sparse_field_assignment(self):
+ arr = np.zeros(3, self.dtype)
+ sparse_arr = arr.view(self.sparse_dtype)
+
+ sparse_arr[...] = np.finfo(np.float32).max
+ # dtype is reduced when accessing the field, so shape is (3, 2, 3):
+ assert_array_equal(arr["a"]["aa"], np.zeros((3, 2, 3)))
+
+ def test_sparse_field_assignment_fancy(self):
+ # Fancy assignment goes to the copyswap function for complex types:
+ arr = np.zeros(3, self.dtype)
+ sparse_arr = arr.view(self.sparse_dtype)
+
+ sparse_arr[[0, 1, 2]] = np.finfo(np.float32).max
+ # dtype is reduced when accessing the field, so shape is (3, 2, 3):
+ assert_array_equal(arr["a"]["aa"], np.zeros((3, 2, 3)))
+
+
+class TestMonsterType:
+ """Test deeply nested subtypes."""
+
+ def test1(self):
+ simple1 = np.dtype({'names': ['r', 'b'], 'formats': ['u1', 'u1'],
+ 'titles': ['Red pixel', 'Blue pixel']})
+ a = np.dtype([('yo', int), ('ye', simple1),
+ ('yi', np.dtype((int, (3, 2))))])
+ b = np.dtype([('yo', int), ('ye', simple1),
+ ('yi', np.dtype((int, (3, 2))))])
+ assert_dtype_equal(a, b)
+
+ c = np.dtype([('yo', int), ('ye', simple1),
+ ('yi', np.dtype((a, (3, 2))))])
+ d = np.dtype([('yo', int), ('ye', simple1),
+ ('yi', np.dtype((a, (3, 2))))])
+ assert_dtype_equal(c, d)
+
+ @pytest.mark.skipif(IS_PYSTON, reason="Pyston disables recursion checking")
+ @pytest.mark.skipif(IS_WASM, reason="Pyodide/WASM has limited stack size")
+ def test_list_recursion(self):
+ l = []
+ l.append(('f', l))
+ with pytest.raises(RecursionError):
+ np.dtype(l)
+
+ @pytest.mark.skipif(IS_PYSTON, reason="Pyston disables recursion checking")
+ @pytest.mark.skipif(IS_WASM, reason="Pyodide/WASM has limited stack size")
+ def test_tuple_recursion(self):
+ d = np.int32
+ for i in range(100000):
+ d = (d, (1,))
+ # depending on OS and Python version, this might succeed
+ # see gh-30370 and cpython issue #142253
+ with contextlib.suppress(RecursionError):
+ np.dtype(d)
+
+ @pytest.mark.skipif(IS_PYSTON, reason="Pyston disables recursion checking")
+ @pytest.mark.skipif(IS_WASM, reason="Pyodide/WASM has limited stack size")
+ def test_dict_recursion(self):
+ d = {"names": ['self'], "formats": [None], "offsets": [0]}
+ d['formats'][0] = d
+ with pytest.raises(RecursionError):
+ np.dtype(d)
+
+
+class TestMetadata:
+ def test_no_metadata(self):
+ d = np.dtype(int)
+ assert_(d.metadata is None)
+
+ def test_metadata_takes_dict(self):
+ d = np.dtype(int, metadata={'datum': 1})
+ assert_(d.metadata == {'datum': 1})
+
+ def test_metadata_rejects_nondict(self):
+ assert_raises(TypeError, np.dtype, int, metadata='datum')
+ assert_raises(TypeError, np.dtype, int, metadata=1)
+ assert_raises(TypeError, np.dtype, int, metadata=None)
+
+ def test_nested_metadata(self):
+ d = np.dtype([('a', np.dtype(int, metadata={'datum': 1}))])
+ assert_(d['a'].metadata == {'datum': 1})
+
+ def test_base_metadata_copied(self):
+ d = np.dtype((np.void, np.dtype('i4,i4', metadata={'datum': 1})))
+ assert_(d.metadata == {'datum': 1})
+
+class TestString:
+ def test_complex_dtype_str(self):
+ dt = np.dtype([('top', [('tiles', ('>f4', (64, 64)), (1,)),
+ ('rtile', '>f4', (64, 36))], (3,)),
+ ('bottom', [('bleft', ('>f4', (8, 64)), (1,)),
+ ('bright', '>f4', (8, 36))])])
+ assert_equal(str(dt),
+ "[('top', [('tiles', ('>f4', (64, 64)), (1,)), "
+ "('rtile', '>f4', (64, 36))], (3,)), "
+ "('bottom', [('bleft', ('>f4', (8, 64)), (1,)), "
+ "('bright', '>f4', (8, 36))])]")
+
+ # If the sticky aligned flag is set to True, it makes the
+ # str() function use a dict representation with an 'aligned' flag
+ dt = np.dtype([('top', [('tiles', ('>f4', (64, 64)), (1,)),
+ ('rtile', '>f4', (64, 36))],
+ (3,)),
+ ('bottom', [('bleft', ('>f4', (8, 64)), (1,)),
+ ('bright', '>f4', (8, 36))])],
+ align=True)
+ assert_equal(str(dt),
+ "{'names': ['top', 'bottom'],"
+ " 'formats': [([('tiles', ('>f4', (64, 64)), (1,)), "
+ "('rtile', '>f4', (64, 36))], (3,)), "
+ "[('bleft', ('>f4', (8, 64)), (1,)), "
+ "('bright', '>f4', (8, 36))]],"
+ " 'offsets': [0, 76800],"
+ " 'itemsize': 80000,"
+ " 'aligned': True}")
+ with np.printoptions(legacy='1.21'):
+ assert_equal(str(dt),
+ "{'names':['top','bottom'], "
+ "'formats':[([('tiles', ('>f4', (64, 64)), (1,)), "
+ "('rtile', '>f4', (64, 36))], (3,)),"
+ "[('bleft', ('>f4', (8, 64)), (1,)), "
+ "('bright', '>f4', (8, 36))]], "
+ "'offsets':[0,76800], "
+ "'itemsize':80000, "
+ "'aligned':True}")
+ assert_equal(np.dtype(eval(str(dt))), dt)
+
+ dt = np.dtype({'names': ['r', 'g', 'b'], 'formats': ['u1', 'u1', 'u1'],
+ 'offsets': [0, 1, 2],
+ 'titles': ['Red pixel', 'Green pixel', 'Blue pixel']})
+ assert_equal(str(dt),
+ "[(('Red pixel', 'r'), 'u1'), "
+ "(('Green pixel', 'g'), 'u1'), "
+ "(('Blue pixel', 'b'), 'u1')]")
+
+ dt = np.dtype({'names': ['rgba', 'r', 'g', 'b'],
+ 'formats': ['f4', (64, 64)), (1,)),
+ ('rtile', '>f4', (64, 36))], (3,)),
+ ('bottom', [('bleft', ('>f4', (8, 64)), (1,)),
+ ('bright', '>f4', (8, 36))])])
+ assert_equal(repr(dt),
+ "dtype([('top', [('tiles', ('>f4', (64, 64)), (1,)), "
+ "('rtile', '>f4', (64, 36))], (3,)), "
+ "('bottom', [('bleft', ('>f4', (8, 64)), (1,)), "
+ "('bright', '>f4', (8, 36))])])")
+
+ dt = np.dtype({'names': ['r', 'g', 'b'], 'formats': ['u1', 'u1', 'u1'],
+ 'offsets': [0, 1, 2],
+ 'titles': ['Red pixel', 'Green pixel', 'Blue pixel']},
+ align=True)
+ assert_equal(repr(dt),
+ "dtype([(('Red pixel', 'r'), 'u1'), "
+ "(('Green pixel', 'g'), 'u1'), "
+ "(('Blue pixel', 'b'), 'u1')], align=True)")
+
+ def test_repr_structured_not_packed(self):
+ dt = np.dtype({'names': ['rgba', 'r', 'g', 'b'],
+ 'formats': ['i4")
+ assert np.result_type(dt).isnative
+ assert np.result_type(dt).num == dt.num
+
+ # dtype with empty space:
+ struct_dt = np.dtype(">i4,i1,f4', (2, 1)), ('b', 'u4')])
+ self.check(BigEndStruct, expected)
+
+ def test_little_endian_structure_packed(self):
+ class LittleEndStruct(ctypes.LittleEndianStructure):
+ _fields_ = [
+ ('one', ctypes.c_uint8),
+ ('two', ctypes.c_uint32)
+ ]
+ _pack_ = 1
+ expected = np.dtype([('one', 'u1'), ('two', 'B'),
+ ('b', '>H')
+ ], align=True)
+ self.check(PaddedStruct, expected)
+
+ def test_simple_endian_types(self):
+ self.check(ctypes.c_uint16.__ctype_le__, np.dtype('u2'))
+ self.check(ctypes.c_uint8.__ctype_le__, np.dtype('u1'))
+ self.check(ctypes.c_uint8.__ctype_be__, np.dtype('u1'))
+
+ all_types = set(np.typecodes['All'])
+ all_pairs = permutations(all_types, 2)
+
+ @pytest.mark.parametrize("pair", all_pairs)
+ def test_pairs(self, pair):
+ """
+ Check that np.dtype('x,y') matches [np.dtype('x'), np.dtype('y')]
+ Example: np.dtype('d,I') -> dtype([('f0', ' None:
+ alias = np.dtype[Any]
+ assert isinstance(alias, types.GenericAlias)
+ assert alias.__origin__ is np.dtype
+
+ @pytest.mark.parametrize("code", np.typecodes["All"])
+ def test_dtype_subclass(self, code: str) -> None:
+ cls = type(np.dtype(code))
+ alias = cls[Any]
+ assert isinstance(alias, types.GenericAlias)
+ assert alias.__origin__ is cls
+
+ @pytest.mark.parametrize("arg_len", range(4))
+ def test_subscript_tuple(self, arg_len: int) -> None:
+ arg_tup = (Any,) * arg_len
+ if arg_len == 1:
+ assert np.dtype[arg_tup]
+ else:
+ with pytest.raises(TypeError):
+ np.dtype[arg_tup]
+
+ def test_subscript_scalar(self) -> None:
+ assert np.dtype[Any]
+
+
+def test_result_type_integers_and_unitless_timedelta64():
+ # Regression test for gh-20077. The following call of `result_type`
+ # would cause a seg. fault.
+ td = np.timedelta64(4)
+ result = np.result_type(0, td)
+ assert_dtype_equal(result, td.dtype)
+
+
+def test_creating_dtype_with_dtype_class_errors():
+ # Regression test for #25031, calling `np.dtype` with itself segfaulted.
+ with pytest.raises(TypeError, match="Cannot convert np.dtype into a"):
+ np.array(np.ones(10), dtype=np.dtype)
+
+
+@pytest.mark.skipif(sys.flags.optimize == 2, reason="Python running -OO")
+@pytest.mark.skipif(IS_PYPY, reason="PyPy does not modify tp_doc")
+class TestDTypeSignatures:
+ def test_signature_dtype(self):
+ sig = inspect.signature(np.dtype)
+
+ assert len(sig.parameters) == 4
+
+ assert "dtype" in sig.parameters
+ assert sig.parameters["dtype"].kind is inspect.Parameter.POSITIONAL_OR_KEYWORD
+ assert sig.parameters["dtype"].default is inspect.Parameter.empty
+
+ assert "align" in sig.parameters
+ assert sig.parameters["align"].kind is inspect.Parameter.POSITIONAL_OR_KEYWORD
+ assert sig.parameters["align"].default is False
+
+ assert "copy" in sig.parameters
+ assert sig.parameters["copy"].kind is inspect.Parameter.POSITIONAL_OR_KEYWORD
+ assert sig.parameters["copy"].default is False
+
+ # the optional `metadata` parameter has no default, so `**kwargs` must be used
+ assert "kwargs" in sig.parameters
+ assert sig.parameters["kwargs"].kind is inspect.Parameter.VAR_KEYWORD
+ assert sig.parameters["kwargs"].default is inspect.Parameter.empty
+
+ def test_signature_dtype_newbyteorder(self):
+ sig = inspect.signature(np.dtype.newbyteorder)
+
+ assert len(sig.parameters) == 2
+
+ assert "self" in sig.parameters
+ assert sig.parameters["self"].kind is inspect.Parameter.POSITIONAL_ONLY
+ assert sig.parameters["self"].default is inspect.Parameter.empty
+
+ assert "new_order" in sig.parameters
+ assert sig.parameters["new_order"].kind is inspect.Parameter.POSITIONAL_ONLY
+ assert sig.parameters["new_order"].default == "S"
+
+ @pytest.mark.parametrize("typename", np.dtypes.__all__)
+ def test_signature_dtypes_classes(self, typename: str):
+ dtype_type = getattr(np.dtypes, typename)
+ sig = inspect.signature(dtype_type)
+
+ match typename.lower().removesuffix("dtype"):
+ case "bytes" | "str":
+ params_expect = {"size"}
+ case "void":
+ params_expect = {"length"}
+ case "datetime64" | "timedelta64":
+ params_expect = {"unit"}
+ case "string":
+ # `na_object` cannot be used in the text signature because of its
+ # `np._NoValue` default, which isn't supported by `inspect.signature`,
+ # so `**kwargs` is used instead.
+ params_expect = {"coerce", "kwargs"}
+ case _:
+ params_expect = set()
+
+ params_actual = set(sig.parameters)
+ assert params_actual == params_expect
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/test_einsum.py b/python/user_packages/Python313/site-packages/numpy/_core/tests/test_einsum.py
new file mode 100644
index 0000000000000000000000000000000000000000..942fbe25945038e3c3d813d2af697bc749d14314
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/tests/test_einsum.py
@@ -0,0 +1,1351 @@
+import itertools
+import warnings
+
+import pytest
+
+import numpy as np
+from numpy.testing import (
+ assert_,
+ assert_allclose,
+ assert_almost_equal,
+ assert_array_equal,
+ assert_equal,
+ assert_raises,
+ assert_raises_regex,
+)
+
+# Setup for optimize einsum
+chars = 'abcdefghij'
+sizes = np.array([2, 3, 4, 5, 4, 3, 2, 6, 5, 4, 3])
+global_size_dict = dict(zip(chars, sizes))
+
+
+class TestEinsum:
+ @pytest.mark.parametrize("do_opt", [True, False])
+ @pytest.mark.parametrize("einsum_fn", [np.einsum, np.einsum_path])
+ def test_einsum_errors(self, do_opt, einsum_fn):
+ # Need enough arguments
+ assert_raises(ValueError, einsum_fn, optimize=do_opt)
+ assert_raises(ValueError, einsum_fn, "", optimize=do_opt)
+
+ # subscripts must be a string
+ assert_raises(TypeError, einsum_fn, 0, 0, optimize=do_opt)
+
+ # issue 4528 revealed a segfault with this call
+ assert_raises(TypeError, einsum_fn, *(None,) * 63, optimize=do_opt)
+
+ # number of operands must match count in subscripts string
+ assert_raises(ValueError, einsum_fn, "", 0, 0, optimize=do_opt)
+ assert_raises(ValueError, einsum_fn, ",", 0, [0], [0],
+ optimize=do_opt)
+ assert_raises(ValueError, einsum_fn, ",", [0], optimize=do_opt)
+
+ # can't have more subscripts than dimensions in the operand
+ assert_raises(ValueError, einsum_fn, "i", 0, optimize=do_opt)
+ assert_raises(ValueError, einsum_fn, "ij", [0, 0], optimize=do_opt)
+ assert_raises(ValueError, einsum_fn, "...i", 0, optimize=do_opt)
+ assert_raises(ValueError, einsum_fn, "i...j", [0, 0], optimize=do_opt)
+ assert_raises(ValueError, einsum_fn, "i...", 0, optimize=do_opt)
+ assert_raises(ValueError, einsum_fn, "ij...", [0, 0], optimize=do_opt)
+
+ # invalid ellipsis
+ assert_raises(ValueError, einsum_fn, "i..", [0, 0], optimize=do_opt)
+ assert_raises(ValueError, einsum_fn, ".i...", [0, 0], optimize=do_opt)
+ assert_raises(ValueError, einsum_fn, "j->..j", [0, 0], optimize=do_opt)
+ assert_raises(ValueError, einsum_fn, "j->.j...", [0, 0],
+ optimize=do_opt)
+
+ # invalid subscript character
+ assert_raises(ValueError, einsum_fn, "i%...", [0, 0], optimize=do_opt)
+ assert_raises(ValueError, einsum_fn, "...j$", [0, 0], optimize=do_opt)
+ assert_raises(ValueError, einsum_fn, "i->&", [0, 0], optimize=do_opt)
+
+ # output subscripts must appear in input
+ assert_raises(ValueError, einsum_fn, "i->ij", [0, 0], optimize=do_opt)
+
+ # output subscripts may only be specified once
+ assert_raises(ValueError, einsum_fn, "ij->jij", [[0, 0], [0, 0]],
+ optimize=do_opt)
+
+ # dimensions must match when being collapsed
+ assert_raises(ValueError, einsum_fn, "ii",
+ np.arange(6).reshape(2, 3), optimize=do_opt)
+ assert_raises(ValueError, einsum_fn, "ii->i",
+ np.arange(6).reshape(2, 3), optimize=do_opt)
+
+ with assert_raises_regex(ValueError, "'b'"):
+ # gh-11221 - 'c' erroneously appeared in the error message
+ a = np.ones((3, 3, 4, 5, 6))
+ b = np.ones((3, 4, 5))
+ einsum_fn('aabcb,abc', a, b)
+
+ with pytest.raises(ValueError):
+ a = np.arange(3)
+ # einsum_path does not yet accept kwarg 'casting'
+ np.einsum('ij->j', [a, a], casting='same_value')
+
+ def test_einsum_sorting_behavior(self):
+ # Case 1: 26 dimensions (all lowercase indices)
+ n1 = 26
+ x1 = np.random.random((1,) * n1)
+ path1 = np.einsum_path(x1, range(n1))[1] # Get einsum path details
+ output_indices1 = path1.split("->")[-1].strip() # Extract output indices
+ # Assert indices are only uppercase letters and sorted correctly
+ assert all(c.isupper() for c in output_indices1), (
+ "Output indices for n=26 should use uppercase letters only: "
+ f"{output_indices1}"
+ )
+ assert_equal(
+ output_indices1,
+ ''.join(sorted(output_indices1)),
+ err_msg=(
+ "Output indices for n=26 are not lexicographically sorted: "
+ f"{output_indices1}"
+ )
+ )
+
+ # Case 2: 27 dimensions (includes uppercase indices)
+ n2 = 27
+ x2 = np.random.random((1,) * n2)
+ path2 = np.einsum_path(x2, range(n2))[1]
+ output_indices2 = path2.split("->")[-1].strip()
+ # Assert indices include both uppercase and lowercase letters
+ assert any(c.islower() for c in output_indices2), (
+ "Output indices for n=27 should include uppercase letters: "
+ f"{output_indices2}"
+ )
+ # Assert output indices are sorted uppercase before lowercase
+ assert_equal(
+ output_indices2,
+ ''.join(sorted(output_indices2)),
+ err_msg=(
+ "Output indices for n=27 are not lexicographically sorted: "
+ f"{output_indices2}"
+ )
+ )
+
+ # Additional Check: Ensure dimensions correspond correctly to indices
+ # Generate expected mapping of dimensions to indices
+ expected_indices = [
+ chr(i + ord('A')) if i < 26 else chr(i - 26 + ord('a'))
+ for i in range(n2)
+ ]
+ assert_equal(
+ output_indices2,
+ ''.join(expected_indices),
+ err_msg=(
+ "Output indices do not map to the correct dimensions. Expected: "
+ f"{''.join(expected_indices)}, Got: {output_indices2}"
+ )
+ )
+
+ @pytest.mark.parametrize("do_opt", [True, False])
+ def test_einsum_specific_errors(self, do_opt):
+ # out parameter must be an array
+ assert_raises(TypeError, np.einsum, "", 0, out='test',
+ optimize=do_opt)
+
+ # order parameter must be a valid order
+ assert_raises(ValueError, np.einsum, "", 0, order='W',
+ optimize=do_opt)
+
+ # casting parameter must be a valid casting
+ assert_raises(ValueError, np.einsum, "", 0, casting='blah',
+ optimize=do_opt)
+
+ # dtype parameter must be a valid dtype
+ assert_raises(TypeError, np.einsum, "", 0, dtype='bad_data_type',
+ optimize=do_opt)
+
+ # other keyword arguments are rejected
+ assert_raises(TypeError, np.einsum, "", 0, bad_arg=0, optimize=do_opt)
+
+ # broadcasting to new dimensions must be enabled explicitly
+ assert_raises(ValueError, np.einsum, "i", np.arange(6).reshape(2, 3),
+ optimize=do_opt)
+ assert_raises(ValueError, np.einsum, "i->i", [[0, 1], [0, 1]],
+ out=np.arange(4).reshape(2, 2), optimize=do_opt)
+
+ # Check order kwarg, asanyarray allows 1d to pass through
+ assert_raises(ValueError, np.einsum, "i->i",
+ np.arange(6).reshape(-1, 1), optimize=do_opt, order='d')
+
+ def test_einsum_object_errors(self):
+ # Exceptions created by object arithmetic should
+ # successfully propagate
+
+ class CustomException(Exception):
+ pass
+
+ class DestructoBox:
+
+ def __init__(self, value, destruct):
+ self._val = value
+ self._destruct = destruct
+
+ def __add__(self, other):
+ tmp = self._val + other._val
+ if tmp >= self._destruct:
+ raise CustomException
+ else:
+ self._val = tmp
+ return self
+
+ def __radd__(self, other):
+ if other == 0:
+ return self
+ else:
+ return self.__add__(other)
+
+ def __mul__(self, other):
+ tmp = self._val * other._val
+ if tmp >= self._destruct:
+ raise CustomException
+ else:
+ self._val = tmp
+ return self
+
+ def __rmul__(self, other):
+ if other == 0:
+ return self
+ else:
+ return self.__mul__(other)
+
+ a = np.array([DestructoBox(i, 5) for i in range(1, 10)],
+ dtype='object').reshape(3, 3)
+
+ # raised from unbuffered_loop_nop1_ndim2
+ assert_raises(CustomException, np.einsum, "ij->i", a)
+
+ # raised from unbuffered_loop_nop1_ndim3
+ b = np.array([DestructoBox(i, 100) for i in range(27)],
+ dtype='object').reshape(3, 3, 3)
+ assert_raises(CustomException, np.einsum, "i...k->...", b)
+
+ # raised from unbuffered_loop_nop2_ndim2
+ b = np.array([DestructoBox(i, 55) for i in range(1, 4)],
+ dtype='object')
+ assert_raises(CustomException, np.einsum, "ij, j", a, b)
+
+ # raised from unbuffered_loop_nop2_ndim3
+ assert_raises(CustomException, np.einsum, "ij, jh", a, a)
+
+ # raised from PyArray_EinsteinSum
+ assert_raises(CustomException, np.einsum, "ij->", a)
+
+ def test_einsum_views(self):
+ # pass-through
+ for do_opt in [True, False]:
+ a = np.arange(6).reshape((2, 3))
+
+ b = np.einsum("...", a, optimize=do_opt)
+ assert_(b.base is a.base)
+
+ b = np.einsum(a, [Ellipsis], optimize=do_opt)
+ assert_(b.base is a.base)
+
+ b = np.einsum("ij", a, optimize=do_opt)
+ assert_(b.base is a.base)
+ assert_equal(b, a)
+
+ b = np.einsum(a, [0, 1], optimize=do_opt)
+ assert_(b.base is a.base)
+ assert_equal(b, a)
+
+ # output is writeable whenever input is writeable
+ b = np.einsum("...", a, optimize=do_opt)
+ assert_(b.flags['WRITEABLE'])
+ a.flags['WRITEABLE'] = False
+ b = np.einsum("...", a, optimize=do_opt)
+ assert_(not b.flags['WRITEABLE'])
+
+ # transpose
+ a = np.arange(6).reshape((2, 3))
+
+ b = np.einsum("ji", a, optimize=do_opt)
+ assert_(b.base is a.base)
+ assert_equal(b, a.T)
+
+ b = np.einsum(a, [1, 0], optimize=do_opt)
+ assert_(b.base is a.base)
+ assert_equal(b, a.T)
+
+ # diagonal
+ a = np.arange(9).reshape((3, 3))
+
+ b = np.einsum("ii->i", a, optimize=do_opt)
+ assert_(b.base is a.base)
+ assert_equal(b, [a[i, i] for i in range(3)])
+
+ b = np.einsum(a, [0, 0], [0], optimize=do_opt)
+ assert_(b.base is a.base)
+ assert_equal(b, [a[i, i] for i in range(3)])
+
+ # diagonal with various ways of broadcasting an additional dimension
+ a = np.arange(27).reshape((3, 3, 3))
+
+ b = np.einsum("...ii->...i", a, optimize=do_opt)
+ assert_(b.base is a.base)
+ assert_equal(b, [[x[i, i] for i in range(3)] for x in a])
+
+ b = np.einsum(a, [Ellipsis, 0, 0], [Ellipsis, 0], optimize=do_opt)
+ assert_(b.base is a.base)
+ assert_equal(b, [[x[i, i] for i in range(3)] for x in a])
+
+ b = np.einsum("ii...->...i", a, optimize=do_opt)
+ assert_(b.base is a.base)
+ assert_equal(b, [[x[i, i] for i in range(3)]
+ for x in a.transpose(2, 0, 1)])
+
+ b = np.einsum(a, [0, 0, Ellipsis], [Ellipsis, 0], optimize=do_opt)
+ assert_(b.base is a.base)
+ assert_equal(b, [[x[i, i] for i in range(3)]
+ for x in a.transpose(2, 0, 1)])
+
+ b = np.einsum("...ii->i...", a, optimize=do_opt)
+ assert_(b.base is a.base)
+ assert_equal(b, [a[:, i, i] for i in range(3)])
+
+ b = np.einsum(a, [Ellipsis, 0, 0], [0, Ellipsis], optimize=do_opt)
+ assert_(b.base is a.base)
+ assert_equal(b, [a[:, i, i] for i in range(3)])
+
+ b = np.einsum("jii->ij", a, optimize=do_opt)
+ assert_(b.base is a.base)
+ assert_equal(b, [a[:, i, i] for i in range(3)])
+
+ b = np.einsum(a, [1, 0, 0], [0, 1], optimize=do_opt)
+ assert_(b.base is a.base)
+ assert_equal(b, [a[:, i, i] for i in range(3)])
+
+ b = np.einsum("ii...->i...", a, optimize=do_opt)
+ assert_(b.base is a.base)
+ assert_equal(b, [a.transpose(2, 0, 1)[:, i, i] for i in range(3)])
+
+ b = np.einsum(a, [0, 0, Ellipsis], [0, Ellipsis], optimize=do_opt)
+ assert_(b.base is a.base)
+ assert_equal(b, [a.transpose(2, 0, 1)[:, i, i] for i in range(3)])
+
+ b = np.einsum("i...i->i...", a, optimize=do_opt)
+ assert_(b.base is a.base)
+ assert_equal(b, [a.transpose(1, 0, 2)[:, i, i] for i in range(3)])
+
+ b = np.einsum(a, [0, Ellipsis, 0], [0, Ellipsis], optimize=do_opt)
+ assert_(b.base is a.base)
+ assert_equal(b, [a.transpose(1, 0, 2)[:, i, i] for i in range(3)])
+
+ b = np.einsum("i...i->...i", a, optimize=do_opt)
+ assert_(b.base is a.base)
+ assert_equal(b, [[x[i, i] for i in range(3)]
+ for x in a.transpose(1, 0, 2)])
+
+ b = np.einsum(a, [0, Ellipsis, 0], [Ellipsis, 0], optimize=do_opt)
+ assert_(b.base is a.base)
+ assert_equal(b, [[x[i, i] for i in range(3)]
+ for x in a.transpose(1, 0, 2)])
+
+ # triple diagonal
+ a = np.arange(27).reshape((3, 3, 3))
+
+ b = np.einsum("iii->i", a, optimize=do_opt)
+ assert_(b.base is a.base)
+ assert_equal(b, [a[i, i, i] for i in range(3)])
+
+ b = np.einsum(a, [0, 0, 0], [0], optimize=do_opt)
+ assert_(b.base is a.base)
+ assert_equal(b, [a[i, i, i] for i in range(3)])
+
+ # swap axes
+ a = np.arange(24).reshape((2, 3, 4))
+
+ b = np.einsum("ijk->jik", a, optimize=do_opt)
+ assert_(b.base is a.base)
+ assert_equal(b, a.swapaxes(0, 1))
+
+ b = np.einsum(a, [0, 1, 2], [1, 0, 2], optimize=do_opt)
+ assert_(b.base is a.base)
+ assert_equal(b, a.swapaxes(0, 1))
+
+ def check_einsum_sums(self, dtype, do_opt=False):
+ dtype = np.dtype(dtype)
+ # Check various sums. Does many sizes to exercise unrolled loops.
+
+ # sum(a, axis=-1)
+ for n in range(1, 17):
+ a = np.arange(n, dtype=dtype)
+ b = np.sum(a, axis=-1)
+ if hasattr(b, 'astype'):
+ b = b.astype(dtype)
+ assert_equal(np.einsum("i->", a, optimize=do_opt), b)
+ assert_equal(np.einsum(a, [0], [], optimize=do_opt), b)
+
+ for n in range(1, 17):
+ a = np.arange(2 * 3 * n, dtype=dtype).reshape(2, 3, n)
+ b = np.sum(a, axis=-1)
+ if hasattr(b, 'astype'):
+ b = b.astype(dtype)
+ assert_equal(np.einsum("...i->...", a, optimize=do_opt), b)
+ assert_equal(np.einsum(a, [Ellipsis, 0], [Ellipsis], optimize=do_opt), b)
+
+ # sum(a, axis=0)
+ for n in range(1, 17):
+ a = np.arange(2 * n, dtype=dtype).reshape(2, n)
+ b = np.sum(a, axis=0)
+ if hasattr(b, 'astype'):
+ b = b.astype(dtype)
+ assert_equal(np.einsum("i...->...", a, optimize=do_opt), b)
+ assert_equal(np.einsum(a, [0, Ellipsis], [Ellipsis], optimize=do_opt), b)
+
+ for n in range(1, 17):
+ a = np.arange(2 * 3 * n, dtype=dtype).reshape(2, 3, n)
+ b = np.sum(a, axis=0)
+ if hasattr(b, 'astype'):
+ b = b.astype(dtype)
+ assert_equal(np.einsum("i...->...", a, optimize=do_opt), b)
+ assert_equal(np.einsum(a, [0, Ellipsis], [Ellipsis], optimize=do_opt), b)
+
+ # trace(a)
+ for n in range(1, 17):
+ a = np.arange(n * n, dtype=dtype).reshape(n, n)
+ b = np.trace(a)
+ if hasattr(b, 'astype'):
+ b = b.astype(dtype)
+ assert_equal(np.einsum("ii", a, optimize=do_opt), b)
+ assert_equal(np.einsum(a, [0, 0], optimize=do_opt), b)
+
+ # gh-15961: should accept numpy int64 type in subscript list
+ np_array = np.asarray([0, 0])
+ assert_equal(np.einsum(a, np_array, optimize=do_opt), b)
+ assert_equal(np.einsum(a, list(np_array), optimize=do_opt), b)
+
+ # multiply(a, b)
+ assert_equal(np.einsum("..., ...", 3, 4), 12) # scalar case
+ for n in range(1, 17):
+ a = np.arange(3 * n, dtype=dtype).reshape(3, n)
+ b = np.arange(2 * 3 * n, dtype=dtype).reshape(2, 3, n)
+ assert_equal(np.einsum("..., ...", a, b, optimize=do_opt),
+ np.multiply(a, b))
+ assert_equal(np.einsum(a, [Ellipsis], b, [Ellipsis], optimize=do_opt),
+ np.multiply(a, b))
+
+ # inner(a,b)
+ for n in range(1, 17):
+ a = np.arange(2 * 3 * n, dtype=dtype).reshape(2, 3, n)
+ b = np.arange(n, dtype=dtype)
+ assert_equal(np.einsum("...i, ...i", a, b, optimize=do_opt), np.inner(a, b))
+ assert_equal(np.einsum(a, [Ellipsis, 0], b, [Ellipsis, 0], optimize=do_opt),
+ np.inner(a, b))
+
+ for n in range(1, 11):
+ a = np.arange(n * 3 * 2, dtype=dtype).reshape(n, 3, 2)
+ b = np.arange(n, dtype=dtype)
+ assert_equal(np.einsum("i..., i...", a, b, optimize=do_opt),
+ np.inner(a.T, b.T).T)
+ assert_equal(np.einsum(a, [0, Ellipsis], b, [0, Ellipsis], optimize=do_opt),
+ np.inner(a.T, b.T).T)
+
+ # outer(a,b)
+ for n in range(1, 17):
+ a = np.arange(3, dtype=dtype) + 1
+ b = np.arange(n, dtype=dtype) + 1
+ assert_equal(np.einsum("i,j", a, b, optimize=do_opt),
+ np.outer(a, b))
+ assert_equal(np.einsum(a, [0], b, [1], optimize=do_opt),
+ np.outer(a, b))
+
+ # Suppress the complex warnings for the 'as f8' tests
+ with warnings.catch_warnings():
+ warnings.simplefilter('ignore', np.exceptions.ComplexWarning)
+
+ # matvec(a,b) / a.dot(b) where a is matrix, b is vector
+ for n in range(1, 17):
+ a = np.arange(4 * n, dtype=dtype).reshape(4, n)
+ b = np.arange(n, dtype=dtype)
+ assert_equal(np.einsum("ij, j", a, b, optimize=do_opt),
+ np.dot(a, b))
+ assert_equal(np.einsum(a, [0, 1], b, [1], optimize=do_opt),
+ np.dot(a, b))
+
+ c = np.arange(4, dtype=dtype)
+ np.einsum("ij,j", a, b, out=c,
+ dtype='f8', casting='unsafe', optimize=do_opt)
+ assert_equal(c,
+ np.dot(a.astype('f8'),
+ b.astype('f8')).astype(dtype))
+ c[...] = 0
+ np.einsum(a, [0, 1], b, [1], out=c,
+ dtype='f8', casting='unsafe', optimize=do_opt)
+ assert_equal(c,
+ np.dot(a.astype('f8'),
+ b.astype('f8')).astype(dtype))
+
+ for n in range(1, 17):
+ a = np.arange(4 * n, dtype=dtype).reshape(4, n)
+ b = np.arange(n, dtype=dtype)
+ assert_equal(np.einsum("ji,j", a.T, b.T, optimize=do_opt),
+ np.dot(b.T, a.T))
+ assert_equal(np.einsum(a.T, [1, 0], b.T, [1], optimize=do_opt),
+ np.dot(b.T, a.T))
+
+ c = np.arange(4, dtype=dtype)
+ np.einsum("ji,j", a.T, b.T, out=c,
+ dtype='f8', casting='unsafe', optimize=do_opt)
+ assert_equal(c,
+ np.dot(b.T.astype('f8'),
+ a.T.astype('f8')).astype(dtype))
+ c[...] = 0
+ np.einsum(a.T, [1, 0], b.T, [1], out=c,
+ dtype='f8', casting='unsafe', optimize=do_opt)
+ assert_equal(c,
+ np.dot(b.T.astype('f8'),
+ a.T.astype('f8')).astype(dtype))
+
+ # matmat(a,b) / a.dot(b) where a is matrix, b is matrix
+ for n in range(1, 17):
+ if n < 8 or dtype != 'f2':
+ a = np.arange(4 * n, dtype=dtype).reshape(4, n)
+ b = np.arange(n * 6, dtype=dtype).reshape(n, 6)
+ assert_equal(np.einsum("ij,jk", a, b, optimize=do_opt),
+ np.dot(a, b))
+ assert_equal(np.einsum(a, [0, 1], b, [1, 2], optimize=do_opt),
+ np.dot(a, b))
+
+ for n in range(1, 17):
+ a = np.arange(4 * n, dtype=dtype).reshape(4, n)
+ b = np.arange(n * 6, dtype=dtype).reshape(n, 6)
+ c = np.arange(24, dtype=dtype).reshape(4, 6)
+ np.einsum("ij,jk", a, b, out=c, dtype='f8', casting='unsafe',
+ optimize=do_opt)
+ assert_equal(c,
+ np.dot(a.astype('f8'),
+ b.astype('f8')).astype(dtype))
+ c[...] = 0
+ np.einsum(a, [0, 1], b, [1, 2], out=c,
+ dtype='f8', casting='unsafe', optimize=do_opt)
+ assert_equal(c,
+ np.dot(a.astype('f8'),
+ b.astype('f8')).astype(dtype))
+
+ # matrix triple product (note this is not currently an efficient
+ # way to multiply 3 matrices)
+ a = np.arange(12, dtype=dtype).reshape(3, 4)
+ b = np.arange(20, dtype=dtype).reshape(4, 5)
+ c = np.arange(30, dtype=dtype).reshape(5, 6)
+ if dtype != 'f2':
+ assert_equal(np.einsum("ij,jk,kl", a, b, c, optimize=do_opt),
+ a.dot(b).dot(c))
+ assert_equal(np.einsum(a, [0, 1], b, [1, 2], c, [2, 3],
+ optimize=do_opt), a.dot(b).dot(c))
+
+ d = np.arange(18, dtype=dtype).reshape(3, 6)
+ np.einsum("ij,jk,kl", a, b, c, out=d,
+ dtype='f8', casting='unsafe', optimize=do_opt)
+ tgt = a.astype('f8').dot(b.astype('f8'))
+ tgt = tgt.dot(c.astype('f8')).astype(dtype)
+ assert_equal(d, tgt)
+
+ d[...] = 0
+ np.einsum(a, [0, 1], b, [1, 2], c, [2, 3], out=d,
+ dtype='f8', casting='unsafe', optimize=do_opt)
+ tgt = a.astype('f8').dot(b.astype('f8'))
+ tgt = tgt.dot(c.astype('f8')).astype(dtype)
+ assert_equal(d, tgt)
+
+ # tensordot(a, b)
+ if np.dtype(dtype) != np.dtype('f2'):
+ a = np.arange(60, dtype=dtype).reshape(3, 4, 5)
+ b = np.arange(24, dtype=dtype).reshape(4, 3, 2)
+ assert_equal(np.einsum("ijk, jil -> kl", a, b),
+ np.tensordot(a, b, axes=([1, 0], [0, 1])))
+ assert_equal(np.einsum(a, [0, 1, 2], b, [1, 0, 3], [2, 3]),
+ np.tensordot(a, b, axes=([1, 0], [0, 1])))
+
+ c = np.arange(10, dtype=dtype).reshape(5, 2)
+ np.einsum("ijk,jil->kl", a, b, out=c,
+ dtype='f8', casting='unsafe', optimize=do_opt)
+ assert_equal(c, np.tensordot(a.astype('f8'), b.astype('f8'),
+ axes=([1, 0], [0, 1])).astype(dtype))
+ c[...] = 0
+ np.einsum(a, [0, 1, 2], b, [1, 0, 3], [2, 3], out=c,
+ dtype='f8', casting='unsafe', optimize=do_opt)
+ assert_equal(c, np.tensordot(a.astype('f8'), b.astype('f8'),
+ axes=([1, 0], [0, 1])).astype(dtype))
+
+ # logical_and(logical_and(a!=0, b!=0), c!=0)
+ neg_val = -2 if dtype.kind != "u" else np.iinfo(dtype).max - 1
+ a = np.array([1, 3, neg_val, 0, 12, 13, 0, 1], dtype=dtype)
+ b = np.array([0, 3.5, 0., neg_val, 0, 1, 3, 12], dtype=dtype)
+ c = np.array([True, True, False, True, True, False, True, True])
+
+ assert_equal(np.einsum("i,i,i->i", a, b, c,
+ dtype='?', casting='unsafe', optimize=do_opt),
+ np.logical_and(np.logical_and(a != 0, b != 0), c != 0))
+ assert_equal(np.einsum(a, [0], b, [0], c, [0], [0],
+ dtype='?', casting='unsafe'),
+ np.logical_and(np.logical_and(a != 0, b != 0), c != 0))
+
+ a = np.arange(9, dtype=dtype)
+ assert_equal(np.einsum(",i->", 3, a), 3 * np.sum(a))
+ assert_equal(np.einsum(3, [], a, [0], []), 3 * np.sum(a))
+ assert_equal(np.einsum("i,->", a, 3), 3 * np.sum(a))
+ assert_equal(np.einsum(a, [0], 3, [], []), 3 * np.sum(a))
+
+ # Various stride0, contiguous, and SSE aligned variants
+ for n in range(1, 25):
+ a = np.arange(n, dtype=dtype)
+ if np.dtype(dtype).itemsize > 1:
+ assert_equal(np.einsum("...,...", a, a, optimize=do_opt),
+ np.multiply(a, a))
+ assert_equal(np.einsum("i,i", a, a, optimize=do_opt), np.dot(a, a))
+ assert_equal(np.einsum("i,->i", a, 2, optimize=do_opt), 2 * a)
+ assert_equal(np.einsum(",i->i", 2, a, optimize=do_opt), 2 * a)
+ assert_equal(np.einsum("i,->", a, 2, optimize=do_opt), 2 * np.sum(a))
+ assert_equal(np.einsum(",i->", 2, a, optimize=do_opt), 2 * np.sum(a))
+
+ assert_equal(np.einsum("...,...", a[1:], a[:-1], optimize=do_opt),
+ np.multiply(a[1:], a[:-1]))
+ assert_equal(np.einsum("i,i", a[1:], a[:-1], optimize=do_opt),
+ np.dot(a[1:], a[:-1]))
+ assert_equal(np.einsum("i,->i", a[1:], 2, optimize=do_opt), 2 * a[1:])
+ assert_equal(np.einsum(",i->i", 2, a[1:], optimize=do_opt), 2 * a[1:])
+ assert_equal(np.einsum("i,->", a[1:], 2, optimize=do_opt),
+ 2 * np.sum(a[1:]))
+ assert_equal(np.einsum(",i->", 2, a[1:], optimize=do_opt),
+ 2 * np.sum(a[1:]))
+
+ # An object array, summed as the data type
+ a = np.arange(9, dtype=object)
+
+ b = np.einsum("i->", a, dtype=dtype, casting='unsafe')
+ assert_equal(b, np.sum(a))
+ if hasattr(b, "dtype"):
+ # Can be a python object when dtype is object
+ assert_equal(b.dtype, np.dtype(dtype))
+
+ b = np.einsum(a, [0], [], dtype=dtype, casting='unsafe')
+ assert_equal(b, np.sum(a))
+ if hasattr(b, "dtype"):
+ # Can be a python object when dtype is object
+ assert_equal(b.dtype, np.dtype(dtype))
+
+ # A case which was failing (ticket #1885)
+ p = np.arange(2) + 1
+ q = np.arange(4).reshape(2, 2) + 3
+ r = np.arange(4).reshape(2, 2) + 7
+ assert_equal(np.einsum('z,mz,zm->', p, q, r), 253)
+
+ # singleton dimensions broadcast (gh-10343)
+ p = np.ones((10, 2))
+ q = np.ones((1, 2))
+ assert_array_equal(np.einsum('ij,ij->j', p, q, optimize=True),
+ np.einsum('ij,ij->j', p, q, optimize=False))
+ assert_array_equal(np.einsum('ij,ij->j', p, q, optimize=True),
+ [10.] * 2)
+
+ # a blas-compatible contraction broadcasting case which was failing
+ # for optimize=True (ticket #10930)
+ x = np.array([2., 3.])
+ y = np.array([4.])
+ assert_array_equal(np.einsum("i, i", x, y, optimize=False), 20.)
+ assert_array_equal(np.einsum("i, i", x, y, optimize=True), 20.)
+
+ # all-ones array was bypassing bug (ticket #10930)
+ p = np.ones((1, 5)) / 2
+ q = np.ones((5, 5)) / 2
+ for optimize in (True, False):
+ assert_array_equal(np.einsum("...ij,...jk->...ik", p, p,
+ optimize=optimize),
+ np.einsum("...ij,...jk->...ik", p, q,
+ optimize=optimize))
+ assert_array_equal(np.einsum("...ij,...jk->...ik", p, q,
+ optimize=optimize),
+ np.full((1, 5), 1.25))
+
+ # Cases which were failing (gh-10899)
+ x = np.eye(2, dtype=dtype)
+ y = np.ones(2, dtype=dtype)
+ assert_array_equal(np.einsum("ji,i->", x, y, optimize=optimize),
+ [2.]) # contig_contig_outstride0_two
+ assert_array_equal(np.einsum("i,ij->", y, x, optimize=optimize),
+ [2.]) # stride0_contig_outstride0_two
+ assert_array_equal(np.einsum("ij,i->", x, y, optimize=optimize),
+ [2.]) # contig_stride0_outstride0_two
+
+ def test_einsum_sums_int8(self):
+ self.check_einsum_sums('i1')
+
+ def test_einsum_sums_uint8(self):
+ self.check_einsum_sums('u1')
+
+ def test_einsum_sums_int16(self):
+ self.check_einsum_sums('i2')
+
+ def test_einsum_sums_uint16(self):
+ self.check_einsum_sums('u2')
+
+ def test_einsum_sums_int32(self):
+ self.check_einsum_sums('i4')
+ self.check_einsum_sums('i4', True)
+
+ def test_einsum_sums_uint32(self):
+ self.check_einsum_sums('u4')
+ self.check_einsum_sums('u4', True)
+
+ def test_einsum_sums_int64(self):
+ self.check_einsum_sums('i8')
+
+ def test_einsum_sums_uint64(self):
+ self.check_einsum_sums('u8')
+
+ def test_einsum_sums_float16(self):
+ self.check_einsum_sums('f2')
+
+ def test_einsum_sums_float32(self):
+ self.check_einsum_sums('f4')
+
+ def test_einsum_sums_float64(self):
+ self.check_einsum_sums('f8')
+ self.check_einsum_sums('f8', True)
+
+ def test_einsum_sums_longdouble(self):
+ self.check_einsum_sums(np.longdouble)
+
+ def test_einsum_sums_cfloat64(self):
+ self.check_einsum_sums('c8')
+ self.check_einsum_sums('c8', True)
+
+ def test_einsum_sums_cfloat128(self):
+ self.check_einsum_sums('c16')
+
+ def test_einsum_sums_clongdouble(self):
+ self.check_einsum_sums(np.clongdouble)
+
+ def test_einsum_sums_object(self):
+ self.check_einsum_sums('object')
+ self.check_einsum_sums('object', True)
+
+ def test_einsum_misc(self):
+ # This call used to crash because of a bug in
+ # PyArray_AssignZero
+ a = np.ones((1, 2))
+ b = np.ones((2, 2, 1))
+ assert_equal(np.einsum('ij...,j...->i...', a, b), [[[2], [2]]])
+ assert_equal(np.einsum('ij...,j...->i...', a, b, optimize=True), [[[2], [2]]])
+
+ # Regression test for issue #10369 (test unicode inputs with Python 2)
+ assert_equal(np.einsum('ij...,j...->i...', a, b), [[[2], [2]]])
+ assert_equal(np.einsum('...i,...i', [1, 2, 3], [2, 3, 4]), 20)
+ assert_equal(np.einsum('...i,...i', [1, 2, 3], [2, 3, 4],
+ optimize='greedy'), 20)
+
+ # The iterator had an issue with buffering this reduction
+ a = np.ones((5, 12, 4, 2, 3), np.int64)
+ b = np.ones((5, 12, 11), np.int64)
+ assert_equal(np.einsum('ijklm,ijn,ijn->', a, b, b),
+ np.einsum('ijklm,ijn->', a, b))
+ assert_equal(np.einsum('ijklm,ijn,ijn->', a, b, b, optimize=True),
+ np.einsum('ijklm,ijn->', a, b, optimize=True))
+
+ # Issue #2027, was a problem in the contiguous 3-argument
+ # inner loop implementation
+ a = np.arange(1, 3)
+ b = np.arange(1, 5).reshape(2, 2)
+ c = np.arange(1, 9).reshape(4, 2)
+ assert_equal(np.einsum('x,yx,zx->xzy', a, b, c),
+ [[[1, 3], [3, 9], [5, 15], [7, 21]],
+ [[8, 16], [16, 32], [24, 48], [32, 64]]])
+ assert_equal(np.einsum('x,yx,zx->xzy', a, b, c, optimize=True),
+ [[[1, 3], [3, 9], [5, 15], [7, 21]],
+ [[8, 16], [16, 32], [24, 48], [32, 64]]])
+
+ # Ensure explicitly setting out=None does not cause an error
+ # see issue gh-15776 and issue gh-15256
+ assert_equal(np.einsum('i,j', [1], [2], out=None), [[2]])
+
+ def test_object_loop(self):
+
+ class Mult:
+ def __mul__(self, other):
+ return 42
+
+ objMult = np.array([Mult()])
+ objNULL = np.ndarray(buffer=b'\0' * np.intp(0).itemsize, shape=1, dtype=object)
+
+ with pytest.raises(TypeError):
+ np.einsum("i,j", [1], objNULL)
+ with pytest.raises(TypeError):
+ np.einsum("i,j", objNULL, [1])
+ assert np.einsum("i,j", objMult, objMult) == 42
+
+ def test_subscript_range(self):
+ # Issue #7741, make sure that all letters of Latin alphabet (both uppercase & lowercase) can be used
+ # when creating a subscript from arrays
+ a = np.ones((2, 3))
+ b = np.ones((3, 4))
+ np.einsum(a, [0, 20], b, [20, 2], [0, 2], optimize=False)
+ np.einsum(a, [0, 27], b, [27, 2], [0, 2], optimize=False)
+ np.einsum(a, [0, 51], b, [51, 2], [0, 2], optimize=False)
+ assert_raises(ValueError, lambda: np.einsum(a, [0, 52], b, [52, 2], [0, 2], optimize=False))
+ assert_raises(ValueError, lambda: np.einsum(a, [-1, 5], b, [5, 2], [-1, 2], optimize=False))
+
+ def test_einsum_broadcast(self):
+ # Issue #2455 change in handling ellipsis
+ # remove the 'middle broadcast' error
+ # only use the 'RIGHT' iteration in prepare_op_axes
+ # adds auto broadcast on left where it belongs
+ # broadcast on right has to be explicit
+ # We need to test the optimized parsing as well
+
+ A = np.arange(2 * 3 * 4).reshape(2, 3, 4)
+ B = np.arange(3)
+ ref = np.einsum('ijk,j->ijk', A, B, optimize=False)
+ for opt in [True, False]:
+ assert_equal(np.einsum('ij...,j...->ij...', A, B, optimize=opt), ref)
+ assert_equal(np.einsum('ij...,...j->ij...', A, B, optimize=opt), ref)
+ assert_equal(np.einsum('ij...,j->ij...', A, B, optimize=opt), ref) # used to raise error
+
+ A = np.arange(12).reshape((4, 3))
+ B = np.arange(6).reshape((3, 2))
+ ref = np.einsum('ik,kj->ij', A, B, optimize=False)
+ for opt in [True, False]:
+ assert_equal(np.einsum('ik...,k...->i...', A, B, optimize=opt), ref)
+ assert_equal(np.einsum('ik...,...kj->i...j', A, B, optimize=opt), ref)
+ assert_equal(np.einsum('...k,kj', A, B, optimize=opt), ref) # used to raise error
+ assert_equal(np.einsum('ik,k...->i...', A, B, optimize=opt), ref) # used to raise error
+
+ dims = [2, 3, 4, 5]
+ a = np.arange(np.prod(dims)).reshape(dims)
+ v = np.arange(dims[2])
+ ref = np.einsum('ijkl,k->ijl', a, v, optimize=False)
+ for opt in [True, False]:
+ assert_equal(np.einsum('ijkl,k', a, v, optimize=opt), ref)
+ assert_equal(np.einsum('...kl,k', a, v, optimize=opt), ref) # used to raise error
+ assert_equal(np.einsum('...kl,k...', a, v, optimize=opt), ref)
+
+ J, K, M = 160, 160, 120
+ A = np.arange(J * K * M).reshape(1, 1, 1, J, K, M)
+ B = np.arange(J * K * M * 3).reshape(J, K, M, 3)
+ ref = np.einsum('...lmn,...lmno->...o', A, B, optimize=False)
+ for opt in [True, False]:
+ assert_equal(np.einsum('...lmn,lmno->...o', A, B,
+ optimize=opt), ref) # used to raise error
+
+ def test_einsum_fixedstridebug(self):
+ # Issue #4485 obscure einsum bug
+ # This case revealed a bug in nditer where it reported a stride
+ # as 'fixed' (0) when it was in fact not fixed during processing
+ # (0 or 4). The reason for the bug was that the check for a fixed
+ # stride was using the information from the 2D inner loop reuse
+ # to restrict the iteration dimensions it had to validate to be
+ # the same, but that 2D inner loop reuse logic is only triggered
+ # during the buffer copying step, and hence it was invalid to
+ # rely on those values. The fix is to check all the dimensions
+ # of the stride in question, which in the test case reveals that
+ # the stride is not fixed.
+ #
+ # NOTE: This test is triggered by the fact that the default buffersize,
+ # used by einsum, is 8192, and 3*2731 = 8193, is larger than that
+ # and results in a mismatch between the buffering and the
+ # striding for operand A.
+ A = np.arange(2 * 3).reshape(2, 3).astype(np.float32)
+ B = np.arange(2 * 3 * 2731).reshape(2, 3, 2731).astype(np.int16)
+ es = np.einsum('cl, cpx->lpx', A, B)
+ tp = np.tensordot(A, B, axes=(0, 0))
+ assert_equal(es, tp)
+ # The following is the original test case from the bug report,
+ # made repeatable by changing random arrays to aranges.
+ A = np.arange(3 * 3).reshape(3, 3).astype(np.float64)
+ B = np.arange(3 * 3 * 64 * 64).reshape(3, 3, 64, 64).astype(np.float32)
+ es = np.einsum('cl, cpxy->lpxy', A, B)
+ tp = np.tensordot(A, B, axes=(0, 0))
+ assert_equal(es, tp)
+
+ def test_einsum_fixed_collapsingbug(self):
+ # Issue #5147.
+ # The bug only occurred when output argument of einssum was used.
+ x = np.random.normal(0, 1, (5, 5, 5, 5))
+ y1 = np.zeros((5, 5))
+ np.einsum('aabb->ab', x, out=y1)
+ idx = np.arange(5)
+ y2 = x[idx[:, None], idx[:, None], idx, idx]
+ assert_equal(y1, y2)
+
+ def test_einsum_failed_on_p9_and_s390x(self):
+ # Issues gh-14692 and gh-12689
+ # Bug with signed vs unsigned char errored on power9 and s390x Linux
+ tensor = np.random.random_sample((10, 10, 10, 10))
+ x = np.einsum('ijij->', tensor)
+ y = tensor.trace(axis1=0, axis2=2).trace()
+ assert_allclose(x, y)
+
+ def test_einsum_all_contig_non_contig_output(self):
+ # Issue gh-5907, tests that the all contiguous special case
+ # actually checks the contiguity of the output
+ x = np.ones((5, 5))
+ out = np.ones(10)[::2]
+ correct_base = np.ones(10)
+ correct_base[::2] = 5
+ # Always worked (inner iteration is done with 0-stride):
+ np.einsum('mi,mi,mi->m', x, x, x, out=out)
+ assert_array_equal(out.base, correct_base)
+ # Example 1:
+ out = np.ones(10)[::2]
+ np.einsum('im,im,im->m', x, x, x, out=out)
+ assert_array_equal(out.base, correct_base)
+ # Example 2, buffering causes x to be contiguous but
+ # special cases do not catch the operation before:
+ out = np.ones((2, 2, 2))[..., 0]
+ correct_base = np.ones((2, 2, 2))
+ correct_base[..., 0] = 2
+ x = np.ones((2, 2), np.float32)
+ np.einsum('ij,jk->ik', x, x, out=out)
+ assert_array_equal(out.base, correct_base)
+
+ @pytest.mark.parametrize("dtype",
+ np.typecodes["AllFloat"] + np.typecodes["AllInteger"])
+ def test_different_paths(self, dtype):
+ # Test originally added to cover broken float16 path: gh-20305
+ # Likely most are covered elsewhere, at least partially.
+ dtype = np.dtype(dtype)
+ # Simple test, designed to exercise most specialized code paths,
+ # note the +0.5 for floats. This makes sure we use a float value
+ # where the results must be exact.
+ arr = (np.arange(7) + 0.5).astype(dtype)
+ scalar = np.array(2, dtype=dtype)
+
+ # contig -> scalar:
+ res = np.einsum('i->', arr)
+ assert res == arr.sum()
+ # contig, contig -> contig:
+ res = np.einsum('i,i->i', arr, arr)
+ assert_array_equal(res, arr * arr)
+ # noncontig, noncontig -> contig:
+ res = np.einsum('i,i->i', arr.repeat(2)[::2], arr.repeat(2)[::2])
+ assert_array_equal(res, arr * arr)
+ # contig + contig -> scalar
+ assert np.einsum('i,i->', arr, arr) == (arr * arr).sum()
+ # contig + scalar -> contig (with out)
+ out = np.ones(7, dtype=dtype)
+ res = np.einsum('i,->i', arr, dtype.type(2), out=out)
+ assert_array_equal(res, arr * dtype.type(2))
+ # scalar + contig -> contig (with out)
+ res = np.einsum(',i->i', scalar, arr)
+ assert_array_equal(res, arr * dtype.type(2))
+ # scalar + contig -> scalar
+ res = np.einsum(',i->', scalar, arr)
+ # Use einsum to compare to not have difference due to sum round-offs:
+ assert res == np.einsum('i->', scalar * arr)
+ # contig + scalar -> scalar
+ res = np.einsum('i,->', arr, scalar)
+ # Use einsum to compare to not have difference due to sum round-offs:
+ assert res == np.einsum('i->', scalar * arr)
+ # contig + contig + contig -> scalar
+ arr = np.array([0.5, 0.5, 0.25, 4.5, 3.], dtype=dtype)
+ res = np.einsum('i,i,i->', arr, arr, arr)
+ assert_array_equal(res, (arr * arr * arr).sum())
+ # four arrays:
+ res = np.einsum('i,i,i,i->', arr, arr, arr, arr)
+ assert_array_equal(res, (arr * arr * arr * arr).sum())
+
+ def test_small_boolean_arrays(self):
+ # See gh-5946.
+ # Use array of True embedded in False.
+ a = np.zeros((16, 1, 1), dtype=np.bool)[:2]
+ a[...] = True
+ out = np.zeros((16, 1, 1), dtype=np.bool)[:2]
+ tgt = np.ones((2, 1, 1), dtype=np.bool)
+ res = np.einsum('...ij,...jk->...ik', a, a, out=out)
+ assert_equal(res, tgt)
+
+ def test_out_is_res(self):
+ a = np.arange(9).reshape(3, 3)
+ res = np.einsum('...ij,...jk->...ik', a, a, out=a)
+ assert res is a
+
+ def optimize_compare(self, subscripts, operands=None):
+ # Tests all paths of the optimization function against
+ # conventional einsum
+ if operands is None:
+ args = [subscripts]
+ terms = subscripts.split('->')[0].split(',')
+ for term in terms:
+ dims = [global_size_dict[x] for x in term]
+ args.append(np.random.rand(*dims))
+ else:
+ args = [subscripts] + operands
+
+ noopt = np.einsum(*args, optimize=False)
+ opt = np.einsum(*args, optimize='greedy')
+ assert_almost_equal(opt, noopt)
+ opt = np.einsum(*args, optimize='optimal')
+ assert_almost_equal(opt, noopt)
+
+ def test_hadamard_like_products(self):
+ # Hadamard outer products
+ self.optimize_compare('a,ab,abc->abc')
+ self.optimize_compare('a,b,ab->ab')
+
+ def test_index_transformations(self):
+ # Simple index transformation cases
+ self.optimize_compare('ea,fb,gc,hd,abcd->efgh')
+ self.optimize_compare('ea,fb,abcd,gc,hd->efgh')
+ self.optimize_compare('abcd,ea,fb,gc,hd->efgh')
+
+ def test_complex(self):
+ # Long test cases
+ self.optimize_compare('acdf,jbje,gihb,hfac,gfac,gifabc,hfac')
+ self.optimize_compare('acdf,jbje,gihb,hfac,gfac,gifabc,hfac')
+ self.optimize_compare('cd,bdhe,aidb,hgca,gc,hgibcd,hgac')
+ self.optimize_compare('abhe,hidj,jgba,hiab,gab')
+ self.optimize_compare('bde,cdh,agdb,hica,ibd,hgicd,hiac')
+ self.optimize_compare('chd,bde,agbc,hiad,hgc,hgi,hiad')
+ self.optimize_compare('chd,bde,agbc,hiad,bdi,cgh,agdb')
+ self.optimize_compare('bdhe,acad,hiab,agac,hibd')
+
+ def test_collapse(self):
+ # Inner products
+ self.optimize_compare('ab,ab,c->')
+ self.optimize_compare('ab,ab,c->c')
+ self.optimize_compare('ab,ab,cd,cd->')
+ self.optimize_compare('ab,ab,cd,cd->ac')
+ self.optimize_compare('ab,ab,cd,cd->cd')
+ self.optimize_compare('ab,ab,cd,cd,ef,ef->')
+
+ def test_expand(self):
+ # Outer products
+ self.optimize_compare('ab,cd,ef->abcdef')
+ self.optimize_compare('ab,cd,ef->acdf')
+ self.optimize_compare('ab,cd,de->abcde')
+ self.optimize_compare('ab,cd,de->be')
+ self.optimize_compare('ab,bcd,cd->abcd')
+ self.optimize_compare('ab,bcd,cd->abd')
+
+ def test_edge_cases(self):
+ # Difficult edge cases for optimization
+ self.optimize_compare('eb,cb,fb->cef')
+ self.optimize_compare('dd,fb,be,cdb->cef')
+ self.optimize_compare('bca,cdb,dbf,afc->')
+ self.optimize_compare('dcc,fce,ea,dbf->ab')
+ self.optimize_compare('fdf,cdd,ccd,afe->ae')
+ self.optimize_compare('abcd,ad')
+ self.optimize_compare('ed,fcd,ff,bcf->be')
+ self.optimize_compare('baa,dcf,af,cde->be')
+ self.optimize_compare('bd,db,eac->ace')
+ self.optimize_compare('fff,fae,bef,def->abd')
+ self.optimize_compare('efc,dbc,acf,fd->abe')
+ self.optimize_compare('ba,ac,da->bcd')
+
+ def test_inner_product(self):
+ # Inner products
+ self.optimize_compare('ab,ab')
+ self.optimize_compare('ab,ba')
+ self.optimize_compare('abc,abc')
+ self.optimize_compare('abc,bac')
+ self.optimize_compare('abc,cba')
+
+ def test_random_cases(self):
+ # Randomly built test cases
+ self.optimize_compare('aab,fa,df,ecc->bde')
+ self.optimize_compare('ecb,fef,bad,ed->ac')
+ self.optimize_compare('bcf,bbb,fbf,fc->')
+ self.optimize_compare('bb,ff,be->e')
+ self.optimize_compare('bcb,bb,fc,fff->')
+ self.optimize_compare('fbb,dfd,fc,fc->')
+ self.optimize_compare('afd,ba,cc,dc->bf')
+ self.optimize_compare('adb,bc,fa,cfc->d')
+ self.optimize_compare('bbd,bda,fc,db->acf')
+ self.optimize_compare('dba,ead,cad->bce')
+ self.optimize_compare('aef,fbc,dca->bde')
+
+ def test_combined_views_mapping(self):
+ # gh-10792
+ a = np.arange(9).reshape(1, 1, 3, 1, 3)
+ b = np.einsum('bbcdc->d', a)
+ assert_equal(b, [12])
+
+ def test_broadcasting_dot_cases(self):
+ # Ensures broadcasting cases are not mistaken for GEMM
+
+ a = np.random.rand(1, 5, 4)
+ b = np.random.rand(4, 6)
+ c = np.random.rand(5, 6)
+ d = np.random.rand(10)
+
+ self.optimize_compare('ijk,kl,jl', operands=[a, b, c])
+ self.optimize_compare('ijk,kl,jl,i->i', operands=[a, b, c, d])
+
+ e = np.random.rand(1, 1, 5, 4)
+ f = np.random.rand(7, 7)
+ self.optimize_compare('abjk,kl,jl', operands=[e, b, c])
+ self.optimize_compare('abjk,kl,jl,ab->ab', operands=[e, b, c, f])
+
+ # Edge case found in gh-11308
+ g = np.arange(64).reshape(2, 4, 8)
+ self.optimize_compare('obk,ijk->ioj', operands=[g, g])
+
+ def test_output_order(self):
+ # Ensure output order is respected for optimize cases, the below
+ # contraction should yield a reshaped tensor view
+ # gh-16415
+
+ a = np.ones((2, 3, 5), order='F')
+ b = np.ones((4, 3), order='F')
+
+ for opt in [True, False]:
+ tmp = np.einsum('...ft,mf->...mt', a, b, order='a', optimize=opt)
+ assert_(tmp.flags.f_contiguous)
+
+ tmp = np.einsum('...ft,mf->...mt', a, b, order='f', optimize=opt)
+ assert_(tmp.flags.f_contiguous)
+
+ tmp = np.einsum('...ft,mf->...mt', a, b, order='c', optimize=opt)
+ assert_(tmp.flags.c_contiguous)
+
+ tmp = np.einsum('...ft,mf->...mt', a, b, order='k', optimize=opt)
+ assert_(tmp.flags.c_contiguous is False)
+ assert_(tmp.flags.f_contiguous is False)
+
+ tmp = np.einsum('...ft,mf->...mt', a, b, optimize=opt)
+ assert_(tmp.flags.c_contiguous is False)
+ assert_(tmp.flags.f_contiguous is False)
+
+ c = np.ones((4, 3), order='C')
+ for opt in [True, False]:
+ tmp = np.einsum('...ft,mf->...mt', a, c, order='a', optimize=opt)
+ assert_(tmp.flags.c_contiguous)
+
+ d = np.ones((2, 3, 5), order='C')
+ for opt in [True, False]:
+ tmp = np.einsum('...ft,mf->...mt', d, c, order='a', optimize=opt)
+ assert_(tmp.flags.c_contiguous)
+
+ def test_singleton_broadcasting(self):
+ eq = "ijp,ipq,ikq->ijk"
+ shapes = ((3, 1, 1), (3, 1, 3), (1, 3, 3))
+ arrays = [np.random.rand(*shape) for shape in shapes]
+ self.optimize_compare(eq, operands=arrays)
+
+ eq = "jhcabhijaci,dfijejgh->fgje"
+ shapes = (
+ (1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 1),
+ (3, 1, 3, 1, 1, 1, 1, 2),
+ )
+ arrays = [np.random.rand(*shape) for shape in shapes]
+ self.optimize_compare(eq, operands=arrays)
+
+ eq = "baegffahgc,hdggeff->dhg"
+ shapes = ((2, 1, 4, 1, 1, 1, 1, 2, 1, 1), (1, 1, 1, 1, 4, 1, 1))
+ arrays = [np.random.rand(*shape) for shape in shapes]
+ self.optimize_compare(eq, operands=arrays)
+
+ eq = "cehgbaifff,fhhdegih->cdghbi"
+ shapes = ((1, 1, 1, 1, 1, 1, 1, 1, 1, 1), (2, 1, 1, 2, 4, 1, 1, 1))
+ arrays = [np.random.rand(*shape) for shape in shapes]
+ self.optimize_compare(eq, operands=arrays)
+
+ eq = "gah,cdbcghefg->ef"
+ shapes = ((2, 3, 1), (1, 3, 1, 1, 1, 2, 1, 4, 1))
+ arrays = [np.random.rand(*shape) for shape in shapes]
+ self.optimize_compare(eq, operands=arrays)
+
+ eq = "cacc,bcb->"
+ shapes = ((1, 1, 1, 1), (1, 4, 1))
+ arrays = [np.random.rand(*shape) for shape in shapes]
+ self.optimize_compare(eq, operands=arrays)
+
+
+class TestEinsumPath:
+ def build_operands(self, string, size_dict=global_size_dict):
+
+ # Builds views based off initial operands
+ operands = [string]
+ terms = string.split('->')[0].split(',')
+ for term in terms:
+ dims = [size_dict[x] for x in term]
+ operands.append(np.random.rand(*dims))
+
+ return operands
+
+ def assert_path_equal(self, comp, benchmark):
+ # Checks if list of tuples are equivalent
+ ret = (len(comp) == len(benchmark))
+ assert_(ret)
+ for pos in range(len(comp) - 1):
+ ret &= isinstance(comp[pos + 1], tuple)
+ ret &= (comp[pos + 1] == benchmark[pos + 1])
+ assert_(ret)
+
+ def test_memory_contraints(self):
+ # Ensure memory constraints are satisfied
+
+ outer_test = self.build_operands('a,b,c->abc')
+
+ path, path_str = np.einsum_path(*outer_test, optimize=('greedy', 0))
+ self.assert_path_equal(path, ['einsum_path', (0, 1, 2)])
+
+ path, path_str = np.einsum_path(*outer_test, optimize=('optimal', 0))
+ self.assert_path_equal(path, ['einsum_path', (0, 1, 2)])
+
+ long_test = self.build_operands('acdf,jbje,gihb,hfac')
+ path, path_str = np.einsum_path(*long_test, optimize=('greedy', 0))
+ self.assert_path_equal(path, ['einsum_path', (0, 1, 2, 3)])
+
+ path, path_str = np.einsum_path(*long_test, optimize=('optimal', 0))
+ self.assert_path_equal(path, ['einsum_path', (0, 1, 2, 3)])
+
+ def test_long_paths(self):
+ # Long complex cases
+
+ # Long test 1
+ long_test1 = self.build_operands('acdf,jbje,gihb,hfac,gfac,gifabc,hfac')
+ path, path_str = np.einsum_path(*long_test1, optimize='greedy')
+ self.assert_path_equal(path, ['einsum_path',
+ (3, 6), (3, 4), (2, 4), (2, 3), (0, 2), (0, 1)])
+
+ path, path_str = np.einsum_path(*long_test1, optimize='optimal')
+ self.assert_path_equal(path, ['einsum_path',
+ (3, 6), (3, 4), (2, 4), (2, 3), (0, 2), (0, 1)])
+
+ # Long test 2
+ long_test2 = self.build_operands('chd,bde,agbc,hiad,bdi,cgh,agdb')
+ path, path_str = np.einsum_path(*long_test2, optimize='greedy')
+ self.assert_path_equal(path, ['einsum_path',
+ (3, 4), (0, 3), (3, 4), (1, 3), (1, 2), (0, 1)])
+
+ path, path_str = np.einsum_path(*long_test2, optimize='optimal')
+ self.assert_path_equal(path, ['einsum_path',
+ (0, 5), (1, 4), (3, 4), (1, 3), (1, 2), (0, 1)])
+
+ def test_edge_paths(self):
+ # Difficult edge cases
+
+ # Edge test1
+ edge_test1 = self.build_operands('eb,cb,fb->cef')
+ path, path_str = np.einsum_path(*edge_test1, optimize='greedy')
+ self.assert_path_equal(path, ['einsum_path', (0, 2), (0, 1)])
+
+ path, path_str = np.einsum_path(*edge_test1, optimize='optimal')
+ self.assert_path_equal(path, ['einsum_path', (0, 2), (0, 1)])
+
+ # Edge test2
+ edge_test2 = self.build_operands('dd,fb,be,cdb->cef')
+ path, path_str = np.einsum_path(*edge_test2, optimize='greedy')
+ self.assert_path_equal(path, ['einsum_path', (0, 3), (0, 1), (0, 1)])
+
+ path, path_str = np.einsum_path(*edge_test2, optimize='optimal')
+ self.assert_path_equal(path, ['einsum_path', (0, 3), (0, 1), (0, 1)])
+
+ # Edge test3
+ edge_test3 = self.build_operands('bca,cdb,dbf,afc->')
+ path, path_str = np.einsum_path(*edge_test3, optimize='greedy')
+ self.assert_path_equal(path, ['einsum_path', (1, 2), (0, 2), (0, 1)])
+
+ path, path_str = np.einsum_path(*edge_test3, optimize='optimal')
+ self.assert_path_equal(path, ['einsum_path', (1, 2), (0, 2), (0, 1)])
+
+ # Edge test4
+ edge_test4 = self.build_operands('dcc,fce,ea,dbf->ab')
+ path, path_str = np.einsum_path(*edge_test4, optimize='greedy')
+ self.assert_path_equal(path, ['einsum_path', (1, 2), (0, 1), (0, 1)])
+
+ path, path_str = np.einsum_path(*edge_test4, optimize='optimal')
+ self.assert_path_equal(path, ['einsum_path', (1, 2), (0, 2), (0, 1)])
+
+ # Edge test5
+ edge_test4 = self.build_operands('a,ac,ab,ad,cd,bd,bc->',
+ size_dict={"a": 20, "b": 20, "c": 20, "d": 20})
+ path, path_str = np.einsum_path(*edge_test4, optimize='greedy')
+ self.assert_path_equal(path, ['einsum_path', (0, 1), (0, 1, 2, 3, 4, 5)])
+
+ path, path_str = np.einsum_path(*edge_test4, optimize='optimal')
+ self.assert_path_equal(path, ['einsum_path', (0, 1), (0, 1, 2, 3, 4, 5)])
+
+ def test_path_type_input(self):
+ # Test explicit path handling
+ path_test = self.build_operands('dcc,fce,ea,dbf->ab')
+
+ path, path_str = np.einsum_path(*path_test, optimize=False)
+ self.assert_path_equal(path, ['einsum_path', (0, 1, 2, 3)])
+
+ path, path_str = np.einsum_path(*path_test, optimize=True)
+ self.assert_path_equal(path, ['einsum_path', (1, 2), (0, 1), (0, 1)])
+
+ exp_path = ['einsum_path', (0, 2), (0, 2), (0, 1)]
+ path, path_str = np.einsum_path(*path_test, optimize=exp_path)
+ self.assert_path_equal(path, exp_path)
+
+ # Double check einsum works on the input path
+ noopt = np.einsum(*path_test, optimize=False)
+ opt = np.einsum(*path_test, optimize=exp_path)
+ assert_almost_equal(noopt, opt)
+
+ def test_path_type_input_internal_trace(self):
+ # gh-20962
+ path_test = self.build_operands('cab,cdd->ab')
+ exp_path = ['einsum_path', (1,), (0, 1)]
+
+ path, path_str = np.einsum_path(*path_test, optimize=exp_path)
+ self.assert_path_equal(path, exp_path)
+
+ # Double check einsum works on the input path
+ noopt = np.einsum(*path_test, optimize=False)
+ opt = np.einsum(*path_test, optimize=exp_path)
+ assert_almost_equal(noopt, opt)
+
+ def test_path_type_input_invalid(self):
+ path_test = self.build_operands('ab,bc,cd,de->ae')
+ exp_path = ['einsum_path', (2, 3), (0, 1)]
+ assert_raises(RuntimeError, np.einsum, *path_test, optimize=exp_path)
+ assert_raises(
+ RuntimeError, np.einsum_path, *path_test, optimize=exp_path)
+
+ path_test = self.build_operands('a,a,a->a')
+ exp_path = ['einsum_path', (1,), (0, 1)]
+ assert_raises(RuntimeError, np.einsum, *path_test, optimize=exp_path)
+ assert_raises(
+ RuntimeError, np.einsum_path, *path_test, optimize=exp_path)
+
+ def test_spaces(self):
+ # gh-10794
+ arr = np.array([[1]])
+ for sp in itertools.product(['', ' '], repeat=4):
+ # no error for any spacing
+ np.einsum('{}...a{}->{}...a{}'.format(*sp), arr)
+
+def test_overlap():
+ a = np.arange(9, dtype=int).reshape(3, 3)
+ b = np.arange(9, dtype=int).reshape(3, 3)
+ d = np.dot(a, b)
+ # sanity check
+ c = np.einsum('ij,jk->ik', a, b)
+ assert_equal(c, d)
+ # gh-10080, out overlaps one of the operands
+ c = np.einsum('ij,jk->ik', a, b, out=b)
+ assert_equal(c, d)
+
+def test_einsum_chunking_precision():
+ """Most einsum operations are reductions and until NumPy 2.3 reductions
+ never (or almost never?) used the `GROWINNER` mechanism to increase the
+ inner loop size when no buffers are needed.
+ Because einsum reductions work roughly:
+
+ def inner(*inputs, out):
+ accumulate = 0
+ for vals in zip(*inputs):
+ accumulate += prod(vals)
+ out[0] += accumulate
+
+ Calling the inner-loop more often actually improves accuracy slightly
+ (same effect as pairwise summation but much less).
+ Without adding pairwise summation to the inner-loop it seems best to just
+ not use GROWINNER, a quick tests suggest that is maybe 1% slowdown for
+ the simplest `einsum("i,i->i", x, x)` case.
+
+ (It is not clear that we should guarantee precision to this extend.)
+ """
+ num = 1_000_000
+ value = 1. + np.finfo(np.float64).eps * 8196
+ res = np.einsum("i->", np.broadcast_to(np.array(value), num)) / num
+
+ # At with GROWINNER 11 decimals succeed (larger will be less)
+ assert_almost_equal(res, value, decimal=15)
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/test_errstate.py b/python/user_packages/Python313/site-packages/numpy/_core/tests/test_errstate.py
new file mode 100644
index 0000000000000000000000000000000000000000..65fb23fdcbda78b2a01c362e3d7a2319b84deca6
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/tests/test_errstate.py
@@ -0,0 +1,131 @@
+import sysconfig
+
+import pytest
+
+import numpy as np
+from numpy.testing import IS_WASM, assert_raises
+
+# The floating point emulation on ARM EABI systems lacking a hardware FPU is
+# known to be buggy. This is an attempt to identify these hosts. It may not
+# catch all possible cases, but it catches the known cases of gh-413 and
+# gh-15562.
+hosttype = sysconfig.get_config_var('HOST_GNU_TYPE')
+arm_softfloat = False if hosttype is None else hosttype.endswith('gnueabi')
+
+class TestErrstate:
+ @pytest.mark.skipif(IS_WASM, reason="fp errors don't work in wasm")
+ @pytest.mark.skipif(arm_softfloat,
+ reason='platform/cpu issue with FPU (gh-413,-15562)')
+ def test_invalid(self):
+ with np.errstate(all='raise', under='ignore'):
+ a = -np.arange(3)
+ # This should work
+ with np.errstate(invalid='ignore'):
+ np.sqrt(a)
+ # While this should fail!
+ with assert_raises(FloatingPointError):
+ np.sqrt(a)
+
+ @pytest.mark.skipif(IS_WASM, reason="fp errors don't work in wasm")
+ @pytest.mark.skipif(arm_softfloat,
+ reason='platform/cpu issue with FPU (gh-15562)')
+ def test_divide(self):
+ with np.errstate(all='raise', under='ignore'):
+ a = -np.arange(3)
+ # This should work
+ with np.errstate(divide='ignore'):
+ a // 0
+ # While this should fail!
+ with assert_raises(FloatingPointError):
+ a // 0
+ # As should this, see gh-15562
+ with assert_raises(FloatingPointError):
+ a // a
+
+ @pytest.mark.skipif(IS_WASM, reason="fp errors don't work in wasm")
+ @pytest.mark.skipif(arm_softfloat,
+ reason='platform/cpu issue with FPU (gh-15562)')
+ def test_errcall(self):
+ count = 0
+
+ def foo(*args):
+ nonlocal count
+ count += 1
+
+ olderrcall = np.geterrcall()
+ with np.errstate(call=foo):
+ assert np.geterrcall() is foo
+ with np.errstate(call=None):
+ assert np.geterrcall() is None
+ assert np.geterrcall() is olderrcall
+ assert count == 0
+
+ with np.errstate(call=foo, invalid="call"):
+ np.array(np.inf) - np.array(np.inf)
+
+ assert count == 1
+
+ def test_errstate_decorator(self):
+ @np.errstate(all='ignore')
+ def foo():
+ a = -np.arange(3)
+ a // 0
+
+ foo()
+
+ def test_errstate_enter_once(self):
+ errstate = np.errstate(invalid="warn")
+ with errstate:
+ pass
+
+ # The errstate context cannot be entered twice as that would not be
+ # thread-safe
+ with pytest.raises(TypeError,
+ match="Cannot enter `np.errstate` twice"):
+ with errstate:
+ pass
+
+ @pytest.mark.skipif(IS_WASM, reason="wasm doesn't support asyncio")
+ def test_asyncio_safe(self):
+ # asyncio may not always work, let's assume its fine if missing
+ # Pyodide/wasm doesn't support it. If this test makes problems,
+ # it should just be skipped liberally (or run differently).
+ asyncio = pytest.importorskip("asyncio")
+
+ @np.errstate(invalid="ignore")
+ def decorated():
+ # Decorated non-async function (it is not safe to decorate an
+ # async one)
+ assert np.geterr()["invalid"] == "ignore"
+
+ async def func1():
+ decorated()
+ await asyncio.sleep(0.1)
+ decorated()
+
+ async def func2():
+ with np.errstate(invalid="raise"):
+ assert np.geterr()["invalid"] == "raise"
+ await asyncio.sleep(0.125)
+ assert np.geterr()["invalid"] == "raise"
+
+ # for good sport, a third one with yet another state:
+ async def func3():
+ with np.errstate(invalid="print"):
+ assert np.geterr()["invalid"] == "print"
+ await asyncio.sleep(0.11)
+ assert np.geterr()["invalid"] == "print"
+
+ async def main():
+ # simply run all three function multiple times:
+ await asyncio.gather(
+ func1(), func2(), func3(), func1(), func2(), func3(),
+ func1(), func2(), func3(), func1(), func2(), func3())
+
+ loop = asyncio.new_event_loop()
+ with np.errstate(invalid="warn"):
+ asyncio.run(main())
+ assert np.geterr()["invalid"] == "warn"
+
+ assert np.geterr()["invalid"] == "warn" # the default
+ loop.close()
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/test_extint128.py b/python/user_packages/Python313/site-packages/numpy/_core/tests/test_extint128.py
new file mode 100644
index 0000000000000000000000000000000000000000..a63475951abb4e38739e11b73c33af6512eae08d
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/tests/test_extint128.py
@@ -0,0 +1,217 @@
+import contextlib
+import itertools
+import operator
+
+import pytest
+
+import numpy as np
+import numpy._core._multiarray_tests as mt
+from numpy.testing import assert_equal, assert_raises
+
+INT64_MAX = np.iinfo(np.int64).max
+INT64_MIN = np.iinfo(np.int64).min
+INT64_MID = 2**32
+
+# int128 is not two's complement, the sign bit is separate
+INT128_MAX = 2**128 - 1
+INT128_MIN = -INT128_MAX
+INT128_MID = 2**64
+
+INT64_VALUES = (
+ [INT64_MIN + j for j in range(20)] +
+ [INT64_MAX - j for j in range(20)] +
+ [INT64_MID + j for j in range(-20, 20)] +
+ [2 * INT64_MID + j for j in range(-20, 20)] +
+ [INT64_MID // 2 + j for j in range(-20, 20)] +
+ list(range(-70, 70))
+)
+
+INT128_VALUES = (
+ [INT128_MIN + j for j in range(20)] +
+ [INT128_MAX - j for j in range(20)] +
+ [INT128_MID + j for j in range(-20, 20)] +
+ [2 * INT128_MID + j for j in range(-20, 20)] +
+ [INT128_MID // 2 + j for j in range(-20, 20)] +
+ list(range(-70, 70)) +
+ [False] # negative zero
+)
+
+INT64_POS_VALUES = [x for x in INT64_VALUES if x > 0]
+
+
+@contextlib.contextmanager
+def exc_iter(*args):
+ """
+ Iterate over Cartesian product of *args, and if an exception is raised,
+ add information of the current iterate.
+ """
+
+ value = [None]
+
+ def iterate():
+ for v in itertools.product(*args):
+ value[0] = v
+ yield v
+
+ try:
+ yield iterate()
+ except Exception:
+ import traceback
+ msg = f"At: {repr(value[0])!r}\n{traceback.format_exc()}"
+ raise AssertionError(msg)
+
+
+def test_safe_binop():
+ # Test checked arithmetic routines
+
+ ops = [
+ (operator.add, 1),
+ (operator.sub, 2),
+ (operator.mul, 3)
+ ]
+
+ with exc_iter(ops, INT64_VALUES, INT64_VALUES) as it:
+ for xop, a, b in it:
+ pyop, op = xop
+ c = pyop(a, b)
+
+ if not (INT64_MIN <= c <= INT64_MAX):
+ assert_raises(OverflowError, mt.extint_safe_binop, a, b, op)
+ else:
+ d = mt.extint_safe_binop(a, b, op)
+ if c != d:
+ # assert_equal is slow
+ assert_equal(d, c)
+
+
+def test_to_128():
+ with exc_iter(INT64_VALUES) as it:
+ for a, in it:
+ b = mt.extint_to_128(a)
+ if a != b:
+ assert_equal(b, a)
+
+
+def test_to_64():
+ with exc_iter(INT128_VALUES) as it:
+ for a, in it:
+ if not (INT64_MIN <= a <= INT64_MAX):
+ assert_raises(OverflowError, mt.extint_to_64, a)
+ else:
+ b = mt.extint_to_64(a)
+ if a != b:
+ assert_equal(b, a)
+
+
+def test_mul_64_64():
+ with exc_iter(INT64_VALUES, INT64_VALUES) as it:
+ for a, b in it:
+ c = a * b
+ d = mt.extint_mul_64_64(a, b)
+ if c != d:
+ assert_equal(d, c)
+
+
+def test_add_128():
+ with exc_iter(INT128_VALUES, INT128_VALUES) as it:
+ for a, b in it:
+ c = a + b
+ if not (INT128_MIN <= c <= INT128_MAX):
+ assert_raises(OverflowError, mt.extint_add_128, a, b)
+ else:
+ d = mt.extint_add_128(a, b)
+ if c != d:
+ assert_equal(d, c)
+
+
+def test_sub_128():
+ with exc_iter(INT128_VALUES, INT128_VALUES) as it:
+ for a, b in it:
+ c = a - b
+ if not (INT128_MIN <= c <= INT128_MAX):
+ assert_raises(OverflowError, mt.extint_sub_128, a, b)
+ else:
+ d = mt.extint_sub_128(a, b)
+ if c != d:
+ assert_equal(d, c)
+
+
+def test_neg_128():
+ with exc_iter(INT128_VALUES) as it:
+ for a, in it:
+ b = -a
+ c = mt.extint_neg_128(a)
+ if b != c:
+ assert_equal(c, b)
+
+
+def test_shl_128():
+ with exc_iter(INT128_VALUES) as it:
+ for a, in it:
+ if a < 0:
+ b = -(((-a) << 1) & (2**128 - 1))
+ else:
+ b = (a << 1) & (2**128 - 1)
+ c = mt.extint_shl_128(a)
+ if b != c:
+ assert_equal(c, b)
+
+
+def test_shr_128():
+ with exc_iter(INT128_VALUES) as it:
+ for a, in it:
+ if a < 0:
+ b = -((-a) >> 1)
+ else:
+ b = a >> 1
+ c = mt.extint_shr_128(a)
+ if b != c:
+ assert_equal(c, b)
+
+
+def test_gt_128():
+ with exc_iter(INT128_VALUES, INT128_VALUES) as it:
+ for a, b in it:
+ c = a > b
+ d = mt.extint_gt_128(a, b)
+ if c != d:
+ assert_equal(d, c)
+
+
+@pytest.mark.slow
+def test_divmod_128_64():
+ with exc_iter(INT128_VALUES, INT64_POS_VALUES) as it:
+ for a, b in it:
+ if a >= 0:
+ c, cr = divmod(a, b)
+ else:
+ c, cr = divmod(-a, b)
+ c = -c
+ cr = -cr
+
+ d, dr = mt.extint_divmod_128_64(a, b)
+
+ if c != d or d != dr or b * d + dr != a:
+ assert_equal(d, c)
+ assert_equal(dr, cr)
+ assert_equal(b * d + dr, a)
+
+
+def test_floordiv_128_64():
+ with exc_iter(INT128_VALUES, INT64_POS_VALUES) as it:
+ for a, b in it:
+ c = a // b
+ d = mt.extint_floordiv_128_64(a, b)
+
+ if c != d:
+ assert_equal(d, c)
+
+
+def test_ceildiv_128_64():
+ with exc_iter(INT128_VALUES, INT64_POS_VALUES) as it:
+ for a, b in it:
+ c = (a + b - 1) // b
+ d = mt.extint_ceildiv_128_64(a, b)
+
+ if c != d:
+ assert_equal(d, c)
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/test_finfo.py b/python/user_packages/Python313/site-packages/numpy/_core/tests/test_finfo.py
new file mode 100644
index 0000000000000000000000000000000000000000..6cf6ad02d1f7b3a8c2bcd19e79100b9bc9181985
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/tests/test_finfo.py
@@ -0,0 +1,86 @@
+import pytest
+
+import numpy as np
+from numpy import exp2, log10
+from numpy._core import numerictypes as ntypes
+
+
+class MachArLike:
+ """Minimal class to simulate machine arithmetic parameters."""
+ def __init__(self, dtype, machep, negep, minexp, maxexp, nmant, iexp):
+ self.dtype = dtype
+ self.machep = machep
+ self.negep = negep
+ self.minexp = minexp
+ self.maxexp = maxexp
+ self.nmant = nmant
+ self.iexp = iexp
+ self.eps = exp2(dtype(-nmant))
+ self.epsneg = exp2(dtype(negep))
+ self.precision = int(-log10(self.eps))
+ self.resolution = dtype(10) ** (-self.precision)
+
+
+@pytest.fixture
+def float16_ma():
+ """Machine arithmetic parameters for float16."""
+ f16 = ntypes.float16
+ return MachArLike(f16,
+ machep=-10,
+ negep=-11,
+ minexp=-14,
+ maxexp=16,
+ nmant=10,
+ iexp=5)
+
+
+@pytest.fixture
+def float32_ma():
+ """Machine arithmetic parameters for float32."""
+ f32 = ntypes.float32
+ return MachArLike(f32,
+ machep=-23,
+ negep=-24,
+ minexp=-126,
+ maxexp=128,
+ nmant=23,
+ iexp=8)
+
+
+@pytest.fixture
+def float64_ma():
+ """Machine arithmetic parameters for float64."""
+ f64 = ntypes.float64
+ return MachArLike(f64,
+ machep=-52,
+ negep=-53,
+ minexp=-1022,
+ maxexp=1024,
+ nmant=52,
+ iexp=11)
+
+
+@pytest.mark.parametrize("dtype,ma_fixture", [
+ (np.half, "float16_ma"),
+ (np.float32, "float32_ma"),
+ (np.float64, "float64_ma"),
+])
+@pytest.mark.parametrize("prop", [
+ 'machep', 'negep', 'minexp', 'maxexp', 'nmant', 'iexp',
+ 'eps', 'epsneg', 'precision', 'resolution'
+])
+@pytest.mark.thread_unsafe(
+ reason="complex fixture setup is thread-unsafe (pytest-dev/pytest#13768.)"
+)
+def test_finfo_properties(dtype, ma_fixture, prop, request):
+ """Test that finfo properties match expected machine arithmetic values."""
+ ma = request.getfixturevalue(ma_fixture)
+ finfo = np.finfo(dtype)
+
+ actual = getattr(finfo, prop)
+ expected = getattr(ma, prop)
+
+ assert actual == expected, (
+ f"finfo({dtype}) property '{prop}' mismatch: "
+ f"expected {expected}, got {actual}"
+ )
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/test_function_base.py b/python/user_packages/Python313/site-packages/numpy/_core/tests/test_function_base.py
new file mode 100644
index 0000000000000000000000000000000000000000..bacefd0d3bae17f772c69d1eafddff2b44551417
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/tests/test_function_base.py
@@ -0,0 +1,504 @@
+import platform
+import sys
+
+import pytest
+
+import numpy as np
+from numpy import (
+ arange,
+ array,
+ dtype,
+ errstate,
+ geomspace,
+ isnan,
+ linspace,
+ logspace,
+ ndarray,
+ nextafter,
+ sqrt,
+ stack,
+)
+from numpy._core import sctypes
+from numpy._core.function_base import add_newdoc
+from numpy.testing import (
+ IS_PYPY,
+ assert_,
+ assert_allclose,
+ assert_array_equal,
+ assert_equal,
+ assert_raises,
+)
+
+
+def _is_armhf():
+ # Check if the current platform is ARMHF (32-bit ARM architecture)
+ architecture = platform.architecture()
+ return platform.machine().startswith('arm') and architecture[0] == '32bit'
+
+class PhysicalQuantity(float):
+ def __new__(cls, value):
+ return float.__new__(cls, value)
+
+ def __add__(self, x):
+ assert_(isinstance(x, PhysicalQuantity))
+ return PhysicalQuantity(float(x) + float(self))
+ __radd__ = __add__
+
+ def __sub__(self, x):
+ assert_(isinstance(x, PhysicalQuantity))
+ return PhysicalQuantity(float(self) - float(x))
+
+ def __rsub__(self, x):
+ assert_(isinstance(x, PhysicalQuantity))
+ return PhysicalQuantity(float(x) - float(self))
+
+ def __mul__(self, x):
+ return PhysicalQuantity(float(x) * float(self))
+ __rmul__ = __mul__
+
+ def __truediv__(self, x):
+ return PhysicalQuantity(float(self) / float(x))
+
+ def __rtruediv__(self, x):
+ return PhysicalQuantity(float(x) / float(self))
+
+
+class PhysicalQuantity2(ndarray):
+ __array_priority__ = 10
+
+
+class TestLogspace:
+
+ def test_basic(self):
+ y = logspace(0, 6)
+ assert_(len(y) == 50)
+ y = logspace(0, 6, num=100)
+ assert_(y[-1] == 10 ** 6)
+ y = logspace(0, 6, endpoint=False)
+ assert_(y[-1] < 10 ** 6)
+ y = logspace(0, 6, num=7)
+ assert_array_equal(y, [1, 10, 100, 1e3, 1e4, 1e5, 1e6])
+
+ def test_start_stop_array(self):
+ start = array([0., 1.])
+ stop = array([6., 7.])
+ t1 = logspace(start, stop, 6)
+ t2 = stack([logspace(_start, _stop, 6)
+ for _start, _stop in zip(start, stop)], axis=1)
+ assert_equal(t1, t2)
+ t3 = logspace(start, stop[0], 6)
+ t4 = stack([logspace(_start, stop[0], 6)
+ for _start in start], axis=1)
+ assert_equal(t3, t4)
+ t5 = logspace(start, stop, 6, axis=-1)
+ assert_equal(t5, t2.T)
+
+ @pytest.mark.parametrize("axis", [0, 1, -1])
+ def test_base_array(self, axis: int):
+ start = 1
+ stop = 2
+ num = 6
+ base = array([1, 2])
+ t1 = logspace(start, stop, num=num, base=base, axis=axis)
+ t2 = stack(
+ [logspace(start, stop, num=num, base=_base) for _base in base],
+ axis=(axis + 1) % t1.ndim,
+ )
+ assert_equal(t1, t2)
+
+ @pytest.mark.parametrize("axis", [0, 1, -1])
+ def test_stop_base_array(self, axis: int):
+ start = 1
+ stop = array([2, 3])
+ num = 6
+ base = array([1, 2])
+ t1 = logspace(start, stop, num=num, base=base, axis=axis)
+ t2 = stack(
+ [logspace(start, _stop, num=num, base=_base)
+ for _stop, _base in zip(stop, base)],
+ axis=(axis + 1) % t1.ndim,
+ )
+ assert_equal(t1, t2)
+
+ def test_dtype(self):
+ y = logspace(0, 6, dtype='float32')
+ assert_equal(y.dtype, dtype('float32'))
+ y = logspace(0, 6, dtype='float64')
+ assert_equal(y.dtype, dtype('float64'))
+ y = logspace(0, 6, dtype='int32')
+ assert_equal(y.dtype, dtype('int32'))
+
+ def test_physical_quantities(self):
+ a = PhysicalQuantity(1.0)
+ b = PhysicalQuantity(5.0)
+ assert_equal(logspace(a, b), logspace(1.0, 5.0))
+
+ def test_subclass(self):
+ a = array(1).view(PhysicalQuantity2)
+ b = array(7).view(PhysicalQuantity2)
+ ls = logspace(a, b)
+ assert type(ls) is PhysicalQuantity2
+ assert_equal(ls, logspace(1.0, 7.0))
+ ls = logspace(a, b, 1)
+ assert type(ls) is PhysicalQuantity2
+ assert_equal(ls, logspace(1.0, 7.0, 1))
+
+
+class TestGeomspace:
+
+ def test_basic(self):
+ y = geomspace(1, 1e6)
+ assert_(len(y) == 50)
+ y = geomspace(1, 1e6, num=100)
+ assert_(y[-1] == 10 ** 6)
+ y = geomspace(1, 1e6, endpoint=False)
+ assert_(y[-1] < 10 ** 6)
+ y = geomspace(1, 1e6, num=7)
+ assert_array_equal(y, [1, 10, 100, 1e3, 1e4, 1e5, 1e6])
+
+ y = geomspace(8, 2, num=3)
+ assert_allclose(y, [8, 4, 2])
+ assert_array_equal(y.imag, 0)
+
+ y = geomspace(-1, -100, num=3)
+ assert_array_equal(y, [-1, -10, -100])
+ assert_array_equal(y.imag, 0)
+
+ y = geomspace(-100, -1, num=3)
+ assert_array_equal(y, [-100, -10, -1])
+ assert_array_equal(y.imag, 0)
+
+ def test_boundaries_match_start_and_stop_exactly(self):
+ # make sure that the boundaries of the returned array exactly
+ # equal 'start' and 'stop' - this isn't obvious because
+ # np.exp(np.log(x)) isn't necessarily exactly equal to x
+ start = 0.3
+ stop = 20.3
+
+ y = geomspace(start, stop, num=1)
+ assert_equal(y[0], start)
+
+ y = geomspace(start, stop, num=1, endpoint=False)
+ assert_equal(y[0], start)
+
+ y = geomspace(start, stop, num=3)
+ assert_equal(y[0], start)
+ assert_equal(y[-1], stop)
+
+ y = geomspace(start, stop, num=3, endpoint=False)
+ assert_equal(y[0], start)
+
+ def test_nan_interior(self):
+ with errstate(invalid='ignore'):
+ y = geomspace(-3, 3, num=4)
+
+ assert_equal(y[0], -3.0)
+ assert_(isnan(y[1:-1]).all())
+ assert_equal(y[3], 3.0)
+
+ with errstate(invalid='ignore'):
+ y = geomspace(-3, 3, num=4, endpoint=False)
+
+ assert_equal(y[0], -3.0)
+ assert_(isnan(y[1:]).all())
+
+ def test_complex(self):
+ # Purely imaginary
+ y = geomspace(1j, 16j, num=5)
+ assert_allclose(y, [1j, 2j, 4j, 8j, 16j])
+ assert_array_equal(y.real, 0)
+
+ y = geomspace(-4j, -324j, num=5)
+ assert_allclose(y, [-4j, -12j, -36j, -108j, -324j])
+ assert_array_equal(y.real, 0)
+
+ y = geomspace(1 + 1j, 1000 + 1000j, num=4)
+ assert_allclose(y, [1 + 1j, 10 + 10j, 100 + 100j, 1000 + 1000j])
+
+ y = geomspace(-1 + 1j, -1000 + 1000j, num=4)
+ assert_allclose(y, [-1 + 1j, -10 + 10j, -100 + 100j, -1000 + 1000j])
+
+ # Logarithmic spirals
+ y = geomspace(-1, 1, num=3, dtype=complex)
+ assert_allclose(y, [-1, 1j, +1])
+
+ y = geomspace(0 + 3j, -3 + 0j, 3)
+ assert_allclose(y, [0 + 3j, -3 / sqrt(2) + 3j / sqrt(2), -3 + 0j])
+ y = geomspace(0 + 3j, 3 + 0j, 3)
+ assert_allclose(y, [0 + 3j, 3 / sqrt(2) + 3j / sqrt(2), 3 + 0j])
+ y = geomspace(-3 + 0j, 0 - 3j, 3)
+ assert_allclose(y, [-3 + 0j, -3 / sqrt(2) - 3j / sqrt(2), 0 - 3j])
+ y = geomspace(0 + 3j, -3 + 0j, 3)
+ assert_allclose(y, [0 + 3j, -3 / sqrt(2) + 3j / sqrt(2), -3 + 0j])
+ y = geomspace(-2 - 3j, 5 + 7j, 7)
+ assert_allclose(y, [-2 - 3j, -0.29058977 - 4.15771027j,
+ 2.08885354 - 4.34146838j, 4.58345529 - 3.16355218j,
+ 6.41401745 - 0.55233457j, 6.75707386 + 3.11795092j,
+ 5 + 7j])
+
+ # Type promotion should prevent the -5 from becoming a NaN
+ y = geomspace(3j, -5, 2)
+ assert_allclose(y, [3j, -5])
+ y = geomspace(-5, 3j, 2)
+ assert_allclose(y, [-5, 3j])
+
+ def test_complex_shortest_path(self):
+ # test the shortest logarithmic spiral is used, see gh-25644
+ x = 1.2 + 3.4j
+ y = np.exp(1j * (np.pi - .1)) * x
+ z = np.geomspace(x, y, 5)
+ expected = np.array([1.2 + 3.4j, -1.47384 + 3.2905616j,
+ -3.33577588 + 1.36842949j, -3.36011056 - 1.30753855j,
+ -1.53343861 - 3.26321406j])
+ np.testing.assert_array_almost_equal(z, expected)
+
+ def test_dtype(self):
+ y = geomspace(1, 1e6, dtype='float32')
+ assert_equal(y.dtype, dtype('float32'))
+ y = geomspace(1, 1e6, dtype='float64')
+ assert_equal(y.dtype, dtype('float64'))
+ y = geomspace(1, 1e6, dtype='int32')
+ assert_equal(y.dtype, dtype('int32'))
+
+ # Native types
+ y = geomspace(1, 1e6, dtype=float)
+ assert_equal(y.dtype, dtype('float64'))
+ y = geomspace(1, 1e6, dtype=complex)
+ assert_equal(y.dtype, dtype('complex128'))
+
+ def test_start_stop_array_scalar(self):
+ lim1 = array([120, 100], dtype="int8")
+ lim2 = array([-120, -100], dtype="int8")
+ lim3 = array([1200, 1000], dtype="uint16")
+ t1 = geomspace(lim1[0], lim1[1], 5)
+ t2 = geomspace(lim2[0], lim2[1], 5)
+ t3 = geomspace(lim3[0], lim3[1], 5)
+ t4 = geomspace(120.0, 100.0, 5)
+ t5 = geomspace(-120.0, -100.0, 5)
+ t6 = geomspace(1200.0, 1000.0, 5)
+
+ # t3 uses float32, t6 uses float64
+ assert_allclose(t1, t4, rtol=1e-2)
+ assert_allclose(t2, t5, rtol=1e-2)
+ assert_allclose(t3, t6, rtol=1e-5)
+
+ def test_start_stop_array(self):
+ # Try to use all special cases.
+ start = array([1.e0, 32., 1j, -4j, 1 + 1j, -1])
+ stop = array([1.e4, 2., 16j, -324j, 10000 + 10000j, 1])
+ t1 = geomspace(start, stop, 5)
+ t2 = stack([geomspace(_start, _stop, 5)
+ for _start, _stop in zip(start, stop)], axis=1)
+ assert_equal(t1, t2)
+ t3 = geomspace(start, stop[0], 5)
+ t4 = stack([geomspace(_start, stop[0], 5)
+ for _start in start], axis=1)
+ assert_equal(t3, t4)
+ t5 = geomspace(start, stop, 5, axis=-1)
+ assert_equal(t5, t2.T)
+
+ def test_physical_quantities(self):
+ a = PhysicalQuantity(1.0)
+ b = PhysicalQuantity(5.0)
+ assert_equal(geomspace(a, b), geomspace(1.0, 5.0))
+
+ def test_subclass(self):
+ a = array(1).view(PhysicalQuantity2)
+ b = array(7).view(PhysicalQuantity2)
+ gs = geomspace(a, b)
+ assert type(gs) is PhysicalQuantity2
+ assert_equal(gs, geomspace(1.0, 7.0))
+ gs = geomspace(a, b, 1)
+ assert type(gs) is PhysicalQuantity2
+ assert_equal(gs, geomspace(1.0, 7.0, 1))
+
+ def test_bounds(self):
+ assert_raises(ValueError, geomspace, 0, 10)
+ assert_raises(ValueError, geomspace, 10, 0)
+ assert_raises(ValueError, geomspace, 0, 0)
+
+
+class TestLinspace:
+
+ def test_basic(self):
+ y = linspace(0, 10)
+ assert_(len(y) == 50)
+ y = linspace(2, 10, num=100)
+ assert_(y[-1] == 10)
+ y = linspace(2, 10, endpoint=False)
+ assert_(y[-1] < 10)
+ assert_raises(ValueError, linspace, 0, 10, num=-1)
+
+ def test_corner(self):
+ y = list(linspace(0, 1, 1))
+ assert_(y == [0.0], y)
+ assert_raises(TypeError, linspace, 0, 1, num=2.5)
+
+ def test_type(self):
+ t1 = linspace(0, 1, 0).dtype
+ t2 = linspace(0, 1, 1).dtype
+ t3 = linspace(0, 1, 2).dtype
+ assert_equal(t1, t2)
+ assert_equal(t2, t3)
+
+ def test_dtype(self):
+ y = linspace(0, 6, dtype='float32')
+ assert_equal(y.dtype, dtype('float32'))
+ y = linspace(0, 6, dtype='float64')
+ assert_equal(y.dtype, dtype('float64'))
+ y = linspace(0, 6, dtype='int32')
+ assert_equal(y.dtype, dtype('int32'))
+
+ def test_start_stop_array_scalar(self):
+ lim1 = array([-120, 100], dtype="int8")
+ lim2 = array([120, -100], dtype="int8")
+ lim3 = array([1200, 1000], dtype="uint16")
+ t1 = linspace(lim1[0], lim1[1], 5)
+ t2 = linspace(lim2[0], lim2[1], 5)
+ t3 = linspace(lim3[0], lim3[1], 5)
+ t4 = linspace(-120.0, 100.0, 5)
+ t5 = linspace(120.0, -100.0, 5)
+ t6 = linspace(1200.0, 1000.0, 5)
+ assert_equal(t1, t4)
+ assert_equal(t2, t5)
+ assert_equal(t3, t6)
+
+ def test_start_stop_array(self):
+ start = array([-120, 120], dtype="int8")
+ stop = array([100, -100], dtype="int8")
+ t1 = linspace(start, stop, 5)
+ t2 = stack([linspace(_start, _stop, 5)
+ for _start, _stop in zip(start, stop)], axis=1)
+ assert_equal(t1, t2)
+ t3 = linspace(start, stop[0], 5)
+ t4 = stack([linspace(_start, stop[0], 5)
+ for _start in start], axis=1)
+ assert_equal(t3, t4)
+ t5 = linspace(start, stop, 5, axis=-1)
+ assert_equal(t5, t2.T)
+
+ def test_complex(self):
+ lim1 = linspace(1 + 2j, 3 + 4j, 5)
+ t1 = array([1.0 + 2.j, 1.5 + 2.5j, 2.0 + 3j, 2.5 + 3.5j, 3.0 + 4j])
+ lim2 = linspace(1j, 10, 5)
+ t2 = array([0.0 + 1.j, 2.5 + 0.75j, 5.0 + 0.5j, 7.5 + 0.25j, 10.0 + 0j])
+ assert_equal(lim1, t1)
+ assert_equal(lim2, t2)
+
+ def test_physical_quantities(self):
+ a = PhysicalQuantity(0.0)
+ b = PhysicalQuantity(1.0)
+ assert_equal(linspace(a, b), linspace(0.0, 1.0))
+
+ def test_subclass(self):
+ a = array(0).view(PhysicalQuantity2)
+ b = array(1).view(PhysicalQuantity2)
+ ls = linspace(a, b)
+ assert type(ls) is PhysicalQuantity2
+ assert_equal(ls, linspace(0.0, 1.0))
+ ls = linspace(a, b, 1)
+ assert type(ls) is PhysicalQuantity2
+ assert_equal(ls, linspace(0.0, 1.0, 1))
+
+ def test_array_interface(self):
+ # Regression test for https://github.com/numpy/numpy/pull/6659
+ # Ensure that start/stop can be objects that implement
+ # __array_interface__ and are convertible to numeric scalars
+
+ class Arrayish:
+ """
+ A generic object that supports the __array_interface__ and hence
+ can in principle be converted to a numeric scalar, but is not
+ otherwise recognized as numeric, but also happens to support
+ multiplication by floats.
+
+ Data should be an object that implements the buffer interface,
+ and contains at least 4 bytes.
+ """
+
+ def __init__(self, data):
+ self._data = data
+
+ @property
+ def __array_interface__(self):
+ return {'shape': (), 'typestr': ' 250)
+ assert_(len(np.lib._index_tricks_impl.mgrid.__doc__) > 300)
+
+ @pytest.mark.skipif(sys.flags.optimize == 2, reason="Python running -OO")
+ def test_errors_are_ignored(self):
+ prev_doc = np._core.flatiter.index.__doc__
+ # nothing changed, but error ignored, this should probably
+ # give a warning (or even error) in the future.
+ add_newdoc("numpy._core", "flatiter", ("index", "bad docstring"))
+ assert prev_doc == np._core.flatiter.index.__doc__
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/test_getlimits.py b/python/user_packages/Python313/site-packages/numpy/_core/tests/test_getlimits.py
new file mode 100644
index 0000000000000000000000000000000000000000..5143945e870f94ac316a33461a90db3dd4b63eaa
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/tests/test_getlimits.py
@@ -0,0 +1,171 @@
+""" Test functions for limits module.
+
+"""
+import types
+import warnings
+
+import pytest
+
+import numpy as np
+from numpy import double, half, longdouble, single
+from numpy._core import finfo, iinfo
+from numpy.testing import assert_, assert_equal, assert_raises
+
+##################################################
+
+class TestPythonFloat:
+ def test_singleton(self):
+ ftype = finfo(float)
+ ftype2 = finfo(float)
+ assert_equal(id(ftype), id(ftype2))
+
+class TestHalf:
+ def test_singleton(self):
+ ftype = finfo(half)
+ ftype2 = finfo(half)
+ assert_equal(id(ftype), id(ftype2))
+
+class TestSingle:
+ def test_singleton(self):
+ ftype = finfo(single)
+ ftype2 = finfo(single)
+ assert_equal(id(ftype), id(ftype2))
+
+class TestDouble:
+ def test_singleton(self):
+ ftype = finfo(double)
+ ftype2 = finfo(double)
+ assert_equal(id(ftype), id(ftype2))
+
+class TestLongdouble:
+ def test_singleton(self):
+ ftype = finfo(longdouble)
+ ftype2 = finfo(longdouble)
+ assert_equal(id(ftype), id(ftype2))
+
+def assert_finfo_equal(f1, f2):
+ # assert two finfo instances have the same attributes
+ for attr in ('bits', 'eps', 'epsneg', 'iexp', 'machep',
+ 'max', 'maxexp', 'min', 'minexp', 'negep', 'nexp',
+ 'nmant', 'precision', 'resolution', 'tiny',
+ 'smallest_normal', 'smallest_subnormal'):
+ assert_equal(getattr(f1, attr), getattr(f2, attr),
+ f'finfo instances {f1} and {f2} differ on {attr}')
+
+def assert_iinfo_equal(i1, i2):
+ # assert two iinfo instances have the same attributes
+ for attr in ('bits', 'min', 'max'):
+ assert_equal(getattr(i1, attr), getattr(i2, attr),
+ f'iinfo instances {i1} and {i2} differ on {attr}')
+
+class TestFinfo:
+ def test_basic(self):
+ dts = list(zip(['f2', 'f4', 'f8', 'c8', 'c16'],
+ [np.float16, np.float32, np.float64, np.complex64,
+ np.complex128]))
+ for dt1, dt2 in dts:
+ assert_finfo_equal(finfo(dt1), finfo(dt2))
+
+ assert_raises(ValueError, finfo, 'i4')
+
+ def test_regression_gh23108(self):
+ # np.float32(1.0) and np.float64(1.0) have the same hash and are
+ # equal under the == operator
+ f1 = np.finfo(np.float32(1.0))
+ f2 = np.finfo(np.float64(1.0))
+ assert f1 != f2
+
+ def test_regression_gh23867(self):
+ class NonHashableWithDtype:
+ __hash__ = None
+ dtype = np.dtype('float32')
+
+ x = NonHashableWithDtype()
+ assert np.finfo(x) == np.finfo(x.dtype)
+
+
+class TestIinfo:
+ def test_basic(self):
+ dts = list(zip(['i1', 'i2', 'i4', 'i8',
+ 'u1', 'u2', 'u4', 'u8'],
+ [np.int8, np.int16, np.int32, np.int64,
+ np.uint8, np.uint16, np.uint32, np.uint64]))
+ for dt1, dt2 in dts:
+ assert_iinfo_equal(iinfo(dt1), iinfo(dt2))
+
+ assert_raises(ValueError, iinfo, 'f4')
+
+ def test_unsigned_max(self):
+ types = np._core.sctypes['uint']
+ for T in types:
+ with np.errstate(over="ignore"):
+ max_calculated = T(0) - T(1)
+ assert_equal(iinfo(T).max, max_calculated)
+
+class TestRepr:
+ def test_iinfo_repr(self):
+ expected = "iinfo(min=-32768, max=32767, dtype=int16)"
+ assert_equal(repr(np.iinfo(np.int16)), expected)
+
+ def test_finfo_repr(self):
+ expected = "finfo(resolution=1e-06, min=-3.4028235e+38,"\
+ " max=3.4028235e+38, dtype=float32)"
+ assert_equal(repr(np.finfo(np.float32)), expected)
+
+
+def test_instances():
+ # Test the finfo and iinfo results on numeric instances agree with
+ # the results on the corresponding types
+
+ for c in [int, np.int16, np.int32, np.int64]:
+ class_iinfo = iinfo(c)
+ instance_iinfo = iinfo(c(12))
+
+ assert_iinfo_equal(class_iinfo, instance_iinfo)
+
+ for c in [float, np.float16, np.float32, np.float64]:
+ class_finfo = finfo(c)
+ instance_finfo = finfo(c(1.2))
+ assert_finfo_equal(class_finfo, instance_finfo)
+
+ with pytest.raises(ValueError):
+ iinfo(10.)
+
+ with pytest.raises(ValueError):
+ iinfo('hi')
+
+ with pytest.raises(ValueError):
+ finfo(np.int64(1))
+
+
+def test_subnormal_warning():
+ """Test that the subnormal is zero warning is not being raised."""
+ with warnings.catch_warnings(record=True) as w:
+ warnings.simplefilter('always')
+ # Test for common float types
+ for dtype in [np.float16, np.float32, np.float64]:
+ f = finfo(dtype)
+ _ = f.smallest_subnormal
+ # Also test longdouble
+ with np.errstate(all='ignore'):
+ fld = finfo(np.longdouble)
+ _ = fld.smallest_subnormal
+ # Check no warnings were raised
+ assert len(w) == 0
+
+
+def test_plausible_finfo():
+ # Assert that finfo returns reasonable results for all types
+ for ftype in np._core.sctypes['float'] + np._core.sctypes['complex']:
+ info = np.finfo(ftype)
+ assert_(info.nmant > 1)
+ assert_(info.minexp < -1)
+ assert_(info.maxexp > 1)
+
+
+class TestRuntimeSubscriptable:
+ def test_finfo_generic(self):
+ assert isinstance(np.finfo[np.float64], types.GenericAlias)
+
+ def test_iinfo_generic(self):
+ assert isinstance(np.iinfo[np.int_], types.GenericAlias)
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/test_half.py b/python/user_packages/Python313/site-packages/numpy/_core/tests/test_half.py
new file mode 100644
index 0000000000000000000000000000000000000000..4b2339b2f759146dc137802b0b8fbb196f753a8a
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/tests/test_half.py
@@ -0,0 +1,593 @@
+import platform
+
+import pytest
+
+import numpy as np
+from numpy import float16, float32, float64, uint16
+from numpy.testing import IS_WASM, assert_, assert_equal
+
+
+def assert_raises_fpe(strmatch, callable, *args, **kwargs):
+ try:
+ callable(*args, **kwargs)
+ except FloatingPointError as exc:
+ assert_(str(exc).find(strmatch) >= 0,
+ f"Did not raise floating point {strmatch} error")
+ else:
+ assert_(False,
+ f"Did not raise floating point {strmatch} error")
+
+class TestHalf:
+ def _create_arrays_all(self):
+ # An array of all possible float16 values
+ all_f16 = np.arange(0x10000, dtype=uint16)
+ all_f16 = all_f16.view(float16)
+
+ # NaN value can cause an invalid FP exception if HW is being used
+ with np.errstate(invalid='ignore'):
+ all_f32 = np.array(all_f16, dtype=float32)
+ all_f64 = np.array(all_f16, dtype=float64)
+ return all_f16, all_f32, all_f64
+
+ def _create_arrays_nonan(self):
+ # An array of all non-NaN float16 values, in sorted order
+ nonan_f16 = np.concatenate(
+ (np.arange(0xfc00, 0x7fff, -1, dtype=uint16),
+ np.arange(0x0000, 0x7c01, 1, dtype=uint16)))
+ nonan_f16 = nonan_f16.view(float16)
+ nonan_f32 = np.array(nonan_f16, dtype=float32)
+ nonan_f64 = np.array(nonan_f16, dtype=float64)
+ return nonan_f16, nonan_f32, nonan_f64
+
+ def _create_arrays_finite(self):
+ nonan_f16, nonan_f32, nonan_f64 = self._create_arrays_nonan()
+ finite_f16 = nonan_f16[1:-1]
+ finite_f32 = nonan_f32[1:-1]
+ finite_f64 = nonan_f64[1:-1]
+ return finite_f16, finite_f32, finite_f64
+
+ def test_half_conversions(self):
+ """Checks that all 16-bit values survive conversion
+ to/from 32-bit and 64-bit float"""
+ # Because the underlying routines preserve the NaN bits, every
+ # value is preserved when converting to/from other floats.
+ all_f16, all_f32, all_f64 = self._create_arrays_all()
+ nonan_f16, _, _ = self._create_arrays_nonan()
+
+ # Convert from float32 back to float16
+ with np.errstate(invalid='ignore'):
+ b = np.array(all_f32, dtype=float16)
+ # avoid testing NaNs due to differing bit patterns in Q/S NaNs
+ b_nn = b == b
+ assert_equal(all_f16[b_nn].view(dtype=uint16),
+ b[b_nn].view(dtype=uint16))
+
+ # Convert from float64 back to float16
+ with np.errstate(invalid='ignore'):
+ b = np.array(all_f64, dtype=float16)
+ b_nn = b == b
+ assert_equal(all_f16[b_nn].view(dtype=uint16),
+ b[b_nn].view(dtype=uint16))
+
+ # Convert float16 to longdouble and back
+ # This doesn't necessarily preserve the extra NaN bits,
+ # so exclude NaNs.
+ a_ld = np.array(nonan_f16, dtype=np.longdouble)
+ b = np.array(a_ld, dtype=float16)
+ assert_equal(nonan_f16.view(dtype=uint16),
+ b.view(dtype=uint16))
+
+ # Check the range for which all integers can be represented
+ i_int = np.arange(-2048, 2049)
+ i_f16 = np.array(i_int, dtype=float16)
+ j = np.array(i_f16, dtype=int)
+ assert_equal(i_int, j)
+
+ @pytest.mark.parametrize("string_dt", ["S", "U"])
+ def test_half_conversion_to_string(self, string_dt):
+ # Currently uses S/U32 (which is sufficient for float32)
+ expected_dt = np.dtype(f"{string_dt}32")
+ assert np.promote_types(np.float16, string_dt) == expected_dt
+ assert np.promote_types(string_dt, np.float16) == expected_dt
+
+ arr = np.ones(3, dtype=np.float16).astype(string_dt)
+ assert arr.dtype == expected_dt
+
+ @pytest.mark.parametrize("dtype", ["S", "U", object])
+ def test_to_half_cast_error(self, dtype):
+ arr = np.array(["3M"], dtype=dtype)
+ with pytest.raises(ValueError):
+ arr.astype(np.float16)
+
+ arr = np.array(["23490349034"], dtype=dtype)
+ with np.errstate(all="warn"):
+ with pytest.warns(RuntimeWarning):
+ arr.astype(np.float16)
+
+ with np.errstate(all="raise"):
+ with pytest.raises(FloatingPointError):
+ arr.astype(np.float16)
+
+ @pytest.mark.parametrize("string_dt", ["S", "U"])
+ def test_half_conversion_from_string(self, string_dt):
+ string = np.array("3.1416", dtype=string_dt)
+ assert string.astype(np.float16) == np.array(3.1416, dtype=np.float16)
+
+ @pytest.mark.parametrize("offset", [None, "up", "down"])
+ @pytest.mark.parametrize("shift", [None, "up", "down"])
+ @pytest.mark.parametrize("float_t", [np.float32, np.float64])
+ def test_half_conversion_rounding(self, float_t, shift, offset):
+ # Assumes that round to even is used during casting.
+ max_pattern = np.float16(np.finfo(np.float16).max).view(np.uint16)
+
+ # Test all (positive) finite numbers, denormals are most interesting
+ # however:
+ f16s_patterns = np.arange(0, max_pattern + 1, dtype=np.uint16)
+ f16s_float = f16s_patterns.view(np.float16).astype(float_t)
+
+ # Shift the values by half a bit up or a down (or do not shift),
+ if shift == "up":
+ f16s_float = 0.5 * (f16s_float[:-1] + f16s_float[1:])[1:]
+ elif shift == "down":
+ f16s_float = 0.5 * (f16s_float[:-1] + f16s_float[1:])[:-1]
+ else:
+ f16s_float = f16s_float[1:-1]
+
+ # Increase the float by a minimal value:
+ if offset == "up":
+ f16s_float = np.nextafter(f16s_float, float_t(np.inf))
+ elif offset == "down":
+ f16s_float = np.nextafter(f16s_float, float_t(-np.inf))
+
+ # Convert back to float16 and its bit pattern:
+ res_patterns = f16s_float.astype(np.float16).view(np.uint16)
+
+ # The above calculation tries the original values, or the exact
+ # midpoints between the float16 values. It then further offsets them
+ # by as little as possible. If no offset occurs, "round to even"
+ # logic will be necessary, an arbitrarily small offset should cause
+ # normal up/down rounding always.
+
+ # Calculate the expected pattern:
+ cmp_patterns = f16s_patterns[1:-1].copy()
+
+ if shift == "down" and offset != "up":
+ shift_pattern = -1
+ elif shift == "up" and offset != "down":
+ shift_pattern = 1
+ else:
+ # There cannot be a shift, either shift is None, so all rounding
+ # will go back to original, or shift is reduced by offset too much.
+ shift_pattern = 0
+
+ # If rounding occurs, is it normal rounding or round to even?
+ if offset is None:
+ # Round to even occurs, modify only non-even, cast to allow + (-1)
+ cmp_patterns[0::2].view(np.int16)[...] += shift_pattern
+ else:
+ cmp_patterns.view(np.int16)[...] += shift_pattern
+
+ assert_equal(res_patterns, cmp_patterns)
+
+ @pytest.mark.parametrize(["float_t", "uint_t", "bits"],
+ [(np.float32, np.uint32, 23),
+ (np.float64, np.uint64, 52)])
+ def test_half_conversion_denormal_round_even(self, float_t, uint_t, bits):
+ # Test specifically that all bits are considered when deciding
+ # whether round to even should occur (i.e. no bits are lost at the
+ # end. Compare also gh-12721. The most bits can get lost for the
+ # smallest denormal:
+ smallest_value = np.uint16(1).view(np.float16).astype(float_t)
+ assert smallest_value == 2**-24
+
+ # Will be rounded to zero based on round to even rule:
+ rounded_to_zero = smallest_value / float_t(2)
+ assert rounded_to_zero.astype(np.float16) == 0
+
+ # The significand will be all 0 for the float_t, test that we do not
+ # lose the lower ones of these:
+ for i in range(bits):
+ # slightly increasing the value should make it round up:
+ larger_pattern = rounded_to_zero.view(uint_t) | uint_t(1 << i)
+ larger_value = larger_pattern.view(float_t)
+ assert larger_value.astype(np.float16) == smallest_value
+
+ def test_nans_infs(self):
+ all_f16, all_f32, _ = self._create_arrays_all()
+ with np.errstate(all='ignore'):
+ # Check some of the ufuncs
+ assert_equal(np.isnan(all_f16), np.isnan(all_f32))
+ assert_equal(np.isinf(all_f16), np.isinf(all_f32))
+ assert_equal(np.isfinite(all_f16), np.isfinite(all_f32))
+ assert_equal(np.signbit(all_f16), np.signbit(all_f32))
+ assert_equal(np.spacing(float16(65504)), np.inf)
+
+ # Check comparisons of all values with NaN
+ nan = float16(np.nan)
+
+ assert_(not (all_f16 == nan).any())
+ assert_(not (nan == all_f16).any())
+
+ assert_((all_f16 != nan).all())
+ assert_((nan != all_f16).all())
+
+ assert_(not (all_f16 < nan).any())
+ assert_(not (nan < all_f16).any())
+
+ assert_(not (all_f16 <= nan).any())
+ assert_(not (nan <= all_f16).any())
+
+ assert_(not (all_f16 > nan).any())
+ assert_(not (nan > all_f16).any())
+
+ assert_(not (all_f16 >= nan).any())
+ assert_(not (nan >= all_f16).any())
+
+ def test_half_values(self):
+ """Confirms a small number of known half values"""
+ a = np.array([1.0, -1.0,
+ 2.0, -2.0,
+ 0.0999755859375, 0.333251953125, # 1/10, 1/3
+ 65504, -65504, # Maximum magnitude
+ 2.0**(-14), -2.0**(-14), # Minimum normal
+ 2.0**(-24), -2.0**(-24), # Minimum subnormal
+ 0, -1 / 1e1000, # Signed zeros
+ np.inf, -np.inf])
+ b = np.array([0x3c00, 0xbc00,
+ 0x4000, 0xc000,
+ 0x2e66, 0x3555,
+ 0x7bff, 0xfbff,
+ 0x0400, 0x8400,
+ 0x0001, 0x8001,
+ 0x0000, 0x8000,
+ 0x7c00, 0xfc00], dtype=uint16)
+ b = b.view(dtype=float16)
+ assert_equal(a, b)
+
+ def test_half_rounding(self):
+ """Checks that rounding when converting to half is correct"""
+ a = np.array([2.0**-25 + 2.0**-35, # Rounds to minimum subnormal
+ 2.0**-25, # Underflows to zero (nearest even mode)
+ 2.0**-26, # Underflows to zero
+ 1.0 + 2.0**-11 + 2.0**-16, # rounds to 1.0+2**(-10)
+ 1.0 + 2.0**-11, # rounds to 1.0 (nearest even mode)
+ 1.0 + 2.0**-12, # rounds to 1.0
+ 65519, # rounds to 65504
+ 65520], # rounds to inf
+ dtype=float64)
+ rounded = [2.0**-24,
+ 0.0,
+ 0.0,
+ 1.0 + 2.0**(-10),
+ 1.0,
+ 1.0,
+ 65504,
+ np.inf]
+
+ # Check float64->float16 rounding
+ with np.errstate(over="ignore"):
+ b = np.array(a, dtype=float16)
+ assert_equal(b, rounded)
+
+ # Check float32->float16 rounding
+ a = np.array(a, dtype=float32)
+ with np.errstate(over="ignore"):
+ b = np.array(a, dtype=float16)
+ assert_equal(b, rounded)
+
+ def test_half_correctness(self):
+ """Take every finite float16, and check the casting functions with
+ a manual conversion."""
+ finite_f16, finite_f32, finite_f64 = self._create_arrays_finite()
+
+ # Create an array of all finite float16s
+ a_bits = finite_f16.view(dtype=uint16)
+
+ # Convert to 64-bit float manually
+ a_sgn = (-1.0)**((a_bits & 0x8000) >> 15)
+ a_exp = np.array((a_bits & 0x7c00) >> 10, dtype=np.int32) - 15
+ a_man = (a_bits & 0x03ff) * 2.0**(-10)
+ # Implicit bit of normalized floats
+ a_man[a_exp != -15] += 1
+ # Denormalized exponent is -14
+ a_exp[a_exp == -15] = -14
+
+ a_manual = a_sgn * a_man * 2.0**a_exp
+
+ a32_fail = np.nonzero(finite_f32 != a_manual)[0]
+ if len(a32_fail) != 0:
+ bad_index = a32_fail[0]
+ assert_equal(finite_f32, a_manual,
+ "First non-equal is half value 0x%x -> %g != %g" %
+ (a_bits[bad_index],
+ finite_f32[bad_index],
+ a_manual[bad_index]))
+
+ a64_fail = np.nonzero(finite_f64 != a_manual)[0]
+ if len(a64_fail) != 0:
+ bad_index = a64_fail[0]
+ assert_equal(finite_f64, a_manual,
+ "First non-equal is half value 0x%x -> %g != %g" %
+ (a_bits[bad_index],
+ finite_f64[bad_index],
+ a_manual[bad_index]))
+
+ def test_half_ordering(self):
+ """Make sure comparisons are working right"""
+ nonan_f16, _, _ = self._create_arrays_nonan()
+
+ # All non-NaN float16 values in reverse order
+ a = nonan_f16[::-1].copy()
+
+ # 32-bit float copy
+ b = np.array(a, dtype=float32)
+
+ # Should sort the same
+ a.sort()
+ b.sort()
+ assert_equal(a, b)
+
+ # Comparisons should work
+ assert_((a[:-1] <= a[1:]).all())
+ assert_(not (a[:-1] > a[1:]).any())
+ assert_((a[1:] >= a[:-1]).all())
+ assert_(not (a[1:] < a[:-1]).any())
+ # All != except for +/-0
+ assert_equal(np.nonzero(a[:-1] < a[1:])[0].size, a.size - 2)
+ assert_equal(np.nonzero(a[1:] > a[:-1])[0].size, a.size - 2)
+
+ def test_half_funcs(self):
+ """Test the various ArrFuncs"""
+
+ # fill
+ assert_equal(np.arange(10, dtype=float16),
+ np.arange(10, dtype=float32))
+
+ # fillwithscalar
+ a = np.zeros((5,), dtype=float16)
+ a.fill(1)
+ assert_equal(a, np.ones((5,), dtype=float16))
+
+ # nonzero and copyswap
+ a = np.array([0, 0, -1, -1 / 1e20, 0, 2.0**-24, 7.629e-6], dtype=float16)
+ assert_equal(a.nonzero()[0],
+ [2, 5, 6])
+ a = a.byteswap()
+ a = a.view(a.dtype.newbyteorder())
+ assert_equal(a.nonzero()[0],
+ [2, 5, 6])
+
+ # dot
+ a = np.arange(0, 10, 0.5, dtype=float16)
+ b = np.ones((20,), dtype=float16)
+ assert_equal(np.dot(a, b),
+ 95)
+
+ # argmax
+ a = np.array([0, -np.inf, -2, 0.5, 12.55, 7.3, 2.1, 12.4], dtype=float16)
+ assert_equal(a.argmax(),
+ 4)
+ a = np.array([0, -np.inf, -2, np.inf, 12.55, np.nan, 2.1, 12.4], dtype=float16)
+ assert_equal(a.argmax(),
+ 5)
+
+ # getitem
+ a = np.arange(10, dtype=float16)
+ for i in range(10):
+ assert_equal(a.item(i), i)
+
+ def test_spacing_nextafter(self):
+ """Test np.spacing and np.nextafter"""
+ # All non-negative finite #'s
+ a = np.arange(0x7c00, dtype=uint16)
+ hinf = np.array((np.inf,), dtype=float16)
+ hnan = np.array((np.nan,), dtype=float16)
+ a_f16 = a.view(dtype=float16)
+
+ assert_equal(np.spacing(a_f16[:-1]), a_f16[1:] - a_f16[:-1])
+
+ assert_equal(np.nextafter(a_f16[:-1], hinf), a_f16[1:])
+ assert_equal(np.nextafter(a_f16[0], -hinf), -a_f16[1])
+ assert_equal(np.nextafter(a_f16[1:], -hinf), a_f16[:-1])
+
+ assert_equal(np.nextafter(hinf, a_f16), a_f16[-1])
+ assert_equal(np.nextafter(-hinf, a_f16), -a_f16[-1])
+
+ assert_equal(np.nextafter(hinf, hinf), hinf)
+ assert_equal(np.nextafter(hinf, -hinf), a_f16[-1])
+ assert_equal(np.nextafter(-hinf, hinf), -a_f16[-1])
+ assert_equal(np.nextafter(-hinf, -hinf), -hinf)
+
+ assert_equal(np.nextafter(a_f16, hnan), hnan[0])
+ assert_equal(np.nextafter(hnan, a_f16), hnan[0])
+
+ assert_equal(np.nextafter(hnan, hnan), hnan)
+ assert_equal(np.nextafter(hinf, hnan), hnan)
+ assert_equal(np.nextafter(hnan, hinf), hnan)
+
+ # switch to negatives
+ a |= 0x8000
+
+ assert_equal(np.spacing(a_f16[0]), np.spacing(a_f16[1]))
+ assert_equal(np.spacing(a_f16[1:]), a_f16[:-1] - a_f16[1:])
+
+ assert_equal(np.nextafter(a_f16[0], hinf), -a_f16[1])
+ assert_equal(np.nextafter(a_f16[1:], hinf), a_f16[:-1])
+ assert_equal(np.nextafter(a_f16[:-1], -hinf), a_f16[1:])
+
+ assert_equal(np.nextafter(hinf, a_f16), -a_f16[-1])
+ assert_equal(np.nextafter(-hinf, a_f16), a_f16[-1])
+
+ assert_equal(np.nextafter(a_f16, hnan), hnan[0])
+ assert_equal(np.nextafter(hnan, a_f16), hnan[0])
+
+ def test_half_ufuncs(self):
+ """Test the various ufuncs"""
+
+ a = np.array([0, 1, 2, 4, 2], dtype=float16)
+ b = np.array([-2, 5, 1, 4, 3], dtype=float16)
+ c = np.array([0, -1, -np.inf, np.nan, 6], dtype=float16)
+
+ assert_equal(np.add(a, b), [-2, 6, 3, 8, 5])
+ assert_equal(np.subtract(a, b), [2, -4, 1, 0, -1])
+ assert_equal(np.multiply(a, b), [0, 5, 2, 16, 6])
+ assert_equal(np.divide(a, b), [0, 0.199951171875, 2, 1, 0.66650390625])
+
+ assert_equal(np.equal(a, b), [False, False, False, True, False])
+ assert_equal(np.not_equal(a, b), [True, True, True, False, True])
+ assert_equal(np.less(a, b), [False, True, False, False, True])
+ assert_equal(np.less_equal(a, b), [False, True, False, True, True])
+ assert_equal(np.greater(a, b), [True, False, True, False, False])
+ assert_equal(np.greater_equal(a, b), [True, False, True, True, False])
+ assert_equal(np.logical_and(a, b), [False, True, True, True, True])
+ assert_equal(np.logical_or(a, b), [True, True, True, True, True])
+ assert_equal(np.logical_xor(a, b), [True, False, False, False, False])
+ assert_equal(np.logical_not(a), [True, False, False, False, False])
+
+ assert_equal(np.isnan(c), [False, False, False, True, False])
+ assert_equal(np.isinf(c), [False, False, True, False, False])
+ assert_equal(np.isfinite(c), [True, True, False, False, True])
+ assert_equal(np.signbit(b), [True, False, False, False, False])
+
+ assert_equal(np.copysign(b, a), [2, 5, 1, 4, 3])
+
+ assert_equal(np.maximum(a, b), [0, 5, 2, 4, 3])
+
+ x = np.maximum(b, c)
+ assert_(np.isnan(x[3]))
+ x[3] = 0
+ assert_equal(x, [0, 5, 1, 0, 6])
+
+ assert_equal(np.minimum(a, b), [-2, 1, 1, 4, 2])
+
+ x = np.minimum(b, c)
+ assert_(np.isnan(x[3]))
+ x[3] = 0
+ assert_equal(x, [-2, -1, -np.inf, 0, 3])
+
+ assert_equal(np.fmax(a, b), [0, 5, 2, 4, 3])
+ assert_equal(np.fmax(b, c), [0, 5, 1, 4, 6])
+ assert_equal(np.fmin(a, b), [-2, 1, 1, 4, 2])
+ assert_equal(np.fmin(b, c), [-2, -1, -np.inf, 4, 3])
+
+ assert_equal(np.floor_divide(a, b), [0, 0, 2, 1, 0])
+ assert_equal(np.remainder(a, b), [0, 1, 0, 0, 2])
+ assert_equal(np.divmod(a, b), ([0, 0, 2, 1, 0], [0, 1, 0, 0, 2]))
+ assert_equal(np.square(b), [4, 25, 1, 16, 9])
+ assert_equal(np.reciprocal(b), [-0.5, 0.199951171875, 1, 0.25, 0.333251953125])
+ assert_equal(np.ones_like(b), [1, 1, 1, 1, 1])
+ assert_equal(np.conjugate(b), b)
+ assert_equal(np.absolute(b), [2, 5, 1, 4, 3])
+ assert_equal(np.negative(b), [2, -5, -1, -4, -3])
+ assert_equal(np.positive(b), b)
+ assert_equal(np.sign(b), [-1, 1, 1, 1, 1])
+ assert_equal(np.modf(b), ([0, 0, 0, 0, 0], b))
+ assert_equal(np.frexp(b), ([-0.5, 0.625, 0.5, 0.5, 0.75], [2, 3, 1, 3, 2]))
+ assert_equal(np.ldexp(b, [0, 1, 2, 4, 2]), [-2, 10, 4, 64, 12])
+
+ def test_half_coercion(self):
+ """Test that half gets coerced properly with the other types"""
+ a16 = np.array((1,), dtype=float16)
+ a32 = np.array((1,), dtype=float32)
+ b16 = float16(1)
+ b32 = float32(1)
+
+ assert np.power(a16, 2).dtype == float16
+ assert np.power(a16, 2.0).dtype == float16
+ assert np.power(a16, b16).dtype == float16
+ assert np.power(a16, b32).dtype == float32
+ assert np.power(a16, a16).dtype == float16
+ assert np.power(a16, a32).dtype == float32
+
+ assert np.power(b16, 2).dtype == float16
+ assert np.power(b16, 2.0).dtype == float16
+ assert np.power(b16, b16).dtype, float16
+ assert np.power(b16, b32).dtype, float32
+ assert np.power(b16, a16).dtype, float16
+ assert np.power(b16, a32).dtype, float32
+
+ assert np.power(a32, a16).dtype == float32
+ assert np.power(a32, b16).dtype == float32
+ assert np.power(b32, a16).dtype == float32
+ assert np.power(b32, b16).dtype == float32
+
+ @pytest.mark.skipif(platform.machine() == "armv5tel",
+ reason="See gh-413.")
+ @pytest.mark.skipif(IS_WASM,
+ reason="fp exceptions don't work in wasm.")
+ def test_half_fpe(self):
+ with np.errstate(all='raise'):
+ sx16 = np.array((1e-4,), dtype=float16)
+ bx16 = np.array((1e4,), dtype=float16)
+ sy16 = float16(1e-4)
+ by16 = float16(1e4)
+
+ # Underflow errors
+ assert_raises_fpe('underflow', lambda a, b: a * b, sx16, sx16)
+ assert_raises_fpe('underflow', lambda a, b: a * b, sx16, sy16)
+ assert_raises_fpe('underflow', lambda a, b: a * b, sy16, sx16)
+ assert_raises_fpe('underflow', lambda a, b: a * b, sy16, sy16)
+ assert_raises_fpe('underflow', lambda a, b: a / b, sx16, bx16)
+ assert_raises_fpe('underflow', lambda a, b: a / b, sx16, by16)
+ assert_raises_fpe('underflow', lambda a, b: a / b, sy16, bx16)
+ assert_raises_fpe('underflow', lambda a, b: a / b, sy16, by16)
+ assert_raises_fpe('underflow', lambda a, b: a / b,
+ float16(2.**-14), float16(2**11))
+ assert_raises_fpe('underflow', lambda a, b: a / b,
+ float16(-2.**-14), float16(2**11))
+ assert_raises_fpe('underflow', lambda a, b: a / b,
+ float16(2.**-14 + 2**-24), float16(2))
+ assert_raises_fpe('underflow', lambda a, b: a / b,
+ float16(-2.**-14 - 2**-24), float16(2))
+ assert_raises_fpe('underflow', lambda a, b: a / b,
+ float16(2.**-14 + 2**-23), float16(4))
+
+ # Overflow errors
+ assert_raises_fpe('overflow', lambda a, b: a * b, bx16, bx16)
+ assert_raises_fpe('overflow', lambda a, b: a * b, bx16, by16)
+ assert_raises_fpe('overflow', lambda a, b: a * b, by16, bx16)
+ assert_raises_fpe('overflow', lambda a, b: a * b, by16, by16)
+ assert_raises_fpe('overflow', lambda a, b: a / b, bx16, sx16)
+ assert_raises_fpe('overflow', lambda a, b: a / b, bx16, sy16)
+ assert_raises_fpe('overflow', lambda a, b: a / b, by16, sx16)
+ assert_raises_fpe('overflow', lambda a, b: a / b, by16, sy16)
+ assert_raises_fpe('overflow', lambda a, b: a + b,
+ float16(65504), float16(17))
+ assert_raises_fpe('overflow', lambda a, b: a - b,
+ float16(-65504), float16(17))
+ assert_raises_fpe('overflow', np.nextafter, float16(65504), float16(np.inf))
+ assert_raises_fpe('overflow', np.nextafter, float16(-65504), float16(-np.inf)) # noqa: E501
+ assert_raises_fpe('overflow', np.spacing, float16(65504))
+
+ # Invalid value errors
+ assert_raises_fpe('invalid', np.divide, float16(np.inf), float16(np.inf))
+ assert_raises_fpe('invalid', np.spacing, float16(np.inf))
+ assert_raises_fpe('invalid', np.spacing, float16(np.nan))
+
+ # These should not raise
+ float16(65472) + float16(32)
+ float16(2**-13) / float16(2)
+ float16(2**-14) / float16(2**10)
+ np.spacing(float16(-65504))
+ np.nextafter(float16(65504), float16(-np.inf))
+ np.nextafter(float16(-65504), float16(np.inf))
+ np.nextafter(float16(np.inf), float16(0))
+ np.nextafter(float16(-np.inf), float16(0))
+ np.nextafter(float16(0), float16(np.nan))
+ np.nextafter(float16(np.nan), float16(0))
+ float16(2**-14) / float16(2**10)
+ float16(-2**-14) / float16(2**10)
+ float16(2**-14 + 2**-23) / float16(2)
+ float16(-2**-14 - 2**-23) / float16(2)
+
+ def test_half_array_interface(self):
+ """Test that half is compatible with __array_interface__"""
+ class Dummy:
+ pass
+
+ a = np.ones((1,), dtype=float16)
+ b = Dummy()
+ b.__array_interface__ = a.__array_interface__
+ c = np.array(b)
+ assert_(c.dtype == float16)
+ assert_equal(a, c)
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/test_hashtable.py b/python/user_packages/Python313/site-packages/numpy/_core/tests/test_hashtable.py
new file mode 100644
index 0000000000000000000000000000000000000000..f6262e52835e097cc4e0748e9724cbc30eebff9c
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/tests/test_hashtable.py
@@ -0,0 +1,36 @@
+import random
+
+import pytest
+
+from numpy._core._multiarray_tests import identityhash_tester
+
+
+@pytest.mark.parametrize("key_length", [1, 3, 6])
+@pytest.mark.parametrize("length", [1, 16, 2000])
+def test_identity_hashtable(key_length, length):
+ # use a 30 object pool for everything (duplicates will happen)
+ pool = [object() for i in range(20)]
+ keys_vals = []
+ for i in range(length):
+ keys = tuple(random.choices(pool, k=key_length))
+ keys_vals.append((keys, random.choice(pool)))
+
+ dictionary = dict(keys_vals)
+
+ # add a random item at the end:
+ keys_vals.append(random.choice(keys_vals))
+ # the expected one could be different with duplicates:
+ expected = dictionary[keys_vals[-1][0]]
+
+ res = identityhash_tester(key_length, keys_vals, replace=True)
+ assert res is expected
+
+ if length == 1:
+ return
+
+ # add a new item with a key that is already used and a new value, this
+ # should error if replace is False, see gh-26690
+ new_key = (keys_vals[1][0], object())
+ keys_vals[0] = new_key
+ with pytest.raises(RuntimeError):
+ identityhash_tester(key_length, keys_vals)
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/test_indexerrors.py b/python/user_packages/Python313/site-packages/numpy/_core/tests/test_indexerrors.py
new file mode 100644
index 0000000000000000000000000000000000000000..fb5eb85e994a8c5a92729cb9c0472d656f211a39
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/tests/test_indexerrors.py
@@ -0,0 +1,122 @@
+import numpy as np
+from numpy.testing import assert_raises, assert_raises_regex
+
+
+class TestIndexErrors:
+ '''Tests to exercise indexerrors not covered by other tests.'''
+
+ def test_arraytypes_fasttake(self):
+ 'take from a 0-length dimension'
+ x = np.empty((2, 3, 0, 4))
+ assert_raises(IndexError, x.take, [0], axis=2)
+ assert_raises(IndexError, x.take, [1], axis=2)
+ assert_raises(IndexError, x.take, [0], axis=2, mode='wrap')
+ assert_raises(IndexError, x.take, [0], axis=2, mode='clip')
+
+ def test_take_from_object(self):
+ # Check exception taking from object array
+ d = np.zeros(5, dtype=object)
+ assert_raises(IndexError, d.take, [6])
+
+ # Check exception taking from 0-d array
+ d = np.zeros((5, 0), dtype=object)
+ assert_raises(IndexError, d.take, [1], axis=1)
+ assert_raises(IndexError, d.take, [0], axis=1)
+ assert_raises(IndexError, d.take, [0])
+ assert_raises(IndexError, d.take, [0], mode='wrap')
+ assert_raises(IndexError, d.take, [0], mode='clip')
+
+ def test_multiindex_exceptions(self):
+ a = np.empty(5, dtype=object)
+ assert_raises(IndexError, a.item, 20)
+ a = np.empty((5, 0), dtype=object)
+ assert_raises(IndexError, a.item, (0, 0))
+
+ def test_put_exceptions(self):
+ a = np.zeros((5, 5))
+ assert_raises(IndexError, a.put, 100, 0)
+ a = np.zeros((5, 5), dtype=object)
+ assert_raises(IndexError, a.put, 100, 0)
+ a = np.zeros((5, 5, 0))
+ assert_raises(IndexError, a.put, 100, 0)
+ a = np.zeros((5, 5, 0), dtype=object)
+ assert_raises(IndexError, a.put, 100, 0)
+
+ def test_iterators_exceptions(self):
+ "cases in iterators.c"
+ def assign(obj, ind, val):
+ obj[ind] = val
+
+ a = np.zeros([1, 2, 3])
+ assert_raises(IndexError, lambda: a[0, 5, None, 2])
+ assert_raises(IndexError, lambda: a[0, 5, 0, 2])
+ assert_raises(IndexError, lambda: assign(a, (0, 5, None, 2), 1))
+ assert_raises(IndexError, lambda: assign(a, (0, 5, 0, 2), 1))
+
+ a = np.zeros([1, 0, 3])
+ assert_raises(IndexError, lambda: a[0, 0, None, 2])
+ assert_raises(IndexError, lambda: assign(a, (0, 0, None, 2), 1))
+
+ a = np.zeros([1, 2, 3])
+ assert_raises(IndexError, lambda: a.flat[10])
+ assert_raises(IndexError, lambda: assign(a.flat, 10, 5))
+ a = np.zeros([1, 0, 3])
+ assert_raises(IndexError, lambda: a.flat[10])
+ assert_raises(IndexError, lambda: assign(a.flat, 10, 5))
+
+ a = np.zeros([1, 2, 3])
+ assert_raises(IndexError, lambda: a.flat[np.array(10)])
+ assert_raises(IndexError, lambda: assign(a.flat, np.array(10), 5))
+ a = np.zeros([1, 0, 3])
+ assert_raises(IndexError, lambda: a.flat[np.array(10)])
+ assert_raises(IndexError, lambda: assign(a.flat, np.array(10), 5))
+
+ a = np.zeros([1, 2, 3])
+ assert_raises(IndexError, lambda: a.flat[np.array([10])])
+ assert_raises(IndexError, lambda: assign(a.flat, np.array([10]), 5))
+ a = np.zeros([1, 0, 3])
+ assert_raises(IndexError, lambda: a.flat[np.array([10])])
+ assert_raises(IndexError, lambda: assign(a.flat, np.array([10]), 5))
+
+ def test_mapping(self):
+ "cases from mapping.c"
+
+ def assign(obj, ind, val):
+ obj[ind] = val
+
+ a = np.zeros((0, 10))
+ assert_raises(IndexError, lambda: a[12])
+
+ a = np.zeros((3, 5))
+ assert_raises(IndexError, lambda: a[(10, 20)])
+ assert_raises(IndexError, lambda: assign(a, (10, 20), 1))
+ a = np.zeros((3, 0))
+ assert_raises(IndexError, lambda: a[(1, 0)])
+ assert_raises(IndexError, lambda: assign(a, (1, 0), 1))
+
+ a = np.zeros((10,))
+ assert_raises(IndexError, lambda: assign(a, 10, 1))
+ a = np.zeros((0,))
+ assert_raises(IndexError, lambda: assign(a, 10, 1))
+
+ a = np.zeros((3, 5))
+ assert_raises(IndexError, lambda: a[(1, [1, 20])])
+ assert_raises(IndexError, lambda: assign(a, (1, [1, 20]), 1))
+ a = np.zeros((3, 0))
+ assert_raises(IndexError, lambda: a[(1, [0, 1])])
+ assert_raises(IndexError, lambda: assign(a, (1, [0, 1]), 1))
+
+ def test_mapping_error_message(self):
+ a = np.zeros((3, 5))
+ index = (1, 2, 3, 4, 5)
+ assert_raises_regex(
+ IndexError,
+ "too many indices for array: "
+ "array is 2-dimensional, but 5 were indexed",
+ lambda: a[index])
+
+ def test_methods(self):
+ "cases from methods.c"
+
+ a = np.zeros((3, 3))
+ assert_raises(IndexError, lambda: a.item(100))
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/test_indexing.py b/python/user_packages/Python313/site-packages/numpy/_core/tests/test_indexing.py
new file mode 100644
index 0000000000000000000000000000000000000000..ece6c262d119e8756622be472ed279f9f23bb07d
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/tests/test_indexing.py
@@ -0,0 +1,1692 @@
+import functools
+import inspect
+import operator
+import sys
+import warnings
+from itertools import product
+
+import pytest
+
+import numpy as np
+from numpy._core._multiarray_tests import array_indexing
+from numpy.exceptions import ComplexWarning, VisibleDeprecationWarning
+from numpy.testing import (
+ HAS_REFCOUNT,
+ IS_PYPY,
+ assert_,
+ assert_array_equal,
+ assert_equal,
+ assert_raises,
+ assert_raises_regex,
+)
+
+
+class TestIndexing:
+ def test_index_no_floats(self):
+ a = np.array([[[5]]])
+
+ assert_raises(IndexError, lambda: a[0.0])
+ assert_raises(IndexError, lambda: a[0, 0.0])
+ assert_raises(IndexError, lambda: a[0.0, 0])
+ assert_raises(IndexError, lambda: a[0.0, :])
+ assert_raises(IndexError, lambda: a[:, 0.0])
+ assert_raises(IndexError, lambda: a[:, 0.0, :])
+ assert_raises(IndexError, lambda: a[0.0, :, :])
+ assert_raises(IndexError, lambda: a[0, 0, 0.0])
+ assert_raises(IndexError, lambda: a[0.0, 0, 0])
+ assert_raises(IndexError, lambda: a[0, 0.0, 0])
+ assert_raises(IndexError, lambda: a[-1.4])
+ assert_raises(IndexError, lambda: a[0, -1.4])
+ assert_raises(IndexError, lambda: a[-1.4, 0])
+ assert_raises(IndexError, lambda: a[-1.4, :])
+ assert_raises(IndexError, lambda: a[:, -1.4])
+ assert_raises(IndexError, lambda: a[:, -1.4, :])
+ assert_raises(IndexError, lambda: a[-1.4, :, :])
+ assert_raises(IndexError, lambda: a[0, 0, -1.4])
+ assert_raises(IndexError, lambda: a[-1.4, 0, 0])
+ assert_raises(IndexError, lambda: a[0, -1.4, 0])
+ assert_raises(IndexError, lambda: a[0.0:, 0.0])
+ assert_raises(IndexError, lambda: a[0.0:, 0.0, :])
+
+ def test_slicing_no_floats(self):
+ a = np.array([[5]])
+
+ # start as float.
+ assert_raises(TypeError, lambda: a[0.0:])
+ assert_raises(TypeError, lambda: a[0:, 0.0:2])
+ assert_raises(TypeError, lambda: a[0.0::2, :0])
+ assert_raises(TypeError, lambda: a[0.0:1:2, :])
+ assert_raises(TypeError, lambda: a[:, 0.0:])
+ # stop as float.
+ assert_raises(TypeError, lambda: a[:0.0])
+ assert_raises(TypeError, lambda: a[:0, 1:2.0])
+ assert_raises(TypeError, lambda: a[:0.0:2, :0])
+ assert_raises(TypeError, lambda: a[:0.0, :])
+ assert_raises(TypeError, lambda: a[:, 0:4.0:2])
+ # step as float.
+ assert_raises(TypeError, lambda: a[::1.0])
+ assert_raises(TypeError, lambda: a[0:, :2:2.0])
+ assert_raises(TypeError, lambda: a[1::4.0, :0])
+ assert_raises(TypeError, lambda: a[::5.0, :])
+ assert_raises(TypeError, lambda: a[:, 0:4:2.0])
+ # mixed.
+ assert_raises(TypeError, lambda: a[1.0:2:2.0])
+ assert_raises(TypeError, lambda: a[1.0::2.0])
+ assert_raises(TypeError, lambda: a[0:, :2.0:2.0])
+ assert_raises(TypeError, lambda: a[1.0:1:4.0, :0])
+ assert_raises(TypeError, lambda: a[1.0:5.0:5.0, :])
+ assert_raises(TypeError, lambda: a[:, 0.4:4.0:2.0])
+ # should still get the DeprecationWarning if step = 0.
+ assert_raises(TypeError, lambda: a[::0.0])
+
+ def test_index_no_array_to_index(self):
+ # No non-scalar arrays.
+ a = np.array([[[1]]])
+
+ assert_raises(TypeError, lambda: a[a:a:a])
+
+ def test_none_index(self):
+ # `None` index adds newaxis
+ a = np.array([1, 2, 3])
+ assert_equal(a[None], a[np.newaxis])
+ assert_equal(a[None].ndim, a.ndim + 1)
+
+ def test_empty_tuple_index(self):
+ # Empty tuple index creates a view
+ a = np.array([1, 2, 3])
+ assert_equal(a[()], a)
+ assert_(a[()].base is a)
+ a = np.array(0)
+ assert_(isinstance(a[()], np.int_))
+
+ def test_void_scalar_empty_tuple(self):
+ s = np.zeros((), dtype='V4')
+ assert_equal(s[()].dtype, s.dtype)
+ assert_equal(s[()], s)
+ assert_equal(type(s[...]), np.ndarray)
+
+ def test_same_kind_index_casting(self):
+ # Indexes should be cast with same-kind and not safe, even if that
+ # is somewhat unsafe. So test various different code paths.
+ index = np.arange(5)
+ u_index = index.astype(np.uintp)
+ arr = np.arange(10)
+
+ assert_array_equal(arr[index], arr[u_index])
+ arr[u_index] = np.arange(5)
+ assert_array_equal(arr, np.arange(10))
+
+ arr = np.arange(10).reshape(5, 2)
+ assert_array_equal(arr[index], arr[u_index])
+
+ arr[u_index] = np.arange(5)[:, None]
+ assert_array_equal(arr, np.arange(5)[:, None].repeat(2, axis=1))
+
+ arr = np.arange(25).reshape(5, 5)
+ assert_array_equal(arr[u_index, u_index], arr[index, index])
+
+ def test_empty_fancy_index(self):
+ # Empty list index creates an empty array
+ # with the same dtype (but with weird shape)
+ a = np.array([1, 2, 3])
+ assert_equal(a[[]], [])
+ assert_equal(a[[]].dtype, a.dtype)
+
+ b = np.array([], dtype=np.intp)
+ assert_equal(a[[]], [])
+ assert_equal(a[[]].dtype, a.dtype)
+
+ b = np.array([])
+ assert_raises(IndexError, a.__getitem__, b)
+
+ def test_gh_26542(self):
+ a = np.array([0, 1, 2])
+ idx = np.array([2, 1, 0])
+ a[idx] = a
+ expected = np.array([2, 1, 0])
+ assert_equal(a, expected)
+
+ def test_gh_26542_2d(self):
+ a = np.array([[0, 1, 2]])
+ idx_row = np.zeros(3, dtype=int)
+ idx_col = np.array([2, 1, 0])
+ a[idx_row, idx_col] = a
+ expected = np.array([[2, 1, 0]])
+ assert_equal(a, expected)
+
+ def test_gh_26542_index_overlap(self):
+ arr = np.arange(100)
+ expected_vals = np.copy(arr[:-10])
+ arr[10:] = arr[:-10]
+ actual_vals = arr[10:]
+ assert_equal(actual_vals, expected_vals)
+
+ def test_gh_26844(self):
+ expected = [0, 1, 3, 3, 3]
+ a = np.arange(5)
+ a[2:][a[:-2]] = 3
+ assert_equal(a, expected)
+
+ def test_gh_26844_segfault(self):
+ # check for absence of segfault for:
+ # https://github.com/numpy/numpy/pull/26958/files#r1854589178
+ a = np.arange(5)
+ expected = [0, 1, 3, 3, 3]
+ a[2:][None, a[:-2]] = 3
+ assert_equal(a, expected)
+
+ def test_ellipsis_index(self):
+ a = np.array([[1, 2, 3],
+ [4, 5, 6],
+ [7, 8, 9]])
+ assert_(a[...] is not a)
+ assert_equal(a[...], a)
+ # `a[...]` was `a` in numpy <1.9.
+ assert_(a[...].base is a)
+
+ # Slicing with ellipsis can skip an
+ # arbitrary number of dimensions
+ assert_equal(a[0, ...], a[0])
+ assert_equal(a[0, ...], a[0, :])
+ assert_equal(a[..., 0], a[:, 0])
+
+ # Slicing with ellipsis always results
+ # in an array, not a scalar
+ assert_equal(a[0, ..., 1], np.array(2))
+
+ # Assignment with `(Ellipsis,)` on 0-d arrays
+ b = np.array(1)
+ b[(Ellipsis,)] = 2
+ assert_equal(b, 2)
+
+ def test_single_int_index(self):
+ # Single integer index selects one row
+ a = np.array([[1, 2, 3],
+ [4, 5, 6],
+ [7, 8, 9]])
+
+ assert_equal(a[0], [1, 2, 3])
+ assert_equal(a[-1], [7, 8, 9])
+
+ # Index out of bounds produces IndexError
+ assert_raises(IndexError, a.__getitem__, 1 << 30)
+ # Index overflow produces IndexError
+ assert_raises(IndexError, a.__getitem__, 1 << 64)
+
+ def test_single_bool_index(self):
+ # Single boolean index
+ a = np.array([[1, 2, 3],
+ [4, 5, 6],
+ [7, 8, 9]])
+
+ assert_equal(a[np.array(True)], a[None])
+ assert_equal(a[np.array(False)], a[None][0:0])
+
+ def test_boolean_shape_mismatch(self):
+ arr = np.ones((5, 4, 3))
+
+ index = np.array([True])
+ assert_raises(IndexError, arr.__getitem__, index)
+
+ index = np.array([False] * 6)
+ assert_raises(IndexError, arr.__getitem__, index)
+
+ index = np.zeros((4, 4), dtype=bool)
+ assert_raises(IndexError, arr.__getitem__, index)
+
+ assert_raises(IndexError, arr.__getitem__, (slice(None), index))
+
+ def test_boolean_indexing_onedim(self):
+ # Indexing a 2-dimensional array with
+ # boolean array of length one
+ a = np.array([[0., 0., 0.]])
+ b = np.array([True], dtype=bool)
+ assert_equal(a[b], a)
+ # boolean assignment
+ a[b] = 1.
+ assert_equal(a, [[1., 1., 1.]])
+
+ def test_boolean_assignment_value_mismatch(self):
+ # A boolean assignment should fail when the shape of the values
+ # cannot be broadcast to the subscription. (see also gh-3458)
+ a = np.arange(4)
+
+ def f(a, v):
+ a[a > -1] = v
+
+ assert_raises(ValueError, f, a, [])
+ assert_raises(ValueError, f, a, [1, 2, 3])
+ assert_raises(ValueError, f, a[:1], [1, 2, 3])
+
+ def test_boolean_assignment_needs_api(self):
+ # See also gh-7666
+ # This caused a segfault on Python 2 due to the GIL not being
+ # held when the iterator does not need it, but the transfer function
+ # does
+ arr = np.zeros(1000)
+ indx = np.zeros(1000, dtype=bool)
+ indx[:100] = True
+ arr[indx] = np.ones(100, dtype=object)
+
+ expected = np.zeros(1000)
+ expected[:100] = 1
+ assert_array_equal(arr, expected)
+
+ def test_boolean_indexing_twodim(self):
+ # Indexing a 2-dimensional array with
+ # 2-dimensional boolean array
+ a = np.array([[1, 2, 3],
+ [4, 5, 6],
+ [7, 8, 9]])
+ b = np.array([[ True, False, True],
+ [False, True, False],
+ [ True, False, True]])
+ assert_equal(a[b], [1, 3, 5, 7, 9])
+ assert_equal(a[b[1]], [[4, 5, 6]])
+ assert_equal(a[b[0]], a[b[2]])
+
+ # boolean assignment
+ a[b] = 0
+ assert_equal(a, [[0, 2, 0],
+ [4, 0, 6],
+ [0, 8, 0]])
+
+ def test_boolean_indexing_list(self):
+ # Regression test for #13715. It's a use-after-free bug which the
+ # test won't directly catch, but it will show up in valgrind.
+ a = np.array([1, 2, 3])
+ b = [True, False, True]
+ # Two variants of the test because the first takes a fast path
+ assert_equal(a[b], [1, 3])
+ assert_equal(a[None, b], [[1, 3]])
+
+ def test_reverse_strides_and_subspace_bufferinit(self):
+ # This tests that the strides are not reversed for simple and
+ # subspace fancy indexing.
+ a = np.ones(5)
+ b = np.zeros(5, dtype=np.intp)[::-1]
+ c = np.arange(5)[::-1]
+
+ a[b] = c
+ # If the strides are not reversed, the 0 in the arange comes last.
+ assert_equal(a[0], 0)
+
+ # This also tests that the subspace buffer is initialized:
+ a = np.ones((5, 2))
+ c = np.arange(10).reshape(5, 2)[::-1]
+ a[b, :] = c
+ assert_equal(a[0], [0, 1])
+
+ def test_reversed_strides_result_allocation(self):
+ # Test a bug when calculating the output strides for a result array
+ # when the subspace size was 1 (and test other cases as well)
+ a = np.arange(10)[:, None]
+ i = np.arange(10)[::-1]
+ assert_array_equal(a[i], a[i.copy('C')])
+
+ a = np.arange(20).reshape(-1, 2)
+
+ def test_uncontiguous_subspace_assignment(self):
+ # During development there was a bug activating a skip logic
+ # based on ndim instead of size.
+ a = np.full((3, 4, 2), -1)
+ b = np.full((3, 4, 2), -1)
+
+ a[[0, 1]] = np.arange(2 * 4 * 2).reshape(2, 4, 2).T
+ b[[0, 1]] = np.arange(2 * 4 * 2).reshape(2, 4, 2).T.copy()
+
+ assert_equal(a, b)
+
+ def test_too_many_fancy_indices_special_case(self):
+ # Just documents behaviour, this is a small limitation.
+ a = np.ones((1,) * 64) # 64 is NPY_MAXDIMS
+ assert_raises(IndexError, a.__getitem__, (np.array([0]),) * 64)
+
+ def test_scalar_array_bool(self):
+ # NumPy bools can be used as boolean index (python ones as of yet not)
+ a = np.array(1)
+ assert_equal(a[np.bool(True)], a[np.array(True)])
+ assert_equal(a[np.bool(False)], a[np.array(False)])
+
+ # After deprecating bools as integers:
+ #a = np.array([0,1,2])
+ #assert_equal(a[True, :], a[None, :])
+ #assert_equal(a[:, True], a[:, None])
+ #
+ #assert_(not np.may_share_memory(a, a[True, :]))
+
+ def test_everything_returns_views(self):
+ # Before `...` would return a itself.
+ a = np.arange(5)
+
+ assert_(a is not a[()])
+ assert_(a is not a[...])
+ assert_(a is not a[:])
+
+ def test_broaderrors_indexing(self):
+ a = np.zeros((5, 5))
+ assert_raises(IndexError, a.__getitem__, ([0, 1], [0, 1, 2]))
+ assert_raises(IndexError, a.__setitem__, ([0, 1], [0, 1, 2]), 0)
+
+ def test_trivial_fancy_out_of_bounds(self):
+ a = np.zeros(5)
+ ind = np.ones(20, dtype=np.intp)
+ ind[-1] = 10
+ assert_raises(IndexError, a.__getitem__, ind)
+ assert_raises(IndexError, a.__setitem__, ind, 0)
+ ind = np.ones(20, dtype=np.intp)
+ ind[0] = 11
+ assert_raises(IndexError, a.__getitem__, ind)
+ assert_raises(IndexError, a.__setitem__, ind, 0)
+
+ def test_trivial_fancy_not_possible(self):
+ # Test that the fast path for trivial assignment is not incorrectly
+ # used when the index is not contiguous or 1D, see also gh-11467.
+ a = np.arange(6)
+ idx = np.arange(6, dtype=np.intp).reshape(2, 1, 3)[:, :, 0]
+ assert_array_equal(a[idx], idx)
+
+ # this case must not go into the fast path, note that idx is
+ # a non-contiguous none 1D array here.
+ a[idx] = -1
+ res = np.arange(6)
+ res[0] = -1
+ res[3] = -1
+ assert_array_equal(a, res)
+
+ def test_nonbaseclass_values(self):
+ class SubClass(np.ndarray):
+ def __array_finalize__(self, old):
+ # Have array finalize do funny things
+ self.fill(99)
+
+ a = np.zeros((5, 5))
+ s = a.copy().view(type=SubClass)
+ s.fill(1)
+
+ a[[0, 1, 2, 3, 4], :] = s
+ assert_((a == 1).all())
+
+ # Subspace is last, so transposing might want to finalize
+ a[:, [0, 1, 2, 3, 4]] = s
+ assert_((a == 1).all())
+
+ a.fill(0)
+ a[...] = s
+ assert_((a == 1).all())
+
+ def test_array_like_values(self):
+ # Similar to the above test, but use a memoryview instead
+ a = np.zeros((5, 5))
+ s = np.arange(25, dtype=np.float64).reshape(5, 5)
+
+ a[[0, 1, 2, 3, 4], :] = memoryview(s)
+ assert_array_equal(a, s)
+
+ a[:, [0, 1, 2, 3, 4]] = memoryview(s)
+ assert_array_equal(a, s)
+
+ a[...] = memoryview(s)
+ assert_array_equal(a, s)
+
+ @pytest.mark.parametrize("writeable", [True, False])
+ def test_subclass_writeable(self, writeable):
+ d = np.rec.array([('NGC1001', 11), ('NGC1002', 1.), ('NGC1003', 1.)],
+ dtype=[('target', 'S20'), ('V_mag', '>f4')])
+ d.flags.writeable = writeable
+ # Advanced indexing results are always writeable:
+ ind = np.array([False, True, True], dtype=bool)
+ assert d[ind].flags.writeable
+ ind = np.array([0, 1])
+ assert d[ind].flags.writeable
+ # Views should be writeable if the original array is:
+ assert d[...].flags.writeable == writeable
+ assert d[0].flags.writeable == writeable
+
+ def test_memory_order(self):
+ # This is not necessary to preserve. Memory layouts for
+ # more complex indices are not as simple.
+ a = np.arange(10)
+ b = np.arange(10).reshape(5, 2).T
+ assert_(a[b].flags.f_contiguous)
+
+ # Takes a different implementation branch:
+ a = a.reshape(-1, 1)
+ assert_(a[b, 0].flags.f_contiguous)
+
+ def test_scalar_return_type(self):
+ # Full scalar indices should return scalars and object
+ # arrays should not call PyArray_Return on their items
+ class Zero:
+ # The most basic valid indexing
+ def __index__(self):
+ return 0
+
+ z = Zero()
+
+ class ArrayLike:
+ # Simple array, should behave like the array
+ def __array__(self, dtype=None, copy=None):
+ return np.array(0)
+
+ a = np.zeros(())
+ assert_(isinstance(a[()], np.float64))
+ a = np.zeros(1)
+ assert_(isinstance(a[z], np.float64))
+ a = np.zeros((1, 1))
+ assert_(isinstance(a[z, np.array(0)], np.float64))
+ assert_(isinstance(a[z, ArrayLike()], np.float64))
+
+ # And object arrays do not call it too often:
+ b = np.array(0)
+ a = np.array(0, dtype=object)
+ a[()] = b
+ assert_(isinstance(a[()], np.ndarray))
+ a = np.array([b, None])
+ assert_(isinstance(a[z], np.ndarray))
+ a = np.array([[b, None]])
+ assert_(isinstance(a[z, np.array(0)], np.ndarray))
+ assert_(isinstance(a[z, ArrayLike()], np.ndarray))
+
+ def test_small_regressions(self):
+ # Reference count of intp for index checks
+ a = np.array([0])
+ if HAS_REFCOUNT:
+ refcount = sys.getrefcount(np.dtype(np.intp))
+ # item setting always checks indices in separate function:
+ a[np.array([0], dtype=np.intp)] = 1
+ a[np.array([0], dtype=np.uint8)] = 1
+ assert_raises(IndexError, a.__setitem__,
+ np.array([1], dtype=np.intp), 1)
+ assert_raises(IndexError, a.__setitem__,
+ np.array([1], dtype=np.uint8), 1)
+
+ if HAS_REFCOUNT:
+ assert_equal(sys.getrefcount(np.dtype(np.intp)), refcount)
+
+ def test_unaligned(self):
+ v = (np.zeros(64, dtype=np.int8) + ord('a'))[1:-7]
+ d = v.view(np.dtype("S8"))
+ # unaligned source
+ x = (np.zeros(16, dtype=np.int8) + ord('a'))[1:-7]
+ x = x.view(np.dtype("S8"))
+ x[...] = np.array("b" * 8, dtype="S")
+ b = np.arange(d.size)
+ # trivial
+ assert_equal(d[b], d)
+ d[b] = x
+ # nontrivial
+ # unaligned index array
+ b = np.zeros(d.size + 1).view(np.int8)[1:-(np.intp(0).itemsize - 1)]
+ b = b.view(np.intp)[:d.size]
+ b[...] = np.arange(d.size)
+ assert_equal(d[b.astype(np.int16)], d)
+ d[b.astype(np.int16)] = x
+ # boolean
+ d[b % 2 == 0]
+ d[b % 2 == 0] = x[::2]
+
+ def test_tuple_subclass(self):
+ arr = np.ones((5, 5))
+
+ # A tuple subclass should also be an nd-index
+ class TupleSubclass(tuple):
+ pass
+ index = ([1], [1])
+ index = TupleSubclass(index)
+ assert_(arr[index].shape == (1,))
+ # Unlike the non nd-index:
+ assert_(arr[index,].shape != (1,))
+
+ def test_broken_sequence_not_nd_index(self):
+ # See gh-5063:
+ # If we have an object which claims to be a sequence, but fails
+ # on item getting, this should not be converted to an nd-index (tuple)
+ # If this object happens to be a valid index otherwise, it should work
+ # This object here is very dubious and probably bad though:
+ class SequenceLike:
+ def __index__(self):
+ return 0
+
+ def __len__(self):
+ return 1
+
+ def __getitem__(self, item):
+ raise IndexError('Not possible')
+
+ arr = np.arange(10)
+ assert_array_equal(arr[SequenceLike()], arr[SequenceLike(),])
+
+ # also test that field indexing does not segfault
+ # for a similar reason, by indexing a structured array
+ arr = np.zeros((1,), dtype=[('f1', 'i8'), ('f2', 'i8')])
+ assert_array_equal(arr[SequenceLike()], arr[SequenceLike(),])
+
+ def test_indexing_array_weird_strides(self):
+ # See also gh-6221
+ # the shapes used here come from the issue and create the correct
+ # size for the iterator buffering size.
+ x = np.ones(10)
+ x2 = np.ones((10, 2))
+ ind = np.arange(10)[:, None, None, None]
+ ind = np.broadcast_to(ind, (10, 55, 4, 4))
+
+ # single advanced index case
+ assert_array_equal(x[ind], x[ind.copy()])
+ # higher dimensional advanced index
+ zind = np.zeros(4, dtype=np.intp)
+ assert_array_equal(x2[ind, zind], x2[ind.copy(), zind])
+
+ def test_indexing_array_negative_strides(self):
+ # From gh-8264,
+ # core dumps if negative strides are used in iteration
+ arro = np.zeros((4, 4))
+ arr = arro[::-1, ::-1]
+
+ slices = (slice(None), [0, 1, 2, 3])
+ arr[slices] = 10
+ assert_array_equal(arr, 10.)
+
+ def test_character_assignment(self):
+ # This is an example a function going through CopyObject which
+ # used to have an untested special path for scalars
+ # (the character special dtype case, should be deprecated probably)
+ arr = np.zeros((1, 5), dtype="c")
+ arr[0] = np.str_("asdfg") # must assign as a sequence
+ assert_array_equal(arr[0], np.array("asdfg", dtype="c"))
+ assert arr[0, 1] == b"s" # make sure not all were set to "a" for both
+
+ @pytest.mark.parametrize("index",
+ [True, False, np.array([0])])
+ @pytest.mark.parametrize("num", [64, 80])
+ @pytest.mark.parametrize("original_ndim", [1, 64])
+ def test_too_many_advanced_indices(self, index, num, original_ndim):
+ # These are limitations based on the number of arguments we can process.
+ # For `num=32` (and all boolean cases), the result is actually define;
+ # but the use of NpyIter (NPY_MAXARGS) limits it for technical reasons.
+ arr = np.ones((1,) * original_ndim)
+ with pytest.raises(IndexError):
+ arr[(index,) * num]
+ with pytest.raises(IndexError):
+ arr[(index,) * num] = 1.
+
+ def test_nontuple_ndindex(self):
+ a = np.arange(25).reshape((5, 5))
+ assert_equal(a[[0, 1]], np.array([a[0], a[1]]))
+ assert_equal(a[[0, 1], [0, 1]], np.array([0, 6]))
+ assert_raises(IndexError, a.__getitem__, [slice(None)])
+
+
+class TestFieldIndexing:
+ def test_scalar_return_type(self):
+ # Field access on an array should return an array, even if it
+ # is 0-d.
+ a = np.zeros((), [('a', 'f8')])
+ assert_(isinstance(a['a'], np.ndarray))
+ assert_(isinstance(a[['a']], np.ndarray))
+
+
+class TestBroadcastedAssignments:
+ def assign(self, a, ind, val):
+ a[ind] = val
+ return a
+
+ def test_prepending_ones(self):
+ a = np.zeros((3, 2))
+
+ a[...] = np.ones((1, 3, 2))
+ # Fancy with subspace with and without transpose
+ a[[0, 1, 2], :] = np.ones((1, 3, 2))
+ a[:, [0, 1]] = np.ones((1, 3, 2))
+ # Fancy without subspace (with broadcasting)
+ a[[[0], [1], [2]], [0, 1]] = np.ones((1, 3, 2))
+
+ def test_prepend_not_one(self):
+ assign = self.assign
+ s_ = np.s_
+ a = np.zeros(5)
+
+ # Too large and not only ones.
+ assert_raises(ValueError, assign, a, s_[...], np.ones((2, 1)))
+ assert_raises(ValueError, assign, a, s_[[1, 2, 3],], np.ones((2, 1)))
+ assert_raises(ValueError, assign, a, s_[[[1], [2]],], np.ones((2, 2, 1)))
+
+ def test_simple_broadcasting_errors(self):
+ assign = self.assign
+ s_ = np.s_
+ a = np.zeros((5, 1))
+
+ assert_raises(ValueError, assign, a, s_[...], np.zeros((5, 2)))
+ assert_raises(ValueError, assign, a, s_[...], np.zeros((5, 0)))
+ assert_raises(ValueError, assign, a, s_[:, [0]], np.zeros((5, 2)))
+ assert_raises(ValueError, assign, a, s_[:, [0]], np.zeros((5, 0)))
+ assert_raises(ValueError, assign, a, s_[[0], :], np.zeros((2, 1)))
+
+ @pytest.mark.parametrize("index", [
+ (..., [1, 2], slice(None)),
+ ([0, 1], ..., 0),
+ (..., [1, 2], [1, 2])])
+ def test_broadcast_error_reports_correct_shape(self, index):
+ values = np.zeros((100, 100)) # will never broadcast below
+
+ arr = np.zeros((3, 4, 5, 6, 7))
+ # We currently report without any spaces (could be changed)
+ shape_str = str(arr[index].shape).replace(" ", "")
+
+ with pytest.raises(ValueError) as e:
+ arr[index] = values
+
+ assert str(e.value).endswith(shape_str)
+
+ def test_index_is_larger(self):
+ # Simple case of fancy index broadcasting of the index.
+ a = np.zeros((5, 5))
+ a[[[0], [1], [2]], [0, 1, 2]] = [2, 3, 4]
+
+ assert_((a[:3, :3] == [2, 3, 4]).all())
+
+ def test_broadcast_subspace(self):
+ a = np.zeros((100, 100))
+ v = np.arange(100)[:, None]
+ b = np.arange(100)[::-1]
+ a[b] = v
+ assert_((a[::-1] == v).all())
+
+
+class TestSubclasses:
+ def test_basic(self):
+ # Test that indexing in various ways produces SubClass instances,
+ # and that the base is set up correctly: the original subclass
+ # instance for views, and a new ndarray for advanced/boolean indexing
+ # where a copy was made (latter a regression test for gh-11983).
+ class SubClass(np.ndarray):
+ pass
+
+ a = np.arange(5)
+ s = a.view(SubClass)
+ s_slice = s[:3]
+ assert_(type(s_slice) is SubClass)
+ assert_(s_slice.base is s)
+ assert_array_equal(s_slice, a[:3])
+
+ s_fancy = s[[0, 1, 2]]
+ assert_(type(s_fancy) is SubClass)
+ assert_(s_fancy.base is not s)
+ assert_(type(s_fancy.base) is np.ndarray)
+ assert_array_equal(s_fancy, a[[0, 1, 2]])
+ assert_array_equal(s_fancy.base, a[[0, 1, 2]])
+
+ s_bool = s[s > 0]
+ assert_(type(s_bool) is SubClass)
+ assert_(s_bool.base is not s)
+ assert_(type(s_bool.base) is np.ndarray)
+ assert_array_equal(s_bool, a[a > 0])
+ assert_array_equal(s_bool.base, a[a > 0])
+
+ def test_fancy_on_read_only(self):
+ # Test that fancy indexing on read-only SubClass does not make a
+ # read-only copy (gh-14132)
+ class SubClass(np.ndarray):
+ pass
+
+ a = np.arange(5)
+ s = a.view(SubClass)
+ s.flags.writeable = False
+ s_fancy = s[[0, 1, 2]]
+ assert_(s_fancy.flags.writeable)
+
+ def test_finalize_gets_full_info(self):
+ # Array finalize should be called on the filled array.
+ class SubClass(np.ndarray):
+ def __array_finalize__(self, old):
+ self.finalize_status = np.array(self)
+ self.old = old
+
+ s = np.arange(10).view(SubClass)
+ new_s = s[:3]
+ assert_array_equal(new_s.finalize_status, new_s)
+ assert_array_equal(new_s.old, s)
+
+ new_s = s[[0, 1, 2, 3]]
+ assert_array_equal(new_s.finalize_status, new_s)
+ assert_array_equal(new_s.old, s)
+
+ new_s = s[s > 0]
+ assert_array_equal(new_s.finalize_status, new_s)
+ assert_array_equal(new_s.old, s)
+
+
+class TestFancyIndexingCast:
+ def test_boolean_index_cast_assign(self):
+ # Setup the boolean index and float arrays.
+ shape = (8, 63)
+ bool_index = np.zeros(shape).astype(bool)
+ bool_index[0, 1] = True
+ zero_array = np.zeros(shape)
+
+ # Assigning float is fine.
+ zero_array[bool_index] = np.array([1])
+ assert_equal(zero_array[0, 1], 1)
+
+ # Fancy indexing works, although we get a cast warning.
+ pytest.warns(ComplexWarning,
+ zero_array.__setitem__, ([0], [1]), np.array([2 + 1j]))
+ assert_equal(zero_array[0, 1], 2) # No complex part
+
+ # Cast complex to float, throwing away the imaginary portion.
+ pytest.warns(ComplexWarning,
+ zero_array.__setitem__, bool_index, np.array([1j]))
+ assert_equal(zero_array[0, 1], 0)
+
+
+class TestFancyIndexingEquivalence:
+ def test_object_assign(self):
+ # Check that the field and object special case using copyto is active.
+ # The right hand side cannot be converted to an array here.
+ a = np.arange(5, dtype=object)
+ b = a.copy()
+ a[:3] = [1, (1, 2), 3]
+ b[[0, 1, 2]] = [1, (1, 2), 3]
+ assert_array_equal(a, b)
+
+ # test same for subspace fancy indexing
+ b = np.arange(5, dtype=object)[None, :]
+ b[[0], :3] = [[1, (1, 2), 3]]
+ assert_array_equal(a, b[0])
+
+ # Check that swapping of axes works.
+ # There was a bug that made the later assignment throw a ValueError
+ # do to an incorrectly transposed temporary right hand side (gh-5714)
+ b = b.T
+ b[:3, [0]] = [[1], [(1, 2)], [3]]
+ assert_array_equal(a, b[:, 0])
+
+ # Another test for the memory order of the subspace
+ arr = np.ones((3, 4, 5), dtype=object)
+ # Equivalent slicing assignment for comparison
+ cmp_arr = arr.copy()
+ cmp_arr[:1, ...] = [[[1], [2], [3], [4]]]
+ arr[[0], ...] = [[[1], [2], [3], [4]]]
+ assert_array_equal(arr, cmp_arr)
+ arr = arr.copy('F')
+ arr[[0], ...] = [[[1], [2], [3], [4]]]
+ assert_array_equal(arr, cmp_arr)
+
+ def test_cast_equivalence(self):
+ # Yes, normal slicing uses unsafe casting.
+ a = np.arange(5)
+ b = a.copy()
+
+ a[:3] = np.array(['2', '-3', '-1'])
+ b[[0, 2, 1]] = np.array(['2', '-1', '-3'])
+ assert_array_equal(a, b)
+
+ # test the same for subspace fancy indexing
+ b = np.arange(5)[None, :]
+ b[[0], :3] = np.array([['2', '-3', '-1']])
+ assert_array_equal(a, b[0])
+
+
+class TestMultiIndexingAutomated:
+ """
+ These tests use code to mimic the C-Code indexing for selection.
+
+ NOTE:
+
+ * This still lacks tests for complex item setting.
+ * If you change behavior of indexing, you might want to modify
+ these tests to try more combinations.
+ * Behavior was written to match numpy version 1.8. (though a
+ first version matched 1.7.)
+ * Only tuple indices are supported by the mimicking code.
+ (and tested as of writing this)
+ * Error types should match most of the time as long as there
+ is only one error. For multiple errors, what gets raised
+ will usually not be the same one. They are *not* tested.
+
+ Update 2016-11-30: It is probably not worth maintaining this test
+ indefinitely and it can be dropped if maintenance becomes a burden.
+
+ """
+
+ def _create_array(self):
+ return np.arange(np.prod([3, 1, 5, 6])).reshape(3, 1, 5, 6)
+
+ def _create_complex_indices(self):
+ return ['skip', Ellipsis,
+ 0,
+ # Boolean indices, up to 3-d for some special cases of eating up
+ # dimensions, also need to test all False
+ np.array([True, False, False]),
+ np.array([[True, False], [False, True]]),
+ np.array([[[False, False], [False, False]]]),
+ # Some slices:
+ slice(-5, 5, 2),
+ slice(1, 1, 100),
+ slice(4, -1, -2),
+ slice(None, None, -3),
+ # Some Fancy indexes:
+ np.empty((0, 1, 1), dtype=np.intp), # empty and can be broadcast
+ np.array([0, 1, -2]),
+ np.array([[2], [0], [1]]),
+ np.array([[0, -1], [0, 1]], dtype=np.dtype('intp').newbyteorder()),
+ np.array([2, -1], dtype=np.int8),
+ np.zeros([1] * 31, dtype=int), # trigger too large array.
+ np.array([0., 1.])] # invalid datatype
+
+ def _get_multi_index(self, arr, indices):
+ """Mimic multi dimensional indexing.
+
+ Parameters
+ ----------
+ arr : ndarray
+ Array to be indexed.
+ indices : tuple of index objects
+
+ Returns
+ -------
+ out : ndarray
+ An array equivalent to the indexing operation (but always a copy).
+ `arr[indices]` should be identical.
+ no_copy : bool
+ Whether the indexing operation requires a copy. If this is `True`,
+ `np.may_share_memory(arr, arr[indices])` should be `True` (with
+ some exceptions for scalars and possibly 0-d arrays).
+
+ Notes
+ -----
+ While the function may mostly match the errors of normal indexing this
+ is generally not the case.
+ """
+ in_indices = list(indices)
+ indices = []
+ # if False, this is a fancy or boolean index
+ no_copy = True
+ # number of fancy/scalar indexes that are not consecutive
+ num_fancy = 0
+ # number of dimensions indexed by a "fancy" index
+ fancy_dim = 0
+ # NOTE: This is a funny twist (and probably OK to change).
+ # The boolean array has illegal indexes, but this is
+ # allowed if the broadcast fancy-indices are 0-sized.
+ # This variable is to catch that case.
+ error_unless_broadcast_to_empty = False
+
+ # We need to handle Ellipsis and make arrays from indices, also
+ # check if this is fancy indexing (set no_copy).
+ ndim = 0
+ ellipsis_pos = None # define here mostly to replace all but first.
+ for i, indx in enumerate(in_indices):
+ if indx is None:
+ continue
+ if isinstance(indx, np.ndarray) and indx.dtype == bool:
+ no_copy = False
+ if indx.ndim == 0:
+ raise IndexError
+ # boolean indices can have higher dimensions
+ ndim += indx.ndim
+ fancy_dim += indx.ndim
+ continue
+ if indx is Ellipsis:
+ if ellipsis_pos is None:
+ ellipsis_pos = i
+ continue # do not increment ndim counter
+ raise IndexError
+ if isinstance(indx, slice):
+ ndim += 1
+ continue
+ if not isinstance(indx, np.ndarray):
+ # This could be open for changes in numpy.
+ # numpy should maybe raise an error if casting to intp
+ # is not safe. It rejects np.array([1., 2.]) but not
+ # [1., 2.] as index (same for ie. np.take).
+ # (Note the importance of empty lists if changing this here)
+ try:
+ indx = np.array(indx, dtype=np.intp)
+ except ValueError:
+ raise IndexError
+ in_indices[i] = indx
+ elif indx.dtype.kind not in 'bi':
+ raise IndexError('arrays used as indices must be of '
+ 'integer (or boolean) type')
+ if indx.ndim != 0:
+ no_copy = False
+ ndim += 1
+ fancy_dim += 1
+
+ if arr.ndim - ndim < 0:
+ # we can't take more dimensions then we have, not even for 0-d
+ # arrays. since a[()] makes sense, but not a[(),]. We will
+ # raise an error later on, unless a broadcasting error occurs
+ # first.
+ raise IndexError
+
+ if ndim == 0 and None not in in_indices:
+ # Well we have no indexes or one Ellipsis. This is legal.
+ return arr.copy(), no_copy
+
+ if ellipsis_pos is not None:
+ in_indices[ellipsis_pos:ellipsis_pos + 1] = ([slice(None, None)] *
+ (arr.ndim - ndim))
+
+ for ax, indx in enumerate(in_indices):
+ if isinstance(indx, slice):
+ # convert to an index array
+ indx = np.arange(*indx.indices(arr.shape[ax]))
+ indices.append(['s', indx])
+ continue
+ elif indx is None:
+ # this is like taking a slice with one element from a new axis:
+ indices.append(['n', np.array([0], dtype=np.intp)])
+ arr = arr.reshape(arr.shape[:ax] + (1,) + arr.shape[ax:])
+ continue
+ if isinstance(indx, np.ndarray) and indx.dtype == bool:
+ if indx.shape != arr.shape[ax:ax + indx.ndim]:
+ raise IndexError
+
+ try:
+ flat_indx = np.ravel_multi_index(np.nonzero(indx),
+ arr.shape[ax:ax + indx.ndim], mode='raise')
+ except Exception:
+ error_unless_broadcast_to_empty = True
+ # fill with 0s instead, and raise error later
+ flat_indx = np.array([0] * indx.sum(), dtype=np.intp)
+ # concatenate axis into a single one:
+ if indx.ndim != 0:
+ arr = arr.reshape(arr.shape[:ax]
+ + (np.prod(arr.shape[ax:ax + indx.ndim]),)
+ + arr.shape[ax + indx.ndim:])
+ indx = flat_indx
+ else:
+ # This could be changed, a 0-d boolean index can
+ # make sense (even outside the 0-d indexed array case)
+ # Note that originally this is could be interpreted as
+ # integer in the full integer special case.
+ raise IndexError
+ # If the index is a singleton, the bounds check is done
+ # before the broadcasting. This used to be different in <1.9
+ elif indx.ndim == 0 and not (
+ -arr.shape[ax] <= indx < arr.shape[ax]
+ ):
+ raise IndexError
+ if indx.ndim == 0:
+ # The index is a scalar. This used to be two fold, but if
+ # fancy indexing was active, the check was done later,
+ # possibly after broadcasting it away (1.7. or earlier).
+ # Now it is always done.
+ if indx >= arr.shape[ax] or indx < - arr.shape[ax]:
+ raise IndexError
+ if (len(indices) > 0 and
+ indices[-1][0] == 'f' and
+ ax != ellipsis_pos):
+ # NOTE: There could still have been a 0-sized Ellipsis
+ # between them. Checked that with ellipsis_pos.
+ indices[-1].append(indx)
+ else:
+ # We have a fancy index that is not after an existing one.
+ # NOTE: A 0-d array triggers this as well, while one may
+ # expect it to not trigger it, since a scalar would not be
+ # considered fancy indexing.
+ num_fancy += 1
+ indices.append(['f', indx])
+
+ if num_fancy > 1 and not no_copy:
+ # We have to flush the fancy indexes left
+ new_indices = indices[:]
+ axes = list(range(arr.ndim))
+ fancy_axes = []
+ new_indices.insert(0, ['f'])
+ ni = 0
+ ai = 0
+ for indx in indices:
+ ni += 1
+ if indx[0] == 'f':
+ new_indices[0].extend(indx[1:])
+ del new_indices[ni]
+ ni -= 1
+ for ax in range(ai, ai + len(indx[1:])):
+ fancy_axes.append(ax)
+ axes.remove(ax)
+ ai += len(indx) - 1 # axis we are at
+ indices = new_indices
+ # and now we need to transpose arr:
+ arr = arr.transpose(*(fancy_axes + axes))
+
+ # We only have one 'f' index now and arr is transposed accordingly.
+ # Now handle newaxis by reshaping...
+ ax = 0
+ for indx in indices:
+ if indx[0] == 'f':
+ if len(indx) == 1:
+ continue
+ # First of all, reshape arr to combine fancy axes into one:
+ orig_shape = arr.shape
+ orig_slice = orig_shape[ax:ax + len(indx[1:])]
+ arr = arr.reshape(arr.shape[:ax]
+ + (np.prod(orig_slice).astype(int),)
+ + arr.shape[ax + len(indx[1:]):])
+
+ # Check if broadcasting works
+ res = np.broadcast(*indx[1:])
+ # unfortunately the indices might be out of bounds. So check
+ # that first, and use mode='wrap' then. However only if
+ # there are any indices...
+ if res.size != 0:
+ if error_unless_broadcast_to_empty:
+ raise IndexError
+ for _indx, _size in zip(indx[1:], orig_slice):
+ if _indx.size == 0:
+ continue
+ if np.any(_indx >= _size) or np.any(_indx < -_size):
+ raise IndexError
+ if len(indx[1:]) == len(orig_slice):
+ if np.prod(orig_slice) == 0:
+ # Work around for a crash or IndexError with 'wrap'
+ # in some 0-sized cases.
+ try:
+ mi = np.ravel_multi_index(indx[1:], orig_slice,
+ mode='raise')
+ except Exception:
+ # This happens with 0-sized orig_slice (sometimes?)
+ # here it is a ValueError, but indexing gives a:
+ raise IndexError('invalid index into 0-sized')
+ else:
+ mi = np.ravel_multi_index(indx[1:], orig_slice,
+ mode='wrap')
+ else:
+ # Maybe never happens...
+ raise ValueError
+ arr = arr.take(mi.ravel(), axis=ax)
+ try:
+ arr = arr.reshape(arr.shape[:ax]
+ + mi.shape
+ + arr.shape[ax + 1:])
+ except ValueError:
+ # too many dimensions, probably
+ raise IndexError
+ ax += mi.ndim
+ continue
+
+ # If we are here, we have a 1D array for take:
+ arr = arr.take(indx[1], axis=ax)
+ ax += 1
+
+ return arr, no_copy
+
+ def _check_multi_index(self, arr, index):
+ """Check a multi index item getting and simple setting.
+
+ Parameters
+ ----------
+ arr : ndarray
+ Array to be indexed, must be a reshaped arange.
+ index : tuple of indexing objects
+ Index being tested.
+ """
+ # Test item getting
+ try:
+ mimic_get, no_copy = self._get_multi_index(arr, index)
+ except Exception as e:
+ if HAS_REFCOUNT:
+ prev_refcount = sys.getrefcount(arr)
+ assert_raises(type(e), arr.__getitem__, index)
+ assert_raises(type(e), arr.__setitem__, index, 0)
+ if HAS_REFCOUNT:
+ assert_equal(prev_refcount, sys.getrefcount(arr))
+ return
+
+ self._compare_index_result(arr, index, mimic_get, no_copy)
+
+ def _check_single_index(self, arr, index):
+ """Check a single index item getting and simple setting.
+
+ Parameters
+ ----------
+ arr : ndarray
+ Array to be indexed, must be an arange.
+ index : indexing object
+ Index being tested. Must be a single index and not a tuple
+ of indexing objects (see also `_check_multi_index`).
+ """
+ try:
+ mimic_get, no_copy = self._get_multi_index(arr, (index,))
+ except Exception as e:
+ if HAS_REFCOUNT:
+ prev_refcount = sys.getrefcount(arr)
+ assert_raises(type(e), arr.__getitem__, index)
+ assert_raises(type(e), arr.__setitem__, index, 0)
+ if HAS_REFCOUNT:
+ assert_equal(prev_refcount, sys.getrefcount(arr))
+ return
+
+ self._compare_index_result(arr, index, mimic_get, no_copy)
+
+ def _compare_index_result(self, arr, index, mimic_get, no_copy):
+ """Compare mimicked result to indexing result.
+ """
+ arr = arr.copy()
+ if HAS_REFCOUNT:
+ startcount = sys.getrefcount(arr)
+ indexed_arr = arr[index]
+ assert_array_equal(indexed_arr, mimic_get)
+ # Check if we got a view, unless its a 0-sized or 0-d array.
+ # (then its not a view, and that does not matter)
+ if indexed_arr.size != 0 and indexed_arr.ndim != 0:
+ assert_(np.may_share_memory(indexed_arr, arr) == no_copy)
+ # Check reference count of the original array
+ if HAS_REFCOUNT:
+ if no_copy:
+ # refcount increases by one:
+ assert_equal(sys.getrefcount(arr), startcount + 1)
+ else:
+ assert_equal(sys.getrefcount(arr), startcount)
+
+ # Test non-broadcast setitem:
+ b = arr.copy()
+ b[index] = mimic_get + 1000
+ if b.size == 0:
+ return # nothing to compare here...
+ if no_copy and indexed_arr.ndim != 0:
+ # change indexed_arr in-place to manipulate original:
+ indexed_arr += 1000
+ assert_array_equal(arr, b)
+ return
+ # Use the fact that the array is originally an arange:
+ arr.flat[indexed_arr.ravel()] += 1000
+ assert_array_equal(arr, b)
+
+ def test_boolean(self):
+ a = np.array(5)
+ assert_equal(a[np.array(True)], 5)
+ a[np.array(True)] = 1
+ assert_equal(a, 1)
+ # NOTE: This is different from normal broadcasting, as
+ # arr[boolean_array] works like in a multi index. Which means
+ # it is aligned to the left. This is probably correct for
+ # consistency with arr[boolean_array,] also no broadcasting
+ # is done at all
+ a = self._create_array()
+ self._check_multi_index(
+ a, (np.zeros_like(a, dtype=bool),))
+ self._check_multi_index(
+ a, (np.zeros_like(a, dtype=bool)[..., 0],))
+ self._check_multi_index(
+ a, (np.zeros_like(a, dtype=bool)[None, ...],))
+
+ def test_multidim(self):
+ # Automatically test combinations with complex indexes on 2nd (or 1st)
+ # spot and the simple ones in one other spot.
+ a = self._create_array()
+ b = np.empty((3, 0, 5, 6))
+ complex_indices = self._create_complex_indices()
+ simple_indices = [Ellipsis, None, -1, [1], np.array([True]), 'skip']
+ fill_indices = [slice(None, None), 0]
+
+ with warnings.catch_warnings():
+ # This is so that np.array(True) is not accepted in a full integer
+ # index, when running the file separately.
+ warnings.filterwarnings('error', '', DeprecationWarning)
+ warnings.filterwarnings('error', '', VisibleDeprecationWarning)
+
+ def isskip(idx):
+ return isinstance(idx, str) and idx == "skip"
+
+ for simple_pos in [0, 2, 3]:
+ tocheck = [fill_indices, complex_indices,
+ fill_indices, fill_indices]
+ tocheck[simple_pos] = simple_indices
+ for index in product(*tocheck):
+ index = tuple(i for i in index if not isskip(i))
+ self._check_multi_index(a, index)
+ self._check_multi_index(b, index)
+
+ # Check very simple item getting:
+ self._check_multi_index(a, (0, 0, 0, 0))
+ self._check_multi_index(b, (0, 0, 0, 0))
+ # Also check (simple cases of) too many indices:
+ assert_raises(IndexError, a.__getitem__, (0, 0, 0, 0, 0))
+ assert_raises(IndexError, a.__setitem__, (0, 0, 0, 0, 0), 0)
+ assert_raises(IndexError, a.__getitem__, (0, 0, [1], 0, 0))
+ assert_raises(IndexError, a.__setitem__, (0, 0, [1], 0, 0), 0)
+
+ def test_1d(self):
+ a = np.arange(10)
+ complex_indices = self._create_complex_indices()
+ for index in complex_indices:
+ self._check_single_index(a, index)
+
+
+class TestFloatNonIntegerArgument:
+ """
+ These test that ``TypeError`` is raised when you try to use
+ non-integers as arguments to for indexing and slicing e.g. ``a[0.0:5]``
+ and ``a[0.5]``, or other functions like ``array.reshape(1., -1)``.
+
+ """
+ def test_valid_indexing(self):
+ # These should raise no errors.
+ a = np.array([[[5]]])
+
+ a[np.array([0])]
+ a[[0, 0]]
+ a[:, [0, 0]]
+ a[:, 0, :]
+ a[:, :, :]
+
+ def test_valid_slicing(self):
+ # These should raise no errors.
+ a = np.array([[[5]]])
+
+ a[::]
+ a[0:]
+ a[:2]
+ a[0:2]
+ a[::2]
+ a[1::2]
+ a[:2:2]
+ a[1:2:2]
+
+ def test_non_integer_argument_errors(self):
+ a = np.array([[5]])
+
+ assert_raises(TypeError, np.reshape, a, (1., 1., -1))
+ assert_raises(TypeError, np.reshape, a, (np.array(1.), -1))
+ assert_raises(TypeError, np.take, a, [0], 1.)
+ assert_raises(TypeError, np.take, a, [0], np.float64(1.))
+
+ def test_non_integer_sequence_multiplication(self):
+ # NumPy scalar sequence multiply should not work with non-integers
+ def mult(a, b):
+ return a * b
+
+ assert_raises(TypeError, mult, [1], np.float64(3))
+ # following should be OK
+ mult([1], np.int_(3))
+
+ def test_reduce_axis_float_index(self):
+ d = np.zeros((3, 3, 3))
+ assert_raises(TypeError, np.min, d, 0.5)
+ assert_raises(TypeError, np.min, d, (0.5, 1))
+ assert_raises(TypeError, np.min, d, (1, 2.2))
+ assert_raises(TypeError, np.min, d, (.2, 1.2))
+
+
+class TestBooleanIndexing:
+ # Using a boolean as integer argument/indexing is an error.
+ def test_bool_as_int_argument_errors(self):
+ a = np.array([[[1]]])
+
+ assert_raises(TypeError, np.reshape, a, (True, -1))
+ assert_raises(TypeError, np.reshape, a, (np.bool(True), -1))
+ # Note that operator.index(np.array(True)) does not work, a boolean
+ # array is thus also deprecated, but not with the same message:
+ assert_raises(TypeError, operator.index, np.array(True))
+ assert_raises(TypeError, operator.index, np.True_)
+ assert_raises(TypeError, np.take, args=(a, [0], False))
+
+ def test_boolean_indexing_weirdness(self):
+ # Weird boolean indexing things
+ a = np.ones((2, 3, 4))
+ assert a[False, True, ...].shape == (0, 2, 3, 4)
+ assert a[True, [0, 1], True, True, [1], [[2]]].shape == (1, 2)
+ assert_raises(IndexError, lambda: a[False, [0, 1], ...])
+
+ def test_boolean_indexing_fast_path(self):
+ # These used to either give the wrong error, or incorrectly give no
+ # error.
+ a = np.ones((3, 3))
+
+ # This used to incorrectly work (and give an array of shape (0,))
+ idx1 = np.array([[False] * 9])
+ assert_raises_regex(IndexError,
+ "boolean index did not match indexed array along axis 0; "
+ "size of axis is 3 but size of corresponding boolean axis is 1",
+ lambda: a[idx1])
+
+ # This used to incorrectly give a ValueError: operands could not be
+ # broadcast together
+ idx2 = np.array([[False] * 8 + [True]])
+ assert_raises_regex(IndexError,
+ "boolean index did not match indexed array along axis 0; "
+ "size of axis is 3 but size of corresponding boolean axis is 1",
+ lambda: a[idx2])
+
+ # This is the same as it used to be. The above two should work like this.
+ idx3 = np.array([[False] * 10])
+ assert_raises_regex(IndexError,
+ "boolean index did not match indexed array along axis 0; "
+ "size of axis is 3 but size of corresponding boolean axis is 1",
+ lambda: a[idx3])
+
+ # This used to give ValueError: non-broadcastable operand
+ a = np.ones((1, 1, 2))
+ idx = np.array([[[True], [False]]])
+ assert_raises_regex(IndexError,
+ "boolean index did not match indexed array along axis 1; "
+ "size of axis is 1 but size of corresponding boolean axis is 2",
+ lambda: a[idx])
+
+
+class TestArrayToIndexDeprecation:
+ """Creating an index from array not 0-D is an error.
+
+ """
+ def test_array_to_index_error(self):
+ # so no exception is expected. The raising is effectively tested above.
+ a = np.array([[[1]]])
+
+ assert_raises(TypeError, operator.index, np.array([1]))
+ assert_raises(TypeError, np.reshape, a, (a, -1))
+ assert_raises(TypeError, np.take, a, [0], a)
+
+
+class TestNonIntegerArrayLike:
+ """Tests that array_likes only valid if can safely cast to integer.
+
+ For instance, lists give IndexError when they cannot be safely cast to
+ an integer.
+
+ """
+ def test_basic(self):
+ a = np.arange(10)
+
+ assert_raises(IndexError, a.__getitem__, [0.5, 1.5])
+ assert_raises(IndexError, a.__getitem__, (['1', '2'],))
+
+ # The following is valid
+ a.__getitem__([])
+
+
+class TestMultipleEllipsisError:
+ """An index can only have a single ellipsis.
+
+ """
+ def test_basic(self):
+ a = np.arange(10)
+ assert_raises(IndexError, lambda: a[..., ...])
+ assert_raises(IndexError, a.__getitem__, ((Ellipsis,) * 2,))
+ assert_raises(IndexError, a.__getitem__, ((Ellipsis,) * 3,))
+
+
+class TestCApiAccess:
+ def test_getitem(self):
+ subscript = functools.partial(array_indexing, 0)
+
+ # 0-d arrays don't work:
+ assert_raises(IndexError, subscript, np.ones(()), 0)
+ # Out of bound values:
+ assert_raises(IndexError, subscript, np.ones(10), 11)
+ assert_raises(IndexError, subscript, np.ones(10), -11)
+ assert_raises(IndexError, subscript, np.ones((10, 10)), 11)
+ assert_raises(IndexError, subscript, np.ones((10, 10)), -11)
+
+ a = np.arange(10)
+ assert_array_equal(a[4], subscript(a, 4))
+ a = a.reshape(5, 2)
+ assert_array_equal(a[-4], subscript(a, -4))
+
+ def test_setitem(self):
+ assign = functools.partial(array_indexing, 1)
+
+ # Deletion is impossible:
+ assert_raises(ValueError, assign, np.ones(10), 0)
+ # 0-d arrays don't work:
+ assert_raises(IndexError, assign, np.ones(()), 0, 0)
+ # Out of bound values:
+ assert_raises(IndexError, assign, np.ones(10), 11, 0)
+ assert_raises(IndexError, assign, np.ones(10), -11, 0)
+ assert_raises(IndexError, assign, np.ones((10, 10)), 11, 0)
+ assert_raises(IndexError, assign, np.ones((10, 10)), -11, 0)
+
+ a = np.arange(10)
+ assign(a, 4, 10)
+ assert_(a[4] == 10)
+
+ a = a.reshape(5, 2)
+ assign(a, 4, 10)
+ assert_array_equal(a[-1], [10, 10])
+
+
+class TestFlatiterIndexing:
+ def test_flatiter_indexing_single_integer(self):
+ a = np.arange(9).reshape((3, 3))
+ assert_array_equal(a.flat[0], 0)
+ assert_array_equal(a.flat[4], 4)
+ assert_array_equal(a.flat[-1], 8)
+
+ with pytest.raises(IndexError, match="index 9 is out of bounds"):
+ a.flat[9]
+
+ def test_flatiter_indexing_slice(self):
+ a = np.arange(9).reshape((3, 3))
+ assert_array_equal(a.flat[:], np.arange(9))
+ assert_array_equal(a.flat[:5], np.arange(5))
+ assert_array_equal(a.flat[5:10], np.arange(5, 9))
+ assert_array_equal(a.flat[::2], np.arange(0, 9, 2))
+ assert_array_equal(a.flat[::-1], np.arange(8, -1, -1))
+ assert_array_equal(a.flat[10:5], np.array([]))
+
+ assert_array_equal(a.flat[()], np.arange(9))
+ assert_array_equal(a.flat[...], np.arange(9))
+
+ def test_flatiter_indexing_boolean(self):
+ a = np.arange(9).reshape((3, 3))
+
+ with pytest.warns(DeprecationWarning, match="0-dimensional boolean index"):
+ assert_array_equal(a.flat[True], 0)
+ with pytest.warns(DeprecationWarning, match="0-dimensional boolean index"):
+ assert_array_equal(a.flat[False], np.array([]))
+
+ mask = np.zeros(len(a.flat), dtype=bool)
+ mask[::2] = True
+ assert_array_equal(a.flat[mask], np.arange(0, 9, 2))
+
+ wrong_mask = np.zeros(len(a.flat) + 1, dtype=bool)
+ with pytest.raises(IndexError,
+ match="boolean index did not match indexed flat iterator"):
+ a.flat[wrong_mask]
+
+ def test_flatiter_indexing_fancy(self):
+ a = np.arange(9).reshape((3, 3))
+
+ indices = np.array([1, 3, 5])
+ assert_array_equal(a.flat[indices], indices)
+
+ assert_array_equal(a.flat[[-1, -2]], np.array([8, 7]))
+
+ indices_2d = np.array([[1, 2], [3, 4]])
+ assert_array_equal(a.flat[indices_2d], indices_2d)
+
+ assert_array_equal(a.flat[[True, 1]], np.array([1, 1]))
+
+ assert_array_equal(a.flat[[]], np.array([], dtype=a.dtype))
+
+ with pytest.raises(IndexError,
+ match="boolean indices for iterators are not supported"):
+ a.flat[[True, True]]
+
+ a = np.arange(3)
+ with pytest.raises(IndexError,
+ match="boolean indices for iterators are not supported"):
+ a.flat[[True, False, True]]
+ assert_array_equal(a.flat[np.asarray([True, False, True])], np.array([0, 2]))
+
+ def test_flatiter_indexing_not_supported_newaxis_mutlidimensional_float(self):
+ a = np.arange(9).reshape((3, 3))
+ with pytest.raises(IndexError,
+ match=r"only integers, slices \(`:`\), "
+ r"ellipsis \(`\.\.\.`\) and "
+ r"integer or boolean arrays are valid indices"):
+ a.flat[None]
+
+ with pytest.raises(IndexError,
+ match=r"too many indices for flat iterator: flat iterator "
+ r"is 1-dimensional, but 2 were indexed"):
+ a.flat[1, 2]
+
+ with pytest.warns(DeprecationWarning,
+ match="Invalid non-array indices for iterator objects are "
+ "deprecated"):
+ assert_array_equal(a.flat[[1.0, 2.0]], np.array([1, 2]))
+
+ def test_flatiter_assign_single_integer(self):
+ a = np.arange(9).reshape((3, 3))
+
+ a.flat[0] = 10
+ assert_array_equal(a, np.array([[10, 1, 2], [3, 4, 5], [6, 7, 8]]))
+
+ a.flat[4] = 20
+ assert_array_equal(a, np.array([[10, 1, 2], [3, 20, 5], [6, 7, 8]]))
+
+ a.flat[-1] = 30
+ assert_array_equal(a, np.array([[10, 1, 2], [3, 20, 5], [6, 7, 30]]))
+
+ with pytest.raises(IndexError, match="index 9 is out of bounds"):
+ a.flat[9] = 40
+
+ def test_flatiter_indexing_slice_assign(self):
+ a = np.arange(9).reshape((3, 3))
+ a.flat[:] = 10
+ assert_array_equal(a, np.full((3, 3), 10))
+
+ a = np.arange(9).reshape((3, 3))
+ a.flat[:5] = 20
+ assert_array_equal(a, np.array([[20, 20, 20], [20, 20, 5], [6, 7, 8]]))
+
+ a = np.arange(9).reshape((3, 3))
+ a.flat[5:10] = 30
+ assert_array_equal(a, np.array([[0, 1, 2], [3, 4, 30], [30, 30, 30]]))
+
+ a = np.arange(9).reshape((3, 3))
+ a.flat[::2] = 40
+ assert_array_equal(a, np.array([[40, 1, 40], [3, 40, 5], [40, 7, 40]]))
+
+ a = np.arange(9).reshape((3, 3))
+ a.flat[::-1] = 50
+ assert_array_equal(a, np.full((3, 3), 50))
+
+ a = np.arange(9).reshape((3, 3))
+ a.flat[10:5] = 60
+ assert_array_equal(a, np.arange(9).reshape((3, 3)))
+
+ a = np.arange(9).reshape((3, 3))
+ with pytest.raises(IndexError,
+ match="Assigning to a flat iterator with a 0-D index"):
+ a.flat[()] = 70
+
+ a = np.arange(9).reshape((3, 3))
+ a.flat[...] = 80
+ assert_array_equal(a, np.full((3, 3), 80))
+
+ def test_flatiter_indexing_boolean_assign(self):
+ a = np.arange(9).reshape((3, 3))
+ with pytest.warns(DeprecationWarning, match="0-dimensional boolean index"):
+ a.flat[True] = 10
+ assert_array_equal(a, np.array([[10, 1, 2], [3, 4, 5], [6, 7, 8]]))
+
+ a = np.arange(9).reshape((3, 3))
+ with pytest.warns(DeprecationWarning, match="0-dimensional boolean index"):
+ a.flat[False] = 20
+ assert_array_equal(a, np.arange(9).reshape((3, 3)))
+
+ a = np.arange(9).reshape((3, 3))
+ mask = np.zeros(len(a.flat), dtype=bool)
+ mask[::2] = True
+ a.flat[mask] = 30
+ assert_array_equal(a, np.array([[30, 1, 30], [3, 30, 5], [30, 7, 30]]))
+
+ wrong_mask = np.zeros(len(a.flat) + 1, dtype=bool)
+ with pytest.raises(IndexError,
+ match="boolean index did not match indexed flat iterator"):
+ a.flat[wrong_mask] = 40
+
+ def test_flatiter_indexing_fancy_assign(self):
+ a = np.arange(9).reshape((3, 3))
+ indices = np.array([1, 3, 5])
+ a.flat[indices] = 10
+ assert_array_equal(a, np.array([[0, 10, 2], [10, 4, 10], [6, 7, 8]]))
+
+ a.flat[[-1, -2]] = 20
+ assert_array_equal(a, np.array([[0, 10, 2], [10, 4, 10], [6, 20, 20]]))
+
+ a = np.arange(9).reshape((3, 3))
+ indices_2d = np.array([[1, 2], [3, 4]])
+ a.flat[indices_2d] = 30
+ assert_array_equal(a, np.array([[0, 30, 30], [30, 30, 5], [6, 7, 8]]))
+
+ a.flat[[True, 1]] = 40
+ assert_array_equal(a, np.array([[0, 40, 30], [30, 30, 5], [6, 7, 8]]))
+
+ with pytest.raises(IndexError,
+ match="boolean indices for iterators are not supported"):
+ a.flat[[True, True]] = 50
+
+ a = np.arange(3)
+ with pytest.raises(IndexError,
+ match="boolean indices for iterators are not supported"):
+ a.flat[[True, False, True]] = 20
+ a.flat[np.asarray([True, False, True])] = 20
+ assert_array_equal(a, np.array([20, 1, 20]))
+
+ def test_flatiter_indexing_fancy_int16_dtype(self):
+ a = np.arange(9).reshape((3, 3))
+ indices = np.array([1, 3, 5], dtype=np.int16)
+ assert_array_equal(a.flat[indices], np.array([1, 3, 5]))
+
+ a.flat[indices] = 10
+ assert_array_equal(a, np.array([[0, 10, 2], [10, 4, 10], [6, 7, 8]]))
+
+ def test_flatiter_indexing_not_supported_newaxis_mutlid_float_assign(self):
+ a = np.arange(9).reshape((3, 3))
+ with pytest.raises(IndexError,
+ match=r"only integers, slices \(`:`\), "
+ r"ellipsis \(`\.\.\.`\) and "
+ r"integer or boolean arrays are valid indices"):
+ a.flat[None] = 10
+
+ a.flat[[1, 2]] = 10
+ assert_array_equal(a, np.array([[0, 10, 10], [3, 4, 5], [6, 7, 8]]))
+
+ with pytest.warns(DeprecationWarning,
+ match="Invalid non-array indices for iterator objects are "
+ "deprecated"):
+ a.flat[[1.0, 2.0]] = 20
+ assert_array_equal(a, np.array([[0, 20, 20], [3, 4, 5], [6, 7, 8]]))
+
+ def test_flat_index_on_flatiter(self):
+ a = np.arange(9).reshape((3, 3))
+ b = np.array([0, 5, 6])
+ assert_equal(a.flat[b.flat], np.array([0, 5, 6]))
+
+ def test_empty_string_flat_index_on_flatiter(self):
+ a = np.arange(9).reshape((3, 3))
+ b = np.array([], dtype="S")
+ # This is arguably incorrect, and should be removed (ideally with
+ # deprecation). But it matches the array path and comes from not
+ # distinguishing `arr[np.array([]).flat]` and `arr[[]]` and the latter
+ # must pass.
+ assert_equal(a.flat[b.flat], np.array([]))
+
+ def test_nonempty_string_flat_index_on_flatiter(self):
+ a = np.arange(9).reshape((3, 3))
+ b = np.array(["a"], dtype="S")
+ with pytest.raises(IndexError,
+ match=r"only integers, slices \(`:`\), ellipsis \(`\.\.\.`\) "
+ r"and integer or boolean arrays are valid indices"):
+ a.flat[b.flat]
+
+
+@pytest.mark.skipif(sys.flags.optimize == 2, reason="Python running -OO")
+@pytest.mark.xfail(IS_PYPY, reason="PyPy does not modify tp_doc")
+@pytest.mark.parametrize("methodname", ["__array__", "copy"])
+def test_flatiter_method_signatures(methodname: str):
+ method = getattr(np.flatiter, methodname)
+ assert callable(method)
+
+ try:
+ sig = inspect.signature(method)
+ except ValueError as e:
+ pytest.fail(f"Could not get signature for np.flatiter.{methodname}: {e}")
+
+ assert "self" in sig.parameters
+ assert sig.parameters["self"].kind is inspect.Parameter.POSITIONAL_ONLY
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/test_item_selection.py b/python/user_packages/Python313/site-packages/numpy/_core/tests/test_item_selection.py
new file mode 100644
index 0000000000000000000000000000000000000000..3dfc814f34686f2bed3ae6b9428680a089a0d81c
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/tests/test_item_selection.py
@@ -0,0 +1,167 @@
+import sys
+
+import pytest
+
+import numpy as np
+from numpy.testing import HAS_REFCOUNT, assert_, assert_array_equal, assert_raises
+
+
+class TestTake:
+ def test_simple(self):
+ a = [[1, 2], [3, 4]]
+ a_str = [[b'1', b'2'], [b'3', b'4']]
+ modes = ['raise', 'wrap', 'clip']
+ indices = [-1, 4]
+ index_arrays = [np.empty(0, dtype=np.intp),
+ np.empty((), dtype=np.intp),
+ np.empty((1, 1), dtype=np.intp)]
+ real_indices = {'raise': {-1: 1, 4: IndexError},
+ 'wrap': {-1: 1, 4: 0},
+ 'clip': {-1: 0, 4: 1}}
+ # Currently all types but object, use the same function generation.
+ # So it should not be necessary to test all. However test also a non
+ # refcounted struct on top of object, which has a size that hits the
+ # default (non-specialized) path.
+ types = int, object, np.dtype([('', 'i2', 3)])
+ for t in types:
+ # ta works, even if the array may be odd if buffer interface is used
+ ta = np.array(a if np.issubdtype(t, np.number) else a_str, dtype=t)
+ tresult = list(ta.T.copy())
+ for index_array in index_arrays:
+ if index_array.size != 0:
+ tresult[0].shape = (2,) + index_array.shape
+ tresult[1].shape = (2,) + index_array.shape
+ for mode in modes:
+ for index in indices:
+ real_index = real_indices[mode][index]
+ if real_index is IndexError and index_array.size != 0:
+ index_array.put(0, index)
+ assert_raises(IndexError, ta.take, index_array,
+ mode=mode, axis=1)
+ elif index_array.size != 0:
+ index_array.put(0, index)
+ res = ta.take(index_array, mode=mode, axis=1)
+ assert_array_equal(res, tresult[real_index])
+ else:
+ res = ta.take(index_array, mode=mode, axis=1)
+ assert_(res.shape == (2,) + index_array.shape)
+
+ def test_refcounting(self):
+ objects = [object() for i in range(10)]
+ if HAS_REFCOUNT:
+ orig_rcs = [sys.getrefcount(o) for o in objects]
+ for mode in ('raise', 'clip', 'wrap'):
+ a = np.array(objects)
+ b = np.array([2, 2, 4, 5, 3, 5])
+ a.take(b, out=a[:6], mode=mode)
+ del a
+ if HAS_REFCOUNT:
+ assert_(all(sys.getrefcount(o) == rc + 1
+ for o, rc in zip(objects, orig_rcs)))
+ # not contiguous, example:
+ a = np.array(objects * 2)[::2]
+ a.take(b, out=a[:6], mode=mode)
+ del a
+ if HAS_REFCOUNT:
+ assert_(all(sys.getrefcount(o) == rc + 1
+ for o, rc in zip(objects, orig_rcs)))
+
+ def test_unicode_mode(self):
+ d = np.arange(10)
+ k = b'\xc3\xa4'.decode("UTF8")
+ assert_raises(ValueError, d.take, 5, mode=k)
+
+ def test_empty_partition(self):
+ # In reference to github issue #6530
+ a_original = np.array([0, 2, 4, 6, 8, 10])
+ a = a_original.copy()
+
+ # An empty partition should be a successful no-op
+ a.partition(np.array([], dtype=np.int16))
+
+ assert_array_equal(a, a_original)
+
+ def test_empty_argpartition(self):
+ # In reference to github issue #6530
+ a = np.array([0, 2, 4, 6, 8, 10])
+ a = a.argpartition(np.array([], dtype=np.int16))
+
+ b = np.array([0, 1, 2, 3, 4, 5])
+ assert_array_equal(a, b)
+
+
+class TestPutMask:
+ @pytest.mark.parametrize("dtype", list(np.typecodes["All"]) + ["i,O"])
+ def test_simple(self, dtype):
+ if dtype.lower() == "m":
+ dtype += "8[ns]"
+
+ # putmask is weird and doesn't care about value length (even shorter)
+ vals = np.arange(1001).astype(dtype=dtype)
+
+ mask = np.random.randint(2, size=1000).astype(bool)
+ # Use vals.dtype in case of flexible dtype (i.e. string)
+ arr = np.zeros(1000, dtype=vals.dtype)
+ zeros = arr.copy()
+
+ np.putmask(arr, mask, vals)
+ assert_array_equal(arr[mask], vals[:len(mask)][mask])
+ assert_array_equal(arr[~mask], zeros[~mask])
+
+ @pytest.mark.parametrize("dtype", list(np.typecodes["All"])[1:] + ["i,O"])
+ @pytest.mark.parametrize("mode", ["raise", "wrap", "clip"])
+ def test_empty(self, dtype, mode):
+ arr = np.zeros(1000, dtype=dtype)
+ arr_copy = arr.copy()
+ mask = np.random.randint(2, size=1000).astype(bool)
+
+ # Allowing empty values like this is weird...
+ np.put(arr, mask, [])
+ assert_array_equal(arr, arr_copy)
+
+
+class TestPut:
+ @pytest.mark.parametrize("dtype", list(np.typecodes["All"])[1:] + ["i,O"])
+ @pytest.mark.parametrize("mode", ["raise", "wrap", "clip"])
+ def test_simple(self, dtype, mode):
+ if dtype.lower() == "m":
+ dtype += "8[ns]"
+
+ # put is weird and doesn't care about value length (even shorter)
+ vals = np.arange(1001).astype(dtype=dtype)
+
+ # Use vals.dtype in case of flexible dtype (i.e. string)
+ arr = np.zeros(1000, dtype=vals.dtype)
+ zeros = arr.copy()
+
+ if mode == "clip":
+ # Special because 0 and -1 value are "reserved" for clip test
+ indx = np.random.permutation(len(arr) - 2)[:-500] + 1
+
+ indx[-1] = 0
+ indx[-2] = len(arr) - 1
+ indx_put = indx.copy()
+ indx_put[-1] = -1389
+ indx_put[-2] = 1321
+ else:
+ # Avoid duplicates (for simplicity) and fill half only
+ indx = np.random.permutation(len(arr) - 3)[:-500]
+ indx_put = indx
+ if mode == "wrap":
+ indx_put = indx_put + len(arr)
+
+ np.put(arr, indx_put, vals, mode=mode)
+ assert_array_equal(arr[indx], vals[:len(indx)])
+ untouched = np.ones(len(arr), dtype=bool)
+ untouched[indx] = False
+ assert_array_equal(arr[untouched], zeros[:untouched.sum()])
+
+ @pytest.mark.parametrize("dtype", list(np.typecodes["All"])[1:] + ["i,O"])
+ @pytest.mark.parametrize("mode", ["raise", "wrap", "clip"])
+ def test_empty(self, dtype, mode):
+ arr = np.zeros(1000, dtype=dtype)
+ arr_copy = arr.copy()
+
+ # Allowing empty values like this is weird...
+ np.put(arr, [1, 2, 3], [])
+ assert_array_equal(arr, arr_copy)
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/test_limited_api.py b/python/user_packages/Python313/site-packages/numpy/_core/tests/test_limited_api.py
new file mode 100644
index 0000000000000000000000000000000000000000..f088f4f4016b240385ff89945c78f4a33452abd1
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/tests/test_limited_api.py
@@ -0,0 +1,102 @@
+import os
+import subprocess
+import sys
+import sysconfig
+
+import pytest
+
+from numpy.testing import IS_EDITABLE, IS_PYPY, IS_WASM, NOGIL_BUILD
+
+# This import is copied from random.tests.test_extending
+try:
+ import cython
+ from Cython.Compiler.Version import version as cython_version
+except ImportError:
+ cython = None
+else:
+ from numpy._utils import _pep440
+
+ # Note: keep in sync with the one in pyproject.toml
+ required_version = "3.0.6"
+ if _pep440.parse(cython_version) < _pep440.Version(required_version):
+ # too old or wrong cython, skip the test
+ cython = None
+
+pytestmark = pytest.mark.skipif(cython is None, reason="requires cython")
+
+
+if IS_EDITABLE:
+ pytest.skip(
+ "Editable install doesn't support tests with a compile step",
+ allow_module_level=True
+ )
+
+
+@pytest.fixture(scope='module')
+def install_temp(tmpdir_factory):
+ # Based in part on test_cython from random.tests.test_extending
+ if IS_WASM:
+ pytest.skip("No subprocess")
+
+ srcdir = os.path.join(os.path.dirname(__file__), 'examples', 'limited_api')
+ build_dir = tmpdir_factory.mktemp("limited_api") / "build"
+ os.makedirs(build_dir, exist_ok=True)
+ # Ensure we use the correct Python interpreter even when `meson` is
+ # installed in a different Python environment (see gh-24956)
+ native_file = str(build_dir / 'interpreter-native-file.ini')
+ with open(native_file, 'w') as f:
+ f.write("[binaries]\n")
+ f.write(f"python = '{sys.executable}'\n")
+ f.write(f"python3 = '{sys.executable}'")
+
+ try:
+ subprocess.check_call(["meson", "--version"])
+ except FileNotFoundError:
+ pytest.skip("No usable 'meson' found")
+ if sysconfig.get_platform() == "win-arm64":
+ pytest.skip("Meson unable to find MSVC linker on win-arm64")
+ if sys.platform == "win32":
+ subprocess.check_call(["meson", "setup",
+ "--werror",
+ "--buildtype=release",
+ "--vsenv", "--native-file", native_file,
+ str(srcdir)],
+ cwd=build_dir,
+ )
+ else:
+ subprocess.check_call(["meson", "setup", "--werror",
+ "--native-file", native_file, str(srcdir)],
+ cwd=build_dir
+ )
+ try:
+ subprocess.check_call(
+ ["meson", "compile", "-vv"], cwd=build_dir)
+ except subprocess.CalledProcessError as p:
+ print(f"{p.stdout=}")
+ print(f"{p.stderr=}")
+ raise
+
+ sys.path.append(str(build_dir))
+
+
+@pytest.mark.skipif(IS_WASM, reason="Can't start subprocess")
+@pytest.mark.xfail(
+ sysconfig.get_config_var("Py_DEBUG"),
+ reason=(
+ "Py_LIMITED_API is incompatible with Py_DEBUG, Py_TRACE_REFS, "
+ "and Py_REF_DEBUG"
+ ),
+)
+@pytest.mark.xfail(
+ NOGIL_BUILD,
+ reason="Py_GIL_DISABLED builds do not currently support the limited API",
+)
+@pytest.mark.skipif(IS_PYPY, reason="no support for limited API in PyPy")
+def test_limited_api(install_temp):
+ """Test building a third-party C extension with the limited API
+ and building a cython extension with the limited API
+ """
+
+ import limited_api1 # Earliest (3.6) # noqa: F401
+ import limited_api2 # cython # noqa: F401
+ import limited_api_latest # Latest version (current Python) # noqa: F401
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/test_longdouble.py b/python/user_packages/Python313/site-packages/numpy/_core/tests/test_longdouble.py
new file mode 100644
index 0000000000000000000000000000000000000000..87eb75165952143f714c85973c1f4580c86245ea
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/tests/test_longdouble.py
@@ -0,0 +1,370 @@
+import platform
+import warnings
+
+import pytest
+
+import numpy as np
+from numpy._core.tests._locales import CommaDecimalPointLocale
+from numpy.testing import (
+ IS_MUSL,
+ assert_,
+ assert_array_equal,
+ assert_equal,
+ assert_raises,
+ temppath,
+)
+
+LD_INFO = np.finfo(np.longdouble)
+longdouble_longer_than_double = (LD_INFO.eps < np.finfo(np.double).eps)
+
+
+_o = 1 + LD_INFO.eps
+string_to_longdouble_inaccurate = (_o != np.longdouble(str(_o)))
+del _o
+
+
+def test_scalar_extraction():
+ """Confirm that extracting a value doesn't convert to python float"""
+ o = 1 + LD_INFO.eps
+ a = np.array([o, o, o])
+ assert_equal(a[1], o)
+
+
+# Conversions string -> long double
+
+# 0.1 not exactly representable in base 2 floating point.
+repr_precision = len(repr(np.longdouble(0.1)))
+# +2 from macro block starting around line 842 in scalartypes.c.src.
+
+
+@pytest.mark.skipif(IS_MUSL,
+ reason="test flaky on musllinux")
+@pytest.mark.skipif(LD_INFO.precision + 2 >= repr_precision,
+ reason="repr precision not enough to show eps")
+def test_str_roundtrip():
+ # We will only see eps in repr if within printing precision.
+ o = 1 + LD_INFO.eps
+ assert_equal(np.longdouble(str(o)), o, f"str was {str(o)}")
+
+
+@pytest.mark.skipif(string_to_longdouble_inaccurate, reason="Need strtold_l")
+def test_str_roundtrip_bytes():
+ o = 1 + LD_INFO.eps
+ assert_equal(np.longdouble(str(o).encode("ascii")), o)
+
+
+@pytest.mark.skipif(string_to_longdouble_inaccurate, reason="Need strtold_l")
+@pytest.mark.parametrize("strtype", (np.str_, np.bytes_, str, bytes))
+def test_array_and_stringlike_roundtrip(strtype):
+ """
+ Test that string representations of long-double roundtrip both
+ for array casting and scalar coercion, see also gh-15608.
+ """
+ o = 1 + LD_INFO.eps
+
+ if strtype in (np.bytes_, bytes):
+ o_str = strtype(str(o).encode("ascii"))
+ else:
+ o_str = strtype(str(o))
+
+ # Test that `o` is correctly coerced from the string-like
+ assert o == np.longdouble(o_str)
+
+ # Test that arrays also roundtrip correctly:
+ o_strarr = np.asarray([o] * 3, dtype=strtype)
+ assert (o == o_strarr.astype(np.longdouble)).all()
+
+ # And array coercion and casting to string give the same as scalar repr:
+ assert (o_strarr == o_str).all()
+ assert (np.asarray([o] * 3).astype(strtype) == o_str).all()
+
+
+def test_bogus_string():
+ assert_raises(ValueError, np.longdouble, "spam")
+ assert_raises(ValueError, np.longdouble, "1.0 flub")
+
+
+@pytest.mark.skipif(string_to_longdouble_inaccurate, reason="Need strtold_l")
+def test_fromstring():
+ o = 1 + LD_INFO.eps
+ s = (" " + str(o)) * 5
+ a = np.array([o] * 5)
+ assert_equal(np.fromstring(s, sep=" ", dtype=np.longdouble), a,
+ err_msg=f"reading '{s}'")
+
+
+def test_fromstring_complex():
+ for ctype in ["complex", "cdouble"]:
+ # Check spacing between separator
+ assert_equal(np.fromstring("1, 2 , 3 ,4", sep=",", dtype=ctype),
+ np.array([1., 2., 3., 4.]))
+ # Real component not specified
+ assert_equal(np.fromstring("1j, -2j, 3j, 4e1j", sep=",", dtype=ctype),
+ np.array([1.j, -2.j, 3.j, 40.j]))
+ # Both components specified
+ assert_equal(np.fromstring("1+1j,2-2j, -3+3j, -4e1+4j", sep=",", dtype=ctype),
+ np.array([1. + 1.j, 2. - 2.j, - 3. + 3.j, - 40. + 4j]))
+ # Spaces at wrong places
+ with assert_raises(ValueError):
+ np.fromstring("1+2 j,3", dtype=ctype, sep=",")
+ with assert_raises(ValueError):
+ np.fromstring("1+ 2j,3", dtype=ctype, sep=",")
+ with assert_raises(ValueError):
+ np.fromstring("1 +2j,3", dtype=ctype, sep=",")
+ with assert_raises(ValueError):
+ np.fromstring("1+j", dtype=ctype, sep=",")
+ with assert_raises(ValueError):
+ np.fromstring("1+", dtype=ctype, sep=",")
+ with assert_raises(ValueError):
+ np.fromstring("1j+1", dtype=ctype, sep=",")
+
+
+def test_fromstring_bogus():
+ with assert_raises(ValueError):
+ np.fromstring("1. 2. 3. flop 4.", dtype=float, sep=" ")
+
+
+def test_fromstring_empty():
+ with assert_raises(ValueError):
+ np.fromstring("xxxxx", sep="x")
+
+
+def test_fromstring_missing():
+ with assert_raises(ValueError):
+ np.fromstring("1xx3x4x5x6", sep="x")
+
+
+class TestFileBased:
+
+ ldbl = 1 + LD_INFO.eps
+ tgt = np.array([ldbl] * 5)
+ out = ''.join([str(t) + '\n' for t in tgt])
+
+ def test_fromfile_bogus(self):
+ with temppath() as path:
+ with open(path, 'w') as f:
+ f.write("1. 2. 3. flop 4.\n")
+
+ with assert_raises(ValueError):
+ np.fromfile(path, dtype=float, sep=" ")
+
+ def test_fromfile_complex(self):
+ for ctype in ["complex", "cdouble"]:
+ # Check spacing between separator and only real component specified
+ with temppath() as path:
+ with open(path, 'w') as f:
+ f.write("1, 2 , 3 ,4\n")
+
+ res = np.fromfile(path, dtype=ctype, sep=",")
+ assert_equal(res, np.array([1., 2., 3., 4.]))
+
+ # Real component not specified
+ with temppath() as path:
+ with open(path, 'w') as f:
+ f.write("1j, -2j, 3j, 4e1j\n")
+
+ res = np.fromfile(path, dtype=ctype, sep=",")
+ assert_equal(res, np.array([1.j, -2.j, 3.j, 40.j]))
+
+ # Both components specified
+ with temppath() as path:
+ with open(path, 'w') as f:
+ f.write("1+1j,2-2j, -3+3j, -4e1+4j\n")
+
+ res = np.fromfile(path, dtype=ctype, sep=",")
+ assert_equal(res, np.array([1. + 1.j, 2. - 2.j, - 3. + 3.j, - 40. + 4j]))
+
+ # Spaces at wrong places
+ with temppath() as path:
+ with open(path, 'w') as f:
+ f.write("1+2 j,3\n")
+
+ with assert_raises(ValueError):
+ np.fromfile(path, dtype=ctype, sep=",")
+
+ # Spaces at wrong places
+ with temppath() as path:
+ with open(path, 'w') as f:
+ f.write("1+ 2j,3\n")
+
+ with assert_raises(ValueError):
+ np.fromfile(path, dtype=ctype, sep=",")
+
+ # Spaces at wrong places
+ with temppath() as path:
+ with open(path, 'w') as f:
+ f.write("1 +2j,3\n")
+
+ with assert_raises(ValueError):
+ np.fromfile(path, dtype=ctype, sep=",")
+
+ # Wrong sep
+ with temppath() as path:
+ with open(path, 'w') as f:
+ f.write("1+j\n")
+
+ with assert_raises(ValueError):
+ np.fromfile(path, dtype=ctype, sep=",")
+
+ # Wrong sep
+ with temppath() as path:
+ with open(path, 'w') as f:
+ f.write("1+\n")
+
+ with assert_raises(ValueError):
+ np.fromfile(path, dtype=ctype, sep=",")
+
+ # Wrong sep
+ with temppath() as path:
+ with open(path, 'w') as f:
+ f.write("1j+1\n")
+
+ with assert_raises(ValueError):
+ np.fromfile(path, dtype=ctype, sep=",")
+
+ @pytest.mark.skipif(string_to_longdouble_inaccurate,
+ reason="Need strtold_l")
+ def test_fromfile(self):
+ with temppath() as path:
+ with open(path, 'w') as f:
+ f.write(self.out)
+ res = np.fromfile(path, dtype=np.longdouble, sep="\n")
+ assert_equal(res, self.tgt)
+
+ @pytest.mark.skipif(string_to_longdouble_inaccurate,
+ reason="Need strtold_l")
+ def test_genfromtxt(self):
+ with temppath() as path:
+ with open(path, 'w') as f:
+ f.write(self.out)
+ res = np.genfromtxt(path, dtype=np.longdouble)
+ assert_equal(res, self.tgt)
+
+ @pytest.mark.skipif(string_to_longdouble_inaccurate,
+ reason="Need strtold_l")
+ def test_loadtxt(self):
+ with temppath() as path:
+ with open(path, 'w') as f:
+ f.write(self.out)
+ res = np.loadtxt(path, dtype=np.longdouble)
+ assert_equal(res, self.tgt)
+
+ @pytest.mark.skipif(string_to_longdouble_inaccurate,
+ reason="Need strtold_l")
+ def test_tofile_roundtrip(self):
+ with temppath() as path:
+ self.tgt.tofile(path, sep=" ")
+ res = np.fromfile(path, dtype=np.longdouble, sep=" ")
+ assert_equal(res, self.tgt)
+
+
+# Conversions long double -> string
+
+
+def test_str_exact():
+ o = 1 + LD_INFO.eps
+ assert_(str(o) != '1')
+
+
+@pytest.mark.skipif(longdouble_longer_than_double, reason="BUG #2376")
+@pytest.mark.skipif(string_to_longdouble_inaccurate,
+ reason="Need strtold_l")
+def test_format():
+ assert_(f"{1 + LD_INFO.eps:.40g}" != '1')
+
+
+@pytest.mark.skipif(longdouble_longer_than_double, reason="BUG #2376")
+@pytest.mark.skipif(string_to_longdouble_inaccurate,
+ reason="Need strtold_l")
+def test_percent():
+ o = 1 + LD_INFO.eps
+ assert_(f"{o:.40g}" != '1')
+
+
+@pytest.mark.skipif(longdouble_longer_than_double,
+ reason="array repr problem")
+@pytest.mark.skipif(string_to_longdouble_inaccurate,
+ reason="Need strtold_l")
+def test_array_repr():
+ o = 1 + LD_INFO.eps
+ a = np.array([o])
+ b = np.array([1], dtype=np.longdouble)
+ if not np.all(a != b):
+ raise ValueError("precision loss creating arrays")
+ with np.printoptions(precision=LD_INFO.precision + 1):
+ assert_(repr(a) != repr(b))
+
+#
+# Locale tests: scalar types formatting should be independent of the locale
+#
+
+class TestCommaDecimalPointLocale(CommaDecimalPointLocale):
+
+ def test_str_roundtrip_foreign(self):
+ o = 1.5
+ assert_equal(o, np.longdouble(str(o)))
+
+ def test_fromstring_foreign_repr(self):
+ f = 1.234
+ a = np.fromstring(repr(f), dtype=float, sep=" ")
+ assert_equal(a[0], f)
+
+ def test_fromstring_foreign(self):
+ s = "1.234"
+ a = np.fromstring(s, dtype=np.longdouble, sep=" ")
+ assert_equal(a[0], np.longdouble(s))
+
+ def test_fromstring_foreign_sep(self):
+ a = np.array([1, 2, 3, 4])
+ b = np.fromstring("1,2,3,4,", dtype=np.longdouble, sep=",")
+ assert_array_equal(a, b)
+
+ def test_fromstring_foreign_value(self):
+ with assert_raises(ValueError):
+ np.fromstring("1,234", dtype=np.longdouble, sep=" ")
+
+
+@pytest.mark.parametrize("int_val", [
+ # cases discussed in gh-10723
+ # and gh-9968
+ 2 ** 1024, 0])
+def test_longdouble_from_int(int_val):
+ # for issue gh-9968
+ str_val = str(int_val)
+ # we'll expect a RuntimeWarning on platforms
+ # with np.longdouble equivalent to np.double
+ # for large integer input
+ with warnings.catch_warnings(record=True) as w:
+ warnings.filterwarnings('always', '', RuntimeWarning)
+ # can be inf==inf on some platforms
+ assert np.longdouble(int_val) == np.longdouble(str_val)
+ # we can't directly compare the int and
+ # max longdouble value on all platforms
+ if np.allclose(np.finfo(np.longdouble).max,
+ np.finfo(np.double).max) and w:
+ assert w[0].category is RuntimeWarning
+
+@pytest.mark.parametrize("bool_val", [
+ True, False])
+def test_longdouble_from_bool(bool_val):
+ assert np.longdouble(bool_val) == np.longdouble(int(bool_val))
+
+
+@pytest.mark.skipif(
+ not (IS_MUSL and platform.machine() == "x86_64"),
+ reason="only need to run on musllinux_x86_64"
+)
+def test_musllinux_x86_64_signature():
+ # this test may fail if you're emulating musllinux_x86_64 on a different
+ # architecture, but should pass natively.
+ known_sigs = [b'\xcd\xcc\xcc\xcc\xcc\xcc\xcc\xcc\xfb\xbf']
+ sig = (np.longdouble(-1.0) / np.longdouble(10.0))
+ sig = sig.view(sig.dtype.newbyteorder('<')).tobytes()[:10]
+ assert sig in known_sigs
+
+
+def test_eps_positive():
+ # np.finfo('g').eps should be positive on all platforms. If this isn't true
+ # then something may have gone wrong with the MachArLike, e.g. if
+ # np._core.getlimits._discovered_machar didn't work properly
+ assert np.finfo(np.longdouble).eps > 0.
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/test_mem_overlap.py b/python/user_packages/Python313/site-packages/numpy/_core/tests/test_mem_overlap.py
new file mode 100644
index 0000000000000000000000000000000000000000..7d5c3e586f30f0c6930cd04fd21dbed98535b4d0
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/tests/test_mem_overlap.py
@@ -0,0 +1,933 @@
+import itertools
+
+import pytest
+
+import numpy as np
+from numpy._core import _umath_tests
+from numpy._core._multiarray_tests import internal_overlap, solve_diophantine
+from numpy.lib.stride_tricks import as_strided
+from numpy.testing import assert_, assert_array_equal, assert_equal, assert_raises
+
+ndims = 2
+size = 10
+shape = tuple([size] * ndims)
+
+MAY_SHARE_BOUNDS = 0
+MAY_SHARE_EXACT = -1
+
+
+def _indices_for_nelems(nelems):
+ """Returns slices of length nelems, from start onwards, in direction sign."""
+
+ if nelems == 0:
+ return [size // 2] # int index
+
+ res = []
+ for step in (1, 2):
+ for sign in (-1, 1):
+ start = size // 2 - nelems * step * sign // 2
+ stop = start + nelems * step * sign
+ res.append(slice(start, stop, step * sign))
+
+ return res
+
+
+def _indices_for_axis():
+ """Returns (src, dst) pairs of indices."""
+
+ res = []
+ for nelems in (0, 2, 3):
+ ind = _indices_for_nelems(nelems)
+ res.extend(itertools.product(ind, ind)) # all assignments of size "nelems"
+
+ return res
+
+
+def _indices(ndims):
+ """Returns ((axis0_src, axis0_dst), (axis1_src, axis1_dst), ... ) index pairs."""
+
+ ind = _indices_for_axis()
+ return itertools.product(ind, repeat=ndims)
+
+
+def _check_assignment(srcidx, dstidx):
+ """Check assignment arr[dstidx] = arr[srcidx] works."""
+
+ arr = np.arange(np.prod(shape)).reshape(shape)
+
+ cpy = arr.copy()
+
+ cpy[dstidx] = arr[srcidx]
+ arr[dstidx] = arr[srcidx]
+
+ assert_(np.all(arr == cpy),
+ f'assigning arr[{dstidx}] = arr[{srcidx}]')
+
+
+def test_overlapping_assignments():
+ # Test automatically generated assignments which overlap in memory.
+
+ inds = _indices(ndims)
+
+ for ind in inds:
+ srcidx = tuple(a[0] for a in ind)
+ dstidx = tuple(a[1] for a in ind)
+
+ _check_assignment(srcidx, dstidx)
+
+
+@pytest.mark.slow
+def test_diophantine_fuzz():
+ # Fuzz test the diophantine solver
+ rng = np.random.RandomState(1234)
+
+ max_int = np.iinfo(np.intp).max
+
+ for ndim in range(10):
+ feasible_count = 0
+ infeasible_count = 0
+
+ min_count = 500 // (ndim + 1)
+
+ while min(feasible_count, infeasible_count) < min_count:
+ # Ensure big and small integer problems
+ A_max = 1 + rng.randint(0, 11, dtype=np.intp)**6
+ U_max = rng.randint(0, 11, dtype=np.intp)**6
+
+ A_max = min(max_int, A_max)
+ U_max = min(max_int - 1, U_max)
+
+ A = tuple(int(rng.randint(1, A_max + 1, dtype=np.intp))
+ for j in range(ndim))
+ U = tuple(int(rng.randint(0, U_max + 2, dtype=np.intp))
+ for j in range(ndim))
+
+ b_ub = min(max_int - 2, sum(a * ub for a, ub in zip(A, U)))
+ b = int(rng.randint(-1, b_ub + 2, dtype=np.intp))
+
+ if ndim == 0 and feasible_count < min_count:
+ b = 0
+
+ X = solve_diophantine(A, U, b)
+
+ if X is None:
+ # Check the simplified decision problem agrees
+ X_simplified = solve_diophantine(A, U, b, simplify=1)
+ assert_(X_simplified is None, (A, U, b, X_simplified))
+
+ # Check no solution exists (provided the problem is
+ # small enough so that brute force checking doesn't
+ # take too long)
+ ranges = tuple(range(0, a * ub + 1, a) for a, ub in zip(A, U))
+
+ size = 1
+ for r in ranges:
+ size *= len(r)
+ if size < 100000:
+ assert_(not any(sum(w) == b for w in itertools.product(*ranges)))
+ infeasible_count += 1
+ else:
+ # Check the simplified decision problem agrees
+ X_simplified = solve_diophantine(A, U, b, simplify=1)
+ assert_(X_simplified is not None, (A, U, b, X_simplified))
+
+ # Check validity
+ assert_(sum(a * x for a, x in zip(A, X)) == b)
+ assert_(all(0 <= x <= ub for x, ub in zip(X, U)))
+ feasible_count += 1
+
+
+def test_diophantine_overflow():
+ # Smoke test integer overflow detection
+ max_intp = np.iinfo(np.intp).max
+ max_int64 = np.iinfo(np.int64).max
+
+ if max_int64 <= max_intp:
+ # Check that the algorithm works internally in 128-bit;
+ # solving this problem requires large intermediate numbers
+ A = (max_int64 // 2, max_int64 // 2 - 10)
+ U = (max_int64 // 2, max_int64 // 2 - 10)
+ b = 2 * (max_int64 // 2) - 10
+
+ assert_equal(solve_diophantine(A, U, b), (1, 1))
+
+
+def check_may_share_memory_exact(a, b):
+ got = np.may_share_memory(a, b, max_work=MAY_SHARE_EXACT)
+
+ assert_equal(np.may_share_memory(a, b),
+ np.may_share_memory(a, b, max_work=MAY_SHARE_BOUNDS))
+
+ a.fill(0)
+ b.fill(0)
+ a.fill(1)
+ exact = b.any()
+
+ err_msg = ""
+ if got != exact:
+ base_delta = a.__array_interface__['data'][0] - b.__array_interface__['data'][0]
+ err_msg = " " + "\n ".join([
+ f"base_a - base_b = {base_delta!r}",
+ f"shape_a = {a.shape!r}",
+ f"shape_b = {b.shape!r}",
+ f"strides_a = {a.strides!r}",
+ f"strides_b = {b.strides!r}",
+ f"size_a = {a.size!r}",
+ f"size_b = {b.size!r}"
+ ])
+
+ assert_equal(got, exact, err_msg=err_msg)
+
+
+def test_may_share_memory_manual():
+ # Manual test cases for may_share_memory
+
+ # Base arrays
+ xs0 = [
+ np.zeros([13, 21, 23, 22], dtype=np.int8),
+ np.zeros([13, 21, 23 * 2, 22], dtype=np.int8)[:, :, ::2, :]
+ ]
+
+ # Generate all negative stride combinations
+ xs = []
+ for x in xs0:
+ for ss in itertools.product(*(([slice(None), slice(None, None, -1)],) * 4)):
+ xp = x[ss]
+ xs.append(xp)
+
+ for x in xs:
+ # The default is a simple extent check
+ assert_(np.may_share_memory(x[:, 0, :], x[:, 1, :]))
+ assert_(np.may_share_memory(x[:, 0, :], x[:, 1, :], max_work=None))
+
+ # Exact checks
+ check_may_share_memory_exact(x[:, 0, :], x[:, 1, :])
+ check_may_share_memory_exact(x[:, ::7], x[:, 3::3])
+
+ try:
+ xp = x.ravel()
+ if xp.flags.owndata:
+ continue
+ xp = xp.view(np.int16)
+ except ValueError:
+ continue
+
+ # 0-size arrays cannot overlap
+ check_may_share_memory_exact(x.ravel()[6:6],
+ xp.reshape(13, 21, 23, 11)[:, ::7])
+
+ # Test itemsize is dealt with
+ check_may_share_memory_exact(x[:, ::7],
+ xp.reshape(13, 21, 23, 11))
+ check_may_share_memory_exact(x[:, ::7],
+ xp.reshape(13, 21, 23, 11)[:, 3::3])
+ check_may_share_memory_exact(x.ravel()[6:7],
+ xp.reshape(13, 21, 23, 11)[:, ::7])
+
+ # Check unit size
+ x = np.zeros([1], dtype=np.int8)
+ check_may_share_memory_exact(x, x)
+ check_may_share_memory_exact(x, x.copy())
+
+
+def iter_random_view_pairs(x, same_steps=True, equal_size=False):
+ rng = np.random.RandomState(1234)
+
+ if equal_size and same_steps:
+ raise ValueError
+
+ def random_slice(n, step):
+ start = rng.randint(0, n + 1, dtype=np.intp)
+ stop = rng.randint(start, n + 1, dtype=np.intp)
+ if rng.randint(0, 2, dtype=np.intp) == 0:
+ stop, start = start, stop
+ step *= -1
+ return slice(start, stop, step)
+
+ def random_slice_fixed_size(n, step, size):
+ start = rng.randint(0, n + 1 - size * step)
+ stop = start + (size - 1) * step + 1
+ if rng.randint(0, 2) == 0:
+ stop, start = start - 1, stop - 1
+ if stop < 0:
+ stop = None
+ step *= -1
+ return slice(start, stop, step)
+
+ # First a few regular views
+ yield x, x
+ for j in range(1, 7, 3):
+ yield x[j:], x[:-j]
+ yield x[..., j:], x[..., :-j]
+
+ # An array with zero stride internal overlap
+ strides = list(x.strides)
+ strides[0] = 0
+ xp = as_strided(x, shape=x.shape, strides=strides)
+ yield x, xp
+ yield xp, xp
+
+ # An array with non-zero stride internal overlap
+ strides = list(x.strides)
+ if strides[0] > 1:
+ strides[0] = 1
+ xp = as_strided(x, shape=x.shape, strides=strides)
+ yield x, xp
+ yield xp, xp
+
+ # Then discontiguous views
+ while True:
+ steps = tuple(rng.randint(1, 11, dtype=np.intp)
+ if rng.randint(0, 5, dtype=np.intp) == 0 else 1
+ for j in range(x.ndim))
+ s1 = tuple(random_slice(p, s) for p, s in zip(x.shape, steps))
+
+ t1 = np.arange(x.ndim)
+ rng.shuffle(t1)
+
+ if equal_size:
+ t2 = t1
+ else:
+ t2 = np.arange(x.ndim)
+ rng.shuffle(t2)
+
+ a = x[s1]
+
+ if equal_size:
+ if a.size == 0:
+ continue
+
+ steps2 = tuple(rng.randint(1, max(2, p // (1 + pa)))
+ if rng.randint(0, 5) == 0 else 1
+ for p, s, pa in zip(x.shape, s1, a.shape))
+ s2 = tuple(random_slice_fixed_size(p, s, pa)
+ for p, s, pa in zip(x.shape, steps2, a.shape))
+ elif same_steps:
+ steps2 = steps
+ else:
+ steps2 = tuple(rng.randint(1, 11, dtype=np.intp)
+ if rng.randint(0, 5, dtype=np.intp) == 0 else 1
+ for j in range(x.ndim))
+
+ if not equal_size:
+ s2 = tuple(random_slice(p, s) for p, s in zip(x.shape, steps2))
+
+ a = a.transpose(t1)
+ b = x[s2].transpose(t2)
+
+ yield a, b
+
+
+def check_may_share_memory_easy_fuzz(get_max_work, same_steps, min_count):
+ # Check that overlap problems with common strides are solved with
+ # little work.
+ x = np.zeros([17, 34, 71, 97], dtype=np.int16)
+
+ feasible = 0
+ infeasible = 0
+
+ pair_iter = iter_random_view_pairs(x, same_steps)
+
+ while min(feasible, infeasible) < min_count:
+ a, b = next(pair_iter)
+
+ bounds_overlap = np.may_share_memory(a, b)
+ may_share_answer = np.may_share_memory(a, b)
+ easy_answer = np.may_share_memory(a, b, max_work=get_max_work(a, b))
+ exact_answer = np.may_share_memory(a, b, max_work=MAY_SHARE_EXACT)
+
+ if easy_answer != exact_answer:
+ # assert_equal is slow...
+ assert_equal(easy_answer, exact_answer)
+
+ if may_share_answer != bounds_overlap:
+ assert_equal(may_share_answer, bounds_overlap)
+
+ if bounds_overlap:
+ if exact_answer:
+ feasible += 1
+ else:
+ infeasible += 1
+
+
+@pytest.mark.slow
+def test_may_share_memory_easy_fuzz():
+ # Check that overlap problems with common strides are always
+ # solved with little work.
+
+ check_may_share_memory_easy_fuzz(get_max_work=lambda a, b: 1,
+ same_steps=True,
+ min_count=2000)
+
+
+@pytest.mark.slow
+def test_may_share_memory_harder_fuzz():
+ # Overlap problems with not necessarily common strides take more
+ # work.
+ #
+ # The work bound below can't be reduced much. Harder problems can
+ # also exist but not be detected here, as the set of problems
+ # comes from RNG.
+
+ check_may_share_memory_easy_fuzz(get_max_work=lambda a, b: max(a.size, b.size) // 2,
+ same_steps=False,
+ min_count=2000)
+
+
+def test_shares_memory_api():
+ x = np.zeros([4, 5, 6], dtype=np.int8)
+
+ assert_equal(np.shares_memory(x, x), True)
+ assert_equal(np.shares_memory(x, x.copy()), False)
+
+ a = x[:, ::2, ::3]
+ b = x[:, ::3, ::2]
+ assert_equal(np.shares_memory(a, b), True)
+ assert_equal(np.shares_memory(a, b, max_work=None), True)
+ assert_raises(
+ np.exceptions.TooHardError, np.shares_memory, a, b, max_work=1
+ )
+
+
+def test_may_share_memory_bad_max_work():
+ x = np.zeros([1])
+ assert_raises(OverflowError, np.may_share_memory, x, x, max_work=10**100)
+ assert_raises(OverflowError, np.shares_memory, x, x, max_work=10**100)
+
+
+def test_internal_overlap_diophantine():
+ def check(A, U, exists=None):
+ X = solve_diophantine(A, U, 0, require_ub_nontrivial=1)
+
+ if exists is None:
+ exists = (X is not None)
+
+ if X is not None:
+ sum_ax = sum(a * x for a, x in zip(A, X))
+ sum_au_half = sum(a * u // 2 for a, u in zip(A, U))
+ assert_(sum_ax == sum_au_half)
+ assert_(all(0 <= x <= u for x, u in zip(X, U)))
+ assert_(any(x != u // 2 for x, u in zip(X, U)))
+
+ if exists:
+ assert_(X is not None, repr(X))
+ else:
+ assert_(X is None, repr(X))
+
+ # Smoke tests
+ check((3, 2), (2 * 2, 3 * 2), exists=True)
+ check((3 * 2, 2), (15 * 2, (3 - 1) * 2), exists=False)
+
+
+def test_internal_overlap_slices():
+ # Slicing an array never generates internal overlap
+
+ x = np.zeros([17, 34, 71, 97], dtype=np.int16)
+
+ rng = np.random.RandomState(1234)
+
+ def random_slice(n, step):
+ start = rng.randint(0, n + 1, dtype=np.intp)
+ stop = rng.randint(start, n + 1, dtype=np.intp)
+ if rng.randint(0, 2, dtype=np.intp) == 0:
+ stop, start = start, stop
+ step *= -1
+ return slice(start, stop, step)
+
+ cases = 0
+ min_count = 5000
+
+ while cases < min_count:
+ steps = tuple(rng.randint(1, 11, dtype=np.intp)
+ if rng.randint(0, 5, dtype=np.intp) == 0 else 1
+ for j in range(x.ndim))
+ t1 = np.arange(x.ndim)
+ rng.shuffle(t1)
+ s1 = tuple(random_slice(p, s) for p, s in zip(x.shape, steps))
+ a = x[s1].transpose(t1)
+
+ assert_(not internal_overlap(a))
+ cases += 1
+
+
+def check_internal_overlap(a, manual_expected=None):
+ got = internal_overlap(a)
+
+ # Brute-force check
+ m = set()
+ ranges = tuple(range(n) for n in a.shape)
+ for v in itertools.product(*ranges):
+ offset = sum(s * w for s, w in zip(a.strides, v))
+ if offset in m:
+ expected = True
+ break
+ else:
+ m.add(offset)
+ else:
+ expected = False
+
+ # Compare
+ if got != expected:
+ assert_equal(got, expected, err_msg=repr((a.strides, a.shape)))
+ if manual_expected is not None and expected != manual_expected:
+ assert_equal(expected, manual_expected)
+ return got
+
+
+def test_internal_overlap_manual():
+ # Stride tricks can construct arrays with internal overlap
+
+ # We don't care about memory bounds, the array is not
+ # read/write accessed
+ x = np.arange(1).astype(np.int8)
+
+ # Check low-dimensional special cases
+
+ check_internal_overlap(x, False) # 1-dim
+ check_internal_overlap(x.reshape([]), False) # 0-dim
+
+ a = as_strided(x, strides=(3, 4), shape=(4, 4))
+ check_internal_overlap(a, False)
+
+ a = as_strided(x, strides=(3, 4), shape=(5, 4))
+ check_internal_overlap(a, True)
+
+ a = as_strided(x, strides=(0,), shape=(0,))
+ check_internal_overlap(a, False)
+
+ a = as_strided(x, strides=(0,), shape=(1,))
+ check_internal_overlap(a, False)
+
+ a = as_strided(x, strides=(0,), shape=(2,))
+ check_internal_overlap(a, True)
+
+ a = as_strided(x, strides=(0, -9993), shape=(87, 22))
+ check_internal_overlap(a, True)
+
+ a = as_strided(x, strides=(0, -9993), shape=(1, 22))
+ check_internal_overlap(a, False)
+
+ a = as_strided(x, strides=(0, -9993), shape=(0, 22))
+ check_internal_overlap(a, False)
+
+
+def test_internal_overlap_fuzz():
+ # Fuzz check; the brute-force check is fairly slow
+
+ x = np.arange(1).astype(np.int8)
+
+ overlap = 0
+ no_overlap = 0
+ min_count = 100
+
+ rng = np.random.RandomState(1234)
+
+ while min(overlap, no_overlap) < min_count:
+ ndim = rng.randint(1, 4, dtype=np.intp)
+
+ strides = tuple(rng.randint(-1000, 1000, dtype=np.intp)
+ for j in range(ndim))
+ shape = tuple(rng.randint(1, 30, dtype=np.intp)
+ for j in range(ndim))
+
+ a = as_strided(x, strides=strides, shape=shape)
+ result = check_internal_overlap(a)
+
+ if result:
+ overlap += 1
+ else:
+ no_overlap += 1
+
+
+def test_non_ndarray_inputs():
+ # Regression check for gh-5604
+
+ class MyArray:
+ def __init__(self, data):
+ self.data = data
+
+ @property
+ def __array_interface__(self):
+ return self.data.__array_interface__
+
+ class MyArray2:
+ def __init__(self, data):
+ self.data = data
+
+ def __array__(self, dtype=None, copy=None):
+ return self.data
+
+ for cls in [MyArray, MyArray2]:
+ x = np.arange(5)
+
+ assert_(np.may_share_memory(cls(x[::2]), x[1::2]))
+ assert_(not np.shares_memory(cls(x[::2]), x[1::2]))
+
+ assert_(np.shares_memory(cls(x[1::3]), x[::2]))
+ assert_(np.may_share_memory(cls(x[1::3]), x[::2]))
+
+
+def view_element_first_byte(x):
+ """Construct an array viewing the first byte of each element of `x`"""
+ from numpy.lib._stride_tricks_impl import DummyArray
+ interface = dict(x.__array_interface__)
+ interface['typestr'] = '|b1'
+ interface['descr'] = [('', '|b1')]
+ return np.asarray(DummyArray(interface, x))
+
+
+def assert_copy_equivalent(operation, args, out, **kwargs):
+ """
+ Check that operation(*args, out=out) produces results
+ equivalent to out[...] = operation(*args, out=out.copy())
+ """
+
+ kwargs['out'] = out
+ kwargs2 = dict(kwargs)
+ kwargs2['out'] = out.copy()
+
+ out_orig = out.copy()
+ out[...] = operation(*args, **kwargs2)
+ expected = out.copy()
+ out[...] = out_orig
+
+ got = operation(*args, **kwargs).copy()
+
+ if (got != expected).any():
+ assert_equal(got, expected)
+
+
+class TestUFunc:
+ """
+ Test ufunc call memory overlap handling
+ """
+
+ def check_unary_fuzz(self, operation, get_out_axis_size, dtype=np.int16,
+ count=5000):
+ shapes = [7, 13, 8, 21, 29, 32]
+
+ rng = np.random.RandomState(1234)
+
+ for ndim in range(1, 6):
+ x = rng.randint(0, 2**16, size=shapes[:ndim]).astype(dtype)
+
+ it = iter_random_view_pairs(x, same_steps=False, equal_size=True)
+
+ min_count = count // (ndim + 1)**2
+
+ overlapping = 0
+ while overlapping < min_count:
+ a, b = next(it)
+
+ a_orig = a.copy()
+ b_orig = b.copy()
+
+ if get_out_axis_size is None:
+ assert_copy_equivalent(operation, [a], out=b)
+
+ if np.shares_memory(a, b):
+ overlapping += 1
+ else:
+ for axis in itertools.chain(range(ndim), [None]):
+ a[...] = a_orig
+ b[...] = b_orig
+
+ # Determine size for reduction axis (None if scalar)
+ outsize, scalarize = get_out_axis_size(a, b, axis)
+ if outsize == 'skip':
+ continue
+
+ # Slice b to get an output array of the correct size
+ sl = [slice(None)] * ndim
+ if axis is None:
+ if outsize is None:
+ sl = [slice(0, 1)] + [0] * (ndim - 1)
+ else:
+ sl = [slice(0, outsize)] + [0] * (ndim - 1)
+ elif outsize is None:
+ k = b.shape[axis] // 2
+ if ndim == 1:
+ sl[axis] = slice(k, k + 1)
+ else:
+ sl[axis] = k
+ else:
+ assert b.shape[axis] >= outsize
+ sl[axis] = slice(0, outsize)
+ b_out = b[tuple(sl)]
+
+ if scalarize:
+ b_out = b_out.reshape([])
+
+ if np.shares_memory(a, b_out):
+ overlapping += 1
+
+ # Check result
+ assert_copy_equivalent(operation, [a], out=b_out, axis=axis)
+
+ @pytest.mark.slow
+ def test_unary_ufunc_call_fuzz(self):
+ self.check_unary_fuzz(np.invert, None, np.int16)
+
+ @pytest.mark.slow
+ def test_unary_ufunc_call_complex_fuzz(self):
+ # Complex typically has a smaller alignment than itemsize
+ self.check_unary_fuzz(np.negative, None, np.complex128, count=500)
+
+ def test_binary_ufunc_accumulate_fuzz(self):
+ def get_out_axis_size(a, b, axis):
+ if axis is None:
+ if a.ndim == 1:
+ return a.size, False
+ else:
+ return 'skip', False # accumulate doesn't support this
+ else:
+ return a.shape[axis], False
+
+ self.check_unary_fuzz(np.add.accumulate, get_out_axis_size,
+ dtype=np.int16, count=500)
+
+ def test_binary_ufunc_reduce_fuzz(self):
+ def get_out_axis_size(a, b, axis):
+ return None, (axis is None or a.ndim == 1)
+
+ self.check_unary_fuzz(np.add.reduce, get_out_axis_size,
+ dtype=np.int16, count=500)
+
+ def test_binary_ufunc_reduceat_fuzz(self):
+ def get_out_axis_size(a, b, axis):
+ if axis is None:
+ if a.ndim == 1:
+ return a.size, False
+ else:
+ return 'skip', False # reduceat doesn't support this
+ else:
+ return a.shape[axis], False
+
+ def do_reduceat(a, out, axis):
+ if axis is None:
+ size = len(a)
+ step = size // len(out)
+ else:
+ size = a.shape[axis]
+ step = a.shape[axis] // out.shape[axis]
+ idx = np.arange(0, size, step)
+ return np.add.reduceat(a, idx, out=out, axis=axis)
+
+ self.check_unary_fuzz(do_reduceat, get_out_axis_size,
+ dtype=np.int16, count=500)
+
+ def test_binary_ufunc_reduceat_manual(self):
+ def check(ufunc, a, ind, out):
+ c1 = ufunc.reduceat(a.copy(), ind.copy(), out=out.copy())
+ c2 = ufunc.reduceat(a, ind, out=out)
+ assert_array_equal(c1, c2)
+
+ # Exactly same input/output arrays
+ a = np.arange(10000, dtype=np.int16)
+ check(np.add, a, a[::-1].copy(), a)
+
+ # Overlap with index
+ a = np.arange(10000, dtype=np.int16)
+ check(np.add, a, a[::-1], a)
+
+ @pytest.mark.slow
+ def test_unary_gufunc_fuzz(self):
+ shapes = [7, 13, 8, 21, 29, 32]
+ gufunc = _umath_tests.euclidean_pdist
+
+ rng = np.random.RandomState(1234)
+
+ for ndim in range(2, 6):
+ x = rng.rand(*shapes[:ndim])
+
+ it = iter_random_view_pairs(x, same_steps=False, equal_size=True)
+
+ min_count = 500 // (ndim + 1)**2
+
+ overlapping = 0
+ while overlapping < min_count:
+ a, b = next(it)
+
+ if min(a.shape[-2:]) < 2 or min(b.shape[-2:]) < 2 or a.shape[-1] < 2:
+ continue
+
+ # Ensure the shapes are so that euclidean_pdist is happy
+ if b.shape[-1] > b.shape[-2]:
+ b = b[..., 0, :]
+ else:
+ b = b[..., :, 0]
+
+ n = a.shape[-2]
+ p = n * (n - 1) // 2
+ if p <= b.shape[-1] and p > 0:
+ b = b[..., :p]
+ else:
+ n = max(2, int(np.sqrt(b.shape[-1])) // 2)
+ p = n * (n - 1) // 2
+ a = a[..., :n, :]
+ b = b[..., :p]
+
+ # Call
+ if np.shares_memory(a, b):
+ overlapping += 1
+
+ with np.errstate(over='ignore', invalid='ignore'):
+ assert_copy_equivalent(gufunc, [a], out=b)
+
+ def test_ufunc_at_manual(self):
+ def check(ufunc, a, ind, b=None):
+ a0 = a.copy()
+ if b is None:
+ ufunc.at(a0, ind.copy())
+ c1 = a0.copy()
+ ufunc.at(a, ind)
+ c2 = a.copy()
+ else:
+ ufunc.at(a0, ind.copy(), b.copy())
+ c1 = a0.copy()
+ ufunc.at(a, ind, b)
+ c2 = a.copy()
+ assert_array_equal(c1, c2)
+
+ # Overlap with index
+ a = np.arange(10000, dtype=np.int16)
+ check(np.invert, a[::-1], a)
+
+ # Overlap with second data array
+ a = np.arange(100, dtype=np.int16)
+ ind = np.arange(0, 100, 2, dtype=np.int16)
+ check(np.add, a, ind, a[25:75])
+
+ def test_unary_ufunc_1d_manual(self):
+ # Exercise ufunc fast-paths (that avoid creation of an `np.nditer`)
+
+ def check(a, b):
+ a_orig = a.copy()
+ b_orig = b.copy()
+
+ b0 = b.copy()
+ c1 = ufunc(a, out=b0)
+ c2 = ufunc(a, out=b)
+ assert_array_equal(c1, c2)
+
+ # Trigger "fancy ufunc loop" code path
+ mask = view_element_first_byte(b).view(np.bool)
+
+ a[...] = a_orig
+ b[...] = b_orig
+ c1 = ufunc(a, out=b.copy(), where=mask.copy()).copy()
+
+ a[...] = a_orig
+ b[...] = b_orig
+ c2 = ufunc(a, out=b, where=mask.copy()).copy()
+
+ # Also, mask overlapping with output
+ a[...] = a_orig
+ b[...] = b_orig
+ c3 = ufunc(a, out=b, where=mask).copy()
+
+ assert_array_equal(c1, c2)
+ assert_array_equal(c1, c3)
+
+ dtypes = [np.int8, np.int16, np.int32, np.int64, np.float32,
+ np.float64, np.complex64, np.complex128]
+ dtypes = [np.dtype(x) for x in dtypes]
+
+ for dtype in dtypes:
+ if np.issubdtype(dtype, np.integer):
+ ufunc = np.invert
+ else:
+ ufunc = np.reciprocal
+
+ n = 1000
+ k = 10
+ indices = [
+ np.index_exp[:n],
+ np.index_exp[k:k + n],
+ np.index_exp[n - 1::-1],
+ np.index_exp[k + n - 1:k - 1:-1],
+ np.index_exp[:2 * n:2],
+ np.index_exp[k:k + 2 * n:2],
+ np.index_exp[2 * n - 1::-2],
+ np.index_exp[k + 2 * n - 1:k - 1:-2],
+ ]
+
+ for xi, yi in itertools.product(indices, indices):
+ v = np.arange(1, 1 + n * 2 + k, dtype=dtype)
+ x = v[xi]
+ y = v[yi]
+
+ with np.errstate(all='ignore'):
+ check(x, y)
+
+ # Scalar cases
+ check(x[:1], y)
+ check(x[-1:], y)
+ check(x[:1].reshape([]), y)
+ check(x[-1:].reshape([]), y)
+
+ def test_unary_ufunc_where_same(self):
+ # Check behavior at wheremask overlap
+ ufunc = np.invert
+
+ def check(a, out, mask):
+ c1 = ufunc(a, out=out.copy(), where=mask.copy())
+ c2 = ufunc(a, out=out, where=mask)
+ assert_array_equal(c1, c2)
+
+ # Check behavior with same input and output arrays
+ x = np.arange(100).astype(np.bool)
+ check(x, x, x)
+ check(x, x.copy(), x)
+ check(x, x, x.copy())
+
+ @pytest.mark.slow
+ def test_binary_ufunc_1d_manual(self):
+ ufunc = np.add
+
+ def check(a, b, c):
+ c0 = c.copy()
+ c1 = ufunc(a, b, out=c0)
+ c2 = ufunc(a, b, out=c)
+ assert_array_equal(c1, c2)
+
+ for dtype in [np.int8, np.int16, np.int32, np.int64,
+ np.float32, np.float64, np.complex64, np.complex128]:
+ # Check different data dependency orders
+
+ n = 1000
+ k = 10
+
+ indices = []
+ for p in [1, 2]:
+ indices.extend([
+ np.index_exp[:p * n:p],
+ np.index_exp[k:k + p * n:p],
+ np.index_exp[p * n - 1::-p],
+ np.index_exp[k + p * n - 1:k - 1:-p],
+ ])
+
+ for x, y, z in itertools.product(indices, indices, indices):
+ v = np.arange(6 * n).astype(dtype)
+ x = v[x]
+ y = v[y]
+ z = v[z]
+
+ check(x, y, z)
+
+ # Scalar cases
+ check(x[:1], y, z)
+ check(x[-1:], y, z)
+ check(x[:1].reshape([]), y, z)
+ check(x[-1:].reshape([]), y, z)
+ check(x, y[:1], z)
+ check(x, y[-1:], z)
+ check(x, y[:1].reshape([]), z)
+ check(x, y[-1:].reshape([]), z)
+
+ def test_inplace_op_simple_manual(self):
+ rng = np.random.RandomState(1234)
+ x = rng.rand(200, 200) # bigger than bufsize
+
+ x += x.T
+ assert_array_equal(x - x.T, 0)
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/test_mem_policy.py b/python/user_packages/Python313/site-packages/numpy/_core/tests/test_mem_policy.py
new file mode 100644
index 0000000000000000000000000000000000000000..6ad042a3da3e68a267235bc75916f10c7c02c013
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/tests/test_mem_policy.py
@@ -0,0 +1,453 @@
+import asyncio
+import gc
+import os
+import sys
+import sysconfig
+import threading
+
+import pytest
+
+import numpy as np
+from numpy._core.multiarray import get_handler_name
+from numpy.testing import IS_EDITABLE, IS_WASM, extbuild
+
+
+@pytest.fixture
+def get_module(tmp_path):
+ """ Add a memory policy that returns a false pointer 64 bytes into the
+ actual allocation, and fill the prefix with some text. Then check at each
+ memory manipulation that the prefix exists, to make sure all alloc/realloc/
+ free/calloc go via the functions here.
+ """
+ if sys.platform.startswith('cygwin'):
+ pytest.skip('link fails on cygwin')
+ if IS_WASM:
+ pytest.skip("Can't build module inside Wasm")
+ if IS_EDITABLE:
+ pytest.skip("Can't build module for editable install")
+
+ functions = [
+ ("get_default_policy", "METH_NOARGS", """
+ Py_INCREF(PyDataMem_DefaultHandler);
+ return PyDataMem_DefaultHandler;
+ """),
+ ("set_secret_data_policy", "METH_NOARGS", """
+ PyObject *secret_data =
+ PyCapsule_New(&secret_data_handler, "mem_handler", NULL);
+ if (secret_data == NULL) {
+ return NULL;
+ }
+ PyObject *old = PyDataMem_SetHandler(secret_data);
+ Py_DECREF(secret_data);
+ return old;
+ """),
+ ("set_wrong_capsule_name_data_policy", "METH_NOARGS", """
+ PyObject *wrong_name_capsule =
+ PyCapsule_New(&secret_data_handler, "not_mem_handler", NULL);
+ if (wrong_name_capsule == NULL) {
+ return NULL;
+ }
+ PyObject *old = PyDataMem_SetHandler(wrong_name_capsule);
+ Py_DECREF(wrong_name_capsule);
+ return old;
+ """),
+ ("set_old_policy", "METH_O", """
+ PyObject *old;
+ if (args != NULL && PyCapsule_CheckExact(args)) {
+ old = PyDataMem_SetHandler(args);
+ }
+ else {
+ old = PyDataMem_SetHandler(NULL);
+ }
+ return old;
+ """),
+ ("get_array", "METH_NOARGS", """
+ char *buf = (char *)malloc(20);
+ npy_intp dims[1];
+ dims[0] = 20;
+ PyArray_Descr *descr = PyArray_DescrNewFromType(NPY_UINT8);
+ return PyArray_NewFromDescr(&PyArray_Type, descr, 1, dims, NULL,
+ buf, NPY_ARRAY_WRITEABLE, NULL);
+ """),
+ ("set_own", "METH_O", """
+ if (!PyArray_Check(args)) {
+ PyErr_SetString(PyExc_ValueError,
+ "need an ndarray");
+ return NULL;
+ }
+ PyArray_ENABLEFLAGS((PyArrayObject*)args, NPY_ARRAY_OWNDATA);
+ // Maybe try this too?
+ // PyArray_BASE(PyArrayObject *)args) = NULL;
+ Py_RETURN_NONE;
+ """),
+ ("get_array_with_base", "METH_NOARGS", """
+ char *buf = (char *)malloc(20);
+ npy_intp dims[1];
+ dims[0] = 20;
+ PyArray_Descr *descr = PyArray_DescrNewFromType(NPY_UINT8);
+ PyObject *arr = PyArray_NewFromDescr(&PyArray_Type, descr, 1, dims,
+ NULL, buf,
+ NPY_ARRAY_WRITEABLE, NULL);
+ if (arr == NULL) return NULL;
+ PyObject *obj = PyCapsule_New(buf, "buf capsule",
+ (PyCapsule_Destructor)&warn_on_free);
+ if (obj == NULL) {
+ Py_DECREF(arr);
+ return NULL;
+ }
+ if (PyArray_SetBaseObject((PyArrayObject *)arr, obj) < 0) {
+ Py_DECREF(arr);
+ Py_DECREF(obj);
+ return NULL;
+ }
+ return arr;
+
+ """),
+ ]
+ prologue = '''
+ #define NPY_TARGET_VERSION NPY_1_22_API_VERSION
+ #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
+ #include
+ /*
+ * This struct allows the dynamic configuration of the allocator funcs
+ * of the `secret_data_allocator`. It is provided here for
+ * demonstration purposes, as a valid `ctx` use-case scenario.
+ */
+ typedef struct {
+ void *(*malloc)(size_t);
+ void *(*calloc)(size_t, size_t);
+ void *(*realloc)(void *, size_t);
+ void (*free)(void *);
+ } SecretDataAllocatorFuncs;
+
+ NPY_NO_EXPORT void *
+ shift_alloc(void *ctx, size_t sz) {
+ SecretDataAllocatorFuncs *funcs = (SecretDataAllocatorFuncs *)ctx;
+ char *real = (char *)funcs->malloc(sz + 64);
+ if (real == NULL) {
+ return NULL;
+ }
+ snprintf(real, 64, "originally allocated %ld", (unsigned long)sz);
+ return (void *)(real + 64);
+ }
+ NPY_NO_EXPORT void *
+ shift_zero(void *ctx, size_t sz, size_t cnt) {
+ SecretDataAllocatorFuncs *funcs = (SecretDataAllocatorFuncs *)ctx;
+ char *real = (char *)funcs->calloc(sz + 64, cnt);
+ if (real == NULL) {
+ return NULL;
+ }
+ snprintf(real, 64, "originally allocated %ld via zero",
+ (unsigned long)sz);
+ return (void *)(real + 64);
+ }
+ NPY_NO_EXPORT void
+ shift_free(void *ctx, void * p, npy_uintp sz) {
+ SecretDataAllocatorFuncs *funcs = (SecretDataAllocatorFuncs *)ctx;
+ if (p == NULL) {
+ return ;
+ }
+ char *real = (char *)p - 64;
+ if (strncmp(real, "originally allocated", 20) != 0) {
+ fprintf(stdout, "uh-oh, unmatched shift_free, "
+ "no appropriate prefix\\n");
+ /* Make C runtime crash by calling free on the wrong address */
+ funcs->free((char *)p + 10);
+ /* funcs->free(real); */
+ }
+ else {
+ npy_uintp i = (npy_uintp)atoi(real +20);
+ if (i != sz) {
+ fprintf(stderr, "uh-oh, unmatched shift_free"
+ "(ptr, %ld) but allocated %ld\\n", sz, i);
+ /* This happens in some places, only print */
+ funcs->free(real);
+ }
+ else {
+ funcs->free(real);
+ }
+ }
+ }
+ NPY_NO_EXPORT void *
+ shift_realloc(void *ctx, void * p, npy_uintp sz) {
+ SecretDataAllocatorFuncs *funcs = (SecretDataAllocatorFuncs *)ctx;
+ if (p != NULL) {
+ char *real = (char *)p - 64;
+ if (strncmp(real, "originally allocated", 20) != 0) {
+ fprintf(stdout, "uh-oh, unmatched shift_realloc\\n");
+ return realloc(p, sz);
+ }
+ return (void *)((char *)funcs->realloc(real, sz + 64) + 64);
+ }
+ else {
+ char *real = (char *)funcs->realloc(p, sz + 64);
+ if (real == NULL) {
+ return NULL;
+ }
+ snprintf(real, 64, "originally allocated "
+ "%ld via realloc", (unsigned long)sz);
+ return (void *)(real + 64);
+ }
+ }
+ /* As an example, we use the standard {m|c|re}alloc/free funcs. */
+ static SecretDataAllocatorFuncs secret_data_handler_ctx = {
+ malloc,
+ calloc,
+ realloc,
+ free
+ };
+ static PyDataMem_Handler secret_data_handler = {
+ "secret_data_allocator",
+ 1,
+ {
+ &secret_data_handler_ctx, /* ctx */
+ shift_alloc, /* malloc */
+ shift_zero, /* calloc */
+ shift_realloc, /* realloc */
+ shift_free /* free */
+ }
+ };
+ void warn_on_free(void *capsule) {
+ PyErr_WarnEx(PyExc_UserWarning, "in warn_on_free", 1);
+ void * obj = PyCapsule_GetPointer(capsule,
+ PyCapsule_GetName(capsule));
+ free(obj);
+ };
+ '''
+ more_init = "import_array();"
+ try:
+ import mem_policy
+ return mem_policy
+ except ImportError:
+ pass
+ # if it does not exist, build and load it
+ if sysconfig.get_platform() == "win-arm64":
+ pytest.skip("Meson unable to find MSVC linker on win-arm64")
+ return extbuild.build_and_import_extension('mem_policy',
+ functions,
+ prologue=prologue,
+ include_dirs=[np.get_include()],
+ build_dir=tmp_path,
+ more_init=more_init)
+
+
+def test_set_policy(get_module):
+
+ get_handler_name = np._core.multiarray.get_handler_name
+ get_handler_version = np._core.multiarray.get_handler_version
+ orig_policy_name = get_handler_name()
+
+ a = np.arange(10).reshape((2, 5)) # a doesn't own its own data
+ assert get_handler_name(a) is None
+ assert get_handler_version(a) is None
+ assert get_handler_name(a.base) == orig_policy_name
+ assert get_handler_version(a.base) == 1
+
+ orig_policy = get_module.set_secret_data_policy()
+
+ b = np.arange(10).reshape((2, 5)) # b doesn't own its own data
+ assert get_handler_name(b) is None
+ assert get_handler_version(b) is None
+ assert get_handler_name(b.base) == 'secret_data_allocator'
+ assert get_handler_version(b.base) == 1
+
+ if orig_policy_name == 'default_allocator':
+ get_module.set_old_policy(None) # tests PyDataMem_SetHandler(NULL)
+ assert get_handler_name() == 'default_allocator'
+ else:
+ get_module.set_old_policy(orig_policy)
+ assert get_handler_name() == orig_policy_name
+
+ with pytest.raises(ValueError,
+ match="Capsule must be named 'mem_handler'"):
+ get_module.set_wrong_capsule_name_data_policy()
+
+
+def test_default_policy_singleton(get_module):
+ get_handler_name = np._core.multiarray.get_handler_name
+
+ # set the policy to default
+ orig_policy = get_module.set_old_policy(None)
+
+ assert get_handler_name() == 'default_allocator'
+
+ # re-set the policy to default
+ def_policy_1 = get_module.set_old_policy(None)
+
+ assert get_handler_name() == 'default_allocator'
+
+ # set the policy to original
+ def_policy_2 = get_module.set_old_policy(orig_policy)
+
+ # since default policy is a singleton,
+ # these should be the same object
+ assert def_policy_1 is def_policy_2 is get_module.get_default_policy()
+
+
+def test_policy_propagation(get_module):
+ # The memory policy goes hand-in-hand with flags.owndata
+
+ class MyArr(np.ndarray):
+ pass
+
+ get_handler_name = np._core.multiarray.get_handler_name
+ orig_policy_name = get_handler_name()
+ a = np.arange(10).view(MyArr).reshape((2, 5))
+ assert get_handler_name(a) is None
+ assert a.flags.owndata is False
+
+ assert get_handler_name(a.base) is None
+ assert a.base.flags.owndata is False
+
+ assert get_handler_name(a.base.base) == orig_policy_name
+ assert a.base.base.flags.owndata is True
+
+
+async def concurrent_context1(get_module, orig_policy_name, event):
+ if orig_policy_name == 'default_allocator':
+ get_module.set_secret_data_policy()
+ assert get_handler_name() == 'secret_data_allocator'
+ else:
+ get_module.set_old_policy(None)
+ assert get_handler_name() == 'default_allocator'
+ event.set()
+
+
+async def concurrent_context2(get_module, orig_policy_name, event):
+ await event.wait()
+ # the policy is not affected by changes in parallel contexts
+ assert get_handler_name() == orig_policy_name
+ # change policy in the child context
+ if orig_policy_name == 'default_allocator':
+ get_module.set_secret_data_policy()
+ assert get_handler_name() == 'secret_data_allocator'
+ else:
+ get_module.set_old_policy(None)
+ assert get_handler_name() == 'default_allocator'
+
+
+async def async_test_context_locality(get_module):
+ orig_policy_name = np._core.multiarray.get_handler_name()
+
+ event = asyncio.Event()
+ # the child contexts inherit the parent policy
+ concurrent_task1 = asyncio.create_task(
+ concurrent_context1(get_module, orig_policy_name, event))
+ concurrent_task2 = asyncio.create_task(
+ concurrent_context2(get_module, orig_policy_name, event))
+ await concurrent_task1
+ await concurrent_task2
+
+ # the parent context is not affected by child policy changes
+ assert np._core.multiarray.get_handler_name() == orig_policy_name
+
+
+def test_context_locality(get_module):
+ if (sys.implementation.name == 'pypy'
+ and sys.pypy_version_info[:3] < (7, 3, 6)):
+ pytest.skip('no context-locality support in PyPy < 7.3.6')
+ asyncio.run(async_test_context_locality(get_module))
+
+
+def concurrent_thread1(get_module, event):
+ get_module.set_secret_data_policy()
+ assert np._core.multiarray.get_handler_name() == 'secret_data_allocator'
+ event.set()
+
+
+def concurrent_thread2(get_module, event):
+ event.wait()
+ # the policy is not affected by changes in parallel threads
+ assert np._core.multiarray.get_handler_name() == 'default_allocator'
+ # change policy in the child thread
+ get_module.set_secret_data_policy()
+
+
+def test_thread_locality(get_module):
+ orig_policy_name = np._core.multiarray.get_handler_name()
+
+ event = threading.Event()
+ # the child threads do not inherit the parent policy
+ concurrent_task1 = threading.Thread(target=concurrent_thread1,
+ args=(get_module, event))
+ concurrent_task2 = threading.Thread(target=concurrent_thread2,
+ args=(get_module, event))
+ concurrent_task1.start()
+ concurrent_task2.start()
+ concurrent_task1.join()
+ concurrent_task2.join()
+
+ # the parent thread is not affected by child policy changes
+ assert np._core.multiarray.get_handler_name() == orig_policy_name
+
+
+@pytest.mark.skip(reason="too slow, see gh-23975")
+def test_new_policy(get_module):
+ a = np.arange(10)
+ orig_policy_name = np._core.multiarray.get_handler_name(a)
+
+ orig_policy = get_module.set_secret_data_policy()
+
+ b = np.arange(10)
+ assert np._core.multiarray.get_handler_name(b) == 'secret_data_allocator'
+
+ # test array manipulation. This is slow
+ if orig_policy_name == 'default_allocator':
+ # when the np._core.test tests recurse into this test, the
+ # policy will be set so this "if" will be false, preventing
+ # infinite recursion
+ #
+ # if needed, debug this by
+ # - running tests with -- -s (to not capture stdout/stderr
+ # - setting verbose=2
+ # - setting extra_argv=['-vv'] here
+ assert np._core.test('full', verbose=1, extra_argv=[])
+ # also try the ma tests, the pickling test is quite tricky
+ assert np.ma.test('full', verbose=1, extra_argv=[])
+
+ get_module.set_old_policy(orig_policy)
+
+ c = np.arange(10)
+ assert np._core.multiarray.get_handler_name(c) == orig_policy_name
+
+
+@pytest.mark.xfail(sys.implementation.name == "pypy",
+ reason=("bad interaction between getenv and "
+ "os.environ inside pytest"))
+@pytest.mark.parametrize("policy", ["0", "1", None])
+@pytest.mark.thread_unsafe(reason="modifies environment variables")
+def test_switch_owner(get_module, policy):
+ a = get_module.get_array()
+ assert np._core.multiarray.get_handler_name(a) is None
+ get_module.set_own(a)
+
+ if policy is None:
+ # See what we expect to be set based on the env variable
+ policy = os.getenv("NUMPY_WARN_IF_NO_MEM_POLICY", "0") == "1"
+ oldval = None
+ else:
+ policy = policy == "1"
+ oldval = np._core._multiarray_umath._set_numpy_warn_if_no_mem_policy(
+ policy)
+ try:
+ # The policy should be NULL, so we have to assume we can call
+ # "free". A warning is given if the policy == "1"
+ if policy:
+ with pytest.warns(RuntimeWarning) as w:
+ del a
+ gc.collect()
+ else:
+ del a
+ gc.collect()
+
+ finally:
+ if oldval is not None:
+ np._core._multiarray_umath._set_numpy_warn_if_no_mem_policy(oldval)
+
+
+def test_owner_is_base(get_module):
+ a = get_module.get_array_with_base()
+ with pytest.warns(UserWarning, match='warn_on_free'):
+ del a
+ gc.collect()
+ gc.collect()
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/test_memmap.py b/python/user_packages/Python313/site-packages/numpy/_core/tests/test_memmap.py
new file mode 100644
index 0000000000000000000000000000000000000000..0b186a96eb18f39fc4fb2686a47d1c94f8ccbf7e
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/tests/test_memmap.py
@@ -0,0 +1,248 @@
+import mmap
+import os
+import sys
+import warnings
+from pathlib import Path
+from tempfile import NamedTemporaryFile, TemporaryFile
+
+import pytest
+
+from numpy import (
+ add,
+ allclose,
+ arange,
+ asarray,
+ average,
+ isscalar,
+ memmap,
+ multiply,
+ ndarray,
+ prod,
+ subtract,
+ sum,
+)
+from numpy.testing import (
+ IS_PYPY,
+ assert_,
+ assert_array_equal,
+ assert_equal,
+ break_cycles,
+)
+
+
+@pytest.mark.thread_unsafe(reason="setup & memmap is thread-unsafe (gh-29126)")
+class TestMemmap:
+ def setup_method(self):
+ self.tmpfp = NamedTemporaryFile(prefix='mmap')
+ self.shape = (3, 4)
+ self.dtype = 'float32'
+ self.data = arange(12, dtype=self.dtype)
+ self.data.resize(self.shape)
+
+ def teardown_method(self):
+ self.tmpfp.close()
+ self.data = None
+ if IS_PYPY:
+ break_cycles()
+ break_cycles()
+
+ def test_roundtrip(self):
+ # Write data to file
+ fp = memmap(self.tmpfp, dtype=self.dtype, mode='w+',
+ shape=self.shape)
+ fp[:] = self.data[:]
+ del fp # Test __del__ machinery, which handles cleanup
+
+ # Read data back from file
+ newfp = memmap(self.tmpfp, dtype=self.dtype, mode='r',
+ shape=self.shape)
+ assert_(allclose(self.data, newfp))
+ assert_array_equal(self.data, newfp)
+ assert_equal(newfp.flags.writeable, False)
+
+ def test_open_with_filename(self, tmp_path):
+ tmpname = tmp_path / 'mmap'
+ fp = memmap(tmpname, dtype=self.dtype, mode='w+',
+ shape=self.shape)
+ fp[:] = self.data[:]
+ del fp
+
+ def test_unnamed_file(self):
+ with TemporaryFile() as f:
+ fp = memmap(f, dtype=self.dtype, shape=self.shape)
+ del fp
+
+ def test_attributes(self):
+ offset = 1
+ mode = "w+"
+ fp = memmap(self.tmpfp, dtype=self.dtype, mode=mode,
+ shape=self.shape, offset=offset)
+ assert_equal(offset, fp.offset)
+ assert_equal(mode, fp.mode)
+ del fp
+
+ def test_filename(self, tmp_path):
+ tmpname = tmp_path / "mmap"
+ fp = memmap(tmpname, dtype=self.dtype, mode='w+',
+ shape=self.shape)
+ abspath = Path(os.path.abspath(tmpname))
+ fp[:] = self.data[:]
+ assert_equal(abspath, fp.filename)
+ b = fp[:1]
+ assert_equal(abspath, b.filename)
+ del b
+ del fp
+
+ def test_path(self, tmp_path):
+ tmpname = tmp_path / "mmap"
+ fp = memmap(Path(tmpname), dtype=self.dtype, mode='w+',
+ shape=self.shape)
+ # os.path.realpath does not resolve symlinks on Windows
+ # see: https://bugs.python.org/issue9949
+ # use Path.resolve, just as memmap class does internally
+ abspath = str(Path(tmpname).resolve())
+ fp[:] = self.data[:]
+ assert_equal(abspath, str(fp.filename.resolve()))
+ b = fp[:1]
+ assert_equal(abspath, str(b.filename.resolve()))
+ del b
+ del fp
+
+ def test_filename_fileobj(self):
+ fp = memmap(self.tmpfp, dtype=self.dtype, mode="w+",
+ shape=self.shape)
+ assert_equal(fp.filename, self.tmpfp.name)
+
+ @pytest.mark.skipif(sys.platform == 'gnu0',
+ reason="Known to fail on hurd")
+ def test_flush(self):
+ fp = memmap(self.tmpfp, dtype=self.dtype, mode='w+',
+ shape=self.shape)
+ fp[:] = self.data[:]
+ assert_equal(fp[0], self.data[0])
+ fp.flush()
+
+ def test_del(self):
+ # Make sure a view does not delete the underlying mmap
+ fp_base = memmap(self.tmpfp, dtype=self.dtype, mode='w+',
+ shape=self.shape)
+ fp_base[0] = 5
+ fp_view = fp_base[0:1]
+ assert_equal(fp_view[0], 5)
+ del fp_view
+ # Should still be able to access and assign values after
+ # deleting the view
+ assert_equal(fp_base[0], 5)
+ fp_base[0] = 6
+ assert_equal(fp_base[0], 6)
+
+ def test_arithmetic_drops_references(self):
+ fp = memmap(self.tmpfp, dtype=self.dtype, mode='w+',
+ shape=self.shape)
+ tmp = (fp + 10)
+ if isinstance(tmp, memmap):
+ assert_(tmp._mmap is not fp._mmap)
+
+ def test_indexing_drops_references(self):
+ fp = memmap(self.tmpfp, dtype=self.dtype, mode='w+',
+ shape=self.shape)
+ tmp = fp[(1, 2), (2, 3)]
+ if isinstance(tmp, memmap):
+ assert_(tmp._mmap is not fp._mmap)
+
+ def test_slicing_keeps_references(self):
+ fp = memmap(self.tmpfp, dtype=self.dtype, mode='w+',
+ shape=self.shape)
+ assert_(fp[:2, :2]._mmap is fp._mmap)
+
+ def test_view(self):
+ fp = memmap(self.tmpfp, dtype=self.dtype, shape=self.shape)
+ new1 = fp.view()
+ new2 = new1.view()
+ assert_(new1.base is fp)
+ assert_(new2.base is fp)
+ new_array = asarray(fp)
+ assert_(new_array.base is fp)
+
+ def test_ufunc_return_ndarray(self):
+ fp = memmap(self.tmpfp, dtype=self.dtype, shape=self.shape)
+ fp[:] = self.data
+
+ with warnings.catch_warnings():
+ warnings.filterwarnings(
+ 'ignore', "np.average currently does not preserve", FutureWarning)
+ for unary_op in [sum, average, prod]:
+ result = unary_op(fp)
+ assert_(isscalar(result))
+ assert_(result.__class__ is self.data[0, 0].__class__)
+
+ assert_(unary_op(fp, axis=0).__class__ is ndarray)
+ assert_(unary_op(fp, axis=1).__class__ is ndarray)
+
+ for binary_op in [add, subtract, multiply]:
+ assert_(binary_op(fp, self.data).__class__ is ndarray)
+ assert_(binary_op(self.data, fp).__class__ is ndarray)
+ assert_(binary_op(fp, fp).__class__ is ndarray)
+
+ fp += 1
+ assert fp.__class__ is memmap
+ add(fp, 1, out=fp)
+ assert fp.__class__ is memmap
+
+ def test_getitem(self):
+ fp = memmap(self.tmpfp, dtype=self.dtype, shape=self.shape)
+ fp[:] = self.data
+
+ assert_(fp[1:, :-1].__class__ is memmap)
+ # Fancy indexing returns a copy that is not memmapped
+ assert_(fp[[0, 1]].__class__ is ndarray)
+
+ def test_memmap_subclass(self):
+ class MemmapSubClass(memmap):
+ pass
+
+ fp = MemmapSubClass(self.tmpfp, dtype=self.dtype, shape=self.shape)
+ fp[:] = self.data
+
+ # We keep previous behavior for subclasses of memmap, i.e. the
+ # ufunc and __getitem__ output is never turned into a ndarray
+ assert_(sum(fp, axis=0).__class__ is MemmapSubClass)
+ assert_(sum(fp).__class__ is MemmapSubClass)
+ assert_(fp[1:, :-1].__class__ is MemmapSubClass)
+ assert fp[[0, 1]].__class__ is MemmapSubClass
+
+ def test_mmap_offset_greater_than_allocation_granularity(self):
+ size = 5 * mmap.ALLOCATIONGRANULARITY
+ offset = mmap.ALLOCATIONGRANULARITY + 1
+ fp = memmap(self.tmpfp, shape=size, mode='w+', offset=offset)
+ assert_(fp.offset == offset)
+
+ def test_empty_array_with_offset_multiple_of_allocation_granularity(self):
+ self.tmpfp.write(b'a' * mmap.ALLOCATIONGRANULARITY)
+ size = 0
+ offset = mmap.ALLOCATIONGRANULARITY
+ fp = memmap(self.tmpfp, shape=size, mode='w+', offset=offset)
+ assert_equal(fp.offset, offset)
+
+ def test_no_shape(self):
+ self.tmpfp.write(b'a' * 16)
+ mm = memmap(self.tmpfp, dtype='float64')
+ assert_equal(mm.shape, (2,))
+
+ def test_empty_array(self):
+ # gh-12653
+ with pytest.raises(ValueError, match='empty file'):
+ memmap(self.tmpfp, shape=(0, 4), mode='r')
+
+ # gh-27723
+ # empty memmap works with mode in ('w+','r+')
+ memmap(self.tmpfp, shape=(0, 4), mode='w+')
+
+ # ok now the file is not empty
+ memmap(self.tmpfp, shape=(0, 4), mode='w+')
+
+ def test_shape_type(self):
+ memmap(self.tmpfp, shape=3, mode='w+')
+ memmap(self.tmpfp, shape=self.shape, mode='w+')
+ memmap(self.tmpfp, shape=list(self.shape), mode='w+')
+ memmap(self.tmpfp, shape=asarray(self.shape), mode='w+')
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/test_multiarray.py b/python/user_packages/Python313/site-packages/numpy/_core/tests/test_multiarray.py
new file mode 100644
index 0000000000000000000000000000000000000000..824c015cb03bcd98b7cc253c6af341764bb50c80
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/tests/test_multiarray.py
@@ -0,0 +1,11031 @@
+import builtins
+import collections.abc
+import ctypes
+import functools
+import gc
+import importlib
+import inspect
+import io
+import itertools
+import mmap
+import operator
+import os
+import pathlib
+import pickle
+import re
+import subprocess
+import sys
+import tempfile
+import textwrap
+import warnings
+import weakref
+from contextlib import contextmanager
+
+# Need to test an object that does not fully implement math interface
+from datetime import datetime, timedelta
+from decimal import Decimal
+
+import pytest
+
+import numpy as np
+import numpy._core._multiarray_tests as _multiarray_tests
+from numpy._core._rational_tests import rational
+from numpy._core.multiarray import _get_ndarray_c_version, dot
+from numpy._core.tests._locales import CommaDecimalPointLocale
+from numpy.exceptions import AxisError, ComplexWarning
+from numpy.lib import stride_tricks
+from numpy.lib.recfunctions import repack_fields
+from numpy.testing import (
+ BLAS_SUPPORTS_FPE,
+ HAS_REFCOUNT,
+ IS_64BIT,
+ IS_PYPY,
+ IS_PYSTON,
+ IS_WASM,
+ assert_,
+ assert_allclose,
+ assert_almost_equal,
+ assert_array_almost_equal,
+ assert_array_compare,
+ assert_array_equal,
+ assert_array_less,
+ assert_equal,
+ assert_raises,
+ assert_raises_regex,
+ break_cycles,
+ check_support_sve,
+ runstring,
+ temppath,
+)
+from numpy.testing._private.utils import _no_tracing, requires_memory
+
+
+def assert_arg_sorted(arr, arg):
+ # resulting array should be sorted and arg values should be unique
+ assert_equal(arr[arg], np.sort(arr))
+ assert_equal(np.sort(arg), np.arange(len(arg)))
+
+
+def assert_arr_partitioned(kth, k, arr_part):
+ assert_equal(arr_part[k], kth)
+ assert_array_compare(operator.__le__, arr_part[:k], kth)
+ assert_array_compare(operator.__ge__, arr_part[k:], kth)
+
+
+def _aligned_zeros(shape, dtype=float, order="C", align=None):
+ """
+ Allocate a new ndarray with aligned memory.
+
+ The ndarray is guaranteed *not* aligned to twice the requested alignment.
+ Eg, if align=4, guarantees it is not aligned to 8. If align=None uses
+ dtype.alignment."""
+ dtype = np.dtype(dtype)
+ if dtype == np.dtype(object):
+ # Can't do this, fall back to standard allocation (which
+ # should always be sufficiently aligned)
+ if align is not None:
+ raise ValueError("object array alignment not supported")
+ return np.zeros(shape, dtype=dtype, order=order)
+ if align is None:
+ align = dtype.alignment
+ if not hasattr(shape, '__len__'):
+ shape = (shape,)
+ size = functools.reduce(operator.mul, shape) * dtype.itemsize
+ buf = np.empty(size + 2 * align + 1, np.uint8)
+
+ ptr = buf.__array_interface__['data'][0]
+ offset = ptr % align
+ if offset != 0:
+ offset = align - offset
+ if (ptr % (2 * align)) == 0:
+ offset += align
+
+ # Note: slices producing 0-size arrays do not necessarily change
+ # data pointer --- so we use and allocate size+1
+ buf = buf[offset:offset + size + 1][:-1]
+ buf.fill(0)
+ data = np.ndarray(shape, dtype, buf, order=order)
+ return data
+
+
+class TestFlags:
+ def test_writeable(self):
+ arr = np.arange(10)
+ mydict = locals()
+ arr.flags.writeable = False
+ assert_raises(ValueError, runstring, 'arr[0] = 3', mydict)
+ arr.flags.writeable = True
+ arr[0] = 5
+ arr[0] = 0
+
+ def test_writeable_any_base(self):
+ # Ensure that any base being writeable is sufficient to change flag;
+ # this is especially interesting for arrays from an array interface.
+ arr = np.arange(10)
+
+ class subclass(np.ndarray):
+ pass
+
+ # Create subclass so base will not be collapsed, this is OK to change
+ view1 = arr.view(subclass)
+ view2 = view1[...]
+ arr.flags.writeable = False
+ view2.flags.writeable = False
+ view2.flags.writeable = True # Can be set to True again.
+
+ arr = np.arange(10)
+
+ class frominterface:
+ def __init__(self, arr):
+ self.arr = arr
+ self.__array_interface__ = arr.__array_interface__
+
+ view1 = np.asarray(frominterface)
+ view2 = view1[...]
+ view2.flags.writeable = False
+ view2.flags.writeable = True
+
+ view1.flags.writeable = False
+ view2.flags.writeable = False
+ with assert_raises(ValueError):
+ # Must assume not writeable, since only base is not:
+ view2.flags.writeable = True
+
+ def test_writeable_from_readonly(self):
+ # gh-9440 - make sure fromstring, from buffer on readonly buffers
+ # set writeable False
+ data = b'\x00' * 100
+ vals = np.frombuffer(data, 'B')
+ assert_raises(ValueError, vals.setflags, write=True)
+ types = np.dtype([('vals', 'u1'), ('res3', 'S4')])
+ values = np._core.records.fromstring(data, types)
+ vals = values['vals']
+ assert_raises(ValueError, vals.setflags, write=True)
+
+ def test_writeable_from_buffer(self):
+ data = bytearray(b'\x00' * 100)
+ vals = np.frombuffer(data, 'B')
+ assert_(vals.flags.writeable)
+ vals.setflags(write=False)
+ assert_(vals.flags.writeable is False)
+ vals.setflags(write=True)
+ assert_(vals.flags.writeable)
+ types = np.dtype([('vals', 'u1'), ('res3', 'S4')])
+ values = np._core.records.fromstring(data, types)
+ vals = values['vals']
+ assert_(vals.flags.writeable)
+ vals.setflags(write=False)
+ assert_(vals.flags.writeable is False)
+ vals.setflags(write=True)
+ assert_(vals.flags.writeable)
+
+ @pytest.mark.skipif(IS_PYPY, reason="PyPy always copies")
+ def test_writeable_pickle(self):
+ import pickle
+ # Small arrays will be copied without setting base.
+ # See condition for using PyArray_SetBaseObject in
+ # array_setstate.
+ a = np.arange(1000)
+ for v in range(pickle.HIGHEST_PROTOCOL):
+ vals = pickle.loads(pickle.dumps(a, v))
+ assert_(vals.flags.writeable)
+ assert_(isinstance(vals.base, bytes))
+
+ def test_writeable_from_c_data(self):
+ # Test that the writeable flag can be changed for an array wrapping
+ # low level C-data, but not owning its data.
+ # Also see that this is deprecated to change from python.
+ from numpy._core._multiarray_tests import get_c_wrapping_array
+
+ arr_writeable = get_c_wrapping_array(True)
+ assert not arr_writeable.flags.owndata
+ assert arr_writeable.flags.writeable
+ view = arr_writeable[...]
+
+ # Toggling the writeable flag works on the view:
+ view.flags.writeable = False
+ assert not view.flags.writeable
+ view.flags.writeable = True
+ assert view.flags.writeable
+ # Flag can be unset on the arr_writeable:
+ arr_writeable.flags.writeable = False
+
+ arr_readonly = get_c_wrapping_array(False)
+ assert not arr_readonly.flags.owndata
+ assert not arr_readonly.flags.writeable
+
+ for arr in [arr_writeable, arr_readonly]:
+ view = arr[...]
+ view.flags.writeable = False # make sure it is readonly
+ arr.flags.writeable = False
+ assert not arr.flags.writeable
+
+ with assert_raises(ValueError):
+ view.flags.writeable = True
+
+ with assert_raises(ValueError):
+ arr.flags.writeable = True
+
+ def test_warnonwrite(self):
+ a = np.arange(10)
+ a.flags._warn_on_write = True
+ with warnings.catch_warnings(record=True) as w:
+ warnings.filterwarnings('always')
+ a[1] = 10
+ a[2] = 10
+ # only warn once
+ assert_(len(w) == 1)
+
+ @pytest.mark.parametrize(["flag", "flag_value", "writeable"],
+ [("writeable", True, True),
+ # Delete _warn_on_write after deprecation and simplify
+ # the parameterization:
+ ("_warn_on_write", True, False),
+ ("writeable", False, False)])
+ def test_readonly_flag_protocols(self, flag, flag_value, writeable):
+ a = np.arange(10)
+ setattr(a.flags, flag, flag_value)
+
+ class MyArr:
+ __array_struct__ = a.__array_struct__
+
+ assert memoryview(a).readonly is not writeable
+ assert a.__array_interface__['data'][1] is not writeable
+ assert np.asarray(MyArr()).flags.writeable is writeable
+
+ def test_otherflags(self):
+ arr = np.arange(10)
+ assert_equal(arr.flags.carray, True)
+ assert_equal(arr.flags['C'], True)
+ assert_equal(arr.flags.farray, False)
+ assert_equal(arr.flags.behaved, True)
+ assert_equal(arr.flags.fnc, False)
+ assert_equal(arr.flags.forc, True)
+ assert_equal(arr.flags.owndata, True)
+ assert_equal(arr.flags.writeable, True)
+ assert_equal(arr.flags.aligned, True)
+ assert_equal(arr.flags.writebackifcopy, False)
+ assert_equal(arr.flags['X'], False)
+ assert_equal(arr.flags['WRITEBACKIFCOPY'], False)
+
+ def test_string_align(self):
+ a = np.zeros(4, dtype=np.dtype('|S4'))
+ assert_(a.flags.aligned)
+ # not power of two are accessed byte-wise and thus considered aligned
+ a = np.zeros(5, dtype=np.dtype('|S4'))
+ assert_(a.flags.aligned)
+
+ def test_void_align(self):
+ a = np.zeros(4, dtype=np.dtype([("a", "i4"), ("b", "i4")]))
+ assert_(a.flags.aligned)
+
+ @pytest.mark.parametrize("row_size", [5, 1 << 16])
+ @pytest.mark.parametrize("row_count", [1, 5])
+ @pytest.mark.parametrize("ndmin", [0, 1, 2])
+ def test_xcontiguous_load_txt(self, row_size, row_count, ndmin):
+ s = io.StringIO('\n'.join(['1.0 ' * row_size] * row_count))
+ a = np.loadtxt(s, ndmin=ndmin)
+
+ assert a.flags.c_contiguous
+ x = [i for i in a.shape if i != 1]
+ assert a.flags.f_contiguous == (len(x) <= 1)
+
+
+class TestHash:
+ # see #3793
+ def test_int(self):
+ for st, ut, s in [(np.int8, np.uint8, 8),
+ (np.int16, np.uint16, 16),
+ (np.int32, np.uint32, 32),
+ (np.int64, np.uint64, 64)]:
+ for i in range(1, s):
+ assert_equal(hash(st(-2**i)), hash(-2**i),
+ err_msg="%r: -2**%d" % (st, i))
+ assert_equal(hash(st(2**(i - 1))), hash(2**(i - 1)),
+ err_msg="%r: 2**%d" % (st, i - 1))
+ assert_equal(hash(st(2**i - 1)), hash(2**i - 1),
+ err_msg="%r: 2**%d - 1" % (st, i))
+
+ i = max(i - 1, 1)
+ assert_equal(hash(ut(2**(i - 1))), hash(2**(i - 1)),
+ err_msg="%r: 2**%d" % (ut, i - 1))
+ assert_equal(hash(ut(2**i - 1)), hash(2**i - 1),
+ err_msg="%r: 2**%d - 1" % (ut, i))
+
+
+class TestAttributes:
+ def _create_arrays(self):
+ one = np.arange(10)
+ two = np.arange(20).reshape(4, 5)
+ three = np.arange(60, dtype=np.float64).reshape(2, 5, 6)
+ return one, two, three
+
+ def test_attributes(self):
+ one, two, three = self._create_arrays()
+ assert_equal(one.shape, (10,))
+ assert_equal(two.shape, (4, 5))
+ assert_equal(three.shape, (2, 5, 6))
+ three.shape = (10, 3, 2)
+ assert_equal(three.shape, (10, 3, 2))
+ three.shape = (2, 5, 6)
+ assert_equal(one.strides, (one.itemsize,))
+ num = two.itemsize
+ assert_equal(two.strides, (5 * num, num))
+ num = three.itemsize
+ assert_equal(three.strides, (30 * num, 6 * num, num))
+ assert_equal(one.ndim, 1)
+ assert_equal(two.ndim, 2)
+ assert_equal(three.ndim, 3)
+ num = two.itemsize
+ assert_equal(two.size, 20)
+ assert_equal(two.nbytes, 20 * num)
+ assert_equal(two.itemsize, two.dtype.itemsize)
+ assert_equal(two.base, np.arange(20))
+
+ def test_dtypeattr(self):
+ one, _, three = self._create_arrays()
+ assert_equal(one.dtype, np.dtype(np.int_))
+ assert_equal(three.dtype, np.dtype(np.float64))
+ assert_equal(one.dtype.char, np.dtype(int).char)
+ assert one.dtype.char in "lq"
+ assert_equal(three.dtype.char, 'd')
+ assert_(three.dtype.str[0] in '<>')
+ assert_equal(one.dtype.str[1], 'i')
+ assert_equal(three.dtype.str[1], 'f')
+
+ def test_int_subclassing(self):
+ # Regression test for https://github.com/numpy/numpy/pull/3526
+
+ numpy_int = np.int_(0)
+
+ # int_ doesn't inherit from Python int, because it's not fixed-width
+ assert_(not isinstance(numpy_int, int))
+
+ def test_stridesattr(self):
+ x, _, _ = self._create_arrays()
+
+ def make_array(size, offset, strides):
+ return np.ndarray(size, buffer=x, dtype=int,
+ offset=offset * x.itemsize,
+ strides=strides * x.itemsize)
+
+ assert_equal(make_array(4, 4, -1), np.array([4, 3, 2, 1]))
+ assert_raises(ValueError, make_array, 4, 4, -2)
+ assert_raises(ValueError, make_array, 4, 2, -1)
+ assert_raises(ValueError, make_array, 8, 3, 1)
+ assert_equal(make_array(8, 3, 0), np.array([3] * 8))
+ # Check behavior reported in gh-2503:
+ assert_raises(ValueError, make_array, (2, 3), 5, np.array([-2, -3]))
+ make_array(0, 0, 10)
+
+ def test_set_stridesattr(self):
+ x, _, _ = self._create_arrays()
+
+ def make_array(size, offset, strides):
+ try:
+ r = np.ndarray([size], dtype=int, buffer=x,
+ offset=offset * x.itemsize)
+ except Exception as e:
+ raise RuntimeError(e)
+ with pytest.warns(DeprecationWarning):
+ r.strides = strides * x.itemsize
+ return r
+
+ assert_equal(make_array(4, 4, -1), np.array([4, 3, 2, 1]))
+ assert_equal(make_array(7, 3, 1), np.array([3, 4, 5, 6, 7, 8, 9]))
+ assert_raises(ValueError, make_array, 4, 4, -2)
+ assert_raises(ValueError, make_array, 4, 2, -1)
+ assert_raises(RuntimeError, make_array, 8, 3, 1)
+ # Check that the true extent of the array is used.
+ # Test relies on as_strided base not exposing a buffer.
+ x = stride_tricks.as_strided(np.arange(1), (10, 10), (0, 0))
+
+ def set_strides(arr, strides):
+ with pytest.warns(DeprecationWarning):
+ arr.strides = strides
+
+ assert_raises(ValueError, set_strides, x, (10 * x.itemsize, x.itemsize))
+
+ # Test for offset calculations:
+ x = stride_tricks.as_strided(np.arange(10, dtype=np.int8)[-1],
+ shape=(10,), strides=(-1,))
+ assert_raises(ValueError, set_strides, x[::-1], -1)
+ a = x[::-1]
+ with pytest.warns(DeprecationWarning):
+ a.strides = 1
+ with pytest.warns(DeprecationWarning):
+ a[::2].strides = 2
+
+ # test 0d
+ arr_0d = np.array(0)
+ with pytest.warns(DeprecationWarning):
+ arr_0d.strides = ()
+ assert_raises(TypeError, set_strides, arr_0d, None)
+
+ def test_fill(self):
+ for t in "?bhilqpBHILQPfdgFDGO":
+ x = np.empty((3, 2, 1), t)
+ y = np.empty((3, 2, 1), t)
+ x.fill(1)
+ y[...] = 1
+ assert_equal(x, y)
+
+ def test_fill_max_uint64(self):
+ x = np.empty((3, 2, 1), dtype=np.uint64)
+ y = np.empty((3, 2, 1), dtype=np.uint64)
+ value = 2**64 - 1
+ y[...] = value
+ x.fill(value)
+ assert_array_equal(x, y)
+
+ def test_fill_struct_array(self):
+ # Filling from a scalar
+ x = np.array([(0, 0.0), (1, 1.0)], dtype='i4,f8')
+ x.fill(x[0])
+ assert_equal(x['f1'][1], x['f1'][0])
+ # Filling from a tuple that can be converted
+ # to a scalar
+ x = np.zeros(2, dtype=[('a', 'f8'), ('b', 'i4')])
+ x.fill((3.5, -2))
+ assert_array_equal(x['a'], [3.5, 3.5])
+ assert_array_equal(x['b'], [-2, -2])
+
+ def test_fill_readonly(self):
+ # gh-22922
+ a = np.zeros(11)
+ a.setflags(write=False)
+ with pytest.raises(ValueError, match=".*read-only"):
+ a.fill(0)
+
+ def test_fill_subarrays(self):
+ # NOTE:
+ # This is also a regression test for a crash with PYTHONMALLOC=debug
+
+ dtype = np.dtype("2= 3
+
+ arg0 = "object" if func is np.array else "a"
+ assert arg0 in sig.parameters
+ assert sig.parameters[arg0].default is inspect.Parameter.empty
+ assert sig.parameters[arg0].kind is inspect.Parameter.POSITIONAL_OR_KEYWORD
+
+ assert "dtype" in sig.parameters
+ assert sig.parameters["dtype"].default is None
+ assert sig.parameters["dtype"].kind is inspect.Parameter.POSITIONAL_OR_KEYWORD
+
+ assert "like" in sig.parameters
+ assert sig.parameters["like"].default is None
+ assert sig.parameters["like"].kind is inspect.Parameter.KEYWORD_ONLY
+
+
+class TestAssignment:
+ def test_assignment_broadcasting(self):
+ a = np.arange(6).reshape(2, 3)
+
+ # Broadcasting the input to the output
+ a[...] = np.arange(3)
+ assert_equal(a, [[0, 1, 2], [0, 1, 2]])
+ a[...] = np.arange(2).reshape(2, 1)
+ assert_equal(a, [[0, 0, 0], [1, 1, 1]])
+
+ # For compatibility with <= 1.5, a limited version of broadcasting
+ # the output to the input.
+ #
+ # This behavior is inconsistent with NumPy broadcasting
+ # in general, because it only uses one of the two broadcasting
+ # rules (adding a new "1" dimension to the left of the shape),
+ # applied to the output instead of an input. In NumPy 2.0, this kind
+ # of broadcasting assignment will likely be disallowed.
+ a[...] = np.arange(6)[::-1].reshape(1, 2, 3)
+ assert_equal(a, [[5, 4, 3], [2, 1, 0]])
+ # The other type of broadcasting would require a reduction operation.
+
+ def assign(a, b):
+ a[...] = b
+
+ assert_raises(ValueError, assign, a, np.arange(12).reshape(2, 2, 3))
+
+ def test_assignment_errors(self):
+ # Address issue #2276
+ class C:
+ pass
+ a = np.zeros(1)
+
+ def assign(v):
+ a[0] = v
+
+ assert_raises((AttributeError, TypeError), assign, C())
+ assert_raises(ValueError, assign, [1])
+
+ @pytest.mark.filterwarnings(
+ "ignore:.*set_string_function.*:DeprecationWarning"
+ )
+ def test_unicode_assignment(self):
+ # gh-5049
+ from numpy._core.arrayprint import set_printoptions
+
+ @contextmanager
+ def inject_str(s):
+ """ replace ndarray.__str__ temporarily """
+ set_printoptions(formatter={"all": lambda x: s})
+ try:
+ yield
+ finally:
+ set_printoptions()
+
+ a1d = np.array(['test'])
+ a0d = np.array('done')
+ with inject_str('bad'):
+ a1d[0] = a0d # previously this would invoke __str__
+ assert_equal(a1d[0], 'done')
+
+ # this would crash for the same reason
+ np.array([np.array('\xe5\xe4\xf6')])
+
+ def test_stringlike_empty_list(self):
+ # gh-8902
+ u = np.array(['done'])
+ b = np.array([b'done'])
+
+ class bad_sequence:
+ def __getitem__(self, _, /): pass
+ def __len__(self): raise RuntimeError
+
+ assert_raises(ValueError, operator.setitem, u, 0, [])
+ assert_raises(ValueError, operator.setitem, b, 0, [])
+
+ assert_raises(ValueError, operator.setitem, u, 0, bad_sequence())
+ assert_raises(ValueError, operator.setitem, b, 0, bad_sequence())
+
+ def test_longdouble_assignment(self):
+ # only relevant if longdouble is larger than float
+ # we're looking for loss of precision
+
+ for dtype in (np.longdouble, np.clongdouble):
+ # gh-8902
+ tinyb = np.nextafter(np.longdouble(0), 1).astype(dtype)
+ tinya = np.nextafter(np.longdouble(0), -1).astype(dtype)
+
+ # construction
+ tiny1d = np.array([tinya])
+ assert_equal(tiny1d[0], tinya)
+
+ # scalar = scalar
+ tiny1d[0] = tinyb
+ assert_equal(tiny1d[0], tinyb)
+
+ # 0d = scalar
+ tiny1d[0, ...] = tinya
+ assert_equal(tiny1d[0], tinya)
+
+ # 0d = 0d
+ tiny1d[0, ...] = tinyb[...]
+ assert_equal(tiny1d[0], tinyb)
+
+ # scalar = 0d
+ tiny1d[0] = tinyb[...]
+ assert_equal(tiny1d[0], tinyb)
+
+ arr = np.array([np.array(tinya)])
+ assert_equal(arr[0], tinya)
+
+ def test_cast_to_string(self):
+ # cast to str should do "str(scalar)", not "str(scalar.item())"
+ # When converting a float to a string via array assignment, we
+ # want to ensure that the conversion uses str(scalar) to preserve
+ # the expected precision.
+ a = np.zeros(1, dtype='S20')
+ a[:] = np.array(['1.12345678901234567890'], dtype='f8')
+ assert_equal(a[0], b"1.1234567890123457")
+
+
+class TestDtypedescr:
+ def test_construction(self):
+ d1 = np.dtype('i4')
+ assert_equal(d1, np.dtype(np.int32))
+ d2 = np.dtype('f8')
+ assert_equal(d2, np.dtype(np.float64))
+
+ def test_byteorders(self):
+ assert_(np.dtype('i4'))
+ assert_(np.dtype([('a', 'i4')]))
+
+ def test_structured_non_void(self):
+ fields = [('a', ' ndmax validation
+ data = np.array([[1, 2, 3], [4, 5, 6]])
+ with pytest.raises(ValueError, match="object too deep for desired array"):
+ np.array(data, ndmax=1, dtype=object)
+
+
+class TestStructured:
+ def test_subarray_field_access(self):
+ a = np.zeros((3, 5), dtype=[('a', ('i4', (2, 2)))])
+ a['a'] = np.arange(60).reshape(3, 5, 2, 2)
+
+ # Since the subarray is always in C-order, a transpose
+ # does not swap the subarray:
+ assert_array_equal(a.T['a'], a['a'].transpose(1, 0, 2, 3))
+
+ # In Fortran order, the subarray gets appended
+ # like in all other cases, not prepended as a special case
+ b = a.copy(order='F')
+ assert_equal(a['a'].shape, b['a'].shape)
+ assert_equal(a.T['a'].shape, a.T.copy()['a'].shape)
+
+ def test_subarray_comparison(self):
+ # Check that comparisons between record arrays with
+ # multi-dimensional field types work properly
+ a = np.rec.fromrecords(
+ [([1, 2, 3], 'a', [[1, 2], [3, 4]]), ([3, 3, 3], 'b', [[0, 0], [0, 0]])],
+ dtype=[('a', ('f4', 3)), ('b', object), ('c', ('i4', (2, 2)))])
+ b = a.copy()
+ assert_equal(a == b, [True, True])
+ assert_equal(a != b, [False, False])
+ b[1].b = 'c'
+ assert_equal(a == b, [True, False])
+ assert_equal(a != b, [False, True])
+ for i in range(3):
+ b[0].a = a[0].a
+ b[0].a[i] = 5
+ assert_equal(a == b, [False, False])
+ assert_equal(a != b, [True, True])
+ for i in range(2):
+ for j in range(2):
+ b = a.copy()
+ b[0].c[i, j] = 10
+ assert_equal(a == b, [False, True])
+ assert_equal(a != b, [True, False])
+
+ # Check that broadcasting with a subarray works, including cases that
+ # require promotion to work:
+ a = np.array([[(0,)], [(1,)]], dtype=[('a', 'f8')])
+ b = np.array([(0,), (0,), (1,)], dtype=[('a', 'f8')])
+ assert_equal(a == b, [[True, True, False], [False, False, True]])
+ assert_equal(b == a, [[True, True, False], [False, False, True]])
+ a = np.array([[(0,)], [(1,)]], dtype=[('a', 'f8', (1,))])
+ b = np.array([(0,), (0,), (1,)], dtype=[('a', 'f8', (1,))])
+ assert_equal(a == b, [[True, True, False], [False, False, True]])
+ assert_equal(b == a, [[True, True, False], [False, False, True]])
+ a = np.array([[([0, 0],)], [([1, 1],)]], dtype=[('a', 'f8', (2,))])
+ b = np.array([([0, 0],), ([0, 1],), ([1, 1],)], dtype=[('a', 'f8', (2,))])
+ assert_equal(a == b, [[True, False, False], [False, False, True]])
+ assert_equal(b == a, [[True, False, False], [False, False, True]])
+
+ # Check that broadcasting Fortran-style arrays with a subarray work
+ a = np.array([[([0, 0],)], [([1, 1],)]], dtype=[('a', 'f8', (2,))], order='F')
+ b = np.array([([0, 0],), ([0, 1],), ([1, 1],)], dtype=[('a', 'f8', (2,))])
+ assert_equal(a == b, [[True, False, False], [False, False, True]])
+ assert_equal(b == a, [[True, False, False], [False, False, True]])
+
+ # Check that incompatible sub-array shapes don't result to broadcasting
+ x = np.zeros((1,), dtype=[('a', ('f4', (1, 2))), ('b', 'i1')])
+ y = np.zeros((1,), dtype=[('a', ('f4', (2,))), ('b', 'i1')])
+ # The main importance is that it does not return True:
+ with pytest.raises(TypeError):
+ x == y
+
+ x = np.zeros((1,), dtype=[('a', ('f4', (2, 1))), ('b', 'i1')])
+ y = np.zeros((1,), dtype=[('a', ('f4', (2,))), ('b', 'i1')])
+ # The main importance is that it does not return True:
+ with pytest.raises(TypeError):
+ x == y
+
+ def test_empty_structured_array_comparison(self):
+ # Check that comparison works on empty arrays with nontrivially
+ # shaped fields
+ a = np.zeros(0, [('a', 'i8'), ('b', 'f8')])
+ assert_equal(a == b, [False, True])
+ assert_equal(a != b, [True, False])
+
+ a = np.array([(5, 42), (10, 1)], dtype=[('a', '>f8'), ('b', 'i8')])
+ assert_equal(a == b, [False, True])
+ assert_equal(a != b, [True, False])
+
+ # Including with embedded subarray dtype (although subarray comparison
+ # itself may still be a bit weird and compare the raw data)
+ a = np.array([(5, 42), (10, 1)], dtype=[('a', '10>f8'), ('b', '5i8')])
+ assert_equal(a == b, [False, True])
+ assert_equal(a != b, [True, False])
+
+ @pytest.mark.parametrize("op", [
+ operator.eq, lambda x, y: operator.eq(y, x),
+ operator.ne, lambda x, y: operator.ne(y, x)])
+ def test_void_comparison_failures(self, op):
+ # In principle, one could decide to return an array of False for some
+ # if comparisons are impossible. But right now we return TypeError
+ # when "void" dtype are involved.
+ x = np.zeros(3, dtype=[('a', 'i1')])
+ y = np.zeros(3)
+ # Cannot compare non-structured to structured:
+ with pytest.raises(TypeError):
+ op(x, y)
+
+ # Added title prevents promotion, but casts are OK:
+ y = np.zeros(3, dtype=[(('title', 'a'), 'i1')])
+ assert np.can_cast(y.dtype, x.dtype)
+ with pytest.raises(TypeError):
+ op(x, y)
+
+ x = np.zeros(3, dtype="V7")
+ y = np.zeros(3, dtype="V8")
+ with pytest.raises(TypeError):
+ op(x, y)
+
+ def test_casting(self):
+ # Check that casting a structured array to change its byte order
+ # works
+ a = np.array([(1,)], dtype=[('a', 'i4')], casting='unsafe'))
+ b = a.astype([('a', '>i4')])
+ a_tmp = a.byteswap()
+ a_tmp = a_tmp.view(a_tmp.dtype.newbyteorder())
+ assert_equal(b, a_tmp)
+ assert_equal(a['a'][0], b['a'][0])
+
+ # Check that equality comparison works on structured arrays if
+ # they are 'equiv'-castable
+ a = np.array([(5, 42), (10, 1)], dtype=[('a', '>i4'), ('b', 'f8')])
+ assert_(np.can_cast(a.dtype, b.dtype, casting='equiv'))
+ assert_equal(a == b, [True, True])
+
+ # Check that 'equiv' casting can change byte order
+ assert_(np.can_cast(a.dtype, b.dtype, casting='equiv'))
+ c = a.astype(b.dtype, casting='equiv')
+ assert_equal(a == c, [True, True])
+
+ # Check that 'safe' casting can change byte order and up-cast
+ # fields
+ t = [('a', 'f8')]
+ assert_(np.can_cast(a.dtype, t, casting='safe'))
+ c = a.astype(t, casting='safe')
+ assert_equal((c == np.array([(5, 42), (10, 1)], dtype=t)),
+ [True, True])
+
+ # Check that 'same_kind' casting can change byte order and
+ # change field widths within a "kind"
+ t = [('a', 'f4')]
+ assert_(np.can_cast(a.dtype, t, casting='same_kind'))
+ c = a.astype(t, casting='same_kind')
+ assert_equal((c == np.array([(5, 42), (10, 1)], dtype=t)),
+ [True, True])
+
+ # Check that casting fails if the casting rule should fail on
+ # any of the fields
+ t = [('a', '>i8'), ('b', 'i2'), ('b', 'i8'), ('b', 'i4')]
+ assert_(not np.can_cast(a.dtype, t, casting=casting))
+ t = [('a', '>i4'), ('b', 'i8")
+ ab = np.array([(1, 2)], dtype=[A, B])
+ ba = np.array([(1, 2)], dtype=[B, A])
+ assert_raises(TypeError, np.concatenate, ab, ba)
+ assert_raises(TypeError, np.result_type, ab.dtype, ba.dtype)
+ assert_raises(TypeError, np.promote_types, ab.dtype, ba.dtype)
+
+ # dtypes with same field names/order but different memory offsets
+ # and byte-order are promotable to packed nbo.
+ assert_equal(np.promote_types(ab.dtype, ba[['a', 'b']].dtype),
+ repack_fields(ab.dtype.newbyteorder('N')))
+
+ # gh-13667
+ # dtypes with different fieldnames but castable field types are castable
+ assert_equal(np.can_cast(ab.dtype, ba.dtype), True)
+ assert_equal(ab.astype(ba.dtype).dtype, ba.dtype)
+ assert_equal(np.can_cast('f8,i8', [('f0', 'f8'), ('f1', 'i8')]), True)
+ assert_equal(np.can_cast('f8,i8', [('f1', 'f8'), ('f0', 'i8')]), True)
+ assert_equal(np.can_cast('f8,i8', [('f1', 'i8'), ('f0', 'f8')]), False)
+ assert_equal(np.can_cast('f8,i8', [('f1', 'i8'), ('f0', 'f8')],
+ casting='unsafe'), True)
+
+ ab[:] = ba # make sure assignment still works
+
+ # tests of type-promotion of corresponding fields
+ dt1 = np.dtype([("", "i4")])
+ dt2 = np.dtype([("", "i8")])
+ assert_equal(np.promote_types(dt1, dt2), np.dtype([('f0', 'i8')]))
+ assert_equal(np.promote_types(dt2, dt1), np.dtype([('f0', 'i8')]))
+ assert_raises(TypeError, np.promote_types, dt1, np.dtype([("", "V3")]))
+ assert_equal(np.promote_types('i4,f8', 'i8,f4'),
+ np.dtype([('f0', 'i8'), ('f1', 'f8')]))
+ # test nested case
+ dt1nest = np.dtype([("", dt1)])
+ dt2nest = np.dtype([("", dt2)])
+ assert_equal(np.promote_types(dt1nest, dt2nest),
+ np.dtype([('f0', np.dtype([('f0', 'i8')]))]))
+
+ # note that offsets are lost when promoting:
+ dt = np.dtype({'names': ['x'], 'formats': ['i4'], 'offsets': [8]})
+ a = np.ones(3, dtype=dt)
+ assert_equal(np.concatenate([a, a]).dtype, np.dtype([('x', 'i4')]))
+
+ @pytest.mark.parametrize("dtype_dict", [
+ {"names": ["a", "b"], "formats": ["i4", "f"], "itemsize": 100},
+ {"names": ["a", "b"], "formats": ["i4", "f"],
+ "offsets": [0, 12]}])
+ @pytest.mark.parametrize("align", [True, False])
+ def test_structured_promotion_packs(self, dtype_dict, align):
+ # Structured dtypes are packed when promoted (we consider the packed
+ # form to be "canonical"), so tere is no extra padding.
+ dtype = np.dtype(dtype_dict, align=align)
+ # Remove non "canonical" dtype options:
+ dtype_dict.pop("itemsize", None)
+ dtype_dict.pop("offsets", None)
+ expected = np.dtype(dtype_dict, align=align)
+
+ res = np.promote_types(dtype, dtype)
+ assert res.itemsize == expected.itemsize
+ assert res.fields == expected.fields
+
+ # But the "expected" one, should just be returned unchanged:
+ res = np.promote_types(expected, expected)
+ assert res is expected
+
+ def test_structured_asarray_is_view(self):
+ # A scalar viewing an array preserves its view even when creating a
+ # new array. This test documents behaviour, it may not be the best
+ # desired behaviour.
+ arr = np.array([1], dtype="i,i")
+ scalar = arr[0]
+ assert not scalar.flags.owndata # view into the array
+ assert np.asarray(scalar).base is scalar
+ # But never when a dtype is passed in:
+ assert np.asarray(scalar, dtype=scalar.dtype).base is None
+ # A scalar which owns its data does not have this property.
+ # It is not easy to create one, one method is to use pickle:
+ scalar = pickle.loads(pickle.dumps(scalar))
+ assert scalar.flags.owndata
+ assert np.asarray(scalar).base is None
+
+class TestBool:
+ def test_test_interning(self):
+ a0 = np.bool(0)
+ b0 = np.bool(False)
+ assert_(a0 is b0)
+ a1 = np.bool(1)
+ b1 = np.bool(True)
+ assert_(a1 is b1)
+ assert_(np.array([True])[0] is a1)
+ assert_(np.array(True)[()] is a1)
+
+ def test_sum(self):
+ d = np.ones(101, dtype=bool)
+ assert_equal(d.sum(), d.size)
+ assert_equal(d[::2].sum(), d[::2].size)
+ assert_equal(d[::-2].sum(), d[::-2].size)
+
+ d = np.frombuffer(b'\xff\xff' * 100, dtype=bool)
+ assert_equal(d.sum(), d.size)
+ assert_equal(d[::2].sum(), d[::2].size)
+ assert_equal(d[::-2].sum(), d[::-2].size)
+
+ def check_count_nonzero(self, power, length):
+ powers = [2 ** i for i in range(length)]
+ for i in range(2**power):
+ l = [(i & x) != 0 for x in powers]
+ a = np.array(l, dtype=bool)
+ c = builtins.sum(l)
+ assert_equal(np.count_nonzero(a), c)
+ av = a.view(np.uint8)
+ av *= 3
+ assert_equal(np.count_nonzero(a), c)
+ av *= 4
+ assert_equal(np.count_nonzero(a), c)
+ av[av != 0] = 0xFF
+ assert_equal(np.count_nonzero(a), c)
+
+ def test_count_nonzero(self):
+ # check all 12 bit combinations in a length 17 array
+ # covers most cases of the 16 byte unrolled code
+ self.check_count_nonzero(12, 17)
+
+ @pytest.mark.slow
+ def test_count_nonzero_all(self):
+ # check all combinations in a length 17 array
+ # covers all cases of the 16 byte unrolled code
+ self.check_count_nonzero(17, 17)
+
+ def test_count_nonzero_unaligned(self):
+ # prevent mistakes as e.g. gh-4060
+ for o in range(7):
+ a = np.zeros((18,), dtype=bool)[o + 1:]
+ a[:o] = True
+ assert_equal(np.count_nonzero(a), builtins.sum(a.tolist()))
+ a = np.ones((18,), dtype=bool)[o + 1:]
+ a[:o] = False
+ assert_equal(np.count_nonzero(a), builtins.sum(a.tolist()))
+
+ def _test_cast_from_flexible(self, dtype):
+ # empty string -> false
+ for n in range(3):
+ v = np.array(b'', (dtype, n))
+ assert_equal(bool(v), False)
+ assert_equal(bool(v[()]), False)
+ assert_equal(v.astype(bool), False)
+ assert_(isinstance(v.astype(bool), np.ndarray))
+ assert_(v[()].astype(bool) is np.False_)
+
+ # anything else -> true
+ for n in range(1, 4):
+ for val in [b'a', b'0', b' ']:
+ v = np.array(val, (dtype, n))
+ assert_equal(bool(v), True)
+ assert_equal(bool(v[()]), True)
+ assert_equal(v.astype(bool), True)
+ assert_(isinstance(v.astype(bool), np.ndarray))
+ assert_(v[()].astype(bool) is np.True_)
+
+ def test_cast_from_void(self):
+ self._test_cast_from_flexible(np.void)
+
+ def test_cast_from_unicode(self):
+ self._test_cast_from_flexible(np.str_)
+
+ def test_cast_from_bytes(self):
+ self._test_cast_from_flexible(np.bytes_)
+
+
+class TestZeroSizeFlexible:
+ @staticmethod
+ def _zeros(shape, dtype=str):
+ dtype = np.dtype(dtype)
+ if dtype == np.void:
+ return np.zeros(shape, dtype=(dtype, 0))
+
+ # not constructable directly
+ dtype = np.dtype([('x', dtype, 0)])
+ return np.zeros(shape, dtype=dtype)['x']
+
+ def test_create(self):
+ zs = self._zeros(10, bytes)
+ assert_equal(zs.itemsize, 0)
+ zs = self._zeros(10, np.void)
+ assert_equal(zs.itemsize, 0)
+ zs = self._zeros(10, str)
+ assert_equal(zs.itemsize, 0)
+
+ def _test_sort_partition(self, name, kinds, **kwargs):
+ # Previously, these would all hang
+ for dt in [bytes, np.void, str]:
+ zs = self._zeros(10, dt)
+ sort_method = getattr(zs, name)
+ sort_func = getattr(np, name)
+ for kind in kinds:
+ sort_method(kind=kind, **kwargs)
+ sort_func(zs, kind=kind, **kwargs)
+
+ def test_sort(self):
+ self._test_sort_partition('sort', kinds='qhs')
+
+ def test_argsort(self):
+ self._test_sort_partition('argsort', kinds='qhs')
+
+ def test_partition(self):
+ self._test_sort_partition('partition', kinds=['introselect'], kth=2)
+
+ def test_argpartition(self):
+ self._test_sort_partition('argpartition', kinds=['introselect'], kth=2)
+
+ def test_resize(self):
+ # previously an error
+ for dt in [bytes, np.void, str]:
+ zs = self._zeros(10, dt)
+ zs.resize(25)
+ zs.resize((10, 10))
+
+ def test_view(self):
+ for dt in [bytes, np.void, str]:
+ zs = self._zeros(10, dt)
+
+ # viewing as itself should be allowed
+ assert_equal(zs.view(dt).dtype, np.dtype(dt))
+
+ # viewing as any non-empty type gives an empty result
+ assert_equal(zs.view((dt, 1)).shape, (0,))
+
+ def test_dumps(self):
+ zs = self._zeros(10, int)
+ assert_equal(zs, pickle.loads(zs.dumps()))
+
+ def test_pickle(self):
+ for proto in range(2, pickle.HIGHEST_PROTOCOL + 1):
+ for dt in [bytes, np.void, str]:
+ zs = self._zeros(10, dt)
+ p = pickle.dumps(zs, protocol=proto)
+ zs2 = pickle.loads(p)
+
+ assert_equal(zs.dtype, zs2.dtype)
+
+ def test_pickle_empty(self):
+ """Checking if an empty array pickled and un-pickled will not cause a
+ segmentation fault"""
+ arr = np.array([]).reshape(999999, 0)
+ pk_dmp = pickle.dumps(arr)
+ pk_load = pickle.loads(pk_dmp)
+
+ assert pk_load.size == 0
+
+ @pytest.mark.skipif(pickle.HIGHEST_PROTOCOL < 5,
+ reason="requires pickle protocol 5")
+ def test_pickle_with_buffercallback(self):
+ array = np.arange(10)
+ buffers = []
+ bytes_string = pickle.dumps(array, buffer_callback=buffers.append,
+ protocol=5)
+ array_from_buffer = pickle.loads(bytes_string, buffers=buffers)
+ # when using pickle protocol 5 with buffer callbacks,
+ # array_from_buffer is reconstructed from a buffer holding a view
+ # to the initial array's data, so modifying an element in array
+ # should modify it in array_from_buffer too.
+ array[0] = -1
+ assert array_from_buffer[0] == -1, array_from_buffer[0]
+
+
+class TestMethods:
+
+ sort_kinds = ['quicksort', 'heapsort', 'stable']
+
+ def test_all_where(self):
+ a = np.array([[True, False, True],
+ [False, False, False],
+ [True, True, True]])
+ wh_full = np.array([[True, False, True],
+ [False, False, False],
+ [True, False, True]])
+ wh_lower = np.array([[False],
+ [False],
+ [True]])
+ for _ax in [0, None]:
+ assert_equal(a.all(axis=_ax, where=wh_lower),
+ np.all(a[wh_lower[:, 0], :], axis=_ax))
+ assert_equal(np.all(a, axis=_ax, where=wh_lower),
+ a[wh_lower[:, 0], :].all(axis=_ax))
+
+ assert_equal(a.all(where=wh_full), True)
+ assert_equal(np.all(a, where=wh_full), True)
+ assert_equal(a.all(where=False), True)
+ assert_equal(np.all(a, where=False), True)
+
+ def test_any_where(self):
+ a = np.array([[True, False, True],
+ [False, False, False],
+ [True, True, True]])
+ wh_full = np.array([[False, True, False],
+ [True, True, True],
+ [False, False, False]])
+ wh_middle = np.array([[False],
+ [True],
+ [False]])
+ for _ax in [0, None]:
+ assert_equal(a.any(axis=_ax, where=wh_middle),
+ np.any(a[wh_middle[:, 0], :], axis=_ax))
+ assert_equal(np.any(a, axis=_ax, where=wh_middle),
+ a[wh_middle[:, 0], :].any(axis=_ax))
+ assert_equal(a.any(where=wh_full), False)
+ assert_equal(np.any(a, where=wh_full), False)
+ assert_equal(a.any(where=False), False)
+ assert_equal(np.any(a, where=False), False)
+
+ @pytest.mark.parametrize("dtype",
+ ["i8", "U10", "object", "datetime64[ms]"])
+ def test_any_and_all_result_dtype(self, dtype):
+ arr = np.ones(3, dtype=dtype)
+ assert arr.any().dtype == np.bool
+ assert arr.all().dtype == np.bool
+
+ def test_any_and_all_object_dtype(self):
+ # (seberg) Not sure we should even allow dtype here, but it is.
+ arr = np.ones(3, dtype=object)
+ # keepdims to prevent getting a scalar.
+ assert arr.any(dtype=object, keepdims=True).dtype == object
+ assert arr.all(dtype=object, keepdims=True).dtype == object
+
+ def test_compress(self):
+ tgt = [[5, 6, 7, 8, 9]]
+ arr = np.arange(10).reshape(2, 5)
+ out = arr.compress([0, 1], axis=0)
+ assert_equal(out, tgt)
+
+ tgt = [[1, 3], [6, 8]]
+ out = arr.compress([0, 1, 0, 1, 0], axis=1)
+ assert_equal(out, tgt)
+
+ tgt = [[1], [6]]
+ arr = np.arange(10).reshape(2, 5)
+ out = arr.compress([0, 1], axis=1)
+ assert_equal(out, tgt)
+
+ arr = np.arange(10).reshape(2, 5)
+ out = arr.compress([0, 1])
+ assert_equal(out, 1)
+
+ def test_choose(self):
+ x = 2 * np.ones((3,), dtype=int)
+ y = 3 * np.ones((3,), dtype=int)
+ x2 = 2 * np.ones((2, 3), dtype=int)
+ y2 = 3 * np.ones((2, 3), dtype=int)
+ ind = np.array([0, 0, 1])
+
+ A = ind.choose((x, y))
+ assert_equal(A, [2, 2, 3])
+
+ A = ind.choose((x2, y2))
+ assert_equal(A, [[2, 2, 3], [2, 2, 3]])
+
+ A = ind.choose((x, y2))
+ assert_equal(A, [[2, 2, 3], [2, 2, 3]])
+
+ oned = np.ones(1)
+ # gh-12031, caused SEGFAULT
+ assert_raises(TypeError, oned.choose, np.void(0), [oned])
+
+ out = np.array(0)
+ ret = np.choose(np.array(1), [10, 20, 30], out=out)
+ assert out is ret
+ assert_equal(out[()], 20)
+
+ # gh-6272 check overlap on out
+ x = np.arange(5)
+ y = np.choose([0, 0, 0], [x[:3], x[:3], x[:3]], out=x[1:4], mode='wrap')
+ assert_equal(y, np.array([0, 1, 2]))
+
+ # gh_28206 check fail when out not writeable
+ x = np.arange(3)
+ out = np.zeros(3)
+ out.setflags(write=False)
+ assert_raises(ValueError, np.choose, [0, 1, 2], [x, x, x], out=out)
+
+ def test_prod(self):
+ ba = [1, 2, 10, 11, 6, 5, 4]
+ ba2 = [[1, 2, 3, 4], [5, 6, 7, 9], [10, 3, 4, 5]]
+
+ for ctype in [np.int16, np.uint16, np.int32, np.uint32,
+ np.float32, np.float64, np.complex64, np.complex128]:
+ a = np.array(ba, ctype)
+ a2 = np.array(ba2, ctype)
+ if ctype in ['1', 'b']:
+ assert_raises(ArithmeticError, a.prod)
+ assert_raises(ArithmeticError, a2.prod, axis=1)
+ else:
+ assert_equal(a.prod(axis=0), 26400)
+ assert_array_equal(a2.prod(axis=0),
+ np.array([50, 36, 84, 180], ctype))
+ assert_array_equal(a2.prod(axis=-1),
+ np.array([24, 1890, 600], ctype))
+
+ @pytest.mark.parametrize('dtype', [None, object])
+ def test_repeat(self, dtype):
+ m = np.array([1, 2, 3, 4, 5, 6], dtype=dtype)
+ m_rect = m.reshape((2, 3))
+
+ A = m.repeat([1, 3, 2, 1, 1, 2])
+ assert_equal(A, [1, 2, 2, 2, 3,
+ 3, 4, 5, 6, 6])
+
+ A = m.repeat(2)
+ assert_equal(A, [1, 1, 2, 2, 3, 3,
+ 4, 4, 5, 5, 6, 6])
+
+ A = m_rect.repeat([2, 1], axis=0)
+ assert_equal(A, [[1, 2, 3],
+ [1, 2, 3],
+ [4, 5, 6]])
+
+ A = m_rect.repeat([1, 3, 2], axis=1)
+ assert_equal(A, [[1, 2, 2, 2, 3, 3],
+ [4, 5, 5, 5, 6, 6]])
+
+ A = m_rect.repeat(2, axis=0)
+ assert_equal(A, [[1, 2, 3],
+ [1, 2, 3],
+ [4, 5, 6],
+ [4, 5, 6]])
+
+ A = m_rect.repeat(2, axis=1)
+ assert_equal(A, [[1, 1, 2, 2, 3, 3],
+ [4, 4, 5, 5, 6, 6]])
+
+ def test_reshape(self):
+ arr = np.array([[1, 2, 3], [4, 5, 6], [7, 8, 9], [10, 11, 12]])
+
+ tgt = [[1, 2, 3, 4, 5, 6], [7, 8, 9, 10, 11, 12]]
+ assert_equal(arr.reshape(2, 6), tgt)
+
+ tgt = [[1, 2, 3, 4], [5, 6, 7, 8], [9, 10, 11, 12]]
+ assert_equal(arr.reshape(3, 4), tgt)
+
+ tgt = [[1, 10, 8, 6], [4, 2, 11, 9], [7, 5, 3, 12]]
+ assert_equal(arr.reshape((3, 4), order='F'), tgt)
+
+ tgt = [[1, 4, 7, 10], [2, 5, 8, 11], [3, 6, 9, 12]]
+ assert_equal(arr.T.reshape((3, 4), order='C'), tgt)
+
+ def test_round(self):
+ def check_round(arr, expected, *round_args):
+ assert_equal(arr.round(*round_args), expected)
+ # With output array
+ out = np.zeros_like(arr)
+ res = arr.round(*round_args, out=out)
+ assert_equal(out, expected)
+ assert out is res
+
+ check_round(np.array([1, 2, 3]), [1, 2, 3])
+ check_round(np.array([1.2, 1.5]), [1, 2])
+ check_round(np.array(1.5), 2)
+ check_round(np.array([12.2, 15.5]), [10, 20], -1)
+ check_round(np.array([12.15, 15.51]), [12.2, 15.5], 1)
+ # Complex rounding
+ check_round(np.array([4.5 + 1.5j]), [4 + 2j])
+ check_round(np.array([12.5 + 15.5j]), [10 + 20j], -1)
+
+ @pytest.mark.parametrize('dt', ['uint8', int, float, complex])
+ def test_round_copies(self, dt):
+ a = np.arange(3, dtype=dt)
+ assert not np.shares_memory(a.round(), a)
+ assert not np.shares_memory(a.round(decimals=2), a)
+
+ out = np.empty(3, dtype=dt)
+ assert not np.shares_memory(a.round(out=out), a)
+
+ a = np.arange(12).astype(dt).reshape(3, 4).T
+
+ assert a.flags.f_contiguous
+ assert np.round(a).flags.f_contiguous
+
+ def test_squeeze(self):
+ a = np.array([[[1], [2], [3]]])
+ assert_equal(a.squeeze(), [1, 2, 3])
+ assert_equal(a.squeeze(axis=(0,)), [[1], [2], [3]])
+ assert_raises(ValueError, a.squeeze, axis=(1,))
+ assert_equal(a.squeeze(axis=(2,)), [[1, 2, 3]])
+
+ def test_transpose(self):
+ a = np.array([[1, 2], [3, 4]])
+ assert_equal(a.transpose(), [[1, 3], [2, 4]])
+ assert_raises(ValueError, lambda: a.transpose(0))
+ assert_raises(ValueError, lambda: a.transpose(0, 0))
+ assert_raises(ValueError, lambda: a.transpose(0, 1, 2))
+
+ def test_sort(self):
+ # test ordering for floats and complex containing nans. It is only
+ # necessary to check the less-than comparison, so sorts that
+ # only follow the insertion sort path are sufficient. We only
+ # test doubles and complex doubles as the logic is the same.
+
+ # check doubles
+ msg = "Test real sort order with nans"
+ a = np.array([np.nan, 1, 0])
+ b = np.sort(a)
+ assert_equal(b, a[::-1], msg)
+ # check complex
+ msg = "Test complex sort order with nans"
+ a = np.zeros(9, dtype=np.complex128)
+ a.real += [np.nan, np.nan, np.nan, 1, 0, 1, 1, 0, 0]
+ a.imag += [np.nan, 1, 0, np.nan, np.nan, 1, 0, 1, 0]
+ b = np.sort(a)
+ assert_equal(b, a[::-1], msg)
+
+ with assert_raises_regex(
+ ValueError,
+ "`kind` and keyword parameters can't be provided at the same time"
+ ):
+ np.sort(a, kind="stable", stable=True)
+
+ # all c scalar sorts use the same code with different types
+ # so it suffices to run a quick check with one type. The number
+ # of sorted items must be greater than ~50 to check the actual
+ # algorithm because quick and merge sort fall over to insertion
+ # sort for small arrays.
+
+ @pytest.mark.parametrize('dtype', [np.uint8, np.uint16, np.uint32, np.uint64,
+ np.float16, np.float32, np.float64,
+ np.longdouble])
+ def test_sort_unsigned(self, dtype):
+ a = np.arange(101, dtype=dtype)
+ b = a[::-1].copy()
+ for kind in self.sort_kinds:
+ msg = f"scalar sort, kind={kind}"
+ c = a.copy()
+ c.sort(kind=kind)
+ assert_equal(c, a, msg)
+ c = b.copy()
+ c.sort(kind=kind)
+ assert_equal(c, a, msg)
+
+ @pytest.mark.parametrize('dtype',
+ [np.int8, np.int16, np.int32, np.int64, np.float16,
+ np.float32, np.float64, np.longdouble])
+ def test_sort_signed(self, dtype):
+ a = np.arange(-50, 51, dtype=dtype)
+ b = a[::-1].copy()
+ for kind in self.sort_kinds:
+ msg = f"scalar sort, kind={kind}"
+ c = a.copy()
+ c.sort(kind=kind)
+ assert_equal(c, a, msg)
+ c = b.copy()
+ c.sort(kind=kind)
+ assert_equal(c, a, msg)
+
+ @pytest.mark.parametrize('dtype', [np.float32, np.float64, np.longdouble])
+ @pytest.mark.parametrize('part', ['real', 'imag'])
+ def test_sort_complex(self, part, dtype):
+ # test complex sorts. These use the same code as the scalars
+ # but the compare function differs.
+ cdtype = {
+ np.single: np.csingle,
+ np.double: np.cdouble,
+ np.longdouble: np.clongdouble,
+ }[dtype]
+ a = np.arange(-50, 51, dtype=dtype)
+ b = a[::-1].copy()
+ ai = (a * (1 + 1j)).astype(cdtype)
+ bi = (b * (1 + 1j)).astype(cdtype)
+ setattr(ai, part, 1)
+ setattr(bi, part, 1)
+ for kind in self.sort_kinds:
+ msg = f"complex sort, {part} part == 1, kind={kind}"
+ c = ai.copy()
+ c.sort(kind=kind)
+ assert_equal(c, ai, msg)
+ c = bi.copy()
+ c.sort(kind=kind)
+ assert_equal(c, ai, msg)
+
+ def test_sort_complex_byte_swapping(self):
+ # test sorting of complex arrays requiring byte-swapping, gh-5441
+ for endianness in '<>':
+ for dt in np.typecodes['Complex']:
+ arr = np.array([1 + 3.j, 2 + 2.j, 3 + 1.j], dtype=endianness + dt)
+ c = arr.copy()
+ c.sort()
+ msg = f'byte-swapped complex sort, dtype={dt}'
+ assert_equal(c, arr, msg)
+
+ @pytest.mark.parametrize('dtype', [np.bytes_, np.str_])
+ def test_sort_string(self, dtype):
+ # np.array will perform the encoding to bytes for us in the bytes test
+ a = np.array(['aaaaaaaa' + chr(i) for i in range(101)], dtype=dtype)
+ b = a[::-1].copy()
+ for kind in self.sort_kinds:
+ msg = f"kind={kind}"
+ c = a.copy()
+ c.sort(kind=kind)
+ assert_equal(c, a, msg)
+ c = b.copy()
+ c.sort(kind=kind)
+ assert_equal(c, a, msg)
+
+ def test_sort_object(self):
+ # test object array sorts.
+ a = np.empty((101,), dtype=object)
+ a[:] = list(range(101))
+ b = a[::-1]
+ for kind in ['q', 'h', 'm']:
+ msg = f"kind={kind}"
+ c = a.copy()
+ c.sort(kind=kind)
+ assert_equal(c, a, msg)
+ c = b.copy()
+ c.sort(kind=kind)
+ assert_equal(c, a, msg)
+
+ @pytest.mark.parametrize("dt", [
+ np.dtype([('f', float), ('i', int)]),
+ np.dtype([('f', float), ('i', object)])])
+ @pytest.mark.parametrize("step", [1, 2])
+ def test_sort_structured(self, dt, step):
+ # test record array sorts.
+ a = np.array([(i, i) for i in range(101 * step)], dtype=dt)
+ b = a[::-1]
+ for kind in ['q', 'h', 'm']:
+ msg = f"kind={kind}"
+ c = a.copy()[::step]
+ indx = c.argsort(kind=kind)
+ c.sort(kind=kind)
+ assert_equal(c, a[::step], msg)
+ assert_equal(a[::step][indx], a[::step], msg)
+ c = b.copy()[::step]
+ indx = c.argsort(kind=kind)
+ c.sort(kind=kind)
+ assert_equal(c, a[step - 1::step], msg)
+ assert_equal(b[::step][indx], a[step - 1::step], msg)
+
+ @pytest.mark.parametrize('dtype', ['datetime64[D]', 'timedelta64[D]'])
+ def test_sort_time(self, dtype):
+ # test datetime64 and timedelta64 sorts.
+ a = np.arange(0, 101, dtype=dtype)
+ b = a[::-1]
+ for kind in ['q', 'h', 'm']:
+ msg = f"kind={kind}"
+ c = a.copy()
+ c.sort(kind=kind)
+ assert_equal(c, a, msg)
+ c = b.copy()
+ c.sort(kind=kind)
+ assert_equal(c, a, msg)
+
+ def test_sort_axis(self):
+ # check axis handling. This should be the same for all type
+ # specific sorts, so we only check it for one type and one kind
+ a = np.array([[3, 2], [1, 0]])
+ b = np.array([[1, 0], [3, 2]])
+ c = np.array([[2, 3], [0, 1]])
+ d = a.copy()
+ d.sort(axis=0)
+ assert_equal(d, b, "test sort with axis=0")
+ d = a.copy()
+ d.sort(axis=1)
+ assert_equal(d, c, "test sort with axis=1")
+ d = a.copy()
+ d.sort()
+ assert_equal(d, c, "test sort with default axis")
+
+ def test_sort_size_0(self):
+ # check axis handling for multidimensional empty arrays
+ a = np.array([]).reshape((3, 2, 1, 0))
+ for axis in range(-a.ndim, a.ndim):
+ msg = f'test empty array sort with axis={axis}'
+ assert_equal(np.sort(a, axis=axis), a, msg)
+ msg = 'test empty array sort with axis=None'
+ assert_equal(np.sort(a, axis=None), a.ravel(), msg)
+
+ def test_sort_bad_ordering(self):
+ # test generic class with bogus ordering,
+ # should not segfault.
+ class Boom:
+ def __lt__(self, other):
+ return True
+
+ a = np.array([Boom()] * 100, dtype=object)
+ for kind in self.sort_kinds:
+ msg = f"kind={kind}"
+ c = a.copy()
+ c.sort(kind=kind)
+ assert_equal(c, a, msg)
+
+ def test_void_sort(self):
+ # gh-8210 - previously segfaulted
+ for i in range(4):
+ rand = np.random.randint(256, size=4000, dtype=np.uint8)
+ arr = rand.view('V4')
+ arr[::-1].sort()
+
+ dt = np.dtype([('val', 'i4', (1,))])
+ for i in range(4):
+ rand = np.random.randint(256, size=4000, dtype=np.uint8)
+ arr = rand.view(dt)
+ arr[::-1].sort()
+
+ def test_sort_raises(self):
+ # gh-9404
+ arr = np.array([0, datetime.now(), 1], dtype=object)
+ for kind in self.sort_kinds:
+ assert_raises(TypeError, arr.sort, kind=kind)
+ # gh-3879
+
+ class Raiser:
+ def raises_anything(*args, **kwargs):
+ raise TypeError("SOMETHING ERRORED")
+ __eq__ = __ne__ = __lt__ = __gt__ = __ge__ = __le__ = raises_anything
+ arr = np.array([[Raiser(), n] for n in range(10)]).reshape(-1)
+ np.random.shuffle(arr)
+ for kind in self.sort_kinds:
+ assert_raises(TypeError, arr.sort, kind=kind)
+
+ def test_sort_degraded(self):
+ # test degraded dataset would take minutes to run with normal qsort
+ d = np.arange(1000000)
+ do = d.copy()
+ x = d
+ # create a median of 3 killer where each median is the sorted second
+ # last element of the quicksort partition
+ while x.size > 3:
+ mid = x.size // 2
+ x[mid], x[-2] = x[-2], x[mid]
+ x = x[:-2]
+
+ assert_equal(np.sort(d), do)
+ assert_equal(d[np.argsort(d)], do)
+
+ def test_copy(self):
+ def assert_fortran(arr):
+ assert_(arr.flags.fortran)
+ assert_(arr.flags.f_contiguous)
+ assert_(not arr.flags.c_contiguous)
+
+ def assert_c(arr):
+ assert_(not arr.flags.fortran)
+ assert_(not arr.flags.f_contiguous)
+ assert_(arr.flags.c_contiguous)
+
+ a = np.empty((2, 2), order='F')
+ # Test copying a Fortran array
+ assert_c(a.copy())
+ assert_c(a.copy('C'))
+ assert_fortran(a.copy('F'))
+ assert_fortran(a.copy('A'))
+
+ # Now test starting with a C array.
+ a = np.empty((2, 2), order='C')
+ assert_c(a.copy())
+ assert_c(a.copy('C'))
+ assert_fortran(a.copy('F'))
+ assert_c(a.copy('A'))
+
+ @pytest.mark.parametrize("dtype", ['O', np.int32, 'i,O'])
+ def test__deepcopy__(self, dtype):
+ # Force the entry of NULLs into array
+ a = np.empty(4, dtype=dtype)
+ ctypes.memset(a.ctypes.data, 0, a.nbytes)
+
+ # Ensure no error is raised, see gh-21833
+ b = a.__deepcopy__({})
+
+ a[0] = 42
+ with pytest.raises(AssertionError):
+ assert_array_equal(a, b)
+
+ def test__deepcopy___void_scalar(self):
+ # see comments in gh-29643
+ value = np.void('Rex', dtype=[('name', 'U10')])
+ value_deepcopy = value.__deepcopy__(None)
+ value[0] = None
+ assert value_deepcopy[0] == 'Rex'
+
+ @pytest.mark.parametrize("sctype", [np.int64, np.float32, np.float64])
+ def test__deepcopy__scalar(self, sctype):
+ # test optimization from gh-29656
+ value = sctype(1.1)
+ value_deepcopy = value.__deepcopy__(None)
+ assert value is value_deepcopy
+
+ def test__deepcopy__catches_failure(self):
+ class MyObj:
+ def __deepcopy__(self, *args, **kwargs):
+ raise RuntimeError
+
+ arr = np.array([1, MyObj(), 3], dtype='O')
+ with pytest.raises(RuntimeError):
+ arr.__deepcopy__({})
+
+ def test_sort_order(self):
+ # Test sorting an array with fields
+ x1 = np.array([21, 32, 14])
+ x2 = np.array(['my', 'first', 'name'])
+ x3 = np.array([3.1, 4.5, 6.2])
+ r = np.rec.fromarrays([x1, x2, x3], names='id,word,number')
+
+ r.sort(order=['id'])
+ assert_equal(r.id, np.array([14, 21, 32]))
+ assert_equal(r.word, np.array(['name', 'my', 'first']))
+ assert_equal(r.number, np.array([6.2, 3.1, 4.5]))
+
+ r.sort(order=['word'])
+ assert_equal(r.id, np.array([32, 21, 14]))
+ assert_equal(r.word, np.array(['first', 'my', 'name']))
+ assert_equal(r.number, np.array([4.5, 3.1, 6.2]))
+
+ r.sort(order=['number'])
+ assert_equal(r.id, np.array([21, 32, 14]))
+ assert_equal(r.word, np.array(['my', 'first', 'name']))
+ assert_equal(r.number, np.array([3.1, 4.5, 6.2]))
+
+ assert_raises_regex(ValueError, 'duplicate',
+ lambda: r.sort(order=['id', 'id']))
+
+ if sys.byteorder == 'little':
+ strtype = '>i2'
+ else:
+ strtype = '':
+ for dt in np.typecodes['Complex']:
+ arr = np.array([1 + 3.j, 2 + 2.j, 3 + 1.j], dtype=endianness + dt)
+ msg = f'byte-swapped complex argsort, dtype={dt}'
+ assert_equal(arr.argsort(),
+ np.arange(len(arr), dtype=np.intp), msg)
+
+ # test string argsorts.
+ s = 'aaaaaaaa'
+ a = np.array([s + chr(i) for i in range(101)])
+ b = a[::-1].copy()
+ r = np.arange(101)
+ rr = r[::-1]
+ for kind in self.sort_kinds:
+ msg = f"string argsort, kind={kind}"
+ assert_equal(a.copy().argsort(kind=kind), r, msg)
+ assert_equal(b.copy().argsort(kind=kind), rr, msg)
+
+ # test unicode argsorts.
+ s = 'aaaaaaaa'
+ a = np.array([s + chr(i) for i in range(101)], dtype=np.str_)
+ b = a[::-1]
+ r = np.arange(101)
+ rr = r[::-1]
+ for kind in self.sort_kinds:
+ msg = f"unicode argsort, kind={kind}"
+ assert_equal(a.copy().argsort(kind=kind), r, msg)
+ assert_equal(b.copy().argsort(kind=kind), rr, msg)
+
+ # test object array argsorts.
+ a = np.empty((101,), dtype=object)
+ a[:] = list(range(101))
+ b = a[::-1]
+ r = np.arange(101)
+ rr = r[::-1]
+ for kind in self.sort_kinds:
+ msg = f"object argsort, kind={kind}"
+ assert_equal(a.copy().argsort(kind=kind), r, msg)
+ assert_equal(b.copy().argsort(kind=kind), rr, msg)
+
+ # test structured array argsorts.
+ dt = np.dtype([('f', float), ('i', int)])
+ a = np.array([(i, i) for i in range(101)], dtype=dt)
+ b = a[::-1]
+ r = np.arange(101)
+ rr = r[::-1]
+ for kind in self.sort_kinds:
+ msg = f"structured array argsort, kind={kind}"
+ assert_equal(a.copy().argsort(kind=kind), r, msg)
+ assert_equal(b.copy().argsort(kind=kind), rr, msg)
+
+ # test datetime64 argsorts.
+ a = np.arange(0, 101, dtype='datetime64[D]')
+ b = a[::-1]
+ r = np.arange(101)
+ rr = r[::-1]
+ for kind in ['q', 'h', 'm']:
+ msg = f"datetime64 argsort, kind={kind}"
+ assert_equal(a.copy().argsort(kind=kind), r, msg)
+ assert_equal(b.copy().argsort(kind=kind), rr, msg)
+
+ # test timedelta64 argsorts.
+ a = np.arange(0, 101, dtype='timedelta64[D]')
+ b = a[::-1]
+ r = np.arange(101)
+ rr = r[::-1]
+ for kind in ['q', 'h', 'm']:
+ msg = f"timedelta64 argsort, kind={kind}"
+ assert_equal(a.copy().argsort(kind=kind), r, msg)
+ assert_equal(b.copy().argsort(kind=kind), rr, msg)
+
+ # check axis handling. This should be the same for all type
+ # specific argsorts, so we only check it for one type and one kind
+ a = np.array([[3, 2], [1, 0]])
+ b = np.array([[1, 1], [0, 0]])
+ c = np.array([[1, 0], [1, 0]])
+ assert_equal(a.copy().argsort(axis=0), b)
+ assert_equal(a.copy().argsort(axis=1), c)
+ assert_equal(a.copy().argsort(), c)
+
+ # check axis handling for multidimensional empty arrays
+ a = np.array([]).reshape((3, 2, 1, 0))
+ for axis in range(-a.ndim, a.ndim):
+ msg = f'test empty array argsort with axis={axis}'
+ assert_equal(np.argsort(a, axis=axis),
+ np.zeros_like(a, dtype=np.intp), msg)
+ msg = 'test empty array argsort with axis=None'
+ assert_equal(np.argsort(a, axis=None),
+ np.zeros_like(a.ravel(), dtype=np.intp), msg)
+
+ # check that stable argsorts are stable
+ r = np.arange(100)
+ # scalars
+ a = np.zeros(100)
+ assert_equal(a.argsort(kind='m'), r)
+ # complex
+ a = np.zeros(100, dtype=complex)
+ assert_equal(a.argsort(kind='m'), r)
+ # string
+ a = np.array(['aaaaaaaaa' for i in range(100)])
+ assert_equal(a.argsort(kind='m'), r)
+ # unicode
+ a = np.array(['aaaaaaaaa' for i in range(100)], dtype=np.str_)
+ assert_equal(a.argsort(kind='m'), r)
+
+ with assert_raises_regex(
+ ValueError,
+ "`kind` and keyword parameters can't be provided at the same time"
+ ):
+ np.argsort(a, kind="stable", stable=True)
+
+ def test_sort_unicode_kind(self):
+ d = np.arange(10)
+ k = b'\xc3\xa4'.decode("UTF8")
+ assert_raises(ValueError, d.sort, kind=k)
+ assert_raises(ValueError, d.argsort, kind=k)
+
+ @pytest.mark.parametrize('a', [
+ np.array([0, 1, np.nan], dtype=np.float16),
+ np.array([0, 1, np.nan], dtype=np.float32),
+ np.array([0, 1, np.nan]),
+ ])
+ def test_searchsorted_floats(self, a):
+ # test for floats arrays containing nans. Explicitly test
+ # half, single, and double precision floats to verify that
+ # the NaN-handling is correct.
+ msg = f"Test real ({a.dtype}) searchsorted with nans, side='l'"
+ b = a.searchsorted(a, side='left')
+ assert_equal(b, np.arange(3), msg)
+ msg = f"Test real ({a.dtype}) searchsorted with nans, side='r'"
+ b = a.searchsorted(a, side='right')
+ assert_equal(b, np.arange(1, 4), msg)
+ # check keyword arguments
+ a.searchsorted(v=1)
+ x = np.array([0, 1, np.nan], dtype='float32')
+ y = np.searchsorted(x, x[-1])
+ assert_equal(y, 2)
+
+ def test_searchsorted_complex(self):
+ # test for complex arrays containing nans.
+ # The search sorted routines use the compare functions for the
+ # array type, so this checks if that is consistent with the sort
+ # order.
+ # check double complex
+ a = np.zeros(9, dtype=np.complex128)
+ a.real += [0, 0, 1, 1, 0, 1, np.nan, np.nan, np.nan]
+ a.imag += [0, 1, 0, 1, np.nan, np.nan, 0, 1, np.nan]
+ msg = "Test complex searchsorted with nans, side='l'"
+ b = a.searchsorted(a, side='left')
+ assert_equal(b, np.arange(9), msg)
+ msg = "Test complex searchsorted with nans, side='r'"
+ b = a.searchsorted(a, side='right')
+ assert_equal(b, np.arange(1, 10), msg)
+ msg = "Test searchsorted with little endian, side='l'"
+ a = np.array([0, 128], dtype=' p[:, i]).all(),
+ msg="%d: %r < %r" % (i, p[:, i], p[:, i + 1:].T))
+ for row in range(p.shape[0]):
+ self.assert_partitioned(p[row], [i])
+ self.assert_partitioned(parg[row], [i])
+
+ p = np.partition(d0, i, axis=0, kind=k)
+ parg = d0[np.argpartition(d0, i, axis=0, kind=k),
+ np.arange(d0.shape[1])[None, :]]
+ aae(p[i, :], np.array([i] * d1.shape[0], dtype=dt))
+ # array_less does not seem to work right
+ at((p[:i, :] <= p[i, :]).all(),
+ msg="%d: %r <= %r" % (i, p[i, :], p[:i, :]))
+ at((p[i + 1:, :] > p[i, :]).all(),
+ msg="%d: %r < %r" % (i, p[i, :], p[:, i + 1:]))
+ for col in range(p.shape[1]):
+ self.assert_partitioned(p[:, col], [i])
+ self.assert_partitioned(parg[:, col], [i])
+
+ # check inplace
+ dc = d.copy()
+ dc.partition(i, kind=k)
+ assert_equal(dc, np.partition(d, i, kind=k))
+ dc = d0.copy()
+ dc.partition(i, axis=0, kind=k)
+ assert_equal(dc, np.partition(d0, i, axis=0, kind=k))
+ dc = d1.copy()
+ dc.partition(i, axis=1, kind=k)
+ assert_equal(dc, np.partition(d1, i, axis=1, kind=k))
+
+ def assert_partitioned(self, d, kth):
+ prev = 0
+ for k in np.sort(kth):
+ assert_array_compare(operator.__le__, d[prev:k], d[k],
+ err_msg='kth %d' % k)
+ assert_((d[k:] >= d[k]).all(),
+ msg="kth %d, %r not greater equal %r" % (k, d[k:], d[k]))
+ prev = k + 1
+
+ def test_partition_iterative(self):
+ d = np.arange(17)
+ kth = (0, 1, 2, 429, 231)
+ assert_raises(ValueError, d.partition, kth)
+ assert_raises(ValueError, d.argpartition, kth)
+ d = np.arange(10).reshape((2, 5))
+ assert_raises(ValueError, d.partition, kth, axis=0)
+ assert_raises(ValueError, d.partition, kth, axis=1)
+ assert_raises(ValueError, np.partition, d, kth, axis=1)
+ assert_raises(ValueError, np.partition, d, kth, axis=None)
+
+ d = np.array([3, 4, 2, 1])
+ p = np.partition(d, (0, 3))
+ self.assert_partitioned(p, (0, 3))
+ self.assert_partitioned(d[np.argpartition(d, (0, 3))], (0, 3))
+
+ assert_array_equal(p, np.partition(d, (-3, -1)))
+ assert_array_equal(p, d[np.argpartition(d, (-3, -1))])
+
+ d = np.arange(17)
+ np.random.shuffle(d)
+ d.partition(range(d.size))
+ assert_array_equal(np.arange(17), d)
+ np.random.shuffle(d)
+ assert_array_equal(np.arange(17), d[d.argpartition(range(d.size))])
+
+ # test unsorted kth
+ d = np.arange(17)
+ np.random.shuffle(d)
+ keys = np.array([1, 3, 8, -2])
+ np.random.shuffle(d)
+ p = np.partition(d, keys)
+ self.assert_partitioned(p, keys)
+ p = d[np.argpartition(d, keys)]
+ self.assert_partitioned(p, keys)
+ np.random.shuffle(keys)
+ assert_array_equal(np.partition(d, keys), p)
+ assert_array_equal(d[np.argpartition(d, keys)], p)
+
+ # equal kth
+ d = np.arange(20)[::-1]
+ self.assert_partitioned(np.partition(d, [5] * 4), [5])
+ self.assert_partitioned(np.partition(d, [5] * 4 + [6, 13]),
+ [5] * 4 + [6, 13])
+ self.assert_partitioned(d[np.argpartition(d, [5] * 4)], [5])
+ self.assert_partitioned(d[np.argpartition(d, [5] * 4 + [6, 13])],
+ [5] * 4 + [6, 13])
+
+ d = np.arange(12)
+ np.random.shuffle(d)
+ d1 = np.tile(np.arange(12), (4, 1))
+ map(np.random.shuffle, d1)
+ d0 = np.transpose(d1)
+
+ kth = (1, 6, 7, -1)
+ p = np.partition(d1, kth, axis=1)
+ pa = d1[np.arange(d1.shape[0])[:, None],
+ d1.argpartition(kth, axis=1)]
+ assert_array_equal(p, pa)
+ for i in range(d1.shape[0]):
+ self.assert_partitioned(p[i, :], kth)
+ p = np.partition(d0, kth, axis=0)
+ pa = d0[np.argpartition(d0, kth, axis=0),
+ np.arange(d0.shape[1])[None, :]]
+ assert_array_equal(p, pa)
+ for i in range(d0.shape[1]):
+ self.assert_partitioned(p[:, i], kth)
+
+ def test_partition_cdtype(self):
+ d = np.array([('Galahad', 1.7, 38), ('Arthur', 1.8, 41),
+ ('Lancelot', 1.9, 38)],
+ dtype=[('name', '|S10'), ('height', ' (numpy ufunc, has_in_place_version, preferred_dtype)
+ ops = {
+ 'add': (np.add, True, float),
+ 'sub': (np.subtract, True, float),
+ 'mul': (np.multiply, True, float),
+ 'truediv': (np.true_divide, True, float),
+ 'floordiv': (np.floor_divide, True, float),
+ 'mod': (np.remainder, True, float),
+ 'divmod': (np.divmod, False, float),
+ 'pow': (np.power, True, int),
+ 'lshift': (np.left_shift, True, int),
+ 'rshift': (np.right_shift, True, int),
+ 'and': (np.bitwise_and, True, int),
+ 'xor': (np.bitwise_xor, True, int),
+ 'or': (np.bitwise_or, True, int),
+ 'matmul': (np.matmul, True, float),
+ # 'ge': (np.less_equal, False),
+ # 'gt': (np.less, False),
+ # 'le': (np.greater_equal, False),
+ # 'lt': (np.greater, False),
+ # 'eq': (np.equal, False),
+ # 'ne': (np.not_equal, False),
+ }
+
+ class Coerced(Exception):
+ pass
+
+ def array_impl(self):
+ raise Coerced
+
+ def op_impl(self, other):
+ return "forward"
+
+ def rop_impl(self, other):
+ return "reverse"
+
+ def iop_impl(self, other):
+ return "in-place"
+
+ def array_ufunc_impl(self, ufunc, method, *args, **kwargs):
+ return ("__array_ufunc__", ufunc, method, args, kwargs)
+
+ # Create an object with the given base, in the given module, with a
+ # bunch of placeholder __op__ methods, and optionally a
+ # __array_ufunc__ and __array_priority__.
+ def make_obj(base, array_priority=False, array_ufunc=False,
+ alleged_module="__main__"):
+ class_namespace = {"__array__": array_impl}
+ if array_priority is not False:
+ class_namespace["__array_priority__"] = array_priority
+ for op in ops:
+ class_namespace[f"__{op}__"] = op_impl
+ class_namespace[f"__r{op}__"] = rop_impl
+ class_namespace[f"__i{op}__"] = iop_impl
+ if array_ufunc is not False:
+ class_namespace["__array_ufunc__"] = array_ufunc
+ eval_namespace = {"base": base,
+ "class_namespace": class_namespace,
+ "__name__": alleged_module,
+ }
+ MyType = eval("type('MyType', (base,), class_namespace)",
+ eval_namespace)
+ if issubclass(MyType, np.ndarray):
+ # Use this range to avoid special case weirdnesses around
+ # divide-by-0, pow(x, 2), overflow due to pow(big, big), etc.
+ return np.arange(3, 7).reshape(2, 2).view(MyType)
+ else:
+ return MyType()
+
+ def check(obj, binop_override_expected, ufunc_override_expected,
+ inplace_override_expected, check_scalar=True):
+ for op, (ufunc, has_inplace, dtype) in ops.items():
+ err_msg = ('op: %s, ufunc: %s, has_inplace: %s, dtype: %s'
+ % (op, ufunc, has_inplace, dtype))
+ check_objs = [np.arange(3, 7, dtype=dtype).reshape(2, 2)]
+ if check_scalar:
+ check_objs.append(check_objs[0][0])
+ for arr in check_objs:
+ arr_method = getattr(arr, f"__{op}__")
+
+ def first_out_arg(result):
+ if op == "divmod":
+ assert_(isinstance(result, tuple))
+ return result[0]
+ else:
+ return result
+
+ # arr __op__ obj
+ if binop_override_expected:
+ assert_equal(arr_method(obj), NotImplemented, err_msg)
+ elif ufunc_override_expected:
+ assert_equal(arr_method(obj)[0], "__array_ufunc__",
+ err_msg)
+ elif (isinstance(obj, np.ndarray) and
+ (type(obj).__array_ufunc__ is
+ np.ndarray.__array_ufunc__)):
+ # __array__ gets ignored
+ res = first_out_arg(arr_method(obj))
+ assert_(res.__class__ is obj.__class__, err_msg)
+ else:
+ assert_raises((TypeError, Coerced),
+ arr_method, obj, err_msg=err_msg)
+ # obj __op__ arr
+ arr_rmethod = getattr(arr, f"__r{op}__")
+ if ufunc_override_expected:
+ res = arr_rmethod(obj)
+ assert_equal(res[0], "__array_ufunc__",
+ err_msg=err_msg)
+ assert_equal(res[1], ufunc, err_msg=err_msg)
+ elif (isinstance(obj, np.ndarray) and
+ (type(obj).__array_ufunc__ is
+ np.ndarray.__array_ufunc__)):
+ # __array__ gets ignored
+ res = first_out_arg(arr_rmethod(obj))
+ assert_(res.__class__ is obj.__class__, err_msg)
+ else:
+ # __array_ufunc__ = "asdf" creates a TypeError
+ assert_raises((TypeError, Coerced),
+ arr_rmethod, obj, err_msg=err_msg)
+
+ # arr __iop__ obj
+ # array scalars don't have in-place operators
+ if has_inplace and isinstance(arr, np.ndarray):
+ arr_imethod = getattr(arr, f"__i{op}__")
+ if inplace_override_expected:
+ assert_equal(arr_method(obj), NotImplemented,
+ err_msg=err_msg)
+ elif ufunc_override_expected:
+ res = arr_imethod(obj)
+ assert_equal(res[0], "__array_ufunc__", err_msg)
+ assert_equal(res[1], ufunc, err_msg)
+ assert_(type(res[-1]["out"]) is tuple, err_msg)
+ assert_(res[-1]["out"][0] is arr, err_msg)
+ elif (isinstance(obj, np.ndarray) and
+ (type(obj).__array_ufunc__ is
+ np.ndarray.__array_ufunc__)):
+ # __array__ gets ignored
+ assert_(arr_imethod(obj) is arr, err_msg)
+ else:
+ assert_raises((TypeError, Coerced),
+ arr_imethod, obj,
+ err_msg=err_msg)
+
+ op_fn = getattr(operator, op, None)
+ if op_fn is None:
+ op_fn = getattr(operator, op + "_", None)
+ if op_fn is None:
+ op_fn = getattr(builtins, op)
+ assert_equal(op_fn(obj, arr), "forward", err_msg)
+ if not isinstance(obj, np.ndarray):
+ if binop_override_expected:
+ assert_equal(op_fn(arr, obj), "reverse", err_msg)
+ elif ufunc_override_expected:
+ assert_equal(op_fn(arr, obj)[0], "__array_ufunc__",
+ err_msg)
+ if ufunc_override_expected:
+ assert_equal(ufunc(obj, arr)[0], "__array_ufunc__",
+ err_msg)
+
+ # No array priority, no array_ufunc -> nothing called
+ check(make_obj(object), False, False, False)
+ # Negative array priority, no array_ufunc -> nothing called
+ # (has to be very negative, because scalar priority is -1000000.0)
+ check(make_obj(object, array_priority=-2**30), False, False, False)
+ # Positive array priority, no array_ufunc -> binops and iops only
+ check(make_obj(object, array_priority=1), True, False, True)
+ # ndarray ignores array_priority for ndarray subclasses
+ check(make_obj(np.ndarray, array_priority=1), False, False, False,
+ check_scalar=False)
+ # Positive array_priority and array_ufunc -> array_ufunc only
+ check(make_obj(object, array_priority=1,
+ array_ufunc=array_ufunc_impl), False, True, False)
+ check(make_obj(np.ndarray, array_priority=1,
+ array_ufunc=array_ufunc_impl), False, True, False)
+ # array_ufunc set to None -> defer binops only
+ check(make_obj(object, array_ufunc=None), True, False, False)
+ check(make_obj(np.ndarray, array_ufunc=None), True, False, False,
+ check_scalar=False)
+
+ @pytest.mark.parametrize("priority", [None, "runtime error"])
+ def test_ufunc_binop_bad_array_priority(self, priority):
+ # Mainly checks that this does not crash. The second array has a lower
+ # priority than -1 ("error value"). If the __radd__ actually exists,
+ # bad things can happen (I think via the scalar paths).
+ # In principle both of these can probably just be errors in the future.
+ class BadPriority:
+ @property
+ def __array_priority__(self):
+ if priority == "runtime error":
+ raise RuntimeError("RuntimeError in __array_priority__!")
+ return priority
+
+ def __radd__(self, other):
+ return "result"
+
+ class LowPriority(np.ndarray):
+ __array_priority__ = -1000
+
+ # Priority failure uses the same as scalars (smaller -1000). So the
+ # LowPriority wins with 'result' for each element (inner operation).
+ res = np.arange(3).view(LowPriority) + BadPriority()
+ assert res.shape == (3,)
+ assert res[0] == 'result'
+
+ @pytest.mark.parametrize("scalar", [
+ np.longdouble(1), np.timedelta64(120, 'm')])
+ @pytest.mark.parametrize("op", [operator.add, operator.xor])
+ def test_scalar_binop_guarantees_ufunc(self, scalar, op):
+ # Test that __array_ufunc__ will always cause ufunc use even when
+ # we have to protect some other calls from recursing (see gh-26904).
+ class SomeClass:
+ def __array_ufunc__(self, ufunc, method, *inputs, **kw):
+ return "result"
+
+ assert SomeClass() + scalar == "result"
+ assert scalar + SomeClass() == "result"
+
+ def test_ufunc_override_normalize_signature(self):
+ # gh-5674
+ class SomeClass:
+ def __array_ufunc__(self, ufunc, method, *inputs, **kw):
+ return kw
+
+ a = SomeClass()
+ kw = np.add(a, [1])
+ assert_('sig' not in kw and 'signature' not in kw)
+ kw = np.add(a, [1], sig='ii->i')
+ assert_('sig' not in kw and 'signature' in kw)
+ assert_equal(kw['signature'], 'ii->i')
+ kw = np.add(a, [1], signature='ii->i')
+ assert_('sig' not in kw and 'signature' in kw)
+ assert_equal(kw['signature'], 'ii->i')
+
+ def test_array_ufunc_index(self):
+ # Check that index is set appropriately, also if only an output
+ # is passed on (latter is another regression tests for github bug 4753)
+ # This also checks implicitly that 'out' is always a tuple.
+ class CheckIndex:
+ def __array_ufunc__(self, ufunc, method, *inputs, **kw):
+ for i, a in enumerate(inputs):
+ if a is self:
+ return i
+ # calls below mean we must be in an output.
+ for j, a in enumerate(kw['out']):
+ if a is self:
+ return (j,)
+
+ a = CheckIndex()
+ dummy = np.arange(2.)
+ # 1 input, 1 output
+ assert_equal(np.sin(a), 0)
+ assert_equal(np.sin(dummy, a), (0,))
+ assert_equal(np.sin(dummy, out=a), (0,))
+ assert_equal(np.sin(dummy, out=(a,)), (0,))
+ assert_equal(np.sin(a, a), 0)
+ assert_equal(np.sin(a, out=a), 0)
+ assert_equal(np.sin(a, out=(a,)), 0)
+ # 1 input, 2 outputs
+ assert_equal(np.modf(dummy, a), (0,))
+ assert_equal(np.modf(dummy, None, a), (1,))
+ assert_equal(np.modf(dummy, dummy, a), (1,))
+ assert_equal(np.modf(dummy, out=(a, None)), (0,))
+ assert_equal(np.modf(dummy, out=(a, dummy)), (0,))
+ assert_equal(np.modf(dummy, out=(None, a)), (1,))
+ assert_equal(np.modf(dummy, out=(dummy, a)), (1,))
+ assert_equal(np.modf(a, out=(dummy, a)), 0)
+ with assert_raises(TypeError):
+ # Out argument must be tuple, since there are multiple outputs
+ np.modf(dummy, out=a)
+
+ assert_raises(ValueError, np.modf, dummy, out=(a,))
+
+ # 2 inputs, 1 output
+ assert_equal(np.add(a, dummy), 0)
+ assert_equal(np.add(dummy, a), 1)
+ assert_equal(np.add(dummy, dummy, a), (0,))
+ assert_equal(np.add(dummy, a, a), 1)
+ assert_equal(np.add(dummy, dummy, out=a), (0,))
+ assert_equal(np.add(dummy, dummy, out=(a,)), (0,))
+ assert_equal(np.add(a, dummy, out=a), 0)
+
+ def test_out_override(self):
+ # regression test for github bug 4753
+ class OutClass(np.ndarray):
+ def __array_ufunc__(self, ufunc, method, *inputs, **kw):
+ if 'out' in kw:
+ tmp_kw = kw.copy()
+ tmp_kw.pop('out')
+ func = getattr(ufunc, method)
+ kw['out'][0][...] = func(*inputs, **tmp_kw)
+
+ A = np.array([0]).view(OutClass)
+ B = np.array([5])
+ C = np.array([6])
+ np.multiply(C, B, A)
+ assert_equal(A[0], 30)
+ assert_(isinstance(A, OutClass))
+ A[0] = 0
+ np.multiply(C, B, out=A)
+ assert_equal(A[0], 30)
+ assert_(isinstance(A, OutClass))
+
+ def test_pow_array_object_dtype(self):
+ # test pow on arrays of object dtype
+ class SomeClass:
+ def __init__(self, num=None):
+ self.num = num
+
+ # want to ensure a fast pow path is not taken
+ def __mul__(self, other):
+ raise AssertionError('__mul__ should not be called')
+
+ def __truediv__(self, other):
+ raise AssertionError('__truediv__ should not be called')
+
+ def __pow__(self, exp):
+ return SomeClass(num=self.num ** exp)
+
+ def __eq__(self, other):
+ if isinstance(other, SomeClass):
+ return self.num == other.num
+
+ __rpow__ = __pow__
+
+ def pow_for(exp, arr):
+ return np.array([x ** exp for x in arr])
+
+ obj_arr = np.array([SomeClass(1), SomeClass(2), SomeClass(3)])
+
+ assert_equal(obj_arr ** 0.5, pow_for(0.5, obj_arr))
+ assert_equal(obj_arr ** 0, pow_for(0, obj_arr))
+ assert_equal(obj_arr ** 1, pow_for(1, obj_arr))
+ assert_equal(obj_arr ** -1, pow_for(-1, obj_arr))
+ assert_equal(obj_arr ** 2, pow_for(2, obj_arr))
+
+ def test_pow_calls_square_structured_dtype(self):
+ # gh-29388
+ dt = np.dtype([('a', 'i4'), ('b', 'i4')])
+ a = np.array([(1, 2), (3, 4)], dtype=dt)
+ with pytest.raises(TypeError, match="ufunc 'square' not supported"):
+ a ** 2
+
+ def test_pos_array_ufunc_override(self):
+ class A(np.ndarray):
+ def __array_ufunc__(self, ufunc, method, *inputs, **kwargs):
+ return getattr(ufunc, method)(*[i.view(np.ndarray) for
+ i in inputs], **kwargs)
+ tst = np.array('foo').view(A)
+ with assert_raises(TypeError):
+ +tst
+
+
+class TestTemporaryElide:
+ # elision is only triggered on relatively large arrays
+
+ def test_extension_incref_elide(self):
+ # test extension (e.g. cython) calling PyNumber_* slots without
+ # increasing the reference counts
+ #
+ # def incref_elide(a):
+ # d = input.copy() # refcount 1
+ # return d, d + d # PyNumber_Add without increasing refcount
+ from numpy._core._multiarray_tests import incref_elide
+ d = np.ones(100000)
+ orig, res = incref_elide(d)
+ d + d
+ # the return original should not be changed to an inplace operation
+ assert_array_equal(orig, d)
+ assert_array_equal(res, d + d)
+
+ def test_extension_incref_elide_stack(self):
+ # scanning if the refcount == 1 object is on the python stack to check
+ # that we are called directly from python is flawed as object may still
+ # be above the stack pointer and we have no access to the top of it
+ #
+ # def incref_elide_l(d):
+ # return l[4] + l[4] # PyNumber_Add without increasing refcount
+ from numpy._core._multiarray_tests import incref_elide_l
+ # padding with 1 makes sure the object on the stack is not overwritten
+ l = [1, 1, 1, 1, np.ones(100000)]
+ res = incref_elide_l(l)
+ # the return original should not be changed to an inplace operation
+ assert_array_equal(l[4], np.ones(100000))
+ assert_array_equal(res, l[4] + l[4])
+
+ def test_temporary_with_cast(self):
+ # check that we don't elide into a temporary which would need casting
+ d = np.ones(200000, dtype=np.int64)
+ r = ((d + d) + np.array(2**222, dtype='O'))
+ assert_equal(r.dtype, np.dtype('O'))
+
+ r = ((d + d) / 2)
+ assert_equal(r.dtype, np.dtype('f8'))
+
+ r = np.true_divide((d + d), 2)
+ assert_equal(r.dtype, np.dtype('f8'))
+
+ r = ((d + d) / 2.)
+ assert_equal(r.dtype, np.dtype('f8'))
+
+ r = ((d + d) // 2)
+ assert_equal(r.dtype, np.dtype(np.int64))
+
+ # commutative elision into the astype result
+ f = np.ones(100000, dtype=np.float32)
+ assert_equal(((f + f) + f.astype(np.float64)).dtype, np.dtype('f8'))
+
+ # no elision into lower type
+ d = f.astype(np.float64)
+ assert_equal(((f + f) + d).dtype, d.dtype)
+ l = np.ones(100000, dtype=np.longdouble)
+ assert_equal(((d + d) + l).dtype, l.dtype)
+
+ # test unary abs with different output dtype
+ for dt in (np.complex64, np.complex128, np.clongdouble):
+ c = np.ones(100000, dtype=dt)
+ r = abs(c * 2.0)
+ assert_equal(r.dtype, np.dtype('f%d' % (c.itemsize // 2)))
+
+ def test_elide_broadcast(self):
+ # test no elision on broadcast to higher dimension
+ # only triggers elision code path in debug mode as triggering it in
+ # normal mode needs 256kb large matching dimension, so a lot of memory
+ d = np.ones((2000, 1), dtype=int)
+ b = np.ones((2000), dtype=bool)
+ r = (1 - d) + b
+ assert_equal(r, 1)
+ assert_equal(r.shape, (2000, 2000))
+
+ def test_elide_scalar(self):
+ # check inplace op does not create ndarray from scalars
+ a = np.bool()
+ assert_(type(~(a & a)) is np.bool)
+
+ def test_elide_scalar_readonly(self):
+ # The imaginary part of a real array is readonly. This needs to go
+ # through fast_scalar_power which is only called for powers of
+ # +1, -1, 0, 0.5, and 2, so use 2. Also need valid refcount for
+ # elision which can be gotten for the imaginary part of a real
+ # array. Should not error.
+ a = np.empty(100000, dtype=np.float64)
+ a.imag ** 2
+
+ def test_elide_readonly(self):
+ # don't try to elide readonly temporaries
+ r = np.asarray(np.broadcast_to(np.zeros(1), 100000).flat) * 0.0
+ assert_equal(r, 0)
+
+ def test_elide_updateifcopy(self):
+ a = np.ones(2**20)[::2]
+ b = a.flat.__array__() + 1
+ del b
+ assert_equal(a, 1)
+
+
+class TestCAPI:
+ def test_IsPythonScalar(self):
+ from numpy._core._multiarray_tests import IsPythonScalar
+ assert_(IsPythonScalar(b'foobar'))
+ assert_(IsPythonScalar(1))
+ assert_(IsPythonScalar(2**80))
+ assert_(IsPythonScalar(2.))
+ assert_(IsPythonScalar("a"))
+
+ @pytest.mark.parametrize("converter",
+ [_multiarray_tests.run_scalar_intp_converter,
+ _multiarray_tests.run_scalar_intp_from_sequence])
+ def test_intp_sequence_converters(self, converter):
+ # Test simple values (-1 is special for error return paths)
+ assert converter(10) == (10,)
+ assert converter(-1) == (-1,)
+ # A 0-D array looks a bit like a sequence but must take the integer
+ # path:
+ assert converter(np.array(123)) == (123,)
+ # Test simple sequences (intp_from_sequence only supports length 1):
+ assert converter((10,)) == (10,)
+ assert converter(np.array([11])) == (11,)
+
+ @pytest.mark.parametrize("converter",
+ [_multiarray_tests.run_scalar_intp_converter,
+ _multiarray_tests.run_scalar_intp_from_sequence])
+ @pytest.mark.skipif(IS_PYPY and sys.implementation.version <= (7, 3, 8),
+ reason="PyPy bug in error formatting")
+ def test_intp_sequence_converters_errors(self, converter):
+ with pytest.raises(TypeError,
+ match="expected a sequence of integers or a single integer, "):
+ converter(object())
+ with pytest.raises(TypeError,
+ match="expected a sequence of integers or a single integer, "
+ "got '32.0'"):
+ converter(32.)
+ with pytest.raises(TypeError,
+ match="'float' object cannot be interpreted as an integer"):
+ converter([32.])
+ with pytest.raises(ValueError,
+ match="Maximum allowed dimension"):
+ # These converters currently convert overflows to a ValueError
+ converter(2**64)
+
+ @pytest.mark.parametrize(
+ "entry_point",
+ [
+ module + item
+ for item in ("sin", "strings.str_len", "fft._pocketfft_umath.ifft")
+ for module in ("", "numpy:")
+ ] + [
+ "numpy.strings:str_len",
+ "functools:reduce",
+ "functools:reduce.__doc__"
+ ]
+ )
+ def test_import_entry_point(self, entry_point):
+ modname, _, items = entry_point.rpartition(":")
+ if modname:
+ module = obj = importlib.import_module(modname)
+ else:
+ module = np
+ exp = functools.reduce(getattr, items.split("."), module)
+ got = _multiarray_tests.npy_import_entry_point(entry_point)
+ assert got == exp
+
+ @pytest.mark.parametrize(
+ "entry_point",
+ ["sin.", "numpy:", "numpy:sin:__call__", "numpy.sin:__call__."]
+ )
+ def test_import_entry_point_errors(self, entry_point):
+ # Don't really care about precise error.
+ with pytest.raises((ImportError, AttributeError)):
+ _multiarray_tests.npy_import_entry_point(entry_point)
+
+
+class TestSubscripting:
+ def test_test_zero_rank(self):
+ x = np.array([1, 2, 3])
+ assert_(isinstance(x[0], np.int_))
+ assert_(type(x[0, ...]) is np.ndarray)
+
+
+class TestPickling:
+ @pytest.mark.skipif(pickle.HIGHEST_PROTOCOL >= 5,
+ reason=('this tests the error messages when trying to'
+ 'protocol 5 although it is not available'))
+ def test_correct_protocol5_error_message(self):
+ array = np.arange(10)
+
+ def test_record_array_with_object_dtype(self):
+ my_object = object()
+
+ arr_with_object = np.array(
+ [(my_object, 1, 2.0)],
+ dtype=[('a', object), ('b', int), ('c', float)])
+ arr_without_object = np.array(
+ [('xxx', 1, 2.0)],
+ dtype=[('a', str), ('b', int), ('c', float)])
+
+ for proto in range(2, pickle.HIGHEST_PROTOCOL + 1):
+ depickled_arr_with_object = pickle.loads(
+ pickle.dumps(arr_with_object, protocol=proto))
+ depickled_arr_without_object = pickle.loads(
+ pickle.dumps(arr_without_object, protocol=proto))
+
+ assert_equal(arr_with_object.dtype,
+ depickled_arr_with_object.dtype)
+ assert_equal(arr_without_object.dtype,
+ depickled_arr_without_object.dtype)
+
+ @pytest.mark.skipif(pickle.HIGHEST_PROTOCOL < 5,
+ reason="requires pickle protocol 5")
+ def test_f_contiguous_array(self):
+ f_contiguous_array = np.array([[1, 2, 3], [4, 5, 6]], order='F')
+ buffers = []
+
+ # When using pickle protocol 5, Fortran-contiguous arrays can be
+ # serialized using out-of-band buffers
+ bytes_string = pickle.dumps(f_contiguous_array, protocol=5,
+ buffer_callback=buffers.append)
+
+ assert len(buffers) > 0
+
+ depickled_f_contiguous_array = pickle.loads(bytes_string,
+ buffers=buffers)
+
+ assert_equal(f_contiguous_array, depickled_f_contiguous_array)
+
+ @pytest.mark.skipif(pickle.HIGHEST_PROTOCOL < 5, reason="requires pickle protocol 5")
+ @pytest.mark.parametrize('transposed_contiguous_array',
+ [np.random.default_rng(42).random((2, 3, 4)).transpose((1, 0, 2)),
+ np.random.default_rng(42).random((2, 3, 4, 5)).transpose((1, 3, 0, 2))] +
+ [np.random.default_rng(42).random(np.arange(2, 7)).transpose(np.random.permutation(5)) for _ in range(3)])
+ def test_transposed_contiguous_array(self, transposed_contiguous_array):
+ buffers = []
+ # When using pickle protocol 5, arrays which can be transposed to c_contiguous
+ # can be serialized using out-of-band buffers
+ bytes_string = pickle.dumps(transposed_contiguous_array, protocol=5,
+ buffer_callback=buffers.append)
+
+ assert len(buffers) > 0
+
+ depickled_transposed_contiguous_array = pickle.loads(bytes_string,
+ buffers=buffers)
+
+ assert_equal(transposed_contiguous_array, depickled_transposed_contiguous_array)
+
+ @pytest.mark.skipif(pickle.HIGHEST_PROTOCOL < 5, reason="requires pickle protocol 5")
+ def test_load_legacy_pkl_protocol5(self):
+ # legacy byte strs are dumped in 2.2.1
+ c_contiguous_dumped = b'\x80\x05\x95\x90\x00\x00\x00\x00\x00\x00\x00\x8c\x13numpy._core.numeric\x94\x8c\x0b_frombuffer\x94\x93\x94(\x96\x18\x00\x00\x00\x00\x00\x00\x00\x00\x01\x02\x03\x04\x05\x06\x07\x08\t\n\x0b\x0c\r\x0e\x0f\x10\x11\x12\x13\x14\x15\x16\x17\x94\x8c\x05numpy\x94\x8c\x05dtype\x94\x93\x94\x8c\x02u1\x94\x89\x88\x87\x94R\x94(K\x03\x8c\x01|\x94NNNJ\xff\xff\xff\xffJ\xff\xff\xff\xffK\x00t\x94bK\x03K\x04K\x02\x87\x94\x8c\x01C\x94t\x94R\x94.' # noqa: E501
+ f_contiguous_dumped = b'\x80\x05\x95\x90\x00\x00\x00\x00\x00\x00\x00\x8c\x13numpy._core.numeric\x94\x8c\x0b_frombuffer\x94\x93\x94(\x96\x18\x00\x00\x00\x00\x00\x00\x00\x00\x01\x02\x03\x04\x05\x06\x07\x08\t\n\x0b\x0c\r\x0e\x0f\x10\x11\x12\x13\x14\x15\x16\x17\x94\x8c\x05numpy\x94\x8c\x05dtype\x94\x93\x94\x8c\x02u1\x94\x89\x88\x87\x94R\x94(K\x03\x8c\x01|\x94NNNJ\xff\xff\xff\xffJ\xff\xff\xff\xffK\x00t\x94bK\x03K\x04K\x02\x87\x94\x8c\x01F\x94t\x94R\x94.' # noqa: E501
+ transposed_contiguous_dumped = b'\x80\x05\x95\xa5\x00\x00\x00\x00\x00\x00\x00\x8c\x16numpy._core.multiarray\x94\x8c\x0c_reconstruct\x94\x93\x94\x8c\x05numpy\x94\x8c\x07ndarray\x94\x93\x94K\x00\x85\x94C\x01b\x94\x87\x94R\x94(K\x01K\x04K\x03K\x02\x87\x94h\x03\x8c\x05dtype\x94\x93\x94\x8c\x02u1\x94\x89\x88\x87\x94R\x94(K\x03\x8c\x01|\x94NNNJ\xff\xff\xff\xffJ\xff\xff\xff\xffK\x00t\x94b\x89C\x18\x00\x01\x08\t\x10\x11\x02\x03\n\x0b\x12\x13\x04\x05\x0c\r\x14\x15\x06\x07\x0e\x0f\x16\x17\x94t\x94b.' # noqa: E501
+ no_contiguous_dumped = b'\x80\x05\x95\x91\x00\x00\x00\x00\x00\x00\x00\x8c\x16numpy._core.multiarray\x94\x8c\x0c_reconstruct\x94\x93\x94\x8c\x05numpy\x94\x8c\x07ndarray\x94\x93\x94K\x00\x85\x94C\x01b\x94\x87\x94R\x94(K\x01K\x03K\x02\x86\x94h\x03\x8c\x05dtype\x94\x93\x94\x8c\x02u1\x94\x89\x88\x87\x94R\x94(K\x03\x8c\x01|\x94NNNJ\xff\xff\xff\xffJ\xff\xff\xff\xffK\x00t\x94b\x89C\x06\x00\x01\x04\x05\x08\t\x94t\x94b.' # noqa: E501
+ x = np.arange(24, dtype='uint8').reshape(3, 4, 2)
+ assert_equal(x, pickle.loads(c_contiguous_dumped))
+ x = np.arange(24, dtype='uint8').reshape(3, 4, 2, order='F')
+ assert_equal(x, pickle.loads(f_contiguous_dumped))
+ x = np.arange(24, dtype='uint8').reshape(3, 4, 2).transpose((1, 0, 2))
+ assert_equal(x, pickle.loads(transposed_contiguous_dumped))
+ x = np.arange(12, dtype='uint8').reshape(3, 4)[:, :2]
+ assert_equal(x, pickle.loads(no_contiguous_dumped))
+
+ def test_non_contiguous_array(self):
+ non_contiguous_array = np.arange(12).reshape(3, 4)[:, :2]
+ assert not non_contiguous_array.flags.c_contiguous
+ assert not non_contiguous_array.flags.f_contiguous
+
+ # make sure non-contiguous arrays can be pickled-depickled
+ # using any protocol
+ buffers = []
+ for proto in range(2, pickle.HIGHEST_PROTOCOL + 1):
+ depickled_non_contiguous_array = pickle.loads(
+ pickle.dumps(non_contiguous_array, protocol=proto,
+ buffer_callback=buffers.append if proto >= 5 else None))
+
+ assert_equal(len(buffers), 0)
+ assert_equal(non_contiguous_array, depickled_non_contiguous_array)
+
+ @pytest.mark.thread_unsafe(reason="calls gc.collect()")
+ def test_roundtrip(self):
+ for proto in range(2, pickle.HIGHEST_PROTOCOL + 1):
+ carray = np.array([[2, 9], [7, 0], [3, 8]])
+ DATA = [
+ carray,
+ np.transpose(carray),
+ np.array([('xxx', 1, 2.0)], dtype=[('a', (str, 3)), ('b', int),
+ ('c', float)])
+ ]
+
+ refs = [weakref.ref(a) for a in DATA]
+ for a in DATA:
+ assert_equal(
+ a, pickle.loads(pickle.dumps(a, protocol=proto)),
+ err_msg=f"{a!r}")
+ del a, DATA, carray
+ break_cycles()
+ # check for reference leaks (gh-12793)
+ for ref in refs:
+ assert ref() is None
+
+ def _loads(self, obj):
+ return pickle.loads(obj, encoding='latin1')
+
+ # version 0 pickles, using protocol=2 to pickle
+ # version 0 doesn't have a version field
+ @pytest.mark.filterwarnings(
+ "ignore:.*align should be passed:numpy.exceptions.VisibleDeprecationWarning")
+ def test_version0_int8(self):
+ s = b"\x80\x02cnumpy.core._internal\n_reconstruct\nq\x01cnumpy\nndarray\nq\x02K\x00\x85U\x01b\x87Rq\x03(K\x04\x85cnumpy\ndtype\nq\x04U\x02i1K\x00K\x01\x87Rq\x05(U\x01|NNJ\xff\xff\xff\xffJ\xff\xff\xff\xfftb\x89U\x04\x01\x02\x03\x04tb."
+ a = np.array([1, 2, 3, 4], dtype=np.int8)
+ p = self._loads(s)
+ assert_equal(a, p)
+
+ @pytest.mark.filterwarnings(
+ "ignore:.*align should be passed:numpy.exceptions.VisibleDeprecationWarning")
+ def test_version0_float32(self):
+ s = b"\x80\x02cnumpy.core._internal\n_reconstruct\nq\x01cnumpy\nndarray\nq\x02K\x00\x85U\x01b\x87Rq\x03(K\x04\x85cnumpy\ndtype\nq\x04U\x02f4K\x00K\x01\x87Rq\x05(U\x01= g2, [g1[i] >= g2[i] for i in [0, 1, 2]])
+ assert_array_equal(g1 < g2, [g1[i] < g2[i] for i in [0, 1, 2]])
+ assert_array_equal(g1 > g2, [g1[i] > g2[i] for i in [0, 1, 2]])
+
+ def test_mixed(self):
+ g1 = np.array(["spam", "spa", "spammer", "and eggs"])
+ g2 = "spam"
+ assert_array_equal(g1 == g2, [x == g2 for x in g1])
+ assert_array_equal(g1 != g2, [x != g2 for x in g1])
+ assert_array_equal(g1 < g2, [x < g2 for x in g1])
+ assert_array_equal(g1 > g2, [x > g2 for x in g1])
+ assert_array_equal(g1 <= g2, [x <= g2 for x in g1])
+ assert_array_equal(g1 >= g2, [x >= g2 for x in g1])
+
+ def test_unicode(self):
+ g1 = np.array(["This", "is", "example"])
+ g2 = np.array(["This", "was", "example"])
+ assert_array_equal(g1 == g2, [g1[i] == g2[i] for i in [0, 1, 2]])
+ assert_array_equal(g1 != g2, [g1[i] != g2[i] for i in [0, 1, 2]])
+ assert_array_equal(g1 <= g2, [g1[i] <= g2[i] for i in [0, 1, 2]])
+ assert_array_equal(g1 >= g2, [g1[i] >= g2[i] for i in [0, 1, 2]])
+ assert_array_equal(g1 < g2, [g1[i] < g2[i] for i in [0, 1, 2]])
+ assert_array_equal(g1 > g2, [g1[i] > g2[i] for i in [0, 1, 2]])
+
+class TestArgmaxArgminCommon:
+
+ sizes = [(), (3,), (3, 2), (2, 3),
+ (3, 3), (2, 3, 4), (4, 3, 2),
+ (1, 2, 3, 4), (2, 3, 4, 1),
+ (3, 4, 1, 2), (4, 1, 2, 3),
+ (64,), (128,), (256,)]
+
+ @pytest.mark.parametrize("size, axis", itertools.chain(*[[(size, axis)
+ for axis in list(range(-len(size), len(size))) + [None]]
+ for size in sizes]))
+ @pytest.mark.parametrize('method', [np.argmax, np.argmin])
+ def test_np_argmin_argmax_keepdims(self, size, axis, method):
+
+ arr = np.random.normal(size=size)
+
+ # contiguous arrays
+ if axis is None:
+ new_shape = [1 for _ in range(len(size))]
+ else:
+ new_shape = list(size)
+ new_shape[axis] = 1
+ new_shape = tuple(new_shape)
+
+ _res_orig = method(arr, axis=axis)
+ res_orig = _res_orig.reshape(new_shape)
+ res = method(arr, axis=axis, keepdims=True)
+ assert_equal(res, res_orig)
+ assert_(res.shape == new_shape)
+ outarray = np.empty(res.shape, dtype=res.dtype)
+ res1 = method(arr, axis=axis, out=outarray,
+ keepdims=True)
+ assert_(res1 is outarray)
+ assert_equal(res, outarray)
+
+ if len(size) > 0:
+ wrong_shape = list(new_shape)
+ if axis is not None:
+ wrong_shape[axis] = 2
+ else:
+ wrong_shape[0] = 2
+ wrong_outarray = np.empty(wrong_shape, dtype=res.dtype)
+ with pytest.raises(ValueError):
+ method(arr.T, axis=axis,
+ out=wrong_outarray, keepdims=True)
+
+ # non-contiguous arrays
+ if axis is None:
+ new_shape = [1 for _ in range(len(size))]
+ else:
+ new_shape = list(size)[::-1]
+ new_shape[axis] = 1
+ new_shape = tuple(new_shape)
+
+ _res_orig = method(arr.T, axis=axis)
+ res_orig = _res_orig.reshape(new_shape)
+ res = method(arr.T, axis=axis, keepdims=True)
+ assert_equal(res, res_orig)
+ assert_(res.shape == new_shape)
+ outarray = np.empty(new_shape[::-1], dtype=res.dtype)
+ outarray = outarray.T
+ res1 = method(arr.T, axis=axis, out=outarray,
+ keepdims=True)
+ assert_(res1 is outarray)
+ assert_equal(res, outarray)
+
+ if len(size) > 0:
+ # one dimension lesser for non-zero sized
+ # array should raise an error
+ with pytest.raises(ValueError):
+ method(arr[0], axis=axis,
+ out=outarray, keepdims=True)
+
+ if len(size) > 0:
+ wrong_shape = list(new_shape)
+ if axis is not None:
+ wrong_shape[axis] = 2
+ else:
+ wrong_shape[0] = 2
+ wrong_outarray = np.empty(wrong_shape, dtype=res.dtype)
+ with pytest.raises(ValueError):
+ method(arr.T, axis=axis,
+ out=wrong_outarray, keepdims=True)
+
+ @pytest.mark.parametrize('method', ['max', 'min'])
+ def test_all(self, method):
+ a = np.random.normal(0, 1, (4, 5, 6, 7, 8))
+ arg_method = getattr(a, 'arg' + method)
+ val_method = getattr(a, method)
+ for i in range(a.ndim):
+ a_maxmin = val_method(i)
+ aarg_maxmin = arg_method(i)
+ axes = list(range(a.ndim))
+ axes.remove(i)
+ assert_(np.all(a_maxmin == aarg_maxmin.choose(
+ *a.transpose(i, *axes))))
+
+ @pytest.mark.parametrize('method', ['argmax', 'argmin'])
+ def test_output_shape(self, method):
+ # see also gh-616
+ a = np.ones((10, 5))
+ arg_method = getattr(a, method)
+ # Check some simple shape mismatches
+ out = np.ones(11, dtype=np.int_)
+ assert_raises(ValueError, arg_method, -1, out)
+
+ out = np.ones((2, 5), dtype=np.int_)
+ assert_raises(ValueError, arg_method, -1, out)
+
+ # these could be relaxed possibly (used to allow even the previous)
+ out = np.ones((1, 10), dtype=np.int_)
+ assert_raises(ValueError, arg_method, -1, out)
+
+ out = np.ones(10, dtype=np.int_)
+ arg_method(-1, out=out)
+ assert_equal(out, arg_method(-1))
+
+ @pytest.mark.parametrize('ndim', [0, 1])
+ @pytest.mark.parametrize('method', ['argmax', 'argmin'])
+ def test_ret_is_out(self, ndim, method):
+ a = np.ones((4,) + (256,) * ndim)
+ arg_method = getattr(a, method)
+ out = np.empty((256,) * ndim, dtype=np.intp)
+ ret = arg_method(axis=0, out=out)
+ assert ret is out
+
+ @pytest.mark.parametrize('np_array, method, idx, val',
+ [(np.zeros, 'argmax', 5942, "as"),
+ (np.ones, 'argmin', 6001, "0")])
+ def test_unicode(self, np_array, method, idx, val):
+ d = np_array(6031, dtype='= cmin))
+ assert_(np.all(x <= cmax))
+
+ def _clip_type(self, type_group, array_max,
+ clip_min, clip_max, inplace=False,
+ expected_min=None, expected_max=None):
+ if expected_min is None:
+ expected_min = clip_min
+ if expected_max is None:
+ expected_max = clip_max
+
+ for T in np._core.sctypes[type_group]:
+ if sys.byteorder == 'little':
+ byte_orders = ['=', '>']
+ else:
+ byte_orders = ['<', '=']
+
+ for byteorder in byte_orders:
+ dtype = np.dtype(T).newbyteorder(byteorder)
+
+ x = (np.random.random(1000) * array_max).astype(dtype)
+ if inplace:
+ # The tests that call us pass clip_min and clip_max that
+ # might not fit in the destination dtype. They were written
+ # assuming the previous unsafe casting, which now must be
+ # passed explicitly to avoid a warning.
+ x.clip(clip_min, clip_max, x, casting='unsafe')
+ else:
+ x = x.clip(clip_min, clip_max)
+ byteorder = '='
+
+ if x.dtype.byteorder == '|':
+ byteorder = '|'
+ assert_equal(x.dtype.byteorder, byteorder)
+ self._check_range(x, expected_min, expected_max)
+ return x
+
+ def test_basic(self):
+ for inplace in [False, True]:
+ self._clip_type(
+ 'float', 1024, -12.8, 100.2, inplace=inplace)
+ self._clip_type(
+ 'float', 1024, 0, 0, inplace=inplace)
+
+ self._clip_type(
+ 'int', 1024, -120, 100, inplace=inplace)
+ self._clip_type(
+ 'int', 1024, 0, 0, inplace=inplace)
+
+ self._clip_type(
+ 'uint', 1024, 0, 0, inplace=inplace)
+ self._clip_type(
+ 'uint', 1024, 10, 100, inplace=inplace)
+
+ @pytest.mark.parametrize("inplace", [False, True])
+ def test_int_out_of_range(self, inplace):
+ # Simple check for out-of-bound integers, also testing the in-place
+ # path.
+ x = (np.random.random(1000) * 255).astype("uint8")
+ out = np.empty_like(x)
+ res = x.clip(-1, 300, out=out if inplace else None)
+ assert res is out or not inplace
+ assert (res == x).all()
+
+ res = x.clip(-1, 50, out=out if inplace else None)
+ assert res is out or not inplace
+ assert (res <= 50).all()
+ assert (res[x <= 50] == x[x <= 50]).all()
+
+ res = x.clip(100, 1000, out=out if inplace else None)
+ assert res is out or not inplace
+ assert (res >= 100).all()
+ assert (res[x >= 100] == x[x >= 100]).all()
+
+ def test_record_array(self):
+ rec = np.array([(-5, 2.0, 3.0), (5.0, 4.0, 3.0)],
+ dtype=[('x', '= 3))
+ x = val.clip(min=3)
+ assert_(np.all(x >= 3))
+ x = val.clip(max=4)
+ assert_(np.all(x <= 4))
+
+ def test_nan(self):
+ input_arr = np.array([-2., np.nan, 0.5, 3., 0.25, np.nan])
+ result = input_arr.clip(-1, 1)
+ expected = np.array([-1., np.nan, 0.5, 1., 0.25, np.nan])
+ assert_array_equal(result, expected)
+
+
+class TestCompress:
+ def test_axis(self):
+ tgt = [[5, 6, 7, 8, 9]]
+ arr = np.arange(10).reshape(2, 5)
+ out = np.compress([0, 1], arr, axis=0)
+ assert_equal(out, tgt)
+
+ tgt = [[1, 3], [6, 8]]
+ out = np.compress([0, 1, 0, 1, 0], arr, axis=1)
+ assert_equal(out, tgt)
+
+ def test_truncate(self):
+ tgt = [[1], [6]]
+ arr = np.arange(10).reshape(2, 5)
+ out = np.compress([0, 1], arr, axis=1)
+ assert_equal(out, tgt)
+
+ def test_flatten(self):
+ arr = np.arange(10).reshape(2, 5)
+ out = np.compress([0, 1], arr)
+ assert_equal(out, 1)
+
+
+class TestPutmask:
+ def tst_basic(self, x, T, mask, val):
+ np.putmask(x, mask, val)
+ assert_equal(x[mask], np.array(val, T))
+
+ def test_ip_types(self):
+ unchecked_types = [bytes, str, np.void]
+
+ x = np.random.random(1000) * 100
+ mask = x < 40
+
+ for val in [-100, 0, 15]:
+ for types in np._core.sctypes.values():
+ for T in types:
+ if T not in unchecked_types:
+ if val < 0 and np.dtype(T).kind == "u":
+ val = np.iinfo(T).max - 99
+ self.tst_basic(x.copy().astype(T), T, mask, val)
+
+ # Also test string of a length which uses an untypical length
+ dt = np.dtype("S3")
+ self.tst_basic(x.astype(dt), dt.type, mask, dt.type(val)[:3])
+
+ def test_mask_size(self):
+ assert_raises(ValueError, np.putmask, np.array([1, 2, 3]), [True], 5)
+
+ @pytest.mark.parametrize('dtype', ('>i4', 'f8'), ('z', '= 2, 3)
+
+ def test_kwargs(self):
+ x = np.array([0, 0])
+ np.putmask(x, [0, 1], [-1, -2])
+ assert_array_equal(x, [0, -2])
+
+ x = np.array([0, 0])
+ np.putmask(x, mask=[0, 1], values=[-1, -2])
+ assert_array_equal(x, [0, -2])
+
+ x = np.array([0, 0])
+ np.putmask(x, values=[-1, -2], mask=[0, 1])
+ assert_array_equal(x, [0, -2])
+
+ with pytest.raises(TypeError):
+ np.putmask(a=x, values=[-1, -2], mask=[0, 1])
+
+
+class TestTake:
+ def tst_basic(self, x):
+ ind = list(range(x.shape[0]))
+ assert_array_equal(x.take(ind, axis=0), x)
+
+ def test_ip_types(self):
+ unchecked_types = [bytes, str, np.void]
+
+ x = np.random.random(24) * 100
+ x = x.reshape((2, 3, 4))
+ for types in np._core.sctypes.values():
+ for T in types:
+ if T not in unchecked_types:
+ self.tst_basic(x.copy().astype(T))
+
+ # Also test string of a length which uses an untypical length
+ self.tst_basic(x.astype("S3"))
+
+ def test_raise(self):
+ x = np.random.random(24) * 100
+ x = x.reshape((2, 3, 4))
+ assert_raises(IndexError, x.take, [0, 1, 2], axis=0)
+ assert_raises(IndexError, x.take, [-3], axis=0)
+ assert_array_equal(x.take([-1], axis=0)[0], x[1])
+
+ def test_clip(self):
+ x = np.random.random(24) * 100
+ x = x.reshape((2, 3, 4))
+ assert_array_equal(x.take([-1], axis=0, mode='clip')[0], x[0])
+ assert_array_equal(x.take([2], axis=0, mode='clip')[0], x[1])
+
+ def test_wrap(self):
+ x = np.random.random(24) * 100
+ x = x.reshape((2, 3, 4))
+ assert_array_equal(x.take([-1], axis=0, mode='wrap')[0], x[1])
+ assert_array_equal(x.take([2], axis=0, mode='wrap')[0], x[0])
+ assert_array_equal(x.take([3], axis=0, mode='wrap')[0], x[1])
+
+ @pytest.mark.parametrize('dtype', ('>i4', 'f8'), ('z', ' 16MB
+ tmp_filename = normalize_filename(tmp_path, param_filename)
+ d = np.zeros(4 * 1024 ** 2)
+ d.tofile(tmp_filename)
+ assert_equal(os.path.getsize(tmp_filename), d.nbytes)
+ assert_array_equal(d, np.fromfile(tmp_filename))
+ # check offset
+ with open(tmp_filename, "r+b") as f:
+ f.seek(d.nbytes)
+ d.tofile(f)
+ assert_equal(os.path.getsize(tmp_filename), d.nbytes * 2)
+ # check append mode (gh-8329)
+ open(tmp_filename, "w").close() # delete file contents
+ with open(tmp_filename, "ab") as f:
+ d.tofile(f)
+ assert_array_equal(d, np.fromfile(tmp_filename))
+ with open(tmp_filename, "ab") as f:
+ d.tofile(f)
+ assert_equal(os.path.getsize(tmp_filename), d.nbytes * 2)
+
+ def test_io_open_buffered_fromfile(self, tmp_path, param_filename):
+ # gh-6632
+ tmp_filename = normalize_filename(tmp_path, param_filename)
+ x = self._create_data()
+ x.tofile(tmp_filename)
+ with open(tmp_filename, 'rb', buffering=-1) as f:
+ y = np.fromfile(f, dtype=x.dtype)
+ assert_array_equal(y, x.flat)
+
+ def test_file_position_after_fromfile(self, tmp_path, param_filename):
+ # gh-4118
+ sizes = [io.DEFAULT_BUFFER_SIZE // 8,
+ io.DEFAULT_BUFFER_SIZE,
+ io.DEFAULT_BUFFER_SIZE * 8]
+ tmp_filename = normalize_filename(tmp_path, param_filename)
+
+ for size in sizes:
+ with open(tmp_filename, 'wb') as f:
+ f.seek(size - 1)
+ f.write(b'\0')
+
+ for mode in ['rb', 'r+b']:
+ err_msg = "%d %s" % (size, mode)
+
+ with open(tmp_filename, mode) as f:
+ f.read(2)
+ np.fromfile(f, dtype=np.float64, count=1)
+ pos = f.tell()
+ assert_equal(pos, 10, err_msg=err_msg)
+
+ def test_file_position_after_tofile(self, tmp_path, param_filename):
+ # gh-4118
+ sizes = [io.DEFAULT_BUFFER_SIZE // 8,
+ io.DEFAULT_BUFFER_SIZE,
+ io.DEFAULT_BUFFER_SIZE * 8]
+ tmp_filename = normalize_filename(tmp_path, param_filename)
+
+ for size in sizes:
+ err_msg = "%d" % (size,)
+
+ with open(tmp_filename, 'wb') as f:
+ f.seek(size - 1)
+ f.write(b'\0')
+ f.seek(10)
+ f.write(b'12')
+ np.array([0], dtype=np.float64).tofile(f)
+ pos = f.tell()
+ assert_equal(pos, 10 + 2 + 8, err_msg=err_msg)
+
+ with open(tmp_filename, 'r+b') as f:
+ f.read(2)
+ f.seek(0, 1) # seek between read&write required by ANSI C
+ np.array([0], dtype=np.float64).tofile(f)
+ pos = f.tell()
+ assert_equal(pos, 10, err_msg=err_msg)
+
+ def test_load_object_array_fromfile(self, tmp_path, param_filename):
+ # gh-12300
+ tmp_filename = normalize_filename(tmp_path, param_filename)
+ with open(tmp_filename, 'w') as f:
+ # Ensure we have a file with consistent contents
+ pass
+
+ with open(tmp_filename, 'rb') as f:
+ assert_raises_regex(ValueError, "Cannot read into object array",
+ np.fromfile, f, dtype=object)
+
+ assert_raises_regex(ValueError, "Cannot read into object array",
+ np.fromfile, tmp_filename, dtype=object)
+
+ def test_fromfile_offset(self, tmp_path, param_filename):
+ tmp_filename = normalize_filename(tmp_path, param_filename)
+ x = self._create_data()
+ with open(tmp_filename, 'wb') as f:
+ x.tofile(f)
+
+ with open(tmp_filename, 'rb') as f:
+ y = np.fromfile(f, dtype=x.dtype, offset=0)
+ assert_array_equal(y, x.flat)
+
+ with open(tmp_filename, 'rb') as f:
+ count_items = len(x.flat) // 8
+ offset_items = len(x.flat) // 4
+ offset_bytes = x.dtype.itemsize * offset_items
+ y = np.fromfile(
+ f, dtype=x.dtype, count=count_items, offset=offset_bytes
+ )
+ assert_array_equal(
+ y, x.flat[offset_items:offset_items + count_items]
+ )
+
+ # subsequent seeks should stack
+ offset_bytes = x.dtype.itemsize
+ z = np.fromfile(f, dtype=x.dtype, offset=offset_bytes)
+ assert_array_equal(z, x.flat[offset_items + count_items + 1:])
+
+ with open(tmp_filename, 'wb') as f:
+ x.tofile(f, sep=",")
+
+ with open(tmp_filename, 'rb') as f:
+ assert_raises_regex(
+ TypeError,
+ "'offset' argument only permitted for binary files",
+ np.fromfile, tmp_filename, dtype=x.dtype,
+ sep=",", offset=1)
+
+ @pytest.mark.skipif(IS_PYPY, reason="bug in PyPy's PyNumber_AsSsize_t")
+ def test_fromfile_bad_dup(self, tmp_path, param_filename, monkeypatch):
+ def dup_str(fd):
+ return 'abc'
+
+ def dup_bigint(fd):
+ return 2**68
+
+ tmp_filename = normalize_filename(tmp_path, param_filename)
+ x = self._create_data()
+
+ with open(tmp_filename, 'wb') as f:
+ x.tofile(f)
+ for dup, exc in ((dup_str, TypeError), (dup_bigint, OSError)):
+ monkeypatch.setattr(os, "dup", dup)
+ assert_raises(exc, np.fromfile, f)
+
+ def _check_from(self, s, value, filename, **kw):
+ if 'sep' not in kw:
+ y = np.frombuffer(s, **kw)
+ else:
+ y = np.fromstring(s, **kw)
+ assert_array_equal(y, value)
+
+ with open(filename, 'wb') as f:
+ f.write(s)
+ y = np.fromfile(filename, **kw)
+ assert_array_equal(y, value)
+
+ @pytest.fixture(params=["period", "comma"])
+ def decimal_sep_localization(self, request):
+ """
+ Including this fixture in a test will automatically
+ execute it with both types of decimal separator.
+
+ So::
+
+ def test_decimal(decimal_sep_localization):
+ pass
+
+ is equivalent to the following two tests::
+
+ def test_decimal_period_separator():
+ pass
+
+ def test_decimal_comma_separator():
+ with CommaDecimalPointLocale():
+ pass
+ """
+ if request.param == "period":
+ yield
+ elif request.param == "comma":
+ with CommaDecimalPointLocale():
+ yield
+ else:
+ assert False, request.param
+
+ def test_nan(self, tmp_path, param_filename, decimal_sep_localization):
+ tmp_filename = normalize_filename(tmp_path, param_filename)
+ self._check_from(
+ b"nan +nan -nan NaN nan(foo) +NaN(BAR) -NAN(q_u_u_x_)",
+ [np.nan, np.nan, np.nan, np.nan, np.nan, np.nan, np.nan],
+ tmp_filename,
+ sep=' ')
+
+ def test_inf(self, tmp_path, param_filename, decimal_sep_localization):
+ tmp_filename = normalize_filename(tmp_path, param_filename)
+ self._check_from(
+ b"inf +inf -inf infinity -Infinity iNfInItY -inF",
+ [np.inf, np.inf, -np.inf, np.inf, -np.inf, np.inf, -np.inf],
+ tmp_filename,
+ sep=' ')
+
+ def test_numbers(self, tmp_path, param_filename, decimal_sep_localization):
+ tmp_filename = normalize_filename(tmp_path, param_filename)
+ self._check_from(
+ b"1.234 -1.234 .3 .3e55 -123133.1231e+133",
+ [1.234, -1.234, .3, .3e55, -123133.1231e+133],
+ tmp_filename,
+ sep=' ')
+
+ def test_binary(self, tmp_path, param_filename):
+ tmp_filename = normalize_filename(tmp_path, param_filename)
+ self._check_from(
+ b'\x00\x00\x80?\x00\x00\x00@\x00\x00@@\x00\x00\x80@',
+ np.array([1, 2, 3, 4]),
+ tmp_filename,
+ dtype=''])
+ @pytest.mark.parametrize('dtype', [float, int, complex])
+ def test_basic(self, byteorder, dtype):
+ dt = np.dtype(dtype).newbyteorder(byteorder)
+ x = (np.random.random((4, 7)) * 5).astype(dt)
+ buf = x.tobytes()
+ assert_array_equal(np.frombuffer(buf, dtype=dt), x.flat)
+
+ @pytest.mark.parametrize("obj", [np.arange(10), b"12345678"])
+ def test_array_base(self, obj):
+ # Objects (including NumPy arrays), which do not use the
+ # `release_buffer` slot should be directly used as a base object.
+ # See also gh-21612
+ new = np.frombuffer(obj)
+ assert new.base is obj
+
+ def test_empty(self):
+ assert_array_equal(np.frombuffer(b''), np.array([]))
+
+ @pytest.mark.skipif(IS_PYPY,
+ reason="PyPy's memoryview currently does not track exports. See: "
+ "https://foss.heptapod.net/pypy/pypy/-/issues/3724")
+ def test_mmap_close(self):
+ # The old buffer protocol was not safe for some things that the new
+ # one is. But `frombuffer` always used the old one for a long time.
+ # Checks that it is safe with the new one (using memoryviews)
+ with tempfile.TemporaryFile(mode='wb') as tmp:
+ tmp.write(b"asdf")
+ tmp.flush()
+ mm = mmap.mmap(tmp.fileno(), 0)
+ arr = np.frombuffer(mm, dtype=np.uint8)
+ with pytest.raises(BufferError):
+ mm.close() # cannot close while array uses the buffer
+ del arr
+ mm.close()
+
+class TestFlat:
+ def _create_arrays(self):
+ a = np.arange(20.0).reshape(4, 5)
+ a.flags.writeable = False
+ b = a[::2, ::2]
+ return a, b
+
+ def test_contiguous(self):
+ testpassed = False
+ a, _ = self._create_arrays()
+ try:
+ a.flat[12] = 100.0
+ except ValueError:
+ testpassed = True
+ assert_(testpassed)
+ assert_(a.flat[12] == 12.0)
+
+ def test_discontiguous(self):
+ testpassed = False
+ _, b = self._create_arrays()
+ try:
+ b.flat[4] = 100.0
+ except ValueError:
+ testpassed = True
+ assert_(testpassed)
+ assert_(b.flat[4] == 12.0)
+
+ def test___array__(self):
+ a0 = np.arange(20.0)
+ a = a0.reshape(4, 5)
+ a0 = a0.reshape((4, 5))
+ a.flags.writeable = False
+ b = a[::2, ::2]
+ b0 = a0[::2, ::2]
+ c = a.flat.__array__()
+ d = b.flat.__array__()
+ e = a0.flat.__array__()
+ f = b0.flat.__array__()
+
+ assert_(c.flags.writeable is False)
+ assert_(d.flags.writeable is False)
+ assert_(e.flags.writeable is True)
+ assert_(f.flags.writeable is False)
+ assert_(c.flags.writebackifcopy is False)
+ assert_(d.flags.writebackifcopy is False)
+ assert_(e.flags.writebackifcopy is False)
+ assert_(f.flags.writebackifcopy is False)
+
+ @pytest.mark.skipif(not HAS_REFCOUNT, reason="Python lacks refcounts")
+ def test_refcount(self):
+ # includes regression test for reference count error gh-13165
+ a, _ = self._create_arrays()
+ inds = [np.intp(0), np.array([True] * a.size), np.array([0]), None]
+ indtype = np.dtype(np.intp)
+ rc_indtype = sys.getrefcount(indtype)
+ for ind in inds:
+ rc_ind = sys.getrefcount(ind)
+ for _ in range(100):
+ try:
+ a.flat[ind]
+ except IndexError:
+ pass
+ assert_(abs(sys.getrefcount(ind) - rc_ind) < 50)
+ assert_(abs(sys.getrefcount(indtype) - rc_indtype) < 50)
+
+ def test_index_getset(self):
+ it = np.arange(10).reshape(2, 1, 5).flat
+ with pytest.raises(AttributeError):
+ it.index = 10
+
+ for _ in it:
+ pass
+ # Check the value of `.index` is updated correctly (see also gh-19153)
+ # If the type was incorrect, this would show up on big-endian machines
+ assert it.index == it.base.size
+
+ def test_maxdims(self):
+ # The flat iterator and thus attribute is currently unfortunately
+ # limited to only 32 dimensions (after bumping it to 64 for 2.0)
+ a = np.ones((1,) * 64)
+
+ with pytest.raises(RuntimeError,
+ match=".*32 dimensions but the array has 64"):
+ a.flat
+
+
+class TestResize:
+
+ @_no_tracing
+ def test_basic(self):
+ x = np.array([[1, 0, 0], [0, 1, 0], [0, 0, 1]])
+ if IS_PYPY:
+ x.resize((5, 5), refcheck=False)
+ else:
+ x.resize((5, 5))
+ assert_array_equal(x.flat[:9],
+ np.array([[1, 0, 0], [0, 1, 0], [0, 0, 1]]).flat)
+ assert_array_equal(x[9:].flat, 0)
+
+ def test_check_reference(self):
+ x = np.array([[1, 0, 0], [0, 1, 0], [0, 0, 1]])
+ y = x
+ assert_raises(ValueError, x.resize, (5, 1))
+
+ @pytest.mark.skipif(IS_WASM, reason="Cannot start subprocess")
+ @pytest.mark.skipif(IS_PYPY, reason="The method always raises")
+ def test_check_reference_module_scope(self):
+ code = textwrap.dedent("""
+ import numpy as np
+
+ # See gh-30991
+ a = np.array([[0, 1], [2, 3]], order='C')
+ a.resize((2, 1))
+ """)
+ try:
+ subprocess.check_output([sys.executable, "-c", code],
+ stderr=subprocess.STDOUT, text=True)
+ except subprocess.CalledProcessError as e:
+ assert sys.version_info >= (3, 14)
+ assert "ValueError" in e.stdout
+ assert "It is possible that this is a false positive." in e.stdout
+ else:
+ if sys.version_info >= (3, 14):
+ raise AssertionError("Unexpected success of resize refcheck")
+
+ def test_check_reference_2(self):
+ # see gh-30265
+ x = np.zeros((2, 2))
+ y = x
+ with pytest.raises(ValueError):
+ x.resize((5, 5))
+
+ @_no_tracing
+ def test_int_shape(self):
+ x = np.eye(3)
+ if IS_PYPY:
+ x.resize(3, refcheck=False)
+ else:
+ x.resize(3)
+ assert_array_equal(x, np.eye(3)[0, :])
+
+ def test_none_shape(self):
+ x = np.eye(3)
+ x.resize(None)
+ assert_array_equal(x, np.eye(3))
+ x.resize()
+ assert_array_equal(x, np.eye(3))
+
+ def test_0d_shape(self):
+ # to it multiple times to test it does not break alloc cache gh-9216
+ for i in range(10):
+ x = np.empty((1,))
+ x.resize(())
+ assert_equal(x.shape, ())
+ assert_equal(x.size, 1)
+ x = np.empty(())
+ x.resize((1,))
+ assert_equal(x.shape, (1,))
+ assert_equal(x.size, 1)
+
+ def test_invalid_arguments(self):
+ assert_raises(TypeError, np.eye(3).resize, 'hi')
+ assert_raises(ValueError, np.eye(3).resize, -1)
+ assert_raises(TypeError, np.eye(3).resize, order=1)
+ assert_raises(TypeError, np.eye(3).resize, refcheck='hi')
+
+ @_no_tracing
+ def test_freeform_shape(self):
+ x = np.eye(3)
+ if IS_PYPY:
+ x.resize(3, 2, 1, refcheck=False)
+ else:
+ x.resize(3, 2, 1)
+ assert_(x.shape == (3, 2, 1))
+
+ @_no_tracing
+ def test_zeros_appended(self):
+ x = np.eye(3)
+ if IS_PYPY:
+ x.resize(2, 3, 3, refcheck=False)
+ else:
+ x.resize(2, 3, 3)
+ assert_array_equal(x[0], np.eye(3))
+ assert_array_equal(x[1], np.zeros((3, 3)))
+
+ @_no_tracing
+ def test_obj_obj(self):
+ # check memory is initialized on resize, gh-4857
+ a = np.ones(10, dtype=[('k', object, 2)])
+ if IS_PYPY:
+ a.resize(15, refcheck=False)
+ else:
+ a.resize(15,)
+ assert_equal(a.shape, (15,))
+ assert_array_equal(a['k'][-5:], 0)
+ assert_array_equal(a['k'][:-5], 1)
+
+ @pytest.mark.skipif(not HAS_REFCOUNT, reason="Python lacks refcounts")
+ @pytest.mark.parametrize("dtype", ["O", "O,O"])
+ def test_obj_obj_shrinking(self, dtype):
+ # check that memory is freed when shrinking an array.
+ test_obj = object()
+ expected = sys.getrefcount(test_obj)
+ a = np.array([test_obj, test_obj, test_obj], dtype=dtype)
+ assert a.size == 3
+ a.resize((2, 1)) # two elements, not three!
+ assert a.size == 2
+ del a
+ # if all is well, then we reclaimed all references
+ assert sys.getrefcount(test_obj) == expected
+
+ def test_empty_view(self):
+ # check that sizes containing a zero don't trigger a reallocate for
+ # already empty arrays
+ x = np.zeros((10, 0), int)
+ x_view = x[...]
+ x_view.resize((0, 10))
+ x_view.resize((0, 100))
+
+ def test_check_weakref(self):
+ x = np.array([[1, 0, 0], [0, 1, 0], [0, 0, 1]])
+ xref = weakref.ref(x)
+ assert_raises(ValueError, x.resize, (5, 1))
+
+
+class TestRecord:
+ def test_field_rename(self):
+ dt = np.dtype([('f', float), ('i', int)])
+ dt.names = ['p', 'q']
+ assert_equal(dt.names, ['p', 'q'])
+
+ def test_multiple_field_name_occurrence(self):
+ def test_dtype_init():
+ np.dtype([("A", "f8"), ("B", "f8"), ("A", "f8")])
+
+ # Error raised when multiple fields have the same name
+ assert_raises(ValueError, test_dtype_init)
+
+ def test_bytes_fields(self):
+ # Bytes are not allowed in field names and not recognized in titles
+ # on Py3
+ assert_raises(TypeError, np.dtype, [(b'a', int)])
+ assert_raises(TypeError, np.dtype, [(('b', b'a'), int)])
+
+ dt = np.dtype([((b'a', 'b'), int)])
+ assert_raises(TypeError, dt.__getitem__, b'a')
+
+ x = np.array([(1,), (2,), (3,)], dtype=dt)
+ assert_raises(IndexError, x.__getitem__, b'a')
+
+ y = x[0]
+ assert_raises(IndexError, y.__getitem__, b'a')
+
+ def test_multiple_field_name_unicode(self):
+ def test_dtype_unicode():
+ np.dtype([("\u20B9", "f8"), ("B", "f8"), ("\u20B9", "f8")])
+
+ # Error raised when multiple fields have the same name(unicode included)
+ assert_raises(ValueError, test_dtype_unicode)
+
+ def test_fromarrays_unicode(self):
+ # A single name string provided to fromarrays() is allowed to be unicode
+ x = np._core.records.fromarrays(
+ [[0], [1]], names='a,b', formats='i4,i4')
+ assert_equal(x['a'][0], 0)
+ assert_equal(x['b'][0], 1)
+
+ def test_unicode_order(self):
+ # Test that we can sort with order as a unicode field name
+ name = 'b'
+ x = np.array([1, 3, 2], dtype=[(name, int)])
+ x.sort(order=name)
+ assert_equal(x['b'], np.array([1, 2, 3]))
+
+ def test_field_names(self):
+ # Test unicode and 8-bit / byte strings can be used
+ a = np.zeros((1,), dtype=[('f1', 'i4'),
+ ('f2', 'i4'),
+ ('f3', [('sf1', 'i4')])])
+ # byte string indexing fails gracefully
+ assert_raises(IndexError, a.__setitem__, b'f1', 1)
+ assert_raises(IndexError, a.__getitem__, b'f1')
+ assert_raises(IndexError, a['f1'].__setitem__, b'sf1', 1)
+ assert_raises(IndexError, a['f1'].__getitem__, b'sf1')
+ b = a.copy()
+ fn1 = 'f1'
+ b[fn1] = 1
+ assert_equal(b[fn1], 1)
+ fnn = 'not at all'
+ assert_raises(ValueError, b.__setitem__, fnn, 1)
+ assert_raises(ValueError, b.__getitem__, fnn)
+ b[0][fn1] = 2
+ assert_equal(b[fn1], 2)
+ # Subfield
+ assert_raises(ValueError, b[0].__setitem__, fnn, 1)
+ assert_raises(ValueError, b[0].__getitem__, fnn)
+ # Subfield
+ fn3 = 'f3'
+ sfn1 = 'sf1'
+ b[fn3][sfn1] = 1
+ assert_equal(b[fn3][sfn1], 1)
+ assert_raises(ValueError, b[fn3].__setitem__, fnn, 1)
+ assert_raises(ValueError, b[fn3].__getitem__, fnn)
+ # multiple subfields
+ fn2 = 'f2'
+ b[fn2] = 3
+
+ assert_equal(b[['f1', 'f2']][0].tolist(), (2, 3))
+ assert_equal(b[['f2', 'f1']][0].tolist(), (3, 2))
+ assert_equal(b[['f1', 'f3']][0].tolist(), (2, (1,)))
+
+ # non-ascii unicode field indexing is well behaved
+ assert_raises(ValueError, a.__setitem__, '\u03e0', 1)
+ assert_raises(ValueError, a.__getitem__, '\u03e0')
+
+ def test_record_hash(self):
+ a = np.array([(1, 2), (1, 2)], dtype='i1,i2')
+ a.flags.writeable = False
+ b = np.array([(1, 2), (3, 4)], dtype=[('num1', 'i1'), ('num2', 'i2')])
+ b.flags.writeable = False
+ c = np.array([(1, 2), (3, 4)], dtype='i1,i2')
+ c.flags.writeable = False
+ assert_(hash(a[0]) == hash(a[1]))
+ assert_(hash(a[0]) == hash(b[0]))
+ assert_(hash(a[0]) != hash(b[1]))
+ assert_(hash(c[0]) == hash(a[0]) and c[0] == a[0])
+
+ def test_record_no_hash(self):
+ a = np.array([(1, 2), (1, 2)], dtype='i1,i2')
+ assert_raises(TypeError, hash, a[0])
+
+ def test_empty_structure_creation(self):
+ # make sure these do not raise errors (gh-5631)
+ np.array([()], dtype={'names': [], 'formats': [],
+ 'offsets': [], 'itemsize': 12})
+ np.array([(), (), (), (), ()], dtype={'names': [], 'formats': [],
+ 'offsets': [], 'itemsize': 12})
+
+ def test_multifield_indexing_view(self):
+ a = np.ones(3, dtype=[('a', 'i4'), ('b', 'f4'), ('c', 'u4')])
+ v = a[['a', 'c']]
+ assert_(v.base is a)
+ assert_(v.dtype == np.dtype({'names': ['a', 'c'],
+ 'formats': ['i4', 'u4'],
+ 'offsets': [0, 8]}))
+ v[:] = (4, 5)
+ assert_equal(a[0].item(), (4, 1, 5))
+
+class TestView:
+ def test_basic(self):
+ x = np.array([(1, 2, 3, 4), (5, 6, 7, 8)],
+ dtype=[('r', np.int8), ('g', np.int8),
+ ('b', np.int8), ('a', np.int8)])
+ # We must be specific about the endianness here:
+ y = x.view(dtype=' 0)
+ assert_(issubclass(w[0].category, RuntimeWarning))
+
+ def test_empty(self):
+ A = np.zeros((0, 3))
+ for f in self.funcs:
+ for axis in [0, None]:
+ with warnings.catch_warnings(record=True) as w:
+ warnings.simplefilter('always')
+ assert_(np.isnan(f(A, axis=axis)).all())
+ assert_(len(w) > 0)
+ assert_(issubclass(w[0].category, RuntimeWarning))
+ for axis in [1]:
+ with warnings.catch_warnings(record=True) as w:
+ warnings.simplefilter('always')
+ assert_equal(f(A, axis=axis), np.zeros([]))
+
+ def test_mean_values(self):
+ rmat, cmat, omat = self._create_data()
+ for mat in [rmat, cmat, omat]:
+ for axis in [0, 1]:
+ tgt = mat.sum(axis=axis)
+ res = _mean(mat, axis=axis) * mat.shape[axis]
+ assert_almost_equal(res, tgt)
+ for axis in [None]:
+ tgt = mat.sum(axis=axis)
+ res = _mean(mat, axis=axis) * np.prod(mat.shape)
+ assert_almost_equal(res, tgt)
+
+ def test_mean_float16(self):
+ # This fail if the sum inside mean is done in float16 instead
+ # of float32.
+ assert_(_mean(np.ones(100000, dtype='float16')) == 1)
+
+ def test_mean_axis_error(self):
+ # Ensure that AxisError is raised instead of IndexError when axis is
+ # out of bounds, see gh-15817.
+ with assert_raises(np.exceptions.AxisError):
+ np.arange(10).mean(axis=2)
+
+ def test_mean_where(self):
+ a = np.arange(16).reshape((4, 4))
+ wh_full = np.array([[False, True, False, True],
+ [True, False, True, False],
+ [True, True, False, False],
+ [False, False, True, True]])
+ wh_partial = np.array([[False],
+ [True],
+ [True],
+ [False]])
+ _cases = [(1, True, [1.5, 5.5, 9.5, 13.5]),
+ (0, wh_full, [6., 5., 10., 9.]),
+ (1, wh_full, [2., 5., 8.5, 14.5]),
+ (0, wh_partial, [6., 7., 8., 9.])]
+ for _ax, _wh, _res in _cases:
+ assert_allclose(a.mean(axis=_ax, where=_wh),
+ np.array(_res))
+ assert_allclose(np.mean(a, axis=_ax, where=_wh),
+ np.array(_res))
+
+ a3d = np.arange(16).reshape((2, 2, 4))
+ _wh_partial = np.array([False, True, True, False])
+ _res = [[1.5, 5.5], [9.5, 13.5]]
+ assert_allclose(a3d.mean(axis=2, where=_wh_partial),
+ np.array(_res))
+ assert_allclose(np.mean(a3d, axis=2, where=_wh_partial),
+ np.array(_res))
+
+ with pytest.warns(RuntimeWarning) as w:
+ assert_allclose(a.mean(axis=1, where=wh_partial),
+ np.array([np.nan, 5.5, 9.5, np.nan]))
+ with pytest.warns(RuntimeWarning) as w:
+ assert_equal(a.mean(where=False), np.nan)
+ with pytest.warns(RuntimeWarning) as w:
+ assert_equal(np.mean(a, where=False), np.nan)
+
+ def test_var_values(self):
+ rmat, cmat, omat = self._create_data()
+ for mat in [rmat, cmat, omat]:
+ for axis in [0, 1, None]:
+ msqr = _mean(mat * mat.conj(), axis=axis)
+ mean = _mean(mat, axis=axis)
+ tgt = msqr - mean * mean.conjugate()
+ res = _var(mat, axis=axis)
+ assert_almost_equal(res, tgt)
+
+ @pytest.mark.parametrize(('complex_dtype', 'ndec'), (
+ ('complex64', 6),
+ ('complex128', 7),
+ ('clongdouble', 7),
+ ))
+ def test_var_complex_values(self, complex_dtype, ndec):
+ _, cmat, _ = self._create_data()
+ # Test fast-paths for every builtin complex type
+ for axis in [0, 1, None]:
+ mat = cmat.copy().astype(complex_dtype)
+ msqr = _mean(mat * mat.conj(), axis=axis)
+ mean = _mean(mat, axis=axis)
+ tgt = msqr - mean * mean.conjugate()
+ res = _var(mat, axis=axis)
+ assert_almost_equal(res, tgt, decimal=ndec)
+
+ def test_var_dimensions(self):
+ # _var paths for complex number introduce additions on views that
+ # increase dimensions. Ensure this generalizes to higher dims
+ _, cmat, _ = self._create_data()
+ mat = np.stack([cmat] * 3)
+ for axis in [0, 1, 2, -1, None]:
+ msqr = _mean(mat * mat.conj(), axis=axis)
+ mean = _mean(mat, axis=axis)
+ tgt = msqr - mean * mean.conjugate()
+ res = _var(mat, axis=axis)
+ assert_almost_equal(res, tgt)
+
+ def test_var_complex_byteorder(self):
+ # Test that var fast-path does not cause failures for complex arrays
+ # with non-native byteorder
+ _, cmat, _ = self._create_data()
+ cmat = cmat.copy().astype('complex128')
+ cmat_swapped = cmat.astype(cmat.dtype.newbyteorder())
+ assert_almost_equal(cmat.var(), cmat_swapped.var())
+
+ def test_var_axis_error(self):
+ # Ensure that AxisError is raised instead of IndexError when axis is
+ # out of bounds, see gh-15817.
+ with assert_raises(np.exceptions.AxisError):
+ np.arange(10).var(axis=2)
+
+ def test_var_where(self):
+ a = np.arange(25).reshape((5, 5))
+ wh_full = np.array([[False, True, False, True, True],
+ [True, False, True, True, False],
+ [True, True, False, False, True],
+ [False, True, True, False, True],
+ [True, False, True, True, False]])
+ wh_partial = np.array([[False],
+ [True],
+ [True],
+ [False],
+ [True]])
+ _cases = [(0, True, [50., 50., 50., 50., 50.]),
+ (1, True, [2., 2., 2., 2., 2.])]
+ for _ax, _wh, _res in _cases:
+ assert_allclose(a.var(axis=_ax, where=_wh),
+ np.array(_res))
+ assert_allclose(np.var(a, axis=_ax, where=_wh),
+ np.array(_res))
+
+ a3d = np.arange(16).reshape((2, 2, 4))
+ _wh_partial = np.array([False, True, True, False])
+ _res = [[0.25, 0.25], [0.25, 0.25]]
+ assert_allclose(a3d.var(axis=2, where=_wh_partial),
+ np.array(_res))
+ assert_allclose(np.var(a3d, axis=2, where=_wh_partial),
+ np.array(_res))
+
+ assert_allclose(np.var(a, axis=1, where=wh_full),
+ np.var(a[wh_full].reshape((5, 3)), axis=1))
+ assert_allclose(np.var(a, axis=0, where=wh_partial),
+ np.var(a[wh_partial[:, 0]], axis=0))
+ with pytest.warns(RuntimeWarning) as w:
+ assert_equal(a.var(where=False), np.nan)
+ with pytest.warns(RuntimeWarning) as w:
+ assert_equal(np.var(a, where=False), np.nan)
+
+ def test_std_values(self):
+ rmat, cmat, omat = self._create_data()
+ for mat in [rmat, cmat, omat]:
+ for axis in [0, 1, None]:
+ tgt = np.sqrt(_var(mat, axis=axis))
+ res = _std(mat, axis=axis)
+ assert_almost_equal(res, tgt)
+
+ def test_std_where(self):
+ a = np.arange(25).reshape((5, 5))[::-1]
+ whf = np.array([[False, True, False, True, True],
+ [True, False, True, False, True],
+ [True, True, False, True, False],
+ [True, False, True, True, False],
+ [False, True, False, True, True]])
+ whp = np.array([[False],
+ [False],
+ [True],
+ [True],
+ [False]])
+ _cases = [
+ (0, True, 7.07106781 * np.ones(5)),
+ (1, True, 1.41421356 * np.ones(5)),
+ (0, whf,
+ np.array([4.0824829, 8.16496581, 5., 7.39509973, 8.49836586])),
+ (0, whp, 2.5 * np.ones(5))
+ ]
+ for _ax, _wh, _res in _cases:
+ assert_allclose(a.std(axis=_ax, where=_wh), _res)
+ assert_allclose(np.std(a, axis=_ax, where=_wh), _res)
+
+ a3d = np.arange(16).reshape((2, 2, 4))
+ _wh_partial = np.array([False, True, True, False])
+ _res = [[0.5, 0.5], [0.5, 0.5]]
+ assert_allclose(a3d.std(axis=2, where=_wh_partial),
+ np.array(_res))
+ assert_allclose(np.std(a3d, axis=2, where=_wh_partial),
+ np.array(_res))
+
+ assert_allclose(a.std(axis=1, where=whf),
+ np.std(a[whf].reshape((5, 3)), axis=1))
+ assert_allclose(np.std(a, axis=1, where=whf),
+ (a[whf].reshape((5, 3))).std(axis=1))
+ assert_allclose(a.std(axis=0, where=whp),
+ np.std(a[whp[:, 0]], axis=0))
+ assert_allclose(np.std(a, axis=0, where=whp),
+ (a[whp[:, 0]]).std(axis=0))
+ with pytest.warns(RuntimeWarning) as w:
+ assert_equal(a.std(where=False), np.nan)
+ with pytest.warns(RuntimeWarning) as w:
+ assert_equal(np.std(a, where=False), np.nan)
+
+ def test_subclass(self):
+ class TestArray(np.ndarray):
+ def __new__(cls, data, info):
+ result = np.array(data)
+ result = result.view(cls)
+ result.info = info
+ return result
+
+ def __array_finalize__(self, obj):
+ self.info = getattr(obj, "info", '')
+
+ dat = TestArray([[1, 2, 3, 4], [5, 6, 7, 8]], 'jubba')
+ res = dat.mean(1)
+ assert_(res.info == dat.info)
+ res = dat.std(1)
+ assert_(res.info == dat.info)
+ res = dat.var(1)
+ assert_(res.info == dat.info)
+
+
+class TestVdot:
+ def test_basic(self):
+ dt_numeric = np.typecodes['AllFloat'] + np.typecodes['AllInteger']
+ dt_complex = np.typecodes['Complex']
+
+ # test real
+ a = np.eye(3)
+ for dt in dt_numeric + 'O':
+ b = a.astype(dt)
+ res = np.vdot(b, b)
+ assert_(np.isscalar(res))
+ assert_equal(np.vdot(b, b), 3)
+
+ # test complex
+ a = np.eye(3) * 1j
+ for dt in dt_complex + 'O':
+ b = a.astype(dt)
+ res = np.vdot(b, b)
+ assert_(np.isscalar(res))
+ assert_equal(np.vdot(b, b), 3)
+
+ # test boolean
+ b = np.eye(3, dtype=bool)
+ res = np.vdot(b, b)
+ assert_(np.isscalar(res))
+ assert_equal(np.vdot(b, b), True)
+
+ def test_vdot_array_order(self):
+ a = np.array([[1, 2], [3, 4]], order='C')
+ b = np.array([[1, 2], [3, 4]], order='F')
+ res = np.vdot(a, a)
+
+ # integer arrays are exact
+ assert_equal(np.vdot(a, b), res)
+ assert_equal(np.vdot(b, a), res)
+ assert_equal(np.vdot(b, b), res)
+
+ def test_vdot_uncontiguous(self):
+ for size in [2, 1000]:
+ # Different sizes match different branches in vdot.
+ a = np.zeros((size, 2, 2))
+ b = np.zeros((size, 2, 2))
+ a[:, 0, 0] = np.arange(size)
+ b[:, 0, 0] = np.arange(size) + 1
+ # Make a and b uncontiguous:
+ a = a[..., 0]
+ b = b[..., 0]
+
+ assert_equal(np.vdot(a, b),
+ np.vdot(a.flatten(), b.flatten()))
+ assert_equal(np.vdot(a, b.copy()),
+ np.vdot(a.flatten(), b.flatten()))
+ assert_equal(np.vdot(a.copy(), b),
+ np.vdot(a.flatten(), b.flatten()))
+ assert_equal(np.vdot(a.copy('F'), b),
+ np.vdot(a.flatten(), b.flatten()))
+ assert_equal(np.vdot(a, b.copy('F')),
+ np.vdot(a.flatten(), b.flatten()))
+
+
+class TestDot:
+ N = 7
+
+ def _create_data(self):
+ rng = np.random.RandomState(128)
+ A = rng.random((4, 2))
+ b1 = rng.random((2, 1))
+ b2 = rng.random(2)
+ b3 = rng.random((1, 2))
+ b4 = rng.random(4)
+ return A, b1, b2, b3, b4
+
+ def test_dotmatmat(self):
+ A, _, _, _, _ = self._create_data()
+ res = np.dot(A.transpose(), A)
+ tgt = np.array([[1.45046013, 0.86323640],
+ [0.86323640, 0.84934569]])
+ assert_almost_equal(res, tgt, decimal=self.N)
+
+ def test_dotmatvec(self):
+ A, b1, _, _, _ = self._create_data()
+ res = np.dot(A, b1)
+ tgt = np.array([[0.32114320], [0.04889721],
+ [0.15696029], [0.33612621]])
+ assert_almost_equal(res, tgt, decimal=self.N)
+
+ def test_dotmatvec2(self):
+ A, _, b2, _, _ = self._create_data()
+ res = np.dot(A, b2)
+ tgt = np.array([0.29677940, 0.04518649, 0.14468333, 0.31039293])
+ assert_almost_equal(res, tgt, decimal=self.N)
+
+ def test_dotvecmat(self):
+ A, _, _, _, b4 = self._create_data()
+ res = np.dot(b4, A)
+ tgt = np.array([1.23495091, 1.12222648])
+ assert_almost_equal(res, tgt, decimal=self.N)
+
+ def test_dotvecmat2(self):
+ A, _, _, b3, _ = self._create_data()
+ res = np.dot(b3, A.transpose())
+ tgt = np.array([[0.58793804, 0.08957460, 0.30605758, 0.62716383]])
+ assert_almost_equal(res, tgt, decimal=self.N)
+
+ def test_dotvecmat3(self):
+ A, _, _, _, b4 = self._create_data()
+ res = np.dot(A.transpose(), b4)
+ tgt = np.array([1.23495091, 1.12222648])
+ assert_almost_equal(res, tgt, decimal=self.N)
+
+ def test_dotvecvecouter(self):
+ _, b1, _, b3, _ = self._create_data()
+ res = np.dot(b1, b3)
+ tgt = np.array([[0.20128610, 0.08400440], [0.07190947, 0.03001058]])
+ assert_almost_equal(res, tgt, decimal=self.N)
+
+ def test_dotvecvecinner(self):
+ _, b1, _, b3, _ = self._create_data()
+ res = np.dot(b3, b1)
+ tgt = np.array([[0.23129668]])
+ assert_almost_equal(res, tgt, decimal=self.N)
+
+ def test_dotcolumnvect1(self):
+ b1 = np.ones((3, 1))
+ b2 = [5.3]
+ res = np.dot(b1, b2)
+ tgt = np.array([5.3, 5.3, 5.3])
+ assert_almost_equal(res, tgt, decimal=self.N)
+
+ def test_dotcolumnvect2(self):
+ b1 = np.ones((3, 1)).transpose()
+ b2 = [6.2]
+ res = np.dot(b2, b1)
+ tgt = np.array([6.2, 6.2, 6.2])
+ assert_almost_equal(res, tgt, decimal=self.N)
+
+ def test_dotvecscalar(self):
+ rng = np.random.RandomState(100)
+ b1 = rng.random((1, 1))
+ b2 = rng.random((1, 4))
+ res = np.dot(b1, b2)
+ tgt = np.array([[0.15126730, 0.23068496, 0.45905553, 0.00256425]])
+ assert_almost_equal(res, tgt, decimal=self.N)
+
+ def test_dotvecscalar2(self):
+ rng = np.random.RandomState(100)
+ b1 = rng.random((4, 1))
+ b2 = rng.random((1, 1))
+ res = np.dot(b1, b2)
+ tgt = np.array([[0.00256425], [0.00131359], [0.00200324], [0.00398638]])
+ assert_almost_equal(res, tgt, decimal=self.N)
+
+ def test_all(self):
+ dims = [(), (1,), (1, 1)]
+ dout = [(), (1,), (1, 1), (1,), (), (1,), (1, 1), (1,), (1, 1)]
+ for dim, (dim1, dim2) in zip(dout, itertools.product(dims, dims)):
+ b1 = np.zeros(dim1)
+ b2 = np.zeros(dim2)
+ res = np.dot(b1, b2)
+ tgt = np.zeros(dim)
+ assert_(res.shape == tgt.shape)
+ assert_almost_equal(res, tgt, decimal=self.N)
+
+ def test_vecobject(self):
+ class Vec:
+ def __init__(self, sequence=None):
+ if sequence is None:
+ sequence = []
+ self.array = np.array(sequence)
+
+ def __add__(self, other):
+ out = Vec()
+ out.array = self.array + other.array
+ return out
+
+ def __sub__(self, other):
+ out = Vec()
+ out.array = self.array - other.array
+ return out
+
+ def __mul__(self, other): # with scalar
+ out = Vec(self.array.copy())
+ out.array *= other
+ return out
+
+ def __rmul__(self, other):
+ return self * other
+
+ U_non_cont = np.transpose([[1., 1.], [1., 2.]])
+ U_cont = np.ascontiguousarray(U_non_cont)
+ x = np.array([Vec([1., 0.]), Vec([0., 1.])])
+ zeros = np.array([Vec([0., 0.]), Vec([0., 0.])])
+ zeros_test = np.dot(U_cont, x) - np.dot(U_non_cont, x)
+ assert_equal(zeros[0].array, zeros_test[0].array)
+ assert_equal(zeros[1].array, zeros_test[1].array)
+
+ def test_dot_2args(self):
+
+ a = np.array([[1, 2], [3, 4]], dtype=float)
+ b = np.array([[1, 0], [1, 1]], dtype=float)
+ c = np.array([[3, 2], [7, 4]], dtype=float)
+
+ d = dot(a, b)
+ assert_allclose(c, d)
+
+ def test_dot_3args(self):
+
+ np.random.seed(22)
+ f = np.random.random_sample((1024, 16))
+ v = np.random.random_sample((16, 32))
+
+ r = np.empty((1024, 32))
+ if HAS_REFCOUNT:
+ orig_refcount = sys.getrefcount(r)
+ for i in range(12):
+ dot(f, v, r)
+ if HAS_REFCOUNT:
+ assert_equal(sys.getrefcount(r), orig_refcount)
+ r2 = dot(f, v, out=None)
+ assert_array_equal(r2, r)
+ assert_(r is dot(f, v, out=r))
+
+ v = v[:, 0].copy() # v.shape == (16,)
+ r = r[:, 0].copy() # r.shape == (1024,)
+ r2 = dot(f, v)
+ assert_(r is dot(f, v, r))
+ assert_array_equal(r2, r)
+
+ def test_dot_3args_errors(self):
+
+ np.random.seed(22)
+ f = np.random.random_sample((1024, 16))
+ v = np.random.random_sample((16, 32))
+
+ r = np.empty((1024, 31))
+ assert_raises(ValueError, dot, f, v, r)
+
+ r = np.empty((1024,))
+ assert_raises(ValueError, dot, f, v, r)
+
+ r = np.empty((32,))
+ assert_raises(ValueError, dot, f, v, r)
+
+ r = np.empty((32, 1024))
+ assert_raises(ValueError, dot, f, v, r)
+ assert_raises(ValueError, dot, f, v, r.T)
+
+ r = np.empty((1024, 64))
+ assert_raises(ValueError, dot, f, v, r[:, ::2])
+ assert_raises(ValueError, dot, f, v, r[:, :32])
+
+ r = np.empty((1024, 32), dtype=np.float32)
+ assert_raises(ValueError, dot, f, v, r)
+
+ r = np.empty((1024, 32), dtype=int)
+ assert_raises(ValueError, dot, f, v, r)
+
+ def test_dot_out_result(self):
+ x = np.ones((), dtype=np.float16)
+ y = np.ones((5,), dtype=np.float16)
+ z = np.zeros((5,), dtype=np.float16)
+ res = x.dot(y, out=z)
+ assert np.array_equal(res, y)
+ assert np.array_equal(z, y)
+
+ def test_dot_out_aliasing(self):
+ x = np.ones((), dtype=np.float16)
+ y = np.ones((5,), dtype=np.float16)
+ z = np.zeros((5,), dtype=np.float16)
+ res = x.dot(y, out=z)
+ z[0] = 2
+ assert np.array_equal(res, z)
+
+ def test_dot_array_order(self):
+ a = np.array([[1, 2], [3, 4]], order='C')
+ b = np.array([[1, 2], [3, 4]], order='F')
+ res = np.dot(a, a)
+
+ # integer arrays are exact
+ assert_equal(np.dot(a, b), res)
+ assert_equal(np.dot(b, a), res)
+ assert_equal(np.dot(b, b), res)
+
+ def test_accelerate_framework_sgemv_fix(self):
+
+ def aligned_array(shape, align, dtype, order='C'):
+ d = dtype(0)
+ N = np.prod(shape)
+ tmp = np.zeros(N * d.nbytes + align, dtype=np.uint8)
+ address = tmp.__array_interface__["data"][0]
+ for offset in range(align):
+ if (address + offset) % align == 0:
+ break
+ tmp = tmp[offset:offset + N * d.nbytes].view(dtype=dtype)
+ return tmp.reshape(shape, order=order)
+
+ def as_aligned(arr, align, dtype, order='C'):
+ aligned = aligned_array(arr.shape, align, dtype, order)
+ aligned[:] = arr[:]
+ return aligned
+
+ def assert_dot_close(A, X, desired):
+ assert_allclose(np.dot(A, X), desired, rtol=1e-5, atol=1e-7)
+
+ m = aligned_array(100, 15, np.float32)
+ s = aligned_array((100, 100), 15, np.float32)
+ np.dot(s, m) # this will always segfault if the bug is present
+
+ testdata = itertools.product((15, 32), (10000,), (200, 89), ('C', 'F'))
+ for align, m, n, a_order in testdata:
+ # Calculation in double precision
+ A_d = np.random.rand(m, n)
+ X_d = np.random.rand(n)
+ desired = np.dot(A_d, X_d)
+ # Calculation with aligned single precision
+ A_f = as_aligned(A_d, align, np.float32, order=a_order)
+ X_f = as_aligned(X_d, align, np.float32)
+ assert_dot_close(A_f, X_f, desired)
+ # Strided A rows
+ A_d_2 = A_d[::2]
+ desired = np.dot(A_d_2, X_d)
+ A_f_2 = A_f[::2]
+ assert_dot_close(A_f_2, X_f, desired)
+ # Strided A columns, strided X vector
+ A_d_22 = A_d_2[:, ::2]
+ X_d_2 = X_d[::2]
+ desired = np.dot(A_d_22, X_d_2)
+ A_f_22 = A_f_2[:, ::2]
+ X_f_2 = X_f[::2]
+ assert_dot_close(A_f_22, X_f_2, desired)
+ # Check the strides are as expected
+ if a_order == 'F':
+ assert_equal(A_f_22.strides, (8, 8 * m))
+ else:
+ assert_equal(A_f_22.strides, (8 * n, 8))
+ assert_equal(X_f_2.strides, (8,))
+ # Strides in A rows + cols only
+ X_f_2c = as_aligned(X_f_2, align, np.float32)
+ assert_dot_close(A_f_22, X_f_2c, desired)
+ # Strides just in A cols
+ A_d_12 = A_d[:, ::2]
+ desired = np.dot(A_d_12, X_d_2)
+ A_f_12 = A_f[:, ::2]
+ assert_dot_close(A_f_12, X_f_2c, desired)
+ # Strides in A cols and X
+ assert_dot_close(A_f_12, X_f_2, desired)
+
+ @pytest.mark.slow
+ @pytest.mark.parametrize("dtype", [np.float64, np.complex128])
+ @requires_memory(free_bytes=18e9) # complex case needs 18GiB+
+ @pytest.mark.thread_unsafe(reason="crashes with low memory")
+ def test_huge_vectordot(self, dtype):
+ # Large vector multiplications are chunked with 32bit BLAS
+ # Test that the chunking does the right thing, see also gh-22262
+ data = np.ones(2**30 + 100, dtype=dtype)
+ res = np.dot(data, data)
+ assert res == 2**30 + 100
+
+ def test_dtype_discovery_fails(self):
+ # See gh-14247, error checking was missing for failed dtype discovery
+ class BadObject:
+ def __array__(self, dtype=None, copy=None):
+ raise TypeError("just this tiny mint leaf")
+
+ with pytest.raises(TypeError):
+ np.dot(BadObject(), BadObject())
+
+ with pytest.raises(TypeError):
+ np.dot(3.0, BadObject())
+
+
+class MatmulCommon:
+ """Common tests for '@' operator and numpy.matmul.
+
+ """
+ # Should work with these types. Will want to add
+ # "O" at some point
+ types = "?bhilqBHILQefdgFDGO"
+
+ def test_exceptions(self):
+ dims = [
+ ((1,), (2,)), # mismatched vector vector
+ ((2, 1,), (2,)), # mismatched matrix vector
+ ((2,), (1, 2)), # mismatched vector matrix
+ ((1, 2), (3, 1)), # mismatched matrix matrix
+ ((1,), ()), # vector scalar
+ ((), (1)), # scalar vector
+ ((1, 1), ()), # matrix scalar
+ ((), (1, 1)), # scalar matrix
+ ((2, 2, 1), (3, 1, 2)), # cannot broadcast
+ ]
+
+ for dt, (dm1, dm2) in itertools.product(self.types, dims):
+ a = np.ones(dm1, dtype=dt)
+ b = np.ones(dm2, dtype=dt)
+ assert_raises(ValueError, self.matmul, a, b)
+
+ def test_shapes(self):
+ dims = [
+ ((1, 1), (2, 1, 1)), # broadcast first argument
+ ((2, 1, 1), (1, 1)), # broadcast second argument
+ ((2, 1, 1), (2, 1, 1)), # matrix stack sizes match
+ ]
+
+ for dt, (dm1, dm2) in itertools.product(self.types, dims):
+ a = np.ones(dm1, dtype=dt)
+ b = np.ones(dm2, dtype=dt)
+ res = self.matmul(a, b)
+ assert_(res.shape == (2, 1, 1))
+
+ # vector vector returns scalars.
+ for dt in self.types:
+ a = np.ones((2,), dtype=dt)
+ b = np.ones((2,), dtype=dt)
+ c = self.matmul(a, b)
+ assert_(np.array(c).shape == ())
+
+ def test_result_types(self):
+ mat = np.ones((1, 1))
+ vec = np.ones((1,))
+ for dt in self.types:
+ m = mat.astype(dt)
+ v = vec.astype(dt)
+ for arg in [(m, v), (v, m), (m, m)]:
+ res = self.matmul(*arg)
+ assert_(res.dtype == dt)
+
+ # vector vector returns scalars
+ if dt != "O":
+ res = self.matmul(v, v)
+ assert_(type(res) is np.dtype(dt).type)
+
+ def test_scalar_output(self):
+ vec1 = np.array([2])
+ vec2 = np.array([3, 4]).reshape(1, -1)
+ tgt = np.array([6, 8])
+ for dt in self.types[1:]:
+ v1 = vec1.astype(dt)
+ v2 = vec2.astype(dt)
+ res = self.matmul(v1, v2)
+ assert_equal(res, tgt)
+ res = self.matmul(v2.T, v1)
+ assert_equal(res, tgt)
+
+ # boolean type
+ vec = np.array([True, True], dtype='?').reshape(1, -1)
+ res = self.matmul(vec[:, 0], vec)
+ assert_equal(res, True)
+
+ def test_vector_vector_values(self):
+ vec1 = np.array([1, 2])
+ vec2 = np.array([3, 4]).reshape(-1, 1)
+ tgt1 = np.array([11])
+ tgt2 = np.array([[3, 6], [4, 8]])
+ for dt in self.types[1:]:
+ v1 = vec1.astype(dt)
+ v2 = vec2.astype(dt)
+ res = self.matmul(v1, v2)
+ assert_equal(res, tgt1)
+ # no broadcast, we must make v1 into a 2d ndarray
+ res = self.matmul(v2, v1.reshape(1, -1))
+ assert_equal(res, tgt2)
+
+ # boolean type
+ vec = np.array([True, True], dtype='?')
+ res = self.matmul(vec, vec)
+ assert_equal(res, True)
+
+ def test_vector_matrix_values(self):
+ vec = np.array([1, 2])
+ mat1 = np.array([[1, 2], [3, 4]])
+ mat2 = np.stack([mat1] * 2, axis=0)
+ tgt1 = np.array([7, 10])
+ tgt2 = np.stack([tgt1] * 2, axis=0)
+ for dt in self.types[1:]:
+ v = vec.astype(dt)
+ m1 = mat1.astype(dt)
+ m2 = mat2.astype(dt)
+ res = self.matmul(v, m1)
+ assert_equal(res, tgt1)
+ res = self.matmul(v, m2)
+ assert_equal(res, tgt2)
+
+ # boolean type
+ vec = np.array([True, False])
+ mat1 = np.array([[True, False], [False, True]])
+ mat2 = np.stack([mat1] * 2, axis=0)
+ tgt1 = np.array([True, False])
+ tgt2 = np.stack([tgt1] * 2, axis=0)
+
+ res = self.matmul(vec, mat1)
+ assert_equal(res, tgt1)
+ res = self.matmul(vec, mat2)
+ assert_equal(res, tgt2)
+
+ def test_matrix_vector_values(self):
+ vec = np.array([1, 2])
+ mat1 = np.array([[1, 2], [3, 4]])
+ mat2 = np.stack([mat1] * 2, axis=0)
+ tgt1 = np.array([5, 11])
+ tgt2 = np.stack([tgt1] * 2, axis=0)
+ for dt in self.types[1:]:
+ v = vec.astype(dt)
+ m1 = mat1.astype(dt)
+ m2 = mat2.astype(dt)
+ res = self.matmul(m1, v)
+ assert_equal(res, tgt1)
+ res = self.matmul(m2, v)
+ assert_equal(res, tgt2)
+
+ # boolean type
+ vec = np.array([True, False])
+ mat1 = np.array([[True, False], [False, True]])
+ mat2 = np.stack([mat1] * 2, axis=0)
+ tgt1 = np.array([True, False])
+ tgt2 = np.stack([tgt1] * 2, axis=0)
+
+ res = self.matmul(vec, mat1)
+ assert_equal(res, tgt1)
+ res = self.matmul(vec, mat2)
+ assert_equal(res, tgt2)
+
+ def test_matrix_matrix_values(self):
+ mat1 = np.array([[1, 2], [3, 4]])
+ mat2 = np.array([[1, 0], [1, 1]])
+ mat12 = np.stack([mat1, mat2], axis=0)
+ mat21 = np.stack([mat2, mat1], axis=0)
+ tgt11 = np.array([[7, 10], [15, 22]])
+ tgt12 = np.array([[3, 2], [7, 4]])
+ tgt21 = np.array([[1, 2], [4, 6]])
+ tgt12_21 = np.stack([tgt12, tgt21], axis=0)
+ tgt11_12 = np.stack((tgt11, tgt12), axis=0)
+ tgt11_21 = np.stack((tgt11, tgt21), axis=0)
+ for dt in self.types[1:]:
+ m1 = mat1.astype(dt)
+ m2 = mat2.astype(dt)
+ m12 = mat12.astype(dt)
+ m21 = mat21.astype(dt)
+
+ # matrix @ matrix
+ res = self.matmul(m1, m2)
+ assert_equal(res, tgt12)
+ res = self.matmul(m2, m1)
+ assert_equal(res, tgt21)
+
+ # stacked @ matrix
+ res = self.matmul(m12, m1)
+ assert_equal(res, tgt11_21)
+
+ # matrix @ stacked
+ res = self.matmul(m1, m12)
+ assert_equal(res, tgt11_12)
+
+ # stacked @ stacked
+ res = self.matmul(m12, m21)
+ assert_equal(res, tgt12_21)
+
+ # boolean type
+ m1 = np.array([[1, 1], [0, 0]], dtype=np.bool)
+ m2 = np.array([[1, 0], [1, 1]], dtype=np.bool)
+ m12 = np.stack([m1, m2], axis=0)
+ m21 = np.stack([m2, m1], axis=0)
+ tgt11 = m1
+ tgt12 = m1
+ tgt21 = np.array([[1, 1], [1, 1]], dtype=np.bool)
+ tgt12_21 = np.stack([tgt12, tgt21], axis=0)
+ tgt11_12 = np.stack((tgt11, tgt12), axis=0)
+ tgt11_21 = np.stack((tgt11, tgt21), axis=0)
+
+ # matrix @ matrix
+ res = self.matmul(m1, m2)
+ assert_equal(res, tgt12)
+ res = self.matmul(m2, m1)
+ assert_equal(res, tgt21)
+
+ # stacked @ matrix
+ res = self.matmul(m12, m1)
+ assert_equal(res, tgt11_21)
+
+ # matrix @ stacked
+ res = self.matmul(m1, m12)
+ assert_equal(res, tgt11_12)
+
+ # stacked @ stacked
+ res = self.matmul(m12, m21)
+ assert_equal(res, tgt12_21)
+
+
+class TestMatmul(MatmulCommon):
+ matmul = np.matmul
+
+ def test_out_arg(self):
+ a = np.ones((5, 2), dtype=float)
+ b = np.array([[1, 3], [5, 7]], dtype=float)
+ tgt = np.dot(a, b)
+
+ # test as positional argument
+ msg = "out positional argument"
+ out = np.zeros((5, 2), dtype=float)
+ self.matmul(a, b, out)
+ assert_array_equal(out, tgt, err_msg=msg)
+
+ # test as keyword argument
+ msg = "out keyword argument"
+ out = np.zeros((5, 2), dtype=float)
+ self.matmul(a, b, out=out)
+ assert_array_equal(out, tgt, err_msg=msg)
+
+ # test out with not allowed type cast (safe casting)
+ msg = "Cannot cast ufunc .* output"
+ out = np.zeros((5, 2), dtype=np.int32)
+ assert_raises_regex(TypeError, msg, self.matmul, a, b, out=out)
+
+ # test out with type upcast to complex
+ out = np.zeros((5, 2), dtype=np.complex128)
+ c = self.matmul(a, b, out=out)
+ assert_(c is out)
+ with warnings.catch_warnings():
+ warnings.simplefilter('ignore', ComplexWarning)
+ c = c.astype(tgt.dtype)
+ assert_array_equal(c, tgt)
+
+ def test_empty_out(self):
+ # Check that the output cannot be broadcast, so that it cannot be
+ # size zero when the outer dimensions (iterator size) has size zero.
+ arr = np.ones((0, 1, 1))
+ out = np.ones((1, 1, 1))
+ assert self.matmul(arr, arr).shape == (0, 1, 1)
+
+ with pytest.raises(ValueError, match=r"non-broadcastable"):
+ self.matmul(arr, arr, out=out)
+
+ def test_out_contiguous(self):
+ a = np.ones((5, 2), dtype=float)
+ b = np.array([[1, 3], [5, 7]], dtype=float)
+ v = np.array([1, 3], dtype=float)
+ tgt = np.dot(a, b)
+ tgt_mv = np.dot(a, v)
+
+ # test out non-contiguous
+ out = np.ones((5, 2, 2), dtype=float)
+ c = self.matmul(a, b, out=out[..., 0])
+ assert c.base is out
+ assert_array_equal(c, tgt)
+ c = self.matmul(a, v, out=out[:, 0, 0])
+ assert_array_equal(c, tgt_mv)
+ c = self.matmul(v, a.T, out=out[:, 0, 0])
+ assert_array_equal(c, tgt_mv)
+
+ # test out contiguous in only last dim
+ out = np.ones((10, 2), dtype=float)
+ c = self.matmul(a, b, out=out[::2, :])
+ assert_array_equal(c, tgt)
+
+ # test transposes of out, args
+ out = np.ones((5, 2), dtype=float)
+ c = self.matmul(b.T, a.T, out=out.T)
+ assert_array_equal(out, tgt)
+
+ m1 = np.arange(15.).reshape(5, 3)
+ m2 = np.arange(21.).reshape(3, 7)
+ m3 = np.arange(30.).reshape(5, 6)[:, ::2] # non-contiguous
+ vc = np.arange(10.)
+ vr = np.arange(6.)
+ m0 = np.zeros((3, 0))
+
+ @pytest.mark.parametrize('args', (
+ # matrix-matrix
+ (m1, m2), (m2.T, m1.T), (m2.T.copy(), m1.T), (m2.T, m1.T.copy()),
+ # matrix-matrix-transpose, contiguous and non
+ (m1, m1.T), (m1.T, m1), (m1, m3.T), (m3, m1.T),
+ (m3, m3.T), (m3.T, m3),
+ # matrix-matrix non-contiguous
+ (m3, m2), (m2.T, m3.T), (m2.T.copy(), m3.T),
+ # vector-matrix, matrix-vector, contiguous
+ (m1, vr[:3]), (vc[:5], m1), (m1.T, vc[:5]), (vr[:3], m1.T),
+ # vector-matrix, matrix-vector, vector non-contiguous
+ (m1, vr[::2]), (vc[::2], m1), (m1.T, vc[::2]), (vr[::2], m1.T),
+ # vector-matrix, matrix-vector, matrix non-contiguous
+ (m3, vr[:3]), (vc[:5], m3), (m3.T, vc[:5]), (vr[:3], m3.T),
+ # vector-matrix, matrix-vector, both non-contiguous
+ (m3, vr[::2]), (vc[::2], m3), (m3.T, vc[::2]), (vr[::2], m3.T),
+ # size == 0
+ (m0, m0.T), (m0.T, m0), (m1, m0), (m0.T, m1.T),
+ ))
+ def test_dot_equivalent(self, args):
+ r1 = np.matmul(*args)
+ r2 = np.dot(*args)
+ assert_equal(r1, r2)
+
+ r3 = np.matmul(args[0].copy(), args[1].copy())
+ assert_equal(r1, r3)
+
+ # issue 29164 with extra checks
+ @pytest.mark.parametrize('dtype', (
+ np.float32, np.float64, np.complex64, np.complex128
+ ))
+ def test_dot_equivalent_matrix_matrix_blastypes(self, dtype):
+ modes = list(itertools.product(['C', 'F'], [True, False]))
+
+ def apply_mode(m, mode):
+ order, is_contiguous = mode
+ if is_contiguous:
+ return m.copy() if order == 'C' else m.T.copy().T
+
+ retval = np.zeros(
+ (m.shape[0] * 2, m.shape[1] * 2), dtype=m.dtype, order=order
+ )[::2, ::2]
+ retval[...] = m
+ return retval
+
+ is_complex = np.issubdtype(dtype, np.complexfloating)
+ m1 = self.m1.astype(dtype) + (1j if is_complex else 0)
+ m2 = self.m2.astype(dtype) + (1j if is_complex else 0)
+ dot_res = np.dot(m1, m2)
+ mo = np.zeros_like(dot_res)
+
+ for mode in itertools.product(*[modes] * 3):
+ m1_, m2_, mo_ = [apply_mode(*x) for x in zip([m1, m2, mo], mode)]
+ assert_equal(np.matmul(m1_, m2_, out=mo_), dot_res)
+
+ def test_matmul_object(self):
+ import fractions
+
+ f = np.vectorize(fractions.Fraction)
+
+ def random_ints():
+ return np.random.randint(1, 1000, size=(10, 3, 3))
+ M1 = f(random_ints(), random_ints())
+ M2 = f(random_ints(), random_ints())
+
+ M3 = self.matmul(M1, M2)
+
+ [N1, N2, N3] = [a.astype(float) for a in [M1, M2, M3]]
+
+ assert_allclose(N3, self.matmul(N1, N2))
+
+ def test_matmul_object_type_scalar(self):
+ from fractions import Fraction as F
+ v = np.array([F(2, 3), F(5, 7)])
+ res = self.matmul(v, v)
+ assert_(type(res) is F)
+
+ def test_matmul_empty(self):
+ a = np.empty((3, 0), dtype=object)
+ b = np.empty((0, 3), dtype=object)
+ c = np.zeros((3, 3))
+ assert_array_equal(np.matmul(a, b), c)
+
+ def test_matmul_exception_multiply(self):
+ # test that matmul fails if `__mul__` is missing
+ class add_not_multiply:
+ def __add__(self, other):
+ return self
+ a = np.full((3, 3), add_not_multiply())
+ with assert_raises(TypeError):
+ b = np.matmul(a, a)
+
+ def test_matmul_exception_add(self):
+ # test that matmul fails if `__add__` is missing
+ class multiply_not_add:
+ def __mul__(self, other):
+ return self
+ a = np.full((3, 3), multiply_not_add())
+ with assert_raises(TypeError):
+ b = np.matmul(a, a)
+
+ def test_matmul_bool(self):
+ # gh-14439
+ a = np.array([[1, 0], [1, 1]], dtype=bool)
+ assert np.max(a.view(np.uint8)) == 1
+ b = np.matmul(a, a)
+ # matmul with boolean output should always be 0, 1
+ assert np.max(b.view(np.uint8)) == 1
+
+ rg = np.random.default_rng(np.random.PCG64(43))
+ d = rg.integers(2, size=4 * 5, dtype=np.int8)
+ d = d.reshape(4, 5) > 0
+ out1 = np.matmul(d, d.reshape(5, 4))
+ out2 = np.dot(d, d.reshape(5, 4))
+ assert_equal(out1, out2)
+
+ c = np.matmul(np.zeros((2, 0), dtype=bool), np.zeros(0, dtype=bool))
+ assert not np.any(c)
+
+
+class TestMatmulOperator(MatmulCommon):
+ import operator
+ matmul = operator.matmul
+
+ def test_array_priority_override(self):
+
+ class A:
+ __array_priority__ = 1000
+
+ def __matmul__(self, other):
+ return "A"
+
+ def __rmatmul__(self, other):
+ return "A"
+
+ a = A()
+ b = np.ones(2)
+ assert_equal(self.matmul(a, b), "A")
+ assert_equal(self.matmul(b, a), "A")
+
+ def test_matmul_raises(self):
+ assert_raises(TypeError, self.matmul, np.int8(5), np.int8(5))
+ assert_raises(TypeError, self.matmul, np.void(b'abc'), np.void(b'abc'))
+ assert_raises(TypeError, self.matmul, np.arange(10), np.void(b'abc'))
+
+
+class TestMatmulInplace:
+ DTYPES = {}
+ for i in MatmulCommon.types:
+ for j in MatmulCommon.types:
+ if np.can_cast(j, i):
+ DTYPES[f"{i}-{j}"] = (np.dtype(i), np.dtype(j))
+
+ @pytest.mark.parametrize("dtype1,dtype2", DTYPES.values(), ids=DTYPES)
+ def test_basic(self, dtype1: np.dtype, dtype2: np.dtype) -> None:
+ a = np.arange(10).reshape(5, 2).astype(dtype1)
+ a_id = id(a)
+ b = np.ones((2, 2), dtype=dtype2)
+
+ ref = a @ b
+ a @= b
+
+ assert id(a) == a_id
+ assert a.dtype == dtype1
+ assert a.shape == (5, 2)
+ if dtype1.kind in "fc":
+ np.testing.assert_allclose(a, ref)
+ else:
+ np.testing.assert_array_equal(a, ref)
+
+ SHAPES = {
+ "2d_large": ((10**5, 10), (10, 10)),
+ "3d_large": ((10**4, 10, 10), (1, 10, 10)),
+ "1d": ((3,), (3,)),
+ "2d_1d": ((3, 3), (3,)),
+ "1d_2d": ((3,), (3, 3)),
+ "2d_broadcast": ((3, 3), (3, 1)),
+ "2d_broadcast_reverse": ((1, 3), (3, 3)),
+ "3d_broadcast1": ((3, 3, 3), (1, 3, 1)),
+ "3d_broadcast2": ((3, 3, 3), (1, 3, 3)),
+ "3d_broadcast3": ((3, 3, 3), (3, 3, 1)),
+ "3d_broadcast_reverse1": ((1, 3, 3), (3, 3, 3)),
+ "3d_broadcast_reverse2": ((3, 1, 3), (3, 3, 3)),
+ "3d_broadcast_reverse3": ((1, 1, 3), (3, 3, 3)),
+ }
+
+ @pytest.mark.parametrize("a_shape,b_shape", SHAPES.values(), ids=SHAPES)
+ def test_shapes(self, a_shape: tuple[int, ...], b_shape: tuple[int, ...]):
+ a_size = np.prod(a_shape)
+ a = np.arange(a_size).reshape(a_shape).astype(np.float64)
+ a_id = id(a)
+
+ b_size = np.prod(b_shape)
+ b = np.arange(b_size).reshape(b_shape)
+
+ ref = a @ b
+ if ref.shape != a_shape:
+ with pytest.raises(ValueError):
+ a @= b
+ return
+ else:
+ a @= b
+
+ assert id(a) == a_id
+ assert a.dtype.type == np.float64
+ assert a.shape == a_shape
+ np.testing.assert_allclose(a, ref)
+
+
+def test_matmul_axes():
+ a = np.arange(3 * 4 * 5).reshape(3, 4, 5)
+ c = np.matmul(a, a, axes=[(-2, -1), (-1, -2), (1, 2)])
+ assert c.shape == (3, 4, 4)
+ d = np.matmul(a, a, axes=[(-2, -1), (-1, -2), (0, 1)])
+ assert d.shape == (4, 4, 3)
+ e = np.swapaxes(d, 0, 2)
+ assert_array_equal(e, c)
+ f = np.matmul(a, np.arange(3), axes=[(1, 0), (0), (0)])
+ assert f.shape == (4, 5)
+
+
+class TestInner:
+
+ def test_inner_type_mismatch(self):
+ c = 1.
+ A = np.array((1, 1), dtype='i,i')
+
+ assert_raises(TypeError, np.inner, c, A)
+ assert_raises(TypeError, np.inner, A, c)
+
+ def test_inner_scalar_and_vector(self):
+ for dt in np.typecodes['AllInteger'] + np.typecodes['AllFloat'] + '?':
+ sca = np.array(3, dtype=dt)[()]
+ vec = np.array([1, 2], dtype=dt)
+ desired = np.array([3, 6], dtype=dt)
+ assert_equal(np.inner(vec, sca), desired)
+ assert_equal(np.inner(sca, vec), desired)
+
+ def test_vecself(self):
+ # Ticket 844.
+ # Inner product of a vector with itself segfaults or give
+ # meaningless result
+ a = np.zeros(shape=(1, 80), dtype=np.float64)
+ p = np.inner(a, a)
+ assert_almost_equal(p, 0, decimal=14)
+
+ def test_inner_product_with_various_contiguities(self):
+ # github issue 6532
+ for dt in np.typecodes['AllInteger'] + np.typecodes['AllFloat'] + '?':
+ # check an inner product involving a matrix transpose
+ A = np.array([[1, 2], [3, 4]], dtype=dt)
+ B = np.array([[1, 3], [2, 4]], dtype=dt)
+ C = np.array([1, 1], dtype=dt)
+ desired = np.array([4, 6], dtype=dt)
+ assert_equal(np.inner(A.T, C), desired)
+ assert_equal(np.inner(C, A.T), desired)
+ assert_equal(np.inner(B, C), desired)
+ assert_equal(np.inner(C, B), desired)
+ # check a matrix product
+ desired = np.array([[7, 10], [15, 22]], dtype=dt)
+ assert_equal(np.inner(A, B), desired)
+ # check the syrk vs. gemm paths
+ desired = np.array([[5, 11], [11, 25]], dtype=dt)
+ assert_equal(np.inner(A, A), desired)
+ assert_equal(np.inner(A, A.copy()), desired)
+ # check an inner product involving an aliased and reversed view
+ a = np.arange(5).astype(dt)
+ b = a[::-1]
+ desired = np.array(10, dtype=dt).item()
+ assert_equal(np.inner(b, a), desired)
+
+ def test_3d_tensor(self):
+ for dt in np.typecodes['AllInteger'] + np.typecodes['AllFloat'] + '?':
+ a = np.arange(24).reshape(2, 3, 4).astype(dt)
+ b = np.arange(24, 48).reshape(2, 3, 4).astype(dt)
+ desired = np.array(
+ [[[[ 158, 182, 206],
+ [ 230, 254, 278]],
+
+ [[ 566, 654, 742],
+ [ 830, 918, 1006]],
+
+ [[ 974, 1126, 1278],
+ [1430, 1582, 1734]]],
+
+ [[[1382, 1598, 1814],
+ [2030, 2246, 2462]],
+
+ [[1790, 2070, 2350],
+ [2630, 2910, 3190]],
+
+ [[2198, 2542, 2886],
+ [3230, 3574, 3918]]]]
+ ).astype(dt)
+ assert_equal(np.inner(a, b), desired)
+ assert_equal(np.inner(b, a).transpose(2, 3, 0, 1), desired)
+
+
+class TestChoose:
+ def _create_data(self):
+ x = 2 * np.ones((3,), dtype=int)
+ y = 3 * np.ones((3,), dtype=int)
+ x2 = 2 * np.ones((2, 3), dtype=int)
+ y2 = 3 * np.ones((2, 3), dtype=int)
+ ind = [0, 0, 1]
+ return x, y, x2, y2, ind
+
+ def test_basic(self):
+ x, y, _, _, ind = self._create_data()
+ A = np.choose(ind, (x, y))
+ assert_equal(A, [2, 2, 3])
+
+ def test_broadcast1(self):
+ _, _, x2, y2, ind = self._create_data()
+ A = np.choose(ind, (x2, y2))
+ assert_equal(A, [[2, 2, 3], [2, 2, 3]])
+
+ def test_broadcast2(self):
+ x, _, _, y2, ind = self._create_data()
+ A = np.choose(ind, (x, y2))
+ assert_equal(A, [[2, 2, 3], [2, 2, 3]])
+
+ @pytest.mark.parametrize("ops",
+ [(1000, np.array([1], dtype=np.uint8)),
+ (-1, np.array([1], dtype=np.uint8)),
+ (1., np.float32(3)),
+ (1., np.array([3], dtype=np.float32))],)
+ def test_output_dtype(self, ops):
+ expected_dt = np.result_type(*ops)
+ assert np.choose([0], ops).dtype == expected_dt
+
+ def test_dimension_and_args_limit(self):
+ # Maxdims for the legacy iterator is 32, but the maximum number
+ # of arguments is actually larger (a itself also counts here)
+ a = np.ones((1,) * 32, dtype=np.intp)
+ res = a.choose([0, a] + [2] * 61)
+ with pytest.raises(ValueError,
+ match="Need at least 0 and at most 64 array objects"):
+ a.choose([0, a] + [2] * 62)
+
+ assert_array_equal(res, a)
+ # Choose is unfortunately limited to 32 dims as of NumPy 2.0
+ a = np.ones((1,) * 60, dtype=np.intp)
+ with pytest.raises(RuntimeError,
+ match=".*32 dimensions but the array has 60"):
+ a.choose([a, a])
+
+
+class TestRepeat:
+ def _create_data(self):
+ m = np.array([1, 2, 3, 4, 5, 6])
+ m_rect = m.reshape((2, 3))
+ return m, m_rect
+
+ def test_basic(self):
+ m, _ = self._create_data()
+ A = np.repeat(m, [1, 3, 2, 1, 1, 2])
+ assert_equal(A, [1, 2, 2, 2, 3,
+ 3, 4, 5, 6, 6])
+
+ def test_broadcast1(self):
+ m, _ = self._create_data()
+ A = np.repeat(m, 2)
+ assert_equal(A, [1, 1, 2, 2, 3, 3,
+ 4, 4, 5, 5, 6, 6])
+
+ def test_axis_spec(self):
+ _, m_rect = self._create_data()
+ A = np.repeat(m_rect, [2, 1], axis=0)
+ assert_equal(A, [[1, 2, 3],
+ [1, 2, 3],
+ [4, 5, 6]])
+
+ A = np.repeat(m_rect, [1, 3, 2], axis=1)
+ assert_equal(A, [[1, 2, 2, 2, 3, 3],
+ [4, 5, 5, 5, 6, 6]])
+
+ def test_broadcast2(self):
+ _, m_rect = self._create_data()
+ A = np.repeat(m_rect, 2, axis=0)
+ assert_equal(A, [[1, 2, 3],
+ [1, 2, 3],
+ [4, 5, 6],
+ [4, 5, 6]])
+
+ A = np.repeat(m_rect, 2, axis=1)
+ assert_equal(A, [[1, 1, 2, 2, 3, 3],
+ [4, 4, 5, 5, 6, 6]])
+
+
+# TODO: test for multidimensional
+NEIGH_MODE = {'zero': 0, 'one': 1, 'constant': 2, 'circular': 3, 'mirror': 4}
+
+
+@pytest.mark.parametrize('dt', [float, Decimal], ids=['float', 'object'])
+class TestNeighborhoodIter:
+ # Simple, 2d tests
+ def test_simple2d(self, dt):
+ # Test zero and one padding for simple data type
+ x = np.array([[0, 1], [2, 3]], dtype=dt)
+ r = [np.array([[0, 0, 0], [0, 0, 1]], dtype=dt),
+ np.array([[0, 0, 0], [0, 1, 0]], dtype=dt),
+ np.array([[0, 0, 1], [0, 2, 3]], dtype=dt),
+ np.array([[0, 1, 0], [2, 3, 0]], dtype=dt)]
+ l = _multiarray_tests.test_neighborhood_iterator(
+ x, [-1, 0, -1, 1], x[0], NEIGH_MODE['zero'])
+ assert_array_equal(l, r)
+
+ r = [np.array([[1, 1, 1], [1, 0, 1]], dtype=dt),
+ np.array([[1, 1, 1], [0, 1, 1]], dtype=dt),
+ np.array([[1, 0, 1], [1, 2, 3]], dtype=dt),
+ np.array([[0, 1, 1], [2, 3, 1]], dtype=dt)]
+ l = _multiarray_tests.test_neighborhood_iterator(
+ x, [-1, 0, -1, 1], x[0], NEIGH_MODE['one'])
+ assert_array_equal(l, r)
+
+ r = [np.array([[4, 4, 4], [4, 0, 1]], dtype=dt),
+ np.array([[4, 4, 4], [0, 1, 4]], dtype=dt),
+ np.array([[4, 0, 1], [4, 2, 3]], dtype=dt),
+ np.array([[0, 1, 4], [2, 3, 4]], dtype=dt)]
+ l = _multiarray_tests.test_neighborhood_iterator(
+ x, [-1, 0, -1, 1], 4, NEIGH_MODE['constant'])
+ assert_array_equal(l, r)
+
+ # Test with start in the middle
+ r = [np.array([[4, 0, 1], [4, 2, 3]], dtype=dt),
+ np.array([[0, 1, 4], [2, 3, 4]], dtype=dt)]
+ l = _multiarray_tests.test_neighborhood_iterator(
+ x, [-1, 0, -1, 1], 4, NEIGH_MODE['constant'], 2)
+ assert_array_equal(l, r)
+
+ def test_mirror2d(self, dt):
+ x = np.array([[0, 1], [2, 3]], dtype=dt)
+ r = [np.array([[0, 0, 1], [0, 0, 1]], dtype=dt),
+ np.array([[0, 1, 1], [0, 1, 1]], dtype=dt),
+ np.array([[0, 0, 1], [2, 2, 3]], dtype=dt),
+ np.array([[0, 1, 1], [2, 3, 3]], dtype=dt)]
+ l = _multiarray_tests.test_neighborhood_iterator(
+ x, [-1, 0, -1, 1], x[0], NEIGH_MODE['mirror'])
+ assert_array_equal(l, r)
+
+ # Simple, 1d tests
+ def test_simple(self, dt):
+ # Test padding with constant values
+ x = np.linspace(1, 5, 5).astype(dt)
+ r = [[0, 1, 2], [1, 2, 3], [2, 3, 4], [3, 4, 5], [4, 5, 0]]
+ l = _multiarray_tests.test_neighborhood_iterator(
+ x, [-1, 1], x[0], NEIGH_MODE['zero'])
+ assert_array_equal(l, r)
+
+ r = [[1, 1, 2], [1, 2, 3], [2, 3, 4], [3, 4, 5], [4, 5, 1]]
+ l = _multiarray_tests.test_neighborhood_iterator(
+ x, [-1, 1], x[0], NEIGH_MODE['one'])
+ assert_array_equal(l, r)
+
+ r = [[x[4], 1, 2], [1, 2, 3], [2, 3, 4], [3, 4, 5], [4, 5, x[4]]]
+ l = _multiarray_tests.test_neighborhood_iterator(
+ x, [-1, 1], x[4], NEIGH_MODE['constant'])
+ assert_array_equal(l, r)
+
+ # Test mirror modes
+ def test_mirror(self, dt):
+ x = np.linspace(1, 5, 5).astype(dt)
+ r = np.array([[2, 1, 1, 2, 3], [1, 1, 2, 3, 4], [1, 2, 3, 4, 5],
+ [2, 3, 4, 5, 5], [3, 4, 5, 5, 4]], dtype=dt)
+ l = _multiarray_tests.test_neighborhood_iterator(
+ x, [-2, 2], x[1], NEIGH_MODE['mirror'])
+ assert_([i.dtype == dt for i in l])
+ assert_array_equal(l, r)
+
+ # Circular mode
+ def test_circular(self, dt):
+ x = np.linspace(1, 5, 5).astype(dt)
+ r = np.array([[4, 5, 1, 2, 3], [5, 1, 2, 3, 4], [1, 2, 3, 4, 5],
+ [2, 3, 4, 5, 1], [3, 4, 5, 1, 2]], dtype=dt)
+ l = _multiarray_tests.test_neighborhood_iterator(
+ x, [-2, 2], x[0], NEIGH_MODE['circular'])
+ assert_array_equal(l, r)
+
+
+# Test stacking neighborhood iterators
+class TestStackedNeighborhoodIter:
+ # Simple, 1d test: stacking 2 constant-padded neigh iterators
+ def test_simple_const(self):
+ dt = np.float64
+ # Test zero and one padding for simple data type
+ x = np.array([1, 2, 3], dtype=dt)
+ r = [np.array([0], dtype=dt),
+ np.array([0], dtype=dt),
+ np.array([1], dtype=dt),
+ np.array([2], dtype=dt),
+ np.array([3], dtype=dt),
+ np.array([0], dtype=dt),
+ np.array([0], dtype=dt)]
+ l = _multiarray_tests.test_neighborhood_iterator_oob(
+ x, [-2, 4], NEIGH_MODE['zero'], [0, 0], NEIGH_MODE['zero'])
+ assert_array_equal(l, r)
+
+ r = [np.array([1, 0, 1], dtype=dt),
+ np.array([0, 1, 2], dtype=dt),
+ np.array([1, 2, 3], dtype=dt),
+ np.array([2, 3, 0], dtype=dt),
+ np.array([3, 0, 1], dtype=dt)]
+ l = _multiarray_tests.test_neighborhood_iterator_oob(
+ x, [-1, 3], NEIGH_MODE['zero'], [-1, 1], NEIGH_MODE['one'])
+ assert_array_equal(l, r)
+
+ # 2nd simple, 1d test: stacking 2 neigh iterators, mixing const padding and
+ # mirror padding
+ def test_simple_mirror(self):
+ dt = np.float64
+ # Stacking zero on top of mirror
+ x = np.array([1, 2, 3], dtype=dt)
+ r = [np.array([0, 1, 1], dtype=dt),
+ np.array([1, 1, 2], dtype=dt),
+ np.array([1, 2, 3], dtype=dt),
+ np.array([2, 3, 3], dtype=dt),
+ np.array([3, 3, 0], dtype=dt)]
+ l = _multiarray_tests.test_neighborhood_iterator_oob(
+ x, [-1, 3], NEIGH_MODE['mirror'], [-1, 1], NEIGH_MODE['zero'])
+ assert_array_equal(l, r)
+
+ # Stacking mirror on top of zero
+ x = np.array([1, 2, 3], dtype=dt)
+ r = [np.array([1, 0, 0], dtype=dt),
+ np.array([0, 0, 1], dtype=dt),
+ np.array([0, 1, 2], dtype=dt),
+ np.array([1, 2, 3], dtype=dt),
+ np.array([2, 3, 0], dtype=dt)]
+ l = _multiarray_tests.test_neighborhood_iterator_oob(
+ x, [-1, 3], NEIGH_MODE['zero'], [-2, 0], NEIGH_MODE['mirror'])
+ assert_array_equal(l, r)
+
+ # Stacking mirror on top of zero: 2nd
+ x = np.array([1, 2, 3], dtype=dt)
+ r = [np.array([0, 1, 2], dtype=dt),
+ np.array([1, 2, 3], dtype=dt),
+ np.array([2, 3, 0], dtype=dt),
+ np.array([3, 0, 0], dtype=dt),
+ np.array([0, 0, 3], dtype=dt)]
+ l = _multiarray_tests.test_neighborhood_iterator_oob(
+ x, [-1, 3], NEIGH_MODE['zero'], [0, 2], NEIGH_MODE['mirror'])
+ assert_array_equal(l, r)
+
+ # Stacking mirror on top of zero: 3rd
+ x = np.array([1, 2, 3], dtype=dt)
+ r = [np.array([1, 0, 0, 1, 2], dtype=dt),
+ np.array([0, 0, 1, 2, 3], dtype=dt),
+ np.array([0, 1, 2, 3, 0], dtype=dt),
+ np.array([1, 2, 3, 0, 0], dtype=dt),
+ np.array([2, 3, 0, 0, 3], dtype=dt)]
+ l = _multiarray_tests.test_neighborhood_iterator_oob(
+ x, [-1, 3], NEIGH_MODE['zero'], [-2, 2], NEIGH_MODE['mirror'])
+ assert_array_equal(l, r)
+
+ # 3rd simple, 1d test: stacking 2 neigh iterators, mixing const padding and
+ # circular padding
+ def test_simple_circular(self):
+ dt = np.float64
+ # Stacking zero on top of mirror
+ x = np.array([1, 2, 3], dtype=dt)
+ r = [np.array([0, 3, 1], dtype=dt),
+ np.array([3, 1, 2], dtype=dt),
+ np.array([1, 2, 3], dtype=dt),
+ np.array([2, 3, 1], dtype=dt),
+ np.array([3, 1, 0], dtype=dt)]
+ l = _multiarray_tests.test_neighborhood_iterator_oob(
+ x, [-1, 3], NEIGH_MODE['circular'], [-1, 1], NEIGH_MODE['zero'])
+ assert_array_equal(l, r)
+
+ # Stacking mirror on top of zero
+ x = np.array([1, 2, 3], dtype=dt)
+ r = [np.array([3, 0, 0], dtype=dt),
+ np.array([0, 0, 1], dtype=dt),
+ np.array([0, 1, 2], dtype=dt),
+ np.array([1, 2, 3], dtype=dt),
+ np.array([2, 3, 0], dtype=dt)]
+ l = _multiarray_tests.test_neighborhood_iterator_oob(
+ x, [-1, 3], NEIGH_MODE['zero'], [-2, 0], NEIGH_MODE['circular'])
+ assert_array_equal(l, r)
+
+ # Stacking mirror on top of zero: 2nd
+ x = np.array([1, 2, 3], dtype=dt)
+ r = [np.array([0, 1, 2], dtype=dt),
+ np.array([1, 2, 3], dtype=dt),
+ np.array([2, 3, 0], dtype=dt),
+ np.array([3, 0, 0], dtype=dt),
+ np.array([0, 0, 1], dtype=dt)]
+ l = _multiarray_tests.test_neighborhood_iterator_oob(
+ x, [-1, 3], NEIGH_MODE['zero'], [0, 2], NEIGH_MODE['circular'])
+ assert_array_equal(l, r)
+
+ # Stacking mirror on top of zero: 3rd
+ x = np.array([1, 2, 3], dtype=dt)
+ r = [np.array([3, 0, 0, 1, 2], dtype=dt),
+ np.array([0, 0, 1, 2, 3], dtype=dt),
+ np.array([0, 1, 2, 3, 0], dtype=dt),
+ np.array([1, 2, 3, 0, 0], dtype=dt),
+ np.array([2, 3, 0, 0, 1], dtype=dt)]
+ l = _multiarray_tests.test_neighborhood_iterator_oob(
+ x, [-1, 3], NEIGH_MODE['zero'], [-2, 2], NEIGH_MODE['circular'])
+ assert_array_equal(l, r)
+
+ # 4th simple, 1d test: stacking 2 neigh iterators, but with lower iterator
+ # being strictly within the array
+ def test_simple_strict_within(self):
+ dt = np.float64
+ # Stacking zero on top of zero, first neighborhood strictly inside the
+ # array
+ x = np.array([1, 2, 3], dtype=dt)
+ r = [np.array([1, 2, 3, 0], dtype=dt)]
+ l = _multiarray_tests.test_neighborhood_iterator_oob(
+ x, [1, 1], NEIGH_MODE['zero'], [-1, 2], NEIGH_MODE['zero'])
+ assert_array_equal(l, r)
+
+ # Stacking mirror on top of zero, first neighborhood strictly inside the
+ # array
+ x = np.array([1, 2, 3], dtype=dt)
+ r = [np.array([1, 2, 3, 3], dtype=dt)]
+ l = _multiarray_tests.test_neighborhood_iterator_oob(
+ x, [1, 1], NEIGH_MODE['zero'], [-1, 2], NEIGH_MODE['mirror'])
+ assert_array_equal(l, r)
+
+ # Stacking mirror on top of zero, first neighborhood strictly inside the
+ # array
+ x = np.array([1, 2, 3], dtype=dt)
+ r = [np.array([1, 2, 3, 1], dtype=dt)]
+ l = _multiarray_tests.test_neighborhood_iterator_oob(
+ x, [1, 1], NEIGH_MODE['zero'], [-1, 2], NEIGH_MODE['circular'])
+ assert_array_equal(l, r)
+
+class TestWarnings:
+
+ def test_complex_warning(self):
+ x = np.array([1, 2])
+ y = np.array([1 - 2j, 1 + 2j])
+
+ with warnings.catch_warnings():
+ warnings.simplefilter("error", ComplexWarning)
+ assert_raises(ComplexWarning, x.__setitem__, slice(None), y)
+ assert_equal(x, [1, 2])
+
+
+class TestMinScalarType:
+
+ def test_usigned_shortshort(self):
+ dt = np.min_scalar_type(2**8 - 1)
+ wanted = np.dtype('uint8')
+ assert_equal(wanted, dt)
+
+ def test_usigned_short(self):
+ dt = np.min_scalar_type(2**16 - 1)
+ wanted = np.dtype('uint16')
+ assert_equal(wanted, dt)
+
+ def test_usigned_int(self):
+ dt = np.min_scalar_type(2**32 - 1)
+ wanted = np.dtype('uint32')
+ assert_equal(wanted, dt)
+
+ def test_usigned_longlong(self):
+ dt = np.min_scalar_type(2**63 - 1)
+ wanted = np.dtype('uint64')
+ assert_equal(wanted, dt)
+
+ def test_object(self):
+ dt = np.min_scalar_type(2**64)
+ wanted = np.dtype('O')
+ assert_equal(wanted, dt)
+
+
+from numpy._core._internal import _dtype_from_pep3118
+
+
+class TestPEP3118Dtype:
+ def _check(self, spec, wanted):
+ dt = np.dtype(wanted)
+ actual = _dtype_from_pep3118(spec)
+ assert_equal(actual, dt,
+ err_msg=f"spec {spec!r} != dtype {wanted!r}")
+
+ def test_native_padding(self):
+ align = np.dtype('i').alignment
+ for j in range(8):
+ if j == 0:
+ s = 'bi'
+ else:
+ s = 'b%dxi' % j
+ self._check('@' + s, {'f0': ('i1', 0),
+ 'f1': ('i', align * (1 + j // align))})
+ self._check('=' + s, {'f0': ('i1', 0),
+ 'f1': ('i', 1 + j)})
+
+ def test_native_padding_2(self):
+ # Native padding should work also for structs and sub-arrays
+ self._check('x3T{xi}', {'f0': (({'f0': ('i', 4)}, (3,)), 4)})
+ self._check('^x3T{xi}', {'f0': (({'f0': ('i', 1)}, (3,)), 1)})
+
+ def test_trailing_padding(self):
+ # Trailing padding should be included, *and*, the item size
+ # should match the alignment if in aligned mode
+ align = np.dtype('i').alignment
+ size = np.dtype('i').itemsize
+
+ def aligned(n):
+ return align * (1 + (n - 1) // align)
+
+ base = {"formats": ['i'], "names": ['f0']}
+
+ self._check('ix', dict(itemsize=aligned(size + 1), **base))
+ self._check('ixx', dict(itemsize=aligned(size + 2), **base))
+ self._check('ixxx', dict(itemsize=aligned(size + 3), **base))
+ self._check('ixxxx', dict(itemsize=aligned(size + 4), **base))
+ self._check('i7x', dict(itemsize=aligned(size + 7), **base))
+
+ self._check('^ix', dict(itemsize=size + 1, **base))
+ self._check('^ixx', dict(itemsize=size + 2, **base))
+ self._check('^ixxx', dict(itemsize=size + 3, **base))
+ self._check('^ixxxx', dict(itemsize=size + 4, **base))
+ self._check('^i7x', dict(itemsize=size + 7, **base))
+
+ def test_native_padding_3(self):
+ dt = np.dtype(
+ [('a', 'b'), ('b', 'i'),
+ ('sub', np.dtype('b,i')), ('c', 'i')],
+ align=True)
+ self._check("T{b:a:xxxi:b:T{b:f0:=i:f1:}:sub:xxxi:c:}", dt)
+
+ dt = np.dtype(
+ [('a', 'b'), ('b', 'i'), ('c', 'b'), ('d', 'b'),
+ ('e', 'b'), ('sub', np.dtype('b,i', align=True))])
+ self._check("T{b:a:=i:b:b:c:b:d:b:e:T{b:f0:xxxi:f1:}:sub:}", dt)
+
+ def test_padding_with_array_inside_struct(self):
+ dt = np.dtype(
+ [('a', 'b'), ('b', 'i'), ('c', 'b', (3,)),
+ ('d', 'i')],
+ align=True)
+ self._check("T{b:a:xxxi:b:3b:c:xi:d:}", dt)
+
+ def test_byteorder_inside_struct(self):
+ # The byte order after @T{=i} should be '=', not '@'.
+ # Check this by noting the absence of native alignment.
+ self._check('@T{^i}xi', {'f0': ({'f0': ('i', 0)}, 0),
+ 'f1': ('i', 5)})
+
+ def test_intra_padding(self):
+ # Natively aligned sub-arrays may require some internal padding
+ align = np.dtype('i').alignment
+ size = np.dtype('i').itemsize
+
+ def aligned(n):
+ return (align * (1 + (n - 1) // align))
+
+ self._check('(3)T{ix}', ({
+ "names": ['f0'],
+ "formats": ['i'],
+ "offsets": [0],
+ "itemsize": aligned(size + 1)
+ }, (3,)))
+
+ def test_char_vs_string(self):
+ dt = np.dtype('c')
+ self._check('c', dt)
+
+ dt = np.dtype([('f0', 'S1', (4,)), ('f1', 'S4')])
+ self._check('4c4s', dt)
+
+ def test_field_order(self):
+ # gh-9053 - previously, we relied on dictionary key order
+ self._check("(0)I:a:f:b:", [('a', 'I', (0,)), ('b', 'f')])
+ self._check("(0)I:b:f:a:", [('b', 'I', (0,)), ('a', 'f')])
+
+ def test_unnamed_fields(self):
+ self._check('ii', [('f0', 'i'), ('f1', 'i')])
+ self._check('ii:f0:', [('f1', 'i'), ('f0', 'i')])
+
+ self._check('i', 'i')
+ self._check('i:f0:', [('f0', 'i')])
+
+
+class TestNewBufferProtocol:
+ """ Test PEP3118 buffers """
+
+ def _check_roundtrip(self, obj):
+ obj = np.asarray(obj)
+ x = memoryview(obj)
+ y = np.asarray(x)
+ y2 = np.array(x)
+ assert_(not y.flags.owndata)
+ assert_(y2.flags.owndata)
+
+ assert_equal(y.dtype, obj.dtype)
+ assert_equal(y.shape, obj.shape)
+ assert_array_equal(obj, y)
+
+ assert_equal(y2.dtype, obj.dtype)
+ assert_equal(y2.shape, obj.shape)
+ assert_array_equal(obj, y2)
+
+ def test_roundtrip(self):
+ x = np.array([1, 2, 3, 4, 5], dtype='i4')
+ self._check_roundtrip(x)
+
+ x = np.array([[1, 2], [3, 4]], dtype=np.float64)
+ self._check_roundtrip(x)
+
+ x = np.zeros((3, 3, 3), dtype=np.float32)[:, 0, :]
+ self._check_roundtrip(x)
+
+ dt = [('a', 'b'),
+ ('b', 'h'),
+ ('c', 'i'),
+ ('d', 'l'),
+ ('dx', 'q'),
+ ('e', 'B'),
+ ('f', 'H'),
+ ('g', 'I'),
+ ('h', 'L'),
+ ('hx', 'Q'),
+ ('i', np.single),
+ ('j', np.double),
+ ('k', np.longdouble),
+ ('ix', np.csingle),
+ ('jx', np.cdouble),
+ ('kx', np.clongdouble),
+ ('l', 'S4'),
+ ('m', 'U4'),
+ ('n', 'V3'),
+ ('o', '?'),
+ ('p', np.half),
+ ]
+ x = np.array(
+ [(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ b'aaaa', 'bbbb', b'xxx', True, 1.0)],
+ dtype=dt)
+ self._check_roundtrip(x)
+
+ x = np.array(([[1, 2], [3, 4]],), dtype=[('a', (int, (2, 2)))])
+ self._check_roundtrip(x)
+
+ x = np.array([1, 2, 3], dtype='>i2')
+ self._check_roundtrip(x)
+
+ x = np.array([1, 2, 3], dtype='')
+ x = np.zeros(4, dtype=dt)
+ self._check_roundtrip(x)
+
+ def test_roundtrip_scalar(self):
+ # Issue #4015.
+ self._check_roundtrip(0)
+
+ def test_invalid_buffer_format(self):
+ # datetime64 cannot be used fully in a buffer yet
+ # Should be fixed in the next Numpy major release
+ dt = np.dtype([('a', 'uint16'), ('b', 'M8[s]')])
+ a = np.empty(3, dt)
+ assert_raises((ValueError, BufferError), memoryview, a)
+ assert_raises((ValueError, BufferError), memoryview, np.array((3), 'M8[D]'))
+
+ def test_export_simple_1d(self):
+ x = np.array([1, 2, 3, 4, 5], dtype='i')
+ y = memoryview(x)
+ assert_equal(y.format, 'i')
+ assert_equal(y.shape, (5,))
+ assert_equal(y.ndim, 1)
+ assert_equal(y.strides, (4,))
+ assert_equal(y.suboffsets, ())
+ assert_equal(y.itemsize, 4)
+
+ def test_export_simple_nd(self):
+ x = np.array([[1, 2], [3, 4]], dtype=np.float64)
+ y = memoryview(x)
+ assert_equal(y.format, 'd')
+ assert_equal(y.shape, (2, 2))
+ assert_equal(y.ndim, 2)
+ assert_equal(y.strides, (16, 8))
+ assert_equal(y.suboffsets, ())
+ assert_equal(y.itemsize, 8)
+
+ def test_export_discontiguous(self):
+ x = np.zeros((3, 3, 3), dtype=np.float32)[:, 0, :]
+ y = memoryview(x)
+ assert_equal(y.format, 'f')
+ assert_equal(y.shape, (3, 3))
+ assert_equal(y.ndim, 2)
+ assert_equal(y.strides, (36, 4))
+ assert_equal(y.suboffsets, ())
+ assert_equal(y.itemsize, 4)
+
+ def test_export_record(self):
+ dt = [('a', 'b'),
+ ('b', 'h'),
+ ('c', 'i'),
+ ('d', 'l'),
+ ('dx', 'q'),
+ ('e', 'B'),
+ ('f', 'H'),
+ ('g', 'I'),
+ ('h', 'L'),
+ ('hx', 'Q'),
+ ('i', np.single),
+ ('j', np.double),
+ ('k', np.longdouble),
+ ('ix', np.csingle),
+ ('jx', np.cdouble),
+ ('kx', np.clongdouble),
+ ('l', 'S4'),
+ ('m', 'U4'),
+ ('n', 'V3'),
+ ('o', '?'),
+ ('p', np.half),
+ ]
+ x = np.array(
+ [(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ b'aaaa', 'bbbb', b' ', True, 1.0)],
+ dtype=dt)
+ y = memoryview(x)
+ assert_equal(y.shape, (1,))
+ assert_equal(y.ndim, 1)
+ assert_equal(y.suboffsets, ())
+
+ sz = sum(np.dtype(b).itemsize for a, b in dt)
+ if np.dtype('l').itemsize == 4:
+ assert_equal(y.format, 'T{b:a:=h:b:i:c:l:d:q:dx:B:e:@H:f:=I:g:L:h:Q:hx:f:i:d:j:^g:k:=Zf:ix:Zd:jx:^Zg:kx:4s:l:=4w:m:3x:n:?:o:@e:p:}')
+ else:
+ assert_equal(y.format, 'T{b:a:=h:b:i:c:q:d:q:dx:B:e:@H:f:=I:g:Q:h:Q:hx:f:i:d:j:^g:k:=Zf:ix:Zd:jx:^Zg:kx:4s:l:=4w:m:3x:n:?:o:@e:p:}')
+ assert_equal(y.strides, (sz,))
+ assert_equal(y.itemsize, sz)
+
+ def test_export_subarray(self):
+ x = np.array(([[1, 2], [3, 4]],), dtype=[('a', ('i', (2, 2)))])
+ y = memoryview(x)
+ assert_equal(y.format, 'T{(2,2)i:a:}')
+ assert_equal(y.shape, ())
+ assert_equal(y.ndim, 0)
+ assert_equal(y.strides, ())
+ assert_equal(y.suboffsets, ())
+ assert_equal(y.itemsize, 16)
+
+ def test_export_endian(self):
+ x = np.array([1, 2, 3], dtype='>i')
+ y = memoryview(x)
+ if sys.byteorder == 'little':
+ assert_equal(y.format, '>i')
+ else:
+ assert_equal(y.format, 'i')
+
+ x = np.array([1, 2, 3], dtype=' np.array(0, dtype=dt1), f"type {dt1} failed")
+ assert_(not 1 < np.array(0, dtype=dt1), f"type {dt1} failed")
+
+ for dt2 in np.typecodes['AllInteger']:
+ assert_(np.array(1, dtype=dt1) > np.array(0, dtype=dt2),
+ f"type {dt1} and {dt2} failed")
+ assert_(not np.array(1, dtype=dt1) < np.array(0, dtype=dt2),
+ f"type {dt1} and {dt2} failed")
+
+ # Unsigned integers
+ for dt1 in 'BHILQP':
+ assert_(-1 < np.array(1, dtype=dt1), f"type {dt1} failed")
+ assert_(not -1 > np.array(1, dtype=dt1), f"type {dt1} failed")
+ assert_(-1 != np.array(1, dtype=dt1), f"type {dt1} failed")
+
+ # Unsigned vs signed
+ for dt2 in 'bhilqp':
+ assert_(np.array(1, dtype=dt1) > np.array(-1, dtype=dt2),
+ f"type {dt1} and {dt2} failed")
+ assert_(not np.array(1, dtype=dt1) < np.array(-1, dtype=dt2),
+ f"type {dt1} and {dt2} failed")
+ assert_(np.array(1, dtype=dt1) != np.array(-1, dtype=dt2),
+ f"type {dt1} and {dt2} failed")
+
+ # Signed integers and floats
+ for dt1 in 'bhlqp' + np.typecodes['Float']:
+ assert_(1 > np.array(-1, dtype=dt1), f"type {dt1} failed")
+ assert_(not 1 < np.array(-1, dtype=dt1), f"type {dt1} failed")
+ assert_(-1 == np.array(-1, dtype=dt1), f"type {dt1} failed")
+
+ for dt2 in 'bhlqp' + np.typecodes['Float']:
+ assert_(np.array(1, dtype=dt1) > np.array(-1, dtype=dt2),
+ f"type {dt1} and {dt2} failed")
+ assert_(not np.array(1, dtype=dt1) < np.array(-1, dtype=dt2),
+ f"type {dt1} and {dt2} failed")
+ assert_(np.array(-1, dtype=dt1) == np.array(-1, dtype=dt2),
+ f"type {dt1} and {dt2} failed")
+
+ def test_to_bool_scalar(self):
+ assert_equal(bool(np.array([False])), False)
+ assert_equal(bool(np.array([True])), True)
+ assert_equal(bool(np.array([[42]])), True)
+
+ def test_to_bool_scalar_not_convertible(self):
+
+ class NotConvertible:
+ def __bool__(self):
+ raise NotImplementedError
+
+ assert_raises(NotImplementedError, bool, np.array(NotConvertible()))
+ assert_raises(NotImplementedError, bool, np.array([NotConvertible()]))
+ if IS_PYSTON:
+ pytest.skip("Pyston disables recursion checking")
+ if IS_WASM:
+ pytest.skip("Pyodide/WASM has limited stack size")
+
+ self_containing = np.array([None])
+ self_containing[0] = self_containing
+
+ Error = RecursionError
+
+ assert_raises(Error, bool, self_containing) # previously stack overflow
+ self_containing[0] = None # resolve circular reference
+
+ def test_to_bool_scalar_size_errors(self):
+ with pytest.raises(ValueError, match=".*one element is ambiguous"):
+ bool(np.array([1, 2]))
+
+ with pytest.raises(ValueError, match=".*empty array is ambiguous"):
+ bool(np.empty((3, 0)))
+
+ with pytest.raises(ValueError, match=".*empty array is ambiguous"):
+ bool(np.empty((0,)))
+
+ def test_to_int_scalar(self):
+ # gh-9972 means that these aren't always the same
+ int_funcs = (int, lambda x: x.__int__())
+ for int_func in int_funcs:
+ assert_equal(int_func(np.array(0)), 0)
+ assert_raises(TypeError, int_func, np.array([1]))
+ assert_raises(TypeError, int_func, np.array([[42]]))
+ assert_raises(TypeError, int_func, np.array([1, 2]))
+
+ # gh-9972
+ assert_equal(4, int_func(np.array('4')))
+ assert_equal(5, int_func(np.bytes_(b'5')))
+ assert_equal(6, int_func(np.str_('6')))
+
+ class NotConvertible:
+ def __int__(self):
+ raise NotImplementedError
+ assert_raises(NotImplementedError,
+ int_func, np.array(NotConvertible()))
+ assert_raises(TypeError,
+ int_func, np.array([NotConvertible()]))
+
+ def test_to_float_scalar(self):
+ float_funcs = (float, lambda x: x.__float__())
+ for float_func in float_funcs:
+ assert_equal(float_func(np.array(0)), 0.0)
+ assert_equal(float_func(np.array(1.0, np.float64)), 1.0)
+ assert_raises(TypeError, float_func, np.array([2]))
+ assert_raises(TypeError, float_func, np.array([3.14]))
+ assert_raises(TypeError, float_func, np.array([[4.0]]))
+
+ assert_equal(5.0, float_func(np.array('5')))
+ assert_equal(5.1, float_func(np.array('5.1')))
+ assert_equal(6.0, float_func(np.bytes_(b'6')))
+ assert_equal(6.1, float_func(np.bytes_(b'6.1')))
+ assert_equal(7.0, float_func(np.str_('7')))
+ assert_equal(7.1, float_func(np.str_('7.1')))
+
+
+class TestWhere:
+ def test_basic(self):
+ dts = [bool, np.int16, np.int32, np.int64, np.double, np.complex128,
+ np.longdouble, np.clongdouble]
+ for dt in dts:
+ c = np.ones(53, dtype=bool)
+ assert_equal(np.where( c, dt(0), dt(1)), dt(0))
+ assert_equal(np.where(~c, dt(0), dt(1)), dt(1))
+ assert_equal(np.where(True, dt(0), dt(1)), dt(0))
+ assert_equal(np.where(False, dt(0), dt(1)), dt(1))
+ d = np.ones_like(c).astype(dt)
+ e = np.zeros_like(d)
+ r = d.astype(dt)
+ c[7] = False
+ r[7] = e[7]
+ assert_equal(np.where(c, e, e), e)
+ assert_equal(np.where(c, d, e), r)
+ assert_equal(np.where(c, d, e[0]), r)
+ assert_equal(np.where(c, d[0], e), r)
+ assert_equal(np.where(c[::2], d[::2], e[::2]), r[::2])
+ assert_equal(np.where(c[1::2], d[1::2], e[1::2]), r[1::2])
+ assert_equal(np.where(c[::3], d[::3], e[::3]), r[::3])
+ assert_equal(np.where(c[1::3], d[1::3], e[1::3]), r[1::3])
+ assert_equal(np.where(c[::-2], d[::-2], e[::-2]), r[::-2])
+ assert_equal(np.where(c[::-3], d[::-3], e[::-3]), r[::-3])
+ assert_equal(np.where(c[1::-3], d[1::-3], e[1::-3]), r[1::-3])
+
+ @pytest.mark.skipif(IS_WASM, reason="no wasm fp exception support")
+ def test_exotic(self):
+ # object
+ assert_array_equal(np.where(True, None, None), np.array(None))
+ # zero sized
+ m = np.array([], dtype=bool).reshape(0, 3)
+ b = np.array([], dtype=np.float64).reshape(0, 3)
+ assert_array_equal(np.where(m, 0, b), np.array([]).reshape(0, 3))
+
+ # object cast
+ d = np.array([-1.34, -0.16, -0.54, -0.31, -0.08, -0.95, 0.000, 0.313,
+ 0.547, -0.18, 0.876, 0.236, 1.969, 0.310, 0.699, 1.013,
+ 1.267, 0.229, -1.39, 0.487])
+ nan = float('NaN')
+ e = np.array(['5z', '0l', nan, 'Wz', nan, nan, 'Xq', 'cs', nan, nan,
+ 'QN', nan, nan, 'Fd', nan, nan, 'kp', nan, '36', 'i1'],
+ dtype=object)
+ m = np.array([0, 0, 1, 0, 1, 1, 0, 0, 1, 1,
+ 0, 1, 1, 0, 1, 1, 0, 1, 0, 0], dtype=bool)
+
+ r = e[:]
+ r[np.where(m)] = d[np.where(m)]
+ assert_array_equal(np.where(m, d, e), r)
+
+ r = e[:]
+ r[np.where(~m)] = d[np.where(~m)]
+ assert_array_equal(np.where(m, e, d), r)
+
+ assert_array_equal(np.where(m, e, e), e)
+
+ # minimal dtype result with NaN scalar (e.g required by pandas)
+ d = np.array([1., 2.], dtype=np.float32)
+ e = float('NaN')
+ assert_equal(np.where(True, d, e).dtype, np.float32)
+ e = float('Infinity')
+ assert_equal(np.where(True, d, e).dtype, np.float32)
+ e = float('-Infinity')
+ assert_equal(np.where(True, d, e).dtype, np.float32)
+ # With NEP 50 adopted, the float will overflow here:
+ e = 1e150
+ with pytest.warns(RuntimeWarning, match="overflow"):
+ res = np.where(True, d, e)
+ assert res.dtype == np.float32
+
+ def test_ndim(self):
+ c = [True, False]
+ a = np.zeros((2, 25))
+ b = np.ones((2, 25))
+ r = np.where(np.array(c)[:, np.newaxis], a, b)
+ assert_array_equal(r[0], a[0])
+ assert_array_equal(r[1], b[0])
+
+ a = a.T
+ b = b.T
+ r = np.where(c, a, b)
+ assert_array_equal(r[:, 0], a[:, 0])
+ assert_array_equal(r[:, 1], b[:, 0])
+
+ def test_dtype_mix(self):
+ c = np.array([False, True, False, False, False, False, True, False,
+ False, False, True, False])
+ a = np.uint32(1)
+ b = np.array([5., 0., 3., 2., -1., -4., 0., -10., 10., 1., 0., 3.],
+ dtype=np.float64)
+ r = np.array([5., 1., 3., 2., -1., -4., 1., -10., 10., 1., 1., 3.],
+ dtype=np.float64)
+ assert_equal(np.where(c, a, b), r)
+
+ a = a.astype(np.float32)
+ b = b.astype(np.int64)
+ assert_equal(np.where(c, a, b), r)
+
+ # non bool mask
+ c = c.astype(int)
+ c[c != 0] = 34242324
+ assert_equal(np.where(c, a, b), r)
+ # invert
+ tmpmask = c != 0
+ c[c == 0] = 41247212
+ c[tmpmask] = 0
+ assert_equal(np.where(c, b, a), r)
+
+ def test_foreign(self):
+ c = np.array([False, True, False, False, False, False, True, False,
+ False, False, True, False])
+ r = np.array([5., 1., 3., 2., -1., -4., 1., -10., 10., 1., 1., 3.],
+ dtype=np.float64)
+ a = np.ones(1, dtype='>i4')
+ b = np.array([5., 0., 3., 2., -1., -4., 0., -10., 10., 1., 0., 3.],
+ dtype=np.float64)
+ assert_equal(np.where(c, a, b), r)
+
+ b = b.astype('>f8')
+ assert_equal(np.where(c, a, b), r)
+
+ a = a.astype('i4')
+ assert_equal(np.where(c, a, b), r)
+
+ def test_error(self):
+ c = [True, True]
+ a = np.ones((4, 5))
+ b = np.ones((5, 5))
+ assert_raises(ValueError, np.where, c, a, a)
+ assert_raises(ValueError, np.where, c[0], a, b)
+
+ def test_string(self):
+ # gh-4778 check strings are properly filled with nulls
+ a = np.array("abc")
+ b = np.array("x" * 753)
+ assert_equal(np.where(True, a, b), "abc")
+ assert_equal(np.where(False, b, a), "abc")
+
+ # check native datatype sized strings
+ a = np.array("abcd")
+ b = np.array("x" * 8)
+ assert_equal(np.where(True, a, b), "abcd")
+ assert_equal(np.where(False, b, a), "abcd")
+
+ def test_empty_result(self):
+ # pass empty where result through an assignment which reads the data of
+ # empty arrays, error detectable with valgrind, see gh-8922
+ x = np.zeros((1, 1))
+ ibad = np.vstack(np.where(x == 99.))
+ assert_array_equal(ibad,
+ np.atleast_2d(np.array([[], []], dtype=np.intp)))
+
+ def test_largedim(self):
+ # invalid read regression gh-9304
+ shape = [10, 2, 3, 4, 5, 6]
+ np.random.seed(2)
+ array = np.random.rand(*shape)
+
+ for i in range(10):
+ benchmark = array.nonzero()
+ result = array.nonzero()
+ assert_array_equal(benchmark, result)
+
+ def test_kwargs(self):
+ a = np.zeros(1)
+ with assert_raises(TypeError):
+ np.where(a, x=a, y=a)
+
+
+if not IS_PYPY:
+ # sys.getsizeof() is not valid on PyPy
+ class TestSizeOf:
+
+ def test_empty_array(self):
+ x = np.array([])
+ assert_(sys.getsizeof(x) > 0)
+
+ def check_array(self, dtype):
+ elem_size = dtype(0).itemsize
+
+ for length in [10, 50, 100, 500]:
+ x = np.arange(length, dtype=dtype)
+ assert_(sys.getsizeof(x) > length * elem_size)
+
+ def test_array_int32(self):
+ self.check_array(np.int32)
+
+ def test_array_int64(self):
+ self.check_array(np.int64)
+
+ def test_array_float32(self):
+ self.check_array(np.float32)
+
+ def test_array_float64(self):
+ self.check_array(np.float64)
+
+ def test_view(self):
+ d = np.ones(100)
+ assert_(sys.getsizeof(d[...]) < sys.getsizeof(d))
+
+ def test_reshape(self):
+ d = np.ones(100)
+ assert_(sys.getsizeof(d) < sys.getsizeof(d.reshape(100, 1, 1).copy()))
+
+ @_no_tracing
+ def test_resize(self):
+ d = np.ones(100)
+ old = sys.getsizeof(d)
+ d.resize(50)
+ assert_(old > sys.getsizeof(d))
+ d.resize(150)
+ assert_(old < sys.getsizeof(d))
+
+ @pytest.mark.parametrize("dtype", ["u4,f4", "u4,O"])
+ def test_resize_structured(self, dtype):
+ a = np.array([(0, 0.0) for i in range(5)], dtype=dtype)
+ a.resize(1000)
+ assert_array_equal(a, np.zeros(1000, dtype=dtype))
+
+ def test_error(self):
+ d = np.ones(100)
+ assert_raises(TypeError, d.__sizeof__, "a")
+
+
+class TestHashing:
+
+ def test_arrays_not_hashable(self):
+ x = np.ones(3)
+ assert_raises(TypeError, hash, x)
+
+ def test_collections_hashable(self):
+ x = np.array([])
+ assert_(not isinstance(x, collections.abc.Hashable))
+
+
+class TestArrayPriority:
+ # This will go away when __array_priority__ is settled, meanwhile
+ # it serves to check unintended changes.
+ op = operator
+ binary_ops = [
+ op.pow, op.add, op.sub, op.mul, op.floordiv, op.truediv, op.mod,
+ op.and_, op.or_, op.xor, op.lshift, op.rshift, op.mod, op.gt,
+ op.ge, op.lt, op.le, op.ne, op.eq
+ ]
+
+ class Foo(np.ndarray):
+ __array_priority__ = 100.
+
+ def __new__(cls, *args, **kwargs):
+ return np.array(*args, **kwargs).view(cls)
+
+ class Bar(np.ndarray):
+ __array_priority__ = 101.
+
+ def __new__(cls, *args, **kwargs):
+ return np.array(*args, **kwargs).view(cls)
+
+ class Other:
+ __array_priority__ = 1000.
+
+ def _all(self, other):
+ return self.__class__()
+
+ __add__ = __radd__ = _all
+ __sub__ = __rsub__ = _all
+ __mul__ = __rmul__ = _all
+ __pow__ = __rpow__ = _all
+ __mod__ = __rmod__ = _all
+ __truediv__ = __rtruediv__ = _all
+ __floordiv__ = __rfloordiv__ = _all
+ __and__ = __rand__ = _all
+ __xor__ = __rxor__ = _all
+ __or__ = __ror__ = _all
+ __lshift__ = __rlshift__ = _all
+ __rshift__ = __rrshift__ = _all
+ __eq__ = _all
+ __ne__ = _all
+ __gt__ = _all
+ __ge__ = _all
+ __lt__ = _all
+ __le__ = _all
+
+ def test_ndarray_subclass(self):
+ a = np.array([1, 2])
+ b = self.Bar([1, 2])
+ for f in self.binary_ops:
+ msg = repr(f)
+ assert_(isinstance(f(a, b), self.Bar), msg)
+ assert_(isinstance(f(b, a), self.Bar), msg)
+
+ def test_ndarray_other(self):
+ a = np.array([1, 2])
+ b = self.Other()
+ for f in self.binary_ops:
+ msg = repr(f)
+ assert_(isinstance(f(a, b), self.Other), msg)
+ assert_(isinstance(f(b, a), self.Other), msg)
+
+ def test_subclass_subclass(self):
+ a = self.Foo([1, 2])
+ b = self.Bar([1, 2])
+ for f in self.binary_ops:
+ msg = repr(f)
+ assert_(isinstance(f(a, b), self.Bar), msg)
+ assert_(isinstance(f(b, a), self.Bar), msg)
+
+ def test_subclass_other(self):
+ a = self.Foo([1, 2])
+ b = self.Other()
+ for f in self.binary_ops:
+ msg = repr(f)
+ assert_(isinstance(f(a, b), self.Other), msg)
+ assert_(isinstance(f(b, a), self.Other), msg)
+
+
+class TestBytestringArrayNonzero:
+
+ def test_empty_bstring_array_is_falsey(self):
+ assert_(not np.array([''], dtype=str))
+
+ def test_whitespace_bstring_array_is_truthy(self):
+ a = np.array(['spam'], dtype=str)
+ a[0] = ' \0\0'
+ assert_(a)
+
+ def test_all_null_bstring_array_is_falsey(self):
+ a = np.array(['spam'], dtype=str)
+ a[0] = '\0\0\0\0'
+ assert_(not a)
+
+ def test_null_inside_bstring_array_is_truthy(self):
+ a = np.array(['spam'], dtype=str)
+ a[0] = ' \0 \0'
+ assert_(a)
+
+
+class TestUnicodeEncoding:
+ """
+ Tests for encoding related bugs, such as UCS2 vs UCS4, round-tripping
+ issues, etc
+ """
+ def test_round_trip(self):
+ """ Tests that GETITEM, SETITEM, and PyArray_Scalar roundtrip """
+ # gh-15363
+ arr = np.zeros(shape=(), dtype="U1")
+ for i in range(1, sys.maxunicode + 1):
+ expected = chr(i)
+ arr[()] = expected
+ assert arr[()] == expected
+ assert arr.item() == expected
+
+ def test_assign_scalar(self):
+ # gh-3258
+ l = np.array(['aa', 'bb'])
+ l[:] = np.str_('cc')
+ assert_equal(l, ['cc', 'cc'])
+
+ def test_fill_scalar(self):
+ # gh-7227
+ l = np.array(['aa', 'bb'])
+ l.fill(np.str_('cc'))
+ assert_equal(l, ['cc', 'cc'])
+
+
+class TestUnicodeArrayNonzero:
+
+ def test_empty_ustring_array_is_falsey(self):
+ assert_(not np.array([''], dtype=np.str_))
+
+ def test_whitespace_ustring_array_is_truthy(self):
+ a = np.array(['eggs'], dtype=np.str_)
+ a[0] = ' \0\0'
+ assert_(a)
+
+ def test_all_null_ustring_array_is_falsey(self):
+ a = np.array(['eggs'], dtype=np.str_)
+ a[0] = '\0\0\0\0'
+ assert_(not a)
+
+ def test_null_inside_ustring_array_is_truthy(self):
+ a = np.array(['eggs'], dtype=np.str_)
+ a[0] = ' \0 \0'
+ assert_(a)
+
+
+class TestFormat:
+
+ def test_0d(self):
+ a = np.array(np.pi)
+ assert_equal(f'{a:0.3g}', '3.14')
+ assert_equal(f'{a[()]:0.3g}', '3.14')
+
+ def test_1d_no_format(self):
+ a = np.array([np.pi])
+ assert_equal(f'{a}', str(a))
+
+ def test_1d_format(self):
+ # until gh-5543, ensure that the behaviour matches what it used to be
+ a = np.array([np.pi])
+ assert_raises(TypeError, '{:30}'.format, a)
+
+
+from numpy.testing import IS_PYPY
+
+
+class TestCTypes:
+
+ def test_ctypes_is_available(self):
+ test_arr = np.array([[1, 2, 3], [4, 5, 6]])
+
+ assert_equal(ctypes, test_arr.ctypes._ctypes)
+ assert_equal(tuple(test_arr.ctypes.shape), (2, 3))
+
+ @pytest.mark.thread_unsafe(reason="modifies global module state")
+ def test_ctypes_is_not_available(self):
+ from numpy._core import _internal
+ _internal.ctypes = None
+ try:
+ test_arr = np.array([[1, 2, 3], [4, 5, 6]])
+
+ assert_(isinstance(test_arr.ctypes._ctypes,
+ _internal._missing_ctypes))
+ assert_equal(tuple(test_arr.ctypes.shape), (2, 3))
+ finally:
+ _internal.ctypes = ctypes
+
+ def _make_readonly(x):
+ x.flags.writeable = False
+ return x
+
+ @pytest.mark.thread_unsafe(reason="calls gc.collect()")
+ @pytest.mark.parametrize('arr', [
+ np.array([1, 2, 3]),
+ np.array([['one', 'two'], ['three', 'four']]),
+ np.array((1, 2), dtype='i4,i4'),
+ np.zeros((2,), dtype=np.dtype({
+ "formats": [' 2, [44, 55])
+ assert_equal(a, np.array([[0, 44], [1, 55], [2, 44]]))
+ # hit one of the failing paths
+ assert_raises(ValueError, np.place, a, a > 20, [])
+
+ def test_put_noncontiguous(self):
+ a = np.arange(6).reshape(2, 3).T # force non-c-contiguous
+ np.put(a, [0, 2], [44, 55])
+ assert_equal(a, np.array([[44, 3], [55, 4], [2, 5]]))
+
+ def test_putmask_noncontiguous(self):
+ a = np.arange(6).reshape(2, 3).T # force non-c-contiguous
+ # uses arr_putmask
+ np.putmask(a, a > 2, a**2)
+ assert_equal(a, np.array([[0, 9], [1, 16], [2, 25]]))
+
+ def test_take_mode_raise(self):
+ a = np.arange(6, dtype='int')
+ out = np.empty(2, dtype='int')
+ np.take(a, [0, 2], out=out, mode='raise')
+ assert_equal(out, np.array([0, 2]))
+
+ def test_choose_mod_raise(self):
+ a = np.array([[1, 0, 1], [0, 1, 0], [1, 0, 1]])
+ out = np.empty((3, 3), dtype='int')
+ choices = [-10, 10]
+ np.choose(a, choices, out=out, mode='raise')
+ assert_equal(out, np.array([[ 10, -10, 10],
+ [-10, 10, -10],
+ [ 10, -10, 10]]))
+
+ def test_flatiter__array__(self):
+ a = np.arange(9).reshape(3, 3)
+ b = a.T.flat
+ c = b.__array__()
+ # triggers the WRITEBACKIFCOPY resolution, assuming refcount semantics
+ del c
+
+ def test_dot_out(self):
+ # if HAVE_CBLAS, will use WRITEBACKIFCOPY
+ a = np.arange(9, dtype=float).reshape(3, 3)
+ b = np.dot(a, a, out=a)
+ assert_equal(b, np.array([[15, 18, 21], [42, 54, 66], [69, 90, 111]]))
+
+ def test_view_assign(self):
+ from numpy._core._multiarray_tests import (
+ npy_create_writebackifcopy,
+ npy_resolve,
+ )
+
+ arr = np.arange(9).reshape(3, 3).T
+ arr_wb = npy_create_writebackifcopy(arr)
+ assert_(arr_wb.flags.writebackifcopy)
+ assert_(arr_wb.base is arr)
+ arr_wb[...] = -100
+ npy_resolve(arr_wb)
+ # arr changes after resolve, even though we assigned to arr_wb
+ assert_equal(arr, -100)
+ # after resolve, the two arrays no longer reference each other
+ assert_(arr_wb.ctypes.data != 0)
+ assert_equal(arr_wb.base, None)
+ # assigning to arr_wb does not get transferred to arr
+ arr_wb[...] = 100
+ assert_equal(arr, -100)
+
+ @pytest.mark.leaks_references(
+ reason="increments self in dealloc; ignore since deprecated path.")
+ def test_dealloc_warning(self):
+ arr = np.arange(9).reshape(3, 3)
+ v = arr.T
+ with pytest.warns(RuntimeWarning):
+ _multiarray_tests.npy_abuse_writebackifcopy(v)
+
+ def test_view_discard_refcount(self):
+ from numpy._core._multiarray_tests import (
+ npy_create_writebackifcopy,
+ npy_discard,
+ )
+
+ arr = np.arange(9).reshape(3, 3).T
+ orig = arr.copy()
+ if HAS_REFCOUNT:
+ arr_cnt = sys.getrefcount(arr)
+ arr_wb = npy_create_writebackifcopy(arr)
+ assert_(arr_wb.flags.writebackifcopy)
+ assert_(arr_wb.base is arr)
+ arr_wb[...] = -100
+ npy_discard(arr_wb)
+ # arr remains unchanged after discard
+ assert_equal(arr, orig)
+ # after discard, the two arrays no longer reference each other
+ assert_(arr_wb.ctypes.data != 0)
+ assert_equal(arr_wb.base, None)
+ if HAS_REFCOUNT:
+ assert_equal(arr_cnt, sys.getrefcount(arr))
+ # assigning to arr_wb does not get transferred to arr
+ arr_wb[...] = 100
+ assert_equal(arr, orig)
+
+
+class TestArange:
+ def test_infinite(self):
+ assert_raises_regex(
+ ValueError, "size exceeded",
+ np.arange, 0, np.inf
+ )
+
+ def test_nan_step(self):
+ assert_raises_regex(
+ ValueError, "cannot compute length",
+ np.arange, 0, 1, np.nan
+ )
+
+ def test_zero_step(self):
+ assert_raises(ZeroDivisionError, np.arange, 0, 10, 0)
+ assert_raises(ZeroDivisionError, np.arange, 0.0, 10.0, 0.0)
+
+ # empty range
+ assert_raises(ZeroDivisionError, np.arange, 0, 0, 0)
+ assert_raises(ZeroDivisionError, np.arange, 0.0, 0.0, 0.0)
+
+ def test_require_range(self):
+ assert_raises(TypeError, np.arange)
+ assert_raises(TypeError, np.arange, step=3)
+ assert_raises(TypeError, np.arange, dtype='int64')
+ assert_raises(TypeError, np.arange, start=4)
+
+ def test_start_stop_kwarg(self):
+ keyword_stop = np.arange(stop=3)
+ keyword_zerotostop = np.arange(0, stop=3)
+ keyword_start_stop = np.arange(start=3, stop=9)
+
+ assert len(keyword_stop) == 3
+ assert len(keyword_zerotostop) == 3
+ assert len(keyword_start_stop) == 6
+ assert_array_equal(keyword_stop, keyword_zerotostop)
+
+ def test_arange_booleans(self):
+ # Arange makes some sense for booleans and works up to length 2.
+ # But it is weird since `arange(2, 4, dtype=bool)` works.
+ # Arguably, much or all of this could be deprecated/removed.
+ res = np.arange(False, dtype=bool)
+ assert_array_equal(res, np.array([], dtype="bool"))
+
+ res = np.arange(True, dtype="bool")
+ assert_array_equal(res, [False])
+
+ res = np.arange(2, dtype="bool")
+ assert_array_equal(res, [False, True])
+
+ # This case is especially weird, but drops out without special case:
+ res = np.arange(6, 8, dtype="bool")
+ assert_array_equal(res, [True, True])
+
+ with pytest.raises(TypeError):
+ np.arange(3, dtype="bool")
+
+ @pytest.mark.parametrize("dtype", ["S3", "U", "5i"])
+ def test_rejects_bad_dtypes(self, dtype):
+ dtype = np.dtype(dtype)
+ DType_name = re.escape(str(type(dtype)))
+ with pytest.raises(TypeError,
+ match=rf"arange\(\) not supported for inputs .* {DType_name}"):
+ np.arange(2, dtype=dtype)
+
+ def test_rejects_strings(self):
+ # Explicitly test error for strings which may call "b" - "a":
+ DType_name = re.escape(str(type(np.array("a").dtype)))
+ with pytest.raises(TypeError,
+ match=rf"arange\(\) not supported for inputs .* {DType_name}"):
+ np.arange("a", "b")
+
+ def test_byteswapped(self):
+ res_be = np.arange(1, 1000, dtype=">i4")
+ res_le = np.arange(1, 1000, dtype="i4"
+ assert res_le.dtype == " arr2
+
+
+@pytest.mark.parametrize("op", [
+ operator.eq, operator.ne, operator.le, operator.lt, operator.ge,
+ operator.gt])
+def test_comparisons_forwards_error(op):
+ class NotArray:
+ def __array__(self, dtype=None, copy=None):
+ raise TypeError("run you fools")
+
+ with pytest.raises(TypeError, match="run you fools"):
+ op(np.arange(2), NotArray())
+
+ with pytest.raises(TypeError, match="run you fools"):
+ op(NotArray(), np.arange(2))
+
+
+def test_richcompare_scalar_boolean_singleton_return():
+ # These are currently guaranteed to be the boolean numpy singletons
+ assert (np.array(0) == "a") is np.bool_(False)
+ assert (np.array(0) != "a") is np.bool_(True)
+ assert (np.int16(0) == "a") is np.bool_(False)
+ assert (np.int16(0) != "a") is np.bool_(True)
+
+
+@pytest.mark.parametrize("op", [
+ operator.eq, operator.ne, operator.le, operator.lt, operator.ge,
+ operator.gt])
+def test_ragged_comparison_fails(op):
+ # This needs to convert the internal array to True/False, which fails:
+ a = np.array([1, np.array([1, 2, 3])], dtype=object)
+ b = np.array([1, np.array([1, 2, 3])], dtype=object)
+
+ with pytest.raises(ValueError, match="The truth value.*ambiguous"):
+ op(a, b)
+
+
+@pytest.mark.parametrize(
+ ["fun", "npfun"],
+ [
+ (_multiarray_tests.npy_cabs, np.absolute),
+ (_multiarray_tests.npy_carg, np.angle)
+ ]
+)
+@pytest.mark.parametrize("x", [1, np.inf, -np.inf, np.nan])
+@pytest.mark.parametrize("y", [1, np.inf, -np.inf, np.nan])
+@pytest.mark.parametrize("test_dtype", np.complexfloating.__subclasses__())
+def test_npymath_complex(fun, npfun, x, y, test_dtype):
+ # Smoketest npymath functions
+ z = test_dtype(complex(x, y))
+ with np.errstate(invalid='ignore'):
+ # Fallback implementations may emit a warning for +-inf (see gh-24876):
+ # RuntimeWarning: invalid value encountered in absolute
+ got = fun(z)
+ expected = npfun(z)
+ assert_allclose(got, expected)
+
+
+def test_npymath_real():
+ # Smoketest npymath functions
+ from numpy._core._multiarray_tests import (
+ npy_cosh,
+ npy_log10,
+ npy_sinh,
+ npy_tan,
+ npy_tanh,
+ )
+
+ funcs = {npy_log10: np.log10,
+ npy_cosh: np.cosh,
+ npy_sinh: np.sinh,
+ npy_tan: np.tan,
+ npy_tanh: np.tanh}
+ vals = (1, np.inf, -np.inf, np.nan)
+ types = (np.float32, np.float64, np.longdouble)
+
+ with np.errstate(all='ignore'):
+ for fun, npfun in funcs.items():
+ for x, t in itertools.product(vals, types):
+ z = t(x)
+ got = fun(z)
+ expected = npfun(z)
+ assert_allclose(got, expected)
+
+def test_uintalignment_and_alignment():
+ # alignment code needs to satisfy these requirements:
+ # 1. numpy structs match C struct layout
+ # 2. ufuncs/casting is safe wrt to aligned access
+ # 3. copy code is safe wrt to "uint alidned" access
+ #
+ # Complex types are the main problem, whose alignment may not be the same
+ # as their "uint alignment".
+ #
+ # This test might only fail on certain platforms, where uint64 alignment is
+ # not equal to complex64 alignment. The second 2 tests will only fail
+ # for DEBUG=1.
+
+ d1 = np.dtype('u1,c8', align=True)
+ d2 = np.dtype('u4,c8', align=True)
+ d3 = np.dtype({'names': ['a', 'b'], 'formats': ['u1', d1]}, align=True)
+
+ assert_equal(np.zeros(1, dtype=d1)['f1'].flags['ALIGNED'], True)
+ assert_equal(np.zeros(1, dtype=d2)['f1'].flags['ALIGNED'], True)
+ assert_equal(np.zeros(1, dtype='u1,c8')['f1'].flags['ALIGNED'], False)
+
+ # check that C struct matches numpy struct size
+ s = _multiarray_tests.get_struct_alignments()
+ for d, (alignment, size) in zip([d1, d2, d3], s):
+ assert_equal(d.alignment, alignment)
+ assert_equal(d.itemsize, size)
+
+ # check that ufuncs don't complain in debug mode
+ # (this is probably OK if the aligned flag is true above)
+ src = np.zeros((2, 2), dtype=d1)['f1'] # 4-byte aligned, often
+ np.exp(src) # assert fails?
+
+ # check that copy code doesn't complain in debug mode
+ dst = np.zeros((2, 2), dtype='c8')
+ dst[:, 1] = src[:, 1] # assert in lowlevel_strided_loops fails?
+
+class TestAlignment:
+ # adapted from scipy._lib.tests.test__util.test__aligned_zeros
+ # Checks that unusual memory alignments don't trip up numpy.
+
+ def check(self, shape, dtype, order, align):
+ err_msg = repr((shape, dtype, order, align))
+ x = _aligned_zeros(shape, dtype, order, align=align)
+ if align is None:
+ align = np.dtype(dtype).alignment
+ assert_equal(x.__array_interface__['data'][0] % align, 0)
+ if hasattr(shape, '__len__'):
+ assert_equal(x.shape, shape, err_msg)
+ else:
+ assert_equal(x.shape, (shape,), err_msg)
+ assert_equal(x.dtype, dtype)
+ if order == "C":
+ assert_(x.flags.c_contiguous, err_msg)
+ elif order == "F":
+ if x.size > 0:
+ assert_(x.flags.f_contiguous, err_msg)
+ elif order is None:
+ assert_(x.flags.c_contiguous, err_msg)
+ else:
+ raise ValueError
+
+ def test_various_alignments(self):
+ for align in [1, 2, 3, 4, 8, 12, 16, 32, 64, None]:
+ for n in [0, 1, 3, 11]:
+ for order in ["C", "F", None]:
+ for dtype in list(np.typecodes["All"]) + ['i4,i4,i4']:
+ if dtype == 'O':
+ # object dtype can't be misaligned
+ continue
+ for shape in [n, (1, 2, 3, n)]:
+ self.check(shape, np.dtype(dtype), order, align)
+
+ def test_strided_loop_alignments(self):
+ # particularly test that complex64 and float128 use right alignment
+ # code-paths, since these are particularly problematic. It is useful to
+ # turn on USE_DEBUG for this test, so lowlevel-loop asserts are run.
+ for align in [1, 2, 4, 8, 12, 16, None]:
+ xf64 = _aligned_zeros(3, np.float64)
+
+ xc64 = _aligned_zeros(3, np.complex64, align=align)
+ xf128 = _aligned_zeros(3, np.longdouble, align=align)
+
+ # test casting, both to and from misaligned
+ with warnings.catch_warnings():
+ warnings.filterwarnings('ignore', "Casting complex values", ComplexWarning)
+ xc64.astype('f8')
+ xf64.astype(np.complex64)
+ test = xc64 + xf64
+
+ xf128.astype('f8')
+ xf64.astype(np.longdouble)
+ test = xf128 + xf64
+
+ test = xf128 + xc64
+
+ # test copy, both to and from misaligned
+ # contig copy
+ xf64[:] = xf64.copy()
+ xc64[:] = xc64.copy()
+ xf128[:] = xf128.copy()
+ # strided copy
+ xf64[::2] = xf64[::2].copy()
+ xc64[::2] = xc64[::2].copy()
+ xf128[::2] = xf128[::2].copy()
+
+def test_getfield():
+ a = np.arange(32, dtype='uint16')
+ if sys.byteorder == 'little':
+ i = 0
+ j = 1
+ else:
+ i = 1
+ j = 0
+ b = a.getfield('int8', i)
+ assert_equal(b, a)
+ b = a.getfield('int8', j)
+ assert_equal(b, 0)
+ pytest.raises(ValueError, a.getfield, 'uint8', -1)
+ pytest.raises(ValueError, a.getfield, 'uint8', 16)
+ pytest.raises(ValueError, a.getfield, 'uint64', 0)
+
+class TestViewDtype:
+ """
+ Verify that making a view of a non-contiguous array works as expected.
+ """
+ def test_smaller_dtype_multiple(self):
+ # x is non-contiguous
+ x = np.arange(10, dtype=' 10:
+ arrs.pop(0)
+ elif len(arrs) <= 10:
+ arrs.extend([np.array([1, 2, 3]) for _ in range(1000)])
+
+ def replace_list_items(b):
+ b.wait()
+ rng = np.random.RandomState()
+ rng.seed(0x4d3d3d3)
+ while done < 4:
+ data = rng.randint(0, 1000, size=4)
+ arrs[data[0]] = data[1:]
+
+ for mutation_func in (replace_list_items, contract_and_expand_list):
+ b = threading.Barrier(5)
+ try:
+ with concurrent.futures.ThreadPoolExecutor(max_workers=5) as tpe:
+ tasks = [tpe.submit(read_arrs, b) for _ in range(4)]
+ tasks.append(tpe.submit(mutation_func, b))
+ for t in tasks:
+ t.result()
+ except RuntimeError as e:
+ if outcome == "success":
+ raise
+ assert "Inconsistent object during array creation?" in str(e)
+ msg = "replace_list_items should not raise errors"
+ assert mutation_func is contract_and_expand_list, msg
+ finally:
+ if len(tasks) < 5:
+ b.abort()
+
+@pytest.mark.skipif(sys.version_info < (3, 12), reason="Python >= 3.12 required")
+def test_array__buffer__thread_safety():
+ import inspect
+ arr = np.arange(1000)
+ flags = [inspect.BufferFlags.STRIDED, inspect.BufferFlags.READ]
+
+ def func(b):
+ b.wait()
+ for i in range(100):
+ arr.__buffer__(flags[i % 2])
+
+ run_threaded(func, max_workers=8, pass_barrier=True)
+
+@pytest.mark.skipif(sys.version_info < (3, 12), reason="Python >= 3.12 required")
+def test_void_dtype__buffer__thread_safety():
+ import inspect
+ dt = np.dtype([('name', np.str_, 16), ('grades', np.float64, (2,))])
+ x = np.array(('ndarray_scalar', (1.2, 3.0)), dtype=dt)[()]
+ assert isinstance(x, np.void)
+ flags = [inspect.BufferFlags.STRIDES, inspect.BufferFlags.READ]
+
+ def func(b):
+ b.wait()
+ for i in range(100):
+ x.__buffer__(flags[i % 2])
+
+ run_threaded(func, max_workers=8, pass_barrier=True)
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/test_nditer.py b/python/user_packages/Python313/site-packages/numpy/_core/tests/test_nditer.py
new file mode 100644
index 0000000000000000000000000000000000000000..6a6eea6c216d9e29e0df46a02aa4783a03070bd7
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/tests/test_nditer.py
@@ -0,0 +1,3533 @@
+import inspect
+import subprocess
+import sys
+import textwrap
+import warnings
+
+import pytest
+
+import numpy as np
+import numpy._core._multiarray_tests as _multiarray_tests
+import numpy._core.umath as ncu
+from numpy import all, arange, array, nditer
+from numpy.testing import (
+ HAS_REFCOUNT,
+ IS_64BIT,
+ IS_PYPY,
+ IS_WASM,
+ assert_,
+ assert_array_equal,
+ assert_equal,
+ assert_raises,
+)
+from numpy.testing._private.utils import requires_memory
+
+
+def iter_multi_index(i):
+ ret = []
+ while not i.finished:
+ ret.append(i.multi_index)
+ i.iternext()
+ return ret
+
+def iter_indices(i):
+ ret = []
+ while not i.finished:
+ ret.append(i.index)
+ i.iternext()
+ return ret
+
+def iter_iterindices(i):
+ ret = []
+ while not i.finished:
+ ret.append(i.iterindex)
+ i.iternext()
+ return ret
+
+@pytest.mark.skipif(not HAS_REFCOUNT, reason="Python lacks refcounts")
+def test_iter_refcount():
+ # Make sure the iterator doesn't leak
+
+ # Basic
+ a = arange(6)
+ dt = np.dtype('f4').newbyteorder()
+ rc_a = sys.getrefcount(a)
+ rc_dt = sys.getrefcount(dt)
+ with nditer(a, [],
+ [['readwrite', 'updateifcopy']],
+ casting='unsafe',
+ op_dtypes=[dt]) as it:
+ assert_(not it.iterationneedsapi)
+ assert_(sys.getrefcount(a) > rc_a)
+ assert_(sys.getrefcount(dt) > rc_dt)
+ # del 'it'
+ it = None
+ assert_equal(sys.getrefcount(a), rc_a)
+ assert_equal(sys.getrefcount(dt), rc_dt)
+
+ # With a copy
+ a = arange(6, dtype='f4')
+ dt = np.dtype('f4')
+ rc_a = sys.getrefcount(a)
+ rc_dt = sys.getrefcount(dt)
+ it = nditer(a, [],
+ [['readwrite']],
+ op_dtypes=[dt])
+ rc2_a = sys.getrefcount(a)
+ rc2_dt = sys.getrefcount(dt)
+ it2 = it.copy()
+ assert_(sys.getrefcount(a) > rc2_a)
+ if sys.version_info < (3, 13):
+ # np.dtype('f4') is immortal after Python 3.13
+ assert_(sys.getrefcount(dt) > rc2_dt)
+ it = None
+ assert_equal(sys.getrefcount(a), rc2_a)
+ assert_equal(sys.getrefcount(dt), rc2_dt)
+ it2 = None
+ assert_equal(sys.getrefcount(a), rc_a)
+ assert_equal(sys.getrefcount(dt), rc_dt)
+
+def test_iter_best_order():
+ # The iterator should always find the iteration order
+ # with increasing memory addresses
+
+ # Test the ordering for 1-D to 5-D shapes
+ for shape in [(5,), (3, 4), (2, 3, 4), (2, 3, 4, 3), (2, 3, 2, 2, 3)]:
+ a = arange(np.prod(shape))
+ # Test each combination of positive and negative strides
+ for dirs in range(2**len(shape)):
+ dirs_index = [slice(None)] * len(shape)
+ for bit in range(len(shape)):
+ if ((2**bit) & dirs):
+ dirs_index[bit] = slice(None, None, -1)
+ dirs_index = tuple(dirs_index)
+
+ aview = a.reshape(shape)[dirs_index]
+ # C-order
+ i = nditer(aview, [], [['readonly']])
+ assert_equal(list(i), a)
+ # Fortran-order
+ i = nditer(aview.T, [], [['readonly']])
+ assert_equal(list(i), a)
+ # Other order
+ if len(shape) > 2:
+ i = nditer(aview.swapaxes(0, 1), [], [['readonly']])
+ assert_equal(list(i), a)
+
+def test_iter_c_order():
+ # Test forcing C order
+
+ # Test the ordering for 1-D to 5-D shapes
+ for shape in [(5,), (3, 4), (2, 3, 4), (2, 3, 4, 3), (2, 3, 2, 2, 3)]:
+ a = arange(np.prod(shape))
+ # Test each combination of positive and negative strides
+ for dirs in range(2**len(shape)):
+ dirs_index = [slice(None)] * len(shape)
+ for bit in range(len(shape)):
+ if ((2**bit) & dirs):
+ dirs_index[bit] = slice(None, None, -1)
+ dirs_index = tuple(dirs_index)
+
+ aview = a.reshape(shape)[dirs_index]
+ # C-order
+ i = nditer(aview, order='C')
+ assert_equal(list(i), aview.ravel(order='C'))
+ # Fortran-order
+ i = nditer(aview.T, order='C')
+ assert_equal(list(i), aview.T.ravel(order='C'))
+ # Other order
+ if len(shape) > 2:
+ i = nditer(aview.swapaxes(0, 1), order='C')
+ assert_equal(list(i),
+ aview.swapaxes(0, 1).ravel(order='C'))
+
+def test_iter_f_order():
+ # Test forcing F order
+
+ # Test the ordering for 1-D to 5-D shapes
+ for shape in [(5,), (3, 4), (2, 3, 4), (2, 3, 4, 3), (2, 3, 2, 2, 3)]:
+ a = arange(np.prod(shape))
+ # Test each combination of positive and negative strides
+ for dirs in range(2**len(shape)):
+ dirs_index = [slice(None)] * len(shape)
+ for bit in range(len(shape)):
+ if ((2**bit) & dirs):
+ dirs_index[bit] = slice(None, None, -1)
+ dirs_index = tuple(dirs_index)
+
+ aview = a.reshape(shape)[dirs_index]
+ # C-order
+ i = nditer(aview, order='F')
+ assert_equal(list(i), aview.ravel(order='F'))
+ # Fortran-order
+ i = nditer(aview.T, order='F')
+ assert_equal(list(i), aview.T.ravel(order='F'))
+ # Other order
+ if len(shape) > 2:
+ i = nditer(aview.swapaxes(0, 1), order='F')
+ assert_equal(list(i),
+ aview.swapaxes(0, 1).ravel(order='F'))
+
+def test_iter_c_or_f_order():
+ # Test forcing any contiguous (C or F) order
+
+ # Test the ordering for 1-D to 5-D shapes
+ for shape in [(5,), (3, 4), (2, 3, 4), (2, 3, 4, 3), (2, 3, 2, 2, 3)]:
+ a = arange(np.prod(shape))
+ # Test each combination of positive and negative strides
+ for dirs in range(2**len(shape)):
+ dirs_index = [slice(None)] * len(shape)
+ for bit in range(len(shape)):
+ if ((2**bit) & dirs):
+ dirs_index[bit] = slice(None, None, -1)
+ dirs_index = tuple(dirs_index)
+
+ aview = a.reshape(shape)[dirs_index]
+ # C-order
+ i = nditer(aview, order='A')
+ assert_equal(list(i), aview.ravel(order='A'))
+ # Fortran-order
+ i = nditer(aview.T, order='A')
+ assert_equal(list(i), aview.T.ravel(order='A'))
+ # Other order
+ if len(shape) > 2:
+ i = nditer(aview.swapaxes(0, 1), order='A')
+ assert_equal(list(i),
+ aview.swapaxes(0, 1).ravel(order='A'))
+
+def test_nditer_multi_index_set():
+ # Test the multi_index set
+ a = np.arange(6).reshape(2, 3)
+ it = np.nditer(a, flags=['multi_index'])
+
+ # Removes the iteration on two first elements of a[0]
+ it.multi_index = (0, 2,)
+
+ assert_equal(list(it), [2, 3, 4, 5])
+
+@pytest.mark.skipif(not HAS_REFCOUNT, reason="Python lacks refcounts")
+def test_nditer_multi_index_set_refcount():
+ # Test if the reference count on index variable is decreased
+
+ index = 0
+ i = np.nditer(np.array([111, 222, 333, 444]), flags=['multi_index'])
+
+ start_count = sys.getrefcount(index)
+ i.multi_index = (index,)
+ end_count = sys.getrefcount(index)
+
+ assert_equal(start_count, end_count)
+
+def test_iter_best_order_multi_index_1d():
+ # The multi-indices should be correct with any reordering
+
+ a = arange(4)
+ # 1D order
+ i = nditer(a, ['multi_index'], [['readonly']])
+ assert_equal(iter_multi_index(i), [(0,), (1,), (2,), (3,)])
+ # 1D reversed order
+ i = nditer(a[::-1], ['multi_index'], [['readonly']])
+ assert_equal(iter_multi_index(i), [(3,), (2,), (1,), (0,)])
+
+def test_iter_best_order_multi_index_2d():
+ # The multi-indices should be correct with any reordering
+
+ a = arange(6)
+ # 2D C-order
+ i = nditer(a.reshape(2, 3), ['multi_index'], [['readonly']])
+ assert_equal(iter_multi_index(i), [(0, 0), (0, 1), (0, 2), (1, 0), (1, 1), (1, 2)])
+ # 2D Fortran-order
+ i = nditer(a.reshape(2, 3).copy(order='F'), ['multi_index'], [['readonly']])
+ assert_equal(iter_multi_index(i), [(0, 0), (1, 0), (0, 1), (1, 1), (0, 2), (1, 2)])
+ # 2D reversed C-order
+ i = nditer(a.reshape(2, 3)[::-1], ['multi_index'], [['readonly']])
+ assert_equal(iter_multi_index(i), [(1, 0), (1, 1), (1, 2), (0, 0), (0, 1), (0, 2)])
+ i = nditer(a.reshape(2, 3)[:, ::-1], ['multi_index'], [['readonly']])
+ assert_equal(iter_multi_index(i), [(0, 2), (0, 1), (0, 0), (1, 2), (1, 1), (1, 0)])
+ i = nditer(a.reshape(2, 3)[::-1, ::-1], ['multi_index'], [['readonly']])
+ assert_equal(iter_multi_index(i), [(1, 2), (1, 1), (1, 0), (0, 2), (0, 1), (0, 0)])
+ # 2D reversed Fortran-order
+ i = nditer(a.reshape(2, 3).copy(order='F')[::-1], ['multi_index'], [['readonly']])
+ assert_equal(iter_multi_index(i), [(1, 0), (0, 0), (1, 1), (0, 1), (1, 2), (0, 2)])
+ i = nditer(a.reshape(2, 3).copy(order='F')[:, ::-1],
+ ['multi_index'], [['readonly']])
+ assert_equal(iter_multi_index(i), [(0, 2), (1, 2), (0, 1), (1, 1), (0, 0), (1, 0)])
+ i = nditer(a.reshape(2, 3).copy(order='F')[::-1, ::-1],
+ ['multi_index'], [['readonly']])
+ assert_equal(iter_multi_index(i), [(1, 2), (0, 2), (1, 1), (0, 1), (1, 0), (0, 0)])
+
+def test_iter_best_order_multi_index_3d():
+ # The multi-indices should be correct with any reordering
+
+ a = arange(12)
+ # 3D C-order
+ i = nditer(a.reshape(2, 3, 2), ['multi_index'], [['readonly']])
+ assert_equal(iter_multi_index(i),
+ [(0, 0, 0), (0, 0, 1), (0, 1, 0), (0, 1, 1), (0, 2, 0), (0, 2, 1),
+ (1, 0, 0), (1, 0, 1), (1, 1, 0), (1, 1, 1), (1, 2, 0), (1, 2, 1)])
+ # 3D Fortran-order
+ i = nditer(a.reshape(2, 3, 2).copy(order='F'), ['multi_index'], [['readonly']])
+ assert_equal(iter_multi_index(i),
+ [(0, 0, 0), (1, 0, 0), (0, 1, 0), (1, 1, 0), (0, 2, 0), (1, 2, 0),
+ (0, 0, 1), (1, 0, 1), (0, 1, 1), (1, 1, 1), (0, 2, 1), (1, 2, 1)])
+ # 3D reversed C-order
+ i = nditer(a.reshape(2, 3, 2)[::-1], ['multi_index'], [['readonly']])
+ assert_equal(iter_multi_index(i),
+ [(1, 0, 0), (1, 0, 1), (1, 1, 0), (1, 1, 1), (1, 2, 0), (1, 2, 1),
+ (0, 0, 0), (0, 0, 1), (0, 1, 0), (0, 1, 1), (0, 2, 0), (0, 2, 1)])
+ i = nditer(a.reshape(2, 3, 2)[:, ::-1], ['multi_index'], [['readonly']])
+ assert_equal(iter_multi_index(i),
+ [(0, 2, 0), (0, 2, 1), (0, 1, 0), (0, 1, 1), (0, 0, 0), (0, 0, 1),
+ (1, 2, 0), (1, 2, 1), (1, 1, 0), (1, 1, 1), (1, 0, 0), (1, 0, 1)])
+ i = nditer(a.reshape(2, 3, 2)[:, :, ::-1], ['multi_index'], [['readonly']])
+ assert_equal(iter_multi_index(i),
+ [(0, 0, 1), (0, 0, 0), (0, 1, 1), (0, 1, 0), (0, 2, 1), (0, 2, 0),
+ (1, 0, 1), (1, 0, 0), (1, 1, 1), (1, 1, 0), (1, 2, 1), (1, 2, 0)])
+ # 3D reversed Fortran-order
+ i = nditer(a.reshape(2, 3, 2).copy(order='F')[::-1],
+ ['multi_index'], [['readonly']])
+ assert_equal(iter_multi_index(i),
+ [(1, 0, 0), (0, 0, 0), (1, 1, 0), (0, 1, 0), (1, 2, 0), (0, 2, 0),
+ (1, 0, 1), (0, 0, 1), (1, 1, 1), (0, 1, 1), (1, 2, 1), (0, 2, 1)])
+ i = nditer(a.reshape(2, 3, 2).copy(order='F')[:, ::-1],
+ ['multi_index'], [['readonly']])
+ assert_equal(iter_multi_index(i),
+ [(0, 2, 0), (1, 2, 0), (0, 1, 0), (1, 1, 0), (0, 0, 0), (1, 0, 0),
+ (0, 2, 1), (1, 2, 1), (0, 1, 1), (1, 1, 1), (0, 0, 1), (1, 0, 1)])
+ i = nditer(a.reshape(2, 3, 2).copy(order='F')[:, :, ::-1],
+ ['multi_index'], [['readonly']])
+ assert_equal(iter_multi_index(i),
+ [(0, 0, 1), (1, 0, 1), (0, 1, 1), (1, 1, 1), (0, 2, 1), (1, 2, 1),
+ (0, 0, 0), (1, 0, 0), (0, 1, 0), (1, 1, 0), (0, 2, 0), (1, 2, 0)])
+
+def test_iter_best_order_c_index_1d():
+ # The C index should be correct with any reordering
+
+ a = arange(4)
+ # 1D order
+ i = nditer(a, ['c_index'], [['readonly']])
+ assert_equal(iter_indices(i), [0, 1, 2, 3])
+ # 1D reversed order
+ i = nditer(a[::-1], ['c_index'], [['readonly']])
+ assert_equal(iter_indices(i), [3, 2, 1, 0])
+
+def test_iter_best_order_c_index_2d():
+ # The C index should be correct with any reordering
+
+ a = arange(6)
+ # 2D C-order
+ i = nditer(a.reshape(2, 3), ['c_index'], [['readonly']])
+ assert_equal(iter_indices(i), [0, 1, 2, 3, 4, 5])
+ # 2D Fortran-order
+ i = nditer(a.reshape(2, 3).copy(order='F'),
+ ['c_index'], [['readonly']])
+ assert_equal(iter_indices(i), [0, 3, 1, 4, 2, 5])
+ # 2D reversed C-order
+ i = nditer(a.reshape(2, 3)[::-1], ['c_index'], [['readonly']])
+ assert_equal(iter_indices(i), [3, 4, 5, 0, 1, 2])
+ i = nditer(a.reshape(2, 3)[:, ::-1], ['c_index'], [['readonly']])
+ assert_equal(iter_indices(i), [2, 1, 0, 5, 4, 3])
+ i = nditer(a.reshape(2, 3)[::-1, ::-1], ['c_index'], [['readonly']])
+ assert_equal(iter_indices(i), [5, 4, 3, 2, 1, 0])
+ # 2D reversed Fortran-order
+ i = nditer(a.reshape(2, 3).copy(order='F')[::-1],
+ ['c_index'], [['readonly']])
+ assert_equal(iter_indices(i), [3, 0, 4, 1, 5, 2])
+ i = nditer(a.reshape(2, 3).copy(order='F')[:, ::-1],
+ ['c_index'], [['readonly']])
+ assert_equal(iter_indices(i), [2, 5, 1, 4, 0, 3])
+ i = nditer(a.reshape(2, 3).copy(order='F')[::-1, ::-1],
+ ['c_index'], [['readonly']])
+ assert_equal(iter_indices(i), [5, 2, 4, 1, 3, 0])
+
+def test_iter_best_order_c_index_3d():
+ # The C index should be correct with any reordering
+
+ a = arange(12)
+ # 3D C-order
+ i = nditer(a.reshape(2, 3, 2), ['c_index'], [['readonly']])
+ assert_equal(iter_indices(i),
+ [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11])
+ # 3D Fortran-order
+ i = nditer(a.reshape(2, 3, 2).copy(order='F'),
+ ['c_index'], [['readonly']])
+ assert_equal(iter_indices(i),
+ [0, 6, 2, 8, 4, 10, 1, 7, 3, 9, 5, 11])
+ # 3D reversed C-order
+ i = nditer(a.reshape(2, 3, 2)[::-1], ['c_index'], [['readonly']])
+ assert_equal(iter_indices(i),
+ [6, 7, 8, 9, 10, 11, 0, 1, 2, 3, 4, 5])
+ i = nditer(a.reshape(2, 3, 2)[:, ::-1], ['c_index'], [['readonly']])
+ assert_equal(iter_indices(i),
+ [4, 5, 2, 3, 0, 1, 10, 11, 8, 9, 6, 7])
+ i = nditer(a.reshape(2, 3, 2)[:, :, ::-1], ['c_index'], [['readonly']])
+ assert_equal(iter_indices(i),
+ [1, 0, 3, 2, 5, 4, 7, 6, 9, 8, 11, 10])
+ # 3D reversed Fortran-order
+ i = nditer(a.reshape(2, 3, 2).copy(order='F')[::-1],
+ ['c_index'], [['readonly']])
+ assert_equal(iter_indices(i),
+ [6, 0, 8, 2, 10, 4, 7, 1, 9, 3, 11, 5])
+ i = nditer(a.reshape(2, 3, 2).copy(order='F')[:, ::-1],
+ ['c_index'], [['readonly']])
+ assert_equal(iter_indices(i),
+ [4, 10, 2, 8, 0, 6, 5, 11, 3, 9, 1, 7])
+ i = nditer(a.reshape(2, 3, 2).copy(order='F')[:, :, ::-1],
+ ['c_index'], [['readonly']])
+ assert_equal(iter_indices(i),
+ [1, 7, 3, 9, 5, 11, 0, 6, 2, 8, 4, 10])
+
+def test_iter_best_order_f_index_1d():
+ # The Fortran index should be correct with any reordering
+
+ a = arange(4)
+ # 1D order
+ i = nditer(a, ['f_index'], [['readonly']])
+ assert_equal(iter_indices(i), [0, 1, 2, 3])
+ # 1D reversed order
+ i = nditer(a[::-1], ['f_index'], [['readonly']])
+ assert_equal(iter_indices(i), [3, 2, 1, 0])
+
+def test_iter_best_order_f_index_2d():
+ # The Fortran index should be correct with any reordering
+
+ a = arange(6)
+ # 2D C-order
+ i = nditer(a.reshape(2, 3), ['f_index'], [['readonly']])
+ assert_equal(iter_indices(i), [0, 2, 4, 1, 3, 5])
+ # 2D Fortran-order
+ i = nditer(a.reshape(2, 3).copy(order='F'),
+ ['f_index'], [['readonly']])
+ assert_equal(iter_indices(i), [0, 1, 2, 3, 4, 5])
+ # 2D reversed C-order
+ i = nditer(a.reshape(2, 3)[::-1], ['f_index'], [['readonly']])
+ assert_equal(iter_indices(i), [1, 3, 5, 0, 2, 4])
+ i = nditer(a.reshape(2, 3)[:, ::-1], ['f_index'], [['readonly']])
+ assert_equal(iter_indices(i), [4, 2, 0, 5, 3, 1])
+ i = nditer(a.reshape(2, 3)[::-1, ::-1], ['f_index'], [['readonly']])
+ assert_equal(iter_indices(i), [5, 3, 1, 4, 2, 0])
+ # 2D reversed Fortran-order
+ i = nditer(a.reshape(2, 3).copy(order='F')[::-1],
+ ['f_index'], [['readonly']])
+ assert_equal(iter_indices(i), [1, 0, 3, 2, 5, 4])
+ i = nditer(a.reshape(2, 3).copy(order='F')[:, ::-1],
+ ['f_index'], [['readonly']])
+ assert_equal(iter_indices(i), [4, 5, 2, 3, 0, 1])
+ i = nditer(a.reshape(2, 3).copy(order='F')[::-1, ::-1],
+ ['f_index'], [['readonly']])
+ assert_equal(iter_indices(i), [5, 4, 3, 2, 1, 0])
+
+def test_iter_best_order_f_index_3d():
+ # The Fortran index should be correct with any reordering
+
+ a = arange(12)
+ # 3D C-order
+ i = nditer(a.reshape(2, 3, 2), ['f_index'], [['readonly']])
+ assert_equal(iter_indices(i),
+ [0, 6, 2, 8, 4, 10, 1, 7, 3, 9, 5, 11])
+ # 3D Fortran-order
+ i = nditer(a.reshape(2, 3, 2).copy(order='F'),
+ ['f_index'], [['readonly']])
+ assert_equal(iter_indices(i),
+ [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11])
+ # 3D reversed C-order
+ i = nditer(a.reshape(2, 3, 2)[::-1], ['f_index'], [['readonly']])
+ assert_equal(iter_indices(i),
+ [1, 7, 3, 9, 5, 11, 0, 6, 2, 8, 4, 10])
+ i = nditer(a.reshape(2, 3, 2)[:, ::-1], ['f_index'], [['readonly']])
+ assert_equal(iter_indices(i),
+ [4, 10, 2, 8, 0, 6, 5, 11, 3, 9, 1, 7])
+ i = nditer(a.reshape(2, 3, 2)[:, :, ::-1], ['f_index'], [['readonly']])
+ assert_equal(iter_indices(i),
+ [6, 0, 8, 2, 10, 4, 7, 1, 9, 3, 11, 5])
+ # 3D reversed Fortran-order
+ i = nditer(a.reshape(2, 3, 2).copy(order='F')[::-1],
+ ['f_index'], [['readonly']])
+ assert_equal(iter_indices(i),
+ [1, 0, 3, 2, 5, 4, 7, 6, 9, 8, 11, 10])
+ i = nditer(a.reshape(2, 3, 2).copy(order='F')[:, ::-1],
+ ['f_index'], [['readonly']])
+ assert_equal(iter_indices(i),
+ [4, 5, 2, 3, 0, 1, 10, 11, 8, 9, 6, 7])
+ i = nditer(a.reshape(2, 3, 2).copy(order='F')[:, :, ::-1],
+ ['f_index'], [['readonly']])
+ assert_equal(iter_indices(i),
+ [6, 7, 8, 9, 10, 11, 0, 1, 2, 3, 4, 5])
+
+def test_iter_no_inner_full_coalesce():
+ # Check no_inner iterators which coalesce into a single inner loop
+
+ for shape in [(5,), (3, 4), (2, 3, 4), (2, 3, 4, 3), (2, 3, 2, 2, 3)]:
+ size = np.prod(shape)
+ a = arange(size)
+ # Test each combination of forward and backwards indexing
+ for dirs in range(2**len(shape)):
+ dirs_index = [slice(None)] * len(shape)
+ for bit in range(len(shape)):
+ if ((2**bit) & dirs):
+ dirs_index[bit] = slice(None, None, -1)
+ dirs_index = tuple(dirs_index)
+
+ aview = a.reshape(shape)[dirs_index]
+ # C-order
+ i = nditer(aview, ['external_loop'], [['readonly']])
+ assert_equal(i.ndim, 1)
+ assert_equal(i[0].shape, (size,))
+ # Fortran-order
+ i = nditer(aview.T, ['external_loop'], [['readonly']])
+ assert_equal(i.ndim, 1)
+ assert_equal(i[0].shape, (size,))
+ # Other order
+ if len(shape) > 2:
+ i = nditer(aview.swapaxes(0, 1),
+ ['external_loop'], [['readonly']])
+ assert_equal(i.ndim, 1)
+ assert_equal(i[0].shape, (size,))
+
+def test_iter_no_inner_dim_coalescing():
+ # Check no_inner iterators whose dimensions may not coalesce completely
+
+ # Skipping the last element in a dimension prevents coalescing
+ # with the next-bigger dimension
+ a = arange(24).reshape(2, 3, 4)[:, :, :-1]
+ i = nditer(a, ['external_loop'], [['readonly']])
+ assert_equal(i.ndim, 2)
+ assert_equal(i[0].shape, (3,))
+ a = arange(24).reshape(2, 3, 4)[:, :-1, :]
+ i = nditer(a, ['external_loop'], [['readonly']])
+ assert_equal(i.ndim, 2)
+ assert_equal(i[0].shape, (8,))
+ a = arange(24).reshape(2, 3, 4)[:-1, :, :]
+ i = nditer(a, ['external_loop'], [['readonly']])
+ assert_equal(i.ndim, 1)
+ assert_equal(i[0].shape, (12,))
+
+ # Even with lots of 1-sized dimensions, should still coalesce
+ a = arange(24).reshape(1, 1, 2, 1, 1, 3, 1, 1, 4, 1, 1)
+ i = nditer(a, ['external_loop'], [['readonly']])
+ assert_equal(i.ndim, 1)
+ assert_equal(i[0].shape, (24,))
+
+def test_iter_dim_coalescing():
+ # Check that the correct number of dimensions are coalesced
+
+ # Tracking a multi-index disables coalescing
+ a = arange(24).reshape(2, 3, 4)
+ i = nditer(a, ['multi_index'], [['readonly']])
+ assert_equal(i.ndim, 3)
+
+ # A tracked index can allow coalescing if it's compatible with the array
+ a3d = arange(24).reshape(2, 3, 4)
+ i = nditer(a3d, ['c_index'], [['readonly']])
+ assert_equal(i.ndim, 1)
+ i = nditer(a3d.swapaxes(0, 1), ['c_index'], [['readonly']])
+ assert_equal(i.ndim, 3)
+ i = nditer(a3d.T, ['c_index'], [['readonly']])
+ assert_equal(i.ndim, 3)
+ i = nditer(a3d.T, ['f_index'], [['readonly']])
+ assert_equal(i.ndim, 1)
+ i = nditer(a3d.T.swapaxes(0, 1), ['f_index'], [['readonly']])
+ assert_equal(i.ndim, 3)
+
+ # When C or F order is forced, coalescing may still occur
+ a3d = arange(24).reshape(2, 3, 4)
+ i = nditer(a3d, order='C')
+ assert_equal(i.ndim, 1)
+ i = nditer(a3d.T, order='C')
+ assert_equal(i.ndim, 3)
+ i = nditer(a3d, order='F')
+ assert_equal(i.ndim, 3)
+ i = nditer(a3d.T, order='F')
+ assert_equal(i.ndim, 1)
+ i = nditer(a3d, order='A')
+ assert_equal(i.ndim, 1)
+ i = nditer(a3d.T, order='A')
+ assert_equal(i.ndim, 1)
+
+def test_iter_broadcasting():
+ # Standard NumPy broadcasting rules
+
+ # 1D with scalar
+ i = nditer([arange(6), np.int32(2)], ['multi_index'], [['readonly']] * 2)
+ assert_equal(i.itersize, 6)
+ assert_equal(i.shape, (6,))
+
+ # 2D with scalar
+ i = nditer([arange(6).reshape(2, 3), np.int32(2)],
+ ['multi_index'], [['readonly']] * 2)
+ assert_equal(i.itersize, 6)
+ assert_equal(i.shape, (2, 3))
+ # 2D with 1D
+ i = nditer([arange(6).reshape(2, 3), arange(3)],
+ ['multi_index'], [['readonly']] * 2)
+ assert_equal(i.itersize, 6)
+ assert_equal(i.shape, (2, 3))
+ i = nditer([arange(2).reshape(2, 1), arange(3)],
+ ['multi_index'], [['readonly']] * 2)
+ assert_equal(i.itersize, 6)
+ assert_equal(i.shape, (2, 3))
+ # 2D with 2D
+ i = nditer([arange(2).reshape(2, 1), arange(3).reshape(1, 3)],
+ ['multi_index'], [['readonly']] * 2)
+ assert_equal(i.itersize, 6)
+ assert_equal(i.shape, (2, 3))
+
+ # 3D with scalar
+ i = nditer([np.int32(2), arange(24).reshape(4, 2, 3)],
+ ['multi_index'], [['readonly']] * 2)
+ assert_equal(i.itersize, 24)
+ assert_equal(i.shape, (4, 2, 3))
+ # 3D with 1D
+ i = nditer([arange(3), arange(24).reshape(4, 2, 3)],
+ ['multi_index'], [['readonly']] * 2)
+ assert_equal(i.itersize, 24)
+ assert_equal(i.shape, (4, 2, 3))
+ i = nditer([arange(3), arange(8).reshape(4, 2, 1)],
+ ['multi_index'], [['readonly']] * 2)
+ assert_equal(i.itersize, 24)
+ assert_equal(i.shape, (4, 2, 3))
+ # 3D with 2D
+ i = nditer([arange(6).reshape(2, 3), arange(24).reshape(4, 2, 3)],
+ ['multi_index'], [['readonly']] * 2)
+ assert_equal(i.itersize, 24)
+ assert_equal(i.shape, (4, 2, 3))
+ i = nditer([arange(2).reshape(2, 1), arange(24).reshape(4, 2, 3)],
+ ['multi_index'], [['readonly']] * 2)
+ assert_equal(i.itersize, 24)
+ assert_equal(i.shape, (4, 2, 3))
+ i = nditer([arange(3).reshape(1, 3), arange(8).reshape(4, 2, 1)],
+ ['multi_index'], [['readonly']] * 2)
+ assert_equal(i.itersize, 24)
+ assert_equal(i.shape, (4, 2, 3))
+ # 3D with 3D
+ i = nditer([arange(2).reshape(1, 2, 1), arange(3).reshape(1, 1, 3),
+ arange(4).reshape(4, 1, 1)],
+ ['multi_index'], [['readonly']] * 3)
+ assert_equal(i.itersize, 24)
+ assert_equal(i.shape, (4, 2, 3))
+ i = nditer([arange(6).reshape(1, 2, 3), arange(4).reshape(4, 1, 1)],
+ ['multi_index'], [['readonly']] * 2)
+ assert_equal(i.itersize, 24)
+ assert_equal(i.shape, (4, 2, 3))
+ i = nditer([arange(24).reshape(4, 2, 3), arange(12).reshape(4, 1, 3)],
+ ['multi_index'], [['readonly']] * 2)
+ assert_equal(i.itersize, 24)
+ assert_equal(i.shape, (4, 2, 3))
+
+def test_iter_itershape():
+ # Check that allocated outputs work with a specified shape
+ a = np.arange(6, dtype='i2').reshape(2, 3)
+ i = nditer([a, None], [], [['readonly'], ['writeonly', 'allocate']],
+ op_axes=[[0, 1, None], None],
+ itershape=(-1, -1, 4))
+ assert_equal(i.operands[1].shape, (2, 3, 4))
+ assert_equal(i.operands[1].strides, (24, 8, 2))
+
+ i = nditer([a.T, None], [], [['readonly'], ['writeonly', 'allocate']],
+ op_axes=[[0, 1, None], None],
+ itershape=(-1, -1, 4))
+ assert_equal(i.operands[1].shape, (3, 2, 4))
+ assert_equal(i.operands[1].strides, (8, 24, 2))
+
+ i = nditer([a.T, None], [], [['readonly'], ['writeonly', 'allocate']],
+ order='F',
+ op_axes=[[0, 1, None], None],
+ itershape=(-1, -1, 4))
+ assert_equal(i.operands[1].shape, (3, 2, 4))
+ assert_equal(i.operands[1].strides, (2, 6, 12))
+
+ # If we specify 1 in the itershape, it shouldn't allow broadcasting
+ # of that dimension to a bigger value
+ assert_raises(ValueError, nditer, [a, None], [],
+ [['readonly'], ['writeonly', 'allocate']],
+ op_axes=[[0, 1, None], None],
+ itershape=(-1, 1, 4))
+ # Test bug that for no op_axes but itershape, they are NULLed correctly
+ i = np.nditer([np.ones(2), None, None], itershape=(2,))
+
+def test_iter_broadcasting_errors():
+ # Check that errors are thrown for bad broadcasting shapes
+
+ # 1D with 1D
+ assert_raises(ValueError, nditer, [arange(2), arange(3)],
+ [], [['readonly']] * 2)
+ # 2D with 1D
+ assert_raises(ValueError, nditer,
+ [arange(6).reshape(2, 3), arange(2)],
+ [], [['readonly']] * 2)
+ # 2D with 2D
+ assert_raises(ValueError, nditer,
+ [arange(6).reshape(2, 3), arange(9).reshape(3, 3)],
+ [], [['readonly']] * 2)
+ assert_raises(ValueError, nditer,
+ [arange(6).reshape(2, 3), arange(4).reshape(2, 2)],
+ [], [['readonly']] * 2)
+ # 3D with 3D
+ assert_raises(ValueError, nditer,
+ [arange(36).reshape(3, 3, 4), arange(24).reshape(2, 3, 4)],
+ [], [['readonly']] * 2)
+ assert_raises(ValueError, nditer,
+ [arange(8).reshape(2, 4, 1), arange(24).reshape(2, 3, 4)],
+ [], [['readonly']] * 2)
+
+ # Verify that the error message mentions the right shapes
+ try:
+ nditer([arange(2).reshape(1, 2, 1),
+ arange(3).reshape(1, 3),
+ arange(6).reshape(2, 3)],
+ [],
+ [['readonly'], ['readonly'], ['writeonly', 'no_broadcast']])
+ raise AssertionError('Should have raised a broadcast error')
+ except ValueError as e:
+ msg = str(e)
+ # The message should contain the shape of the 3rd operand
+ assert_(msg.find('(2,3)') >= 0,
+ f'Message "{msg}" doesn\'t contain operand shape (2,3)')
+ # The message should contain the broadcast shape
+ assert_(msg.find('(1,2,3)') >= 0,
+ f'Message "{msg}" doesn\'t contain broadcast shape (1,2,3)')
+
+ try:
+ nditer([arange(6).reshape(2, 3), arange(2)],
+ [],
+ [['readonly'], ['readonly']],
+ op_axes=[[0, 1], [0, np.newaxis]],
+ itershape=(4, 3))
+ raise AssertionError('Should have raised a broadcast error')
+ except ValueError as e:
+ msg = str(e)
+ # The message should contain "shape->remappedshape" for each operand
+ assert_(msg.find('(2,3)->(2,3)') >= 0,
+ f'Message "{msg}" doesn\'t contain operand shape (2,3)->(2,3)')
+ assert_(msg.find('(2,)->(2,newaxis)') >= 0,
+ ('Message "%s" doesn\'t contain remapped operand shape'
+ '(2,)->(2,newaxis)') % msg)
+ # The message should contain the itershape parameter
+ assert_(msg.find('(4,3)') >= 0,
+ f'Message "{msg}" doesn\'t contain itershape parameter (4,3)')
+
+ try:
+ nditer([np.zeros((2, 1, 1)), np.zeros((2,))],
+ [],
+ [['writeonly', 'no_broadcast'], ['readonly']])
+ raise AssertionError('Should have raised a broadcast error')
+ except ValueError as e:
+ msg = str(e)
+ # The message should contain the shape of the bad operand
+ assert_(msg.find('(2,1,1)') >= 0,
+ f'Message "{msg}" doesn\'t contain operand shape (2,1,1)')
+ # The message should contain the broadcast shape
+ assert_(msg.find('(2,1,2)') >= 0,
+ f'Message "{msg}" doesn\'t contain the broadcast shape (2,1,2)')
+
+def test_iter_flags_errors():
+ # Check that bad combinations of flags produce errors
+
+ a = arange(6)
+
+ # Not enough operands
+ assert_raises(ValueError, nditer, [], [], [])
+ # Bad global flag
+ assert_raises(ValueError, nditer, [a], ['bad flag'], [['readonly']])
+ # Bad op flag
+ assert_raises(ValueError, nditer, [a], [], [['readonly', 'bad flag']])
+ # Bad order parameter
+ assert_raises(ValueError, nditer, [a], [], [['readonly']], order='G')
+ # Bad casting parameter
+ assert_raises(ValueError, nditer, [a], [], [['readonly']], casting='noon')
+ # op_flags must match ops
+ assert_raises(ValueError, nditer, [a] * 3, [], [['readonly']] * 2)
+ # Cannot track both a C and an F index
+ assert_raises(ValueError, nditer, a,
+ ['c_index', 'f_index'], [['readonly']])
+ # Inner iteration and multi-indices/indices are incompatible
+ assert_raises(ValueError, nditer, a,
+ ['external_loop', 'multi_index'], [['readonly']])
+ assert_raises(ValueError, nditer, a,
+ ['external_loop', 'c_index'], [['readonly']])
+ assert_raises(ValueError, nditer, a,
+ ['external_loop', 'f_index'], [['readonly']])
+ # Must specify exactly one of readwrite/readonly/writeonly per operand
+ assert_raises(ValueError, nditer, a, [], [[]])
+ assert_raises(ValueError, nditer, a, [], [['readonly', 'writeonly']])
+ assert_raises(ValueError, nditer, a, [], [['readonly', 'readwrite']])
+ assert_raises(ValueError, nditer, a, [], [['writeonly', 'readwrite']])
+ assert_raises(ValueError, nditer, a,
+ [], [['readonly', 'writeonly', 'readwrite']])
+ # Python scalars are always readonly
+ assert_raises(TypeError, nditer, 1.5, [], [['writeonly']])
+ assert_raises(TypeError, nditer, 1.5, [], [['readwrite']])
+ # Array scalars are always readonly
+ assert_raises(TypeError, nditer, np.int32(1), [], [['writeonly']])
+ assert_raises(TypeError, nditer, np.int32(1), [], [['readwrite']])
+ # Check readonly array
+ a.flags.writeable = False
+ assert_raises(ValueError, nditer, a, [], [['writeonly']])
+ assert_raises(ValueError, nditer, a, [], [['readwrite']])
+ a.flags.writeable = True
+ # Multi-indices available only with the multi_index flag
+ i = nditer(arange(6), [], [['readonly']])
+ assert_raises(ValueError, lambda i: i.multi_index, i)
+ # Index available only with an index flag
+ assert_raises(ValueError, lambda i: i.index, i)
+ # GotoCoords and GotoIndex incompatible with buffering or no_inner
+
+ def assign_multi_index(i):
+ i.multi_index = (0,)
+
+ def assign_index(i):
+ i.index = 0
+
+ def assign_iterindex(i):
+ i.iterindex = 0
+
+ def assign_iterrange(i):
+ i.iterrange = (0, 1)
+ i = nditer(arange(6), ['external_loop'])
+ assert_raises(ValueError, assign_multi_index, i)
+ assert_raises(ValueError, assign_index, i)
+ assert_raises(ValueError, assign_iterindex, i)
+ assert_raises(ValueError, assign_iterrange, i)
+ i = nditer(arange(6), ['buffered'])
+ assert_raises(ValueError, assign_multi_index, i)
+ assert_raises(ValueError, assign_index, i)
+ assert_raises(ValueError, assign_iterrange, i)
+ # Can't iterate if size is zero
+ assert_raises(ValueError, nditer, np.array([]))
+
+def test_iter_slice():
+ a, b, c = np.arange(3), np.arange(3), np.arange(3.)
+ i = nditer([a, b, c], [], ['readwrite'])
+ with i:
+ i[0:2] = (3, 3)
+ assert_equal(a, [3, 1, 2])
+ assert_equal(b, [3, 1, 2])
+ assert_equal(c, [0, 1, 2])
+ i[1] = 12
+ assert_equal(i[0:2], [3, 12])
+
+def test_iter_assign_mapping():
+ a = np.arange(24, dtype='f8').reshape(2, 3, 4).T
+ it = np.nditer(a, [], [['readwrite', 'updateifcopy']],
+ casting='same_kind', op_dtypes=[np.dtype('f4')])
+ with it:
+ it.operands[0][...] = 3
+ it.operands[0][...] = 14
+ assert_equal(a, 14)
+ it = np.nditer(a, [], [['readwrite', 'updateifcopy']],
+ casting='same_kind', op_dtypes=[np.dtype('f4')])
+ with it:
+ x = it.operands[0][-1:1]
+ x[...] = 14
+ it.operands[0][...] = -1234
+ assert_equal(a, -1234)
+ # check for no warnings on dealloc
+ x = None
+ it = None
+
+def test_iter_nbo_align_contig():
+ # Check that byte order, alignment, and contig changes work
+
+ # Byte order change by requesting a specific dtype
+ a = np.arange(6, dtype='f4')
+ au = a.byteswap()
+ au = au.view(au.dtype.newbyteorder())
+ assert_(a.dtype.byteorder != au.dtype.byteorder)
+ i = nditer(au, [], [['readwrite', 'updateifcopy']],
+ casting='equiv',
+ op_dtypes=[np.dtype('f4')])
+ with i:
+ # context manager triggers WRITEBACKIFCOPY on i at exit
+ assert_equal(i.dtypes[0].byteorder, a.dtype.byteorder)
+ assert_equal(i.operands[0].dtype.byteorder, a.dtype.byteorder)
+ assert_equal(i.operands[0], a)
+ i.operands[0][:] = 2
+ assert_equal(au, [2] * 6)
+ del i # should not raise a warning
+ # Byte order change by requesting NBO
+ a = np.arange(6, dtype='f4')
+ au = a.byteswap()
+ au = au.view(au.dtype.newbyteorder())
+ assert_(a.dtype.byteorder != au.dtype.byteorder)
+ with nditer(au, [], [['readwrite', 'updateifcopy', 'nbo']],
+ casting='equiv') as i:
+ # context manager triggers UPDATEIFCOPY on i at exit
+ assert_equal(i.dtypes[0].byteorder, a.dtype.byteorder)
+ assert_equal(i.operands[0].dtype.byteorder, a.dtype.byteorder)
+ assert_equal(i.operands[0], a)
+ i.operands[0][:] = 12345
+ i.operands[0][:] = 2
+ assert_equal(au, [2] * 6)
+
+ # Unaligned input
+ a = np.zeros((6 * 4 + 1,), dtype='i1')[1:]
+ a = a.view('f4')
+ a[:] = np.arange(6, dtype='f4')
+ assert_(not a.flags.aligned)
+ # Without 'aligned', shouldn't copy
+ i = nditer(a, [], [['readonly']])
+ assert_(not i.operands[0].flags.aligned)
+ assert_equal(i.operands[0], a)
+ # With 'aligned', should make a copy
+ with nditer(a, [], [['readwrite', 'updateifcopy', 'aligned']]) as i:
+ assert_(i.operands[0].flags.aligned)
+ # context manager triggers UPDATEIFCOPY on i at exit
+ assert_equal(i.operands[0], a)
+ i.operands[0][:] = 3
+ assert_equal(a, [3] * 6)
+
+ # Discontiguous input
+ a = arange(12)
+ # If it is contiguous, shouldn't copy
+ i = nditer(a[:6], [], [['readonly']])
+ assert_(i.operands[0].flags.contiguous)
+ assert_equal(i.operands[0], a[:6])
+ # If it isn't contiguous, should buffer
+ i = nditer(a[::2], ['buffered', 'external_loop'],
+ [['readonly', 'contig']],
+ buffersize=10)
+ assert_(i[0].flags.contiguous)
+ assert_equal(i[0], a[::2])
+
+def test_iter_array_cast():
+ # Check that arrays are cast as requested
+
+ # No cast 'f4' -> 'f4'
+ a = np.arange(6, dtype='f4').reshape(2, 3)
+ i = nditer(a, [], [['readwrite']], op_dtypes=[np.dtype('f4')])
+ with i:
+ assert_equal(i.operands[0], a)
+ assert_equal(i.operands[0].dtype, np.dtype('f4'))
+
+ # Byte-order cast ' '>f4'
+ a = np.arange(6, dtype='f4')]) as i:
+ assert_equal(i.operands[0], a)
+ assert_equal(i.operands[0].dtype, np.dtype('>f4'))
+
+ # Safe case 'f4' -> 'f8'
+ a = np.arange(24, dtype='f4').reshape(2, 3, 4).swapaxes(1, 2)
+ i = nditer(a, [], [['readonly', 'copy']],
+ casting='safe',
+ op_dtypes=[np.dtype('f8')])
+ assert_equal(i.operands[0], a)
+ assert_equal(i.operands[0].dtype, np.dtype('f8'))
+ # The memory layout of the temporary should match a (a is (48,4,16))
+ # except negative strides get flipped to positive strides.
+ assert_equal(i.operands[0].strides, (96, 8, 32))
+ a = a[::-1, :, ::-1]
+ i = nditer(a, [], [['readonly', 'copy']],
+ casting='safe',
+ op_dtypes=[np.dtype('f8')])
+ assert_equal(i.operands[0], a)
+ assert_equal(i.operands[0].dtype, np.dtype('f8'))
+ assert_equal(i.operands[0].strides, (96, 8, 32))
+
+ # Same-kind cast 'f8' -> 'f4' -> 'f8'
+ a = np.arange(24, dtype='f8').reshape(2, 3, 4).T
+ with nditer(a, [],
+ [['readwrite', 'updateifcopy']],
+ casting='same_kind',
+ op_dtypes=[np.dtype('f4')]) as i:
+ assert_equal(i.operands[0], a)
+ assert_equal(i.operands[0].dtype, np.dtype('f4'))
+ assert_equal(i.operands[0].strides, (4, 16, 48))
+ # Check that WRITEBACKIFCOPY is activated at exit
+ i.operands[0][2, 1, 1] = -12.5
+ assert_(a[2, 1, 1] != -12.5)
+ assert_equal(a[2, 1, 1], -12.5)
+
+ a = np.arange(6, dtype='i4')[::-2]
+ with nditer(a, [],
+ [['writeonly', 'updateifcopy']],
+ casting='unsafe',
+ op_dtypes=[np.dtype('f4')]) as i:
+ assert_equal(i.operands[0].dtype, np.dtype('f4'))
+ # Even though the stride was negative in 'a', it
+ # becomes positive in the temporary
+ assert_equal(i.operands[0].strides, (4,))
+ i.operands[0][:] = [1, 2, 3]
+ assert_equal(a, [1, 2, 3])
+
+def test_iter_array_cast_errors():
+ # Check that invalid casts are caught
+
+ # Need to enable copying for casts to occur
+ assert_raises(TypeError, nditer, arange(2, dtype='f4'), [],
+ [['readonly']], op_dtypes=[np.dtype('f8')])
+ # Also need to allow casting for casts to occur
+ assert_raises(TypeError, nditer, arange(2, dtype='f4'), [],
+ [['readonly', 'copy']], casting='no',
+ op_dtypes=[np.dtype('f8')])
+ assert_raises(TypeError, nditer, arange(2, dtype='f4'), [],
+ [['readonly', 'copy']], casting='equiv',
+ op_dtypes=[np.dtype('f8')])
+ assert_raises(TypeError, nditer, arange(2, dtype='f8'), [],
+ [['writeonly', 'updateifcopy']],
+ casting='no',
+ op_dtypes=[np.dtype('f4')])
+ assert_raises(TypeError, nditer, arange(2, dtype='f8'), [],
+ [['writeonly', 'updateifcopy']],
+ casting='equiv',
+ op_dtypes=[np.dtype('f4')])
+ # ' '>f4' should not work with casting='no'
+ assert_raises(TypeError, nditer, arange(2, dtype='f4')])
+ # 'f4' -> 'f8' is a safe cast, but 'f8' -> 'f4' isn't
+ assert_raises(TypeError, nditer, arange(2, dtype='f4'), [],
+ [['readwrite', 'updateifcopy']],
+ casting='safe',
+ op_dtypes=[np.dtype('f8')])
+ assert_raises(TypeError, nditer, arange(2, dtype='f8'), [],
+ [['readwrite', 'updateifcopy']],
+ casting='safe',
+ op_dtypes=[np.dtype('f4')])
+ # 'f4' -> 'i4' is neither a safe nor a same-kind cast
+ assert_raises(TypeError, nditer, arange(2, dtype='f4'), [],
+ [['readonly', 'copy']],
+ casting='same_kind',
+ op_dtypes=[np.dtype('i4')])
+ assert_raises(TypeError, nditer, arange(2, dtype='i4'), [],
+ [['writeonly', 'updateifcopy']],
+ casting='same_kind',
+ op_dtypes=[np.dtype('f4')])
+
+def test_iter_scalar_cast():
+ # Check that scalars are cast as requested
+
+ # No cast 'f4' -> 'f4'
+ i = nditer(np.float32(2.5), [], [['readonly']],
+ op_dtypes=[np.dtype('f4')])
+ assert_equal(i.dtypes[0], np.dtype('f4'))
+ assert_equal(i.value.dtype, np.dtype('f4'))
+ assert_equal(i.value, 2.5)
+ # Safe cast 'f4' -> 'f8'
+ i = nditer(np.float32(2.5), [],
+ [['readonly', 'copy']],
+ casting='safe',
+ op_dtypes=[np.dtype('f8')])
+ assert_equal(i.dtypes[0], np.dtype('f8'))
+ assert_equal(i.value.dtype, np.dtype('f8'))
+ assert_equal(i.value, 2.5)
+ # Same-kind cast 'f8' -> 'f4'
+ i = nditer(np.float64(2.5), [],
+ [['readonly', 'copy']],
+ casting='same_kind',
+ op_dtypes=[np.dtype('f4')])
+ assert_equal(i.dtypes[0], np.dtype('f4'))
+ assert_equal(i.value.dtype, np.dtype('f4'))
+ assert_equal(i.value, 2.5)
+ # Unsafe cast 'f8' -> 'i4'
+ i = nditer(np.float64(3.0), [],
+ [['readonly', 'copy']],
+ casting='unsafe',
+ op_dtypes=[np.dtype('i4')])
+ assert_equal(i.dtypes[0], np.dtype('i4'))
+ assert_equal(i.value.dtype, np.dtype('i4'))
+ assert_equal(i.value, 3)
+ # Readonly scalars may be cast even without setting COPY or BUFFERED
+ i = nditer(3, [], [['readonly']], op_dtypes=[np.dtype('f8')])
+ assert_equal(i[0].dtype, np.dtype('f8'))
+ assert_equal(i[0], 3.)
+
+def test_iter_scalar_cast_errors():
+ # Check that invalid casts are caught
+
+ # Need to allow copying/buffering for write casts of scalars to occur
+ assert_raises(TypeError, nditer, np.float32(2), [],
+ [['readwrite']], op_dtypes=[np.dtype('f8')])
+ assert_raises(TypeError, nditer, 2.5, [],
+ [['readwrite']], op_dtypes=[np.dtype('f4')])
+ # 'f8' -> 'f4' isn't a safe cast if the value would overflow
+ assert_raises(TypeError, nditer, np.float64(1e60), [],
+ [['readonly']],
+ casting='safe',
+ op_dtypes=[np.dtype('f4')])
+ # 'f4' -> 'i4' is neither a safe nor a same-kind cast
+ assert_raises(TypeError, nditer, np.float32(2), [],
+ [['readonly']],
+ casting='same_kind',
+ op_dtypes=[np.dtype('i4')])
+
+def test_iter_object_arrays_basic():
+ # Check that object arrays work
+
+ obj = {'a': 3, 'b': 'd'}
+ a = np.array([[1, 2, 3], None, obj, None], dtype='O')
+ if HAS_REFCOUNT:
+ rc = sys.getrefcount(obj)
+
+ # Need to allow references for object arrays
+ assert_raises(TypeError, nditer, a)
+ if HAS_REFCOUNT:
+ assert_equal(sys.getrefcount(obj), rc)
+
+ i = nditer(a, ['refs_ok'], ['readonly'])
+ vals = [x_[()] for x_ in i]
+ assert_equal(np.array(vals, dtype='O'), a)
+ vals, i, x = [None] * 3
+ if HAS_REFCOUNT:
+ assert_equal(sys.getrefcount(obj), rc)
+
+ i = nditer(a.reshape(2, 2).T, ['refs_ok', 'buffered'],
+ ['readonly'], order='C')
+ assert_(i.iterationneedsapi)
+ vals = [x_[()] for x_ in i]
+ assert_equal(np.array(vals, dtype='O'), a.reshape(2, 2).ravel(order='F'))
+ vals, i, x = [None] * 3
+ if HAS_REFCOUNT:
+ assert_equal(sys.getrefcount(obj), rc)
+
+ i = nditer(a.reshape(2, 2).T, ['refs_ok', 'buffered'],
+ ['readwrite'], order='C')
+ with i:
+ for x in i:
+ x[...] = None
+ vals, i, x = [None] * 3
+ if HAS_REFCOUNT:
+ assert_(sys.getrefcount(obj) == rc - 1)
+ assert_equal(a, np.array([None] * 4, dtype='O'))
+
+def test_iter_object_arrays_conversions():
+ # Conversions to/from objects
+ a = np.arange(6, dtype='O')
+ i = nditer(a, ['refs_ok', 'buffered'], ['readwrite'],
+ casting='unsafe', op_dtypes='i4')
+ with i:
+ for x in i:
+ x[...] += 1
+ assert_equal(a, np.arange(6) + 1)
+
+ a = np.arange(6, dtype='i4')
+ i = nditer(a, ['refs_ok', 'buffered'], ['readwrite'],
+ casting='unsafe', op_dtypes='O')
+ with i:
+ for x in i:
+ x[...] += 1
+ assert_equal(a, np.arange(6) + 1)
+
+ # Non-contiguous object array
+ a = np.zeros((6,), dtype=[('p', 'i1'), ('a', 'O')])
+ a = a['a']
+ a[:] = np.arange(6)
+ i = nditer(a, ['refs_ok', 'buffered'], ['readwrite'],
+ casting='unsafe', op_dtypes='i4')
+ with i:
+ for x in i:
+ x[...] += 1
+ assert_equal(a, np.arange(6) + 1)
+
+ # Non-contiguous value array
+ a = np.zeros((6,), dtype=[('p', 'i1'), ('a', 'i4')])
+ a = a['a']
+ a[:] = np.arange(6) + 98172488
+ i = nditer(a, ['refs_ok', 'buffered'], ['readwrite'],
+ casting='unsafe', op_dtypes='O')
+ with i:
+ ob = i[0][()]
+ if HAS_REFCOUNT:
+ rc = sys.getrefcount(ob)
+ for x in i:
+ x[...] += 1
+ if HAS_REFCOUNT:
+ newrc = sys.getrefcount(ob)
+ assert_(newrc == rc - 1)
+ assert_equal(a, np.arange(6) + 98172489)
+
+def test_iter_common_dtype():
+ # Check that the iterator finds a common data type correctly
+ # (some checks are somewhat duplicate after adopting NEP 50)
+
+ i = nditer([array([3], dtype='f4'), array([0], dtype='f8')],
+ ['common_dtype'],
+ [['readonly', 'copy']] * 2,
+ casting='safe')
+ assert_equal(i.dtypes[0], np.dtype('f8'))
+ assert_equal(i.dtypes[1], np.dtype('f8'))
+ i = nditer([array([3], dtype='i4'), array([0], dtype='f4')],
+ ['common_dtype'],
+ [['readonly', 'copy']] * 2,
+ casting='safe')
+ assert_equal(i.dtypes[0], np.dtype('f8'))
+ assert_equal(i.dtypes[1], np.dtype('f8'))
+ i = nditer([array([3], dtype='f4'), array(0, dtype='f8')],
+ ['common_dtype'],
+ [['readonly', 'copy']] * 2,
+ casting='same_kind')
+ assert_equal(i.dtypes[0], np.dtype('f8'))
+ assert_equal(i.dtypes[1], np.dtype('f8'))
+ i = nditer([array([3], dtype='u4'), array(0, dtype='i4')],
+ ['common_dtype'],
+ [['readonly', 'copy']] * 2,
+ casting='safe')
+ assert_equal(i.dtypes[0], np.dtype('i8'))
+ assert_equal(i.dtypes[1], np.dtype('i8'))
+ i = nditer([array([3], dtype='u4'), array(-12, dtype='i4')],
+ ['common_dtype'],
+ [['readonly', 'copy']] * 2,
+ casting='safe')
+ assert_equal(i.dtypes[0], np.dtype('i8'))
+ assert_equal(i.dtypes[1], np.dtype('i8'))
+ i = nditer([array([3], dtype='u4'), array(-12, dtype='i4'),
+ array([2j], dtype='c8'), array([9], dtype='f8')],
+ ['common_dtype'],
+ [['readonly', 'copy']] * 4,
+ casting='safe')
+ assert_equal(i.dtypes[0], np.dtype('c16'))
+ assert_equal(i.dtypes[1], np.dtype('c16'))
+ assert_equal(i.dtypes[2], np.dtype('c16'))
+ assert_equal(i.dtypes[3], np.dtype('c16'))
+ assert_equal(i.value, (3, -12, 2j, 9))
+
+ # When allocating outputs, other outputs aren't factored in
+ i = nditer([array([3], dtype='i4'), None, array([2j], dtype='c16')], [],
+ [['readonly', 'copy'],
+ ['writeonly', 'allocate'],
+ ['writeonly']],
+ casting='safe')
+ assert_equal(i.dtypes[0], np.dtype('i4'))
+ assert_equal(i.dtypes[1], np.dtype('i4'))
+ assert_equal(i.dtypes[2], np.dtype('c16'))
+ # But, if common data types are requested, they are
+ i = nditer([array([3], dtype='i4'), None, array([2j], dtype='c16')],
+ ['common_dtype'],
+ [['readonly', 'copy'],
+ ['writeonly', 'allocate'],
+ ['writeonly']],
+ casting='safe')
+ assert_equal(i.dtypes[0], np.dtype('c16'))
+ assert_equal(i.dtypes[1], np.dtype('c16'))
+ assert_equal(i.dtypes[2], np.dtype('c16'))
+
+def test_iter_copy_if_overlap():
+ # Ensure the iterator makes copies on read/write overlap, if requested
+
+ # Copy not needed, 1 op
+ for flag in ['readonly', 'writeonly', 'readwrite']:
+ a = arange(10)
+ i = nditer([a], ['copy_if_overlap'], [[flag]])
+ with i:
+ assert_(i.operands[0] is a)
+
+ # Copy needed, 2 ops, read-write overlap
+ x = arange(10)
+ a = x[1:]
+ b = x[:-1]
+ with nditer([a, b], ['copy_if_overlap'], [['readonly'], ['readwrite']]) as i:
+ assert_(not np.shares_memory(*i.operands))
+
+ # Copy not needed with elementwise, 2 ops, exactly same arrays
+ x = arange(10)
+ a = x
+ b = x
+ i = nditer([a, b], ['copy_if_overlap'], [['readonly', 'overlap_assume_elementwise'],
+ ['readwrite', 'overlap_assume_elementwise']])
+ with i:
+ assert_(i.operands[0] is a and i.operands[1] is b)
+ with nditer([a, b], ['copy_if_overlap'], [['readonly'], ['readwrite']]) as i:
+ assert_(i.operands[0] is a and not np.shares_memory(i.operands[1], b))
+
+ # Copy not needed, 2 ops, no overlap
+ x = arange(10)
+ a = x[::2]
+ b = x[1::2]
+ i = nditer([a, b], ['copy_if_overlap'], [['readonly'], ['writeonly']])
+ assert_(i.operands[0] is a and i.operands[1] is b)
+
+ # Copy needed, 2 ops, read-write overlap
+ x = arange(4, dtype=np.int8)
+ a = x[3:]
+ b = x.view(np.int32)[:1]
+ with nditer([a, b], ['copy_if_overlap'], [['readonly'], ['writeonly']]) as i:
+ assert_(not np.shares_memory(*i.operands))
+
+ # Copy needed, 3 ops, read-write overlap
+ for flag in ['writeonly', 'readwrite']:
+ x = np.ones([10, 10])
+ a = x
+ b = x.T
+ c = x
+ with nditer([a, b, c], ['copy_if_overlap'],
+ [['readonly'], ['readonly'], [flag]]) as i:
+ a2, b2, c2 = i.operands
+ assert_(not np.shares_memory(a2, c2))
+ assert_(not np.shares_memory(b2, c2))
+
+ # Copy not needed, 3 ops, read-only overlap
+ x = np.ones([10, 10])
+ a = x
+ b = x.T
+ c = x
+ i = nditer([a, b, c], ['copy_if_overlap'],
+ [['readonly'], ['readonly'], ['readonly']])
+ a2, b2, c2 = i.operands
+ assert_(a is a2)
+ assert_(b is b2)
+ assert_(c is c2)
+
+ # Copy not needed, 3 ops, read-only overlap
+ x = np.ones([10, 10])
+ a = x
+ b = np.ones([10, 10])
+ c = x.T
+ i = nditer([a, b, c], ['copy_if_overlap'],
+ [['readonly'], ['writeonly'], ['readonly']])
+ a2, b2, c2 = i.operands
+ assert_(a is a2)
+ assert_(b is b2)
+ assert_(c is c2)
+
+ # Copy not needed, 3 ops, write-only overlap
+ x = np.arange(7)
+ a = x[:3]
+ b = x[3:6]
+ c = x[4:7]
+ i = nditer([a, b, c], ['copy_if_overlap'],
+ [['readonly'], ['writeonly'], ['writeonly']])
+ a2, b2, c2 = i.operands
+ assert_(a is a2)
+ assert_(b is b2)
+ assert_(c is c2)
+
+def test_iter_op_axes():
+ # Check that custom axes work
+
+ # Reverse the axes
+ a = arange(6).reshape(2, 3)
+ i = nditer([a, a.T], [], [['readonly']] * 2, op_axes=[[0, 1], [1, 0]])
+ assert_(all([x == y for (x, y) in i]))
+ a = arange(24).reshape(2, 3, 4)
+ i = nditer([a.T, a], [], [['readonly']] * 2, op_axes=[[2, 1, 0], None])
+ assert_(all([x == y for (x, y) in i]))
+
+ # Broadcast 1D to any dimension
+ a = arange(1, 31).reshape(2, 3, 5)
+ b = arange(1, 3)
+ i = nditer([a, b], [], [['readonly']] * 2, op_axes=[None, [0, -1, -1]])
+ assert_equal([x * y for (x, y) in i], (a * b.reshape(2, 1, 1)).ravel())
+ b = arange(1, 4)
+ i = nditer([a, b], [], [['readonly']] * 2, op_axes=[None, [-1, 0, -1]])
+ assert_equal([x * y for (x, y) in i], (a * b.reshape(1, 3, 1)).ravel())
+ b = arange(1, 6)
+ i = nditer([a, b], [], [['readonly']] * 2,
+ op_axes=[None, [np.newaxis, np.newaxis, 0]])
+ assert_equal([x * y for (x, y) in i], (a * b.reshape(1, 1, 5)).ravel())
+
+ # Inner product-style broadcasting
+ a = arange(24).reshape(2, 3, 4)
+ b = arange(40).reshape(5, 2, 4)
+ i = nditer([a, b], ['multi_index'], [['readonly']] * 2,
+ op_axes=[[0, 1, -1, -1], [-1, -1, 0, 1]])
+ assert_equal(i.shape, (2, 3, 5, 2))
+
+ # Matrix product-style broadcasting
+ a = arange(12).reshape(3, 4)
+ b = arange(20).reshape(4, 5)
+ i = nditer([a, b], ['multi_index'], [['readonly']] * 2,
+ op_axes=[[0, -1], [-1, 1]])
+ assert_equal(i.shape, (3, 5))
+
+def test_iter_op_axes_errors():
+ # Check that custom axes throws errors for bad inputs
+
+ # Wrong number of items in op_axes
+ a = arange(6).reshape(2, 3)
+ assert_raises(ValueError, nditer, [a, a], [], [['readonly']] * 2,
+ op_axes=[[0], [1], [0]])
+ # Out of bounds items in op_axes
+ assert_raises(ValueError, nditer, [a, a], [], [['readonly']] * 2,
+ op_axes=[[2, 1], [0, 1]])
+ assert_raises(ValueError, nditer, [a, a], [], [['readonly']] * 2,
+ op_axes=[[0, 1], [2, -1]])
+ # Duplicate items in op_axes
+ assert_raises(ValueError, nditer, [a, a], [], [['readonly']] * 2,
+ op_axes=[[0, 0], [0, 1]])
+ assert_raises(ValueError, nditer, [a, a], [], [['readonly']] * 2,
+ op_axes=[[0, 1], [1, 1]])
+
+ # Different sized arrays in op_axes
+ assert_raises(ValueError, nditer, [a, a], [], [['readonly']] * 2,
+ op_axes=[[0, 1], [0, 1, 0]])
+
+ # Non-broadcastable dimensions in the result
+ assert_raises(ValueError, nditer, [a, a], [], [['readonly']] * 2,
+ op_axes=[[0, 1], [1, 0]])
+
+def test_iter_copy():
+ # Check that copying the iterator works correctly
+ a = arange(24).reshape(2, 3, 4)
+
+ # Simple iterator
+ i = nditer(a)
+ j = i.copy()
+ assert_equal([x[()] for x in i], [x[()] for x in j])
+
+ i.iterindex = 3
+ j = i.copy()
+ assert_equal([x[()] for x in i], [x[()] for x in j])
+
+ # Buffered iterator
+ i = nditer(a, ['buffered', 'ranged'], order='F', buffersize=3)
+ j = i.copy()
+ assert_equal([x[()] for x in i], [x[()] for x in j])
+
+ i.iterindex = 3
+ j = i.copy()
+ assert_equal([x[()] for x in i], [x[()] for x in j])
+
+ i.iterrange = (3, 9)
+ j = i.copy()
+ assert_equal([x[()] for x in i], [x[()] for x in j])
+
+ i.iterrange = (2, 18)
+ next(i)
+ next(i)
+ j = i.copy()
+ assert_equal([x[()] for x in i], [x[()] for x in j])
+
+ # Casting iterator
+ with nditer(a, ['buffered'], order='F', casting='unsafe',
+ op_dtypes='f8', buffersize=5) as i:
+ j = i.copy()
+ assert_equal([x[()] for x in j], a.ravel(order='F'))
+
+ a = arange(24, dtype=' unstructured (any to object), and many other
+ # casts, which cause this to require all steps in the casting machinery
+ # one level down as well as the iterator copy (which uses NpyAuxData clone)
+ in_dtype = np.dtype([("a", np.dtype("i,")),
+ ("b", np.dtype(">i,d,S17,>d,3f,O,i1"))])
+ out_dtype = np.dtype([("a", np.dtype("O")),
+ ("b", np.dtype(">i,>i,S17,>d,>U3,3d,i1,O"))])
+ arr = np.ones(1000, dtype=in_dtype)
+
+ it = np.nditer((arr,), ["buffered", "external_loop", "refs_ok"],
+ op_dtypes=[out_dtype], casting="unsafe")
+ it_copy = it.copy()
+
+ res1 = next(it)
+ del it
+ res2 = next(it_copy)
+ del it_copy
+
+ expected = arr["a"].astype(out_dtype["a"])
+ assert_array_equal(res1["a"], expected)
+ assert_array_equal(res2["a"], expected)
+
+ for field in in_dtype["b"].names:
+ # Note that the .base avoids the subarray field
+ expected = arr["b"][field].astype(out_dtype["b"][field].base)
+ assert_array_equal(res1["b"][field], expected)
+ assert_array_equal(res2["b"][field], expected)
+
+
+def test_iter_copy_casts_structured2():
+ # Similar to the above, this is a fairly arcane test to cover internals
+ in_dtype = np.dtype([("a", np.dtype("O,O")),
+ ("b", np.dtype("5O,3O,(1,)O,(1,)i,(1,)O"))])
+ out_dtype = np.dtype([("a", np.dtype("O")),
+ ("b", np.dtype("O,3i,4O,4O,4i"))])
+
+ arr = np.ones(1, dtype=in_dtype)
+ it = np.nditer((arr,), ["buffered", "external_loop", "refs_ok"],
+ op_dtypes=[out_dtype], casting="unsafe")
+ it_copy = it.copy()
+
+ res1 = next(it)
+ del it
+ res2 = next(it_copy)
+ del it_copy
+
+ # Array of two structured scalars:
+ for res in res1, res2:
+ # Cast to tuple by getitem, which may be weird and changeable?:
+ assert isinstance(res["a"][0], tuple)
+ assert res["a"][0] == (1, 1)
+
+ for res in res1, res2:
+ assert_array_equal(res["b"]["f0"][0], np.ones(5, dtype=object))
+ assert_array_equal(res["b"]["f1"], np.ones((1, 3), dtype="i"))
+ assert res["b"]["f2"].shape == (1, 4)
+ assert_array_equal(res["b"]["f2"][0], np.ones(4, dtype=object))
+ assert_array_equal(res["b"]["f3"][0], np.ones(4, dtype=object))
+ assert_array_equal(res["b"]["f3"][0], np.ones(4, dtype="i"))
+
+
+def test_iter_allocate_output_simple():
+ # Check that the iterator will properly allocate outputs
+
+ # Simple case
+ a = arange(6)
+ i = nditer([a, None], [], [['readonly'], ['writeonly', 'allocate']],
+ op_dtypes=[None, np.dtype('f4')])
+ assert_equal(i.operands[1].shape, a.shape)
+ assert_equal(i.operands[1].dtype, np.dtype('f4'))
+
+def test_iter_allocate_output_buffered_readwrite():
+ # Allocated output with buffering + delay_bufalloc
+
+ a = arange(6)
+ i = nditer([a, None], ['buffered', 'delay_bufalloc'],
+ [['readonly'], ['allocate', 'readwrite']])
+ with i:
+ i.operands[1][:] = 1
+ i.reset()
+ for x in i:
+ x[1][...] += x[0][...]
+ assert_equal(i.operands[1], a + 1)
+
+def test_iter_allocate_output_itorder():
+ # The allocated output should match the iteration order
+
+ # C-order input, best iteration order
+ a = arange(6, dtype='i4').reshape(2, 3)
+ i = nditer([a, None], [], [['readonly'], ['writeonly', 'allocate']],
+ op_dtypes=[None, np.dtype('f4')])
+ assert_equal(i.operands[1].shape, a.shape)
+ assert_equal(i.operands[1].strides, a.strides)
+ assert_equal(i.operands[1].dtype, np.dtype('f4'))
+ # F-order input, best iteration order
+ a = arange(24, dtype='i4').reshape(2, 3, 4).T
+ i = nditer([a, None], [], [['readonly'], ['writeonly', 'allocate']],
+ op_dtypes=[None, np.dtype('f4')])
+ assert_equal(i.operands[1].shape, a.shape)
+ assert_equal(i.operands[1].strides, a.strides)
+ assert_equal(i.operands[1].dtype, np.dtype('f4'))
+ # Non-contiguous input, C iteration order
+ a = arange(24, dtype='i4').reshape(2, 3, 4).swapaxes(0, 1)
+ i = nditer([a, None], [],
+ [['readonly'], ['writeonly', 'allocate']],
+ order='C',
+ op_dtypes=[None, np.dtype('f4')])
+ assert_equal(i.operands[1].shape, a.shape)
+ assert_equal(i.operands[1].strides, (32, 16, 4))
+ assert_equal(i.operands[1].dtype, np.dtype('f4'))
+
+def test_iter_allocate_output_opaxes():
+ # Specifying op_axes should work
+
+ a = arange(24, dtype='i4').reshape(2, 3, 4)
+ i = nditer([None, a], [], [['writeonly', 'allocate'], ['readonly']],
+ op_dtypes=[np.dtype('u4'), None],
+ op_axes=[[1, 2, 0], None])
+ assert_equal(i.operands[0].shape, (4, 2, 3))
+ assert_equal(i.operands[0].strides, (4, 48, 16))
+ assert_equal(i.operands[0].dtype, np.dtype('u4'))
+
+def test_iter_allocate_output_types_promotion():
+ # Check type promotion of automatic outputs (this was more interesting
+ # before NEP 50...)
+
+ i = nditer([array([3], dtype='f4'), array([0], dtype='f8'), None], [],
+ [['readonly']] * 2 + [['writeonly', 'allocate']])
+ assert_equal(i.dtypes[2], np.dtype('f8'))
+ i = nditer([array([3], dtype='i4'), array([0], dtype='f4'), None], [],
+ [['readonly']] * 2 + [['writeonly', 'allocate']])
+ assert_equal(i.dtypes[2], np.dtype('f8'))
+ i = nditer([array([3], dtype='f4'), array(0, dtype='f8'), None], [],
+ [['readonly']] * 2 + [['writeonly', 'allocate']])
+ assert_equal(i.dtypes[2], np.dtype('f8'))
+ i = nditer([array([3], dtype='u4'), array(0, dtype='i4'), None], [],
+ [['readonly']] * 2 + [['writeonly', 'allocate']])
+ assert_equal(i.dtypes[2], np.dtype('i8'))
+ i = nditer([array([3], dtype='u4'), array(-12, dtype='i4'), None], [],
+ [['readonly']] * 2 + [['writeonly', 'allocate']])
+ assert_equal(i.dtypes[2], np.dtype('i8'))
+
+def test_iter_allocate_output_types_byte_order():
+ # Verify the rules for byte order changes
+
+ # When there's just one input, the output type exactly matches
+ a = array([3], dtype='u4')
+ a = a.view(a.dtype.newbyteorder())
+ i = nditer([a, None], [],
+ [['readonly'], ['writeonly', 'allocate']])
+ assert_equal(i.dtypes[0], i.dtypes[1])
+ # With two or more inputs, the output type is in native byte order
+ i = nditer([a, a, None], [],
+ [['readonly'], ['readonly'], ['writeonly', 'allocate']])
+ assert_(i.dtypes[0] != i.dtypes[2])
+ assert_equal(i.dtypes[0].newbyteorder('='), i.dtypes[2])
+
+def test_iter_allocate_output_types_scalar():
+ # If the inputs are all scalars, the output should be a scalar
+
+ i = nditer([None, 1, 2.3, np.float32(12), np.complex128(3)], [],
+ [['writeonly', 'allocate']] + [['readonly']] * 4)
+ assert_equal(i.operands[0].dtype, np.dtype('complex128'))
+ assert_equal(i.operands[0].ndim, 0)
+
+def test_iter_allocate_output_subtype():
+ # Make sure that the subtype with priority wins
+ class MyNDArray(np.ndarray):
+ __array_priority__ = 15
+
+ # subclass vs ndarray
+ a = np.array([[1, 2], [3, 4]]).view(MyNDArray)
+ b = np.arange(4).reshape(2, 2).T
+ i = nditer([a, b, None], [],
+ [['readonly'], ['readonly'], ['writeonly', 'allocate']])
+ assert_equal(type(a), type(i.operands[2]))
+ assert_(type(b) is not type(i.operands[2]))
+ assert_equal(i.operands[2].shape, (2, 2))
+
+ # If subtypes are disabled, we should get back an ndarray.
+ i = nditer([a, b, None], [],
+ [['readonly'], ['readonly'],
+ ['writeonly', 'allocate', 'no_subtype']])
+ assert_equal(type(b), type(i.operands[2]))
+ assert_(type(a) is not type(i.operands[2]))
+ assert_equal(i.operands[2].shape, (2, 2))
+
+def test_iter_allocate_output_errors():
+ # Check that the iterator will throw errors for bad output allocations
+
+ # Need an input if no output data type is specified
+ a = arange(6)
+ assert_raises(TypeError, nditer, [a, None], [],
+ [['writeonly'], ['writeonly', 'allocate']])
+ # Allocated output should be flagged for writing
+ assert_raises(ValueError, nditer, [a, None], [],
+ [['readonly'], ['allocate', 'readonly']])
+ # Allocated output can't have buffering without delayed bufalloc
+ assert_raises(ValueError, nditer, [a, None], ['buffered'],
+ ['allocate', 'readwrite'])
+ # Must specify dtype if there are no inputs (cannot promote existing ones;
+ # maybe this should use the 'f4' here, but it does not historically.)
+ assert_raises(TypeError, nditer, [None, None], [],
+ [['writeonly', 'allocate'],
+ ['writeonly', 'allocate']],
+ op_dtypes=[None, np.dtype('f4')])
+ # If using op_axes, must specify all the axes
+ a = arange(24, dtype='i4').reshape(2, 3, 4)
+ assert_raises(ValueError, nditer, [a, None], [],
+ [['readonly'], ['writeonly', 'allocate']],
+ op_dtypes=[None, np.dtype('f4')],
+ op_axes=[None, [0, np.newaxis, 1]])
+ # If using op_axes, the axes must be within bounds
+ assert_raises(ValueError, nditer, [a, None], [],
+ [['readonly'], ['writeonly', 'allocate']],
+ op_dtypes=[None, np.dtype('f4')],
+ op_axes=[None, [0, 3, 1]])
+ # If using op_axes, there can't be duplicates
+ assert_raises(ValueError, nditer, [a, None], [],
+ [['readonly'], ['writeonly', 'allocate']],
+ op_dtypes=[None, np.dtype('f4')],
+ op_axes=[None, [0, 2, 1, 0]])
+ # Not all axes may be specified if a reduction. If there is a hole
+ # in op_axes, this is an error.
+ a = arange(24, dtype='i4').reshape(2, 3, 4)
+ assert_raises(ValueError, nditer, [a, None], ["reduce_ok"],
+ [['readonly'], ['readwrite', 'allocate']],
+ op_dtypes=[None, np.dtype('f4')],
+ op_axes=[None, [0, np.newaxis, 2]])
+
+def test_all_allocated():
+ # When no output and no shape is given, `()` is used as shape.
+ i = np.nditer([None], op_dtypes=["int64"])
+ assert i.operands[0].shape == ()
+ assert i.dtypes == (np.dtype("int64"),)
+
+ i = np.nditer([None], op_dtypes=["int64"], itershape=(2, 3, 4))
+ assert i.operands[0].shape == (2, 3, 4)
+
+def test_iter_remove_axis():
+ a = arange(24).reshape(2, 3, 4)
+
+ i = nditer(a, ['multi_index'])
+ i.remove_axis(1)
+ assert_equal(list(i), a[:, 0, :].ravel())
+
+ a = a[::-1, :, :]
+ i = nditer(a, ['multi_index'])
+ i.remove_axis(0)
+ assert_equal(list(i), a[0, :, :].ravel())
+
+def test_iter_remove_multi_index_inner_loop():
+ # Check that removing multi-index support works
+
+ a = arange(24).reshape(2, 3, 4)
+
+ i = nditer(a, ['multi_index'])
+ assert_equal(i.ndim, 3)
+ assert_equal(i.shape, (2, 3, 4))
+ assert_equal(i.itviews[0].shape, (2, 3, 4))
+
+ # Removing the multi-index tracking causes all dimensions to coalesce
+ before = list(i)
+ i.remove_multi_index()
+ after = list(i)
+
+ assert_equal(before, after)
+ assert_equal(i.ndim, 1)
+ assert_raises(ValueError, lambda i: i.shape, i)
+ assert_equal(i.itviews[0].shape, (24,))
+
+ # Removing the inner loop means there's just one iteration
+ i.reset()
+ assert_equal(i.itersize, 24)
+ assert_equal(i[0].shape, ())
+ i.enable_external_loop()
+ assert_equal(i.itersize, 24)
+ assert_equal(i[0].shape, (24,))
+ assert_equal(i.value, arange(24))
+
+def test_iter_iterindex():
+ # Make sure iterindex works
+
+ buffersize = 5
+ a = arange(24).reshape(4, 3, 2)
+ for flags in ([], ['buffered']):
+ i = nditer(a, flags, buffersize=buffersize)
+ assert_equal(iter_iterindices(i), list(range(24)))
+ i.iterindex = 2
+ assert_equal(iter_iterindices(i), list(range(2, 24)))
+
+ i = nditer(a, flags, order='F', buffersize=buffersize)
+ assert_equal(iter_iterindices(i), list(range(24)))
+ i.iterindex = 5
+ assert_equal(iter_iterindices(i), list(range(5, 24)))
+
+ i = nditer(a[::-1], flags, order='F', buffersize=buffersize)
+ assert_equal(iter_iterindices(i), list(range(24)))
+ i.iterindex = 9
+ assert_equal(iter_iterindices(i), list(range(9, 24)))
+
+ i = nditer(a[::-1, ::-1], flags, order='C', buffersize=buffersize)
+ assert_equal(iter_iterindices(i), list(range(24)))
+ i.iterindex = 13
+ assert_equal(iter_iterindices(i), list(range(13, 24)))
+
+ i = nditer(a[::1, ::-1], flags, buffersize=buffersize)
+ assert_equal(iter_iterindices(i), list(range(24)))
+ i.iterindex = 23
+ assert_equal(iter_iterindices(i), list(range(23, 24)))
+ i.reset()
+ i.iterindex = 2
+ assert_equal(iter_iterindices(i), list(range(2, 24)))
+
+def test_iter_iterrange():
+ # Make sure getting and resetting the iterrange works
+
+ buffersize = 5
+ a = arange(24, dtype='i4').reshape(4, 3, 2)
+ a_fort = a.ravel(order='F')
+
+ i = nditer(a, ['ranged'], ['readonly'], order='F',
+ buffersize=buffersize)
+ assert_equal(i.iterrange, (0, 24))
+ assert_equal([x[()] for x in i], a_fort)
+ for r in [(0, 24), (1, 2), (3, 24), (5, 5), (0, 20), (23, 24)]:
+ i.iterrange = r
+ assert_equal(i.iterrange, r)
+ assert_equal([x[()] for x in i], a_fort[r[0]:r[1]])
+
+ i = nditer(a, ['ranged', 'buffered'], ['readonly'], order='F',
+ op_dtypes='f8', buffersize=buffersize)
+ assert_equal(i.iterrange, (0, 24))
+ assert_equal([x[()] for x in i], a_fort)
+ for r in [(0, 24), (1, 2), (3, 24), (5, 5), (0, 20), (23, 24)]:
+ i.iterrange = r
+ assert_equal(i.iterrange, r)
+ assert_equal([x[()] for x in i], a_fort[r[0]:r[1]])
+
+ def get_array(i):
+ val = np.array([], dtype='f8')
+ for x in i:
+ val = np.concatenate((val, x))
+ return val
+
+ i = nditer(a, ['ranged', 'buffered', 'external_loop'],
+ ['readonly'], order='F',
+ op_dtypes='f8', buffersize=buffersize)
+ assert_equal(i.iterrange, (0, 24))
+ assert_equal(get_array(i), a_fort)
+ for r in [(0, 24), (1, 2), (3, 24), (5, 5), (0, 20), (23, 24)]:
+ i.iterrange = r
+ assert_equal(i.iterrange, r)
+ assert_equal(get_array(i), a_fort[r[0]:r[1]])
+
+def test_iter_buffering():
+ # Test buffering with several buffer sizes and types
+ arrays = []
+ # F-order swapped array
+ _tmp = np.arange(24, dtype='c16').reshape(2, 3, 4).T
+ _tmp = _tmp.view(_tmp.dtype.newbyteorder()).byteswap()
+ arrays.append(_tmp)
+ # Contiguous 1-dimensional array
+ arrays.append(np.arange(10, dtype='f4'))
+ # Unaligned array
+ a = np.zeros((4 * 16 + 1,), dtype='i1')[1:]
+ a = a.view('i4')
+ a[:] = np.arange(16, dtype='i4')
+ arrays.append(a)
+ # 4-D F-order array
+ arrays.append(np.arange(120, dtype='i4').reshape(5, 3, 2, 4).T)
+ for a in arrays:
+ for buffersize in (1, 2, 3, 5, 8, 11, 16, 1024):
+ vals = []
+ i = nditer(a, ['buffered', 'external_loop'],
+ [['readonly', 'nbo', 'aligned']],
+ order='C',
+ casting='equiv',
+ buffersize=buffersize)
+ while not i.finished:
+ assert_(i[0].size <= buffersize)
+ vals.append(i[0].copy())
+ i.iternext()
+ assert_equal(np.concatenate(vals), a.ravel(order='C'))
+
+def test_iter_write_buffering():
+ # Test that buffering of writes is working
+
+ # F-order swapped array
+ a = np.arange(24).reshape(2, 3, 4).T
+ a = a.view(a.dtype.newbyteorder()).byteswap()
+ i = nditer(a, ['buffered'],
+ [['readwrite', 'nbo', 'aligned']],
+ casting='equiv',
+ order='C',
+ buffersize=16)
+ x = 0
+ with i:
+ while not i.finished:
+ i[0] = x
+ x += 1
+ i.iternext()
+ assert_equal(a.ravel(order='C'), np.arange(24))
+
+def test_iter_buffering_delayed_alloc():
+ # Test that delaying buffer allocation works
+
+ a = np.arange(6)
+ b = np.arange(1, dtype='f4')
+ i = nditer([a, b], ['buffered', 'delay_bufalloc', 'multi_index', 'reduce_ok'],
+ ['readwrite'],
+ casting='unsafe',
+ op_dtypes='f4')
+ assert_(i.has_delayed_bufalloc)
+ assert_raises(ValueError, lambda i: i.multi_index, i)
+ assert_raises(ValueError, lambda i: i[0], i)
+ assert_raises(ValueError, lambda i: i[0:2], i)
+
+ def assign_iter(i):
+ i[0] = 0
+ assert_raises(ValueError, assign_iter, i)
+
+ i.reset()
+ assert_(not i.has_delayed_bufalloc)
+ assert_equal(i.multi_index, (0,))
+ with i:
+ assert_equal(i[0], 0)
+ i[1] = 1
+ assert_equal(i[0:2], [0, 1])
+ assert_equal([[x[0][()], x[1][()]] for x in i], list(zip(range(6), [1] * 6)))
+
+def test_iter_buffered_cast_simple():
+ # Test that buffering can handle a simple cast
+
+ a = np.arange(10, dtype='f4')
+ i = nditer(a, ['buffered', 'external_loop'],
+ [['readwrite', 'nbo', 'aligned']],
+ casting='same_kind',
+ op_dtypes=[np.dtype('f8')],
+ buffersize=3)
+ with i:
+ for v in i:
+ v[...] *= 2
+
+ assert_equal(a, 2 * np.arange(10, dtype='f4'))
+
+def test_iter_buffered_cast_byteswapped():
+ # Test that buffering can handle a cast which requires swap->cast->swap
+
+ a = np.arange(10, dtype='f4')
+ a = a.view(a.dtype.newbyteorder()).byteswap()
+ i = nditer(a, ['buffered', 'external_loop'],
+ [['readwrite', 'nbo', 'aligned']],
+ casting='same_kind',
+ op_dtypes=[np.dtype('f8').newbyteorder()],
+ buffersize=3)
+ with i:
+ for v in i:
+ v[...] *= 2
+
+ assert_equal(a, 2 * np.arange(10, dtype='f4'))
+
+ with warnings.catch_warnings():
+ warnings.simplefilter('ignore', np.exceptions.ComplexWarning)
+
+ a = np.arange(10, dtype='f8')
+ a = a.view(a.dtype.newbyteorder()).byteswap()
+ i = nditer(a, ['buffered', 'external_loop'],
+ [['readwrite', 'nbo', 'aligned']],
+ casting='unsafe',
+ op_dtypes=[np.dtype('c8').newbyteorder()],
+ buffersize=3)
+ with i:
+ for v in i:
+ v[...] *= 2
+
+ assert_equal(a, 2 * np.arange(10, dtype='f8'))
+
+def test_iter_buffered_cast_byteswapped_complex():
+ # Test that buffering can handle a cast which requires swap->cast->copy
+
+ a = np.arange(10, dtype='c8')
+ a = a.view(a.dtype.newbyteorder()).byteswap()
+ a += 2j
+ i = nditer(a, ['buffered', 'external_loop'],
+ [['readwrite', 'nbo', 'aligned']],
+ casting='same_kind',
+ op_dtypes=[np.dtype('c16')],
+ buffersize=3)
+ with i:
+ for v in i:
+ v[...] *= 2
+ assert_equal(a, 2 * np.arange(10, dtype='c8') + 4j)
+
+ a = np.arange(10, dtype='c8')
+ a += 2j
+ i = nditer(a, ['buffered', 'external_loop'],
+ [['readwrite', 'nbo', 'aligned']],
+ casting='same_kind',
+ op_dtypes=[np.dtype('c16').newbyteorder()],
+ buffersize=3)
+ with i:
+ for v in i:
+ v[...] *= 2
+ assert_equal(a, 2 * np.arange(10, dtype='c8') + 4j)
+
+ a = np.arange(10, dtype=np.clongdouble)
+ a = a.view(a.dtype.newbyteorder()).byteswap()
+ a += 2j
+ i = nditer(a, ['buffered', 'external_loop'],
+ [['readwrite', 'nbo', 'aligned']],
+ casting='same_kind',
+ op_dtypes=[np.dtype('c16')],
+ buffersize=3)
+ with i:
+ for v in i:
+ v[...] *= 2
+ assert_equal(a, 2 * np.arange(10, dtype=np.clongdouble) + 4j)
+
+ a = np.arange(10, dtype=np.longdouble)
+ a = a.view(a.dtype.newbyteorder()).byteswap()
+ i = nditer(a, ['buffered', 'external_loop'],
+ [['readwrite', 'nbo', 'aligned']],
+ casting='same_kind',
+ op_dtypes=[np.dtype('f4')],
+ buffersize=7)
+ with i:
+ for v in i:
+ v[...] *= 2
+ assert_equal(a, 2 * np.arange(10, dtype=np.longdouble))
+
+def test_iter_buffered_cast_structured_type():
+ # Tests buffering of structured types
+
+ # simple -> struct type (duplicates the value)
+ sdt = [('a', 'f4'), ('b', 'i8'), ('c', 'c8', (2, 3)), ('d', 'O')]
+ a = np.arange(3, dtype='f4') + 0.5
+ i = nditer(a, ['buffered', 'refs_ok'], ['readonly'],
+ casting='unsafe',
+ op_dtypes=sdt)
+ vals = [np.array(x) for x in i]
+ assert_equal(vals[0]['a'], 0.5)
+ assert_equal(vals[0]['b'], 0)
+ assert_equal(vals[0]['c'], [[(0.5)] * 3] * 2)
+ assert_equal(vals[0]['d'], 0.5)
+ assert_equal(vals[1]['a'], 1.5)
+ assert_equal(vals[1]['b'], 1)
+ assert_equal(vals[1]['c'], [[(1.5)] * 3] * 2)
+ assert_equal(vals[1]['d'], 1.5)
+ assert_equal(vals[0].dtype, np.dtype(sdt))
+
+ # object -> struct type
+ sdt = [('a', 'f4'), ('b', 'i8'), ('c', 'c8', (2, 3)), ('d', 'O')]
+ a = np.zeros((3,), dtype='O')
+ a[0] = (0.5, 0.5, [[0.5, 0.5, 0.5], [0.5, 0.5, 0.5]], 0.5)
+ a[1] = (1.5, 1.5, [[1.5, 1.5, 1.5], [1.5, 1.5, 1.5]], 1.5)
+ a[2] = (2.5, 2.5, [[2.5, 2.5, 2.5], [2.5, 2.5, 2.5]], 2.5)
+ if HAS_REFCOUNT:
+ rc = sys.getrefcount(a[0])
+ i = nditer(a, ['buffered', 'refs_ok'], ['readonly'],
+ casting='unsafe',
+ op_dtypes=sdt)
+ vals = [x.copy() for x in i]
+ assert_equal(vals[0]['a'], 0.5)
+ assert_equal(vals[0]['b'], 0)
+ assert_equal(vals[0]['c'], [[(0.5)] * 3] * 2)
+ assert_equal(vals[0]['d'], 0.5)
+ assert_equal(vals[1]['a'], 1.5)
+ assert_equal(vals[1]['b'], 1)
+ assert_equal(vals[1]['c'], [[(1.5)] * 3] * 2)
+ assert_equal(vals[1]['d'], 1.5)
+ assert_equal(vals[0].dtype, np.dtype(sdt))
+ vals, i, x = [None] * 3
+ if HAS_REFCOUNT:
+ assert_equal(sys.getrefcount(a[0]), rc)
+
+ # single-field struct type -> simple
+ sdt = [('a', 'f4')]
+ a = np.array([(5.5,), (8,)], dtype=sdt)
+ i = nditer(a, ['buffered', 'refs_ok'], ['readonly'],
+ casting='unsafe',
+ op_dtypes='i4')
+ assert_equal([x_[()] for x_ in i], [5, 8])
+
+ # make sure multi-field struct type -> simple doesn't work
+ sdt = [('a', 'f4'), ('b', 'i8'), ('d', 'O')]
+ a = np.array([(5.5, 7, 'test'), (8, 10, 11)], dtype=sdt)
+ assert_raises(TypeError, lambda: (
+ nditer(a, ['buffered', 'refs_ok'], ['readonly'],
+ casting='unsafe',
+ op_dtypes='i4')))
+
+ # struct type -> struct type (field-wise copy)
+ sdt1 = [('a', 'f4'), ('b', 'i8'), ('d', 'O')]
+ sdt2 = [('d', 'u2'), ('a', 'O'), ('b', 'f8')]
+ a = np.array([(1, 2, 3), (4, 5, 6)], dtype=sdt1)
+ i = nditer(a, ['buffered', 'refs_ok'], ['readonly'],
+ casting='unsafe',
+ op_dtypes=sdt2)
+ assert_equal(i[0].dtype, np.dtype(sdt2))
+ assert_equal([np.array(x_) for x_ in i],
+ [np.array((1, 2, 3), dtype=sdt2),
+ np.array((4, 5, 6), dtype=sdt2)])
+
+
+def test_iter_buffered_cast_structured_type_failure_with_cleanup():
+ # make sure struct type -> struct type with different
+ # number of fields fails
+ sdt1 = [('a', 'f4'), ('b', 'i8'), ('d', 'O')]
+ sdt2 = [('b', 'O'), ('a', 'f8')]
+ a = np.array([(1, 2, 3), (4, 5, 6)], dtype=sdt1)
+
+ for intent in ["readwrite", "readonly", "writeonly"]:
+ # This test was initially designed to test an error at a different
+ # place, but will now raise earlier to to the cast not being possible:
+ # `assert np.can_cast(a.dtype, sdt2, casting="unsafe")` fails.
+ # Without a faulty DType, there is probably no reliable
+ # way to get the initial tested behaviour.
+ simple_arr = np.array([1, 2], dtype="i,i") # requires clean up
+ with pytest.raises(TypeError):
+ nditer((simple_arr, a), ['buffered', 'refs_ok'], [intent, intent],
+ casting='unsafe', op_dtypes=["f,f", sdt2])
+
+
+def test_buffered_cast_error_paths():
+ with pytest.raises(ValueError):
+ # The input is cast into an `S3` buffer
+ np.nditer((np.array("a", dtype="S1"),), op_dtypes=["i"],
+ casting="unsafe", flags=["buffered"])
+
+ # The `M8[ns]` is cast into the `S3` output
+ it = np.nditer((np.array(1, dtype="i"),), op_dtypes=["S1"],
+ op_flags=["writeonly"], casting="unsafe", flags=["buffered"])
+ with pytest.raises(ValueError):
+ with it:
+ buf = next(it)
+ buf[...] = "a" # cannot be converted to int.
+
+@pytest.mark.skipif(IS_WASM, reason="Cannot start subprocess")
+@pytest.mark.skipif(not HAS_REFCOUNT, reason="PyPy seems to not hit this.")
+def test_buffered_cast_error_paths_unraisable():
+ # The following gives an unraisable error. Pytest sometimes captures that
+ # (depending python and/or pytest version). So with Python>=3.8 this can
+ # probably be cleaned out in the future to check for
+ # pytest.PytestUnraisableExceptionWarning:
+ code = textwrap.dedent("""
+ import numpy as np
+
+ it = np.nditer((np.array(1, dtype="i"),), op_dtypes=["S1"],
+ op_flags=["writeonly"], casting="unsafe", flags=["buffered"])
+ buf = next(it)
+ buf[...] = "a"
+ del buf, it # Flushing only happens during deallocate right now.
+ """)
+ res = subprocess.check_output([sys.executable, "-c", code],
+ stderr=subprocess.STDOUT, text=True)
+ assert "ValueError" in res
+
+
+def test_iter_buffered_cast_subarray():
+ # Tests buffering of subarrays
+
+ # one element -> many (copies it to all)
+ sdt1 = [('a', 'f4')]
+ sdt2 = [('a', 'f8', (3, 2, 2))]
+ a = np.zeros((6,), dtype=sdt1)
+ a['a'] = np.arange(6)
+ i = nditer(a, ['buffered', 'refs_ok'], ['readonly'],
+ casting='unsafe',
+ op_dtypes=sdt2)
+ assert_equal(i[0].dtype, np.dtype(sdt2))
+ for x, count in zip(i, list(range(6))):
+ assert_(np.all(x['a'] == count))
+
+ # one element -> many -> back (copies it to all)
+ sdt1 = [('a', 'O', (1, 1))]
+ sdt2 = [('a', 'O', (3, 2, 2))]
+ a = np.zeros((6,), dtype=sdt1)
+ a['a'][:, 0, 0] = np.arange(6)
+ i = nditer(a, ['buffered', 'refs_ok'], ['readwrite'],
+ casting='unsafe',
+ op_dtypes=sdt2)
+ with i:
+ assert_equal(i[0].dtype, np.dtype(sdt2))
+ count = 0
+ for x in i:
+ assert_(np.all(x['a'] == count))
+ x['a'][0] += 2
+ count += 1
+ assert_equal(a['a'], np.arange(6).reshape(6, 1, 1) + 2)
+
+ # many -> one element -> back (copies just element 0)
+ sdt1 = [('a', 'O', (3, 2, 2))]
+ sdt2 = [('a', 'O', (1,))]
+ a = np.zeros((6,), dtype=sdt1)
+ a['a'][:, 0, 0, 0] = np.arange(6)
+ i = nditer(a, ['buffered', 'refs_ok'], ['readwrite'],
+ casting='unsafe',
+ op_dtypes=sdt2)
+ with i:
+ assert_equal(i[0].dtype, np.dtype(sdt2))
+ count = 0
+ for x in i:
+ assert_equal(x['a'], count)
+ x['a'] += 2
+ count += 1
+ assert_equal(a['a'], np.arange(6).reshape(6, 1, 1, 1) * np.ones((1, 3, 2, 2)) + 2)
+
+ # many -> one element -> back (copies just element 0)
+ sdt1 = [('a', 'f8', (3, 2, 2))]
+ sdt2 = [('a', 'O', (1,))]
+ a = np.zeros((6,), dtype=sdt1)
+ a['a'][:, 0, 0, 0] = np.arange(6)
+ i = nditer(a, ['buffered', 'refs_ok'], ['readonly'],
+ casting='unsafe',
+ op_dtypes=sdt2)
+ assert_equal(i[0].dtype, np.dtype(sdt2))
+ count = 0
+ for x in i:
+ assert_equal(x['a'], count)
+ count += 1
+
+ # many -> one element (copies just element 0)
+ sdt1 = [('a', 'O', (3, 2, 2))]
+ sdt2 = [('a', 'f4', (1,))]
+ a = np.zeros((6,), dtype=sdt1)
+ a['a'][:, 0, 0, 0] = np.arange(6)
+ i = nditer(a, ['buffered', 'refs_ok'], ['readonly'],
+ casting='unsafe',
+ op_dtypes=sdt2)
+ assert_equal(i[0].dtype, np.dtype(sdt2))
+ count = 0
+ for x in i:
+ assert_equal(x['a'], count)
+ count += 1
+
+ # many -> matching shape (straightforward copy)
+ sdt1 = [('a', 'O', (3, 2, 2))]
+ sdt2 = [('a', 'f4', (3, 2, 2))]
+ a = np.zeros((6,), dtype=sdt1)
+ a['a'] = np.arange(6 * 3 * 2 * 2).reshape(6, 3, 2, 2)
+ i = nditer(a, ['buffered', 'refs_ok'], ['readonly'],
+ casting='unsafe',
+ op_dtypes=sdt2)
+ assert_equal(i[0].dtype, np.dtype(sdt2))
+ count = 0
+ for x in i:
+ assert_equal(x['a'], a[count]['a'])
+ count += 1
+
+ # vector -> smaller vector (truncates)
+ sdt1 = [('a', 'f8', (6,))]
+ sdt2 = [('a', 'f4', (2,))]
+ a = np.zeros((6,), dtype=sdt1)
+ a['a'] = np.arange(6 * 6).reshape(6, 6)
+ i = nditer(a, ['buffered', 'refs_ok'], ['readonly'],
+ casting='unsafe',
+ op_dtypes=sdt2)
+ assert_equal(i[0].dtype, np.dtype(sdt2))
+ count = 0
+ for x in i:
+ assert_equal(x['a'], a[count]['a'][:2])
+ count += 1
+
+ # vector -> bigger vector (pads with zeros)
+ sdt1 = [('a', 'f8', (2,))]
+ sdt2 = [('a', 'f4', (6,))]
+ a = np.zeros((6,), dtype=sdt1)
+ a['a'] = np.arange(6 * 2).reshape(6, 2)
+ i = nditer(a, ['buffered', 'refs_ok'], ['readonly'],
+ casting='unsafe',
+ op_dtypes=sdt2)
+ assert_equal(i[0].dtype, np.dtype(sdt2))
+ count = 0
+ for x in i:
+ assert_equal(x['a'][:2], a[count]['a'])
+ assert_equal(x['a'][2:], [0, 0, 0, 0])
+ count += 1
+
+ # vector -> matrix (broadcasts)
+ sdt1 = [('a', 'f8', (2,))]
+ sdt2 = [('a', 'f4', (2, 2))]
+ a = np.zeros((6,), dtype=sdt1)
+ a['a'] = np.arange(6 * 2).reshape(6, 2)
+ i = nditer(a, ['buffered', 'refs_ok'], ['readonly'],
+ casting='unsafe',
+ op_dtypes=sdt2)
+ assert_equal(i[0].dtype, np.dtype(sdt2))
+ count = 0
+ for x in i:
+ assert_equal(x['a'][0], a[count]['a'])
+ assert_equal(x['a'][1], a[count]['a'])
+ count += 1
+
+ # vector -> matrix (broadcasts and zero-pads)
+ sdt1 = [('a', 'f8', (2, 1))]
+ sdt2 = [('a', 'f4', (3, 2))]
+ a = np.zeros((6,), dtype=sdt1)
+ a['a'] = np.arange(6 * 2).reshape(6, 2, 1)
+ i = nditer(a, ['buffered', 'refs_ok'], ['readonly'],
+ casting='unsafe',
+ op_dtypes=sdt2)
+ assert_equal(i[0].dtype, np.dtype(sdt2))
+ count = 0
+ for x in i:
+ assert_equal(x['a'][:2, 0], a[count]['a'][:, 0])
+ assert_equal(x['a'][:2, 1], a[count]['a'][:, 0])
+ assert_equal(x['a'][2, :], [0, 0])
+ count += 1
+
+ # matrix -> matrix (truncates and zero-pads)
+ sdt1 = [('a', 'f8', (2, 3))]
+ sdt2 = [('a', 'f4', (3, 2))]
+ a = np.zeros((6,), dtype=sdt1)
+ a['a'] = np.arange(6 * 2 * 3).reshape(6, 2, 3)
+ i = nditer(a, ['buffered', 'refs_ok'], ['readonly'],
+ casting='unsafe',
+ op_dtypes=sdt2)
+ assert_equal(i[0].dtype, np.dtype(sdt2))
+ count = 0
+ for x in i:
+ assert_equal(x['a'][:2, 0], a[count]['a'][:, 0])
+ assert_equal(x['a'][:2, 1], a[count]['a'][:, 1])
+ assert_equal(x['a'][2, :], [0, 0])
+ count += 1
+
+def test_iter_buffering_badwriteback():
+ # Writing back from a buffer cannot combine elements
+
+ # a needs write buffering, but had a broadcast dimension
+ a = np.arange(6).reshape(2, 3, 1)
+ b = np.arange(12).reshape(2, 3, 2)
+ assert_raises(ValueError, nditer, [a, b],
+ ['buffered', 'external_loop'],
+ [['readwrite'], ['writeonly']],
+ order='C')
+
+ # But if a is readonly, it's fine
+ nditer([a, b], ['buffered', 'external_loop'],
+ [['readonly'], ['writeonly']],
+ order='C')
+
+ # If a has just one element, it's fine too (constant 0 stride, a reduction)
+ a = np.arange(1).reshape(1, 1, 1)
+ nditer([a, b], ['buffered', 'external_loop', 'reduce_ok'],
+ [['readwrite'], ['writeonly']],
+ order='C')
+
+ # check that it fails on other dimensions too
+ a = np.arange(6).reshape(1, 3, 2)
+ assert_raises(ValueError, nditer, [a, b],
+ ['buffered', 'external_loop'],
+ [['readwrite'], ['writeonly']],
+ order='C')
+ a = np.arange(4).reshape(2, 1, 2)
+ assert_raises(ValueError, nditer, [a, b],
+ ['buffered', 'external_loop'],
+ [['readwrite'], ['writeonly']],
+ order='C')
+
+def test_iter_buffering_string():
+ # Safe casting disallows shrinking strings
+ a = np.array(['abc', 'a', 'abcd'], dtype=np.bytes_)
+ assert_equal(a.dtype, np.dtype('S4'))
+ assert_raises(TypeError, nditer, a, ['buffered'], ['readonly'],
+ op_dtypes='S2')
+ i = nditer(a, ['buffered'], ['readonly'], op_dtypes='S6')
+ assert_equal(i[0], b'abc')
+ assert_equal(i[0].dtype, np.dtype('S6'))
+
+ a = np.array(['abc', 'a', 'abcd'], dtype=np.str_)
+ assert_equal(a.dtype, np.dtype('U4'))
+ assert_raises(TypeError, nditer, a, ['buffered'], ['readonly'],
+ op_dtypes='U2')
+ i = nditer(a, ['buffered'], ['readonly'], op_dtypes='U6')
+ assert_equal(i[0], 'abc')
+ assert_equal(i[0].dtype, np.dtype('U6'))
+
+def test_iter_buffering_growinner():
+ # Test that the inner loop grows when no buffering is needed
+ a = np.arange(30)
+ i = nditer(a, ['buffered', 'growinner', 'external_loop'],
+ buffersize=5)
+ # Should end up with just one inner loop here
+ assert_equal(i[0].size, a.size)
+
+
+@pytest.mark.parametrize("read_or_readwrite", ["readonly", "readwrite"])
+def test_iter_contig_flag_reduce_error(read_or_readwrite):
+ # Test that a non-contiguous operand is rejected without buffering.
+ # NOTE: This is true even for a reduction, where we return a 0-stride
+ # below!
+ with pytest.raises(TypeError, match="Iterator operand required buffering"):
+ it = np.nditer(
+ (np.zeros(()),), flags=["external_loop", "reduce_ok"],
+ op_flags=[(read_or_readwrite, "contig"),], itershape=(10,))
+
+
+@pytest.mark.parametrize("arr", [
+ lambda: np.zeros(()),
+ lambda: np.zeros((20, 1))[::20],
+ lambda: np.zeros((1, 20))[:, ::20]
+ ])
+def test_iter_contig_flag_single_operand_strides(arr):
+ """
+ Tests the strides with the contig flag for both broadcast and non-broadcast
+ operands in 3 cases where the logic is needed:
+ 1. When everything has a zero stride, the broadcast op needs to repeated
+ 2. When the reduce axis is the last axis (first to iterate).
+ 3. When the reduce axis is the first axis (last to iterate).
+
+ NOTE: The semantics of the cast flag are not clearly defined when
+ it comes to reduction. It is unclear that there are any users.
+ """
+ first_op = np.ones((10, 10))
+ broadcast_op = arr()
+ red_op = arr()
+ # Add a first operand to ensure no axis-reordering and the result shape.
+ iterator = np.nditer(
+ (first_op, broadcast_op, red_op),
+ flags=["external_loop", "reduce_ok", "buffered", "delay_bufalloc"],
+ op_flags=[("readonly", "contig")] * 2 + [("readwrite", "contig")])
+
+ with iterator:
+ iterator.reset()
+ for f, b, r in iterator:
+ # The first operand is contigouos, we should have a view
+ assert np.shares_memory(f, first_op)
+ # Although broadcast, the second op always has a contiguous stride
+ assert b.strides[0] == 8
+ assert not np.shares_memory(b, broadcast_op)
+ # The reduction has a contiguous stride or a 0 stride
+ if red_op.ndim == 0 or red_op.shape[-1] == 1:
+ assert r.strides[0] == 0
+ else:
+ # The stride is 8, although it was not originally:
+ assert r.strides[0] == 8
+ # If the reduce stride is 0, buffering makes no difference, but we
+ # do it anyway right now:
+ assert not np.shares_memory(r, red_op)
+
+
+@pytest.mark.xfail(reason="The contig flag was always buggy.")
+def test_iter_contig_flag_incorrect():
+ # This case does the wrong thing...
+ iterator = np.nditer(
+ (np.ones((10, 10)).T, np.ones((1, 10))),
+ flags=["external_loop", "reduce_ok", "buffered", "delay_bufalloc"],
+ op_flags=[("readonly", "contig")] * 2)
+
+ with iterator:
+ iterator.reset()
+ for a, b in iterator:
+ # Remove a and b from locals (pytest may want to format them)
+ a, b = a.strides, b.strides
+ assert a == 8
+ assert b == 8 # should be 8 but is 0 due to axis reorder
+
+
+@pytest.mark.slow
+def test_iter_buffered_reduce_reuse():
+ # large enough array for all views, including negative strides.
+ a = np.arange(2 * 3**5)[3**5:3**5 + 1]
+ flags = ['buffered', 'delay_bufalloc', 'multi_index', 'reduce_ok', 'refs_ok']
+ op_flags = [('readonly',), ('readwrite', 'allocate')]
+ op_axes_list = [[(0, 1, 2), (0, 1, -1)], [(0, 1, 2), (0, -1, -1)]]
+ # wrong dtype to force buffering
+ op_dtypes = [float, a.dtype]
+
+ def get_params():
+ for xs in range(-3**2, 3**2 + 1):
+ for ys in range(xs, 3**2 + 1):
+ for op_axes in op_axes_list:
+ # last stride is reduced and because of that not
+ # important for this test, as it is the inner stride.
+ strides = (xs * a.itemsize, ys * a.itemsize, a.itemsize)
+ arr = np.lib.stride_tricks.as_strided(a, (3, 3, 3), strides)
+
+ for skip in [0, 1]:
+ yield arr, op_axes, skip
+
+ for arr, op_axes, skip in get_params():
+ nditer2 = np.nditer([arr.copy(), None],
+ op_axes=op_axes, flags=flags, op_flags=op_flags,
+ op_dtypes=op_dtypes)
+ with nditer2:
+ nditer2.operands[-1][...] = 0
+ nditer2.reset()
+ nditer2.iterindex = skip
+
+ for (a2_in, b2_in) in nditer2:
+ b2_in += a2_in.astype(np.int_)
+
+ comp_res = nditer2.operands[-1]
+
+ for bufsize in range(3**3):
+ nditer1 = np.nditer([arr, None],
+ op_axes=op_axes, flags=flags, op_flags=op_flags,
+ buffersize=bufsize, op_dtypes=op_dtypes)
+ with nditer1:
+ nditer1.operands[-1][...] = 0
+ nditer1.reset()
+ nditer1.iterindex = skip
+
+ for (a1_in, b1_in) in nditer1:
+ b1_in += a1_in.astype(np.int_)
+
+ res = nditer1.operands[-1]
+ assert_array_equal(res, comp_res)
+
+
+def test_iter_buffered_reduce_reuse_core():
+ # NumPy re-uses buffers for broadcast operands (as of writing when reading).
+ # Test this even if the offset is manually set at some point during
+ # the iteration. (not a particularly tricky path)
+ arr = np.empty((1, 6, 4, 1)).reshape(1, 6, 4, 1)[:, ::3, ::2, :]
+ arr[...] = np.arange(arr.size).reshape(arr.shape)
+ # First and last dimension are broadcast dimensions.
+ arr = np.broadcast_to(arr, (100, 2, 2, 2))
+
+ flags = ['buffered', 'reduce_ok', 'refs_ok', 'multi_index']
+ op_flags = [('readonly',)]
+
+ buffersize = 100 # small enough to not fit the whole array
+ it = np.nditer(arr, flags=flags, op_flags=op_flags, buffersize=100)
+
+ # Iterate a bit (this will cause buffering internally)
+ expected = [next(it) for i in range(11)]
+ # Now, manually advance to inside the core (the +1)
+ it.iterindex = 10 * (2 * 2 * 2) + 1
+ result = [next(it) for i in range(10)]
+
+ assert expected[1:] == result
+
+
+def test_iter_no_broadcast():
+ # Test that the no_broadcast flag works
+ a = np.arange(24).reshape(2, 3, 4)
+ b = np.arange(6).reshape(2, 3, 1)
+ c = np.arange(12).reshape(3, 4)
+
+ nditer([a, b, c], [],
+ [['readonly', 'no_broadcast'],
+ ['readonly'], ['readonly']])
+ assert_raises(ValueError, nditer, [a, b, c], [],
+ [['readonly'], ['readonly', 'no_broadcast'], ['readonly']])
+ assert_raises(ValueError, nditer, [a, b, c], [],
+ [['readonly'], ['readonly'], ['readonly', 'no_broadcast']])
+
+
+class TestIterNested:
+
+ def test_basic(self):
+ # Test nested iteration basic usage
+ a = arange(12).reshape(2, 3, 2)
+
+ i, j = np.nested_iters(a, [[0], [1, 2]])
+ vals = [list(j) for _ in i]
+ assert_equal(vals, [[0, 1, 2, 3, 4, 5], [6, 7, 8, 9, 10, 11]])
+
+ i, j = np.nested_iters(a, [[0, 1], [2]])
+ vals = [list(j) for _ in i]
+ assert_equal(vals, [[0, 1], [2, 3], [4, 5], [6, 7], [8, 9], [10, 11]])
+
+ i, j = np.nested_iters(a, [[0, 2], [1]])
+ vals = [list(j) for _ in i]
+ assert_equal(vals, [[0, 2, 4], [1, 3, 5], [6, 8, 10], [7, 9, 11]])
+
+ def test_reorder(self):
+ # Test nested iteration basic usage
+ a = arange(12).reshape(2, 3, 2)
+
+ # In 'K' order (default), it gets reordered
+ i, j = np.nested_iters(a, [[0], [2, 1]])
+ vals = [list(j) for _ in i]
+ assert_equal(vals, [[0, 1, 2, 3, 4, 5], [6, 7, 8, 9, 10, 11]])
+
+ i, j = np.nested_iters(a, [[1, 0], [2]])
+ vals = [list(j) for _ in i]
+ assert_equal(vals, [[0, 1], [2, 3], [4, 5], [6, 7], [8, 9], [10, 11]])
+
+ i, j = np.nested_iters(a, [[2, 0], [1]])
+ vals = [list(j) for _ in i]
+ assert_equal(vals, [[0, 2, 4], [1, 3, 5], [6, 8, 10], [7, 9, 11]])
+
+ # In 'C' order, it doesn't
+ i, j = np.nested_iters(a, [[0], [2, 1]], order='C')
+ vals = [list(j) for _ in i]
+ assert_equal(vals, [[0, 2, 4, 1, 3, 5], [6, 8, 10, 7, 9, 11]])
+
+ i, j = np.nested_iters(a, [[1, 0], [2]], order='C')
+ vals = [list(j) for _ in i]
+ assert_equal(vals, [[0, 1], [6, 7], [2, 3], [8, 9], [4, 5], [10, 11]])
+
+ i, j = np.nested_iters(a, [[2, 0], [1]], order='C')
+ vals = [list(j) for _ in i]
+ assert_equal(vals, [[0, 2, 4], [6, 8, 10], [1, 3, 5], [7, 9, 11]])
+
+ def test_flip_axes(self):
+ # Test nested iteration with negative axes
+ a = arange(12).reshape(2, 3, 2)[::-1, ::-1, ::-1]
+
+ # In 'K' order (default), the axes all get flipped
+ i, j = np.nested_iters(a, [[0], [1, 2]])
+ vals = [list(j) for _ in i]
+ assert_equal(vals, [[0, 1, 2, 3, 4, 5], [6, 7, 8, 9, 10, 11]])
+
+ i, j = np.nested_iters(a, [[0, 1], [2]])
+ vals = [list(j) for _ in i]
+ assert_equal(vals, [[0, 1], [2, 3], [4, 5], [6, 7], [8, 9], [10, 11]])
+
+ i, j = np.nested_iters(a, [[0, 2], [1]])
+ vals = [list(j) for _ in i]
+ assert_equal(vals, [[0, 2, 4], [1, 3, 5], [6, 8, 10], [7, 9, 11]])
+
+ # In 'C' order, flipping axes is disabled
+ i, j = np.nested_iters(a, [[0], [1, 2]], order='C')
+ vals = [list(j) for _ in i]
+ assert_equal(vals, [[11, 10, 9, 8, 7, 6], [5, 4, 3, 2, 1, 0]])
+
+ i, j = np.nested_iters(a, [[0, 1], [2]], order='C')
+ vals = [list(j) for _ in i]
+ assert_equal(vals, [[11, 10], [9, 8], [7, 6], [5, 4], [3, 2], [1, 0]])
+
+ i, j = np.nested_iters(a, [[0, 2], [1]], order='C')
+ vals = [list(j) for _ in i]
+ assert_equal(vals, [[11, 9, 7], [10, 8, 6], [5, 3, 1], [4, 2, 0]])
+
+ def test_broadcast(self):
+ # Test nested iteration with broadcasting
+ a = arange(2).reshape(2, 1)
+ b = arange(3).reshape(1, 3)
+
+ i, j = np.nested_iters([a, b], [[0], [1]])
+ vals = [list(j) for _ in i]
+ assert_equal(vals, [[[0, 0], [0, 1], [0, 2]], [[1, 0], [1, 1], [1, 2]]])
+
+ i, j = np.nested_iters([a, b], [[1], [0]])
+ vals = [list(j) for _ in i]
+ assert_equal(vals, [[[0, 0], [1, 0]], [[0, 1], [1, 1]], [[0, 2], [1, 2]]])
+
+ def test_dtype_copy(self):
+ # Test nested iteration with a copy to change dtype
+
+ # copy
+ a = arange(6, dtype='i4').reshape(2, 3)
+ i, j = np.nested_iters(a, [[0], [1]],
+ op_flags=['readonly', 'copy'],
+ op_dtypes='f8')
+ assert_equal(j[0].dtype, np.dtype('f8'))
+ vals = [list(j) for _ in i]
+ assert_equal(vals, [[0, 1, 2], [3, 4, 5]])
+ vals = None
+
+ # writebackifcopy - using context manager
+ a = arange(6, dtype='f4').reshape(2, 3)
+ i, j = np.nested_iters(a, [[0], [1]],
+ op_flags=['readwrite', 'updateifcopy'],
+ casting='same_kind',
+ op_dtypes='f8')
+ with i, j:
+ assert_equal(j[0].dtype, np.dtype('f8'))
+ for x in i:
+ for y in j:
+ y[...] += 1
+ assert_equal(a, [[0, 1, 2], [3, 4, 5]])
+ assert_equal(a, [[1, 2, 3], [4, 5, 6]])
+
+ # writebackifcopy - using close()
+ a = arange(6, dtype='f4').reshape(2, 3)
+ i, j = np.nested_iters(a, [[0], [1]],
+ op_flags=['readwrite', 'updateifcopy'],
+ casting='same_kind',
+ op_dtypes='f8')
+ assert_equal(j[0].dtype, np.dtype('f8'))
+ for x in i:
+ for y in j:
+ y[...] += 1
+ assert_equal(a, [[0, 1, 2], [3, 4, 5]])
+ i.close()
+ j.close()
+ assert_equal(a, [[1, 2, 3], [4, 5, 6]])
+
+ def test_dtype_buffered(self):
+ # Test nested iteration with buffering to change dtype
+
+ a = arange(6, dtype='f4').reshape(2, 3)
+ i, j = np.nested_iters(a, [[0], [1]],
+ flags=['buffered'],
+ op_flags=['readwrite'],
+ casting='same_kind',
+ op_dtypes='f8')
+ assert_equal(j[0].dtype, np.dtype('f8'))
+ for x in i:
+ for y in j:
+ y[...] += 1
+ assert_equal(a, [[1, 2, 3], [4, 5, 6]])
+
+ def test_0d(self):
+ a = np.arange(12).reshape(2, 3, 2)
+ i, j = np.nested_iters(a, [[], [1, 0, 2]])
+ vals = [list(j) for _ in i]
+ assert_equal(vals, [[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]])
+
+ i, j = np.nested_iters(a, [[1, 0, 2], []])
+ vals = [list(j) for _ in i]
+ assert_equal(vals, [[0], [1], [2], [3], [4], [5], [6], [7], [8], [9], [10], [11]])
+
+ i, j, k = np.nested_iters(a, [[2, 0], [], [1]])
+ vals = []
+ for x in i:
+ for y in j:
+ vals.append(list(k))
+ assert_equal(vals, [[0, 2, 4], [1, 3, 5], [6, 8, 10], [7, 9, 11]])
+
+ def test_iter_nested_iters_dtype_buffered(self):
+ # Test nested iteration with buffering to change dtype
+
+ a = arange(6, dtype='f4').reshape(2, 3)
+ i, j = np.nested_iters(a, [[0], [1]],
+ flags=['buffered'],
+ op_flags=['readwrite'],
+ casting='same_kind',
+ op_dtypes='f8')
+ with i, j:
+ assert_equal(j[0].dtype, np.dtype('f8'))
+ for x in i:
+ for y in j:
+ y[...] += 1
+ assert_equal(a, [[1, 2, 3], [4, 5, 6]])
+
+def test_iter_reduction_error():
+
+ a = np.arange(6)
+ assert_raises(ValueError, nditer, [a, None], [],
+ [['readonly'], ['readwrite', 'allocate']],
+ op_axes=[[0], [-1]])
+
+ a = np.arange(6).reshape(2, 3)
+ assert_raises(ValueError, nditer, [a, None], ['external_loop'],
+ [['readonly'], ['readwrite', 'allocate']],
+ op_axes=[[0, 1], [-1, -1]])
+
+def test_iter_reduction():
+ # Test doing reductions with the iterator
+
+ a = np.arange(6)
+ i = nditer([a, None], ['reduce_ok'],
+ [['readonly'], ['readwrite', 'allocate']],
+ op_axes=[[0], [-1]])
+ # Need to initialize the output operand to the addition unit
+ with i:
+ i.operands[1][...] = 0
+ # Do the reduction
+ for x, y in i:
+ y[...] += x
+ # Since no axes were specified, should have allocated a scalar
+ assert_equal(i.operands[1].ndim, 0)
+ assert_equal(i.operands[1], np.sum(a))
+
+ a = np.arange(6).reshape(2, 3)
+ i = nditer([a, None], ['reduce_ok', 'external_loop'],
+ [['readonly'], ['readwrite', 'allocate']],
+ op_axes=[[0, 1], [-1, -1]])
+ # Need to initialize the output operand to the addition unit
+ with i:
+ i.operands[1][...] = 0
+ # Reduction shape/strides for the output
+ assert_equal(i[1].shape, (6,))
+ assert_equal(i[1].strides, (0,))
+ # Do the reduction
+ for x, y in i:
+ # Use a for loop instead of ``y[...] += x``
+ # (equivalent to ``y[...] = y[...].copy() + x``),
+ # because y has zero strides we use for the reduction
+ for j in range(len(y)):
+ y[j] += x[j]
+ # Since no axes were specified, should have allocated a scalar
+ assert_equal(i.operands[1].ndim, 0)
+ assert_equal(i.operands[1], np.sum(a))
+
+ # This is a tricky reduction case for the buffering double loop
+ # to handle
+ a = np.ones((2, 3, 5))
+ it1 = nditer([a, None], ['reduce_ok', 'external_loop'],
+ [['readonly'], ['readwrite', 'allocate']],
+ op_axes=[None, [0, -1, 1]])
+ it2 = nditer([a, None], ['reduce_ok', 'external_loop',
+ 'buffered', 'delay_bufalloc'],
+ [['readonly'], ['readwrite', 'allocate']],
+ op_axes=[None, [0, -1, 1]], buffersize=10)
+ with it1, it2:
+ it1.operands[1].fill(0)
+ it2.operands[1].fill(0)
+ it2.reset()
+ for x in it1:
+ x[1][...] += x[0]
+ for x in it2:
+ x[1][...] += x[0]
+ assert_equal(it1.operands[1], it2.operands[1])
+ assert_equal(it2.operands[1].sum(), a.size)
+
+def test_iter_buffering_reduction():
+ # Test doing buffered reductions with the iterator
+
+ a = np.arange(6)
+ b = np.array(0., dtype='f8').byteswap()
+ b = b.view(b.dtype.newbyteorder())
+ i = nditer([a, b], ['reduce_ok', 'buffered'],
+ [['readonly'], ['readwrite', 'nbo']],
+ op_axes=[[0], [-1]])
+ with i:
+ assert_equal(i[1].dtype, np.dtype('f8'))
+ assert_(i[1].dtype != b.dtype)
+ # Do the reduction
+ for x, y in i:
+ y[...] += x
+ # Since no axes were specified, should have allocated a scalar
+ assert_equal(b, np.sum(a))
+
+ a = np.arange(6).reshape(2, 3)
+ b = np.array([0, 0], dtype='f8').byteswap()
+ b = b.view(b.dtype.newbyteorder())
+ i = nditer([a, b], ['reduce_ok', 'external_loop', 'buffered'],
+ [['readonly'], ['readwrite', 'nbo']],
+ op_axes=[[0, 1], [0, -1]])
+ # Reduction shape/strides for the output
+ with i:
+ assert_equal(i[1].shape, (3,))
+ assert_equal(i[1].strides, (0,))
+ # Do the reduction
+ for x, y in i:
+ # Use a for loop instead of ``y[...] += x``
+ # (equivalent to ``y[...] = y[...].copy() + x``),
+ # because y has zero strides we use for the reduction
+ for j in range(len(y)):
+ y[j] += x[j]
+ assert_equal(b, np.sum(a, axis=1))
+
+ # Iterator inner double loop was wrong on this one
+ p = np.arange(2) + 1
+ it = np.nditer([p, None],
+ ['delay_bufalloc', 'reduce_ok', 'buffered', 'external_loop'],
+ [['readonly'], ['readwrite', 'allocate']],
+ op_axes=[[-1, 0], [-1, -1]],
+ itershape=(2, 2))
+ with it:
+ it.operands[1].fill(0)
+ it.reset()
+ assert_equal(it[0], [1, 2, 1, 2])
+
+ # Iterator inner loop should take argument contiguity into account
+ x = np.ones((7, 13, 8), np.int8)[4:6, 1:11:6, 1:5].transpose(1, 2, 0)
+ x[...] = np.arange(x.size).reshape(x.shape)
+ y_base = np.arange(4 * 4, dtype=np.int8).reshape(4, 4)
+ y_base_copy = y_base.copy()
+ y = y_base[::2, :, None]
+
+ it = np.nditer([y, x],
+ ['buffered', 'external_loop', 'reduce_ok'],
+ [['readwrite'], ['readonly']])
+ with it:
+ for a, b in it:
+ a.fill(2)
+
+ assert_equal(y_base[1::2], y_base_copy[1::2])
+ assert_equal(y_base[::2], 2)
+
+def test_iter_buffering_reduction_reuse_reduce_loops():
+ # There was a bug triggering reuse of the reduce loop inappropriately,
+ # which caused processing to happen in unnecessarily small chunks
+ # and overran the buffer.
+
+ a = np.zeros((2, 7))
+ b = np.zeros((1, 7))
+ it = np.nditer([a, b], flags=['reduce_ok', 'external_loop', 'buffered'],
+ op_flags=[['readonly'], ['readwrite']],
+ buffersize=5)
+
+ with it:
+ bufsizes = [x.shape[0] for x, y in it]
+ assert_equal(bufsizes, [5, 2, 5, 2])
+ assert_equal(sum(bufsizes), a.size)
+
+def test_iter_writemasked_badinput():
+ a = np.zeros((2, 3))
+ b = np.zeros((3,))
+ m = np.array([[True, True, False], [False, True, False]])
+ m2 = np.array([True, True, False])
+ m3 = np.array([0, 1, 1], dtype='u1')
+ mbad1 = np.array([0, 1, 1], dtype='i1')
+ mbad2 = np.array([0, 1, 1], dtype='f4')
+
+ # Need an 'arraymask' if any operand is 'writemasked'
+ assert_raises(ValueError, nditer, [a, m], [],
+ [['readwrite', 'writemasked'], ['readonly']])
+
+ # A 'writemasked' operand must not be readonly
+ assert_raises(ValueError, nditer, [a, m], [],
+ [['readonly', 'writemasked'], ['readonly', 'arraymask']])
+
+ # 'writemasked' and 'arraymask' may not be used together
+ assert_raises(ValueError, nditer, [a, m], [],
+ [['readonly'], ['readwrite', 'arraymask', 'writemasked']])
+
+ # 'arraymask' may only be specified once
+ assert_raises(ValueError, nditer, [a, m, m2], [],
+ [['readwrite', 'writemasked'],
+ ['readonly', 'arraymask'],
+ ['readonly', 'arraymask']])
+
+ # An 'arraymask' with nothing 'writemasked' also doesn't make sense
+ assert_raises(ValueError, nditer, [a, m], [],
+ [['readwrite'], ['readonly', 'arraymask']])
+
+ # A writemasked reduction requires a similarly smaller mask
+ assert_raises(ValueError, nditer, [a, b, m], ['reduce_ok'],
+ [['readonly'],
+ ['readwrite', 'writemasked'],
+ ['readonly', 'arraymask']])
+ # But this should work with a smaller/equal mask to the reduction operand
+ np.nditer([a, b, m2], ['reduce_ok'],
+ [['readonly'],
+ ['readwrite', 'writemasked'],
+ ['readonly', 'arraymask']])
+ # The arraymask itself cannot be a reduction
+ assert_raises(ValueError, nditer, [a, b, m2], ['reduce_ok'],
+ [['readonly'],
+ ['readwrite', 'writemasked'],
+ ['readwrite', 'arraymask']])
+
+ # A uint8 mask is ok too
+ np.nditer([a, m3], ['buffered'],
+ [['readwrite', 'writemasked'],
+ ['readonly', 'arraymask']],
+ op_dtypes=['f4', None],
+ casting='same_kind')
+ # An int8 mask isn't ok
+ assert_raises(TypeError, np.nditer, [a, mbad1], ['buffered'],
+ [['readwrite', 'writemasked'],
+ ['readonly', 'arraymask']],
+ op_dtypes=['f4', None],
+ casting='same_kind')
+ # A float32 mask isn't ok
+ assert_raises(TypeError, np.nditer, [a, mbad2], ['buffered'],
+ [['readwrite', 'writemasked'],
+ ['readonly', 'arraymask']],
+ op_dtypes=['f4', None],
+ casting='same_kind')
+
+
+def _is_buffered(iterator):
+ try:
+ iterator.itviews
+ except ValueError:
+ return True
+ return False
+
+@pytest.mark.parametrize("arrs",
+ [np.zeros((3,), dtype='f8'),
+ np.zeros((9876, 3 * 5), dtype='f8')[::2, :],
+ np.zeros((4, 312, 124, 3), dtype='f8')[::2, :, ::2, :],
+ # Also test with the last dimension strided (so it does not fit if
+ # there is repeated access)
+ np.zeros((9,), dtype='f8')[::3],
+ np.zeros((9876, 3 * 10), dtype='f8')[::2, ::5],
+ np.zeros((4, 312, 124, 3), dtype='f8')[::2, :, ::2, ::-1]])
+def test_iter_writemasked(arrs):
+ # Note, the slicing above is to ensure that nditer cannot combine multiple
+ # axes into one. The repetition is just to make things a bit more
+ # interesting.
+ a = arrs.copy()
+ shape = a.shape
+ reps = shape[-1] // 3
+ msk = np.empty(shape, dtype=bool)
+ msk[...] = [True, True, False] * reps
+
+ # When buffering is unused, 'writemasked' effectively does nothing.
+ # It's up to the user of the iterator to obey the requested semantics.
+ it = np.nditer([a, msk], [],
+ [['readwrite', 'writemasked'],
+ ['readonly', 'arraymask']])
+ with it:
+ for x, m in it:
+ x[...] = 1
+ # Because we violated the semantics, all the values became 1
+ assert_equal(a, np.broadcast_to([1, 1, 1] * reps, shape))
+
+ # Even if buffering is enabled, we still may be accessing the array
+ # directly.
+ it = np.nditer([a, msk], ['buffered'],
+ [['readwrite', 'writemasked'],
+ ['readonly', 'arraymask']])
+ # @seberg: I honestly don't currently understand why a "buffered" iterator
+ # would end up not using a buffer for the small array here at least when
+ # "writemasked" is used, that seems confusing... Check by testing for
+ # actual memory overlap!
+ is_buffered = True
+ with it:
+ for x, m in it:
+ x[...] = 2.5
+ if np.may_share_memory(x, a):
+ is_buffered = False
+
+ if not is_buffered:
+ # Because we violated the semantics, all the values became 2.5
+ assert_equal(a, np.broadcast_to([2.5, 2.5, 2.5] * reps, shape))
+ else:
+ # For large sizes, the iterator may be buffered:
+ assert_equal(a, np.broadcast_to([2.5, 2.5, 1] * reps, shape))
+ a[...] = 2.5
+
+ # If buffering will definitely happening, for instance because of
+ # a cast, only the items selected by the mask will be copied back from
+ # the buffer.
+ it = np.nditer([a, msk], ['buffered'],
+ [['readwrite', 'writemasked'],
+ ['readonly', 'arraymask']],
+ op_dtypes=['i8', None],
+ casting='unsafe')
+ with it:
+ for x, m in it:
+ x[...] = 3
+ # Even though we violated the semantics, only the selected values
+ # were copied back
+ assert_equal(a, np.broadcast_to([3, 3, 2.5] * reps, shape))
+
+
+@pytest.mark.parametrize(["mask", "mask_axes"], [
+ # Allocated operand (only broadcasts with -1)
+ (None, [-1, 0]),
+ # Reduction along the first dimension (with and without op_axes)
+ (np.zeros((1, 4), dtype="bool"), [0, 1]),
+ (np.zeros((1, 4), dtype="bool"), None),
+ # Test 0-D and -1 op_axes
+ (np.zeros(4, dtype="bool"), [-1, 0]),
+ (np.zeros((), dtype="bool"), [-1, -1]),
+ (np.zeros((), dtype="bool"), None)])
+def test_iter_writemasked_broadcast_error(mask, mask_axes):
+ # This assumes that a readwrite mask makes sense. This is likely not the
+ # case and should simply be deprecated.
+ arr = np.zeros((3, 4))
+ itflags = ["reduce_ok"]
+ mask_flags = ["arraymask", "readwrite", "allocate"]
+ a_flags = ["writeonly", "writemasked"]
+ if mask_axes is None:
+ op_axes = None
+ else:
+ op_axes = [mask_axes, [0, 1]]
+
+ with assert_raises(ValueError):
+ np.nditer((mask, arr), flags=itflags, op_flags=[mask_flags, a_flags],
+ op_axes=op_axes)
+
+
+def test_iter_writemasked_decref():
+ # force casting (to make it interesting) by using a structured dtype.
+ arr = np.arange(10000).astype(">i,O")
+ original = arr.copy()
+ mask = np.random.randint(0, 2, size=10000).astype(bool)
+
+ it = np.nditer([arr, mask], ['buffered', "refs_ok"],
+ [['readwrite', 'writemasked'],
+ ['readonly', 'arraymask']],
+ op_dtypes=[" string -> longdouble` for the
+ # conversion. But Python may refuse `str(int)` for huge ints.
+ # In that case, RuntimeWarning would be correct, but conversion
+ # fails earlier (seems to happen on 32bit linux, possibly only debug).
+ if dtype in "gG":
+ try:
+ str(too_big_int)
+ except ValueError:
+ pytest.skip("`huge_int -> string -> longdouble` failed")
+
+ # Otherwise, we overflow to infinity:
+ with pytest.warns(RuntimeWarning):
+ res = scalar_type(1) + too_big_int
+ assert res.dtype == dtype
+ assert res == np.inf
+
+ with pytest.warns(RuntimeWarning):
+ # We force the dtype here, since windows may otherwise pick the
+ # double instead of the longdouble loop. That leads to slightly
+ # different results (conversion of the int fails as above).
+ res = np.add(np.array(1, dtype=dtype), too_big_int, dtype=dtype)
+ assert res.dtype == dtype
+ assert res == np.inf
+
+
+@pytest.mark.parametrize("op", [operator.add, operator.pow])
+def test_weak_promotion_scalar_path(op):
+ # Some additional paths exercising the weak scalars.
+
+ # Integer path:
+ res = op(np.uint8(3), 5)
+ assert res == op(3, 5)
+ assert res.dtype == np.uint8 or res.dtype == bool # noqa: PLR1714
+
+ with pytest.raises(OverflowError):
+ op(np.uint8(3), 1000)
+
+ # Float path:
+ res = op(np.float32(3), 5.)
+ assert res == op(3., 5.)
+ assert res.dtype == np.float32 or res.dtype == bool # noqa: PLR1714
+
+
+def test_nep50_complex_promotion():
+ with pytest.warns(RuntimeWarning, match=".*overflow"):
+ res = np.complex64(3) + complex(2**300)
+
+ assert type(res) == np.complex64
+
+
+def test_nep50_integer_conversion_errors():
+ # Implementation for error paths is mostly missing (as of writing)
+ with pytest.raises(OverflowError, match=".*uint8"):
+ np.array([1], np.uint8) + 300
+
+ with pytest.raises(OverflowError, match=".*uint8"):
+ np.uint8(1) + 300
+
+ # Error message depends on platform (maybe unsigned int or unsigned long)
+ with pytest.raises(OverflowError,
+ match="Python integer -1 out of bounds for uint8"):
+ np.uint8(1) + -1
+
+
+def test_nep50_with_axisconcatenator():
+ # Concatenate/r_ does not promote, so this has to error:
+ with pytest.raises(OverflowError):
+ np.r_[np.arange(5, dtype=np.int8), 255]
+
+
+@pytest.mark.parametrize("ufunc", [np.add, np.power])
+def test_nep50_huge_integers(ufunc):
+ # Very large integers are complicated, because they go to uint64 or
+ # object dtype. This tests covers a few possible paths.
+ with pytest.raises(OverflowError):
+ ufunc(np.int64(0), 2**63) # 2**63 too large for int64
+
+ with pytest.raises(OverflowError):
+ ufunc(np.uint64(0), 2**64) # 2**64 cannot be represented by uint64
+
+ # However, 2**63 can be represented by the uint64 (and that is used):
+ res = ufunc(np.uint64(1), 2**63)
+
+ assert res.dtype == np.uint64
+ assert res == ufunc(1, 2**63, dtype=object)
+
+ # The following paths fail to warn correctly about the change:
+ with pytest.raises(OverflowError):
+ ufunc(np.int64(1), 2**63) # np.array(2**63) would go to uint
+
+ with pytest.raises(OverflowError):
+ ufunc(np.int64(1), 2**100) # np.array(2**100) would go to object
+
+ # This would go to object and thus a Python float, not a NumPy one:
+ res = ufunc(1.0, 2**100)
+ assert isinstance(res, np.float64)
+
+
+def test_nep50_in_concat_and_choose():
+ res = np.concatenate([np.float32(1), 1.], axis=None)
+ assert res.dtype == "float32"
+
+ res = np.choose(1, [np.float32(1), 1.])
+ assert res.dtype == "float32"
+
+
+@pytest.mark.parametrize("expected,dtypes,optional_dtypes", [
+ (np.float32, [np.float32],
+ [np.float16, 0.0, np.uint16, np.int16, np.int8, 0]),
+ (np.complex64, [np.float32, 0j],
+ [np.float16, 0.0, np.uint16, np.int16, np.int8, 0]),
+ (np.float32, [np.int16, np.uint16, np.float16],
+ [np.int8, np.uint8, np.float32, 0., 0]),
+ (np.int32, [np.int16, np.uint16],
+ [np.int8, np.uint8, 0, np.bool]),
+ ])
+@hypothesis.given(data=strategies.data())
+def test_expected_promotion(expected, dtypes, optional_dtypes, data):
+ # Sample randomly while ensuring "dtypes" is always present:
+ optional = data.draw(strategies.lists(
+ strategies.sampled_from(dtypes + optional_dtypes)))
+ all_dtypes = dtypes + optional
+ dtypes_sample = data.draw(strategies.permutations(all_dtypes))
+
+ res = np.result_type(*dtypes_sample)
+ assert res == expected
+
+
+@pytest.mark.parametrize("sctype",
+ [np.int8, np.int16, np.int32, np.int64,
+ np.uint8, np.uint16, np.uint32, np.uint64])
+@pytest.mark.parametrize("other_val",
+ [-2 * 100, -1, 0, 9, 10, 11, 2**63, 2 * 100])
+@pytest.mark.parametrize("comp",
+ [operator.eq, operator.ne, operator.le, operator.lt,
+ operator.ge, operator.gt])
+def test_integer_comparison(sctype, other_val, comp):
+ # Test that comparisons with integers (especially out-of-bound) ones
+ # works correctly.
+ val_obj = 10
+ val = sctype(val_obj)
+ # Check that the scalar behaves the same as the python int:
+ assert comp(10, other_val) == comp(val, other_val)
+ assert comp(val, other_val) == comp(10, other_val)
+ # Except for the result type:
+ assert type(comp(val, other_val)) is np.bool
+
+ # Check that the integer array and object array behave the same:
+ val_obj = np.array([10, 10], dtype=object)
+ val = val_obj.astype(sctype)
+ assert_array_equal(comp(val_obj, other_val), comp(val, other_val))
+ assert_array_equal(comp(other_val, val_obj), comp(other_val, val))
+
+
+@pytest.mark.parametrize("arr", [
+ np.ones((100, 100), dtype=np.uint8)[::2], # not trivially iterable
+ np.ones(20000, dtype=">u4"), # cast and >buffersize
+ np.ones(100, dtype=">u4"), # fast path compatible with cast
+])
+def test_integer_comparison_with_cast(arr):
+ # Similar to above, but mainly test a few cases that cover the slow path
+ # the test is limited to unsigned ints and -1 for simplicity.
+ res = arr >= -1
+ assert_array_equal(res, np.ones_like(arr, dtype=bool))
+ res = arr < -1
+ assert_array_equal(res, np.zeros_like(arr, dtype=bool))
+
+
+@pytest.mark.parametrize("comp",
+ [np.equal, np.not_equal, np.less_equal, np.less,
+ np.greater_equal, np.greater])
+def test_integer_integer_comparison(comp):
+ # Test that the NumPy comparison ufuncs work with large Python integers
+ assert comp(2**200, -2**200) == comp(2**200, -2**200, dtype=object)
+
+
+def create_with_scalar(sctype, value):
+ return sctype(value)
+
+
+def create_with_array(sctype, value):
+ return np.array([value], dtype=sctype)
+
+
+@pytest.mark.parametrize("sctype",
+ [np.int8, np.int16, np.int32, np.int64,
+ np.uint8, np.uint16, np.uint32, np.uint64])
+@pytest.mark.parametrize("create", [create_with_scalar, create_with_array])
+def test_oob_creation(sctype, create):
+ iinfo = np.iinfo(sctype)
+
+ with pytest.raises(OverflowError):
+ create(sctype, iinfo.min - 1)
+
+ with pytest.raises(OverflowError):
+ create(sctype, iinfo.max + 1)
+
+ with pytest.raises(OverflowError):
+ create(sctype, str(iinfo.min - 1))
+
+ with pytest.raises(OverflowError):
+ create(sctype, str(iinfo.max + 1))
+
+ assert create(sctype, iinfo.min) == iinfo.min
+ assert create(sctype, iinfo.max) == iinfo.max
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/test_numeric.py b/python/user_packages/Python313/site-packages/numpy/_core/tests/test_numeric.py
new file mode 100644
index 0000000000000000000000000000000000000000..da87e5c1f3d843a06422af4ef9c35b6c5db0a783
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/tests/test_numeric.py
@@ -0,0 +1,4301 @@
+import inspect
+import itertools
+import math
+import platform
+import sys
+import warnings
+from decimal import Decimal
+
+import pytest
+from hypothesis import given, strategies as st
+from hypothesis.extra import numpy as hynp
+
+import numpy as np
+from numpy import ma
+from numpy._core import sctypes
+from numpy._core._rational_tests import rational
+from numpy._core.numerictypes import obj2sctype
+from numpy.exceptions import AxisError
+from numpy.random import rand, randint, randn
+from numpy.testing import (
+ HAS_REFCOUNT,
+ IS_PYPY,
+ IS_WASM,
+ assert_,
+ assert_almost_equal,
+ assert_array_almost_equal,
+ assert_array_equal,
+ assert_array_max_ulp,
+ assert_equal,
+ assert_raises,
+ assert_raises_regex,
+)
+
+
+class TestResize:
+ def test_copies(self):
+ A = np.array([[1, 2], [3, 4]])
+ Ar1 = np.array([[1, 2, 3, 4], [1, 2, 3, 4]])
+ assert_equal(np.resize(A, (2, 4)), Ar1)
+
+ Ar2 = np.array([[1, 2], [3, 4], [1, 2], [3, 4]])
+ assert_equal(np.resize(A, (4, 2)), Ar2)
+
+ Ar3 = np.array([[1, 2, 3], [4, 1, 2], [3, 4, 1], [2, 3, 4]])
+ assert_equal(np.resize(A, (4, 3)), Ar3)
+
+ def test_repeats(self):
+ A = np.array([1, 2, 3])
+ Ar1 = np.array([[1, 2, 3, 1], [2, 3, 1, 2]])
+ assert_equal(np.resize(A, (2, 4)), Ar1)
+
+ Ar2 = np.array([[1, 2], [3, 1], [2, 3], [1, 2]])
+ assert_equal(np.resize(A, (4, 2)), Ar2)
+
+ Ar3 = np.array([[1, 2, 3], [1, 2, 3], [1, 2, 3], [1, 2, 3]])
+ assert_equal(np.resize(A, (4, 3)), Ar3)
+
+ def test_zeroresize(self):
+ A = np.array([[1, 2], [3, 4]])
+ Ar = np.resize(A, (0,))
+ assert_array_equal(Ar, np.array([]))
+ assert_equal(A.dtype, Ar.dtype)
+
+ Ar = np.resize(A, (0, 2))
+ assert_equal(Ar.shape, (0, 2))
+
+ Ar = np.resize(A, (2, 0))
+ assert_equal(Ar.shape, (2, 0))
+
+ def test_reshape_from_zero(self):
+ # See also gh-6740
+ A = np.zeros(0, dtype=[('a', np.float32)])
+ Ar = np.resize(A, (2, 1))
+ assert_array_equal(Ar, np.zeros((2, 1), Ar.dtype))
+ assert_equal(A.dtype, Ar.dtype)
+
+ def test_negative_resize(self):
+ A = np.arange(0, 10, dtype=np.float32)
+ new_shape = (-10, -1)
+ with pytest.raises(ValueError, match=r"negative"):
+ np.resize(A, new_shape=new_shape)
+
+ def test_unsigned_resize(self):
+ # ensure unsigned integer sizes don't lead to underflows
+ for dt_pair in [(np.int32, np.uint32), (np.int64, np.uint64)]:
+ arr = np.array([[23, 95], [66, 37]])
+ assert_array_equal(np.resize(arr, dt_pair[0](1)),
+ np.resize(arr, dt_pair[1](1)))
+
+ def test_subclass(self):
+ class MyArray(np.ndarray):
+ __array_priority__ = 1.
+
+ my_arr = np.array([1]).view(MyArray)
+ assert type(np.resize(my_arr, 5)) is MyArray
+ assert type(np.resize(my_arr, 0)) is MyArray
+
+ my_arr = np.array([]).view(MyArray)
+ assert type(np.resize(my_arr, 5)) is MyArray
+
+
+class TestNonarrayArgs:
+ # check that non-array arguments to functions wrap them in arrays
+ def test_choose(self):
+ choices = [[0, 1, 2],
+ [3, 4, 5],
+ [5, 6, 7]]
+ tgt = [5, 1, 5]
+ a = [2, 0, 1]
+
+ out = np.choose(a, choices)
+ assert_equal(out, tgt)
+
+ def test_clip(self):
+ arr = [-1, 5, 2, 3, 10, -4, -9]
+ out = np.clip(arr, 2, 7)
+ tgt = [2, 5, 2, 3, 7, 2, 2]
+ assert_equal(out, tgt)
+
+ def test_compress(self):
+ arr = [[0, 1, 2, 3, 4],
+ [5, 6, 7, 8, 9]]
+ tgt = [[5, 6, 7, 8, 9]]
+ out = np.compress([0, 1], arr, axis=0)
+ assert_equal(out, tgt)
+
+ def test_count_nonzero(self):
+ arr = [[0, 1, 7, 0, 0],
+ [3, 0, 0, 2, 19]]
+ tgt = np.array([2, 3])
+ out = np.count_nonzero(arr, axis=1)
+ assert_equal(out, tgt)
+
+ def test_diagonal(self):
+ a = [[0, 1, 2, 3],
+ [4, 5, 6, 7],
+ [8, 9, 10, 11]]
+ out = np.diagonal(a)
+ tgt = [0, 5, 10]
+
+ assert_equal(out, tgt)
+
+ def test_mean(self):
+ A = [[1, 2, 3], [4, 5, 6]]
+ assert_(np.mean(A) == 3.5)
+ assert_(np.all(np.mean(A, 0) == np.array([2.5, 3.5, 4.5])))
+ assert_(np.all(np.mean(A, 1) == np.array([2., 5.])))
+
+ with warnings.catch_warnings(record=True) as w:
+ warnings.filterwarnings('always', '', RuntimeWarning)
+ assert_(np.isnan(np.mean([])))
+ assert_(w[0].category is RuntimeWarning)
+
+ def test_ptp(self):
+ a = [3, 4, 5, 10, -3, -5, 6.0]
+ assert_equal(np.ptp(a, axis=0), 15.0)
+
+ def test_prod(self):
+ arr = [[1, 2, 3, 4],
+ [5, 6, 7, 9],
+ [10, 3, 4, 5]]
+ tgt = [24, 1890, 600]
+
+ assert_equal(np.prod(arr, axis=-1), tgt)
+
+ def test_ravel(self):
+ a = [[1, 2, 3], [4, 5, 6], [7, 8, 9], [10, 11, 12]]
+ tgt = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]
+ assert_equal(np.ravel(a), tgt)
+
+ def test_repeat(self):
+ a = [1, 2, 3]
+ tgt = [1, 1, 2, 2, 3, 3]
+
+ out = np.repeat(a, 2)
+ assert_equal(out, tgt)
+
+ def test_reshape(self):
+ arr = [[1, 2, 3], [4, 5, 6], [7, 8, 9], [10, 11, 12]]
+ tgt = [[1, 2, 3, 4, 5, 6], [7, 8, 9, 10, 11, 12]]
+ assert_equal(np.reshape(arr, (2, 6)), tgt)
+
+ def test_reshape_shape_arg(self):
+ arr = np.arange(12)
+ shape = (3, 4)
+ expected = arr.reshape(shape)
+
+ with pytest.raises(
+ TypeError,
+ match=r"reshape\(\) missing 1 required positional "
+ "argument: 'shape'"
+ ):
+ np.reshape(arr)
+
+ assert_equal(np.reshape(arr, shape), expected)
+ assert_equal(np.reshape(arr, shape, order="C"), expected)
+ assert_equal(np.reshape(arr, shape, "C"), expected)
+ assert_equal(np.reshape(arr, shape=shape), expected)
+ assert_equal(np.reshape(arr, shape=shape, order="C"), expected)
+
+ def test_reshape_copy_arg(self):
+ arr = np.arange(24).reshape(2, 3, 4)
+ arr_f_ord = np.array(arr, order="F")
+ shape = (12, 2)
+
+ assert np.shares_memory(np.reshape(arr, shape), arr)
+ assert np.shares_memory(np.reshape(arr, shape, order="C"), arr)
+ assert np.shares_memory(
+ np.reshape(arr_f_ord, shape, order="F"), arr_f_ord)
+ assert np.shares_memory(np.reshape(arr, shape, copy=None), arr)
+ assert np.shares_memory(np.reshape(arr, shape, copy=False), arr)
+ assert np.shares_memory(arr.reshape(shape, copy=False), arr)
+ assert not np.shares_memory(np.reshape(arr, shape, copy=True), arr)
+ assert not np.shares_memory(
+ np.reshape(arr, shape, order="C", copy=True), arr)
+ assert not np.shares_memory(
+ np.reshape(arr, shape, order="F", copy=True), arr)
+ assert not np.shares_memory(
+ np.reshape(arr, shape, order="F", copy=None), arr)
+
+ err_msg = "Unable to avoid creating a copy while reshaping."
+ with pytest.raises(ValueError, match=err_msg):
+ np.reshape(arr, shape, order="F", copy=False)
+ with pytest.raises(ValueError, match=err_msg):
+ np.reshape(arr_f_ord, shape, order="C", copy=False)
+
+ def test_round(self):
+ arr = [1.56, 72.54, 6.35, 3.25]
+ tgt = [1.6, 72.5, 6.4, 3.2]
+ assert_equal(np.around(arr, decimals=1), tgt)
+ s = np.float64(1.)
+ assert_(isinstance(s.round(), np.float64))
+ assert_equal(s.round(), 1.)
+
+ @pytest.mark.parametrize('dtype', [
+ np.int8, np.int16, np.int32, np.int64,
+ np.uint8, np.uint16, np.uint32, np.uint64,
+ np.float16, np.float32, np.float64,
+ ])
+ def test_dunder_round(self, dtype):
+ s = dtype(1)
+ assert_(isinstance(round(s), int))
+ assert_(isinstance(round(s, None), int))
+ assert_(isinstance(round(s, ndigits=None), int))
+ assert_equal(round(s), 1)
+ assert_equal(round(s, None), 1)
+ assert_equal(round(s, ndigits=None), 1)
+
+ @pytest.mark.parametrize('val, ndigits', [
+ pytest.param(2**31 - 1, -1,
+ marks=pytest.mark.skip(reason="Out of range of int32")
+ ),
+ (2**31 - 1, 1 - math.ceil(math.log10(2**31 - 1))),
+ (2**31 - 1, -math.ceil(math.log10(2**31 - 1)))
+ ])
+ def test_dunder_round_edgecases(self, val, ndigits):
+ assert_equal(round(val, ndigits), round(np.int32(val), ndigits))
+
+ def test_dunder_round_accuracy(self):
+ f = np.float64(5.1 * 10**73)
+ assert_(isinstance(round(f, -73), np.float64))
+ assert_array_max_ulp(round(f, -73), 5.0 * 10**73)
+ assert_(isinstance(round(f, ndigits=-73), np.float64))
+ assert_array_max_ulp(round(f, ndigits=-73), 5.0 * 10**73)
+
+ i = np.int64(501)
+ assert_(isinstance(round(i, -2), np.int64))
+ assert_array_max_ulp(round(i, -2), 500)
+ assert_(isinstance(round(i, ndigits=-2), np.int64))
+ assert_array_max_ulp(round(i, ndigits=-2), 500)
+
+ @pytest.mark.xfail(raises=AssertionError, reason="gh-15896")
+ def test_round_py_consistency(self):
+ f = 5.1 * 10**73
+ assert_equal(round(np.float64(f), -73), round(f, -73))
+
+ def test_searchsorted(self):
+ arr = [-8, -5, -1, 3, 6, 10]
+ out = np.searchsorted(arr, 0)
+ assert_equal(out, 3)
+
+ def test_size(self):
+ A = [[1, 2, 3], [4, 5, 6]]
+ assert_(np.size(A) == 6)
+ assert_(np.size(A, 0) == 2)
+ assert_(np.size(A, 1) == 3)
+ assert_(np.size(A, ()) == 1)
+ assert_(np.size(A, (0,)) == 2)
+ assert_(np.size(A, (1,)) == 3)
+ assert_(np.size(A, (0, 1)) == 6)
+
+ def test_squeeze(self):
+ A = [[[1, 1, 1], [2, 2, 2], [3, 3, 3]]]
+ assert_equal(np.squeeze(A).shape, (3, 3))
+ assert_equal(np.squeeze(np.zeros((1, 3, 1))).shape, (3,))
+ assert_equal(np.squeeze(np.zeros((1, 3, 1)), axis=0).shape, (3, 1))
+ assert_equal(np.squeeze(np.zeros((1, 3, 1)), axis=-1).shape, (1, 3))
+ assert_equal(np.squeeze(np.zeros((1, 3, 1)), axis=2).shape, (1, 3))
+ assert_equal(np.squeeze([np.zeros((3, 1))]).shape, (3,))
+ assert_equal(np.squeeze([np.zeros((3, 1))], axis=0).shape, (3, 1))
+ assert_equal(np.squeeze([np.zeros((3, 1))], axis=2).shape, (1, 3))
+ assert_equal(np.squeeze([np.zeros((3, 1))], axis=-1).shape, (1, 3))
+
+ def test_std(self):
+ A = [[1, 2, 3], [4, 5, 6]]
+ assert_almost_equal(np.std(A), 1.707825127659933)
+ assert_almost_equal(np.std(A, 0), np.array([1.5, 1.5, 1.5]))
+ assert_almost_equal(np.std(A, 1), np.array([0.81649658, 0.81649658]))
+
+ with warnings.catch_warnings(record=True) as w:
+ warnings.filterwarnings('always', '', RuntimeWarning)
+ assert_(np.isnan(np.std([])))
+ assert_(w[0].category is RuntimeWarning)
+
+ def test_swapaxes(self):
+ tgt = [[[0, 4], [2, 6]], [[1, 5], [3, 7]]]
+ a = [[[0, 1], [2, 3]], [[4, 5], [6, 7]]]
+ out = np.swapaxes(a, 0, 2)
+ assert_equal(out, tgt)
+
+ def test_sum(self):
+ m = [[1, 2, 3],
+ [4, 5, 6],
+ [7, 8, 9]]
+ tgt = [[6], [15], [24]]
+ out = np.sum(m, axis=1, keepdims=True)
+
+ assert_equal(tgt, out)
+
+ def test_take(self):
+ tgt = [2, 3, 5]
+ indices = [1, 2, 4]
+ a = [1, 2, 3, 4, 5]
+
+ out = np.take(a, indices)
+ assert_equal(out, tgt)
+
+ pairs = [
+ (np.int32, np.int32), (np.int32, np.int64),
+ (np.int64, np.int32), (np.int64, np.int64)
+ ]
+ for array_type, indices_type in pairs:
+ x = np.array([1, 2, 3, 4, 5], dtype=array_type)
+ ind = np.array([0, 2, 2, 3], dtype=indices_type)
+ tgt = np.array([1, 3, 3, 4], dtype=array_type)
+ out = np.take(x, ind)
+ assert_equal(out, tgt)
+ assert_equal(out.dtype, tgt.dtype)
+
+ def test_trace(self):
+ c = [[1, 2], [3, 4], [5, 6]]
+ assert_equal(np.trace(c), 5)
+
+ def test_transpose(self):
+ arr = [[1, 2], [3, 4], [5, 6]]
+ tgt = [[1, 3, 5], [2, 4, 6]]
+ assert_equal(np.transpose(arr, (1, 0)), tgt)
+ assert_equal(np.transpose(arr, (-1, -2)), tgt)
+ assert_equal(np.matrix_transpose(arr), tgt)
+
+ def test_var(self):
+ A = [[1, 2, 3], [4, 5, 6]]
+ assert_almost_equal(np.var(A), 2.9166666666666665)
+ assert_almost_equal(np.var(A, 0), np.array([2.25, 2.25, 2.25]))
+ assert_almost_equal(np.var(A, 1), np.array([0.66666667, 0.66666667]))
+
+ with warnings.catch_warnings(record=True) as w:
+ warnings.filterwarnings('always', '', RuntimeWarning)
+ assert_(np.isnan(np.var([])))
+ assert_(w[0].category is RuntimeWarning)
+
+ B = np.array([None, 0])
+ B[0] = 1j
+ assert_almost_equal(np.var(B), 0.25)
+
+ def test_std_with_mean_keyword(self):
+ # Setting the seed to make the test reproducible
+ rng = np.random.RandomState(1234)
+ A = rng.randn(10, 20, 5) + 0.5
+
+ mean_out = np.zeros((10, 1, 5))
+ std_out = np.zeros((10, 1, 5))
+
+ mean = np.mean(A,
+ out=mean_out,
+ axis=1,
+ keepdims=True)
+
+ # The returned object should be the object specified during calling
+ assert mean_out is mean
+
+ std = np.std(A,
+ out=std_out,
+ axis=1,
+ keepdims=True,
+ mean=mean)
+
+ # The returned object should be the object specified during calling
+ assert std_out is std
+
+ # Shape of returned mean and std should be same
+ assert std.shape == mean.shape
+ assert std.shape == (10, 1, 5)
+
+ # Output should be the same as from the individual algorithms
+ std_old = np.std(A, axis=1, keepdims=True)
+
+ assert std_old.shape == mean.shape
+ assert_almost_equal(std, std_old)
+
+ def test_var_with_mean_keyword(self):
+ # Setting the seed to make the test reproducible
+ rng = np.random.RandomState(1234)
+ A = rng.randn(10, 20, 5) + 0.5
+
+ mean_out = np.zeros((10, 1, 5))
+ var_out = np.zeros((10, 1, 5))
+
+ mean = np.mean(A,
+ out=mean_out,
+ axis=1,
+ keepdims=True)
+
+ # The returned object should be the object specified during calling
+ assert mean_out is mean
+
+ var = np.var(A,
+ out=var_out,
+ axis=1,
+ keepdims=True,
+ mean=mean)
+
+ # The returned object should be the object specified during calling
+ assert var_out is var
+
+ # Shape of returned mean and var should be same
+ assert var.shape == mean.shape
+ assert var.shape == (10, 1, 5)
+
+ # Output should be the same as from the individual algorithms
+ var_old = np.var(A, axis=1, keepdims=True)
+
+ assert var_old.shape == mean.shape
+ assert_almost_equal(var, var_old)
+
+ def test_std_with_mean_keyword_keepdims_false(self):
+ rng = np.random.RandomState(1234)
+ A = rng.randn(10, 20, 5) + 0.5
+
+ mean = np.mean(A,
+ axis=1,
+ keepdims=True)
+
+ std = np.std(A,
+ axis=1,
+ keepdims=False,
+ mean=mean)
+
+ # Shape of returned mean and std should be same
+ assert std.shape == (10, 5)
+
+ # Output should be the same as from the individual algorithms
+ std_old = np.std(A, axis=1, keepdims=False)
+ mean_old = np.mean(A, axis=1, keepdims=False)
+
+ assert std_old.shape == mean_old.shape
+ assert_equal(std, std_old)
+
+ def test_var_with_mean_keyword_keepdims_false(self):
+ rng = np.random.RandomState(1234)
+ A = rng.randn(10, 20, 5) + 0.5
+
+ mean = np.mean(A,
+ axis=1,
+ keepdims=True)
+
+ var = np.var(A,
+ axis=1,
+ keepdims=False,
+ mean=mean)
+
+ # Shape of returned mean and var should be same
+ assert var.shape == (10, 5)
+
+ # Output should be the same as from the individual algorithms
+ var_old = np.var(A, axis=1, keepdims=False)
+ mean_old = np.mean(A, axis=1, keepdims=False)
+
+ assert var_old.shape == mean_old.shape
+ assert_equal(var, var_old)
+
+ def test_std_with_mean_keyword_where_nontrivial(self):
+ rng = np.random.RandomState(1234)
+ A = rng.randn(10, 20, 5) + 0.5
+
+ where = A > 0.5
+
+ mean = np.mean(A,
+ axis=1,
+ keepdims=True,
+ where=where)
+
+ std = np.std(A,
+ axis=1,
+ keepdims=False,
+ mean=mean,
+ where=where)
+
+ # Shape of returned mean and std should be same
+ assert std.shape == (10, 5)
+
+ # Output should be the same as from the individual algorithms
+ std_old = np.std(A, axis=1, where=where)
+ mean_old = np.mean(A, axis=1, where=where)
+
+ assert std_old.shape == mean_old.shape
+ assert_equal(std, std_old)
+
+ def test_var_with_mean_keyword_where_nontrivial(self):
+ rng = np.random.RandomState(1234)
+ A = rng.randn(10, 20, 5) + 0.5
+
+ where = A > 0.5
+
+ mean = np.mean(A,
+ axis=1,
+ keepdims=True,
+ where=where)
+
+ var = np.var(A,
+ axis=1,
+ keepdims=False,
+ mean=mean,
+ where=where)
+
+ # Shape of returned mean and var should be same
+ assert var.shape == (10, 5)
+
+ # Output should be the same as from the individual algorithms
+ var_old = np.var(A, axis=1, where=where)
+ mean_old = np.mean(A, axis=1, where=where)
+
+ assert var_old.shape == mean_old.shape
+ assert_equal(var, var_old)
+
+ def test_std_with_mean_keyword_multiple_axis(self):
+ # Setting the seed to make the test reproducible
+ rng = np.random.RandomState(1234)
+ A = rng.randn(10, 20, 5) + 0.5
+
+ axis = (0, 2)
+
+ mean = np.mean(A,
+ out=None,
+ axis=axis,
+ keepdims=True)
+
+ std = np.std(A,
+ out=None,
+ axis=axis,
+ keepdims=False,
+ mean=mean)
+
+ # Shape of returned mean and std should be same
+ assert std.shape == (20,)
+
+ # Output should be the same as from the individual algorithms
+ std_old = np.std(A, axis=axis, keepdims=False)
+
+ assert_almost_equal(std, std_old)
+
+ def test_std_with_mean_keyword_axis_None(self):
+ # Setting the seed to make the test reproducible
+ rng = np.random.RandomState(1234)
+ A = rng.randn(10, 20, 5) + 0.5
+
+ axis = None
+
+ mean = np.mean(A,
+ out=None,
+ axis=axis,
+ keepdims=True)
+
+ std = np.std(A,
+ out=None,
+ axis=axis,
+ keepdims=False,
+ mean=mean)
+
+ # Shape of returned mean and std should be same
+ assert std.shape == ()
+
+ # Output should be the same as from the individual algorithms
+ std_old = np.std(A, axis=axis, keepdims=False)
+
+ assert_almost_equal(std, std_old)
+
+ def test_std_with_mean_keyword_keepdims_true_masked(self):
+
+ A = ma.array([[2., 3., 4., 5.],
+ [1., 2., 3., 4.]],
+ mask=[[True, False, True, False],
+ [True, False, True, False]])
+
+ B = ma.array([[100., 3., 104., 5.],
+ [101., 2., 103., 4.]],
+ mask=[[True, False, True, False],
+ [True, False, True, False]])
+
+ mean_out = ma.array([[0., 0., 0., 0.]],
+ mask=[[False, False, False, False]])
+ std_out = ma.array([[0., 0., 0., 0.]],
+ mask=[[False, False, False, False]])
+
+ axis = 0
+
+ mean = np.mean(A, out=mean_out,
+ axis=axis, keepdims=True)
+
+ std = np.std(A, out=std_out,
+ axis=axis, keepdims=True,
+ mean=mean)
+
+ # Shape of returned mean and std should be same
+ assert std.shape == mean.shape
+ assert std.shape == (1, 4)
+
+ # Output should be the same as from the individual algorithms
+ std_old = np.std(A, axis=axis, keepdims=True)
+ mean_old = np.mean(A, axis=axis, keepdims=True)
+
+ assert std_old.shape == mean_old.shape
+ assert_almost_equal(std, std_old)
+ assert_almost_equal(mean, mean_old)
+
+ assert mean_out is mean
+ assert std_out is std
+
+ # masked elements should be ignored
+ mean_b = np.mean(B, axis=axis, keepdims=True)
+ std_b = np.std(B, axis=axis, keepdims=True, mean=mean_b)
+ assert_almost_equal(std, std_b)
+ assert_almost_equal(mean, mean_b)
+
+ def test_var_with_mean_keyword_keepdims_true_masked(self):
+
+ A = ma.array([[2., 3., 4., 5.],
+ [1., 2., 3., 4.]],
+ mask=[[True, False, True, False],
+ [True, False, True, False]])
+
+ B = ma.array([[100., 3., 104., 5.],
+ [101., 2., 103., 4.]],
+ mask=[[True, False, True, False],
+ [True, False, True, False]])
+
+ mean_out = ma.array([[0., 0., 0., 0.]],
+ mask=[[False, False, False, False]])
+ var_out = ma.array([[0., 0., 0., 0.]],
+ mask=[[False, False, False, False]])
+
+ axis = 0
+
+ mean = np.mean(A, out=mean_out,
+ axis=axis, keepdims=True)
+
+ var = np.var(A, out=var_out,
+ axis=axis, keepdims=True,
+ mean=mean)
+
+ # Shape of returned mean and var should be same
+ assert var.shape == mean.shape
+ assert var.shape == (1, 4)
+
+ # Output should be the same as from the individual algorithms
+ var_old = np.var(A, axis=axis, keepdims=True)
+ mean_old = np.mean(A, axis=axis, keepdims=True)
+
+ assert var_old.shape == mean_old.shape
+ assert_almost_equal(var, var_old)
+ assert_almost_equal(mean, mean_old)
+
+ assert mean_out is mean
+ assert var_out is var
+
+ # masked elements should be ignored
+ mean_b = np.mean(B, axis=axis, keepdims=True)
+ var_b = np.var(B, axis=axis, keepdims=True, mean=mean_b)
+ assert_almost_equal(var, var_b)
+ assert_almost_equal(mean, mean_b)
+
+
+class TestIsscalar:
+ def test_isscalar(self):
+ assert_(np.isscalar(3.1))
+ assert_(np.isscalar(np.int16(12345)))
+ assert_(np.isscalar(False))
+ assert_(np.isscalar('numpy'))
+ assert_(not np.isscalar([3.1]))
+ assert_(not np.isscalar(None))
+
+ # PEP 3141
+ from fractions import Fraction
+ assert_(np.isscalar(Fraction(5, 17)))
+ from numbers import Number
+ assert_(np.isscalar(Number()))
+
+
+class TestBoolScalar:
+ def test_logical(self):
+ f = np.False_
+ t = np.True_
+ s = "xyz"
+ assert_((t and s) is s)
+ assert_((f and s) is f)
+
+ def test_bitwise_or(self):
+ f = np.False_
+ t = np.True_
+ assert_((t | t) is t)
+ assert_((f | t) is t)
+ assert_((t | f) is t)
+ assert_((f | f) is f)
+
+ def test_bitwise_and(self):
+ f = np.False_
+ t = np.True_
+ assert_((t & t) is t)
+ assert_((f & t) is f)
+ assert_((t & f) is f)
+ assert_((f & f) is f)
+
+ def test_bitwise_xor(self):
+ f = np.False_
+ t = np.True_
+ assert_((t ^ t) is f)
+ assert_((f ^ t) is t)
+ assert_((t ^ f) is t)
+ assert_((f ^ f) is f)
+
+
+class TestBoolArray:
+ def _create_bool_arrays(self):
+ # offset for simd tests
+ t = np.array([True] * 41, dtype=bool)[1::]
+ f = np.array([False] * 41, dtype=bool)[1::]
+ o = np.array([False] * 42, dtype=bool)[2::]
+ nm = f.copy()
+ im = t.copy()
+ nm[3] = True
+ nm[-2] = True
+ im[3] = False
+ im[-2] = False
+ return t, f, o, nm, im
+
+ def test_all_any(self):
+ t, f, _, nm, im = self._create_bool_arrays()
+ assert_(t.all())
+ assert_(t.any())
+ assert_(not f.all())
+ assert_(not f.any())
+ assert_(nm.any())
+ assert_(im.any())
+ assert_(not nm.all())
+ assert_(not im.all())
+ # check bad element in all positions
+ for i in range(256 - 7):
+ d = np.array([False] * 256, dtype=bool)[7::]
+ d[i] = True
+ assert_(np.any(d))
+ e = np.array([True] * 256, dtype=bool)[7::]
+ e[i] = False
+ assert_(not np.all(e))
+ assert_array_equal(e, ~d)
+ # big array test for blocked libc loops
+ for i in list(range(9, 6000, 507)) + [7764, 90021, -10]:
+ d = np.array([False] * 100043, dtype=bool)
+ d[i] = True
+ assert_(np.any(d), msg=f"{i!r}")
+ e = np.array([True] * 100043, dtype=bool)
+ e[i] = False
+ assert_(not np.all(e), msg=f"{i!r}")
+
+ def test_logical_not_abs(self):
+ t, f, o, nm, im = self._create_bool_arrays()
+ assert_array_equal(~t, f)
+ assert_array_equal(np.abs(~t), f)
+ assert_array_equal(np.abs(~f), t)
+ assert_array_equal(np.abs(f), f)
+ assert_array_equal(~np.abs(f), t)
+ assert_array_equal(~np.abs(t), f)
+ assert_array_equal(np.abs(~nm), im)
+ np.logical_not(t, out=o)
+ assert_array_equal(o, f)
+ np.abs(t, out=o)
+ assert_array_equal(o, t)
+
+ def test_logical_and_or_xor(self):
+ t, f, o, nm, im = self._create_bool_arrays()
+ assert_array_equal(t | t, t)
+ assert_array_equal(f | f, f)
+ assert_array_equal(t | f, t)
+ assert_array_equal(f | t, t)
+ np.logical_or(t, t, out=o)
+ assert_array_equal(o, t)
+ assert_array_equal(t & t, t)
+ assert_array_equal(f & f, f)
+ assert_array_equal(t & f, f)
+ assert_array_equal(f & t, f)
+ np.logical_and(t, t, out=o)
+ assert_array_equal(o, t)
+ assert_array_equal(t ^ t, f)
+ assert_array_equal(f ^ f, f)
+ assert_array_equal(t ^ f, t)
+ assert_array_equal(f ^ t, t)
+ np.logical_xor(t, t, out=o)
+ assert_array_equal(o, f)
+
+ assert_array_equal(nm & t, nm)
+ assert_array_equal(im & f, False)
+ assert_array_equal(nm & True, nm)
+ assert_array_equal(im & False, f)
+ assert_array_equal(nm | t, t)
+ assert_array_equal(im | f, im)
+ assert_array_equal(nm | True, t)
+ assert_array_equal(im | False, im)
+ assert_array_equal(nm ^ t, im)
+ assert_array_equal(im ^ f, im)
+ assert_array_equal(nm ^ True, im)
+ assert_array_equal(im ^ False, im)
+
+
+class TestBoolCmp:
+ def _create_data(self, dtype, size):
+ # generate data using given dtype and num for size of array
+ a = np.ones(size, dtype=dtype)
+ e = np.ones(a.size, dtype=bool)
+ # generate values for all permutation of 256bit simd vectors
+ s = 0
+ r = int(size / 32)
+ for i in range(int(size / 8)):
+ a[s:s + r] = [i & 2**x for x in range(r)]
+ e[s:s + r] = [(i & 2**x) != 0 for x in range(r)]
+ s += r
+ n = a.copy()
+ n[e] = np.nan
+
+ inf = a.copy()
+ inf[::3][e[::3]] = np.inf
+ inf[1::3][e[1::3]] = -np.inf
+ inf[2::3][e[2::3]] = np.nan
+ enonan = e.copy()
+ enonan[2::3] = False
+
+ sign = a.copy()
+ sign[e] *= -1.
+ sign[1::6][e[1::6]] = -np.inf
+ # On RISC-V, many operations that produce NaNs, such as converting
+ # a -NaN from f64 to f32, return a canonical NaN. The canonical
+ # NaNs are always positive. See section 11.3 NaN Generation and
+ # Propagation of the RISC-V Unprivileged ISA for more details.
+ # We disable the float32 sign test on riscv64 for -np.nan as the sign
+ # of the NaN will be lost when it's converted to a float32.
+ if not (dtype == np.float32 and platform.machine() == 'riscv64'):
+ sign[3::6][e[3::6]] = -np.nan
+ sign[4::6][e[4::6]] = -0.
+ return a, e, n, inf, enonan, sign
+
+ def test_float(self):
+ # offset for alignment test
+ f, ef, nf, inff, efnonan, signf = self._create_data(np.float32, 256)
+ for i in range(4):
+ assert_array_equal(f[i:] > 0, ef[i:])
+ assert_array_equal(f[i:] - 1 >= 0, ef[i:])
+ assert_array_equal(f[i:] == 0, ~ef[i:])
+ assert_array_equal(-f[i:] < 0, ef[i:])
+ assert_array_equal(-f[i:] + 1 <= 0, ef[i:])
+ r = f[i:] != 0
+ assert_array_equal(r, ef[i:])
+ r2 = f[i:] != np.zeros_like(f[i:])
+ r3 = 0 != f[i:]
+ assert_array_equal(r, r2)
+ assert_array_equal(r, r3)
+ # check bool == 0x1
+ assert_array_equal(r.view(np.int8), r.astype(np.int8))
+ assert_array_equal(r2.view(np.int8), r2.astype(np.int8))
+ assert_array_equal(r3.view(np.int8), r3.astype(np.int8))
+
+ # isnan on amd64 takes the same code path
+ assert_array_equal(np.isnan(nf[i:]), ef[i:])
+ assert_array_equal(np.isfinite(nf[i:]), ~ef[i:])
+ assert_array_equal(np.isfinite(inff[i:]), ~ef[i:])
+ assert_array_equal(np.isinf(inff[i:]), efnonan[i:])
+ assert_array_equal(np.signbit(signf[i:]), ef[i:])
+
+ def test_double(self):
+ # offset for alignment test
+ d, ed, nd, infd, ednonan, signd = self._create_data(np.float64, 128)
+ for i in range(2):
+ assert_array_equal(d[i:] > 0, ed[i:])
+ assert_array_equal(d[i:] - 1 >= 0, ed[i:])
+ assert_array_equal(d[i:] == 0, ~ed[i:])
+ assert_array_equal(-d[i:] < 0, ed[i:])
+ assert_array_equal(-d[i:] + 1 <= 0, ed[i:])
+ r = d[i:] != 0
+ assert_array_equal(r, ed[i:])
+ r2 = d[i:] != np.zeros_like(d[i:])
+ r3 = 0 != d[i:]
+ assert_array_equal(r, r2)
+ assert_array_equal(r, r3)
+ # check bool == 0x1
+ assert_array_equal(r.view(np.int8), r.astype(np.int8))
+ assert_array_equal(r2.view(np.int8), r2.astype(np.int8))
+ assert_array_equal(r3.view(np.int8), r3.astype(np.int8))
+
+ # isnan on amd64 takes the same code path
+ assert_array_equal(np.isnan(nd[i:]), ed[i:])
+ assert_array_equal(np.isfinite(nd[i:]), ~ed[i:])
+ assert_array_equal(np.isfinite(infd[i:]), ~ed[i:])
+ assert_array_equal(np.isinf(infd[i:]), ednonan[i:])
+ assert_array_equal(np.signbit(signd[i:]), ed[i:])
+
+
+class TestSeterr:
+ def test_default(self):
+ err = np.geterr()
+ assert_equal(err,
+ {'divide': 'warn',
+ 'invalid': 'warn',
+ 'over': 'warn',
+ 'under': 'ignore'}
+ )
+
+ def test_set(self):
+ with np.errstate():
+ err = np.seterr()
+ old = np.seterr(divide='print')
+ assert_(err == old)
+ new = np.seterr()
+ assert_(new['divide'] == 'print')
+ np.seterr(over='raise')
+ assert_(np.geterr()['over'] == 'raise')
+ assert_(new['divide'] == 'print')
+ np.seterr(**old)
+ assert_(np.geterr() == old)
+
+ @pytest.mark.skipif(IS_WASM, reason="no wasm fp exception support")
+ @pytest.mark.skipif(platform.machine() == "armv5tel", reason="See gh-413.")
+ def test_divide_err(self):
+ with np.errstate(divide='raise'):
+ with assert_raises(FloatingPointError):
+ np.array([1.]) / np.array([0.])
+
+ np.seterr(divide='ignore')
+ np.array([1.]) / np.array([0.])
+
+
+class TestFloatExceptions:
+ def assert_raises_fpe(self, fpeerr, flop, x, y):
+ ftype = type(x)
+ try:
+ flop(x, y)
+ assert_(False,
+ f"Type {ftype} did not raise fpe error '{fpeerr}'.")
+ except FloatingPointError as exc:
+ assert_(str(exc).find(fpeerr) >= 0,
+ f"Type {ftype} raised wrong fpe error '{exc}'.")
+
+ def assert_op_raises_fpe(self, fpeerr, flop, sc1, sc2):
+ # Check that fpe exception is raised.
+ #
+ # Given a floating operation `flop` and two scalar values, check that
+ # the operation raises the floating point exception specified by
+ # `fpeerr`. Tests all variants with 0-d array scalars as well.
+
+ self.assert_raises_fpe(fpeerr, flop, sc1, sc2)
+ self.assert_raises_fpe(fpeerr, flop, sc1[()], sc2)
+ self.assert_raises_fpe(fpeerr, flop, sc1, sc2[()])
+ self.assert_raises_fpe(fpeerr, flop, sc1[()], sc2[()])
+
+ # Test for all real and complex float types
+ @pytest.mark.skipif(IS_WASM, reason="no wasm fp exception support")
+ @pytest.mark.parametrize("typecode", np.typecodes["AllFloat"])
+ def test_floating_exceptions(self, typecode):
+ if 'bsd' in sys.platform and typecode in 'gG':
+ pytest.skip(reason="Fallback impl for (c)longdouble may not raise "
+ "FPE errors as expected on BSD OSes, "
+ "see gh-24876, gh-23379")
+
+ # Test basic arithmetic function errors
+ with np.errstate(all='raise'):
+ ftype = obj2sctype(typecode)
+ if np.dtype(ftype).kind == 'f':
+ # Get some extreme values for the type
+ fi = np.finfo(ftype)
+ ft_tiny = fi.tiny
+ ft_max = fi.max
+ ft_eps = fi.eps
+ underflow = 'underflow'
+ divbyzero = 'divide by zero'
+ else:
+ # 'c', complex, corresponding real dtype
+ rtype = type(ftype(0).real)
+ fi = np.finfo(rtype)
+ ft_tiny = ftype(fi.tiny)
+ ft_max = ftype(fi.max)
+ ft_eps = ftype(fi.eps)
+ # The complex types raise different exceptions
+ underflow = ''
+ divbyzero = ''
+ overflow = 'overflow'
+ invalid = 'invalid'
+
+ # The value of tiny for double double is NaN, so we need to
+ # pass the assert
+ if not np.isnan(ft_tiny):
+ self.assert_raises_fpe(underflow,
+ lambda a, b: a / b, ft_tiny, ft_max)
+ self.assert_raises_fpe(underflow,
+ lambda a, b: a * b, ft_tiny, ft_tiny)
+ self.assert_raises_fpe(overflow,
+ lambda a, b: a * b, ft_max, ftype(2))
+ self.assert_raises_fpe(overflow,
+ lambda a, b: a / b, ft_max, ftype(0.5))
+ self.assert_raises_fpe(overflow,
+ lambda a, b: a + b, ft_max, ft_max * ft_eps)
+ self.assert_raises_fpe(overflow,
+ lambda a, b: a - b, -ft_max, ft_max * ft_eps)
+ # On AIX, pow() with double does not raise the overflow exception,
+ # it returns inf. Long double is the same as double.
+ if sys.platform != 'aix' or typecode not in 'dDgG':
+ self.assert_raises_fpe(overflow,
+ np.power, ftype(2), ftype(2**fi.nexp))
+ self.assert_raises_fpe(divbyzero,
+ lambda a, b: a / b, ftype(1), ftype(0))
+ self.assert_raises_fpe(
+ invalid, lambda a, b: a / b, ftype(np.inf), ftype(np.inf)
+ )
+ self.assert_raises_fpe(invalid,
+ lambda a, b: a / b, ftype(0), ftype(0))
+ self.assert_raises_fpe(
+ invalid, lambda a, b: a - b, ftype(np.inf), ftype(np.inf)
+ )
+ self.assert_raises_fpe(
+ invalid, lambda a, b: a + b, ftype(np.inf), ftype(-np.inf)
+ )
+ self.assert_raises_fpe(invalid,
+ lambda a, b: a * b, ftype(0), ftype(np.inf))
+
+ @pytest.mark.skipif(IS_WASM, reason="no wasm fp exception support")
+ def test_warnings(self):
+ # test warning code path
+ with warnings.catch_warnings(record=True) as w:
+ warnings.simplefilter("always")
+ with np.errstate(all="warn"):
+ np.divide(1, 0.)
+ assert_equal(len(w), 1)
+ assert_("divide by zero" in str(w[0].message))
+ np.array(1e300) * np.array(1e300)
+ assert_equal(len(w), 2)
+ assert_("overflow" in str(w[-1].message))
+ np.array(np.inf) - np.array(np.inf)
+ assert_equal(len(w), 3)
+ assert_("invalid value" in str(w[-1].message))
+ np.array(1e-300) * np.array(1e-300)
+ assert_equal(len(w), 4)
+ assert_("underflow" in str(w[-1].message))
+
+
+class TestTypes:
+ def check_promotion_cases(self, promote_func):
+ # tests that the scalars get coerced correctly.
+ b = np.bool(0)
+ i8, i16, i32, i64 = np.int8(0), np.int16(0), np.int32(0), np.int64(0)
+ u8, u16, u32, u64 = np.uint8(0), np.uint16(0), np.uint32(0), np.uint64(0)
+ f32, f64, fld = np.float32(0), np.float64(0), np.longdouble(0)
+ c64, c128, cld = np.complex64(0), np.complex128(0), np.clongdouble(0)
+
+ # coercion within the same kind
+ assert_equal(promote_func(i8, i16), np.dtype(np.int16))
+ assert_equal(promote_func(i32, i8), np.dtype(np.int32))
+ assert_equal(promote_func(i16, i64), np.dtype(np.int64))
+ assert_equal(promote_func(u8, u32), np.dtype(np.uint32))
+ assert_equal(promote_func(f32, f64), np.dtype(np.float64))
+ assert_equal(promote_func(fld, f32), np.dtype(np.longdouble))
+ assert_equal(promote_func(f64, fld), np.dtype(np.longdouble))
+ assert_equal(promote_func(c128, c64), np.dtype(np.complex128))
+ assert_equal(promote_func(cld, c128), np.dtype(np.clongdouble))
+ assert_equal(promote_func(c64, fld), np.dtype(np.clongdouble))
+
+ # coercion between kinds
+ assert_equal(promote_func(b, i32), np.dtype(np.int32))
+ assert_equal(promote_func(b, u8), np.dtype(np.uint8))
+ assert_equal(promote_func(i8, u8), np.dtype(np.int16))
+ assert_equal(promote_func(u8, i32), np.dtype(np.int32))
+ assert_equal(promote_func(i64, u32), np.dtype(np.int64))
+ assert_equal(promote_func(u64, i32), np.dtype(np.float64))
+ assert_equal(promote_func(i32, f32), np.dtype(np.float64))
+ assert_equal(promote_func(i64, f32), np.dtype(np.float64))
+ assert_equal(promote_func(f32, i16), np.dtype(np.float32))
+ assert_equal(promote_func(f32, u32), np.dtype(np.float64))
+ assert_equal(promote_func(f32, c64), np.dtype(np.complex64))
+ assert_equal(promote_func(c128, f32), np.dtype(np.complex128))
+ assert_equal(promote_func(cld, f64), np.dtype(np.clongdouble))
+
+ # coercion between scalars and 1-D arrays
+ assert_equal(promote_func(np.array([b]), i8), np.dtype(np.int8))
+ assert_equal(promote_func(np.array([b]), u8), np.dtype(np.uint8))
+ assert_equal(promote_func(np.array([b]), i32), np.dtype(np.int32))
+ assert_equal(promote_func(np.array([b]), u32), np.dtype(np.uint32))
+ assert_equal(promote_func(np.array([i8]), i64), np.dtype(np.int64))
+ # unsigned and signed unfortunately tend to promote to float64:
+ assert_equal(promote_func(u64, np.array([i32])), np.dtype(np.float64))
+ assert_equal(promote_func(i64, np.array([u32])), np.dtype(np.int64))
+ assert_equal(promote_func(np.array([u16]), i32), np.dtype(np.int32))
+ assert_equal(promote_func(np.int32(-1), np.array([u64])),
+ np.dtype(np.float64))
+ assert_equal(promote_func(f64, np.array([f32])), np.dtype(np.float64))
+ assert_equal(promote_func(fld, np.array([f32])),
+ np.dtype(np.longdouble))
+ assert_equal(promote_func(np.array([f64]), fld),
+ np.dtype(np.longdouble))
+ assert_equal(promote_func(fld, np.array([c64])),
+ np.dtype(np.clongdouble))
+ assert_equal(promote_func(c64, np.array([f64])),
+ np.dtype(np.complex128))
+ assert_equal(promote_func(np.complex64(3j), np.array([f64])),
+ np.dtype(np.complex128))
+ assert_equal(promote_func(np.array([f32]), c128),
+ np.dtype(np.complex128))
+
+ # coercion between scalars and 1-D arrays, where
+ # the scalar has greater kind than the array
+ assert_equal(promote_func(np.array([b]), f64), np.dtype(np.float64))
+ assert_equal(promote_func(np.array([b]), i64), np.dtype(np.int64))
+ assert_equal(promote_func(np.array([b]), u64), np.dtype(np.uint64))
+ assert_equal(promote_func(np.array([i8]), f64), np.dtype(np.float64))
+ assert_equal(promote_func(np.array([u16]), f64), np.dtype(np.float64))
+
+ def test_coercion(self):
+ def res_type(a, b):
+ return np.add(a, b).dtype
+
+ self.check_promotion_cases(res_type)
+
+ # Use-case: float/complex scalar * bool/int8 array
+ # shouldn't narrow the float/complex type
+ for a in [np.array([True, False]), np.array([-3, 12], dtype=np.int8)]:
+ b = 1.234 * a
+ assert_equal(b.dtype, np.dtype('f8'), f"array type {a.dtype}")
+ b = np.longdouble(1.234) * a
+ assert_equal(b.dtype, np.dtype(np.longdouble),
+ f"array type {a.dtype}")
+ b = np.float64(1.234) * a
+ assert_equal(b.dtype, np.dtype('f8'), f"array type {a.dtype}")
+ b = np.float32(1.234) * a
+ assert_equal(b.dtype, np.dtype('f4'), f"array type {a.dtype}")
+ b = np.float16(1.234) * a
+ assert_equal(b.dtype, np.dtype('f2'), f"array type {a.dtype}")
+
+ b = 1.234j * a
+ assert_equal(b.dtype, np.dtype('c16'), f"array type {a.dtype}")
+ b = np.clongdouble(1.234j) * a
+ assert_equal(b.dtype, np.dtype(np.clongdouble),
+ f"array type {a.dtype}")
+ b = np.complex128(1.234j) * a
+ assert_equal(b.dtype, np.dtype('c16'), f"array type {a.dtype}")
+ b = np.complex64(1.234j) * a
+ assert_equal(b.dtype, np.dtype('c8'), f"array type {a.dtype}")
+
+ # The following use-case is problematic, and to resolve its
+ # tricky side-effects requires more changes.
+ #
+ # Use-case: (1-t)*a, where 't' is a boolean array and 'a' is
+ # a float32, shouldn't promote to float64
+ #
+ # a = np.array([1.0, 1.5], dtype=np.float32)
+ # t = np.array([True, False])
+ # b = t*a
+ # assert_equal(b, [1.0, 0.0])
+ # assert_equal(b.dtype, np.dtype('f4'))
+ # b = (1-t)*a
+ # assert_equal(b, [0.0, 1.5])
+ # assert_equal(b.dtype, np.dtype('f4'))
+ #
+ # Probably ~t (bitwise negation) is more proper to use here,
+ # but this is arguably less intuitive to understand at a glance, and
+ # would fail if 't' is actually an integer array instead of boolean:
+ #
+ # b = (~t)*a
+ # assert_equal(b, [0.0, 1.5])
+ # assert_equal(b.dtype, np.dtype('f4'))
+
+ def test_result_type(self):
+ self.check_promotion_cases(np.result_type)
+ assert_(np.result_type(None) == np.dtype(None))
+
+ def test_promote_types_endian(self):
+ # promote_types should always return native-endian types
+ assert_equal(np.promote_types('i8', '>i8'), np.dtype('i8'))
+
+ assert_equal(np.promote_types('>i8', '>U16'), np.dtype('U21'))
+ assert_equal(np.promote_types('U16', '>i8'), np.dtype('U21'))
+ assert_equal(np.promote_types('S5', '>U8'), np.dtype('U8'))
+ assert_equal(np.promote_types('U8', '>S5'), np.dtype('U8'))
+ assert_equal(np.promote_types('U8', '>U5'), np.dtype('U8'))
+
+ assert_equal(np.promote_types('M8', '>M8'), np.dtype('M8'))
+ assert_equal(np.promote_types('m8', '>m8'), np.dtype('m8'))
+
+ def test_can_cast_and_promote_usertypes(self):
+ # The rational type defines safe casting for signed integers,
+ # boolean. Rational itself *does* cast safely to double.
+ # (rational does not actually cast to all signed integers, e.g.
+ # int64 can be both long and longlong and it registers only the first)
+ valid_types = ["int8", "int16", "int32", "int64", "bool"]
+ invalid_types = "BHILQP" + "FDG" + "mM" + "f" + "V"
+
+ rational_dt = np.dtype(rational)
+ for numpy_dtype in valid_types:
+ numpy_dtype = np.dtype(numpy_dtype)
+ assert np.can_cast(numpy_dtype, rational_dt)
+ assert np.promote_types(numpy_dtype, rational_dt) is rational_dt
+
+ for numpy_dtype in invalid_types:
+ numpy_dtype = np.dtype(numpy_dtype)
+ assert not np.can_cast(numpy_dtype, rational_dt)
+ with pytest.raises(TypeError):
+ np.promote_types(numpy_dtype, rational_dt)
+
+ double_dt = np.dtype("double")
+ assert np.can_cast(rational_dt, double_dt)
+ assert np.promote_types(double_dt, rational_dt) is double_dt
+
+ @pytest.mark.parametrize("swap", ["", "swap"])
+ @pytest.mark.parametrize("string_dtype", ["U", "S"])
+ def test_promote_types_strings(self, swap, string_dtype):
+ if swap == "swap":
+ promote_types = lambda a, b: np.promote_types(b, a)
+ else:
+ promote_types = np.promote_types
+
+ S = string_dtype
+
+ # Promote numeric with unsized string:
+ assert_equal(promote_types('bool', S), np.dtype(S + '5'))
+ assert_equal(promote_types('b', S), np.dtype(S + '4'))
+ assert_equal(promote_types('u1', S), np.dtype(S + '3'))
+ assert_equal(promote_types('u2', S), np.dtype(S + '5'))
+ assert_equal(promote_types('u4', S), np.dtype(S + '10'))
+ assert_equal(promote_types('u8', S), np.dtype(S + '20'))
+ assert_equal(promote_types('i1', S), np.dtype(S + '4'))
+ assert_equal(promote_types('i2', S), np.dtype(S + '6'))
+ assert_equal(promote_types('i4', S), np.dtype(S + '11'))
+ assert_equal(promote_types('i8', S), np.dtype(S + '21'))
+ # Promote numeric with sized string:
+ assert_equal(promote_types('bool', S + '1'), np.dtype(S + '5'))
+ assert_equal(promote_types('bool', S + '30'), np.dtype(S + '30'))
+ assert_equal(promote_types('b', S + '1'), np.dtype(S + '4'))
+ assert_equal(promote_types('b', S + '30'), np.dtype(S + '30'))
+ assert_equal(promote_types('u1', S + '1'), np.dtype(S + '3'))
+ assert_equal(promote_types('u1', S + '30'), np.dtype(S + '30'))
+ assert_equal(promote_types('u2', S + '1'), np.dtype(S + '5'))
+ assert_equal(promote_types('u2', S + '30'), np.dtype(S + '30'))
+ assert_equal(promote_types('u4', S + '1'), np.dtype(S + '10'))
+ assert_equal(promote_types('u4', S + '30'), np.dtype(S + '30'))
+ assert_equal(promote_types('u8', S + '1'), np.dtype(S + '20'))
+ assert_equal(promote_types('u8', S + '30'), np.dtype(S + '30'))
+ # Promote with object:
+ assert_equal(promote_types('O', S + '30'), np.dtype('O'))
+
+ @pytest.mark.parametrize(["dtype1", "dtype2"],
+ [[np.dtype("V6"), np.dtype("V10")], # mismatch shape
+ # Mismatching names:
+ [np.dtype([("name1", "i8")]), np.dtype([("name2", "i8")])],
+ ])
+ def test_invalid_void_promotion(self, dtype1, dtype2):
+ with pytest.raises(TypeError):
+ np.promote_types(dtype1, dtype2)
+
+ @pytest.mark.parametrize(["dtype1", "dtype2"],
+ [[np.dtype("V10"), np.dtype("V10")],
+ [np.dtype([("name1", "i8")]),
+ np.dtype([("name1", np.dtype("i8").newbyteorder())])],
+ [np.dtype("i8,i8"), np.dtype("i8,>i8")],
+ [np.dtype("i8,i8"), np.dtype("i4,i4")],
+ ])
+ def test_valid_void_promotion(self, dtype1, dtype2):
+ assert np.promote_types(dtype1, dtype2) == dtype1
+
+ @pytest.mark.parametrize("dtype",
+ list(np.typecodes["All"]) +
+ ["i,i", "10i", "S3", "S100", "U3", "U100", rational])
+ def test_promote_identical_types_metadata(self, dtype):
+ # The same type passed in twice to promote types always
+ # preserves metadata
+ metadata = {1: 1}
+ dtype = np.dtype(dtype, metadata=metadata)
+
+ res = np.promote_types(dtype, dtype)
+ assert res.metadata == dtype.metadata
+
+ # byte-swapping preserves and makes the dtype native:
+ dtype = dtype.newbyteorder()
+ if dtype.isnative:
+ # The type does not have byte swapping
+ return
+
+ res = np.promote_types(dtype, dtype)
+
+ # Metadata is (currently) generally lost on byte-swapping (except for
+ # unicode.
+ if dtype.char != "U":
+ assert res.metadata is None
+ else:
+ assert res.metadata == metadata
+ assert res.isnative
+
+ @pytest.mark.slow
+ @pytest.mark.filterwarnings('ignore:Promotion of numbers:FutureWarning')
+ @pytest.mark.parametrize(["dtype1", "dtype2"],
+ itertools.product(
+ list(np.typecodes["All"]) +
+ ["i,i", "S3", "S100", "U3", "U100", rational],
+ repeat=2))
+ def test_promote_types_metadata(self, dtype1, dtype2):
+ """Metadata handling in promotion does not appear formalized
+ right now in NumPy. This test should thus be considered to
+ document behaviour, rather than test the correct definition of it.
+
+ This test is very ugly, it was useful for rewriting part of the
+ promotion, but probably should eventually be replaced/deleted
+ (i.e. when metadata handling in promotion is better defined).
+ """
+ metadata1 = {1: 1}
+ metadata2 = {2: 2}
+ dtype1 = np.dtype(dtype1, metadata=metadata1)
+ dtype2 = np.dtype(dtype2, metadata=metadata2)
+
+ try:
+ res = np.promote_types(dtype1, dtype2)
+ except TypeError:
+ # Promotion failed, this test only checks metadata
+ return
+
+ if res.char not in "USV" or res.names is not None or res.shape != ():
+ # All except string dtypes (and unstructured void) lose metadata
+ # on promotion (unless both dtypes are identical).
+ # At some point structured ones did not, but were restrictive.
+ assert res.metadata is None
+ elif res == dtype1:
+ # If one result is the result, it is usually returned unchanged:
+ assert res is dtype1
+ elif res == dtype2:
+ # dtype1 may have been cast to the same type/kind as dtype2.
+ # If the resulting dtype is identical we currently pick the cast
+ # version of dtype1, which lost the metadata:
+ if np.promote_types(dtype1, dtype2.kind) == dtype2:
+ res.metadata is None
+ else:
+ res.metadata == metadata2
+ else:
+ assert res.metadata is None
+
+ # Try again for byteswapped version
+ dtype1 = dtype1.newbyteorder()
+ assert dtype1.metadata == metadata1
+ res_bs = np.promote_types(dtype1, dtype2)
+ assert res_bs == res
+ assert res_bs.metadata == res.metadata
+
+ def test_can_cast(self):
+ assert_(np.can_cast(np.int32, np.int64))
+ assert_(np.can_cast(np.float64, complex))
+ assert_(not np.can_cast(complex, float))
+
+ assert_(np.can_cast('i8', 'f8'))
+ assert_(not np.can_cast('i8', 'f4'))
+ assert_(np.can_cast('i4', 'S11'))
+
+ assert_(np.can_cast('i8', 'i8', 'no'))
+ assert_(not np.can_cast('i8', 'no'))
+
+ assert_(np.can_cast('i8', 'equiv'))
+ assert_(not np.can_cast('i8', 'equiv'))
+
+ assert_(np.can_cast('i8', 'safe'))
+ assert_(not np.can_cast('i4', 'safe'))
+
+ assert_(np.can_cast('i4', 'same_kind'))
+ assert_(not np.can_cast('u4', 'same_kind'))
+
+ assert_(np.can_cast('u4', 'unsafe'))
+
+ assert_(np.can_cast('bool', 'S5'))
+ assert_(not np.can_cast('bool', 'S4'))
+
+ assert_(np.can_cast('b', 'S4'))
+ assert_(not np.can_cast('b', 'S3'))
+
+ assert_(np.can_cast('u1', 'S3'))
+ assert_(not np.can_cast('u1', 'S2'))
+ assert_(np.can_cast('u2', 'S5'))
+ assert_(not np.can_cast('u2', 'S4'))
+ assert_(np.can_cast('u4', 'S10'))
+ assert_(not np.can_cast('u4', 'S9'))
+ assert_(np.can_cast('u8', 'S20'))
+ assert_(not np.can_cast('u8', 'S19'))
+
+ assert_(np.can_cast('i1', 'S4'))
+ assert_(not np.can_cast('i1', 'S3'))
+ assert_(np.can_cast('i2', 'S6'))
+ assert_(not np.can_cast('i2', 'S5'))
+ assert_(np.can_cast('i4', 'S11'))
+ assert_(not np.can_cast('i4', 'S10'))
+ assert_(np.can_cast('i8', 'S21'))
+ assert_(not np.can_cast('i8', 'S20'))
+
+ assert_(np.can_cast('bool', 'S5'))
+ assert_(not np.can_cast('bool', 'S4'))
+
+ assert_(np.can_cast('b', 'U4'))
+ assert_(not np.can_cast('b', 'U3'))
+
+ assert_(np.can_cast('u1', 'U3'))
+ assert_(not np.can_cast('u1', 'U2'))
+ assert_(np.can_cast('u2', 'U5'))
+ assert_(not np.can_cast('u2', 'U4'))
+ assert_(np.can_cast('u4', 'U10'))
+ assert_(not np.can_cast('u4', 'U9'))
+ assert_(np.can_cast('u8', 'U20'))
+ assert_(not np.can_cast('u8', 'U19'))
+
+ assert_(np.can_cast('i1', 'U4'))
+ assert_(not np.can_cast('i1', 'U3'))
+ assert_(np.can_cast('i2', 'U6'))
+ assert_(not np.can_cast('i2', 'U5'))
+ assert_(np.can_cast('i4', 'U11'))
+ assert_(not np.can_cast('i4', 'U10'))
+ assert_(np.can_cast('i8', 'U21'))
+ assert_(not np.can_cast('i8', 'U20'))
+
+ assert_raises(TypeError, np.can_cast, 'i4', None)
+ assert_raises(TypeError, np.can_cast, None, 'i4')
+
+ # Also test keyword arguments
+ assert_(np.can_cast(from_=np.int32, to=np.int64))
+
+ def test_can_cast_simple_to_structured(self):
+ # Non-structured can only be cast to structured in 'unsafe' mode.
+ assert_(not np.can_cast('i4', 'i4,i4'))
+ assert_(not np.can_cast('i4', 'i4,i2'))
+ assert_(np.can_cast('i4', 'i4,i4', casting='unsafe'))
+ assert_(np.can_cast('i4', 'i4,i2', casting='unsafe'))
+ # Even if there is just a single field which is OK.
+ assert_(not np.can_cast('i2', [('f1', 'i4')]))
+ assert_(not np.can_cast('i2', [('f1', 'i4')], casting='same_kind'))
+ assert_(np.can_cast('i2', [('f1', 'i4')], casting='unsafe'))
+ # It should be the same for recursive structured or subarrays.
+ assert_(not np.can_cast('i2', [('f1', 'i4,i4')]))
+ assert_(np.can_cast('i2', [('f1', 'i4,i4')], casting='unsafe'))
+ assert_(not np.can_cast('i2', [('f1', '(2,3)i4')]))
+ assert_(np.can_cast('i2', [('f1', '(2,3)i4')], casting='unsafe'))
+
+ def test_can_cast_structured_to_simple(self):
+ # Need unsafe casting for structured to simple.
+ assert_(not np.can_cast([('f1', 'i4')], 'i4'))
+ assert_(np.can_cast([('f1', 'i4')], 'i4', casting='unsafe'))
+ assert_(np.can_cast([('f1', 'i4')], 'i2', casting='unsafe'))
+ # Since it is unclear what is being cast, multiple fields to
+ # single should not work even for unsafe casting.
+ assert_(not np.can_cast('i4,i4', 'i4', casting='unsafe'))
+ # But a single field inside a single field is OK.
+ assert_(not np.can_cast([('f1', [('x', 'i4')])], 'i4'))
+ assert_(np.can_cast([('f1', [('x', 'i4')])], 'i4', casting='unsafe'))
+ # And a subarray is fine too - it will just take the first element
+ # (arguably not very consistently; might also take the first field).
+ assert_(not np.can_cast([('f0', '(3,)i4')], 'i4'))
+ assert_(np.can_cast([('f0', '(3,)i4')], 'i4', casting='unsafe'))
+ # But a structured subarray with multiple fields should fail.
+ assert_(not np.can_cast([('f0', ('i4,i4'), (2,))], 'i4',
+ casting='unsafe'))
+
+ def test_can_cast_values(self):
+ # With NumPy 2 and NEP 50, can_cast errors on Python scalars. We could
+ # define this as (usually safe) at some point, and already do so
+ # in `copyto` and ufuncs (but there an error is raised if the integer
+ # is out of bounds and a warning for out-of-bound floats).
+ # Raises even for unsafe, previously checked within range (for floats
+ # that was approximately whether it would overflow to inf).
+ with pytest.raises(TypeError):
+ np.can_cast(4, "int8", casting="unsafe")
+
+ with pytest.raises(TypeError):
+ np.can_cast(4.0, "float64", casting="unsafe")
+
+ with pytest.raises(TypeError):
+ np.can_cast(4j, "complex128", casting="unsafe")
+
+ @pytest.mark.parametrize("dtype",
+ list("?bhilqBHILQefdgFDG") + [rational])
+ def test_can_cast_scalars(self, dtype):
+ # Basic test to ensure that scalars are supported in can-cast
+ # (does not check behavior exhaustively).
+ dtype = np.dtype(dtype)
+ scalar = dtype.type(0)
+
+ assert np.can_cast(scalar, "int64") == np.can_cast(dtype, "int64")
+ assert np.can_cast(scalar, "float32", casting="unsafe")
+
+
+# Custom exception class to test exception propagation in fromiter
+class NIterError(Exception):
+ pass
+
+
+class TestFromiter:
+ def makegen(self):
+ return (x**2 for x in range(24))
+
+ def test_types(self):
+ ai32 = np.fromiter(self.makegen(), np.int32)
+ ai64 = np.fromiter(self.makegen(), np.int64)
+ af = np.fromiter(self.makegen(), float)
+ assert_(ai32.dtype == np.dtype(np.int32))
+ assert_(ai64.dtype == np.dtype(np.int64))
+ assert_(af.dtype == np.dtype(float))
+
+ def test_lengths(self):
+ expected = np.array(list(self.makegen()))
+ a = np.fromiter(self.makegen(), int)
+ a20 = np.fromiter(self.makegen(), int, 20)
+ assert_(len(a) == len(expected))
+ assert_(len(a20) == 20)
+ assert_raises(ValueError, np.fromiter,
+ self.makegen(), int, len(expected) + 10)
+
+ def test_values(self):
+ expected = np.array(list(self.makegen()))
+ a = np.fromiter(self.makegen(), int)
+ a20 = np.fromiter(self.makegen(), int, 20)
+ assert_(np.all(a == expected, axis=0))
+ assert_(np.all(a20 == expected[:20], axis=0))
+
+ def load_data(self, n, eindex):
+ # Utility method for the issue 2592 tests.
+ # Raise an exception at the desired index in the iterator.
+ for e in range(n):
+ if e == eindex:
+ raise NIterError(f'error at index {eindex}')
+ yield e
+
+ @pytest.mark.parametrize("dtype", [int, object])
+ @pytest.mark.parametrize(["count", "error_index"], [(10, 5), (10, 9)])
+ def test_2592(self, count, error_index, dtype):
+ # Test iteration exceptions are correctly raised. The data/generator
+ # has `count` elements but errors at `error_index`
+ iterable = self.load_data(count, error_index)
+ with pytest.raises(NIterError):
+ np.fromiter(iterable, dtype=dtype, count=count)
+
+ @pytest.mark.parametrize("dtype", ["S", "S0", "V0", "U0"])
+ def test_empty_not_structured(self, dtype):
+ # Note, "S0" could be allowed at some point, so long "S" (without
+ # any length) is rejected.
+ with pytest.raises(ValueError, match="Must specify length"):
+ np.fromiter([], dtype=dtype)
+
+ @pytest.mark.parametrize(["dtype", "data"],
+ [("d", [1, 2, 3, 4, 5, 6, 7, 8, 9]),
+ ("O", [1, 2, 3, 4, 5, 6, 7, 8, 9]),
+ ("i,O", [(1, 2), (5, 4), (2, 3), (9, 8), (6, 7)]),
+ # subarray dtypes (important because their dimensions end up
+ # in the result arrays dimension:
+ ("2i", [(1, 2), (5, 4), (2, 3), (9, 8), (6, 7)]),
+ (np.dtype(("O", (2, 3))),
+ [((1, 2, 3), (3, 4, 5)), ((3, 2, 1), (5, 4, 3))])])
+ @pytest.mark.parametrize("length_hint", [0, 1])
+ def test_growth_and_complicated_dtypes(self, dtype, data, length_hint):
+ dtype = np.dtype(dtype)
+
+ data = data * 100 # make sure we realloc a bit
+
+ class MyIter:
+ # Class/example from gh-15789
+ def __length_hint__(self):
+ # only required to be an estimate, this is legal
+ return length_hint # 0 or 1
+
+ def __iter__(self):
+ return iter(data)
+
+ res = np.fromiter(MyIter(), dtype=dtype)
+ expected = np.array(data, dtype=dtype)
+
+ assert_array_equal(res, expected)
+
+ def test_empty_result(self):
+ class MyIter:
+ def __length_hint__(self):
+ return 10
+
+ def __iter__(self):
+ return iter([]) # actual iterator is empty.
+
+ res = np.fromiter(MyIter(), dtype="d")
+ assert res.shape == (0,)
+ assert res.dtype == "d"
+
+ def test_too_few_items(self):
+ msg = "iterator too short: Expected 10 but iterator had only 3 items."
+ with pytest.raises(ValueError, match=msg):
+ np.fromiter([1, 2, 3], count=10, dtype=int)
+
+ def test_failed_itemsetting(self):
+ with pytest.raises(TypeError):
+ np.fromiter([1, None, 3], dtype=int)
+
+ # The following manages to hit somewhat trickier code paths:
+ iterable = ((2, 3, 4) for i in range(5))
+ with pytest.raises(ValueError):
+ np.fromiter(iterable, dtype=np.dtype((int, 2)))
+
+
+class TestNonzero:
+ def test_nonzero_trivial(self):
+ assert_equal(np.count_nonzero(np.array([])), 0)
+ assert_equal(np.count_nonzero(np.array([], dtype='?')), 0)
+ assert_equal(np.nonzero(np.array([])), ([],))
+
+ assert_equal(np.count_nonzero(np.array([0])), 0)
+ assert_equal(np.count_nonzero(np.array([0], dtype='?')), 0)
+ assert_equal(np.nonzero(np.array([0])), ([],))
+
+ assert_equal(np.count_nonzero(np.array([1])), 1)
+ assert_equal(np.count_nonzero(np.array([1], dtype='?')), 1)
+ assert_equal(np.nonzero(np.array([1])), ([0],))
+
+ def test_nonzero_zerodim(self):
+ err_msg = "Calling nonzero on 0d arrays is not allowed"
+ with assert_raises_regex(ValueError, err_msg):
+ np.nonzero(np.array(0))
+ with assert_raises_regex(ValueError, err_msg):
+ np.array(1).nonzero()
+
+ def test_nonzero_onedim(self):
+ x = np.array([1, 0, 2, -1, 0, 0, 8])
+ assert_equal(np.count_nonzero(x), 4)
+ assert_equal(np.count_nonzero(x), 4)
+ assert_equal(np.nonzero(x), ([0, 2, 3, 6],))
+
+ # x = np.array([(1, 2), (0, 0), (1, 1), (-1, 3), (0, 7)],
+ # dtype=[('a', 'i4'), ('b', 'i2')])
+ x = np.array(
+ [(1, 2, -5, -3), (0, 0, 2, 7), (1, 1, 0, 1), (-1, 3, 1, 0), (0, 7, 0, 4)],
+ dtype=[('a', 'i4'), ('b', 'i2'), ('c', 'i1'), ('d', 'i8')]
+ )
+ assert_equal(np.count_nonzero(x['a']), 3)
+ assert_equal(np.count_nonzero(x['b']), 4)
+ assert_equal(np.count_nonzero(x['c']), 3)
+ assert_equal(np.count_nonzero(x['d']), 4)
+ assert_equal(np.nonzero(x['a']), ([0, 2, 3],))
+ assert_equal(np.nonzero(x['b']), ([0, 2, 3, 4],))
+
+ def test_nonzero_twodim(self):
+ x = np.array([[0, 1, 0], [2, 0, 3]])
+ assert_equal(np.count_nonzero(x.astype('i1')), 3)
+ assert_equal(np.count_nonzero(x.astype('i2')), 3)
+ assert_equal(np.count_nonzero(x.astype('i4')), 3)
+ assert_equal(np.count_nonzero(x.astype('i8')), 3)
+ assert_equal(np.nonzero(x), ([0, 1, 1], [1, 0, 2]))
+
+ x = np.eye(3)
+ assert_equal(np.count_nonzero(x.astype('i1')), 3)
+ assert_equal(np.count_nonzero(x.astype('i2')), 3)
+ assert_equal(np.count_nonzero(x.astype('i4')), 3)
+ assert_equal(np.count_nonzero(x.astype('i8')), 3)
+ assert_equal(np.nonzero(x), ([0, 1, 2], [0, 1, 2]))
+
+ x = np.array([[(0, 1), (0, 0), (1, 11)],
+ [(1, 1), (1, 0), (0, 0)],
+ [(0, 0), (1, 5), (0, 1)]], dtype=[('a', 'f4'), ('b', 'u1')])
+ assert_equal(np.count_nonzero(x['a']), 4)
+ assert_equal(np.count_nonzero(x['b']), 5)
+ assert_equal(np.nonzero(x['a']), ([0, 1, 1, 2], [2, 0, 1, 1]))
+ assert_equal(np.nonzero(x['b']), ([0, 0, 1, 2, 2], [0, 2, 0, 1, 2]))
+
+ assert_(not x['a'].T.flags.aligned)
+ assert_equal(np.count_nonzero(x['a'].T), 4)
+ assert_equal(np.count_nonzero(x['b'].T), 5)
+ assert_equal(np.nonzero(x['a'].T), ([0, 1, 1, 2], [1, 1, 2, 0]))
+ assert_equal(np.nonzero(x['b'].T), ([0, 0, 1, 2, 2], [0, 1, 2, 0, 2]))
+
+ def test_sparse(self):
+ # test special sparse condition boolean code path
+ for i in range(20):
+ c = np.zeros(200, dtype=bool)
+ c[i::20] = True
+ assert_equal(np.nonzero(c)[0], np.arange(i, 200 + i, 20))
+
+ c = np.zeros(400, dtype=bool)
+ c[10 + i:20 + i] = True
+ c[20 + i * 2] = True
+ assert_equal(np.nonzero(c)[0],
+ np.concatenate((np.arange(10 + i, 20 + i), [20 + i * 2])))
+
+ @pytest.mark.parametrize('dtype', [np.float32, np.float64])
+ def test_nonzero_float_dtypes(self, dtype):
+ rng = np.random.default_rng(seed=10)
+ x = ((2**33) * rng.normal(size=100)).astype(dtype)
+ x[rng.choice(50, size=100)] = 0
+ idxs = np.nonzero(x)[0]
+ assert_equal(np.array_equal(np.where(x != 0)[0], idxs), True)
+
+ @pytest.mark.parametrize('dtype', [bool, np.int8, np.int16, np.int32, np.int64,
+ np.uint8, np.uint16, np.uint32, np.uint64])
+ def test_nonzero_integer_dtypes(self, dtype):
+ rng = np.random.default_rng(seed=10)
+ x = rng.integers(0, 255, size=100).astype(dtype)
+ x[rng.choice(50, size=100)] = 0
+ idxs = np.nonzero(x)[0]
+ assert_equal(np.array_equal(np.where(x != 0)[0], idxs), True)
+
+ def test_return_type(self):
+ class C(np.ndarray):
+ pass
+
+ for view in (C, np.ndarray):
+ for nd in range(1, 4):
+ shape = tuple(range(2, 2 + nd))
+ x = np.arange(np.prod(shape)).reshape(shape).view(view)
+ for nzx in (np.nonzero(x), x.nonzero()):
+ for nzx_i in nzx:
+ assert_(type(nzx_i) is np.ndarray)
+ assert_(nzx_i.flags.writeable)
+
+ def test_count_nonzero_axis(self):
+ # Basic check of functionality
+ m = np.array([[0, 1, 7, 0, 0], [3, 0, 0, 2, 19]])
+
+ expected = np.array([1, 1, 1, 1, 1])
+ assert_equal(np.count_nonzero(m, axis=0), expected)
+
+ expected = np.array([2, 3])
+ assert_equal(np.count_nonzero(m, axis=1), expected)
+
+ assert_raises(ValueError, np.count_nonzero, m, axis=(1, 1))
+ assert_raises(TypeError, np.count_nonzero, m, axis='foo')
+ assert_raises(AxisError, np.count_nonzero, m, axis=3)
+ assert_raises(TypeError, np.count_nonzero,
+ m, axis=np.array([[1], [2]]))
+
+ def test_count_nonzero_axis_all_dtypes(self):
+ # More thorough test that the axis argument is respected
+ # for all dtypes and responds correctly when presented with
+ # either integer or tuple arguments for axis
+ msg = "Mismatch for dtype: %s"
+
+ def assert_equal_w_dt(a, b, err_msg):
+ assert_equal(a.dtype, b.dtype, err_msg=err_msg)
+ assert_equal(a, b, err_msg=err_msg)
+
+ for dt in np.typecodes['All']:
+ err_msg = msg % (np.dtype(dt).name,)
+
+ if dt != 'V':
+ if dt != 'M':
+ m = np.zeros((3, 3), dtype=dt)
+ n = np.ones(1, dtype=dt)
+
+ m[0, 0] = n[0]
+ m[1, 0] = n[0]
+
+ else: # np.zeros doesn't work for np.datetime64
+ m = np.array(['1970-01-01'] * 9)
+ m = m.reshape((3, 3))
+
+ m[0, 0] = '1970-01-12'
+ m[1, 0] = '1970-01-12'
+ m = m.astype(dt)
+
+ expected = np.array([2, 0, 0], dtype=np.intp)
+ assert_equal_w_dt(np.count_nonzero(m, axis=0),
+ expected, err_msg=err_msg)
+
+ expected = np.array([1, 1, 0], dtype=np.intp)
+ assert_equal_w_dt(np.count_nonzero(m, axis=1),
+ expected, err_msg=err_msg)
+
+ expected = np.array(2)
+ assert_equal(np.count_nonzero(m, axis=(0, 1)),
+ expected, err_msg=err_msg)
+ assert_equal(np.count_nonzero(m, axis=None),
+ expected, err_msg=err_msg)
+ assert_equal(np.count_nonzero(m),
+ expected, err_msg=err_msg)
+
+ if dt == 'V':
+ # There are no 'nonzero' objects for np.void, so the testing
+ # setup is slightly different for this dtype
+ m = np.array([np.void(1)] * 6).reshape((2, 3))
+
+ expected = np.array([0, 0, 0], dtype=np.intp)
+ assert_equal_w_dt(np.count_nonzero(m, axis=0),
+ expected, err_msg=err_msg)
+
+ expected = np.array([0, 0], dtype=np.intp)
+ assert_equal_w_dt(np.count_nonzero(m, axis=1),
+ expected, err_msg=err_msg)
+
+ expected = np.array(0)
+ assert_equal(np.count_nonzero(m, axis=(0, 1)),
+ expected, err_msg=err_msg)
+ assert_equal(np.count_nonzero(m, axis=None),
+ expected, err_msg=err_msg)
+ assert_equal(np.count_nonzero(m),
+ expected, err_msg=err_msg)
+
+ def test_count_nonzero_axis_consistent(self):
+ # Check that the axis behaviour for valid axes in
+ # non-special cases is consistent (and therefore
+ # correct) by checking it against an integer array
+ # that is then casted to the generic object dtype
+ from itertools import combinations, permutations
+
+ axis = (0, 1, 2, 3)
+ size = (5, 5, 5, 5)
+ msg = "Mismatch for axis: %s"
+
+ rng = np.random.RandomState(1234)
+ m = rng.randint(-100, 100, size=size)
+ n = m.astype(object)
+
+ for length in range(len(axis)):
+ for combo in combinations(axis, length):
+ for perm in permutations(combo):
+ assert_equal(
+ np.count_nonzero(m, axis=perm),
+ np.count_nonzero(n, axis=perm),
+ err_msg=msg % (perm,))
+
+ def test_countnonzero_axis_empty(self):
+ a = np.array([[0, 0, 1], [1, 0, 1]])
+ assert_equal(np.count_nonzero(a, axis=()), a.astype(bool))
+
+ def test_countnonzero_keepdims(self):
+ a = np.array([[0, 0, 1, 0],
+ [0, 3, 5, 0],
+ [7, 9, 2, 0]])
+ assert_equal(np.count_nonzero(a, axis=0, keepdims=True),
+ [[1, 2, 3, 0]])
+ assert_equal(np.count_nonzero(a, axis=1, keepdims=True),
+ [[1], [2], [3]])
+ assert_equal(np.count_nonzero(a, keepdims=True),
+ [[6]])
+
+ def test_array_method(self):
+ # Tests that the array method
+ # call to nonzero works
+ m = np.array([[1, 0, 0], [4, 0, 6]])
+ tgt = [[0, 1, 1], [0, 0, 2]]
+
+ assert_equal(m.nonzero(), tgt)
+
+ def test_nonzero_invalid_object(self):
+ # gh-9295
+ a = np.array([np.array([1, 2]), 3], dtype=object)
+ assert_raises(ValueError, np.nonzero, a)
+
+ class BoolErrors:
+ def __bool__(self):
+ raise ValueError("Not allowed")
+
+ assert_raises(ValueError, np.nonzero, np.array([BoolErrors()]))
+
+ def test_nonzero_sideeffect_safety(self):
+ # gh-13631
+ class FalseThenTrue:
+ _val = False
+
+ def __bool__(self):
+ try:
+ return self._val
+ finally:
+ self._val = True
+
+ class TrueThenFalse:
+ _val = True
+
+ def __bool__(self):
+ try:
+ return self._val
+ finally:
+ self._val = False
+
+ # result grows on the second pass
+ a = np.array([True, FalseThenTrue()])
+ assert_raises(RuntimeError, np.nonzero, a)
+
+ a = np.array([[True], [FalseThenTrue()]])
+ assert_raises(RuntimeError, np.nonzero, a)
+
+ # result shrinks on the second pass
+ a = np.array([False, TrueThenFalse()])
+ assert_raises(RuntimeError, np.nonzero, a)
+
+ a = np.array([[False], [TrueThenFalse()]])
+ assert_raises(RuntimeError, np.nonzero, a)
+
+ def test_nonzero_sideffects_structured_void(self):
+ # Checks that structured void does not mutate alignment flag of
+ # original array.
+ arr = np.zeros(5, dtype="i1,i8,i8") # `ones` may short-circuit
+ assert arr.flags.aligned # structs are considered "aligned"
+ assert not arr["f2"].flags.aligned
+ # make sure that nonzero/count_nonzero do not flip the flag:
+ np.nonzero(arr)
+ assert arr.flags.aligned
+ np.count_nonzero(arr)
+ assert arr.flags.aligned
+
+ def test_nonzero_exception_safe(self):
+ # gh-13930
+
+ class ThrowsAfter:
+ def __init__(self, iters):
+ self.iters_left = iters
+
+ def __bool__(self):
+ if self.iters_left == 0:
+ raise ValueError("called `iters` times")
+
+ self.iters_left -= 1
+ return True
+
+ """
+ Test that a ValueError is raised instead of a SystemError
+
+ If the __bool__ function is called after the error state is set,
+ Python (cpython) will raise a SystemError.
+ """
+
+ # assert that an exception in first pass is handled correctly
+ a = np.array([ThrowsAfter(5)] * 10)
+ assert_raises(ValueError, np.nonzero, a)
+
+ # raise exception in second pass for 1-dimensional loop
+ a = np.array([ThrowsAfter(15)] * 10)
+ assert_raises(ValueError, np.nonzero, a)
+
+ # raise exception in second pass for n-dimensional loop
+ a = np.array([[ThrowsAfter(15)]] * 10)
+ assert_raises(ValueError, np.nonzero, a)
+
+ def test_nonzero_byteorder(self):
+ values = [0., -0., 1, float('nan'), 0, 1,
+ np.float16(0), np.float16(12.3)]
+ expected_values = [0, 0, 1, 1, 0, 1, 0, 1]
+
+ for value, expected in zip(values, expected_values):
+ A = np.array([value])
+ A_byteswapped = (A.view(A.dtype.newbyteorder()).byteswap()).copy()
+
+ assert np.count_nonzero(A) == expected
+ assert np.count_nonzero(A_byteswapped) == expected
+
+ def test_count_nonzero_non_aligned_array(self):
+ # gh-27523
+ b = np.zeros(64 + 1, dtype=np.int8)[1:]
+ b = b.view(int)
+ b[:] = np.arange(b.size)
+ b[::2] = 0
+ assert b.flags.aligned is False
+ assert np.count_nonzero(b) == b.size / 2
+
+ b = np.zeros(64 + 1, dtype=np.float16)[1:]
+ b = b.view(float)
+ b[:] = np.arange(b.size)
+ b[::2] = 0
+ assert b.flags.aligned is False
+ assert np.count_nonzero(b) == b.size / 2
+
+
+class TestIndex:
+ def test_boolean(self):
+ a = rand(3, 5, 8)
+ V = rand(5, 8)
+ g1 = randint(0, 5, size=15)
+ g2 = randint(0, 8, size=15)
+ V[g1, g2] = -V[g1, g2]
+ assert_(
+ (np.array([a[0][V > 0], a[1][V > 0], a[2][V > 0]]) == a[:, V > 0]).all()
+ )
+
+ def test_boolean_edgecase(self):
+ a = np.array([], dtype='int32')
+ b = np.array([], dtype='bool')
+ c = a[b]
+ assert_equal(c, [])
+ assert_equal(c.dtype, np.dtype('int32'))
+
+
+class TestBinaryRepr:
+ def test_zero(self):
+ assert_equal(np.binary_repr(0), '0')
+
+ def test_positive(self):
+ assert_equal(np.binary_repr(10), '1010')
+ assert_equal(np.binary_repr(12522),
+ '11000011101010')
+ assert_equal(np.binary_repr(10736848),
+ '101000111101010011010000')
+
+ def test_negative(self):
+ assert_equal(np.binary_repr(-1), '-1')
+ assert_equal(np.binary_repr(-10), '-1010')
+ assert_equal(np.binary_repr(-12522),
+ '-11000011101010')
+ assert_equal(np.binary_repr(-10736848),
+ '-101000111101010011010000')
+
+ def test_sufficient_width(self):
+ assert_equal(np.binary_repr(0, width=5), '00000')
+ assert_equal(np.binary_repr(10, width=7), '0001010')
+ assert_equal(np.binary_repr(-5, width=7), '1111011')
+
+ def test_neg_width_boundaries(self):
+ # see gh-8670
+
+ # Ensure that the example in the issue does not
+ # break before proceeding to a more thorough test.
+ assert_equal(np.binary_repr(-128, width=8), '10000000')
+
+ for width in range(1, 11):
+ num = -2**(width - 1)
+ exp = '1' + (width - 1) * '0'
+ assert_equal(np.binary_repr(num, width=width), exp)
+
+ def test_large_neg_int64(self):
+ # See gh-14289.
+ assert_equal(np.binary_repr(np.int64(-2**62), width=64),
+ '11' + '0' * 62)
+
+
+class TestBaseRepr:
+ def test_base3(self):
+ assert_equal(np.base_repr(3**5, 3), '100000')
+
+ def test_positive(self):
+ assert_equal(np.base_repr(12, 10), '12')
+ assert_equal(np.base_repr(12, 10, 4), '000012')
+ assert_equal(np.base_repr(12, 4), '30')
+ assert_equal(np.base_repr(3731624803700888, 36), '10QR0ROFCEW')
+
+ def test_negative(self):
+ assert_equal(np.base_repr(-12, 10), '-12')
+ assert_equal(np.base_repr(-12, 10, 4), '-000012')
+ assert_equal(np.base_repr(-12, 4), '-30')
+
+ def test_base_range(self):
+ with assert_raises(ValueError):
+ np.base_repr(1, 1)
+ with assert_raises(ValueError):
+ np.base_repr(1, 37)
+
+ def test_minimal_signed_int(self):
+ assert_equal(np.base_repr(np.int8(-128)), '-10000000')
+
+
+def _test_array_equal_parametrizations():
+ """
+ we pre-create arrays as we sometime want to pass the same instance
+ and sometime not. Passing the same instances may not mean the array are
+ equal, especially when containing None
+ """
+ # those are 0-d arrays, it used to be a special case
+ # where (e0 == e0).all() would raise
+ e0 = np.array(0, dtype="int")
+ e1 = np.array(1, dtype="float")
+ # x,y, nan_equal, expected_result
+ yield (e0, e0.copy(), None, True)
+ yield (e0, e0.copy(), False, True)
+ yield (e0, e0.copy(), True, True)
+
+ #
+ yield (e1, e1.copy(), None, True)
+ yield (e1, e1.copy(), False, True)
+ yield (e1, e1.copy(), True, True)
+
+ # Non-nanable - those cannot hold nans
+ a12 = np.array([1, 2])
+ a12b = a12.copy()
+ a123 = np.array([1, 2, 3])
+ a13 = np.array([1, 3])
+ a34 = np.array([3, 4])
+
+ aS1 = np.array(["a"], dtype="S1")
+ aS1b = aS1.copy()
+ aS1u4 = np.array([("a", 1)], dtype="S1,u4")
+ aS1u4b = aS1u4.copy()
+
+ yield (a12, a12b, None, True)
+ yield (a12, a12, None, True)
+ yield (a12, a123, None, False)
+ yield (a12, a34, None, False)
+ yield (a12, a13, None, False)
+ yield (aS1, aS1b, None, True)
+ yield (aS1, aS1, None, True)
+
+ # Non-float dtype - equal_nan should have no effect,
+ yield (a123, a123, None, True)
+ yield (a123, a123, False, True)
+ yield (a123, a123, True, True)
+ yield (a123, a123.copy(), None, True)
+ yield (a123, a123.copy(), False, True)
+ yield (a123, a123.copy(), True, True)
+ yield (a123.astype("float"), a123.astype("float"), None, True)
+ yield (a123.astype("float"), a123.astype("float"), False, True)
+ yield (a123.astype("float"), a123.astype("float"), True, True)
+
+ # these can hold None
+ b1 = np.array([1, 2, np.nan])
+ b2 = np.array([1, np.nan, 2])
+ b3 = np.array([1, 2, np.inf])
+ b4 = np.array(np.nan)
+
+ # instances are the same
+ yield (b1, b1, None, False)
+ yield (b1, b1, False, False)
+ yield (b1, b1, True, True)
+
+ # equal but not same instance
+ yield (b1, b1.copy(), None, False)
+ yield (b1, b1.copy(), False, False)
+ yield (b1, b1.copy(), True, True)
+
+ # same once stripped of Nan
+ yield (b1, b2, None, False)
+ yield (b1, b2, False, False)
+ yield (b1, b2, True, False)
+
+ # nan's not conflated with inf's
+ yield (b1, b3, None, False)
+ yield (b1, b3, False, False)
+ yield (b1, b3, True, False)
+
+ # all Nan
+ yield (b4, b4, None, False)
+ yield (b4, b4, False, False)
+ yield (b4, b4, True, True)
+ yield (b4, b4.copy(), None, False)
+ yield (b4, b4.copy(), False, False)
+ yield (b4, b4.copy(), True, True)
+
+ t1 = b1.astype("timedelta64")
+ t2 = b2.astype("timedelta64")
+
+ # Timedeltas are particular
+ yield (t1, t1, None, False)
+ yield (t1, t1, False, False)
+ yield (t1, t1, True, True)
+
+ yield (t1, t1.copy(), None, False)
+ yield (t1, t1.copy(), False, False)
+ yield (t1, t1.copy(), True, True)
+
+ yield (t1, t2, None, False)
+ yield (t1, t2, False, False)
+ yield (t1, t2, True, False)
+
+ # Multi-dimensional array
+ md1 = np.array([[0, 1], [np.nan, 1]])
+
+ yield (md1, md1, None, False)
+ yield (md1, md1, False, False)
+ yield (md1, md1, True, True)
+ yield (md1, md1.copy(), None, False)
+ yield (md1, md1.copy(), False, False)
+ yield (md1, md1.copy(), True, True)
+ # both complexes are nan+nan.j but the same instance
+ cplx1, cplx2 = [np.array([np.nan + np.nan * 1j])] * 2
+
+ # only real or img are nan.
+ cplx3, cplx4 = np.complex64(1, np.nan), np.complex64(np.nan, 1)
+
+ # Complex values
+ yield (cplx1, cplx2, None, False)
+ yield (cplx1, cplx2, False, False)
+ yield (cplx1, cplx2, True, True)
+
+ # Complex values, 1+nan, nan+1j
+ yield (cplx3, cplx4, None, False)
+ yield (cplx3, cplx4, False, False)
+ yield (cplx3, cplx4, True, True)
+
+
+class TestArrayComparisons:
+ @pytest.mark.parametrize(
+ "bx,by,equal_nan,expected", _test_array_equal_parametrizations()
+ )
+ def test_array_equal_equal_nan(self, bx, by, equal_nan, expected):
+ """
+ This test array_equal for a few combinations:
+
+ - are the two inputs the same object or not (same object may not
+ be equal if contains NaNs)
+ - Whether we should consider or not, NaNs, being equal.
+
+ """
+ if equal_nan is None:
+ res = np.array_equal(bx, by)
+ else:
+ res = np.array_equal(bx, by, equal_nan=equal_nan)
+ assert_(res is expected)
+ assert_(type(res) is bool)
+
+ def test_array_equal_different_scalar_types(self):
+ # https://github.com/numpy/numpy/issues/27271
+ a = np.array("foo")
+ b = np.array(1)
+ assert not np.array_equal(a, b)
+ assert not np.array_equiv(a, b)
+
+ def test_none_compares_elementwise(self):
+ a = np.array([None, 1, None], dtype=object)
+ assert_equal(a == None, [True, False, True]) # noqa: E711
+ assert_equal(a != None, [False, True, False]) # noqa: E711
+
+ a = np.ones(3)
+ assert_equal(a == None, [False, False, False]) # noqa: E711
+ assert_equal(a != None, [True, True, True]) # noqa: E711
+
+ def test_array_equiv(self):
+ res = np.array_equiv(np.array([1, 2]), np.array([1, 2]))
+ assert_(res)
+ assert_(type(res) is bool)
+ res = np.array_equiv(np.array([1, 2]), np.array([1, 2, 3]))
+ assert_(not res)
+ assert_(type(res) is bool)
+ res = np.array_equiv(np.array([1, 2]), np.array([3, 4]))
+ assert_(not res)
+ assert_(type(res) is bool)
+ res = np.array_equiv(np.array([1, 2]), np.array([1, 3]))
+ assert_(not res)
+ assert_(type(res) is bool)
+
+ res = np.array_equiv(np.array([1, 1]), np.array([1]))
+ assert_(res)
+ assert_(type(res) is bool)
+ res = np.array_equiv(np.array([1, 1]), np.array([[1], [1]]))
+ assert_(res)
+ assert_(type(res) is bool)
+ res = np.array_equiv(np.array([1, 2]), np.array([2]))
+ assert_(not res)
+ assert_(type(res) is bool)
+ res = np.array_equiv(np.array([1, 2]), np.array([[1], [2]]))
+ assert_(not res)
+ assert_(type(res) is bool)
+ res = np.array_equiv(
+ np.array([1, 2]),
+ np.array([[1, 2, 3], [4, 5, 6], [7, 8, 9]]),
+ )
+ assert_(not res)
+ assert_(type(res) is bool)
+
+ @pytest.mark.parametrize("dtype", ["V0", "V3", "V10"])
+ def test_compare_unstructured_voids(self, dtype):
+ zeros = np.zeros(3, dtype=dtype)
+
+ assert_array_equal(zeros, zeros)
+ assert not (zeros != zeros).any()
+
+ if dtype == "V0":
+ # Can't test != of actually different data
+ return
+
+ nonzeros = np.array([b"1", b"2", b"3"], dtype=dtype)
+
+ assert not (zeros == nonzeros).any()
+ assert (zeros != nonzeros).all()
+
+
+def assert_array_strict_equal(x, y):
+ assert_array_equal(x, y)
+ # Check flags, 32 bit arches typically don't provide 16 byte alignment
+ if ((x.dtype.alignment <= 8 or
+ np.intp().dtype.itemsize != 4) and
+ sys.platform != 'win32'):
+ assert_(x.flags == y.flags)
+ else:
+ assert_(x.flags.owndata == y.flags.owndata)
+ assert_(x.flags.writeable == y.flags.writeable)
+ assert_(x.flags.c_contiguous == y.flags.c_contiguous)
+ assert_(x.flags.f_contiguous == y.flags.f_contiguous)
+ assert_(x.flags.writebackifcopy == y.flags.writebackifcopy)
+ # check endianness
+ assert_(x.dtype.isnative == y.dtype.isnative)
+
+
+class TestClip:
+ nr = 5
+ nc = 3
+
+ def fastclip(self, a, m, M, out=None, **kwargs):
+ return a.clip(m, M, out=out, **kwargs)
+
+ def clip(self, a, m, M, out=None):
+ # use a.choose to verify fastclip result
+ selector = np.less(a, m) + 2 * np.greater(a, M)
+ return selector.choose((a, m, M), out=out)
+
+ # Handy functions
+ def _generate_data(self, n, m):
+ return randn(n, m)
+
+ def _generate_data_complex(self, n, m):
+ return randn(n, m) + 1.j * rand(n, m)
+
+ def _generate_flt_data(self, n, m):
+ return (randn(n, m)).astype(np.float32)
+
+ def _neg_byteorder(self, a):
+ a = np.asarray(a)
+ if sys.byteorder == 'little':
+ a = a.astype(a.dtype.newbyteorder('>'))
+ else:
+ a = a.astype(a.dtype.newbyteorder('<'))
+ return a
+
+ def _generate_non_native_data(self, n, m):
+ data = randn(n, m)
+ data = self._neg_byteorder(data)
+ assert_(not data.dtype.isnative)
+ return data
+
+ def _generate_int_data(self, n, m):
+ return (10 * rand(n, m)).astype(np.int64)
+
+ def _generate_int32_data(self, n, m):
+ return (10 * rand(n, m)).astype(np.int32)
+
+ # Now the real test cases
+
+ @pytest.mark.parametrize("dtype", '?bhilqpBHILQPefdgFDGO')
+ def test_ones_pathological(self, dtype):
+ # for preservation of behavior described in
+ # gh-12519; amin > amax behavior may still change
+ # in the future
+ arr = np.ones(10, dtype=dtype)
+ expected = np.zeros(10, dtype=dtype)
+ actual = np.clip(arr, 1, 0)
+ if dtype == 'O':
+ assert actual.tolist() == expected.tolist()
+ else:
+ assert_equal(actual, expected)
+
+ def test_simple_double(self):
+ # Test native double input with scalar min/max.
+ a = self._generate_data(self.nr, self.nc)
+ m = 0.1
+ M = 0.6
+ ac = self.fastclip(a, m, M)
+ act = self.clip(a, m, M)
+ assert_array_strict_equal(ac, act)
+
+ def test_simple_int(self):
+ # Test native int input with scalar min/max.
+ a = self._generate_int_data(self.nr, self.nc)
+ a = a.astype(int)
+ m = -2
+ M = 4
+ ac = self.fastclip(a, m, M)
+ act = self.clip(a, m, M)
+ assert_array_strict_equal(ac, act)
+
+ def test_array_double(self):
+ # Test native double input with array min/max.
+ a = self._generate_data(self.nr, self.nc)
+ m = np.zeros(a.shape)
+ M = m + 0.5
+ ac = self.fastclip(a, m, M)
+ act = self.clip(a, m, M)
+ assert_array_strict_equal(ac, act)
+
+ def test_simple_nonnative(self):
+ # Test non native double input with scalar min/max.
+ # Test native double input with non native double scalar min/max.
+ a = self._generate_non_native_data(self.nr, self.nc)
+ m = -0.5
+ M = 0.6
+ ac = self.fastclip(a, m, M)
+ act = self.clip(a, m, M)
+ assert_array_equal(ac, act)
+
+ # Test native double input with non native double scalar min/max.
+ a = self._generate_data(self.nr, self.nc)
+ m = -0.5
+ M = self._neg_byteorder(0.6)
+ assert_(not M.dtype.isnative)
+ ac = self.fastclip(a, m, M)
+ act = self.clip(a, m, M)
+ assert_array_equal(ac, act)
+
+ def test_simple_complex(self):
+ # Test native complex input with native double scalar min/max.
+ # Test native input with complex double scalar min/max.
+ a = 3 * self._generate_data_complex(self.nr, self.nc)
+ m = -0.5
+ M = 1.
+ ac = self.fastclip(a, m, M)
+ act = self.clip(a, m, M)
+ assert_array_strict_equal(ac, act)
+
+ # Test native input with complex double scalar min/max.
+ a = 3 * self._generate_data(self.nr, self.nc)
+ m = -0.5 + 1.j
+ M = 1. + 2.j
+ ac = self.fastclip(a, m, M)
+ act = self.clip(a, m, M)
+ assert_array_strict_equal(ac, act)
+
+ def test_clip_complex(self):
+ # Address Issue gh-5354 for clipping complex arrays
+ # Test native complex input without explicit min/max
+ # ie, either min=None or max=None
+ a = np.ones(10, dtype=complex)
+ m = a.min()
+ M = a.max()
+ am = self.fastclip(a, m, None)
+ aM = self.fastclip(a, None, M)
+ assert_array_strict_equal(am, a)
+ assert_array_strict_equal(aM, a)
+
+ def test_clip_non_contig(self):
+ # Test clip for non contiguous native input and native scalar min/max.
+ a = self._generate_data(self.nr * 2, self.nc * 3)
+ a = a[::2, ::3]
+ assert_(not a.flags['F_CONTIGUOUS'])
+ assert_(not a.flags['C_CONTIGUOUS'])
+ ac = self.fastclip(a, -1.6, 1.7)
+ act = self.clip(a, -1.6, 1.7)
+ assert_array_strict_equal(ac, act)
+
+ def test_simple_out(self):
+ # Test native double input with scalar min/max.
+ a = self._generate_data(self.nr, self.nc)
+ m = -0.5
+ M = 0.6
+ ac = np.zeros(a.shape)
+ act = np.zeros(a.shape)
+ self.fastclip(a, m, M, ac)
+ self.clip(a, m, M, act)
+ assert_array_strict_equal(ac, act)
+
+ @pytest.mark.parametrize("casting", [None, "unsafe"])
+ def test_simple_int32_inout(self, casting):
+ # Test native int32 input with double min/max and int32 out.
+ a = self._generate_int32_data(self.nr, self.nc)
+ m = np.float64(0)
+ M = np.float64(2)
+ ac = np.zeros(a.shape, dtype=np.int32)
+ act = ac.copy()
+ if casting is None:
+ with pytest.raises(TypeError):
+ self.fastclip(a, m, M, ac, casting=casting)
+ else:
+ # explicitly passing "unsafe" will silence warning
+ self.fastclip(a, m, M, ac, casting=casting)
+ self.clip(a, m, M, act)
+ assert_array_strict_equal(ac, act)
+
+ def test_simple_int64_out(self):
+ # Test native int32 input with int32 scalar min/max and int64 out.
+ a = self._generate_int32_data(self.nr, self.nc)
+ m = np.int32(-1)
+ M = np.int32(1)
+ ac = np.zeros(a.shape, dtype=np.int64)
+ act = ac.copy()
+ self.fastclip(a, m, M, ac)
+ self.clip(a, m, M, act)
+ assert_array_strict_equal(ac, act)
+
+ def test_simple_int64_inout(self):
+ # Test native int32 input with double array min/max and int32 out.
+ a = self._generate_int32_data(self.nr, self.nc)
+ m = np.zeros(a.shape, np.float64)
+ M = np.float64(1)
+ ac = np.zeros(a.shape, dtype=np.int32)
+ act = ac.copy()
+ self.fastclip(a, m, M, out=ac, casting="unsafe")
+ self.clip(a, m, M, act)
+ assert_array_strict_equal(ac, act)
+
+ def test_simple_int32_out(self):
+ # Test native double input with scalar min/max and int out.
+ a = self._generate_data(self.nr, self.nc)
+ m = -1.0
+ M = 2.0
+ ac = np.zeros(a.shape, dtype=np.int32)
+ act = ac.copy()
+ self.fastclip(a, m, M, out=ac, casting="unsafe")
+ self.clip(a, m, M, act)
+ assert_array_strict_equal(ac, act)
+
+ def test_simple_inplace_01(self):
+ # Test native double input with array min/max in-place.
+ a = self._generate_data(self.nr, self.nc)
+ ac = a.copy()
+ m = np.zeros(a.shape)
+ M = 1.0
+ self.fastclip(a, m, M, a)
+ self.clip(a, m, M, ac)
+ assert_array_strict_equal(a, ac)
+
+ def test_simple_inplace_02(self):
+ # Test native double input with scalar min/max in-place.
+ a = self._generate_data(self.nr, self.nc)
+ ac = a.copy()
+ m = -0.5
+ M = 0.6
+ self.fastclip(a, m, M, a)
+ self.clip(ac, m, M, ac)
+ assert_array_strict_equal(a, ac)
+
+ def test_noncontig_inplace(self):
+ # Test non contiguous double input with double scalar min/max in-place.
+ a = self._generate_data(self.nr * 2, self.nc * 3)
+ a = a[::2, ::3]
+ assert_(not a.flags['F_CONTIGUOUS'])
+ assert_(not a.flags['C_CONTIGUOUS'])
+ ac = a.copy()
+ m = -0.5
+ M = 0.6
+ self.fastclip(a, m, M, a)
+ self.clip(ac, m, M, ac)
+ assert_array_equal(a, ac)
+
+ def test_type_cast_01(self):
+ # Test native double input with scalar min/max.
+ a = self._generate_data(self.nr, self.nc)
+ m = -0.5
+ M = 0.6
+ ac = self.fastclip(a, m, M)
+ act = self.clip(a, m, M)
+ assert_array_strict_equal(ac, act)
+
+ def test_type_cast_02(self):
+ # Test native int32 input with int32 scalar min/max.
+ a = self._generate_int_data(self.nr, self.nc)
+ a = a.astype(np.int32)
+ m = -2
+ M = 4
+ ac = self.fastclip(a, m, M)
+ act = self.clip(a, m, M)
+ assert_array_strict_equal(ac, act)
+
+ def test_type_cast_03(self):
+ # Test native int32 input with float64 scalar min/max.
+ a = self._generate_int32_data(self.nr, self.nc)
+ m = -2
+ M = 4
+ ac = self.fastclip(a, np.float64(m), np.float64(M))
+ act = self.clip(a, np.float64(m), np.float64(M))
+ assert_array_strict_equal(ac, act)
+
+ def test_type_cast_04(self):
+ # Test native int32 input with float32 scalar min/max.
+ a = self._generate_int32_data(self.nr, self.nc)
+ m = np.float32(-2)
+ M = np.float32(4)
+ act = self.fastclip(a, m, M)
+ ac = self.clip(a, m, M)
+ assert_array_strict_equal(ac, act)
+
+ def test_type_cast_05(self):
+ # Test native int32 with double arrays min/max.
+ a = self._generate_int_data(self.nr, self.nc)
+ m = -0.5
+ M = 1.
+ ac = self.fastclip(a, m * np.zeros(a.shape), M)
+ act = self.clip(a, m * np.zeros(a.shape), M)
+ assert_array_strict_equal(ac, act)
+
+ def test_type_cast_06(self):
+ # Test native with NON native scalar min/max.
+ a = self._generate_data(self.nr, self.nc)
+ m = 0.5
+ m_s = self._neg_byteorder(m)
+ M = 1.
+ act = self.clip(a, m_s, M)
+ ac = self.fastclip(a, m_s, M)
+ assert_array_strict_equal(ac, act)
+
+ def test_type_cast_07(self):
+ # Test NON native with native array min/max.
+ a = self._generate_data(self.nr, self.nc)
+ m = -0.5 * np.ones(a.shape)
+ M = 1.
+ a_s = self._neg_byteorder(a)
+ assert_(not a_s.dtype.isnative)
+ act = a_s.clip(m, M)
+ ac = self.fastclip(a_s, m, M)
+ assert_array_strict_equal(ac, act)
+
+ def test_type_cast_08(self):
+ # Test NON native with native scalar min/max.
+ a = self._generate_data(self.nr, self.nc)
+ m = -0.5
+ M = 1.
+ a_s = self._neg_byteorder(a)
+ assert_(not a_s.dtype.isnative)
+ ac = self.fastclip(a_s, m, M)
+ act = a_s.clip(m, M)
+ assert_array_strict_equal(ac, act)
+
+ def test_type_cast_09(self):
+ # Test native with NON native array min/max.
+ a = self._generate_data(self.nr, self.nc)
+ m = -0.5 * np.ones(a.shape)
+ M = 1.
+ m_s = self._neg_byteorder(m)
+ assert_(not m_s.dtype.isnative)
+ ac = self.fastclip(a, m_s, M)
+ act = self.clip(a, m_s, M)
+ assert_array_strict_equal(ac, act)
+
+ def test_type_cast_10(self):
+ # Test native int32 with float min/max and float out for output argument.
+ a = self._generate_int_data(self.nr, self.nc)
+ b = np.zeros(a.shape, dtype=np.float32)
+ m = np.float32(-0.5)
+ M = np.float32(1)
+ act = self.clip(a, m, M, out=b)
+ ac = self.fastclip(a, m, M, out=b)
+ assert_array_strict_equal(ac, act)
+
+ def test_type_cast_11(self):
+ # Test non native with native scalar, min/max, out non native
+ a = self._generate_non_native_data(self.nr, self.nc)
+ b = a.copy()
+ b = b.astype(b.dtype.newbyteorder('>'))
+ bt = b.copy()
+ m = -0.5
+ M = 1.
+ self.fastclip(a, m, M, out=b)
+ self.clip(a, m, M, out=bt)
+ assert_array_strict_equal(b, bt)
+
+ def test_type_cast_12(self):
+ # Test native int32 input and min/max and float out
+ a = self._generate_int_data(self.nr, self.nc)
+ b = np.zeros(a.shape, dtype=np.float32)
+ m = np.int32(0)
+ M = np.int32(1)
+ act = self.clip(a, m, M, out=b)
+ ac = self.fastclip(a, m, M, out=b)
+ assert_array_strict_equal(ac, act)
+
+ def test_clip_with_out_simple(self):
+ # Test native double input with scalar min/max
+ a = self._generate_data(self.nr, self.nc)
+ m = -0.5
+ M = 0.6
+ ac = np.zeros(a.shape)
+ act = np.zeros(a.shape)
+ self.fastclip(a, m, M, ac)
+ self.clip(a, m, M, act)
+ assert_array_strict_equal(ac, act)
+
+ def test_clip_with_out_simple2(self):
+ # Test native int32 input with double min/max and int32 out
+ a = self._generate_int32_data(self.nr, self.nc)
+ m = np.float64(0)
+ M = np.float64(2)
+ ac = np.zeros(a.shape, dtype=np.int32)
+ act = ac.copy()
+ self.fastclip(a, m, M, out=ac, casting="unsafe")
+ self.clip(a, m, M, act)
+ assert_array_strict_equal(ac, act)
+
+ def test_clip_with_out_simple_int32(self):
+ # Test native int32 input with int32 scalar min/max and int64 out
+ a = self._generate_int32_data(self.nr, self.nc)
+ m = np.int32(-1)
+ M = np.int32(1)
+ ac = np.zeros(a.shape, dtype=np.int64)
+ act = ac.copy()
+ self.fastclip(a, m, M, ac)
+ self.clip(a, m, M, act)
+ assert_array_strict_equal(ac, act)
+
+ def test_clip_with_out_array_int32(self):
+ # Test native int32 input with double array min/max and int32 out
+ a = self._generate_int32_data(self.nr, self.nc)
+ m = np.zeros(a.shape, np.float64)
+ M = np.float64(1)
+ ac = np.zeros(a.shape, dtype=np.int32)
+ act = ac.copy()
+ self.fastclip(a, m, M, out=ac, casting="unsafe")
+ self.clip(a, m, M, act)
+ assert_array_strict_equal(ac, act)
+
+ def test_clip_with_out_array_outint32(self):
+ # Test native double input with scalar min/max and int out
+ a = self._generate_data(self.nr, self.nc)
+ m = -1.0
+ M = 2.0
+ ac = np.zeros(a.shape, dtype=np.int32)
+ act = ac.copy()
+ self.fastclip(a, m, M, out=ac, casting="unsafe")
+ self.clip(a, m, M, act)
+ assert_array_strict_equal(ac, act)
+
+ def test_clip_with_out_transposed(self):
+ # Test that the out argument works when transposed
+ a = np.arange(16).reshape(4, 4)
+ out = np.empty_like(a).T
+ a.clip(4, 10, out=out)
+ expected = self.clip(a, 4, 10)
+ assert_array_equal(out, expected)
+
+ def test_clip_with_out_memory_overlap(self):
+ # Test that the out argument works when it has memory overlap
+ a = np.arange(16).reshape(4, 4)
+ ac = a.copy()
+ a[:-1].clip(4, 10, out=a[1:])
+ expected = self.clip(ac[:-1], 4, 10)
+ assert_array_equal(a[1:], expected)
+
+ def test_clip_inplace_array(self):
+ # Test native double input with array min/max
+ a = self._generate_data(self.nr, self.nc)
+ ac = a.copy()
+ m = np.zeros(a.shape)
+ M = 1.0
+ self.fastclip(a, m, M, a)
+ self.clip(a, m, M, ac)
+ assert_array_strict_equal(a, ac)
+
+ def test_clip_inplace_simple(self):
+ # Test native double input with scalar min/max
+ a = self._generate_data(self.nr, self.nc)
+ ac = a.copy()
+ m = -0.5
+ M = 0.6
+ self.fastclip(a, m, M, a)
+ self.clip(a, m, M, ac)
+ assert_array_strict_equal(a, ac)
+
+ def test_clip_func_takes_out(self):
+ # Ensure that the clip() function takes an out=argument.
+ a = self._generate_data(self.nr, self.nc)
+ ac = a.copy()
+ m = -0.5
+ M = 0.6
+ a2 = np.clip(a, m, M, out=a)
+ self.clip(a, m, M, ac)
+ assert_array_strict_equal(a2, ac)
+ assert_(a2 is a)
+
+ def test_clip_nan(self):
+ d = np.arange(7.)
+ assert_equal(d.clip(min=np.nan), np.nan)
+ assert_equal(d.clip(max=np.nan), np.nan)
+ assert_equal(d.clip(min=np.nan, max=np.nan), np.nan)
+ assert_equal(d.clip(min=-2, max=np.nan), np.nan)
+ assert_equal(d.clip(min=np.nan, max=10), np.nan)
+
+ def test_object_clip(self):
+ a = np.arange(10, dtype=object)
+ actual = np.clip(a, 1, 5)
+ expected = np.array([1, 1, 2, 3, 4, 5, 5, 5, 5, 5])
+ assert actual.tolist() == expected.tolist()
+
+ def test_clip_all_none(self):
+ arr = np.arange(10, dtype=object)
+ assert_equal(np.clip(arr, None, None), arr)
+ assert_equal(np.clip(arr), arr)
+
+ def test_clip_invalid_casting(self):
+ a = np.arange(10, dtype=object)
+ with assert_raises_regex(ValueError,
+ 'casting must be one of'):
+ self.fastclip(a, 1, 8, casting="garbage")
+
+ @pytest.mark.parametrize("amin, amax", [
+ # two scalars
+ (1, 0),
+ # mix scalar and array
+ (1, np.zeros(10)),
+ # two arrays
+ (np.ones(10), np.zeros(10)),
+ ])
+ def test_clip_value_min_max_flip(self, amin, amax):
+ a = np.arange(10, dtype=np.int64)
+ # requirement from ufunc_docstrings.py
+ expected = np.minimum(np.maximum(a, amin), amax)
+ actual = np.clip(a, amin, amax)
+ assert_equal(actual, expected)
+
+ @pytest.mark.parametrize("arr, amin, amax, exp", [
+ # for a bug in npy_ObjectClip, based on a
+ # case produced by hypothesis
+ (np.zeros(10, dtype=object),
+ 0,
+ -2**64 + 1,
+ np.full(10, -2**64 + 1, dtype=object)),
+ # for bugs in NPY_TIMEDELTA_MAX, based on a case
+ # produced by hypothesis
+ (np.zeros(10, dtype='m8') - 1,
+ 0,
+ 0,
+ np.zeros(10, dtype='m8')),
+ ])
+ def test_clip_problem_cases(self, arr, amin, amax, exp):
+ actual = np.clip(arr, amin, amax)
+ assert_equal(actual, exp)
+
+ @pytest.mark.parametrize("arr, amin, amax", [
+ # problematic scalar nan case from hypothesis
+ (np.zeros(10, dtype=np.int64),
+ np.array(np.nan),
+ np.zeros(10, dtype=np.int32)),
+ ])
+ def test_clip_scalar_nan_propagation(self, arr, amin, amax):
+ # enforcement of scalar nan propagation for comparisons
+ # called through clip()
+ expected = np.minimum(np.maximum(arr, amin), amax)
+ actual = np.clip(arr, amin, amax)
+ assert_equal(actual, expected)
+
+ @pytest.mark.parametrize("arr, amin, amax", [
+ (np.array([1] * 10, dtype='m8'),
+ np.timedelta64('NaT'),
+ np.zeros(10, dtype=np.int32)),
+ ])
+ def test_NaT_propagation(self, arr, amin, amax):
+ expected = np.minimum(np.maximum(arr, amin), amax)
+ actual = np.clip(arr, amin, amax)
+ assert_equal(actual, expected)
+
+ @given(
+ data=st.data(),
+ arr=hynp.arrays(
+ dtype=hynp.integer_dtypes() | hynp.floating_dtypes(),
+ shape=hynp.array_shapes()
+ )
+ )
+ def test_clip_property(self, data, arr):
+ """A property-based test using Hypothesis.
+
+ This aims for maximum generality: it could in principle generate *any*
+ valid inputs to np.clip, and in practice generates much more varied
+ inputs than human testers come up with.
+
+ Because many of the inputs have tricky dependencies - compatible dtypes
+ and mutually-broadcastable shapes - we use `st.data()` strategy draw
+ values *inside* the test function, from strategies we construct based
+ on previous values. An alternative would be to define a custom strategy
+ with `@st.composite`, but until we have duplicated code inline is fine.
+
+ That accounts for most of the function; the actual test is just three
+ lines to calculate and compare actual vs expected results!
+ """
+ numeric_dtypes = hynp.integer_dtypes() | hynp.floating_dtypes()
+ # Generate shapes for the bounds which can be broadcast with each other
+ # and with the base shape. Below, we might decide to use scalar bounds,
+ # but it's clearer to generate these shapes unconditionally in advance.
+ in_shapes, result_shape = data.draw(
+ hynp.mutually_broadcastable_shapes(
+ num_shapes=2, base_shape=arr.shape
+ )
+ )
+ # Scalar `nan` is deprecated due to the differing behaviour it shows.
+ s = numeric_dtypes.flatmap(
+ lambda x: hynp.from_dtype(x, allow_nan=False))
+ amin = data.draw(s | hynp.arrays(dtype=numeric_dtypes,
+ shape=in_shapes[0], elements={"allow_nan": False}))
+ amax = data.draw(s | hynp.arrays(dtype=numeric_dtypes,
+ shape=in_shapes[1], elements={"allow_nan": False}))
+
+ # Then calculate our result and expected result and check that they're
+ # equal! See gh-12519 and gh-19457 for discussion deciding on this
+ # property and the result_type argument.
+ result = np.clip(arr, amin, amax)
+ t = np.result_type(arr, amin, amax)
+ expected = np.minimum(amax, np.maximum(arr, amin, dtype=t), dtype=t)
+ assert result.dtype == t
+ assert_array_equal(result, expected)
+
+ def test_clip_min_max_args(self):
+ arr = np.arange(5)
+
+ assert_array_equal(np.clip(arr), arr)
+ assert_array_equal(np.clip(arr, min=2, max=3), np.clip(arr, 2, 3))
+ assert_array_equal(np.clip(arr, min=None, max=2),
+ np.clip(arr, None, 2))
+
+ with assert_raises_regex(TypeError, "missing 1 required positional "
+ "argument: 'a_max'"):
+ np.clip(arr, 2)
+ with assert_raises_regex(TypeError, "missing 1 required positional "
+ "argument: 'a_min'"):
+ np.clip(arr, a_max=2)
+ msg = ("Passing `min` or `max` keyword argument when `a_min` and "
+ "`a_max` are provided is forbidden.")
+ with assert_raises_regex(ValueError, msg):
+ np.clip(arr, 2, 3, max=3)
+ with assert_raises_regex(ValueError, msg):
+ np.clip(arr, 2, 3, min=2)
+
+ @pytest.mark.parametrize("dtype,min,max", [
+ ("int32", -2**32 - 1, 2**32),
+ ("int32", -2**320, None),
+ ("int32", None, 2**300),
+ ("int32", -1000, 2**32),
+ ("int32", -2**32 - 1, 1000),
+ ("uint8", -1, 129),
+ ])
+ def test_out_of_bound_pyints(self, dtype, min, max):
+ a = np.arange(10000).astype(dtype)
+ # Check min only
+ c = np.clip(a, min=min, max=max)
+ assert not np.may_share_memory(a, c)
+ assert c.dtype == a.dtype
+ if min is not None:
+ assert (c >= min).all()
+ if max is not None:
+ assert (c <= max).all()
+
+
+class TestAllclose:
+ rtol = 1e-5
+ atol = 1e-8
+
+ def setup_method(self):
+ self.olderr = np.seterr(invalid='ignore')
+
+ def teardown_method(self):
+ np.seterr(**self.olderr)
+
+ def tst_allclose(self, x, y):
+ assert_(np.allclose(x, y), f"{x} and {y} not close")
+
+ def tst_not_allclose(self, x, y):
+ assert_(not np.allclose(x, y), f"{x} and {y} shouldn't be close")
+
+ def test_ip_allclose(self):
+ # Parametric test factory.
+ arr = np.array([100, 1000])
+ aran = np.arange(125).reshape((5, 5, 5))
+
+ atol = self.atol
+ rtol = self.rtol
+
+ data = [([1, 0], [1, 0]),
+ ([atol], [0]),
+ ([1], [1 + rtol + atol]),
+ (arr, arr + arr * rtol),
+ (arr, arr + arr * rtol + atol * 2),
+ (aran, aran + aran * rtol),
+ (np.inf, np.inf),
+ (np.inf, [np.inf])]
+
+ for (x, y) in data:
+ self.tst_allclose(x, y)
+
+ def test_ip_not_allclose(self):
+ # Parametric test factory.
+ aran = np.arange(125).reshape((5, 5, 5))
+
+ atol = self.atol
+ rtol = self.rtol
+
+ data = [([np.inf, 0], [1, np.inf]),
+ ([np.inf, 0], [1, 0]),
+ ([np.inf, np.inf], [1, np.inf]),
+ ([np.inf, np.inf], [1, 0]),
+ ([-np.inf, 0], [np.inf, 0]),
+ ([np.nan, 0], [np.nan, 0]),
+ ([atol * 2], [0]),
+ ([1], [1 + rtol + atol * 2]),
+ (aran, aran + aran * atol + atol * 2),
+ (np.array([np.inf, 1]), np.array([0, np.inf]))]
+
+ for (x, y) in data:
+ self.tst_not_allclose(x, y)
+
+ def test_no_parameter_modification(self):
+ x = np.array([np.inf, 1])
+ y = np.array([0, np.inf])
+ np.allclose(x, y)
+ assert_array_equal(x, np.array([np.inf, 1]))
+ assert_array_equal(y, np.array([0, np.inf]))
+
+ def test_min_int(self):
+ # Could make problems because of abs(min_int) == min_int
+ min_int = np.iinfo(np.int_).min
+ a = np.array([min_int], dtype=np.int_)
+ assert_(np.allclose(a, a))
+
+ def test_equalnan(self):
+ x = np.array([1.0, np.nan])
+ assert_(np.allclose(x, x, equal_nan=True))
+
+ def test_return_class_is_ndarray(self):
+ # Issue gh-6475
+ # Check that allclose does not preserve subtypes
+ class Foo(np.ndarray):
+ def __new__(cls, *args, **kwargs):
+ return np.array(*args, **kwargs).view(cls)
+
+ a = Foo([1])
+ assert_(type(np.allclose(a, a)) is bool)
+
+
+class TestIsclose:
+ rtol = 1e-5
+ atol = 1e-8
+
+ def _setup(self):
+ atol = self.atol
+ rtol = self.rtol
+ arr = np.array([100, 1000])
+ aran = np.arange(125).reshape((5, 5, 5))
+
+ self.all_close_tests = [
+ ([1, 0], [1, 0]),
+ ([atol], [0]),
+ ([1], [1 + rtol + atol]),
+ (arr, arr + arr * rtol),
+ (arr, arr + arr * rtol + atol),
+ (aran, aran + aran * rtol),
+ (np.inf, np.inf),
+ (np.inf, [np.inf]),
+ ([np.inf, -np.inf], [np.inf, -np.inf]),
+ ]
+ self.none_close_tests = [
+ ([np.inf, 0], [1, np.inf]),
+ ([np.inf, -np.inf], [1, 0]),
+ ([np.inf, np.inf], [1, -np.inf]),
+ ([np.inf, np.inf], [1, 0]),
+ ([np.nan, 0], [np.nan, -np.inf]),
+ ([atol * 2], [0]),
+ ([1], [1 + rtol + atol * 2]),
+ (aran, aran + rtol * 1.1 * aran + atol * 1.1),
+ (np.array([np.inf, 1]), np.array([0, np.inf])),
+ ]
+ self.some_close_tests = [
+ ([np.inf, 0], [np.inf, atol * 2]),
+ ([atol, 1, 1e6 * (1 + 2 * rtol) + atol], [0, np.nan, 1e6]),
+ (np.arange(3), [0, 1, 2.1]),
+ (np.nan, [np.nan, np.nan, np.nan]),
+ ([0], [atol, np.inf, -np.inf, np.nan]),
+ (0, [atol, np.inf, -np.inf, np.nan]),
+ ]
+ self.some_close_results = [
+ [True, False],
+ [True, False, False],
+ [True, True, False],
+ [False, False, False],
+ [True, False, False, False],
+ [True, False, False, False],
+ ]
+
+ def test_ip_isclose(self):
+ self._setup()
+ tests = self.some_close_tests
+ results = self.some_close_results
+ for (x, y), result in zip(tests, results):
+ assert_array_equal(np.isclose(x, y), result)
+
+ x = np.array([2.1, 2.1, 2.1, 2.1, 5, np.nan])
+ y = np.array([2, 2, 2, 2, np.nan, 5])
+ atol = [0.11, 0.09, 1e-8, 1e-8, 1, 1]
+ rtol = [1e-8, 1e-8, 0.06, 0.04, 1, 1]
+ expected = np.array([True, False, True, False, False, False])
+ assert_array_equal(np.isclose(x, y, rtol=rtol, atol=atol), expected)
+
+ message = "operands could not be broadcast together..."
+ atol = np.array([1e-8, 1e-8])
+ with assert_raises(ValueError, msg=message):
+ np.isclose(x, y, atol=atol)
+
+ rtol = np.array([1e-5, 1e-5])
+ with assert_raises(ValueError, msg=message):
+ np.isclose(x, y, rtol=rtol)
+
+ def test_nep50_isclose(self):
+ below_one = float(1. - np.finfo('f8').eps)
+ f32 = np.array(below_one, 'f4') # This is just 1 at float32 precision
+ assert f32 > np.array(below_one)
+ # NEP 50 broadcasting of python scalars
+ assert f32 == below_one
+ # Test that it works for isclose arguments too (and that those fail if
+ # one uses a numpy float64).
+ assert np.isclose(f32, below_one, atol=0, rtol=0)
+ assert np.isclose(f32, np.float32(0), atol=below_one)
+ assert np.isclose(f32, 2, atol=0, rtol=below_one / 2)
+ assert not np.isclose(f32, np.float64(below_one), atol=0, rtol=0)
+ assert not np.isclose(f32, np.float32(0), atol=np.float64(below_one))
+ assert not np.isclose(f32, 2, atol=0, rtol=np.float64(below_one / 2))
+
+ def tst_all_isclose(self, x, y):
+ assert_(np.all(np.isclose(x, y)), f"{x} and {y} not close")
+
+ def tst_none_isclose(self, x, y):
+ msg = "%s and %s shouldn't be close"
+ assert_(not np.any(np.isclose(x, y)), msg % (x, y))
+
+ def tst_isclose_allclose(self, x, y):
+ msg = "isclose.all() and allclose aren't same for %s and %s"
+ msg2 = "isclose and allclose aren't same for %s and %s"
+ if np.isscalar(x) and np.isscalar(y):
+ assert_(np.isclose(x, y) == np.allclose(x, y), msg=msg2 % (x, y))
+ else:
+ assert_array_equal(
+ np.isclose(x, y).all(), np.allclose(x, y), msg % (x, y)
+ )
+
+ def test_ip_all_isclose(self):
+ self._setup()
+ for (x, y) in self.all_close_tests:
+ self.tst_all_isclose(x, y)
+
+ x = np.array([2.3, 3.6, 4.4, np.nan])
+ y = np.array([2, 3, 4, np.nan])
+ atol = [0.31, 0, 0, 1]
+ rtol = [0, 0.21, 0.11, 1]
+ assert np.allclose(x, y, atol=atol, rtol=rtol, equal_nan=True)
+ assert not np.allclose(x, y, atol=0.1, rtol=0.1, equal_nan=True)
+
+ # Show that gh-14330 is resolved
+ assert np.allclose([1, 2, float('nan')], [1, 2, float('nan')],
+ atol=[1, 1, 1], equal_nan=True)
+
+ def test_ip_none_isclose(self):
+ self._setup()
+ for (x, y) in self.none_close_tests:
+ self.tst_none_isclose(x, y)
+
+ def test_ip_isclose_allclose(self):
+ self._setup()
+ tests = (self.all_close_tests + self.none_close_tests +
+ self.some_close_tests)
+ for (x, y) in tests:
+ self.tst_isclose_allclose(x, y)
+
+ def test_equal_nan(self):
+ assert_array_equal(np.isclose(np.nan, np.nan, equal_nan=True), [True])
+ arr = np.array([1.0, np.nan])
+ assert_array_equal(np.isclose(arr, arr, equal_nan=True), [True, True])
+
+ def test_masked_arrays(self):
+ # Make sure to test the output type when arguments are interchanged.
+
+ x = np.ma.masked_where([True, True, False], np.arange(3))
+ assert_(type(x) is type(np.isclose(2, x)))
+ assert_(type(x) is type(np.isclose(x, 2)))
+
+ x = np.ma.masked_where([True, True, False], [np.nan, np.inf, np.nan])
+ assert_(type(x) is type(np.isclose(np.inf, x)))
+ assert_(type(x) is type(np.isclose(x, np.inf)))
+
+ x = np.ma.masked_where([True, True, False], [np.nan, np.nan, np.nan])
+ y = np.isclose(np.nan, x, equal_nan=True)
+ assert_(type(x) is type(y))
+ # Ensure that the mask isn't modified...
+ assert_array_equal([True, True, False], y.mask)
+ y = np.isclose(x, np.nan, equal_nan=True)
+ assert_(type(x) is type(y))
+ # Ensure that the mask isn't modified...
+ assert_array_equal([True, True, False], y.mask)
+
+ x = np.ma.masked_where([True, True, False], [np.nan, np.nan, np.nan])
+ y = np.isclose(x, x, equal_nan=True)
+ assert_(type(x) is type(y))
+ # Ensure that the mask isn't modified...
+ assert_array_equal([True, True, False], y.mask)
+
+ def test_scalar_return(self):
+ assert_(np.isscalar(np.isclose(1, 1)))
+
+ def test_no_parameter_modification(self):
+ x = np.array([np.inf, 1])
+ y = np.array([0, np.inf])
+ np.isclose(x, y)
+ assert_array_equal(x, np.array([np.inf, 1]))
+ assert_array_equal(y, np.array([0, np.inf]))
+
+ def test_non_finite_scalar(self):
+ # GH7014, when two scalars are compared the output should also be a
+ # scalar
+ assert_(np.isclose(np.inf, -np.inf) is np.False_)
+ assert_(np.isclose(0, np.inf) is np.False_)
+ assert_(type(np.isclose(0, np.inf)) is np.bool)
+
+ def test_timedelta(self):
+ # Allclose currently works for timedelta64 as long as `atol` is
+ # an integer or also a timedelta64
+ a = np.array([[1, 2, 3, "NaT"]], dtype="m8[ns]")
+ assert np.isclose(a, a, atol=0, equal_nan=True).all()
+ assert np.isclose(a, a, atol=np.timedelta64(1, "ns"), equal_nan=True).all()
+ assert np.allclose(a, a, atol=0, equal_nan=True)
+ assert np.allclose(a, a, atol=np.timedelta64(1, "ns"), equal_nan=True)
+
+ def test_tol_warnings(self):
+ a = np.array([1, 2, 3])
+ b = np.array([np.inf, np.nan, 1])
+
+ for i in b:
+ for j in b:
+ # Making sure that i and j are not both numbers,
+ # because that won't create a warning
+ if (i == 1) and (j == 1):
+ continue
+
+ with warnings.catch_warnings(record=True) as w:
+
+ warnings.simplefilter("always")
+ c = np.isclose(a, a, atol=i, rtol=j)
+ assert len(w) == 1
+ assert issubclass(w[-1].category, RuntimeWarning)
+ expected = f"One of rtol or atol is not valid, atol: {i}, rtol: {j}"
+ assert expected in str(w[-1].message)
+
+
+class TestStdVar:
+ def _create_data(self):
+ A = np.array([1, -1, 1, -1])
+ real_var = 1
+ return A, real_var
+
+ def test_basic(self):
+ A, real_var = self._create_data()
+ assert_almost_equal(np.var(A), real_var)
+ assert_almost_equal(np.std(A)**2, real_var)
+
+ def test_scalars(self):
+ assert_equal(np.var(1), 0)
+ assert_equal(np.std(1), 0)
+
+ def test_ddof1(self):
+ A, real_var = self._create_data()
+ assert_almost_equal(np.var(A, ddof=1),
+ real_var * len(A) / (len(A) - 1))
+ assert_almost_equal(np.std(A, ddof=1)**2,
+ real_var * len(A) / (len(A) - 1))
+
+ def test_ddof2(self):
+ A, real_var = self._create_data()
+ assert_almost_equal(np.var(A, ddof=2),
+ real_var * len(A) / (len(A) - 2))
+ assert_almost_equal(np.std(A, ddof=2)**2,
+ real_var * len(A) / (len(A) - 2))
+
+ def test_correction(self):
+ A, _ = self._create_data()
+ assert_almost_equal(
+ np.var(A, correction=1), np.var(A, ddof=1)
+ )
+ assert_almost_equal(
+ np.std(A, correction=1), np.std(A, ddof=1)
+ )
+
+ err_msg = "ddof and correction can't be provided simultaneously."
+
+ with assert_raises_regex(ValueError, err_msg):
+ np.var(A, ddof=1, correction=0)
+
+ with assert_raises_regex(ValueError, err_msg):
+ np.std(A, ddof=1, correction=1)
+
+ def test_out_scalar(self):
+ d = np.arange(10)
+ out = np.array(0.)
+ r = np.std(d, out=out)
+ assert_(r is out)
+ assert_array_equal(r, out)
+ r = np.var(d, out=out)
+ assert_(r is out)
+ assert_array_equal(r, out)
+ r = np.mean(d, out=out)
+ assert_(r is out)
+ assert_array_equal(r, out)
+
+
+class TestStdVarComplex:
+ def test_basic(self):
+ A = np.array([1, 1.j, -1, -1.j])
+ real_var = 1
+ assert_almost_equal(np.var(A), real_var)
+ assert_almost_equal(np.std(A)**2, real_var)
+
+ def test_scalars(self):
+ assert_equal(np.var(1j), 0)
+ assert_equal(np.std(1j), 0)
+
+
+class TestCreationFuncs:
+ def check_function(self, func, fill_value=None):
+ dtypes_info = {np.dtype(tp) for tp in itertools.chain(*sctypes.values())}
+ keyfunc = lambda dtype: dtype.str
+ variable_sized = {tp for tp in dtypes_info if tp.str.endswith('0')}
+ dtypes = sorted(dtypes_info - variable_sized |
+ {np.dtype(tp.str.replace("0", str(i)))
+ for tp in variable_sized for i in range(1, 10)},
+ key=keyfunc)
+ dtypes += [type(dt) for dt in sorted(dtypes_info, key=keyfunc)]
+ orders = {'C': 'c_contiguous', 'F': 'f_contiguous'}
+ ndims = 10
+
+ par = ((0, 1, 2),
+ range(ndims),
+ orders,
+ dtypes)
+ fill_kwarg = {}
+ if fill_value is not None:
+ fill_kwarg = {'fill_value': fill_value}
+
+ for size, ndims, order, dtype in itertools.product(*par):
+ shape = ndims * [size]
+
+ is_void = dtype is np.dtypes.VoidDType or (
+ isinstance(dtype, np.dtype) and dtype.str.startswith('|V'))
+
+ # do not fill void type
+ if fill_kwarg and is_void:
+ continue
+
+ arr = func(shape, order=order, dtype=dtype,
+ **fill_kwarg)
+
+ if isinstance(dtype, np.dtype):
+ assert_equal(arr.dtype, dtype)
+ elif isinstance(dtype, type(np.dtype)):
+ if dtype in (np.dtypes.StrDType, np.dtypes.BytesDType):
+ dtype_str = np.dtype(dtype.type).str.replace('0', '1')
+ assert_equal(arr.dtype, np.dtype(dtype_str))
+ else:
+ assert_equal(arr.dtype, np.dtype(dtype.type))
+ assert_(getattr(arr.flags, orders[order]))
+
+ if fill_value is not None:
+ if arr.dtype.str.startswith('|S'):
+ val = str(fill_value)
+ else:
+ val = fill_value
+ assert_equal(arr, dtype.type(val))
+
+ def test_zeros(self):
+ self.check_function(np.zeros)
+
+ def test_ones(self):
+ self.check_function(np.ones)
+
+ def test_empty(self):
+ self.check_function(np.empty)
+
+ def test_full(self):
+ self.check_function(np.full, 0)
+ self.check_function(np.full, 1)
+
+ @pytest.mark.skipif(not HAS_REFCOUNT, reason="Python lacks refcounts")
+ def test_for_reference_leak(self):
+ # Make sure we have an object for reference
+ dim = 1
+ beg = sys.getrefcount(dim)
+ np.zeros([dim] * 10)
+ assert_(sys.getrefcount(dim) == beg)
+ np.ones([dim] * 10)
+ assert_(sys.getrefcount(dim) == beg)
+ np.empty([dim] * 10)
+ assert_(sys.getrefcount(dim) == beg)
+ np.full([dim] * 10, 0)
+ assert_(sys.getrefcount(dim) == beg)
+
+ @pytest.mark.skipif(sys.flags.optimize == 2, reason="Python running -OO")
+ @pytest.mark.xfail(IS_PYPY, reason="PyPy does not modify tp_doc")
+ @pytest.mark.parametrize("func", [np.empty, np.zeros, np.ones, np.full])
+ def test_signatures(self, func):
+ sig = inspect.signature(func)
+ params = sig.parameters
+
+ assert len(params) in {5, 6}
+
+ assert 'shape' in params
+ assert params["shape"].kind is inspect.Parameter.POSITIONAL_OR_KEYWORD
+ assert params["shape"].default is inspect.Parameter.empty
+
+ assert 'dtype' in params
+ assert params["dtype"].kind is inspect.Parameter.POSITIONAL_OR_KEYWORD
+ assert params["dtype"].default is None
+
+ assert 'order' in params
+ assert params["order"].kind is inspect.Parameter.POSITIONAL_OR_KEYWORD
+ assert params["order"].default == "C"
+
+ assert 'device' in params
+ assert params["device"].kind is inspect.Parameter.KEYWORD_ONLY
+ assert params["device"].default is None
+
+ assert 'like' in params
+ assert params["like"].kind is inspect.Parameter.KEYWORD_ONLY
+ assert params["like"].default is None
+
+
+class TestLikeFuncs:
+ '''Test ones_like, zeros_like, empty_like and full_like'''
+
+ def compare_array_value(self, dz, value, fill_value):
+ if value is not None:
+ if fill_value:
+ # Conversion is close to what np.full_like uses
+ # but we may want to convert directly in the future
+ # which may result in errors (where this does not).
+ z = np.array(value).astype(dz.dtype)
+ assert_(np.all(dz == z))
+ else:
+ assert_(np.all(dz == value))
+
+ def check_like_function(self, like_function, value, fill_value=False):
+ data = [
+ # Array scalars
+ (np.array(3.), None),
+ (np.array(3), 'f8'),
+ # 1D arrays
+ (np.arange(6, dtype='f4'), None),
+ (np.arange(6), 'c16'),
+ # 2D C-layout arrays
+ (np.arange(6).reshape(2, 3), None),
+ (np.arange(6).reshape(3, 2), 'i1'),
+ # 2D F-layout arrays
+ (np.arange(6).reshape((2, 3), order='F'), None),
+ (np.arange(6).reshape((3, 2), order='F'), 'i1'),
+ # 3D C-layout arrays
+ (np.arange(24).reshape(2, 3, 4), None),
+ (np.arange(24).reshape(4, 3, 2), 'f4'),
+ # 3D F-layout arrays
+ (np.arange(24).reshape((2, 3, 4), order='F'), None),
+ (np.arange(24).reshape((4, 3, 2), order='F'), 'f4'),
+ # 3D non-C/F-layout arrays
+ (np.arange(24).reshape(2, 3, 4).swapaxes(0, 1), None),
+ (np.arange(24).reshape(4, 3, 2).swapaxes(0, 1), '?'),
+ ]
+ shapes = [(), (5,), (5, 6,), (5, 6, 7,)]
+
+ if fill_value:
+ fill_kwarg = {'fill_value': value}
+ else:
+ fill_kwarg = {}
+ for d, dtype in data:
+ # default (K) order, dtype
+ dz = like_function(d, dtype=dtype, **fill_kwarg)
+ assert_equal(dz.shape, d.shape)
+ assert_equal(np.array(dz.strides) * d.dtype.itemsize,
+ np.array(d.strides) * dz.dtype.itemsize)
+ assert_equal(d.flags.c_contiguous, dz.flags.c_contiguous)
+ assert_equal(d.flags.f_contiguous, dz.flags.f_contiguous)
+ if dtype is None:
+ assert_equal(dz.dtype, d.dtype)
+ else:
+ assert_equal(dz.dtype, np.dtype(dtype))
+ self.compare_array_value(dz, value, fill_value)
+
+ # C order, default dtype
+ dz = like_function(d, order='C', dtype=dtype, **fill_kwarg)
+ assert_equal(dz.shape, d.shape)
+ assert_(dz.flags.c_contiguous)
+ if dtype is None:
+ assert_equal(dz.dtype, d.dtype)
+ else:
+ assert_equal(dz.dtype, np.dtype(dtype))
+ self.compare_array_value(dz, value, fill_value)
+
+ # F order, default dtype
+ dz = like_function(d, order='F', dtype=dtype, **fill_kwarg)
+ assert_equal(dz.shape, d.shape)
+ assert_(dz.flags.f_contiguous)
+ if dtype is None:
+ assert_equal(dz.dtype, d.dtype)
+ else:
+ assert_equal(dz.dtype, np.dtype(dtype))
+ self.compare_array_value(dz, value, fill_value)
+
+ # A order
+ dz = like_function(d, order='A', dtype=dtype, **fill_kwarg)
+ assert_equal(dz.shape, d.shape)
+ if d.flags.f_contiguous:
+ assert_(dz.flags.f_contiguous)
+ else:
+ assert_(dz.flags.c_contiguous)
+ if dtype is None:
+ assert_equal(dz.dtype, d.dtype)
+ else:
+ assert_equal(dz.dtype, np.dtype(dtype))
+ self.compare_array_value(dz, value, fill_value)
+
+ # Test the 'shape' parameter
+ for s in shapes:
+ for o in 'CFA':
+ sz = like_function(d, dtype=dtype, shape=s, order=o,
+ **fill_kwarg)
+ assert_equal(sz.shape, s)
+ if dtype is None:
+ assert_equal(sz.dtype, d.dtype)
+ else:
+ assert_equal(sz.dtype, np.dtype(dtype))
+ if o == 'C' or (o == 'A' and d.flags.c_contiguous):
+ assert_(sz.flags.c_contiguous)
+ elif o == 'F' or (o == 'A' and d.flags.f_contiguous):
+ assert_(sz.flags.f_contiguous)
+ self.compare_array_value(sz, value, fill_value)
+
+ if (d.ndim != len(s)):
+ assert_equal(np.argsort(like_function(d, dtype=dtype,
+ shape=s, order='K',
+ **fill_kwarg).strides),
+ np.argsort(np.empty(s, dtype=dtype,
+ order='C').strides))
+ else:
+ assert_equal(np.argsort(like_function(d, dtype=dtype,
+ shape=s, order='K',
+ **fill_kwarg).strides),
+ np.argsort(d.strides))
+
+ # Test the 'subok' parameter
+ class MyNDArray(np.ndarray):
+ pass
+
+ a = np.array([[1, 2], [3, 4]]).view(MyNDArray)
+
+ b = like_function(a, **fill_kwarg)
+ assert_(type(b) is MyNDArray)
+
+ b = like_function(a, subok=False, **fill_kwarg)
+ assert_(type(b) is not MyNDArray)
+
+ # Test invalid dtype
+ with assert_raises(TypeError):
+ a = np.array(b"abc")
+ like_function(a, dtype="S-1", **fill_kwarg)
+
+ def test_ones_like(self):
+ self.check_like_function(np.ones_like, 1)
+
+ def test_zeros_like(self):
+ self.check_like_function(np.zeros_like, 0)
+
+ def test_empty_like(self):
+ self.check_like_function(np.empty_like, None)
+
+ def test_filled_like(self):
+ self.check_like_function(np.full_like, 0, True)
+ self.check_like_function(np.full_like, 1, True)
+ # Large integers may overflow, but using int64 is OK (casts)
+ # see also gh-27075
+ with pytest.raises(OverflowError):
+ np.full_like(np.ones(3, dtype=np.int8), 1000)
+ self.check_like_function(np.full_like, np.int64(1000), True)
+ self.check_like_function(np.full_like, 123.456, True)
+ # Inf to integer casts cause invalid-value errors: ignore them.
+ with np.errstate(invalid="ignore"):
+ self.check_like_function(np.full_like, np.inf, True)
+
+ @pytest.mark.parametrize('likefunc', [np.empty_like, np.full_like,
+ np.zeros_like, np.ones_like])
+ @pytest.mark.parametrize('dtype', [str, bytes])
+ def test_dtype_str_bytes(self, likefunc, dtype):
+ # Regression test for gh-19860
+ a = np.arange(16).reshape(2, 8)
+ b = a[:, ::2] # Ensure b is not contiguous.
+ kwargs = {'fill_value': ''} if likefunc == np.full_like else {}
+ result = likefunc(b, dtype=dtype, **kwargs)
+ if dtype == str:
+ assert result.strides == (16, 4)
+ else:
+ # dtype is bytes
+ assert result.strides == (4, 1)
+
+
+class TestCorrelate:
+ def _setup(self, dt):
+ self.x = np.array([1, 2, 3, 4, 5], dtype=dt)
+ self.xs = np.arange(1, 20)[::3]
+ self.y = np.array([-1, -2, -3], dtype=dt)
+ self.z1 = np.array([-3., -8., -14., -20., -26., -14., -5.], dtype=dt)
+ self.z1_4 = np.array([-2., -5., -8., -11., -14., -5.], dtype=dt)
+ self.z1r = np.array([-15., -22., -22., -16., -10., -4., -1.], dtype=dt)
+ self.z2 = np.array([-5., -14., -26., -20., -14., -8., -3.], dtype=dt)
+ self.z2r = np.array([-1., -4., -10., -16., -22., -22., -15.], dtype=dt)
+ self.zs = np.array([-3., -14., -30., -48., -66., -84.,
+ -102., -54., -19.], dtype=dt)
+
+ def test_float(self):
+ self._setup(float)
+ z = np.correlate(self.x, self.y, 'full')
+ assert_array_almost_equal(z, self.z1)
+ z = np.correlate(self.x, self.y[:-1], 'full')
+ assert_array_almost_equal(z, self.z1_4)
+ z = np.correlate(self.y, self.x, 'full')
+ assert_array_almost_equal(z, self.z2)
+ z = np.correlate(self.x[::-1], self.y, 'full')
+ assert_array_almost_equal(z, self.z1r)
+ z = np.correlate(self.y, self.x[::-1], 'full')
+ assert_array_almost_equal(z, self.z2r)
+ z = np.correlate(self.xs, self.y, 'full')
+ assert_array_almost_equal(z, self.zs)
+
+ def test_object(self):
+ self._setup(Decimal)
+ z = np.correlate(self.x, self.y, 'full')
+ assert_array_almost_equal(z, self.z1)
+ z = np.correlate(self.y, self.x, 'full')
+ assert_array_almost_equal(z, self.z2)
+
+ def test_no_overwrite(self):
+ d = np.ones(100)
+ k = np.ones(3)
+ np.correlate(d, k)
+ assert_array_equal(d, np.ones(100))
+ assert_array_equal(k, np.ones(3))
+
+ def test_complex(self):
+ x = np.array([1, 2, 3, 4 + 1j], dtype=complex)
+ y = np.array([-1, -2j, 3 + 1j], dtype=complex)
+ r_z = np.array([3 - 1j, 6, 8 + 1j, 11 + 5j, -5 + 8j, -4 - 1j], dtype=complex)
+ r_z = r_z[::-1].conjugate()
+ z = np.correlate(y, x, mode='full')
+ assert_array_almost_equal(z, r_z)
+
+ def test_zero_size(self):
+ with pytest.raises(ValueError):
+ np.correlate(np.array([]), np.ones(1000), mode='full')
+ with pytest.raises(ValueError):
+ np.correlate(np.ones(1000), np.array([]), mode='full')
+
+ def test_mode(self):
+ d = np.ones(100)
+ k = np.ones(3)
+ default_mode = np.correlate(d, k, mode='valid')
+ with assert_raises(ValueError):
+ np.correlate(d, k, mode='v')
+ # integer mode
+ with assert_raises(ValueError):
+ np.correlate(d, k, mode=-1)
+ # assert_array_equal(np.correlate(d, k, mode=), default_mode)
+ # illegal arguments
+ with assert_raises(TypeError):
+ np.correlate(d, k, mode=None)
+
+
+class TestConvolve:
+ def test_object(self):
+ d = [1.] * 100
+ k = [1.] * 3
+ assert_array_almost_equal(np.convolve(d, k)[2:-2], np.full(98, 3))
+
+ def test_no_overwrite(self):
+ d = np.ones(100)
+ k = np.ones(3)
+ np.convolve(d, k)
+ assert_array_equal(d, np.ones(100))
+ assert_array_equal(k, np.ones(3))
+
+ def test_mode(self):
+ d = np.ones(100)
+ k = np.ones(3)
+ default_mode = np.convolve(d, k, mode='full')
+ with assert_raises(ValueError):
+ np.convolve(d, k, mode='f')
+ # integer mode
+ with assert_raises(ValueError):
+ np.convolve(d, k, mode=-1)
+ assert_array_equal(np.convolve(d, k, mode=2), default_mode)
+ # illegal arguments
+ with assert_raises(TypeError):
+ np.convolve(d, k, mode=None)
+
+ def test_convolve_empty_input_error_message(self):
+ """
+ Test that convolve raises the correct error message when inputs are empty.
+ Regression test for gh-30272 (variable swapping bug).
+ """
+ with pytest.raises(ValueError, match="a cannot be empty"):
+ np.convolve(np.array([]), np.array([1, 2]))
+
+ with pytest.raises(ValueError, match="v cannot be empty"):
+ np.convolve(np.array([1, 2]), np.array([]))
+
+class TestArgwhere:
+
+ @pytest.mark.parametrize('nd', [0, 1, 2])
+ def test_nd(self, nd):
+ # get an nd array with multiple elements in every dimension
+ x = np.empty((2,) * nd, bool)
+
+ # none
+ x[...] = False
+ assert_equal(np.argwhere(x).shape, (0, nd))
+
+ # only one
+ x[...] = False
+ x.flat[0] = True
+ assert_equal(np.argwhere(x).shape, (1, nd))
+
+ # all but one
+ x[...] = True
+ x.flat[0] = False
+ assert_equal(np.argwhere(x).shape, (x.size - 1, nd))
+
+ # all
+ x[...] = True
+ assert_equal(np.argwhere(x).shape, (x.size, nd))
+
+ def test_2D(self):
+ x = np.arange(6).reshape((2, 3))
+ assert_array_equal(np.argwhere(x > 1),
+ [[0, 2],
+ [1, 0],
+ [1, 1],
+ [1, 2]])
+
+ def test_list(self):
+ assert_equal(np.argwhere([4, 0, 2, 1, 3]), [[0], [2], [3], [4]])
+
+
+class TestRoll:
+ def test_roll1d(self):
+ x = np.arange(10)
+ xr = np.roll(x, 2)
+ assert_equal(xr, np.array([8, 9, 0, 1, 2, 3, 4, 5, 6, 7]))
+
+ def test_roll2d(self):
+ x2 = np.reshape(np.arange(10), (2, 5))
+ x2r = np.roll(x2, 1)
+ assert_equal(x2r, np.array([[9, 0, 1, 2, 3], [4, 5, 6, 7, 8]]))
+
+ x2r = np.roll(x2, 1, axis=0)
+ assert_equal(x2r, np.array([[5, 6, 7, 8, 9], [0, 1, 2, 3, 4]]))
+
+ x2r = np.roll(x2, 1, axis=1)
+ assert_equal(x2r, np.array([[4, 0, 1, 2, 3], [9, 5, 6, 7, 8]]))
+
+ # Roll multiple axes at once.
+ x2r = np.roll(x2, 1, axis=(0, 1))
+ assert_equal(x2r, np.array([[9, 5, 6, 7, 8], [4, 0, 1, 2, 3]]))
+
+ x2r = np.roll(x2, (1, 0), axis=(0, 1))
+ assert_equal(x2r, np.array([[5, 6, 7, 8, 9], [0, 1, 2, 3, 4]]))
+
+ x2r = np.roll(x2, (-1, 0), axis=(0, 1))
+ assert_equal(x2r, np.array([[5, 6, 7, 8, 9], [0, 1, 2, 3, 4]]))
+
+ x2r = np.roll(x2, (0, 1), axis=(0, 1))
+ assert_equal(x2r, np.array([[4, 0, 1, 2, 3], [9, 5, 6, 7, 8]]))
+
+ x2r = np.roll(x2, (0, -1), axis=(0, 1))
+ assert_equal(x2r, np.array([[1, 2, 3, 4, 0], [6, 7, 8, 9, 5]]))
+
+ x2r = np.roll(x2, (1, 1), axis=(0, 1))
+ assert_equal(x2r, np.array([[9, 5, 6, 7, 8], [4, 0, 1, 2, 3]]))
+
+ x2r = np.roll(x2, (-1, -1), axis=(0, 1))
+ assert_equal(x2r, np.array([[6, 7, 8, 9, 5], [1, 2, 3, 4, 0]]))
+
+ # Roll the same axis multiple times.
+ x2r = np.roll(x2, 1, axis=(0, 0))
+ assert_equal(x2r, np.array([[0, 1, 2, 3, 4], [5, 6, 7, 8, 9]]))
+
+ x2r = np.roll(x2, 1, axis=(1, 1))
+ assert_equal(x2r, np.array([[3, 4, 0, 1, 2], [8, 9, 5, 6, 7]]))
+
+ # Roll more than one turn in either direction.
+ x2r = np.roll(x2, 6, axis=1)
+ assert_equal(x2r, np.array([[4, 0, 1, 2, 3], [9, 5, 6, 7, 8]]))
+
+ x2r = np.roll(x2, -4, axis=1)
+ assert_equal(x2r, np.array([[4, 0, 1, 2, 3], [9, 5, 6, 7, 8]]))
+
+ def test_roll_empty(self):
+ x = np.array([])
+ assert_equal(np.roll(x, 1), np.array([]))
+
+ def test_roll_unsigned_shift(self):
+ x = np.arange(4)
+ shift = np.uint16(2)
+ assert_equal(np.roll(x, shift), np.roll(x, 2))
+
+ shift = np.uint64(2**63 + 2)
+ assert_equal(np.roll(x, shift), np.roll(x, 2))
+
+ def test_roll_big_int(self):
+ x = np.arange(4)
+ assert_equal(np.roll(x, 2**100), x)
+
+
+class TestRollaxis:
+
+ # expected shape indexed by (axis, start) for array of
+ # shape (1, 2, 3, 4)
+ tgtshape = {(0, 0): (1, 2, 3, 4), (0, 1): (1, 2, 3, 4),
+ (0, 2): (2, 1, 3, 4), (0, 3): (2, 3, 1, 4),
+ (0, 4): (2, 3, 4, 1),
+ (1, 0): (2, 1, 3, 4), (1, 1): (1, 2, 3, 4),
+ (1, 2): (1, 2, 3, 4), (1, 3): (1, 3, 2, 4),
+ (1, 4): (1, 3, 4, 2),
+ (2, 0): (3, 1, 2, 4), (2, 1): (1, 3, 2, 4),
+ (2, 2): (1, 2, 3, 4), (2, 3): (1, 2, 3, 4),
+ (2, 4): (1, 2, 4, 3),
+ (3, 0): (4, 1, 2, 3), (3, 1): (1, 4, 2, 3),
+ (3, 2): (1, 2, 4, 3), (3, 3): (1, 2, 3, 4),
+ (3, 4): (1, 2, 3, 4)}
+
+ def test_exceptions(self):
+ a = np.arange(1 * 2 * 3 * 4).reshape(1, 2, 3, 4)
+ assert_raises(AxisError, np.rollaxis, a, -5, 0)
+ assert_raises(AxisError, np.rollaxis, a, 0, -5)
+ assert_raises(AxisError, np.rollaxis, a, 4, 0)
+ assert_raises(AxisError, np.rollaxis, a, 0, 5)
+
+ def test_results(self):
+ a = np.arange(1 * 2 * 3 * 4).reshape(1, 2, 3, 4).copy()
+ aind = np.indices(a.shape)
+ assert_(a.flags['OWNDATA'])
+ for (i, j) in self.tgtshape:
+ # positive axis, positive start
+ res = np.rollaxis(a, axis=i, start=j)
+ i0, i1, i2, i3 = aind[np.array(res.shape) - 1]
+ assert_(np.all(res[i0, i1, i2, i3] == a))
+ assert_(res.shape == self.tgtshape[(i, j)], str((i, j)))
+ assert_(not res.flags['OWNDATA'])
+
+ # negative axis, positive start
+ ip = i + 1
+ res = np.rollaxis(a, axis=-ip, start=j)
+ i0, i1, i2, i3 = aind[np.array(res.shape) - 1]
+ assert_(np.all(res[i0, i1, i2, i3] == a))
+ assert_(res.shape == self.tgtshape[(4 - ip, j)])
+ assert_(not res.flags['OWNDATA'])
+
+ # positive axis, negative start
+ jp = j + 1 if j < 4 else j
+ res = np.rollaxis(a, axis=i, start=-jp)
+ i0, i1, i2, i3 = aind[np.array(res.shape) - 1]
+ assert_(np.all(res[i0, i1, i2, i3] == a))
+ assert_(res.shape == self.tgtshape[(i, 4 - jp)])
+ assert_(not res.flags['OWNDATA'])
+
+ # negative axis, negative start
+ ip = i + 1
+ jp = j + 1 if j < 4 else j
+ res = np.rollaxis(a, axis=-ip, start=-jp)
+ i0, i1, i2, i3 = aind[np.array(res.shape) - 1]
+ assert_(np.all(res[i0, i1, i2, i3] == a))
+ assert_(res.shape == self.tgtshape[(4 - ip, 4 - jp)])
+ assert_(not res.flags['OWNDATA'])
+
+
+class TestMoveaxis:
+ def test_move_to_end(self):
+ x = np.random.randn(5, 6, 7)
+ for source, expected in [(0, (6, 7, 5)),
+ (1, (5, 7, 6)),
+ (2, (5, 6, 7)),
+ (-1, (5, 6, 7))]:
+ actual = np.moveaxis(x, source, -1).shape
+ assert_(actual, expected)
+
+ def test_move_new_position(self):
+ x = np.random.randn(1, 2, 3, 4)
+ for source, destination, expected in [
+ (0, 1, (2, 1, 3, 4)),
+ (1, 2, (1, 3, 2, 4)),
+ (1, -1, (1, 3, 4, 2)),
+ ]:
+ actual = np.moveaxis(x, source, destination).shape
+ assert_(actual, expected)
+
+ def test_preserve_order(self):
+ x = np.zeros((1, 2, 3, 4))
+ for source, destination in [
+ (0, 0),
+ (3, -1),
+ (-1, 3),
+ ([0, -1], [0, -1]),
+ ([2, 0], [2, 0]),
+ (range(4), range(4)),
+ ]:
+ actual = np.moveaxis(x, source, destination).shape
+ assert_(actual, (1, 2, 3, 4))
+
+ def test_move_multiples(self):
+ x = np.zeros((0, 1, 2, 3))
+ for source, destination, expected in [
+ ([0, 1], [2, 3], (2, 3, 0, 1)),
+ ([2, 3], [0, 1], (2, 3, 0, 1)),
+ ([0, 1, 2], [2, 3, 0], (2, 3, 0, 1)),
+ ([3, 0], [1, 0], (0, 3, 1, 2)),
+ ([0, 3], [0, 1], (0, 3, 1, 2)),
+ ]:
+ actual = np.moveaxis(x, source, destination).shape
+ assert_(actual, expected)
+
+ def test_errors(self):
+ x = np.random.randn(1, 2, 3)
+ assert_raises_regex(AxisError, 'source.*out of bounds',
+ np.moveaxis, x, 3, 0)
+ assert_raises_regex(AxisError, 'source.*out of bounds',
+ np.moveaxis, x, -4, 0)
+ assert_raises_regex(AxisError, 'destination.*out of bounds',
+ np.moveaxis, x, 0, 5)
+ assert_raises_regex(ValueError, 'repeated axis in `source`',
+ np.moveaxis, x, [0, 0], [0, 1])
+ assert_raises_regex(ValueError, 'repeated axis in `destination`',
+ np.moveaxis, x, [0, 1], [1, 1])
+ assert_raises_regex(ValueError, 'must have the same number',
+ np.moveaxis, x, 0, [0, 1])
+ assert_raises_regex(ValueError, 'must have the same number',
+ np.moveaxis, x, [0, 1], [0])
+
+ def test_array_likes(self):
+ x = np.ma.zeros((1, 2, 3))
+ result = np.moveaxis(x, 0, 0)
+ assert_(x.shape, result.shape)
+ assert_(isinstance(result, np.ma.MaskedArray))
+
+ x = [1, 2, 3]
+ result = np.moveaxis(x, 0, 0)
+ assert_(x, list(result))
+ assert_(isinstance(result, np.ndarray))
+
+
+class TestCross:
+ @pytest.mark.filterwarnings(
+ "ignore:.*2-dimensional vectors.*:DeprecationWarning"
+ )
+ def test_2x2(self):
+ u = [1, 2]
+ v = [3, 4]
+ z = -2
+ cp = np.cross(u, v)
+ assert_equal(cp, z)
+ cp = np.cross(v, u)
+ assert_equal(cp, -z)
+
+ @pytest.mark.filterwarnings(
+ "ignore:.*2-dimensional vectors.*:DeprecationWarning"
+ )
+ def test_2x3(self):
+ u = [1, 2]
+ v = [3, 4, 5]
+ z = np.array([10, -5, -2])
+ cp = np.cross(u, v)
+ assert_equal(cp, z)
+ cp = np.cross(v, u)
+ assert_equal(cp, -z)
+
+ def test_3x3(self):
+ u = [1, 2, 3]
+ v = [4, 5, 6]
+ z = np.array([-3, 6, -3])
+ cp = np.cross(u, v)
+ assert_equal(cp, z)
+ cp = np.cross(v, u)
+ assert_equal(cp, -z)
+
+ @pytest.mark.filterwarnings(
+ "ignore:.*2-dimensional vectors.*:DeprecationWarning"
+ )
+ def test_broadcasting(self):
+ # Ticket #2624 (Trac #2032)
+ u = np.tile([1, 2], (11, 1))
+ v = np.tile([3, 4], (11, 1))
+ z = -2
+ assert_equal(np.cross(u, v), z)
+ assert_equal(np.cross(v, u), -z)
+ assert_equal(np.cross(u, u), 0)
+
+ u = np.tile([1, 2], (11, 1)).T
+ v = np.tile([3, 4, 5], (11, 1))
+ z = np.tile([10, -5, -2], (11, 1))
+ assert_equal(np.cross(u, v, axisa=0), z)
+ assert_equal(np.cross(v, u.T), -z)
+ assert_equal(np.cross(v, v), 0)
+
+ u = np.tile([1, 2, 3], (11, 1)).T
+ v = np.tile([3, 4], (11, 1)).T
+ z = np.tile([-12, 9, -2], (11, 1))
+ assert_equal(np.cross(u, v, axisa=0, axisb=0), z)
+ assert_equal(np.cross(v.T, u.T), -z)
+ assert_equal(np.cross(u.T, u.T), 0)
+
+ u = np.tile([1, 2, 3], (5, 1))
+ v = np.tile([4, 5, 6], (5, 1)).T
+ z = np.tile([-3, 6, -3], (5, 1))
+ assert_equal(np.cross(u, v, axisb=0), z)
+ assert_equal(np.cross(v.T, u), -z)
+ assert_equal(np.cross(u, u), 0)
+
+ @pytest.mark.filterwarnings(
+ "ignore:.*2-dimensional vectors.*:DeprecationWarning"
+ )
+ def test_broadcasting_shapes(self):
+ u = np.ones((2, 1, 3))
+ v = np.ones((5, 3))
+ assert_equal(np.cross(u, v).shape, (2, 5, 3))
+ u = np.ones((10, 3, 5))
+ v = np.ones((2, 5))
+ assert_equal(np.cross(u, v, axisa=1, axisb=0).shape, (10, 5, 3))
+ assert_raises(AxisError, np.cross, u, v, axisa=1, axisb=2)
+ assert_raises(AxisError, np.cross, u, v, axisa=3, axisb=0)
+ u = np.ones((10, 3, 5, 7))
+ v = np.ones((5, 7, 2))
+ assert_equal(np.cross(u, v, axisa=1, axisc=2).shape, (10, 5, 3, 7))
+ assert_raises(AxisError, np.cross, u, v, axisa=-5, axisb=2)
+ assert_raises(AxisError, np.cross, u, v, axisa=1, axisb=-4)
+ # gh-5885
+ u = np.ones((3, 4, 2))
+ for axisc in range(-2, 2):
+ assert_equal(np.cross(u, u, axisc=axisc).shape, (3, 4))
+
+ def test_uint8_int32_mixed_dtypes(self):
+ # regression test for gh-19138
+ u = np.array([[195, 8, 9]], np.uint8)
+ v = np.array([250, 166, 68], np.int32)
+ z = np.array([[950, 11010, -30370]], dtype=np.int32)
+ assert_equal(np.cross(v, u), z)
+ assert_equal(np.cross(u, v), -z)
+
+ @pytest.mark.parametrize("a, b", [(0, [1, 2]), ([1, 2], 3)])
+ def test_zero_dimension(self, a, b):
+ with pytest.raises(ValueError) as exc:
+ np.cross(a, b)
+ assert "At least one array has zero dimension" in str(exc.value)
+
+
+def test_outer_out_param():
+ arr1 = np.ones((5,))
+ arr2 = np.ones((2,))
+ arr3 = np.linspace(-2, 2, 5)
+ out1 = np.ndarray(shape=(5, 5))
+ out2 = np.ndarray(shape=(2, 5))
+ res1 = np.outer(arr1, arr3, out1)
+ assert_equal(res1, out1)
+ assert_equal(np.outer(arr2, arr3, out2), out2)
+
+
+class TestIndices:
+
+ def test_simple(self):
+ [x, y] = np.indices((4, 3))
+ assert_array_equal(x, np.array([[0, 0, 0],
+ [1, 1, 1],
+ [2, 2, 2],
+ [3, 3, 3]]))
+ assert_array_equal(y, np.array([[0, 1, 2],
+ [0, 1, 2],
+ [0, 1, 2],
+ [0, 1, 2]]))
+
+ def test_single_input(self):
+ [x] = np.indices((4,))
+ assert_array_equal(x, np.array([0, 1, 2, 3]))
+
+ [x] = np.indices((4,), sparse=True)
+ assert_array_equal(x, np.array([0, 1, 2, 3]))
+
+ def test_scalar_input(self):
+ assert_array_equal([], np.indices(()))
+ assert_array_equal([], np.indices((), sparse=True))
+ assert_array_equal([[]], np.indices((0,)))
+ assert_array_equal([[]], np.indices((0,), sparse=True))
+
+ def test_sparse(self):
+ [x, y] = np.indices((4, 3), sparse=True)
+ assert_array_equal(x, np.array([[0], [1], [2], [3]]))
+ assert_array_equal(y, np.array([[0, 1, 2]]))
+
+ @pytest.mark.parametrize("dtype", [np.int32, np.int64, np.float32, np.float64])
+ @pytest.mark.parametrize("dims", [(), (0,), (4, 3)])
+ def test_return_type(self, dtype, dims):
+ inds = np.indices(dims, dtype=dtype)
+ assert_(inds.dtype == dtype)
+
+ for arr in np.indices(dims, dtype=dtype, sparse=True):
+ assert_(arr.dtype == dtype)
+
+
+class TestRequire:
+ flag_names = ['C', 'C_CONTIGUOUS', 'CONTIGUOUS',
+ 'F', 'F_CONTIGUOUS', 'FORTRAN',
+ 'A', 'ALIGNED',
+ 'W', 'WRITEABLE',
+ 'O', 'OWNDATA']
+
+ def generate_all_false(self, dtype):
+ arr = np.zeros((2, 2), [('junk', 'i1'), ('a', dtype)])
+ arr.setflags(write=False)
+ a = arr['a']
+ assert_(not a.flags['C'])
+ assert_(not a.flags['F'])
+ assert_(not a.flags['O'])
+ assert_(not a.flags['W'])
+ assert_(not a.flags['A'])
+ return a
+
+ def set_and_check_flag(self, flag, dtype, arr):
+ if dtype is None:
+ dtype = arr.dtype
+ b = np.require(arr, dtype, [flag])
+ assert_(b.flags[flag])
+ assert_(b.dtype == dtype)
+
+ # a further call to np.require ought to return the same array
+ # unless OWNDATA is specified.
+ c = np.require(b, None, [flag])
+ if flag[0] != 'O':
+ assert_(c is b)
+ else:
+ assert_(c.flags[flag])
+
+ def test_require_each(self):
+
+ id = ['f8', 'i4']
+ fd = [None, 'f8', 'c16']
+ for idtype, fdtype, flag in itertools.product(id, fd, self.flag_names):
+ a = self.generate_all_false(idtype)
+ self.set_and_check_flag(flag, fdtype, a)
+
+ def test_unknown_requirement(self):
+ a = self.generate_all_false('f8')
+ assert_raises(KeyError, np.require, a, None, 'Q')
+
+ def test_non_array_input(self):
+ a = np.require([1, 2, 3, 4], 'i4', ['C', 'A', 'O'])
+ assert_(a.flags['O'])
+ assert_(a.flags['C'])
+ assert_(a.flags['A'])
+ assert_(a.dtype == 'i4')
+ assert_equal(a, [1, 2, 3, 4])
+
+ def test_C_and_F_simul(self):
+ a = self.generate_all_false('f8')
+ assert_raises(ValueError, np.require, a, None, ['C', 'F'])
+
+ def test_ensure_array(self):
+ class ArraySubclass(np.ndarray):
+ pass
+
+ a = ArraySubclass((2, 2))
+ b = np.require(a, None, ['E'])
+ assert_(type(b) is np.ndarray)
+
+ def test_preserve_subtype(self):
+ class ArraySubclass(np.ndarray):
+ pass
+
+ for flag in self.flag_names:
+ a = ArraySubclass((2, 2))
+ self.set_and_check_flag(flag, None, a)
+
+
+class TestBroadcast:
+ def test_broadcast_in_args(self):
+ # gh-5881
+ arrs = [np.empty((6, 7)), np.empty((5, 6, 1)), np.empty((7,)),
+ np.empty((5, 1, 7))]
+ mits = [np.broadcast(*arrs),
+ np.broadcast(np.broadcast(*arrs[:0]), np.broadcast(*arrs[0:])),
+ np.broadcast(np.broadcast(*arrs[:1]), np.broadcast(*arrs[1:])),
+ np.broadcast(np.broadcast(*arrs[:2]), np.broadcast(*arrs[2:])),
+ np.broadcast(arrs[0], np.broadcast(*arrs[1:-1]), arrs[-1])]
+ for mit in mits:
+ assert_equal(mit.shape, (5, 6, 7))
+ assert_equal(mit.ndim, 3)
+ assert_equal(mit.nd, 3)
+ assert_equal(mit.numiter, 4)
+ for a, ia in zip(arrs, mit.iters):
+ assert_(a is ia.base)
+
+ def test_broadcast_single_arg(self):
+ # gh-6899
+ arrs = [np.empty((5, 6, 7))]
+ mit = np.broadcast(*arrs)
+ assert_equal(mit.shape, (5, 6, 7))
+ assert_equal(mit.ndim, 3)
+ assert_equal(mit.nd, 3)
+ assert_equal(mit.numiter, 1)
+ assert_(arrs[0] is mit.iters[0].base)
+
+ def test_number_of_arguments(self):
+ arr = np.empty((5,))
+ for j in range(70):
+ arrs = [arr] * j
+ if j > 64:
+ assert_raises(ValueError, np.broadcast, *arrs)
+ else:
+ mit = np.broadcast(*arrs)
+ assert_equal(mit.numiter, j)
+
+ def test_broadcast_error_kwargs(self):
+ # gh-13455
+ arrs = [np.empty((5, 6, 7))]
+ mit = np.broadcast(*arrs)
+ mit2 = np.broadcast(*arrs, **{}) # noqa: PIE804
+ assert_equal(mit.shape, mit2.shape)
+ assert_equal(mit.ndim, mit2.ndim)
+ assert_equal(mit.nd, mit2.nd)
+ assert_equal(mit.numiter, mit2.numiter)
+ assert_(mit.iters[0].base is mit2.iters[0].base)
+
+ assert_raises(ValueError, np.broadcast, 1, x=1)
+
+ def test_shape_mismatch_error_message(self):
+ with pytest.raises(ValueError, match=r"arg 0 with shape \(1, 3\) and "
+ r"arg 2 with shape \(2,\)"):
+ np.broadcast([[1, 2, 3]], [[4], [5]], [6, 7])
+
+ @pytest.mark.skipif(sys.flags.optimize == 2, reason="Python running -OO")
+ @pytest.mark.xfail(IS_PYPY, reason="PyPy does not modify tp_doc")
+ def test_signatures(self):
+ sig_new = inspect.signature(np.broadcast)
+ assert len(sig_new.parameters) == 1
+ assert "arrays" in sig_new.parameters
+ assert sig_new.parameters["arrays"].kind == inspect.Parameter.VAR_POSITIONAL
+
+ sig_reset = inspect.signature(np.broadcast.reset)
+ assert len(sig_reset.parameters) == 1
+ assert "self" in sig_reset.parameters
+ assert sig_reset.parameters["self"].kind == inspect.Parameter.POSITIONAL_ONLY
+
+
+class TestKeepdims:
+
+ class sub_array(np.ndarray):
+ def sum(self, axis=None, dtype=None, out=None):
+ return np.ndarray.sum(self, axis, dtype, out, keepdims=True)
+
+ def test_raise(self):
+ sub_class = self.sub_array
+ x = np.arange(30).view(sub_class)
+ assert_raises(TypeError, np.sum, x, keepdims=True)
+
+
+class TestTensordot:
+
+ def test_rejects_duplicate_axes(self):
+ a = np.ones((2, 3, 3))
+ b = np.ones((3, 3, 4))
+ with pytest.raises(ValueError):
+ np.tensordot(a, b, axes=([1, 1], [0, 0]))
+
+ def test_zero_dimension(self):
+ # Test resolution to issue #5663
+ a = np.ndarray((3, 0))
+ b = np.ndarray((0, 4))
+ td = np.tensordot(a, b, (1, 0))
+ assert_array_equal(td, np.dot(a, b))
+ assert_array_equal(td, np.einsum('ij,jk', a, b))
+
+ def test_zero_dimensional(self):
+ # gh-12130
+ arr_0d = np.array(1)
+ # contracting no axes is well defined
+ ret = np.tensordot(arr_0d, arr_0d, ([], []))
+ assert_array_equal(ret, arr_0d)
+
+
+class TestAsType:
+
+ def test_astype(self):
+ data = [[1, 2], [3, 4]]
+ actual = np.astype(
+ np.array(data, dtype=np.int64), np.uint32
+ )
+ expected = np.array(data, dtype=np.uint32)
+
+ assert_array_equal(actual, expected)
+ assert_equal(actual.dtype, expected.dtype)
+
+ assert np.shares_memory(
+ actual, np.astype(actual, actual.dtype, copy=False)
+ )
+
+ actual = np.astype(np.int64(10), np.float64)
+ expected = np.float64(10)
+ assert_equal(actual, expected)
+ assert_equal(actual.dtype, expected.dtype)
+
+ with pytest.raises(TypeError, match="Input should be a NumPy array"):
+ np.astype(data, np.float64)
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/test_numerictypes.py b/python/user_packages/Python313/site-packages/numpy/_core/tests/test_numerictypes.py
new file mode 100644
index 0000000000000000000000000000000000000000..737db5f2c64e5563a4b3802c589f6e75060130e2
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/tests/test_numerictypes.py
@@ -0,0 +1,650 @@
+import itertools
+import sys
+
+import pytest
+
+import numpy as np
+import numpy._core.numerictypes as nt
+from numpy._core.numerictypes import issctype, maximum_sctype, sctype2char, sctypes
+from numpy.testing import (
+ IS_PYPY,
+ assert_,
+ assert_equal,
+ assert_raises,
+ assert_raises_regex,
+)
+
+# This is the structure of the table used for plain objects:
+#
+# +-+-+-+
+# |x|y|z|
+# +-+-+-+
+
+# Structure of a plain array description:
+Pdescr = [
+ ('x', 'i4', (2,)),
+ ('y', 'f8', (2, 2)),
+ ('z', 'u1')]
+
+# A plain list of tuples with values for testing:
+PbufferT = [
+ # x y z
+ ([3, 2], [[6., 4.], [6., 4.]], 8),
+ ([4, 3], [[7., 5.], [7., 5.]], 9),
+ ]
+
+
+# This is the structure of the table used for nested objects (DON'T PANIC!):
+#
+# +-+---------------------------------+-----+----------+-+-+
+# |x|Info |color|info |y|z|
+# | +-----+--+----------------+----+--+ +----+-----+ | |
+# | |value|y2|Info2 |name|z2| |Name|Value| | |
+# | | | +----+-----+--+--+ | | | | | | |
+# | | | |name|value|y3|z3| | | | | | | |
+# +-+-----+--+----+-----+--+--+----+--+-----+----+-----+-+-+
+#
+
+# The corresponding nested array description:
+Ndescr = [
+ ('x', 'i4', (2,)),
+ ('Info', [
+ ('value', 'c16'),
+ ('y2', 'f8'),
+ ('Info2', [
+ ('name', 'S2'),
+ ('value', 'c16', (2,)),
+ ('y3', 'f8', (2,)),
+ ('z3', 'u4', (2,))]),
+ ('name', 'S2'),
+ ('z2', 'b1')]),
+ ('color', 'S2'),
+ ('info', [
+ ('Name', 'U8'),
+ ('Value', 'c16')]),
+ ('y', 'f8', (2, 2)),
+ ('z', 'u1')]
+
+NbufferT = [
+ # x Info color info y z
+ # value y2 Info2 name z2 Name Value
+ # name value y3 z3
+ ([3, 2], (6j, 6., (b'nn', [6j, 4j], [6., 4.], [1, 2]), b'NN', True),
+ b'cc', ('NN', 6j), [[6., 4.], [6., 4.]], 8),
+ ([4, 3], (7j, 7., (b'oo', [7j, 5j], [7., 5.], [2, 1]), b'OO', False),
+ b'dd', ('OO', 7j), [[7., 5.], [7., 5.]], 9),
+ ]
+
+
+byteorder = {'little': '<', 'big': '>'}[sys.byteorder]
+
+def normalize_descr(descr):
+ "Normalize a description adding the platform byteorder."
+
+ out = []
+ for item in descr:
+ dtype = item[1]
+ if isinstance(dtype, str):
+ if dtype[0] not in ['|', '<', '>']:
+ onebyte = dtype[1:] == "1"
+ if onebyte or dtype[0] in ['S', 'V', 'b']:
+ dtype = "|" + dtype
+ else:
+ dtype = byteorder + dtype
+ if len(item) > 2 and np.prod(item[2]) > 1:
+ nitem = (item[0], dtype, item[2])
+ else:
+ nitem = (item[0], dtype)
+ out.append(nitem)
+ elif isinstance(dtype, list):
+ l = normalize_descr(dtype)
+ out.append((item[0], l))
+ else:
+ raise ValueError(f"Expected a str or list and got {type(item)}")
+ return out
+
+
+############################################################
+# Creation tests
+############################################################
+
+class CreateZeros:
+ """Check the creation of heterogeneous arrays zero-valued"""
+
+ def test_zeros0D(self):
+ """Check creation of 0-dimensional objects"""
+ h = np.zeros((), dtype=self._descr)
+ assert_(normalize_descr(self._descr) == h.dtype.descr)
+ assert_(h.dtype.fields['x'][0].name[:4] == 'void')
+ assert_(h.dtype.fields['x'][0].char == 'V')
+ assert_(h.dtype.fields['x'][0].type == np.void)
+ # A small check that data is ok
+ assert_equal(h['z'], np.zeros((), dtype='u1'))
+
+ def test_zerosSD(self):
+ """Check creation of single-dimensional objects"""
+ h = np.zeros((2,), dtype=self._descr)
+ assert_(normalize_descr(self._descr) == h.dtype.descr)
+ assert_(h.dtype['y'].name[:4] == 'void')
+ assert_(h.dtype['y'].char == 'V')
+ assert_(h.dtype['y'].type == np.void)
+ # A small check that data is ok
+ assert_equal(h['z'], np.zeros((2,), dtype='u1'))
+
+ def test_zerosMD(self):
+ """Check creation of multi-dimensional objects"""
+ h = np.zeros((2, 3), dtype=self._descr)
+ assert_(normalize_descr(self._descr) == h.dtype.descr)
+ assert_(h.dtype['z'].name == 'uint8')
+ assert_(h.dtype['z'].char == 'B')
+ assert_(h.dtype['z'].type == np.uint8)
+ # A small check that data is ok
+ assert_equal(h['z'], np.zeros((2, 3), dtype='u1'))
+
+
+class TestCreateZerosPlain(CreateZeros):
+ """Check the creation of heterogeneous arrays zero-valued (plain)"""
+ _descr = Pdescr
+
+class TestCreateZerosNested(CreateZeros):
+ """Check the creation of heterogeneous arrays zero-valued (nested)"""
+ _descr = Ndescr
+
+
+class CreateValues:
+ """Check the creation of heterogeneous arrays with values"""
+
+ def test_tuple(self):
+ """Check creation from tuples"""
+ h = np.array(self._buffer, dtype=self._descr)
+ assert_(normalize_descr(self._descr) == h.dtype.descr)
+ if self.multiple_rows:
+ assert_(h.shape == (2,))
+ else:
+ assert_(h.shape == ())
+
+ def test_list_of_tuple(self):
+ """Check creation from list of tuples"""
+ h = np.array([self._buffer], dtype=self._descr)
+ assert_(normalize_descr(self._descr) == h.dtype.descr)
+ if self.multiple_rows:
+ assert_(h.shape == (1, 2))
+ else:
+ assert_(h.shape == (1,))
+
+ def test_list_of_list_of_tuple(self):
+ """Check creation from list of list of tuples"""
+ h = np.array([[self._buffer]], dtype=self._descr)
+ assert_(normalize_descr(self._descr) == h.dtype.descr)
+ if self.multiple_rows:
+ assert_(h.shape == (1, 1, 2))
+ else:
+ assert_(h.shape == (1, 1))
+
+
+class TestCreateValuesPlainSingle(CreateValues):
+ """Check the creation of heterogeneous arrays (plain, single row)"""
+ _descr = Pdescr
+ multiple_rows = 0
+ _buffer = PbufferT[0]
+
+class TestCreateValuesPlainMultiple(CreateValues):
+ """Check the creation of heterogeneous arrays (plain, multiple rows)"""
+ _descr = Pdescr
+ multiple_rows = 1
+ _buffer = PbufferT
+
+class TestCreateValuesNestedSingle(CreateValues):
+ """Check the creation of heterogeneous arrays (nested, single row)"""
+ _descr = Ndescr
+ multiple_rows = 0
+ _buffer = NbufferT[0]
+
+class TestCreateValuesNestedMultiple(CreateValues):
+ """Check the creation of heterogeneous arrays (nested, multiple rows)"""
+ _descr = Ndescr
+ multiple_rows = 1
+ _buffer = NbufferT
+
+
+############################################################
+# Reading tests
+############################################################
+
+class ReadValuesPlain:
+ """Check the reading of values in heterogeneous arrays (plain)"""
+
+ def test_access_fields(self):
+ h = np.array(self._buffer, dtype=self._descr)
+ if not self.multiple_rows:
+ assert_(h.shape == ())
+ assert_equal(h['x'], np.array(self._buffer[0], dtype='i4'))
+ assert_equal(h['y'], np.array(self._buffer[1], dtype='f8'))
+ assert_equal(h['z'], np.array(self._buffer[2], dtype='u1'))
+ else:
+ assert_(len(h) == 2)
+ assert_equal(h['x'], np.array([self._buffer[0][0],
+ self._buffer[1][0]], dtype='i4'))
+ assert_equal(h['y'], np.array([self._buffer[0][1],
+ self._buffer[1][1]], dtype='f8'))
+ assert_equal(h['z'], np.array([self._buffer[0][2],
+ self._buffer[1][2]], dtype='u1'))
+
+
+class TestReadValuesPlainSingle(ReadValuesPlain):
+ """Check the creation of heterogeneous arrays (plain, single row)"""
+ _descr = Pdescr
+ multiple_rows = 0
+ _buffer = PbufferT[0]
+
+class TestReadValuesPlainMultiple(ReadValuesPlain):
+ """Check the values of heterogeneous arrays (plain, multiple rows)"""
+ _descr = Pdescr
+ multiple_rows = 1
+ _buffer = PbufferT
+
+class ReadValuesNested:
+ """Check the reading of values in heterogeneous arrays (nested)"""
+
+ def test_access_top_fields(self):
+ """Check reading the top fields of a nested array"""
+ h = np.array(self._buffer, dtype=self._descr)
+ if not self.multiple_rows:
+ assert_(h.shape == ())
+ assert_equal(h['x'], np.array(self._buffer[0], dtype='i4'))
+ assert_equal(h['y'], np.array(self._buffer[4], dtype='f8'))
+ assert_equal(h['z'], np.array(self._buffer[5], dtype='u1'))
+ else:
+ assert_(len(h) == 2)
+ assert_equal(h['x'], np.array([self._buffer[0][0],
+ self._buffer[1][0]], dtype='i4'))
+ assert_equal(h['y'], np.array([self._buffer[0][4],
+ self._buffer[1][4]], dtype='f8'))
+ assert_equal(h['z'], np.array([self._buffer[0][5],
+ self._buffer[1][5]], dtype='u1'))
+
+ def test_nested1_acessors(self):
+ """Check reading the nested fields of a nested array (1st level)"""
+ h = np.array(self._buffer, dtype=self._descr)
+ if not self.multiple_rows:
+ assert_equal(h['Info']['value'],
+ np.array(self._buffer[1][0], dtype='c16'))
+ assert_equal(h['Info']['y2'],
+ np.array(self._buffer[1][1], dtype='f8'))
+ assert_equal(h['info']['Name'],
+ np.array(self._buffer[3][0], dtype='U2'))
+ assert_equal(h['info']['Value'],
+ np.array(self._buffer[3][1], dtype='c16'))
+ else:
+ assert_equal(h['Info']['value'],
+ np.array([self._buffer[0][1][0],
+ self._buffer[1][1][0]],
+ dtype='c16'))
+ assert_equal(h['Info']['y2'],
+ np.array([self._buffer[0][1][1],
+ self._buffer[1][1][1]],
+ dtype='f8'))
+ assert_equal(h['info']['Name'],
+ np.array([self._buffer[0][3][0],
+ self._buffer[1][3][0]],
+ dtype='U2'))
+ assert_equal(h['info']['Value'],
+ np.array([self._buffer[0][3][1],
+ self._buffer[1][3][1]],
+ dtype='c16'))
+
+ def test_nested2_acessors(self):
+ """Check reading the nested fields of a nested array (2nd level)"""
+ h = np.array(self._buffer, dtype=self._descr)
+ if not self.multiple_rows:
+ assert_equal(h['Info']['Info2']['value'],
+ np.array(self._buffer[1][2][1], dtype='c16'))
+ assert_equal(h['Info']['Info2']['z3'],
+ np.array(self._buffer[1][2][3], dtype='u4'))
+ else:
+ assert_equal(h['Info']['Info2']['value'],
+ np.array([self._buffer[0][1][2][1],
+ self._buffer[1][1][2][1]],
+ dtype='c16'))
+ assert_equal(h['Info']['Info2']['z3'],
+ np.array([self._buffer[0][1][2][3],
+ self._buffer[1][1][2][3]],
+ dtype='u4'))
+
+ def test_nested1_descriptor(self):
+ """Check access nested descriptors of a nested array (1st level)"""
+ h = np.array(self._buffer, dtype=self._descr)
+ assert_(h.dtype['Info']['value'].name == 'complex128')
+ assert_(h.dtype['Info']['y2'].name == 'float64')
+ assert_(h.dtype['info']['Name'].name == 'str256')
+ assert_(h.dtype['info']['Value'].name == 'complex128')
+
+ def test_nested2_descriptor(self):
+ """Check access nested descriptors of a nested array (2nd level)"""
+ h = np.array(self._buffer, dtype=self._descr)
+ assert_(h.dtype['Info']['Info2']['value'].name == 'void256')
+ assert_(h.dtype['Info']['Info2']['z3'].name == 'void64')
+
+
+class TestReadValuesNestedSingle(ReadValuesNested):
+ """Check the values of heterogeneous arrays (nested, single row)"""
+ _descr = Ndescr
+ multiple_rows = False
+ _buffer = NbufferT[0]
+
+class TestReadValuesNestedMultiple(ReadValuesNested):
+ """Check the values of heterogeneous arrays (nested, multiple rows)"""
+ _descr = Ndescr
+ multiple_rows = True
+ _buffer = NbufferT
+
+class TestEmptyField:
+ def test_assign(self):
+ a = np.arange(10, dtype=np.float32)
+ a.dtype = [("int", "<0i4"), ("float", "<2f4")]
+ assert_(a['int'].shape == (5, 0))
+ assert_(a['float'].shape == (5, 2))
+
+
+class TestMultipleFields:
+ def _bad_call(self):
+ ary = np.array([(1, 2, 3, 4), (5, 6, 7, 8)], dtype='i4,f4,i2,c8')
+ return ary['f0', 'f1']
+
+ def test_no_tuple(self):
+ assert_raises(IndexError, self._bad_call)
+
+ def test_return(self):
+ ary = np.array([(1, 2, 3, 4), (5, 6, 7, 8)], dtype='i4,f4,i2,c8')
+ res = ary[['f0', 'f2']].tolist()
+ assert_(res == [(1, 3), (5, 7)])
+
+
+class TestIsSubDType:
+ # scalar types can be promoted into dtypes
+ wrappers = [np.dtype, lambda x: x]
+
+ def test_both_abstract(self):
+ assert_(np.issubdtype(np.floating, np.inexact))
+ assert_(not np.issubdtype(np.inexact, np.floating))
+
+ def test_same(self):
+ for cls in (np.float32, np.int32):
+ for w1, w2 in itertools.product(self.wrappers, repeat=2):
+ assert_(np.issubdtype(w1(cls), w2(cls)))
+
+ def test_subclass(self):
+ # note we cannot promote floating to a dtype, as it would turn into a
+ # concrete type
+ for w in self.wrappers:
+ assert_(np.issubdtype(w(np.float32), np.floating))
+ assert_(np.issubdtype(w(np.float64), np.floating))
+
+ def test_subclass_backwards(self):
+ for w in self.wrappers:
+ assert_(not np.issubdtype(np.floating, w(np.float32)))
+ assert_(not np.issubdtype(np.floating, w(np.float64)))
+
+ def test_sibling_class(self):
+ for w1, w2 in itertools.product(self.wrappers, repeat=2):
+ assert_(not np.issubdtype(w1(np.float32), w2(np.float64)))
+ assert_(not np.issubdtype(w1(np.float64), w2(np.float32)))
+
+ def test_nondtype_nonscalartype(self):
+ # See gh-14619 and gh-9505 which introduced the deprecation to fix
+ # this. These tests are directly taken from gh-9505
+ assert not np.issubdtype(np.float32, 'float64')
+ assert not np.issubdtype(np.float32, 'f8')
+ assert not np.issubdtype(np.int32, str)
+ assert not np.issubdtype(np.int32, 'int64')
+ assert not np.issubdtype(np.str_, 'void')
+ # for the following the correct spellings are
+ # np.integer, np.floating, or np.complexfloating respectively:
+ assert not np.issubdtype(np.int8, int) # np.int8 is never np.int_
+ assert not np.issubdtype(np.float32, float)
+ assert not np.issubdtype(np.complex64, complex)
+ assert not np.issubdtype(np.float32, "float")
+ assert not np.issubdtype(np.float64, "f")
+
+ # Test the same for the correct first datatype and abstract one
+ # in the case of int, float, complex:
+ assert np.issubdtype(np.float64, 'float64')
+ assert np.issubdtype(np.float64, 'f8')
+ assert np.issubdtype(np.str_, str)
+ assert np.issubdtype(np.int64, 'int64')
+ assert np.issubdtype(np.void, 'void')
+ assert np.issubdtype(np.int8, np.integer)
+ assert np.issubdtype(np.float32, np.floating)
+ assert np.issubdtype(np.complex64, np.complexfloating)
+ assert np.issubdtype(np.float64, "float")
+ assert np.issubdtype(np.float32, "f")
+
+
+class TestIsDType:
+ """
+ Check correctness of `np.isdtype`. The test considers different argument
+ configurations: `np.isdtype(dtype, k1)` and `np.isdtype(dtype, (k1, k2))`
+ with concrete dtypes and dtype groups.
+ """
+ dtype_group_dict = {
+ "signed integer": sctypes["int"],
+ "unsigned integer": sctypes["uint"],
+ "integral": sctypes["int"] + sctypes["uint"],
+ "real floating": sctypes["float"],
+ "complex floating": sctypes["complex"],
+ "numeric": (
+ sctypes["int"] + sctypes["uint"] + sctypes["float"] +
+ sctypes["complex"]
+ )
+ }
+
+ @pytest.mark.parametrize(
+ "dtype,close_dtype",
+ [
+ (np.int64, np.int32), (np.uint64, np.uint32),
+ (np.float64, np.float32), (np.complex128, np.complex64)
+ ]
+ )
+ @pytest.mark.parametrize(
+ "dtype_group",
+ [
+ None, "signed integer", "unsigned integer", "integral",
+ "real floating", "complex floating", "numeric"
+ ]
+ )
+ def test_isdtype(self, dtype, close_dtype, dtype_group):
+ # First check if same dtypes return `true` and different ones
+ # give `false` (even if they're close in the dtype hierarchy!)
+ if dtype_group is None:
+ assert np.isdtype(dtype, dtype)
+ assert not np.isdtype(dtype, close_dtype)
+ assert np.isdtype(dtype, (dtype, close_dtype))
+
+ # Check that dtype and a dtype group that it belongs to
+ # return `true`, and `false` otherwise.
+ elif dtype in self.dtype_group_dict[dtype_group]:
+ assert np.isdtype(dtype, dtype_group)
+ assert np.isdtype(dtype, (close_dtype, dtype_group))
+ else:
+ assert not np.isdtype(dtype, dtype_group)
+
+ def test_isdtype_invalid_args(self):
+ with assert_raises_regex(TypeError, r".*must be a NumPy dtype.*"):
+ np.isdtype("int64", np.int64)
+ with assert_raises_regex(TypeError, r".*kind argument must.*"):
+ np.isdtype(np.int64, 1)
+ with assert_raises_regex(ValueError, r".*not a known kind name.*"):
+ np.isdtype(np.int64, "int64")
+
+ def test_sctypes_complete(self):
+ # issue 26439: int32/intc were masking each other on 32-bit builds
+ assert np.int32 in sctypes['int']
+ assert np.intc in sctypes['int']
+ assert np.int64 in sctypes['int']
+ assert np.uint32 in sctypes['uint']
+ assert np.uintc in sctypes['uint']
+ assert np.uint64 in sctypes['uint']
+
+class TestSctypeDict:
+ def test_longdouble(self):
+ assert_(np._core.sctypeDict['float64'] is not np.longdouble)
+ assert_(np._core.sctypeDict['complex128'] is not np.clongdouble)
+
+ def test_ulong(self):
+ assert np._core.sctypeDict['ulong'] is np.ulong
+ assert np.dtype(np.ulong) is np.dtype("ulong")
+ assert np.dtype(np.ulong).itemsize == np.dtype(np.long).itemsize
+
+
+@pytest.mark.filterwarnings("ignore:.*maximum_sctype.*:DeprecationWarning")
+class TestMaximumSctype:
+
+ # note that parametrizing with sctype['int'] and similar would skip types
+ # with the same size (gh-11923)
+
+ @pytest.mark.parametrize(
+ 't', [np.byte, np.short, np.intc, np.long, np.longlong]
+ )
+ def test_int(self, t):
+ assert_equal(maximum_sctype(t), np._core.sctypes['int'][-1])
+
+ @pytest.mark.parametrize(
+ 't', [np.ubyte, np.ushort, np.uintc, np.ulong, np.ulonglong]
+ )
+ def test_uint(self, t):
+ assert_equal(maximum_sctype(t), np._core.sctypes['uint'][-1])
+
+ @pytest.mark.parametrize('t', [np.half, np.single, np.double, np.longdouble])
+ def test_float(self, t):
+ assert_equal(maximum_sctype(t), np._core.sctypes['float'][-1])
+
+ @pytest.mark.parametrize('t', [np.csingle, np.cdouble, np.clongdouble])
+ def test_complex(self, t):
+ assert_equal(maximum_sctype(t), np._core.sctypes['complex'][-1])
+
+ @pytest.mark.parametrize('t', [np.bool, np.object_, np.str_, np.bytes_,
+ np.void])
+ def test_other(self, t):
+ assert_equal(maximum_sctype(t), t)
+
+
+class Test_sctype2char:
+ # This function is old enough that we're really just documenting the quirks
+ # at this point.
+
+ def test_scalar_type(self):
+ assert_equal(sctype2char(np.double), 'd')
+ assert_equal(sctype2char(np.long), 'l')
+ assert_equal(sctype2char(np.int_), np.array(0).dtype.char)
+ assert_equal(sctype2char(np.str_), 'U')
+ assert_equal(sctype2char(np.bytes_), 'S')
+
+ def test_other_type(self):
+ assert_equal(sctype2char(float), 'd')
+ assert_equal(sctype2char(list), 'O')
+ assert_equal(sctype2char(np.ndarray), 'O')
+
+ def test_third_party_scalar_type(self):
+ from numpy._core._rational_tests import rational
+ assert_raises(KeyError, sctype2char, rational)
+ assert_raises(KeyError, sctype2char, rational(1))
+
+ def test_array_instance(self):
+ assert_equal(sctype2char(np.array([1.0, 2.0])), 'd')
+
+ def test_abstract_type(self):
+ assert_raises(KeyError, sctype2char, np.floating)
+
+ def test_non_type(self):
+ assert_raises(ValueError, sctype2char, 1)
+
+@pytest.mark.parametrize("rep, expected", [
+ (np.int32, True),
+ (list, False),
+ (1.1, False),
+ (str, True),
+ (np.dtype(np.float64), True),
+ (np.dtype((np.int16, (3, 4))), True),
+ (np.dtype([('a', np.int8)]), True),
+ ])
+def test_issctype(rep, expected):
+ # ensure proper identification of scalar
+ # data-types by issctype()
+ actual = issctype(rep)
+ assert type(actual) is bool
+ assert_equal(actual, expected)
+
+
+@pytest.mark.skipif(sys.flags.optimize > 1,
+ reason="no docstrings present to inspect when PYTHONOPTIMIZE/Py_OptimizeFlag > 1")
+@pytest.mark.xfail(IS_PYPY,
+ reason="PyPy cannot modify tp_doc after PyType_Ready")
+class TestDocStrings:
+ def test_platform_dependent_aliases(self):
+ if np.int64 is np.int_:
+ assert_('int64' in np.int_.__doc__)
+ elif np.int64 is np.longlong:
+ assert_('int64' in np.longlong.__doc__)
+
+
+class TestScalarTypeNames:
+ # gh-9799
+
+ numeric_types = [
+ np.byte, np.short, np.intc, np.long, np.longlong,
+ np.ubyte, np.ushort, np.uintc, np.ulong, np.ulonglong,
+ np.half, np.single, np.double, np.longdouble,
+ np.csingle, np.cdouble, np.clongdouble,
+ ]
+
+ def test_names_are_unique(self):
+ # none of the above may be aliases for each other
+ assert len(set(self.numeric_types)) == len(self.numeric_types)
+
+ # names must be unique
+ names = [t.__name__ for t in self.numeric_types]
+ assert len(set(names)) == len(names)
+
+ @pytest.mark.parametrize('t', numeric_types)
+ def test_names_reflect_attributes(self, t):
+ """ Test that names correspond to where the type is under ``np.`` """
+ assert getattr(np, t.__name__) is t
+
+ @pytest.mark.parametrize('t', numeric_types)
+ def test_names_are_undersood_by_dtype(self, t):
+ """ Test the dtype constructor maps names back to the type """
+ assert np.dtype(t.__name__).type is t
+
+
+class TestScalarTypeOrder:
+ @pytest.mark.parametrize(('a', 'b'), [
+ # signedinteger
+ (np.byte, np.short),
+ (np.short, np.intc),
+ (np.intc, np.long),
+ (np.long, np.longlong),
+ # unsignedinteger
+ (np.ubyte, np.ushort),
+ (np.ushort, np.uintc),
+ (np.uintc, np.ulong),
+ (np.ulong, np.ulonglong),
+ # floating
+ (np.half, np.single),
+ (np.single, np.double),
+ (np.double, np.longdouble),
+ # complexfloating
+ (np.csingle, np.cdouble),
+ (np.cdouble, np.clongdouble),
+ # flexible
+ (np.bytes_, np.str_),
+ (np.str_, np.void),
+ # bouncy castles
+ (np.datetime64, np.timedelta64),
+ ])
+ def test_stable_ordering(self, a: type[np.generic], b: type[np.generic]):
+ assert np.ScalarType.index(a) <= np.ScalarType.index(b)
+
+
+class TestBoolDefinition:
+ def test_bool_definition(self):
+ assert nt.bool is np.bool
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/test_overrides.py b/python/user_packages/Python313/site-packages/numpy/_core/tests/test_overrides.py
new file mode 100644
index 0000000000000000000000000000000000000000..bbc2f045800863a55434e8fc9fcfde1ec6e4f310
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/tests/test_overrides.py
@@ -0,0 +1,800 @@
+import inspect
+import os
+import pickle
+import sys
+import tempfile
+from io import StringIO
+from unittest import mock
+
+import pytest
+
+import numpy as np
+from numpy._core.overrides import (
+ _get_implementing_args,
+ array_function_dispatch,
+ verify_matching_signatures,
+)
+from numpy.testing import assert_, assert_equal, assert_raises, assert_raises_regex
+from numpy.testing.overrides import get_overridable_numpy_array_functions
+
+
+def _return_not_implemented(self, *args, **kwargs):
+ return NotImplemented
+
+
+# need to define this at the top level to test pickling
+@array_function_dispatch(lambda array: (array,))
+def dispatched_one_arg(array):
+ """Docstring."""
+ return 'original'
+
+
+@array_function_dispatch(lambda array1, array2: (array1, array2))
+def dispatched_two_arg(array1, array2):
+ """Docstring."""
+ return 'original'
+
+
+class TestGetImplementingArgs:
+
+ def test_ndarray(self):
+ array = np.array(1)
+
+ args = _get_implementing_args([array])
+ assert_equal(list(args), [array])
+
+ args = _get_implementing_args([array, array])
+ assert_equal(list(args), [array])
+
+ args = _get_implementing_args([array, 1])
+ assert_equal(list(args), [array])
+
+ args = _get_implementing_args([1, array])
+ assert_equal(list(args), [array])
+
+ def test_ndarray_subclasses(self):
+
+ class OverrideSub(np.ndarray):
+ __array_function__ = _return_not_implemented
+
+ class NoOverrideSub(np.ndarray):
+ pass
+
+ array = np.array(1).view(np.ndarray)
+ override_sub = np.array(1).view(OverrideSub)
+ no_override_sub = np.array(1).view(NoOverrideSub)
+
+ args = _get_implementing_args([array, override_sub])
+ assert_equal(list(args), [override_sub, array])
+
+ args = _get_implementing_args([array, no_override_sub])
+ assert_equal(list(args), [no_override_sub, array])
+
+ args = _get_implementing_args(
+ [override_sub, no_override_sub])
+ assert_equal(list(args), [override_sub, no_override_sub])
+
+ def test_ndarray_and_duck_array(self):
+
+ class Other:
+ __array_function__ = _return_not_implemented
+
+ array = np.array(1)
+ other = Other()
+
+ args = _get_implementing_args([other, array])
+ assert_equal(list(args), [other, array])
+
+ args = _get_implementing_args([array, other])
+ assert_equal(list(args), [array, other])
+
+ def test_ndarray_subclass_and_duck_array(self):
+
+ class OverrideSub(np.ndarray):
+ __array_function__ = _return_not_implemented
+
+ class Other:
+ __array_function__ = _return_not_implemented
+
+ array = np.array(1)
+ subarray = np.array(1).view(OverrideSub)
+ other = Other()
+
+ assert_equal(_get_implementing_args([array, subarray, other]),
+ [subarray, array, other])
+ assert_equal(_get_implementing_args([array, other, subarray]),
+ [subarray, array, other])
+
+ def test_many_duck_arrays(self):
+
+ class A:
+ __array_function__ = _return_not_implemented
+
+ class B(A):
+ __array_function__ = _return_not_implemented
+
+ class C(A):
+ __array_function__ = _return_not_implemented
+
+ class D:
+ __array_function__ = _return_not_implemented
+
+ a = A()
+ b = B()
+ c = C()
+ d = D()
+
+ assert_equal(_get_implementing_args([1]), [])
+ assert_equal(_get_implementing_args([a]), [a])
+ assert_equal(_get_implementing_args([a, 1]), [a])
+ assert_equal(_get_implementing_args([a, a, a]), [a])
+ assert_equal(_get_implementing_args([a, d, a]), [a, d])
+ assert_equal(_get_implementing_args([a, b]), [b, a])
+ assert_equal(_get_implementing_args([b, a]), [b, a])
+ assert_equal(_get_implementing_args([a, b, c]), [b, c, a])
+ assert_equal(_get_implementing_args([a, c, b]), [c, b, a])
+
+ def test_too_many_duck_arrays(self):
+ namespace = {'__array_function__': _return_not_implemented}
+ types = [type('A' + str(i), (object,), namespace) for i in range(65)]
+ relevant_args = [t() for t in types]
+
+ actual = _get_implementing_args(relevant_args[:64])
+ assert_equal(actual, relevant_args[:64])
+
+ with assert_raises_regex(TypeError, 'distinct argument types'):
+ _get_implementing_args(relevant_args)
+
+
+class TestNDArrayArrayFunction:
+
+ def test_method(self):
+
+ class Other:
+ __array_function__ = _return_not_implemented
+
+ class NoOverrideSub(np.ndarray):
+ pass
+
+ class OverrideSub(np.ndarray):
+ __array_function__ = _return_not_implemented
+
+ array = np.array([1])
+ other = Other()
+ no_override_sub = array.view(NoOverrideSub)
+ override_sub = array.view(OverrideSub)
+
+ result = array.__array_function__(func=dispatched_two_arg,
+ types=(np.ndarray,),
+ args=(array, 1.), kwargs={})
+ assert_equal(result, 'original')
+
+ result = array.__array_function__(func=dispatched_two_arg,
+ types=(np.ndarray, Other),
+ args=(array, other), kwargs={})
+ assert_(result is NotImplemented)
+
+ result = array.__array_function__(func=dispatched_two_arg,
+ types=(np.ndarray, NoOverrideSub),
+ args=(array, no_override_sub),
+ kwargs={})
+ assert_equal(result, 'original')
+
+ result = array.__array_function__(func=dispatched_two_arg,
+ types=(np.ndarray, OverrideSub),
+ args=(array, override_sub),
+ kwargs={})
+ assert_equal(result, 'original')
+
+ with assert_raises_regex(TypeError, 'no implementation found'):
+ np.concatenate((array, other))
+
+ expected = np.concatenate((array, array))
+ result = np.concatenate((array, no_override_sub))
+ assert_equal(result, expected.view(NoOverrideSub))
+ result = np.concatenate((array, override_sub))
+ assert_equal(result, expected.view(OverrideSub))
+
+ def test_no_wrapper(self):
+ # Regular numpy functions have wrappers, but do not presume
+ # all functions do (array creation ones do not): check that
+ # we just call the function in that case.
+ array = np.array(1)
+ func = lambda x: x * 2
+ result = array.__array_function__(func=func, types=(np.ndarray,),
+ args=(array,), kwargs={})
+ assert_equal(result, array * 2)
+
+ def test_wrong_arguments(self):
+ # Check our implementation guards against wrong arguments.
+ a = np.array([1, 2])
+ with pytest.raises(TypeError, match="args must be a tuple"):
+ a.__array_function__(np.reshape, (np.ndarray,), a, (2, 1))
+ with pytest.raises(TypeError, match="kwargs must be a dict"):
+ a.__array_function__(np.reshape, (np.ndarray,), (a,), (2, 1))
+
+
+class TestArrayFunctionDispatch:
+
+ def test_pickle(self):
+ for proto in range(2, pickle.HIGHEST_PROTOCOL + 1):
+ roundtripped = pickle.loads(
+ pickle.dumps(dispatched_one_arg, protocol=proto))
+ assert_(roundtripped is dispatched_one_arg)
+
+ def test_name_and_docstring(self):
+ assert_equal(dispatched_one_arg.__name__, 'dispatched_one_arg')
+ if sys.flags.optimize < 2:
+ assert_equal(dispatched_one_arg.__doc__, 'Docstring.')
+
+ def test_interface(self):
+
+ class MyArray:
+ def __array_function__(self, func, types, args, kwargs):
+ return (self, func, types, args, kwargs)
+
+ original = MyArray()
+ (obj, func, types, args, kwargs) = dispatched_one_arg(original)
+ assert_(obj is original)
+ assert_(func is dispatched_one_arg)
+ assert_equal(set(types), {MyArray})
+ # assert_equal uses the overloaded np.iscomplexobj() internally
+ assert_(args == (original,))
+ assert_equal(kwargs, {})
+
+ def test_not_implemented(self):
+
+ class MyArray:
+ def __array_function__(self, func, types, args, kwargs):
+ return NotImplemented
+
+ array = MyArray()
+ with assert_raises_regex(TypeError, 'no implementation found'):
+ dispatched_one_arg(array)
+
+ def test_where_dispatch(self):
+
+ class DuckArray:
+ def __array_function__(self, ufunc, method, *inputs, **kwargs):
+ return "overridden"
+
+ array = np.array(1)
+ duck_array = DuckArray()
+
+ result = np.std(array, where=duck_array)
+
+ assert_equal(result, "overridden")
+
+
+class TestVerifyMatchingSignatures:
+
+ def test_verify_matching_signatures(self):
+
+ verify_matching_signatures(lambda x: 0, lambda x: 0)
+ verify_matching_signatures(lambda x=None: 0, lambda x=None: 0)
+ verify_matching_signatures(lambda x=1: 0, lambda x=None: 0)
+
+ with assert_raises(RuntimeError):
+ verify_matching_signatures(lambda a: 0, lambda b: 0)
+ with assert_raises(RuntimeError):
+ verify_matching_signatures(lambda x: 0, lambda x=None: 0)
+ with assert_raises(RuntimeError):
+ verify_matching_signatures(lambda x=None: 0, lambda y=None: 0)
+ with assert_raises(RuntimeError):
+ verify_matching_signatures(lambda x=1: 0, lambda y=1: 0)
+
+ def test_array_function_dispatch(self):
+
+ with assert_raises(RuntimeError):
+ @array_function_dispatch(lambda x: (x,))
+ def f(y):
+ pass
+
+ # should not raise
+ @array_function_dispatch(lambda x: (x,), verify=False)
+ def f(y):
+ pass
+
+
+def _new_duck_type_and_implements():
+ """Create a duck array type and implements functions."""
+ HANDLED_FUNCTIONS = {}
+
+ class MyArray:
+ def __array_function__(self, func, types, args, kwargs):
+ if func not in HANDLED_FUNCTIONS:
+ return NotImplemented
+ if not all(issubclass(t, MyArray) for t in types):
+ return NotImplemented
+ return HANDLED_FUNCTIONS[func](*args, **kwargs)
+
+ def implements(numpy_function):
+ """Register an __array_function__ implementations."""
+ def decorator(func):
+ HANDLED_FUNCTIONS[numpy_function] = func
+ return func
+ return decorator
+
+ return (MyArray, implements)
+
+
+class TestArrayFunctionImplementation:
+
+ def test_one_arg(self):
+ MyArray, implements = _new_duck_type_and_implements()
+
+ @implements(dispatched_one_arg)
+ def _(array):
+ return 'myarray'
+
+ assert_equal(dispatched_one_arg(1), 'original')
+ assert_equal(dispatched_one_arg(MyArray()), 'myarray')
+
+ def test_optional_args(self):
+ MyArray, implements = _new_duck_type_and_implements()
+
+ @array_function_dispatch(lambda array, option=None: (array,))
+ def func_with_option(array, option='default'):
+ return option
+
+ @implements(func_with_option)
+ def my_array_func_with_option(array, new_option='myarray'):
+ return new_option
+
+ # we don't need to implement every option on __array_function__
+ # implementations
+ assert_equal(func_with_option(1), 'default')
+ assert_equal(func_with_option(1, option='extra'), 'extra')
+ assert_equal(func_with_option(MyArray()), 'myarray')
+ with assert_raises(TypeError):
+ func_with_option(MyArray(), option='extra')
+
+ # but new options on implementations can't be used
+ result = my_array_func_with_option(MyArray(), new_option='yes')
+ assert_equal(result, 'yes')
+ with assert_raises(TypeError):
+ func_with_option(MyArray(), new_option='no')
+
+ def test_not_implemented(self):
+ MyArray, implements = _new_duck_type_and_implements()
+
+ @array_function_dispatch(lambda array: (array,), module='my')
+ def func(array):
+ return array
+
+ array = np.array(1)
+ assert_(func(array) is array)
+ assert_equal(func.__module__, 'my')
+
+ with assert_raises_regex(
+ TypeError, "no implementation found for 'my.func'"):
+ func(MyArray())
+
+ @pytest.mark.parametrize("name", ["concatenate", "mean", "asarray"])
+ def test_signature_error_message_simple(self, name):
+ func = getattr(np, name)
+ try:
+ # all of these functions need an argument:
+ func()
+ except TypeError as e:
+ exc = e
+
+ assert exc.args[0].startswith(f"{name}()")
+
+ def test_signature_error_message(self):
+ # The lambda function will be named "", but the TypeError
+ # should show the name as "func"
+ def _dispatcher():
+ return ()
+
+ @array_function_dispatch(_dispatcher)
+ def func():
+ pass
+
+ try:
+ func._implementation(bad_arg=3)
+ except TypeError as e:
+ expected_exception = e
+
+ try:
+ func(bad_arg=3)
+ raise AssertionError("must fail")
+ except TypeError as exc:
+ if exc.args[0].startswith("_dispatcher"):
+ # We replace the qualname currently, but it used `__name__`
+ # (relevant functions have the same name and qualname anyway)
+ pytest.skip("Python version is not using __qualname__ for "
+ "TypeError formatting.")
+
+ assert exc.args == expected_exception.args
+
+ @pytest.mark.parametrize("value", [234, "this func is not replaced"])
+ def test_dispatcher_error(self, value):
+ # If the dispatcher raises an error, we must not attempt to mutate it
+ error = TypeError(value)
+
+ def dispatcher():
+ raise error
+
+ @array_function_dispatch(dispatcher)
+ def func():
+ return 3
+
+ try:
+ func()
+ raise AssertionError("must fail")
+ except TypeError as exc:
+ assert exc is error # unmodified exception
+
+ def test_properties(self):
+ # Check that str and repr are sensible
+ func = dispatched_two_arg
+ assert str(func) == str(func._implementation)
+ repr_no_id = repr(func).split("at ")[0]
+ repr_no_id_impl = repr(func._implementation).split("at ")[0]
+ assert repr_no_id == repr_no_id_impl
+
+ @pytest.mark.parametrize("func", [
+ lambda x, y: 0, # no like argument
+ lambda like=None: 0, # not keyword only
+ lambda *, like=None, a=3: 0, # not last (not that it matters)
+ ])
+ def test_bad_like_sig(self, func):
+ # We sanity check the signature, and these should fail.
+ with pytest.raises(RuntimeError):
+ array_function_dispatch()(func)
+
+ def test_bad_like_passing(self):
+ # Cover internal sanity check for passing like as first positional arg
+ def func(*, like=None):
+ pass
+
+ func_with_like = array_function_dispatch()(func)
+ with pytest.raises(TypeError):
+ func_with_like()
+ with pytest.raises(TypeError):
+ func_with_like(like=234)
+
+ def test_too_many_args(self):
+ # Mainly a unit-test to increase coverage
+ objs = []
+ for i in range(80):
+ class MyArr:
+ def __array_function__(self, *args, **kwargs):
+ return NotImplemented
+
+ objs.append(MyArr())
+
+ def _dispatch(*args):
+ return args
+
+ @array_function_dispatch(_dispatch)
+ def func(*args):
+ pass
+
+ with pytest.raises(TypeError, match="maximum number"):
+ func(*objs)
+
+
+class TestNDArrayMethods:
+
+ def test_repr(self):
+ # gh-12162: should still be defined even if __array_function__ doesn't
+ # implement np.array_repr()
+
+ class MyArray(np.ndarray):
+ def __array_function__(*args, **kwargs):
+ return NotImplemented
+
+ array = np.array(1).view(MyArray)
+ assert_equal(repr(array), 'MyArray(1)')
+ assert_equal(str(array), '1')
+
+
+class TestNumPyFunctions:
+
+ def test_set_module(self):
+ assert_equal(np.sum.__module__, 'numpy')
+ assert_equal(np.char.equal.__module__, 'numpy.char')
+ assert_equal(np.fft.fft.__module__, 'numpy.fft')
+ assert_equal(np.linalg.solve.__module__, 'numpy.linalg')
+
+ def test_inspect_sum(self):
+ signature = inspect.signature(np.sum)
+ assert_('axis' in signature.parameters)
+
+ def test_override_sum(self):
+ MyArray, implements = _new_duck_type_and_implements()
+
+ @implements(np.sum)
+ def _(array):
+ return 'yes'
+
+ assert_equal(np.sum(MyArray()), 'yes')
+
+ def test_sum_on_mock_array(self):
+
+ # We need a proxy for mocks because __array_function__ is only looked
+ # up in the class dict
+ class ArrayProxy:
+ def __init__(self, value):
+ self.value = value
+
+ def __array_function__(self, *args, **kwargs):
+ return self.value.__array_function__(*args, **kwargs)
+
+ def __array__(self, *args, **kwargs):
+ return self.value.__array__(*args, **kwargs)
+
+ proxy = ArrayProxy(mock.Mock(spec=ArrayProxy))
+ proxy.value.__array_function__.return_value = 1
+ result = np.sum(proxy)
+ assert_equal(result, 1)
+ proxy.value.__array_function__.assert_called_once_with(
+ np.sum, (ArrayProxy,), (proxy,), {})
+ proxy.value.__array__.assert_not_called()
+
+ def test_sum_forwarding_implementation(self):
+
+ class MyArray(np.ndarray):
+
+ def sum(self, axis, out):
+ return 'summed'
+
+ def __array_function__(self, func, types, args, kwargs):
+ return super().__array_function__(func, types, args, kwargs)
+
+ # note: the internal implementation of np.sum() calls the .sum() method
+ array = np.array(1).view(MyArray)
+ assert_equal(np.sum(array), 'summed')
+
+
+class TestArrayLike:
+ def _create_MyArray(self):
+ class MyArray:
+ def __init__(self, function=None):
+ self.function = function
+
+ def __array_function__(self, func, types, args, kwargs):
+ assert func is getattr(np, func.__name__)
+ try:
+ my_func = getattr(self, func.__name__)
+ except AttributeError:
+ return NotImplemented
+ return my_func(*args, **kwargs)
+
+ return MyArray
+
+ def _create_MyNoArrayFunctionArray(self):
+ class MyNoArrayFunctionArray:
+ def __init__(self, function=None):
+ self.function = function
+
+ return MyNoArrayFunctionArray
+
+ def _create_MySubclass(self):
+ class MySubclass(np.ndarray):
+ def __array_function__(self, func, types, args, kwargs):
+ result = super().__array_function__(func, types, args, kwargs)
+ return result.view(self.__class__)
+
+ return MySubclass
+
+ def add_method(self, name, arr_class, enable_value_error=False):
+ def _definition(*args, **kwargs):
+ # Check that `like=` isn't propagated downstream
+ assert 'like' not in kwargs
+
+ if enable_value_error and 'value_error' in kwargs:
+ raise ValueError
+
+ return arr_class(getattr(arr_class, name))
+ setattr(arr_class, name, _definition)
+
+ def func_args(*args, **kwargs):
+ return args, kwargs
+
+ def test_array_like_not_implemented(self):
+ MyArray = self._create_MyArray()
+ self.add_method('array', MyArray)
+
+ ref = MyArray.array()
+
+ with assert_raises_regex(TypeError, 'no implementation found'):
+ array_like = np.asarray(1, like=ref)
+
+ _array_tests = [
+ ('array', *func_args((1,))),
+ ('asarray', *func_args((1,))),
+ ('asanyarray', *func_args((1,))),
+ ('ascontiguousarray', *func_args((2, 3))),
+ ('asfortranarray', *func_args((2, 3))),
+ ('require', *func_args((np.arange(6).reshape(2, 3),),
+ requirements=['A', 'F'])),
+ ('empty', *func_args((1,))),
+ ('full', *func_args((1,), 2)),
+ ('ones', *func_args((1,))),
+ ('zeros', *func_args((1,))),
+ ('arange', *func_args(3)),
+ ('frombuffer', *func_args(b'\x00' * 8, dtype=int)),
+ ('fromiter', *func_args(range(3), dtype=int)),
+ ('fromstring', *func_args('1,2', dtype=int, sep=',')),
+ ('loadtxt', *func_args(lambda: StringIO('0 1\n2 3'))),
+ ('genfromtxt', *func_args(lambda: StringIO('1,2.1'),
+ dtype=[('int', 'i8'), ('float', 'f8')],
+ delimiter=',')),
+ ]
+
+ def test_nep35_functions_as_array_functions(self,):
+ all_array_functions = get_overridable_numpy_array_functions()
+ like_array_functions_subset = {
+ getattr(np, func_name) for func_name, *_ in self.__class__._array_tests
+ }
+ assert like_array_functions_subset.issubset(all_array_functions)
+
+ nep35_python_functions = {
+ np.eye, np.fromfunction, np.full, np.genfromtxt,
+ np.identity, np.loadtxt, np.ones, np.require, np.tri,
+ }
+ assert nep35_python_functions.issubset(all_array_functions)
+
+ nep35_C_functions = {
+ np.arange, np.array, np.asanyarray, np.asarray,
+ np.ascontiguousarray, np.asfortranarray, np.empty,
+ np.frombuffer, np.fromfile, np.fromiter, np.fromstring,
+ np.zeros,
+ }
+ assert nep35_C_functions.issubset(all_array_functions)
+
+ @pytest.mark.parametrize('function, args, kwargs', _array_tests)
+ @pytest.mark.parametrize('numpy_ref', [True, False])
+ def test_array_like(self, function, args, kwargs, numpy_ref):
+ MyArray = self._create_MyArray()
+ self.add_method('array', MyArray)
+ self.add_method(function, MyArray)
+ np_func = getattr(np, function)
+ my_func = getattr(MyArray, function)
+
+ if numpy_ref is True:
+ ref = np.array(1)
+ else:
+ ref = MyArray.array()
+
+ like_args = tuple(a() if callable(a) else a for a in args)
+ array_like = np_func(*like_args, **kwargs, like=ref)
+
+ if numpy_ref is True:
+ assert type(array_like) is np.ndarray
+
+ np_args = tuple(a() if callable(a) else a for a in args)
+ np_arr = np_func(*np_args, **kwargs)
+
+ # Special-case np.empty to ensure values match
+ if function == "empty":
+ np_arr.fill(1)
+ array_like.fill(1)
+
+ assert_equal(array_like, np_arr)
+ else:
+ assert type(array_like) is MyArray
+ assert array_like.function is my_func
+
+ @pytest.mark.parametrize('function, args, kwargs', _array_tests)
+ @pytest.mark.parametrize('ref', [1, [1], "MyNoArrayFunctionArray"])
+ def test_no_array_function_like(self, function, args, kwargs, ref):
+ MyNoArrayFunctionArray = self._create_MyNoArrayFunctionArray()
+ self.add_method('array', MyNoArrayFunctionArray)
+ self.add_method(function, MyNoArrayFunctionArray)
+ np_func = getattr(np, function)
+
+ # Instantiate ref if it's the MyNoArrayFunctionArray class
+ if ref == "MyNoArrayFunctionArray":
+ ref = MyNoArrayFunctionArray.array()
+
+ like_args = tuple(a() if callable(a) else a for a in args)
+
+ with assert_raises_regex(TypeError,
+ 'The `like` argument must be an array-like that implements'):
+ np_func(*like_args, **kwargs, like=ref)
+
+ @pytest.mark.parametrize('function, args, kwargs', _array_tests)
+ def test_subclass(self, function, args, kwargs):
+ MySubclass = self._create_MySubclass()
+ ref = np.array(1).view(MySubclass)
+ np_func = getattr(np, function)
+ like_args = tuple(a() if callable(a) else a for a in args)
+ array_like = np_func(*like_args, **kwargs, like=ref)
+ assert type(array_like) is MySubclass
+ if np_func is np.empty:
+ return
+ np_args = tuple(a() if callable(a) else a for a in args)
+ np_arr = np_func(*np_args, **kwargs)
+ assert_equal(array_like.view(np.ndarray), np_arr)
+
+ @pytest.mark.parametrize('numpy_ref', [True, False])
+ def test_array_like_fromfile(self, numpy_ref):
+ MyArray = self._create_MyArray()
+ self.add_method('array', MyArray)
+ self.add_method("fromfile", MyArray)
+
+ if numpy_ref is True:
+ ref = np.array(1)
+ else:
+ ref = MyArray.array()
+
+ data = np.random.random(5)
+
+ with tempfile.TemporaryDirectory() as tmpdir:
+ fname = os.path.join(tmpdir, "testfile")
+ data.tofile(fname)
+
+ array_like = np.fromfile(fname, like=ref)
+ if numpy_ref is True:
+ assert type(array_like) is np.ndarray
+ np_res = np.fromfile(fname, like=ref)
+ assert_equal(np_res, data)
+ assert_equal(array_like, np_res)
+ else:
+ assert type(array_like) is MyArray
+ assert array_like.function is MyArray.fromfile
+
+ def test_exception_handling(self):
+ MyArray = self._create_MyArray()
+ self.add_method('array', MyArray, enable_value_error=True)
+
+ ref = MyArray.array()
+
+ with assert_raises(TypeError):
+ # Raises the error about `value_error` being invalid first
+ np.array(1, value_error=True, like=ref)
+
+ @pytest.mark.parametrize('function, args, kwargs', _array_tests)
+ def test_like_as_none(self, function, args, kwargs):
+ MyArray = self._create_MyArray()
+ self.add_method('array', MyArray)
+ self.add_method(function, MyArray)
+ np_func = getattr(np, function)
+
+ like_args = tuple(a() if callable(a) else a for a in args)
+ # required for loadtxt and genfromtxt to init w/o error.
+ like_args_exp = tuple(a() if callable(a) else a for a in args)
+
+ array_like = np_func(*like_args, **kwargs, like=None)
+ expected = np_func(*like_args_exp, **kwargs)
+ # Special-case np.empty to ensure values match
+ if function == "empty":
+ array_like.fill(1)
+ expected.fill(1)
+ assert_equal(array_like, expected)
+
+
+def test_function_like():
+ # We provide a `__get__` implementation, make sure it works
+ assert type(np.mean) is np._core._multiarray_umath._ArrayFunctionDispatcher
+
+ class MyClass:
+ def __array__(self, dtype=None, copy=None):
+ # valid argument to mean:
+ return np.arange(3)
+
+ func1 = staticmethod(np.mean)
+ func2 = np.mean
+ func3 = classmethod(np.mean)
+
+ m = MyClass()
+ assert m.func1([10]) == 10
+ assert m.func2() == 1 # mean of the arange
+ with pytest.raises(TypeError, match="unsupported operand type"):
+ # Tries to operate on the class
+ m.func3()
+
+ # Manual binding also works (the above may shortcut):
+ bound = np.mean.__get__(m, MyClass)
+ assert bound() == 1
+
+ bound = np.mean.__get__(None, MyClass) # unbound actually
+ assert bound([10]) == 10
+
+ bound = np.mean.__get__(MyClass) # classmethod
+ with pytest.raises(TypeError, match="unsupported operand type"):
+ bound()
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/test_print.py b/python/user_packages/Python313/site-packages/numpy/_core/tests/test_print.py
new file mode 100644
index 0000000000000000000000000000000000000000..ed88ec9df03b18edfed8fc0ece87c7731138f896
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/tests/test_print.py
@@ -0,0 +1,202 @@
+import sys
+from io import StringIO
+
+import pytest
+
+import numpy as np
+from numpy._core.tests._locales import CommaDecimalPointLocale
+from numpy.testing import IS_MUSL, assert_, assert_equal
+
+_REF = {np.inf: 'inf', -np.inf: '-inf', np.nan: 'nan'}
+
+
+@pytest.mark.parametrize('tp', [np.float32, np.double, np.longdouble])
+def test_float_types(tp):
+ """ Check formatting.
+
+ This is only for the str function, and only for simple types.
+ The precision of np.float32 and np.longdouble aren't the same as the
+ python float precision.
+
+ """
+ for x in [0, 1, -1, 1e20]:
+ assert_equal(str(tp(x)), str(float(x)),
+ err_msg=f'Failed str formatting for type {tp}')
+
+ if tp(1e16).itemsize > 4:
+ assert_equal(str(tp(1e16)), str(float('1e16')),
+ err_msg=f'Failed str formatting for type {tp}')
+ else:
+ ref = '1e+16'
+ assert_equal(str(tp(1e16)), ref,
+ err_msg=f'Failed str formatting for type {tp}')
+
+
+@pytest.mark.parametrize('tp', [np.float32, np.double, np.longdouble])
+def test_nan_inf_float(tp):
+ """ Check formatting of nan & inf.
+
+ This is only for the str function, and only for simple types.
+ The precision of np.float32 and np.longdouble aren't the same as the
+ python float precision.
+
+ """
+ for x in [np.inf, -np.inf, np.nan]:
+ assert_equal(str(tp(x)), _REF[x],
+ err_msg=f'Failed str formatting for type {tp}')
+
+
+@pytest.mark.parametrize('tp', [np.complex64, np.cdouble, np.clongdouble])
+def test_complex_types(tp):
+ """Check formatting of complex types.
+
+ This is only for the str function, and only for simple types.
+ The precision of np.float32 and np.longdouble aren't the same as the
+ python float precision.
+
+ """
+ for x in [0, 1, -1, 1e20]:
+ assert_equal(str(tp(x)), str(complex(x)),
+ err_msg=f'Failed str formatting for type {tp}')
+ assert_equal(str(tp(x * 1j)), str(complex(x * 1j)),
+ err_msg=f'Failed str formatting for type {tp}')
+ assert_equal(str(tp(x + x * 1j)), str(complex(x + x * 1j)),
+ err_msg=f'Failed str formatting for type {tp}')
+
+ if tp(1e16).itemsize > 8:
+ assert_equal(str(tp(1e16)), str(complex(1e16)),
+ err_msg=f'Failed str formatting for type {tp}')
+ else:
+ ref = '(1e+16+0j)'
+ assert_equal(str(tp(1e16)), ref,
+ err_msg=f'Failed str formatting for type {tp}')
+
+
+@pytest.mark.parametrize('dtype', [np.complex64, np.cdouble, np.clongdouble])
+def test_complex_inf_nan(dtype):
+ """Check inf/nan formatting of complex types."""
+ TESTS = {
+ complex(np.inf, 0): "(inf+0j)",
+ complex(0, np.inf): "infj",
+ complex(-np.inf, 0): "(-inf+0j)",
+ complex(0, -np.inf): "-infj",
+ complex(np.inf, 1): "(inf+1j)",
+ complex(1, np.inf): "(1+infj)",
+ complex(-np.inf, 1): "(-inf+1j)",
+ complex(1, -np.inf): "(1-infj)",
+ complex(np.nan, 0): "(nan+0j)",
+ complex(0, np.nan): "nanj",
+ complex(-np.nan, 0): "(nan+0j)",
+ complex(0, -np.nan): "nanj",
+ complex(np.nan, 1): "(nan+1j)",
+ complex(1, np.nan): "(1+nanj)",
+ complex(-np.nan, 1): "(nan+1j)",
+ complex(1, -np.nan): "(1+nanj)",
+ }
+ for c, s in TESTS.items():
+ assert_equal(str(dtype(c)), s)
+
+
+# print tests
+def _test_redirected_print(x, tp, ref=None):
+ file = StringIO()
+ file_tp = StringIO()
+ stdout = sys.stdout
+ try:
+ sys.stdout = file_tp
+ print(tp(x))
+ sys.stdout = file
+ if ref:
+ print(ref)
+ else:
+ print(x)
+ finally:
+ sys.stdout = stdout
+
+ assert_equal(file.getvalue(), file_tp.getvalue(),
+ err_msg=f'print failed for type{tp}')
+
+
+@pytest.mark.thread_unsafe(reason="sys.stdout not thread-safe")
+@pytest.mark.parametrize('tp', [np.float32, np.double, np.longdouble])
+def test_float_type_print(tp):
+ """Check formatting when using print """
+ for x in [0, 1, -1, 1e20]:
+ _test_redirected_print(float(x), tp)
+
+ for x in [np.inf, -np.inf, np.nan]:
+ _test_redirected_print(float(x), tp, _REF[x])
+
+ if tp(1e16).itemsize > 4:
+ _test_redirected_print(1e16, tp)
+ else:
+ ref = '1e+16'
+ _test_redirected_print(1e16, tp, ref)
+
+
+@pytest.mark.thread_unsafe(reason="sys.stdout not thread-safe")
+@pytest.mark.parametrize('tp', [np.complex64, np.cdouble, np.clongdouble])
+def test_complex_type_print(tp):
+ """Check formatting when using print """
+ # We do not create complex with inf/nan directly because the feature is
+ # missing in python < 2.6
+ for x in [0, 1, -1, 1e20]:
+ _test_redirected_print(complex(x), tp)
+
+ if tp(1e16).itemsize > 8:
+ _test_redirected_print(complex(1e16), tp)
+ else:
+ ref = '(1e+16+0j)'
+ _test_redirected_print(complex(1e16), tp, ref)
+
+ _test_redirected_print(complex(np.inf, 1), tp, '(inf+1j)')
+ _test_redirected_print(complex(-np.inf, 1), tp, '(-inf+1j)')
+ _test_redirected_print(complex(-np.nan, 1), tp, '(nan+1j)')
+
+
+def test_scalar_format():
+ """Test the str.format method with NumPy scalar types"""
+ tests = [('{0}', True, np.bool),
+ ('{0}', False, np.bool),
+ ('{0:d}', 130, np.uint8),
+ ('{0:d}', 50000, np.uint16),
+ ('{0:d}', 3000000000, np.uint32),
+ ('{0:d}', 15000000000000000000, np.uint64),
+ ('{0:d}', -120, np.int8),
+ ('{0:d}', -30000, np.int16),
+ ('{0:d}', -2000000000, np.int32),
+ ('{0:d}', -7000000000000000000, np.int64),
+ ('{0:g}', 1.5, np.float16),
+ ('{0:g}', 1.5, np.float32),
+ ('{0:g}', 1.5, np.float64),
+ ('{0:g}', 1.5, np.longdouble),
+ ('{0:g}', 1.5 + 0.5j, np.complex64),
+ ('{0:g}', 1.5 + 0.5j, np.complex128),
+ ('{0:g}', 1.5 + 0.5j, np.clongdouble)]
+
+ for (fmat, val, valtype) in tests:
+ try:
+ assert_equal(fmat.format(val), fmat.format(valtype(val)),
+ f"failed with val {val}, type {valtype}")
+ except ValueError as e:
+ assert_(False,
+ "format raised exception (fmt='%s', val=%s, type=%s, exc='%s')" %
+ (fmat, repr(val), repr(valtype), str(e)))
+
+
+#
+# Locale tests: scalar types formatting should be independent of the locale
+#
+
+class TestCommaDecimalPointLocale(CommaDecimalPointLocale):
+
+ def test_locale_single(self):
+ assert_equal(str(np.float32(1.2)), str(1.2))
+
+ def test_locale_double(self):
+ assert_equal(str(np.double(1.2)), str(1.2))
+
+ @pytest.mark.skipif(IS_MUSL,
+ reason="test flaky on musllinux")
+ def test_locale_longdouble(self):
+ assert_equal(str(np.longdouble('1.2')), str(1.2))
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/test_protocols.py b/python/user_packages/Python313/site-packages/numpy/_core/tests/test_protocols.py
new file mode 100644
index 0000000000000000000000000000000000000000..5d932628830c78e6e809d759238e44d0d3103e81
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/tests/test_protocols.py
@@ -0,0 +1,46 @@
+import warnings
+
+import pytest
+
+import numpy as np
+
+
+@pytest.mark.filterwarnings("error")
+def test_getattr_warning():
+ # issue gh-14735: make sure we clear only getattr errors, and let warnings
+ # through
+ class Wrapper:
+ def __init__(self, array):
+ self.array = array
+
+ def __len__(self):
+ return len(self.array)
+
+ def __getitem__(self, item):
+ return type(self)(self.array[item])
+
+ def __getattr__(self, name):
+ if name.startswith("__array_"):
+ warnings.warn("object got converted", UserWarning, stacklevel=1)
+
+ return getattr(self.array, name)
+
+ def __repr__(self):
+ return f""
+
+ array = Wrapper(np.arange(10))
+ with pytest.raises(UserWarning, match="object got converted"):
+ np.asarray(array)
+
+
+def test_array_called():
+ class Wrapper:
+ val = '0' * 100
+
+ def __array__(self, dtype=None, copy=None):
+ return np.array([self.val], dtype=dtype, copy=copy)
+
+ wrapped = Wrapper()
+ arr = np.array(wrapped, dtype=str)
+ assert arr.dtype == 'U100'
+ assert arr[0] == Wrapper.val
diff --git a/python/user_packages/Python313/site-packages/numpy/_core/tests/test_records.py b/python/user_packages/Python313/site-packages/numpy/_core/tests/test_records.py
new file mode 100644
index 0000000000000000000000000000000000000000..8eaedda17bf2173f30a24fcd9e9e9545ce26a245
--- /dev/null
+++ b/python/user_packages/Python313/site-packages/numpy/_core/tests/test_records.py
@@ -0,0 +1,544 @@
+import collections.abc
+import pickle
+import textwrap
+from io import BytesIO
+from os import path
+from pathlib import Path
+
+import pytest
+
+import numpy as np
+from numpy.testing import (
+ assert_,
+ assert_array_almost_equal,
+ assert_array_equal,
+ assert_equal,
+ assert_raises,
+ temppath,
+)
+
+
+class TestFromrecords:
+ def test_fromrecords(self):
+ r = np.rec.fromrecords([[456, 'dbe', 1.2], [2, 'de', 1.3]],
+ names='col1,col2,col3')
+ assert_equal(r[0].item(), (456, 'dbe', 1.2))
+ assert_equal(r['col1'].dtype.kind, 'i')
+ assert_equal(r['col2'].dtype.kind, 'U')
+ assert_equal(r['col2'].dtype.itemsize, 12)
+ assert_equal(r['col3'].dtype.kind, 'f')
+
+ def test_fromrecords_0len(self):
+ """ Verify fromrecords works with a 0-length input """
+ dtype = [('a', float), ('b', float)]
+ r = np.rec.fromrecords([], dtype=dtype)
+ assert_equal(r.shape, (0,))
+
+ def test_fromrecords_2d(self):
+ data = [
+ [(1, 2), (3, 4), (5, 6)],
+ [(6, 5), (4, 3), (2, 1)]
+ ]
+ expected_a = [[1, 3, 5], [6, 4, 2]]
+ expected_b = [[2, 4, 6], [5, 3, 1]]
+
+ # try with dtype
+ r1 = np.rec.fromrecords(data, dtype=[('a', int), ('b', int)])
+ assert_equal(r1['a'], expected_a)
+ assert_equal(r1['b'], expected_b)
+
+ # try with names
+ r2 = np.rec.fromrecords(data, names=['a', 'b'])
+ assert_equal(r2['a'], expected_a)
+ assert_equal(r2['b'], expected_b)
+
+ assert_equal(r1, r2)
+
+ def test_method_array(self):
+ r = np.rec.array(
+ b'abcdefg' * 100, formats='i2,S3,i4', shape=3, byteorder='big'
+ )
+ assert_equal(r[1].item(), (25444, b'efg', 1633837924))
+
+ def test_method_array2(self):
+ r = np.rec.array(
+ [
+ (1, 11, 'a'), (2, 22, 'b'), (3, 33, 'c'), (4, 44, 'd'),
+ (5, 55, 'ex'), (6, 66, 'f'), (7, 77, 'g')
+ ],
+ formats='u1,f4,S1'
+ )
+ assert_equal(r[1].item(), (2, 22.0, b'b'))
+
+ def test_recarray_slices(self):
+ r = np.rec.array(
+ [
+ (1, 11, 'a'), (2, 22, 'b'), (3, 33, 'c'), (4, 44, 'd'),
+ (5, 55, 'ex'), (6, 66, 'f'), (7, 77, 'g')
+ ],
+ formats='u1,f4,S1'
+ )
+ assert_equal(r[1::2][1].item(), (4, 44.0, b'd'))
+
+ def test_recarray_fromarrays(self):
+ x1 = np.array([1, 2, 3, 4])
+ x2 = np.array(['a', 'dd', 'xyz', '12'])
+ x3 = np.array([1.1, 2, 3, 4])
+ r = np.rec.fromarrays([x1, x2, x3], names='a,b,c')
+ assert_equal(r[1].item(), (2, 'dd', 2.0))
+ x1[1] = 34
+ assert_equal(r.a, np.array([1, 2, 3, 4]))
+
+ def test_recarray_fromfile(self):
+ data_dir = path.join(path.dirname(__file__), 'data')
+ filename = path.join(data_dir, 'recarray_from_file.fits')
+ fd = open(filename, 'rb')
+ fd.seek(2880 * 2)
+ r1 = np.rec.fromfile(fd, formats='f8,i4,S5', shape=3, byteorder='big')
+ fd.seek(2880 * 2)
+ r2 = np.rec.array(fd, formats='f8,i4,S5', shape=3, byteorder='big')
+ fd.seek(2880 * 2)
+ bytes_array = BytesIO()
+ bytes_array.write(fd.read())
+ bytes_array.seek(0)
+ r3 = np.rec.fromfile(
+ bytes_array, formats='f8,i4,S5', shape=3, byteorder='big'
+ )
+ fd.close()
+ assert_equal(r1, r2)
+ assert_equal(r2, r3)
+
+ def test_recarray_from_obj(self):
+ count = 10
+ a = np.zeros(count, dtype='O')
+ b = np.zeros(count, dtype='f8')
+ c = np.zeros(count, dtype='f8')
+ for i in range(len(a)):
+ a[i] = list(range(1, 10))
+
+ mine = np.rec.fromarrays([a, b, c], names='date,data1,data2')
+ for i in range(len(a)):
+ assert_(mine.date[i] == list(range(1, 10)))
+ assert_(mine.data1[i] == 0.0)
+ assert_(mine.data2[i] == 0.0)
+
+ def test_recarray_repr(self):
+ a = np.array([(1, 0.1), (2, 0.2)],
+ dtype=[('foo', ' 2) & (a < 6))
+ xb = np.where((b > 2) & (b < 6))
+ ya = ((a > 2) & (a < 6))
+ yb = ((b > 2) & (b < 6))
+ assert_array_almost_equal(xa, ya.nonzero())
+ assert_array_almost_equal(xb, yb.nonzero())
+ assert_(np.all(a[ya] > 0.5))
+ assert_(np.all(b[yb] > 0.5))
+
+ def test_endian_where(self):
+ # GitHub issue #369
+ net = np.zeros(3, dtype='>f4')
+ net[1] = 0.00458849
+ net[2] = 0.605202
+ max_net = net.max()
+ test = np.where(net <= 0., max_net, net)
+ correct = np.array([0.60520202, 0.00458849, 0.60520202])
+ assert_array_almost_equal(test, correct)
+
+ def test_endian_recarray(self):
+ # Ticket #2185
+ dt = np.dtype([
+ ('head', '>u4'),
+ ('data', '>u4', 2),
+ ])
+ buf = np.recarray(1, dtype=dt)
+ buf[0]['head'] = 1
+ buf[0]['data'][:] = [1, 1]
+
+ h = buf[0]['head']
+ d = buf[0]['data'][0]
+ buf[0]['head'] = h
+ buf[0]['data'][0] = d
+ assert_(buf[0]['head'] == 1)
+
+ def test_mem_dot(self):
+ # Ticket #106
+ x = np.random.randn(0, 1)
+ y = np.random.randn(10, 1)
+ # Dummy array to detect bad memory access:
+ _z = np.ones(10)
+ _dummy = np.empty((0, 10))
+ z = as_strided(_z, _dummy.shape, _dummy.strides)
+ np.dot(x, np.transpose(y), out=z)
+ assert_equal(_z, np.ones(10))
+ # Do the same for the built-in dot:
+ np._core.multiarray.dot(x, np.transpose(y), out=z)
+ assert_equal(_z, np.ones(10))
+
+ def test_arange_endian(self):
+ # Ticket #111
+ ref = np.arange(10)
+ x = np.arange(10, dtype=' 1 and x['two'] > 2)
+
+ def test_method_args(self):
+ # Make sure methods and functions have same default axis
+ # keyword and arguments
+ funcs1 = ['argmax', 'argmin', 'sum', 'any', 'all', 'cumsum',
+ 'cumprod', 'prod', 'std', 'var', 'mean',
+ 'round', 'min', 'max', 'argsort', 'sort']
+ funcs2 = ['compress', 'take', 'repeat']
+
+ for func in funcs1:
+ arr = np.random.rand(8, 7)
+ arr2 = arr.copy()
+ res1 = getattr(arr, func)()
+ res2 = getattr(np, func)(arr2)
+ if res1 is None:
+ res1 = arr
+
+ if res1.dtype.kind in 'uib':
+ assert_((res1 == res2).all(), func)
+ else:
+ assert_(abs(res1 - res2).max() < 1e-8, func)
+
+ for func in funcs2:
+ arr1 = np.random.rand(8, 7)
+ arr2 = np.random.rand(8, 7)
+ res1 = None
+ if func == 'compress':
+ arr1 = arr1.ravel()
+ res1 = getattr(arr2, func)(arr1)
+ else:
+ arr2 = (15 * arr2).astype(int).ravel()
+ if res1 is None:
+ res1 = getattr(arr1, func)(arr2)
+ res2 = getattr(np, func)(arr1, arr2)
+ assert_(abs(res1 - res2).max() < 1e-8, func)
+
+ def test_mem_lexsort_strings(self):
+ # Ticket #298
+ lst = ['abc', 'cde', 'fgh']
+ np.lexsort((lst,))
+
+ def test_fancy_index(self):
+ # Ticket #302
+ x = np.array([1, 2])[np.array([0])]
+ assert_equal(x.shape, (1,))
+
+ def test_recarray_copy(self):
+ # Ticket #312
+ dt = [('x', np.int16), ('y', np.float64)]
+ ra = np.array([(1, 2.3)], dtype=dt)
+ rb = np.rec.array(ra, dtype=dt)
+ rb['x'] = 2.
+ assert_(ra['x'] != rb['x'])
+
+ def test_rec_fromarray(self):
+ # Ticket #322
+ x1 = np.array([[1, 2], [3, 4], [5, 6]])
+ x2 = np.array(['a', 'dd', 'xyz'])
+ x3 = np.array([1.1, 2, 3])
+ np.rec.fromarrays([x1, x2, x3], formats="(2,)i4,S3,f8")
+
+ def test_object_array_assign(self):
+ x = np.empty((2, 2), object)
+ x.flat[2] = (1, 2, 3)
+ assert_equal(x.flat[2], (1, 2, 3))
+
+ def test_ndmin_float64(self):
+ # Ticket #324
+ x = np.array([1, 2, 3], dtype=np.float64)
+ assert_equal(np.array(x, dtype=np.float32, ndmin=2).ndim, 2)
+ assert_equal(np.array(x, dtype=np.float64, ndmin=2).ndim, 2)
+
+ def test_ndmin_order(self):
+ # Issue #465 and related checks
+ assert_(np.array([1, 2], order='C', ndmin=3).flags.c_contiguous)
+ assert_(np.array([1, 2], order='F', ndmin=3).flags.f_contiguous)
+ assert_(np.array(np.ones((2, 2), order='F'), ndmin=3).flags.f_contiguous)
+ assert_(np.array(np.ones((2, 2), order='C'), ndmin=3).flags.c_contiguous)
+
+ def test_mem_axis_minimization(self):
+ # Ticket #327
+ data = np.arange(5)
+ data = np.add.outer(data, data)
+
+ def test_mem_float_imag(self):
+ # Ticket #330
+ np.float64(1.0).imag
+
+ def test_dtype_tuple(self):
+ # Ticket #334
+ assert_(np.dtype('i4') == np.dtype(('i4', ())))
+
+ def test_dtype_posttuple(self):
+ # Ticket #335
+ np.dtype([('col1', '()i4')])
+
+ def test_numeric_carray_compare(self):
+ # Ticket #341
+ assert_equal(np.array(['X'], 'c'), b'X')
+
+ def test_string_array_size(self):
+ # Ticket #342
+ assert_raises(ValueError,
+ np.array, [['X'], ['X', 'X', 'X']], '|S1')
+
+ def test_dtype_repr(self):
+ # Ticket #344
+ dt1 = np.dtype(('uint32', 2))
+ dt2 = np.dtype(('uint32', (2,)))
+ assert_equal(dt1.__repr__(), dt2.__repr__())
+
+ def test_reshape_order(self):
+ # Make sure reshape order works.
+ a = np.arange(6).reshape(2, 3, order='F')
+ assert_equal(a, [[0, 2, 4], [1, 3, 5]])
+ a = np.array([[1, 2], [3, 4], [5, 6], [7, 8]])
+ b = a[:, 1]
+ assert_equal(b.reshape(2, 2, order='F'), [[2, 6], [4, 8]])
+
+ def test_reshape_zero_strides(self):
+ # Issue #380, test reshaping of zero strided arrays
+ a = np.ones(1)
+ a = as_strided(a, shape=(5,), strides=(0,))
+ assert_(a.reshape(5, 1).strides[0] == 0)
+
+ def test_reshape_zero_size(self):
+ # GitHub Issue #2700, setting shape failed for 0-sized arrays
+ a = np.ones((0, 2))
+ a.shape = (-1, 2)
+
+ def test_reshape_trailing_ones_strides(self):
+ # GitHub issue gh-2949, bad strides for trailing ones of new shape
+ a = np.zeros(12, dtype=np.int32)[::2] # not contiguous
+ strides_c = (16, 8, 8, 8)
+ strides_f = (8, 24, 48, 48)
+ assert_equal(a.reshape(3, 2, 1, 1).strides, strides_c)
+ assert_equal(a.reshape(3, 2, 1, 1, order='F').strides, strides_f)
+ assert_equal(np.array(0, dtype=np.int32).reshape(1, 1).strides, (4, 4))
+
+ def test_repeat_discont(self):
+ # Ticket #352
+ a = np.arange(12).reshape(4, 3)[:, 2]
+ assert_equal(a.repeat(3), [2, 2, 2, 5, 5, 5, 8, 8, 8, 11, 11, 11])
+
+ def test_array_index(self):
+ # Make sure optimization is not called in this case.
+ a = np.array([1, 2, 3])
+ a2 = np.array([[1, 2, 3]])
+ assert_equal(a[np.where(a == 3)], a2[np.where(a2 == 3)])
+
+ def test_object_argmax(self):
+ a = np.array([1, 2, 3], dtype=object)
+ assert_(a.argmax() == 2)
+
+ def test_recarray_fields(self):
+ # Ticket #372
+ dt0 = np.dtype([('f0', 'i4'), ('f1', 'i4')])
+ dt1 = np.dtype([('f0', 'i8'), ('f1', 'i8')])
+ for a in [np.array([(1, 2), (3, 4)], "i4,i4"),
+ np.rec.array([(1, 2), (3, 4)], "i4,i4"),
+ np.rec.array([(1, 2), (3, 4)]),
+ np.rec.fromarrays([(1, 2), (3, 4)], "i4,i4"),
+ np.rec.fromarrays([(1, 2), (3, 4)])]:
+ assert_(a.dtype in [dt0, dt1])
+
+ def test_random_shuffle(self):
+ # Ticket #374
+ a = np.arange(5).reshape((5, 1))
+ b = a.copy()
+ np.random.shuffle(b)
+ assert_equal(np.sort(b, axis=0), a)
+
+ def test_refcount_vdot(self):
+ # Changeset #3443
+ _assert_valid_refcount(np.vdot)
+
+ def test_startswith(self):
+ ca = np.char.array(['Hi', 'There'])
+ assert_equal(ca.startswith('H'), [True, False])
+
+ def test_noncommutative_reduce_accumulate(self):
+ # Ticket #413
+ tosubtract = np.arange(5)
+ todivide = np.array([2.0, 0.5, 0.25])
+ assert_equal(np.subtract.reduce(tosubtract), -10)
+ assert_equal(np.divide.reduce(todivide), 16.0)
+ assert_array_equal(np.subtract.accumulate(tosubtract),
+ np.array([0, -1, -3, -6, -10]))
+ assert_array_equal(np.divide.accumulate(todivide),
+ np.array([2., 4., 16.]))
+
+ def test_convolve_empty(self):
+ # Convolve should raise an error for empty input array.
+ assert_raises(ValueError, np.convolve, [], [1])
+ assert_raises(ValueError, np.convolve, [1], [])
+
+ def test_multidim_byteswap(self):
+ # Ticket #449
+ r = np.array([(1, (0, 1, 2))], dtype="i2,3i2")
+ assert_array_equal(r.byteswap(),
+ np.array([(256, (0, 256, 512))], r.dtype))
+
+ def test_string_NULL(self):
+ # Changeset 3557
+ assert_equal(np.array("a\x00\x0b\x0c\x00").item(),
+ 'a\x00\x0b\x0c')
+
+ def test_junk_in_string_fields_of_recarray(self):
+ # Ticket #483
+ r = np.array([[b'abc']], dtype=[('var1', '|S20')])
+ assert_(asbytes(r['var1'][0][0]) == b'abc')
+
+ def test_take_output(self):
+ # Ensure that 'take' honours output parameter.
+ x = np.arange(12).reshape((3, 4))
+ a = np.take(x, [0, 2], axis=1)
+ b = np.zeros_like(a)
+ np.take(x, [0, 2], axis=1, out=b)
+ assert_array_equal(a, b)
+
+ def test_take_object_fail(self):
+ # Issue gh-3001
+ d = 123.
+ a = np.array([d, 1], dtype=object)
+ if HAS_REFCOUNT:
+ ref_d = sys.getrefcount(d)
+ try:
+ a.take([0, 100])
+ except IndexError:
+ pass
+ if HAS_REFCOUNT:
+ assert_(ref_d == sys.getrefcount(d))
+
+ def test_array_str_64bit(self):
+ # Ticket #501
+ s = np.array([1, np.nan], dtype=np.float64)
+ with np.errstate(all='raise'):
+ np.array_str(s) # Should succeed
+
+ def test_frompyfunc_endian(self):
+ # Ticket #503
+ from math import radians
+ uradians = np.frompyfunc(radians, 1, 1)
+ big_endian = np.array([83.4, 83.5], dtype='>f8')
+ little_endian = np.array([83.4, 83.5], dtype=' object
+ # casting succeeds
+ def rs():
+ x = np.ones([484, 286])
+ y = np.zeros([484, 286])
+ x |= y
+
+ assert_raises(TypeError, rs)
+
+ def test_unicode_scalar(self):
+ # Ticket #600
+ x = np.array(["DROND", "DROND1"], dtype="U6")
+ el = x[1]
+ for proto in range(2, pickle.HIGHEST_PROTOCOL + 1):
+ new = pickle.loads(pickle.dumps(el, protocol=proto))
+ assert_equal(new, el)
+
+ def test_arange_non_native_dtype(self):
+ # Ticket #616
+ for T in ('>f4', ' 0)] = v
+
+ assert_raises(IndexError, ia, x, s, np.zeros(9, dtype=float))
+ assert_raises(IndexError, ia, x, s, np.zeros(11, dtype=float))
+
+ # Old special case (different code path):
+ assert_raises(IndexError, ia, x.flat, s, np.zeros(9, dtype=float))
+ assert_raises(IndexError, ia, x.flat, s, np.zeros(11, dtype=float))
+
+ def test_mem_scalar_indexing(self):
+ # Ticket #603
+ x = np.array([0], dtype=float)
+ index = np.array(0, dtype=np.int32)
+ x[index]
+
+ def test_binary_repr_0_width(self):
+ assert_equal(np.binary_repr(0, width=3), '000')
+
+ def test_fromstring(self):
+ assert_equal(np.fromstring("12:09:09", dtype=int, sep=":"),
+ [12, 9, 9])
+
+ def test_searchsorted_variable_length(self):
+ x = np.array(['a', 'aa', 'b'])
+ y = np.array(['d', 'e'])
+ assert_equal(x.searchsorted(y), [3, 3])
+
+ def test_string_argsort_with_zeros(self):
+ # Check argsort for strings containing zeros.
+ x = np.frombuffer(b"\x00\x02\x00\x01", dtype="|S2")
+ assert_array_equal(x.argsort(kind='m'), np.array([1, 0]))
+ assert_array_equal(x.argsort(kind='q'), np.array([1, 0]))
+
+ def test_string_sort_with_zeros(self):
+ # Check sort for strings containing zeros.
+ x = np.frombuffer(b"\x00\x02\x00\x01", dtype="|S2")
+ y = np.frombuffer(b"\x00\x01\x00\x02", dtype="|S2")
+ assert_array_equal(np.sort(x, kind="q"), y)
+
+ def test_copy_detection_zero_dim(self):
+ # Ticket #658
+ np.indices((0, 3, 4)).T.reshape(-1, 3)
+
+ def test_flat_byteorder(self):
+ # Ticket #657
+ x = np.arange(10)
+ assert_array_equal(x.astype('>i4'), x.astype('i4').flat[:], x.astype('i4')):
+ x = np.array([-1, 0, 1], dtype=dt)
+ assert_equal(x.flat[0].dtype, x[0].dtype)
+
+ def test_copy_detection_corner_case(self):
+ # Ticket #658
+ np.indices((0, 3, 4)).T.reshape(-1, 3)
+
+ def test_object_array_refcounting(self):
+ # Ticket #633
+ if not hasattr(sys, 'getrefcount'):
+ return
+
+ # NB. this is probably CPython-specific
+
+ cnt = sys.getrefcount
+
+ a = object()
+ b = object()
+ c = object()
+
+ cnt0_a = cnt(a)
+ cnt0_b = cnt(b)
+ cnt0_c = cnt(c)
+
+ # -- 0d -> 1-d broadcast slice assignment
+
+ arr = np.zeros(5, dtype=np.object_)
+
+ arr[:] = a
+ assert_equal(cnt(a), cnt0_a + 5)
+
+ arr[:] = b
+ assert_equal(cnt(a), cnt0_a)
+ assert_equal(cnt(b), cnt0_b + 5)
+
+ arr[:2] = c
+ assert_equal(cnt(b), cnt0_b + 3)
+ assert_equal(cnt(c), cnt0_c + 2)
+
+ del arr
+
+ # -- 1-d -> 2-d broadcast slice assignment
+
+ arr = np.zeros((5, 2), dtype=np.object_)
+ arr0 = np.zeros(2, dtype=np.object_)
+
+ arr0[0] = a
+ assert_(cnt(a) == cnt0_a + 1)
+ arr0[1] = b
+ assert_(cnt(b) == cnt0_b + 1)
+
+ arr[:, :] = arr0
+ assert_(cnt(a) == cnt0_a + 6)
+ assert_(cnt(b) == cnt0_b + 6)
+
+ arr[:, 0] = None
+ assert_(cnt(a) == cnt0_a + 1)
+
+ del arr, arr0
+
+ # -- 2-d copying + flattening
+
+ arr = np.zeros((5, 2), dtype=np.object_)
+
+ arr[:, 0] = a
+ arr[:, 1] = b
+ assert_(cnt(a) == cnt0_a + 5)
+ assert_(cnt(b) == cnt0_b + 5)
+
+ arr2 = arr.copy()
+ assert_(cnt(a) == cnt0_a + 10)
+ assert_(cnt(b) == cnt0_b + 10)
+
+ arr2 = arr[:, 0].copy()
+ assert_(cnt(a) == cnt0_a + 10)
+ assert_(cnt(b) == cnt0_b + 5)
+
+ arr2 = arr.flatten()
+ assert_(cnt(a) == cnt0_a + 10)
+ assert_(cnt(b) == cnt0_b + 10)
+
+ del arr, arr2
+
+ # -- concatenate, repeat, take, choose
+
+ arr1 = np.zeros((5, 1), dtype=np.object_)
+ arr2 = np.zeros((5, 1), dtype=np.object_)
+
+ arr1[...] = a
+ arr2[...] = b
+ assert_(cnt(a) == cnt0_a + 5)
+ assert_(cnt(b) == cnt0_b + 5)
+
+ tmp = np.concatenate((arr1, arr2))
+ assert_(cnt(a) == cnt0_a + 5 + 5)
+ assert_(cnt(b) == cnt0_b + 5 + 5)
+
+ tmp = arr1.repeat(3, axis=0)
+ assert_(cnt(a) == cnt0_a + 5 + 3 * 5)
+
+ tmp = arr1.take([1, 2, 3], axis=0)
+ assert_(cnt(a) == cnt0_a + 5 + 3)
+
+ x = np.array([[0], [1], [0], [1], [1]], int)
+ tmp = x.choose(arr1, arr2)
+ assert_(cnt(a) == cnt0_a + 5 + 2)
+ assert_(cnt(b) == cnt0_b + 5 + 3)
+
+ def test_mem_custom_float_to_array(self):
+ # Ticket 702
+ class MyFloat:
+ def __float__(self):
+ return 1.0
+
+ tmp = np.atleast_1d([MyFloat()])
+ tmp.astype(float) # Should succeed
+
+ def test_object_array_refcount_self_assign(self):
+ # Ticket #711
+ class VictimObject:
+ deleted = False
+
+ def __del__(self):
+ self.deleted = True
+
+ d = VictimObject()
+ arr = np.zeros(5, dtype=np.object_)
+ arr[:] = d
+ del d
+ arr[:] = arr # refcount of 'd' might hit zero here
+ assert_(not arr[0].deleted)
+ arr[:] = arr # trying to induce a segfault by doing it again...
+ assert_(not arr[0].deleted)
+
+ def test_mem_fromiter_invalid_dtype_string(self):
+ x = [1, 2, 3]
+ assert_raises(ValueError,
+ np.fromiter, list(x), dtype='S')
+
+ def test_reduce_big_object_array(self):
+ # Ticket #713
+ oldsize = np.setbufsize(10 * 16)
+ a = np.array([None] * 161, object)
+ assert_(not np.any(a))
+ np.setbufsize(oldsize)
+
+ def test_mem_0d_array_index(self):
+ # Ticket #714
+ np.zeros(10)[np.array(0)]
+
+ def test_nonnative_endian_fill(self):
+ # Non-native endian arrays were incorrectly filled with scalars
+ # before r5034.
+ if sys.byteorder == 'little':
+ dtype = np.dtype('>i4')
+ else:
+ dtype = np.dtype('