Skip to content

Commit

Permalink
Add documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
sethrj committed Jan 20, 2024
1 parent 0f913f7 commit 2469ca1
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/orange/transform/SignedPermutation.hh
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,22 @@ namespace celeritas
/*!
* Apply a rotation that remaps and possibly flips signs.
*
* The daughter-to-parent rotation matrix in this special case:
* A signed permutation matrix is a special matrix that has only one entry with
* the value of \f$\pm1\f$ in each row and each column. This is a specialized
* rotation matrix that, when applied to a vector, simply exchanges the
* locations and/or flips the signs of the vector entries.
*
* This class stores a special version of the daughter-to-parent rotation
* matrix:
* \f[
\mathbf{R} = \begin{bmatrix}
\mathbf{e}_x \\ \hline
\mathbf{e}_y \\ \hline
\mathbf{e}_z
\end{bmatrix}
\f]
* where \f$ \mathbf{e}_u \f$ is has exactly one entry with a value \f$ \pm 1
\f$ and the other entries being zero.
* where \f$ \mathbf{e}_u \f$ has exactly one entry with a value \f$ \pm 1
\f$ and the other entries are zero.
*
* The underlying storage are a compressed series of bits in little-endian form
* that indicate the positions of the nonzero entry followed by the sign:
Expand Down

0 comments on commit 2469ca1

Please sign in to comment.