Skip to content

Commit d145b25

Browse files
authored
[Matrix] Reorganize into its own splat section (#754)
fixes #753 Before this change overloading.tex refered to both Matrix and Vector splats as Scalar splat but Conversions.tex had these both under Vector splat conversion. This created a bit of ambiguity that could be fixed up by just organizing them into their own sections. The new layout: <img width="1322" height="720" alt="image" src="https://github.com/user-attachments/assets/aa9a776f-9d4e-472f-b885-b03ab7a5d6c9" /> <img width="1290" height="432" alt="image" src="https://github.com/user-attachments/assets/839ec366-32c1-4709-a0ff-5b1b527628b0" />
1 parent 9001842 commit d145b25

2 files changed

Lines changed: 10 additions & 6 deletions

File tree

specs/language/conversions.tex

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,15 +150,16 @@
150150
prvalue of type \texttt{vector<T,x>}. The destination value is the source value
151151
replicated into each element of the destination.
152152

153+
\p A prvalue of type \texttt{vector<T,1>} can be converted
154+
to a prvalue of type \texttt{vector<T,x>}. The destination value is the value in
155+
the source vector replicated into each element of the destination.
156+
157+
\Sec{Matrix splat conversion}{Conv.msplat}
153158
\p A glvalue of type \texttt{T} can be converted to a cxvalue of type
154159
\texttt{matrix<T,x,y>} or a prvalue of type \texttt{T} can be converted to a
155160
prvalue of type \texttt{matrix<T,x,y>}. The destination value is the source
156161
value replicated into each element of the destination.
157162

158-
\p A prvalue of type \texttt{vector<T,1>} can be converted
159-
to a prvalue of type \texttt{vector<T,x>}. The destination value is the value in
160-
the source vector replicated into each element of the destination.
161-
162163
\Sec{Array and Class splat conversion}{Conv.asplat}
163164

164165
\p A prvalue of type \texttt{T} can be converted to a

specs/language/overloading.tex

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,8 +271,11 @@
271271
& \ref{Conv.array} \\ \cline{1-2}\cline{4-4}
272272
Qualification & Qualification Adjustment & & \ref{Conv.qual} \\ \cline{1-4}
273273

274-
Scalar splat (without conversion) & Scalar Extension & Extension
275-
& \ref{Conv.vsplat} \\ \cline{1-4}
274+
Vector Scalar splat conversion & Scalar Extension Conversion & Conversion Extension
275+
& \ref{Conv.vsplat} \\ \cline{1-4}
276+
277+
Matrix Scalar splat conversion & Scalar Extension Conversion & Conversion Extension
278+
& \ref{Conv.msplat} \\ \cline{1-4}
276279

277280
Integral promotion & &
278281
& \ref{Conv.iconv} \& \ref{Conv.rank.int} \\ \cline{1-1}\cline{4-4}

0 commit comments

Comments
 (0)