symcrys 0.10.0 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (218) hide show
  1. package/README.md +6 -6
  2. package/dist/cell.d.ts +19 -16
  3. package/dist/cell.d.ts.map +1 -1
  4. package/dist/cell.js +63 -35
  5. package/dist/cell.js.map +1 -1
  6. package/dist/checks.d.ts +29 -0
  7. package/dist/checks.d.ts.map +1 -0
  8. package/dist/checks.js +79 -0
  9. package/dist/checks.js.map +1 -0
  10. package/dist/closure.d.ts +43 -0
  11. package/dist/closure.d.ts.map +1 -0
  12. package/dist/closure.js +201 -0
  13. package/dist/closure.js.map +1 -0
  14. package/dist/crystalClasses.d.ts +146 -118
  15. package/dist/crystalClasses.d.ts.map +1 -1
  16. package/dist/crystalClasses.js +163 -124
  17. package/dist/crystalClasses.js.map +1 -1
  18. package/dist/freeze.d.ts +7 -0
  19. package/dist/freeze.d.ts.map +1 -0
  20. package/dist/freeze.js +15 -0
  21. package/dist/freeze.js.map +1 -0
  22. package/dist/index.d.ts +11 -10
  23. package/dist/index.d.ts.map +1 -1
  24. package/dist/index.js +4 -3
  25. package/dist/index.js.map +1 -1
  26. package/dist/indices.d.ts +31 -5
  27. package/dist/indices.d.ts.map +1 -1
  28. package/dist/indices.js +104 -13
  29. package/dist/indices.js.map +1 -1
  30. package/dist/lattice.d.ts +15 -1
  31. package/dist/lattice.d.ts.map +1 -1
  32. package/dist/lattice.js +30 -1
  33. package/dist/lattice.js.map +1 -1
  34. package/dist/linalg.d.ts +2 -2
  35. package/dist/linalg.d.ts.map +1 -1
  36. package/dist/linalg.js +3 -3
  37. package/dist/linalg.js.map +1 -1
  38. package/dist/magnetic.d.ts +12 -10
  39. package/dist/magnetic.d.ts.map +1 -1
  40. package/dist/magnetic.js +8 -6
  41. package/dist/magnetic.js.map +1 -1
  42. package/dist/notation.d.ts +16 -0
  43. package/dist/notation.d.ts.map +1 -0
  44. package/dist/notation.js +66 -0
  45. package/dist/notation.js.map +1 -0
  46. package/dist/operations.d.ts +40 -26
  47. package/dist/operations.d.ts.map +1 -1
  48. package/dist/operations.js +48 -60
  49. package/dist/operations.js.map +1 -1
  50. package/dist/plane.d.ts +141 -79
  51. package/dist/plane.d.ts.map +1 -1
  52. package/dist/plane.js +147 -77
  53. package/dist/plane.js.map +1 -1
  54. package/dist/pointGroups/crystalForms.d.ts +6 -21
  55. package/dist/pointGroups/crystalForms.d.ts.map +1 -1
  56. package/dist/pointGroups/crystalForms.js +9 -16
  57. package/dist/pointGroups/crystalForms.js.map +1 -1
  58. package/dist/pointGroups/crystalFormsData.d.ts +4 -1
  59. package/dist/pointGroups/crystalFormsData.d.ts.map +1 -1
  60. package/dist/pointGroups/crystalFormsData.js +64 -1
  61. package/dist/pointGroups/crystalFormsData.js.map +1 -1
  62. package/dist/pointGroups/elements.d.ts +19 -17
  63. package/dist/pointGroups/elements.d.ts.map +1 -1
  64. package/dist/pointGroups/elements.js +65 -83
  65. package/dist/pointGroups/elements.js.map +1 -1
  66. package/dist/pointGroups/identify.d.ts +10 -18
  67. package/dist/pointGroups/identify.d.ts.map +1 -1
  68. package/dist/pointGroups/identify.js +27 -79
  69. package/dist/pointGroups/identify.js.map +1 -1
  70. package/dist/pointGroups/itaOrder.d.ts +15 -14
  71. package/dist/pointGroups/itaOrder.d.ts.map +1 -1
  72. package/dist/pointGroups/itaOrder.js +116 -94
  73. package/dist/pointGroups/itaOrder.js.map +1 -1
  74. package/dist/pointGroups/itcData.d.ts +96 -0
  75. package/dist/pointGroups/itcData.d.ts.map +1 -0
  76. package/dist/pointGroups/itcData.js +336 -0
  77. package/dist/pointGroups/itcData.js.map +1 -0
  78. package/dist/pointGroups/itcMagneticData.d.ts +55 -0
  79. package/dist/pointGroups/itcMagneticData.d.ts.map +1 -0
  80. package/dist/pointGroups/itcMagneticData.js +172 -0
  81. package/dist/pointGroups/itcMagneticData.js.map +1 -0
  82. package/dist/pointGroups/keys.d.ts +32 -0
  83. package/dist/pointGroups/keys.d.ts.map +1 -0
  84. package/dist/pointGroups/keys.js +120 -0
  85. package/dist/pointGroups/keys.js.map +1 -0
  86. package/dist/pointGroups/magneticSymbols.d.ts +6 -5
  87. package/dist/pointGroups/magneticSymbols.d.ts.map +1 -1
  88. package/dist/pointGroups/magneticSymbols.js +15 -12
  89. package/dist/pointGroups/magneticSymbols.js.map +1 -1
  90. package/dist/pointGroups/orbits.d.ts +23 -42
  91. package/dist/pointGroups/orbits.d.ts.map +1 -1
  92. package/dist/pointGroups/orbits.js +20 -62
  93. package/dist/pointGroups/orbits.js.map +1 -1
  94. package/dist/pointGroups/pointGroups.d.ts +135 -67
  95. package/dist/pointGroups/pointGroups.d.ts.map +1 -1
  96. package/dist/pointGroups/pointGroups.js +409 -244
  97. package/dist/pointGroups/pointGroups.js.map +1 -1
  98. package/dist/pointGroups/properties.d.ts +21 -22
  99. package/dist/pointGroups/properties.d.ts.map +1 -1
  100. package/dist/pointGroups/properties.js +40 -37
  101. package/dist/pointGroups/properties.js.map +1 -1
  102. package/dist/pointGroups/seitzData.d.ts +26 -0
  103. package/dist/pointGroups/seitzData.d.ts.map +1 -0
  104. package/dist/pointGroups/seitzData.js +130 -0
  105. package/dist/pointGroups/seitzData.js.map +1 -0
  106. package/dist/pointGroups/wyckoff.d.ts +70 -40
  107. package/dist/pointGroups/wyckoff.d.ts.map +1 -1
  108. package/dist/pointGroups/wyckoff.js +98 -91
  109. package/dist/pointGroups/wyckoff.js.map +1 -1
  110. package/dist/pointGroups/wyckoffData.d.ts +7 -4
  111. package/dist/pointGroups/wyckoffData.d.ts.map +1 -1
  112. package/dist/pointGroups/wyckoffData.js +789 -168
  113. package/dist/pointGroups/wyckoffData.js.map +1 -1
  114. package/dist/siteSymmetry.d.ts +9 -17
  115. package/dist/siteSymmetry.d.ts.map +1 -1
  116. package/dist/siteSymmetry.js +62 -47
  117. package/dist/siteSymmetry.js.map +1 -1
  118. package/dist/spaceGroups/affine.d.ts.map +1 -1
  119. package/dist/spaceGroups/affine.js +3 -2
  120. package/dist/spaceGroups/affine.js.map +1 -1
  121. package/dist/spaceGroups/cell.d.ts +43 -31
  122. package/dist/spaceGroups/cell.d.ts.map +1 -1
  123. package/dist/spaceGroups/cell.js +173 -85
  124. package/dist/spaceGroups/cell.js.map +1 -1
  125. package/dist/spaceGroups/describe.d.ts +12 -10
  126. package/dist/spaceGroups/describe.d.ts.map +1 -1
  127. package/dist/spaceGroups/describe.js +11 -10
  128. package/dist/spaceGroups/describe.js.map +1 -1
  129. package/dist/spaceGroups/planeGroupData.d.ts +1 -1
  130. package/dist/spaceGroups/planeGroupData.d.ts.map +1 -1
  131. package/dist/spaceGroups/planeGroupData.js +8 -8
  132. package/dist/spaceGroups/planeGroupData.js.map +1 -1
  133. package/dist/spaceGroups/planeGroups.d.ts.map +1 -1
  134. package/dist/spaceGroups/planeGroups.js +2 -1
  135. package/dist/spaceGroups/planeGroups.js.map +1 -1
  136. package/dist/spaceGroups/positions.d.ts +48 -19
  137. package/dist/spaceGroups/positions.d.ts.map +1 -1
  138. package/dist/spaceGroups/positions.js +166 -67
  139. package/dist/spaceGroups/positions.js.map +1 -1
  140. package/dist/tensors/propertyTable.d.ts +3 -1
  141. package/dist/tensors/propertyTable.d.ts.map +1 -1
  142. package/dist/tensors/propertyTable.js +17 -10
  143. package/dist/tensors/propertyTable.js.map +1 -1
  144. package/dist/tensors/rowEchelon.d.ts +12 -4
  145. package/dist/tensors/rowEchelon.d.ts.map +1 -1
  146. package/dist/tensors/rowEchelon.js +24 -11
  147. package/dist/tensors/rowEchelon.js.map +1 -1
  148. package/dist/tensors/tensorForm.d.ts +75 -34
  149. package/dist/tensors/tensorForm.d.ts.map +1 -1
  150. package/dist/tensors/tensorForm.js +173 -68
  151. package/dist/tensors/tensorForm.js.map +1 -1
  152. package/dist/tensors/tensorProperties.d.ts +10 -9
  153. package/dist/tensors/tensorProperties.d.ts.map +1 -1
  154. package/dist/tensors/tensorProperties.js +22 -12
  155. package/dist/tensors/tensorProperties.js.map +1 -1
  156. package/dist/tolerances.d.ts +56 -1
  157. package/dist/tolerances.d.ts.map +1 -1
  158. package/dist/tolerances.js +51 -1
  159. package/dist/tolerances.js.map +1 -1
  160. package/dist/version.d.ts +1 -1
  161. package/dist/version.js +1 -1
  162. package/package.json +1 -1
  163. package/src/cell.ts +78 -51
  164. package/src/checks.ts +84 -0
  165. package/src/closure.ts +214 -0
  166. package/src/crystalClasses.ts +234 -160
  167. package/src/freeze.ts +14 -0
  168. package/src/index.ts +21 -10
  169. package/src/indices.ts +108 -18
  170. package/src/lattice.ts +41 -1
  171. package/src/linalg.ts +3 -3
  172. package/src/magnetic.ts +14 -9
  173. package/src/notation.ts +73 -0
  174. package/src/operations.ts +78 -69
  175. package/src/plane.ts +253 -127
  176. package/src/pointGroups/crystalForms.ts +11 -44
  177. package/src/pointGroups/crystalFormsData.ts +66 -1
  178. package/src/pointGroups/elements.ts +82 -92
  179. package/src/pointGroups/identify.ts +38 -97
  180. package/src/pointGroups/itaOrder.ts +117 -101
  181. package/src/pointGroups/itcData.ts +404 -0
  182. package/src/pointGroups/itcMagneticData.ts +206 -0
  183. package/src/pointGroups/keys.ts +144 -0
  184. package/src/pointGroups/magneticSymbols.ts +18 -17
  185. package/src/pointGroups/orbits.ts +41 -89
  186. package/src/pointGroups/pointGroups.ts +540 -297
  187. package/src/pointGroups/properties.ts +44 -40
  188. package/src/pointGroups/seitzData.ts +147 -0
  189. package/src/pointGroups/wyckoff.ts +137 -112
  190. package/src/pointGroups/wyckoffData.ts +793 -170
  191. package/src/siteSymmetry.ts +71 -64
  192. package/src/spaceGroups/affine.ts +3 -2
  193. package/src/spaceGroups/cell.ts +227 -116
  194. package/src/spaceGroups/describe.ts +22 -19
  195. package/src/spaceGroups/planeGroupData.ts +9 -9
  196. package/src/spaceGroups/planeGroups.ts +2 -1
  197. package/src/spaceGroups/positions.ts +202 -78
  198. package/src/tensors/propertyTable.ts +29 -17
  199. package/src/tensors/rowEchelon.ts +28 -9
  200. package/src/tensors/tensorForm.ts +260 -89
  201. package/src/tensors/tensorProperties.ts +34 -14
  202. package/src/tolerances.ts +66 -1
  203. package/src/version.ts +1 -1
  204. package/dist/pointGroups/data.d.ts +0 -75
  205. package/dist/pointGroups/data.d.ts.map +0 -1
  206. package/dist/pointGroups/data.js +0 -212
  207. package/dist/pointGroups/data.js.map +0 -1
  208. package/dist/pointGroups/magneticData.d.ts +0 -66
  209. package/dist/pointGroups/magneticData.d.ts.map +0 -1
  210. package/dist/pointGroups/magneticData.js +0 -184
  211. package/dist/pointGroups/magneticData.js.map +0 -1
  212. package/dist/spaceGroups/snap.d.ts +0 -20
  213. package/dist/spaceGroups/snap.d.ts.map +0 -1
  214. package/dist/spaceGroups/snap.js +0 -103
  215. package/dist/spaceGroups/snap.js.map +0 -1
  216. package/src/pointGroups/data.ts +0 -305
  217. package/src/pointGroups/magneticData.ts +0 -328
  218. package/src/spaceGroups/snap.ts +0 -121
@@ -3,77 +3,23 @@
3
3
  * list (for instance the operations left after distorting a crystal; docs/conventions.md, "Point
4
4
  * group of a list of operations"). Shared by both entry points.
5
5
  */
6
- import { det, multiply, trace } from '../linalg.js';
7
- import { checkOrthogonalWithin, checkTimeReversal } from '../operations.js';
8
- import { EPSILON } from '../tolerances.js';
6
+ import { TOLERANCE_KEYS, checkOptions } from '../checks.js';
7
+ import { det, trace } from '../linalg.js';
8
+ import { closeWithin, sameWithin } from '../closure.js';
9
+ import { checkCartesianOperations, checkTimeReversal } from '../operations.js';
10
+ import { EPSILON, toleranceOf } from '../tolerances.js';
9
11
  import { axialVector, rotationAxis } from './elements.js';
10
12
  import { MAGNETIC_POINT_GROUP_KEYS, operations as groupOperations, settings, } from './pointGroups.js';
11
13
  /** No point group has more than 96 operations (m-3m1'). */
12
14
  const MAX_ORDER = 96;
13
- function toleranceOf(options) {
14
- const t = options?.tolerance ?? EPSILON;
15
- if (!(typeof t === 'number' && t > 0 && t < 0.1))
16
- throw new RangeError(`Invalid tolerance: ${String(t)}`);
17
- return t;
18
- }
19
15
  /**
20
16
  * How far the trace of a matrix with entries within `tolerance` may lie from an integer: three
21
17
  * diagonal entries, so three times the tolerance (at least that of `EPSILON`).
22
18
  */
23
19
  const traceTolerance = (tolerance) => 3 * Math.max(tolerance, EPSILON);
24
- const same = (a, b, tolerance) => a.timeReversal === b.timeReversal &&
25
- a.matrix.every((row, i) => row.every((v, j) => Math.abs(v - b.matrix[i][j]) < tolerance));
26
- /** The kind of an operation (rounded trace, sign of the determinant, time reversal): equal operations have the same. */
27
- const kindOf = (op) => `${Math.round(trace(op.matrix))}${det(op.matrix) > 0 ? '+' : '-'}${op.timeReversal ? "'" : ''}`;
28
- /**
29
- * The group the operations generate, or undefined if it is larger than any point group. The
30
- * operations of the list that are not yet in the group are taken as generators, and the group is
31
- * grown by multiplying each element by each generator until nothing new appears; a new operation
32
- * is compared only with the operations of its kind.
33
- */
34
- function close(ops, tolerance) {
35
- const identity = {
36
- matrix: [
37
- [1, 0, 0],
38
- [0, 1, 0],
39
- [0, 0, 1],
40
- ],
41
- timeReversal: false,
42
- };
43
- const group = [];
44
- const byKind = new Map();
45
- const has = (op) => (byKind.get(kindOf(op)) ?? []).some((g) => same(g, op, tolerance));
46
- const push = (op) => {
47
- group.push(op);
48
- const k = kindOf(op);
49
- const list = byKind.get(k);
50
- if (list)
51
- list.push(op);
52
- else
53
- byKind.set(k, [op]);
54
- };
55
- push(identity);
56
- const generators = [];
57
- for (const s of ops) {
58
- if (has(s))
59
- continue;
60
- generators.push(s);
61
- for (let i = 0; i < group.length; i++) {
62
- for (const t of generators) {
63
- const product = {
64
- matrix: multiply(group[i].matrix, t.matrix),
65
- timeReversal: group[i].timeReversal !== t.timeReversal,
66
- };
67
- if (has(product))
68
- continue;
69
- if (group.length >= MAX_ORDER)
70
- return undefined;
71
- push(product);
72
- }
73
- }
74
- }
75
- return group;
76
- }
20
+ const same = sameWithin;
21
+ /** The group the operations generate within the tolerance, or undefined if it is larger than any point group. */
22
+ const close = (ops, tolerance) => closeWithin(ops, tolerance, MAX_ORDER);
77
23
  /**
78
24
  * How many operations of each kind a group has: determinant, trace and time reversal of each. For
79
25
  * the 122 point groups these counts are all different (a test checks it), and since the 122 are
@@ -82,11 +28,11 @@ function close(ops, tolerance) {
82
28
  */
83
29
  const signature = (ops, tolerance = EPSILON) => ops
84
30
  .map((op) => {
85
- const t = trace(op.matrix);
31
+ const t = trace(op.cartesian);
86
32
  const rounded = Math.round(t);
87
33
  if (Math.abs(t - rounded) > traceTolerance(tolerance))
88
34
  return 'x'; // not a crystallographic operation
89
- return `${Math.round(det(op.matrix))}:${rounded}${op.timeReversal ? "'" : ''}`;
35
+ return `${Math.round(det(op.cartesian))}:${rounded}${op.timeReversal ? "'" : ''}`;
90
36
  })
91
37
  .sort()
92
38
  .join(' ');
@@ -106,15 +52,16 @@ function keyOfSignature(s) {
106
52
  * first, two matrices being equal when no entry differs by `tolerance` (default `EPSILON`) or more.
107
53
  * Time reversal counts: a list with time reversal gives a magnetic point group. Returns undefined
108
54
  * if the operations generate no point group (an operation of order 5, a group larger than 96).
109
- * Throws a RangeError for a matrix that is not orthogonal (within `tolerance`, at least
55
+ * Throws a RangeError for an operation without an orthogonal Cartesian matrix (`cartesian`; within `tolerance`, at least
110
56
  * `EPSILON`) and for an operation that does not say whether it is combined with time reversal.
111
57
  * The classes `1` and `-1` have one setting and no orientation, so they always have
112
58
  * setting 1.
113
59
  */
114
60
  export function pointGroupOf(operations, options) {
115
- const tolerance = toleranceOf(options);
61
+ checkOptions(options, TOLERANCE_KEYS, 'pointGroupOf');
62
+ const tolerance = toleranceOf(options, 'operations');
63
+ checkCartesianOperations(operations, tolerance);
116
64
  checkTimeReversal(operations);
117
- operations.forEach((op, i) => checkOrthogonalWithin(op.matrix, `Operation ${i}`, tolerance));
118
65
  const group = close(operations, tolerance);
119
66
  if (!group)
120
67
  return undefined;
@@ -123,8 +70,8 @@ export function pointGroupOf(operations, options) {
123
70
  return undefined;
124
71
  // The operations passed in generate the group; if each is an operation of a setting of the same
125
72
  // order, the group is that setting. Products are not compared, since their errors add up.
126
- const setting = settings(key, 'itc').find((s) => {
127
- const ops = groupOperations(key, { convention: 'itc', setting: s.index });
73
+ const setting = settings(key).find((s) => {
74
+ const ops = groupOperations(key, { setting: s.index });
128
75
  return ops.length === group.length && operations.every((g) => ops.some((op) => same(g, op, tolerance)));
129
76
  });
130
77
  return Object.freeze(setting ? { key, setting: setting.index } : { key });
@@ -139,41 +86,42 @@ function signed(v, tolerance) {
139
86
  }
140
87
  const dot = (a, b) => a[0] * b[0] + a[1] * b[1] + a[2] * b[2];
141
88
  function describe(op, i, tolerance) {
142
- checkOrthogonalWithin(op.matrix, `Operation ${i}`, tolerance);
143
89
  const notCrystallographic = `Operation ${i} is not a crystallographic point operation`;
144
90
  // The trace of the rotation part is an integer exactly for the angles 360°/n, n = 1, 2, 3, 4, 6.
145
- const t = det(op.matrix) > 0 ? trace(op.matrix) : -trace(op.matrix);
91
+ const t = det(op.cartesian) > 0 ? trace(op.cartesian) : -trace(op.cartesian);
146
92
  if (Math.abs(t - Math.round(t)) > traceTolerance(tolerance))
147
93
  throw new RangeError(notCrystallographic);
148
94
  // The order from the trace of the rotation part, 1 + 2 cos(360°/n): 3, −1, 0, 1, 2 for n = 1, 2, 3, 4, 6.
149
95
  const n = { 3: 1, [-1]: 2, 0: 3, 1: 4, 2: 6 }[Math.round(t)];
150
96
  if (n === undefined)
151
97
  throw new RangeError(notCrystallographic);
152
- const r = (det(op.matrix) > 0 ? op.matrix : op.matrix.map((row) => row.map((v) => -v)));
153
- const proper = det(op.matrix) > 0;
98
+ const r = (det(op.cartesian) > 0 ? op.cartesian : op.cartesian.map((row) => row.map((v) => -v)));
99
+ const proper = det(op.cartesian) > 0;
154
100
  const timeReversal = op.timeReversal;
155
101
  if (n === 1)
156
- return Object.freeze({ kind: proper ? 'identity' : 'inversion', order: 1, timeReversal });
102
+ return Object.freeze({ kind: proper ? 'identity' : 'inversion', n: 1, timeReversal });
157
103
  const { axis } = signed(rotationAxis(r, n), tolerance);
158
104
  const frozenAxis = Object.freeze({ cartesian: Object.freeze(axis) });
159
- const kind = proper ? 'rotation' : n === 2 ? 'mirror' : 'rotoinversion';
105
+ const kind = proper ? 'rotation' : n === 2 ? 'reflection' : 'rotoinversion';
160
106
  if (n === 2)
161
- return Object.freeze({ kind, order: 2, axis: frozenAxis, timeReversal });
107
+ return Object.freeze({ kind, n: 2, axis: frozenAxis, timeReversal });
162
108
  const sense = dot(axialVector(r), axis) > 0 ? '+' : '-';
163
- return Object.freeze({ kind, order: n, axis: frozenAxis, sense, timeReversal });
109
+ return Object.freeze({ kind, n, axis: frozenAxis, sense, timeReversal });
164
110
  }
165
111
  /**
166
112
  * Each operation of a list described geometrically, in the order of the list: kind, n, the
167
113
  * Cartesian axis (rotation or rotoinversion axis, mirror normal) with its first non-zero component,
168
114
  * in the order x, y, z, positive, and for n ≥ 3 the sense about that axis. The axes are not named
169
115
  * by lattice directions, since the list need not belong to a setting; for a point group given by its
170
- * key, `describeOperations` names them. Throws a RangeError for a matrix that is not orthogonal or
116
+ * key, `describeOperations` names them. Throws a RangeError for an operation without an orthogonal Cartesian matrix (`cartesian`) or
171
117
  * not a crystallographic operation (a rotation part by an angle other than 360°/n, n = 1, 2, 3, 4,
172
118
  * 6), both within `tolerance` (default `EPSILON`, as for `pointGroupOf`), and for an operation that
173
119
  * does not say whether it is combined with time reversal.
174
120
  */
175
121
  export function describeOperationsOf(operations, options) {
176
- const tolerance = toleranceOf(options);
122
+ checkOptions(options, TOLERANCE_KEYS, 'describeOperationsOf');
123
+ const tolerance = toleranceOf(options, 'operations');
124
+ checkCartesianOperations(operations, tolerance);
177
125
  checkTimeReversal(operations);
178
126
  return Object.freeze(operations.map((op, i) => describe(op, i, tolerance)));
179
127
  }
@@ -1 +1 @@
1
- {"version":3,"file":"identify.js","sourceRoot":"","sources":["../../src/pointGroups/identify.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OA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,GAAkB,MAAM,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,eAAe,CAAC;IAC3F,IAAI,CAAC,KAAK,CAAC;QAAE,OAAO,MAAM,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,YAAY,EAAE,CAAC,CAAC;IAClF,MAAM,KAAK,GAAG,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC;IACxD,OAAO,MAAM,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,YAAY,EAAE,CAAC,CAAC;AAC3E,CAAC;AAED;;;;;;;;;GASG;AACH,MAAM,UAAU,oBAAoB,CAClC,UAAyC,EACzC,OAA0B;IAE1B,YAAY,CAAC,OAAO,EAAE,cAAc,EAAE,sBAAsB,CAAC,CAAC;IAC9D,MAAM,SAAS,GAAG,WAAW,CAAC,OAAO,EAAE,YAAY,CAAC,CAAC;IACrD,wBAAwB,CAAC,UAAU,EAAE,SAAS,CAAC,CAAC;IAChD,iBAAiB,CAAC,UAAU,CAAC,CAAC;IAC9B,OAAO,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC,QAAQ,CAAC,EAAE,EAAE,CAAC,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC;AAC9E,CAAC"}
@@ -1,22 +1,23 @@
1
1
  /**
2
- * The order of the operations: as ITA numbers them. ITA bases the sequence of the coordinate
2
+ * ITA's selected generators of every point-group setting it lists, the data from which
3
+ * `itcData.ts` builds the operations in ITA's order. ITA bases the sequence of the coordinate
3
4
  * triplets on its "Generators selected" (Vol. A, 5th ed. 2006, § 2.2.11 (iv), p. 27; transcribed
4
5
  * for the symmorphic P group of every setting it lists in references/itc/vol-a-2006-symmetry-operations.md)
5
6
  * and takes the next generator as soon as a power of the current one lies in the group generated
6
- * so far (§ 8.3.5, p. 737). So, starting from the identity, each generator g extends that group H
7
- * by gH, g²H, … until a power of g lies in H. This gives ITA's numbering of the general
8
- * position (ITA 6th ed. Table 3.2.3.2), as `elements.reference.test.ts` checks for all 40 settings.
9
- * The generators are the printed triplets of Table 3.2.3.2, as matrices W in the conventional basis
10
- * (x̃ = W x); docs/conventions.md, "Order of the operations".
7
+ * so far (§ 8.3.5, p. 737). This gives ITA's numbering of the general position (ITA 6th ed. Table
8
+ * 3.2.3.2), as `itcData.reference.test.ts` checks for all 45 entries (5 with rhombohedral axes). The generators are the
9
+ * printed triplets of Table 3.2.3.2, as matrices W in the conventional basis (x̃ = W x);
10
+ * docs/conventions.md, "Order of the operations".
11
11
  */
12
- import { type CrystalSystem } from '../lattice.js';
13
- import { type Operation } from '../operations.js';
14
- /** ITA's selected generators of a setting as Cartesian operations, in printed order, or undefined if ITA does not list it. */
15
- export declare function itaGeneratorOperations(key: string, setting: number, system: CrystalSystem): Operation[] | undefined;
12
+ /** An integer matrix W in the conventional basis, rows as printed in a coordinate triplet. */
13
+ export type IntMat3 = readonly [
14
+ readonly [number, number, number],
15
+ readonly [number, number, number],
16
+ readonly [number, number, number]
17
+ ];
16
18
  /**
17
- * The operations of a setting in ITA's order, built coset by coset from ITA's generators, or
18
- * undefined if ITA does not list the setting. `closed` (the closure of the stored generators) only
19
- * bounds the loop; the caller checks that the result is the same set.
19
+ * ITA's selected generators per setting (`key|full ITC symbol of the setting`, with `|rhombohedral`
20
+ * for rhombohedral axes), in printed order (identity and translations left out).
20
21
  */
21
- export declare function inItaOrder(key: string, setting: number, system: CrystalSystem, closed: readonly Operation[]): Operation[] | undefined;
22
+ export declare const ITA_GENERATORS: Readonly<Record<string, readonly IntMat3[]>>;
22
23
  //# sourceMappingURL=itaOrder.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"itaOrder.d.ts","sourceRoot":"","sources":["../../src/pointGroups/itaOrder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAGH,OAAO,EAA+B,KAAK,aAAa,EAAE,MAAM,eAAe,CAAC;AAChF,OAAO,EAA2D,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAqoB3G,8HAA8H;AAC9H,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,GAAG,SAAS,EAAE,GAAG,SAAS,CAEnH;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CACxB,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,aAAa,EACrB,MAAM,EAAE,SAAS,SAAS,EAAE,GAC3B,SAAS,EAAE,GAAG,SAAS,CAazB"}
1
+ {"version":3,"file":"itaOrder.d.ts","sourceRoot":"","sources":["../../src/pointGroups/itaOrder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,8FAA8F;AAC9F,MAAM,MAAM,OAAO,GAAG,SAAS;IAC7B,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC;IACjC,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC;IACjC,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC;CAClC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,cAAc,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,SAAS,OAAO,EAAE,CAAC,CAwqBvE,CAAC"}