<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Maths on Podkulachnik</title>
		<link>https://www.podkulachnik.com/math/</link>
		<description>Recent content in Maths on Podkulachnik</description>
		<generator>Hugo</generator>
		<language>en-us</language>
		
		
		
			<copyright>Podkulachnik</copyright>
		
		
			<lastBuildDate>Wed, 11 Jun 2025 21:00:00 -0400</lastBuildDate>
		
			<atom:link href="https://www.podkulachnik.com/math/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>Ordering</title>
				<link>https://www.podkulachnik.com/math/ordering/</link>
				<pubDate>Wed, 11 Jun 2025 21:00:00 -0400</pubDate>
				<guid>https://www.podkulachnik.com/math/ordering/</guid>
				<description>&lt;h1 id=&#34;sorting-and-ordering&#34;&gt;Sorting and Ordering&lt;/h1&gt;&#xA;&lt;h2 id=&#34;synopsis&#34;&gt;Synopsis&lt;/h2&gt;&#xA;&lt;p&gt;Many algorithms in the C++ standard require the use of a set defined with a&#xA;strict weak ordering in order to use both &lt;code&gt;std::sort&lt;/code&gt; and &lt;code&gt;std::stable_sort&lt;/code&gt;.&#xA;This is contrary to the Rust standard library, which uses the trait &lt;code&gt;Cmp&lt;/code&gt;,&#xA;which instead requires a total ordering. I&amp;rsquo;ll be discussing these two concepts&#xA;and how it relates to floating point numbers, and how the sorting of floats are&#xA;actually undefined behavior when there is a possibility of NaN.&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
