symcrys 0.10.1 → 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.
- package/README.md +6 -6
- package/dist/cell.d.ts +19 -16
- package/dist/cell.d.ts.map +1 -1
- package/dist/cell.js +63 -35
- package/dist/cell.js.map +1 -1
- package/dist/checks.d.ts +29 -0
- package/dist/checks.d.ts.map +1 -0
- package/dist/checks.js +79 -0
- package/dist/checks.js.map +1 -0
- package/dist/closure.d.ts +43 -0
- package/dist/closure.d.ts.map +1 -0
- package/dist/closure.js +201 -0
- package/dist/closure.js.map +1 -0
- package/dist/crystalClasses.d.ts +145 -117
- package/dist/crystalClasses.d.ts.map +1 -1
- package/dist/crystalClasses.js +161 -121
- package/dist/crystalClasses.js.map +1 -1
- package/dist/freeze.d.ts +7 -0
- package/dist/freeze.d.ts.map +1 -0
- package/dist/freeze.js +15 -0
- package/dist/freeze.js.map +1 -0
- package/dist/index.d.ts +11 -10
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/dist/indices.d.ts +31 -5
- package/dist/indices.d.ts.map +1 -1
- package/dist/indices.js +104 -13
- package/dist/indices.js.map +1 -1
- package/dist/lattice.d.ts +15 -1
- package/dist/lattice.d.ts.map +1 -1
- package/dist/lattice.js +30 -1
- package/dist/lattice.js.map +1 -1
- package/dist/linalg.d.ts +2 -2
- package/dist/linalg.d.ts.map +1 -1
- package/dist/linalg.js +3 -3
- package/dist/linalg.js.map +1 -1
- package/dist/magnetic.d.ts +12 -10
- package/dist/magnetic.d.ts.map +1 -1
- package/dist/magnetic.js +8 -6
- package/dist/magnetic.js.map +1 -1
- package/dist/notation.d.ts +16 -0
- package/dist/notation.d.ts.map +1 -0
- package/dist/notation.js +66 -0
- package/dist/notation.js.map +1 -0
- package/dist/operations.d.ts +40 -26
- package/dist/operations.d.ts.map +1 -1
- package/dist/operations.js +48 -60
- package/dist/operations.js.map +1 -1
- package/dist/plane.d.ts +141 -79
- package/dist/plane.d.ts.map +1 -1
- package/dist/plane.js +147 -77
- package/dist/plane.js.map +1 -1
- package/dist/pointGroups/crystalForms.d.ts +6 -21
- package/dist/pointGroups/crystalForms.d.ts.map +1 -1
- package/dist/pointGroups/crystalForms.js +9 -16
- package/dist/pointGroups/crystalForms.js.map +1 -1
- package/dist/pointGroups/crystalFormsData.d.ts +4 -1
- package/dist/pointGroups/crystalFormsData.d.ts.map +1 -1
- package/dist/pointGroups/crystalFormsData.js +64 -1
- package/dist/pointGroups/crystalFormsData.js.map +1 -1
- package/dist/pointGroups/elements.d.ts +19 -17
- package/dist/pointGroups/elements.d.ts.map +1 -1
- package/dist/pointGroups/elements.js +65 -83
- package/dist/pointGroups/elements.js.map +1 -1
- package/dist/pointGroups/identify.d.ts +10 -18
- package/dist/pointGroups/identify.d.ts.map +1 -1
- package/dist/pointGroups/identify.js +27 -79
- package/dist/pointGroups/identify.js.map +1 -1
- package/dist/pointGroups/itaOrder.d.ts +15 -14
- package/dist/pointGroups/itaOrder.d.ts.map +1 -1
- package/dist/pointGroups/itaOrder.js +116 -94
- package/dist/pointGroups/itaOrder.js.map +1 -1
- package/dist/pointGroups/itcData.d.ts +96 -0
- package/dist/pointGroups/itcData.d.ts.map +1 -0
- package/dist/pointGroups/itcData.js +336 -0
- package/dist/pointGroups/itcData.js.map +1 -0
- package/dist/pointGroups/itcMagneticData.d.ts +55 -0
- package/dist/pointGroups/itcMagneticData.d.ts.map +1 -0
- package/dist/pointGroups/itcMagneticData.js +172 -0
- package/dist/pointGroups/itcMagneticData.js.map +1 -0
- package/dist/pointGroups/keys.d.ts +32 -0
- package/dist/pointGroups/keys.d.ts.map +1 -0
- package/dist/pointGroups/keys.js +120 -0
- package/dist/pointGroups/keys.js.map +1 -0
- package/dist/pointGroups/magneticSymbols.d.ts +6 -5
- package/dist/pointGroups/magneticSymbols.d.ts.map +1 -1
- package/dist/pointGroups/magneticSymbols.js +15 -12
- package/dist/pointGroups/magneticSymbols.js.map +1 -1
- package/dist/pointGroups/orbits.d.ts +23 -42
- package/dist/pointGroups/orbits.d.ts.map +1 -1
- package/dist/pointGroups/orbits.js +20 -62
- package/dist/pointGroups/orbits.js.map +1 -1
- package/dist/pointGroups/pointGroups.d.ts +135 -67
- package/dist/pointGroups/pointGroups.d.ts.map +1 -1
- package/dist/pointGroups/pointGroups.js +409 -244
- package/dist/pointGroups/pointGroups.js.map +1 -1
- package/dist/pointGroups/properties.d.ts +21 -22
- package/dist/pointGroups/properties.d.ts.map +1 -1
- package/dist/pointGroups/properties.js +40 -37
- package/dist/pointGroups/properties.js.map +1 -1
- package/dist/pointGroups/seitzData.d.ts +26 -0
- package/dist/pointGroups/seitzData.d.ts.map +1 -0
- package/dist/pointGroups/seitzData.js +130 -0
- package/dist/pointGroups/seitzData.js.map +1 -0
- package/dist/pointGroups/wyckoff.d.ts +70 -40
- package/dist/pointGroups/wyckoff.d.ts.map +1 -1
- package/dist/pointGroups/wyckoff.js +98 -91
- package/dist/pointGroups/wyckoff.js.map +1 -1
- package/dist/pointGroups/wyckoffData.d.ts +7 -4
- package/dist/pointGroups/wyckoffData.d.ts.map +1 -1
- package/dist/pointGroups/wyckoffData.js +789 -168
- package/dist/pointGroups/wyckoffData.js.map +1 -1
- package/dist/siteSymmetry.d.ts +8 -16
- package/dist/siteSymmetry.d.ts.map +1 -1
- package/dist/siteSymmetry.js +34 -24
- package/dist/siteSymmetry.js.map +1 -1
- package/dist/spaceGroups/affine.d.ts.map +1 -1
- package/dist/spaceGroups/affine.js +3 -2
- package/dist/spaceGroups/affine.js.map +1 -1
- package/dist/spaceGroups/cell.d.ts +43 -31
- package/dist/spaceGroups/cell.d.ts.map +1 -1
- package/dist/spaceGroups/cell.js +173 -85
- package/dist/spaceGroups/cell.js.map +1 -1
- package/dist/spaceGroups/describe.d.ts +12 -10
- package/dist/spaceGroups/describe.d.ts.map +1 -1
- package/dist/spaceGroups/describe.js +11 -10
- package/dist/spaceGroups/describe.js.map +1 -1
- package/dist/spaceGroups/planeGroupData.d.ts +1 -1
- package/dist/spaceGroups/planeGroupData.d.ts.map +1 -1
- package/dist/spaceGroups/planeGroupData.js +8 -8
- package/dist/spaceGroups/planeGroupData.js.map +1 -1
- package/dist/spaceGroups/planeGroups.d.ts.map +1 -1
- package/dist/spaceGroups/planeGroups.js +2 -1
- package/dist/spaceGroups/planeGroups.js.map +1 -1
- package/dist/spaceGroups/positions.d.ts +48 -19
- package/dist/spaceGroups/positions.d.ts.map +1 -1
- package/dist/spaceGroups/positions.js +166 -67
- package/dist/spaceGroups/positions.js.map +1 -1
- package/dist/tensors/propertyTable.d.ts +3 -1
- package/dist/tensors/propertyTable.d.ts.map +1 -1
- package/dist/tensors/propertyTable.js +17 -10
- package/dist/tensors/propertyTable.js.map +1 -1
- package/dist/tensors/rowEchelon.d.ts +3 -3
- package/dist/tensors/rowEchelon.d.ts.map +1 -1
- package/dist/tensors/rowEchelon.js +4 -4
- package/dist/tensors/rowEchelon.js.map +1 -1
- package/dist/tensors/tensorForm.d.ts +75 -34
- package/dist/tensors/tensorForm.d.ts.map +1 -1
- package/dist/tensors/tensorForm.js +171 -67
- package/dist/tensors/tensorForm.js.map +1 -1
- package/dist/tensors/tensorProperties.d.ts +10 -9
- package/dist/tensors/tensorProperties.d.ts.map +1 -1
- package/dist/tensors/tensorProperties.js +22 -12
- package/dist/tensors/tensorProperties.js.map +1 -1
- package/dist/tolerances.d.ts +56 -1
- package/dist/tolerances.d.ts.map +1 -1
- package/dist/tolerances.js +51 -1
- package/dist/tolerances.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/src/cell.ts +78 -51
- package/src/checks.ts +84 -0
- package/src/closure.ts +214 -0
- package/src/crystalClasses.ts +232 -157
- package/src/freeze.ts +14 -0
- package/src/index.ts +21 -10
- package/src/indices.ts +108 -18
- package/src/lattice.ts +41 -1
- package/src/linalg.ts +3 -3
- package/src/magnetic.ts +14 -9
- package/src/notation.ts +73 -0
- package/src/operations.ts +78 -71
- package/src/plane.ts +253 -127
- package/src/pointGroups/crystalForms.ts +11 -44
- package/src/pointGroups/crystalFormsData.ts +66 -1
- package/src/pointGroups/elements.ts +82 -92
- package/src/pointGroups/identify.ts +38 -97
- package/src/pointGroups/itaOrder.ts +117 -101
- package/src/pointGroups/itcData.ts +404 -0
- package/src/pointGroups/itcMagneticData.ts +206 -0
- package/src/pointGroups/keys.ts +144 -0
- package/src/pointGroups/magneticSymbols.ts +18 -17
- package/src/pointGroups/orbits.ts +41 -89
- package/src/pointGroups/pointGroups.ts +540 -297
- package/src/pointGroups/properties.ts +44 -40
- package/src/pointGroups/seitzData.ts +147 -0
- package/src/pointGroups/wyckoff.ts +137 -112
- package/src/pointGroups/wyckoffData.ts +793 -170
- package/src/siteSymmetry.ts +43 -40
- package/src/spaceGroups/affine.ts +3 -2
- package/src/spaceGroups/cell.ts +227 -116
- package/src/spaceGroups/describe.ts +22 -19
- package/src/spaceGroups/planeGroupData.ts +9 -9
- package/src/spaceGroups/planeGroups.ts +2 -1
- package/src/spaceGroups/positions.ts +202 -78
- package/src/tensors/propertyTable.ts +26 -14
- package/src/tensors/rowEchelon.ts +4 -3
- package/src/tensors/tensorForm.ts +258 -88
- package/src/tensors/tensorProperties.ts +34 -14
- package/src/tolerances.ts +66 -1
- package/src/version.ts +1 -1
- package/dist/pointGroups/data.d.ts +0 -75
- package/dist/pointGroups/data.d.ts.map +0 -1
- package/dist/pointGroups/data.js +0 -212
- package/dist/pointGroups/data.js.map +0 -1
- package/dist/pointGroups/magneticData.d.ts +0 -66
- package/dist/pointGroups/magneticData.d.ts.map +0 -1
- package/dist/pointGroups/magneticData.js +0 -184
- package/dist/pointGroups/magneticData.js.map +0 -1
- package/dist/spaceGroups/snap.d.ts +0 -20
- package/dist/spaceGroups/snap.d.ts.map +0 -1
- package/dist/spaceGroups/snap.js +0 -103
- package/dist/spaceGroups/snap.js.map +0 -1
- package/src/pointGroups/data.ts +0 -305
- package/src/pointGroups/magneticData.ts +0 -328
- 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 {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
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 =
|
|
25
|
-
|
|
26
|
-
|
|
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.
|
|
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.
|
|
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
|
|
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
|
-
|
|
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
|
|
127
|
-
const ops = groupOperations(key, {
|
|
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.
|
|
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.
|
|
153
|
-
const proper = det(op.
|
|
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',
|
|
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 ? '
|
|
105
|
+
const kind = proper ? 'rotation' : n === 2 ? 'reflection' : 'rotoinversion';
|
|
160
106
|
if (n === 2)
|
|
161
|
-
return Object.freeze({ kind,
|
|
107
|
+
return Object.freeze({ kind, n: 2, axis: frozenAxis, timeReversal });
|
|
162
108
|
const sense = dot(axialVector(r), axis) > 0 ? '+' : '-';
|
|
163
|
-
return Object.freeze({ kind,
|
|
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
|
|
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
|
-
|
|
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,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"identify.js","sourceRoot":"","sources":["../../src/pointGroups/identify.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5D,OAAO,EAAE,GAAG,EAAE,KAAK,EAAwB,MAAM,cAAc,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,EAAE,wBAAwB,EAAE,iBAAiB,EAA2B,MAAM,kBAAkB,CAAC;AACxG,OAAO,EAAE,OAAO,EAAE,WAAW,EAAyB,MAAM,kBAAkB,CAAC;AAC/E,OAAO,EAAE,WAAW,EAAE,YAAY,EAAsB,MAAM,eAAe,CAAC;AAC9E,OAAO,EACL,yBAAyB,EACzB,UAAU,IAAI,eAAe,EAC7B,QAAQ,GAET,MAAM,kBAAkB,CAAC;AAuC1B,2DAA2D;AAC3D,MAAM,SAAS,GAAG,EAAE,CAAC;AAErB;;;GAGG;AACH,MAAM,cAAc,GAAG,CAAC,SAAiB,EAAU,EAAE,CAAC,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;AAEvF,MAAM,IAAI,GAAG,UAAU,CAAC;AAExB,iHAAiH;AACjH,MAAM,KAAK,GAAG,CAAC,GAAkC,EAAE,SAAiB,EAAoC,EAAE,CACxG,WAAW,CAAC,GAAG,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC;AAEzC;;;;;GAKG;AACH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,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
|
-
*
|
|
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).
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
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
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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
|
-
*
|
|
18
|
-
*
|
|
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
|
|
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;
|
|
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"}
|