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.
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 +145 -117
  15. package/dist/crystalClasses.d.ts.map +1 -1
  16. package/dist/crystalClasses.js +161 -121
  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 +8 -16
  115. package/dist/siteSymmetry.d.ts.map +1 -1
  116. package/dist/siteSymmetry.js +34 -24
  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 +3 -3
  145. package/dist/tensors/rowEchelon.d.ts.map +1 -1
  146. package/dist/tensors/rowEchelon.js +4 -4
  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 +171 -67
  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 +232 -157
  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 -71
  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 +43 -40
  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 +26 -14
  199. package/src/tensors/rowEchelon.ts +4 -3
  200. package/src/tensors/tensorForm.ts +258 -88
  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
@@ -23,7 +23,7 @@ export interface TensorProperty {
23
23
  export declare const TENSOR_PROPERTIES: Readonly<{
24
24
  /** Spontaneous polarization: a time-even polar vector. */
25
25
  pyroelectric: TensorProperty;
26
- /** Ferroaxial order: a time-even axial vector. */
26
+ /** Ferroaxial order: a time-even axial vector (not a term of ITC). */
27
27
  ferroaxial: TensorProperty;
28
28
  /** The piezoelectric effect (and second-harmonic generation, which has the same tensor): polar, rank 3, symmetric in j, k. */
29
29
  piezoelectric: TensorProperty;
@@ -31,6 +31,8 @@ export declare const TENSOR_PROPERTIES: Readonly<{
31
31
  gyrotropic: TensorProperty;
32
32
  /** Spontaneous magnetization: a time-odd axial vector (magnetic API only). */
33
33
  ferromagnetic: TensorProperty;
34
+ /** A spontaneous toroidal moment: a time-odd polar vector (magnetic API only). */
35
+ ferrotoroidic: TensorProperty;
34
36
  /** The linear magnetoelectric effect: a time-odd axial tensor of rank 2 (magnetic API only). */
35
37
  magnetoelectric: TensorProperty;
36
38
  /** The piezomagnetic effect: a time-odd axial tensor of rank 3, symmetric in j, k (magnetic API only). */
@@ -1 +1 @@
1
- {"version":3,"file":"propertyTable.d.ts","sourceRoot":"","sources":["../../src/tensors/propertyTable.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAElD,0FAA0F;AAC1F,MAAM,WAAW,cAAc;IAC7B,iFAAiF;IACjF,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC;IAC1B,gDAAgD;IAChD,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,yDAAyD;IACzD,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AAKD;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB;IAC5B,0DAA0D;;IAM1D,kDAAkD;;IAMlD,8HAA8H;;IAM9H,8DAA8D;;IAM9D,8EAA8E;;IAM9E,gGAAgG;;IAMhG,0GAA0G;;EAMjE,CAAC;AAE5C,wDAAwD;AACxD,MAAM,MAAM,kBAAkB,GAAG,MAAM,OAAO,iBAAiB,CAAC;AAEhE,+EAA+E;AAC/E,eAAO,MAAM,qBAAqB,EAAoD,SAAS,kBAAkB,EAAE,CAAC;AAEpH,sFAAsF;AACtF,wBAAgB,MAAM,CAAC,UAAU,EAAE,UAAU,GAAG,kBAAkB,GAAG,UAAU,CAQ9E"}
1
+ {"version":3,"file":"propertyTable.d.ts","sourceRoot":"","sources":["../../src/tensors/propertyTable.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAElD,0FAA0F;AAC1F,MAAM,WAAW,cAAc;IAC7B,iFAAiF;IACjF,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC;IAC1B,gDAAgD;IAChD,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,yDAAyD;IACzD,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AAKD;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB;IAC5B,0DAA0D;;IAM1D,sEAAsE;;IAMtE,8HAA8H;;IAM9H,8DAA8D;;IAM9D,8EAA8E;;IAM9E,kFAAkF;;IAMlF,gGAAgG;;IAMhG,0GAA0G;;EAMjE,CAAC;AAE5C,wDAAwD;AACxD,MAAM,MAAM,kBAAkB,GAAG,MAAM,OAAO,iBAAiB,CAAC;AAEhE,+EAA+E;AAC/E,eAAO,MAAM,qBAAqB,EAAoD,SAAS,kBAAkB,EAAE,CAAC;AAEpH,sFAAsF;AACtF,wBAAgB,MAAM,CAAC,UAAU,EAAE,UAAU,GAAG,kBAAkB,GAAG,UAAU,CAa9E"}
@@ -4,6 +4,7 @@
4
4
  * (`TensorSpec`) and the print source of that definition. `allowsProperty` and `tensorForm` look a
5
5
  * name up here (docs/conventions.md, "Named tensor properties").
6
6
  */
7
+ import { shown } from '../checks.js';
7
8
  const property = (spec, description, source) => Object.freeze({ spec: Object.freeze(spec), description, source });
8
9
  /**
9
10
  * The named tensor properties. For each name, the tensor that describes the property, what it is,
@@ -13,28 +14,34 @@ const property = (spec, description, source) => Object.freeze({ spec: Object.fre
13
14
  */
14
15
  export const TENSOR_PROPERTIES = Object.freeze({
15
16
  /** Spontaneous polarization: a time-even polar vector. */
16
- pyroelectric: property({ rank: 1, parity: 'polar', timeParity: 'i', intrinsic: 'none' }, 'Spontaneous electric polarization, which changes with temperature: a polar vector p_i.', 'ITC Vol. D (2013), § 1.1.4.4.2, p. 12; classes: ITA (2016) Table 3.2.2.1, p. 738'),
17
- /** Ferroaxial order: a time-even axial vector. */
18
- ferroaxial: property({ rank: 1, parity: 'axial', timeParity: 'i', intrinsic: 'none' }, 'Ferroaxial (ferro-rotational) order, e.g. a net rotation of structural units about an axis: an axial vector A_i.', 'Hlinka, Privratska, Ondrejkovic & Janovec, Phys. Rev. Lett. 116, 177602 (2016); classes: Birss (1966), Tables 4a and 4c, pp. 56–58'),
17
+ pyroelectric: property({ rank: 1, kind: 'polar', timeParity: 'even', intrinsic: 'none' }, 'Spontaneous electric polarization, which changes with temperature: a polar vector p_i.', 'ITC Vol. D (2013), § 1.1.4.4.2, p. 12; classes: ITA (2016) Table 3.2.2.1, p. 738'),
18
+ /** Ferroaxial order: a time-even axial vector (not a term of ITC). */
19
+ ferroaxial: property({ rank: 1, kind: 'axial', timeParity: 'even', intrinsic: 'none' }, 'Ferroaxial (ferro-rotational) order, e.g. a net rotation of structural units about an axis: an axial vector A_i, the axial toroidal moment (Jahn symbol eV).', 'Not in ITC: Hlinka, Privratska, Ondrejkovic & Janovec, Phys. Rev. Lett. 116, 177602 (2016); Gallego et al., Acta Cryst. A75, 438 (2019), p. 440 (axial toroidal moment, type eV); classes: Birss (1966), Tables 4a and 4c, pp. 56–58'),
19
20
  /** The piezoelectric effect (and second-harmonic generation, which has the same tensor): polar, rank 3, symmetric in j, k. */
20
- piezoelectric: property({ rank: 3, parity: 'polar', timeParity: 'i', intrinsic: 'jk' }, 'Electric polarization linear in stress, P_i = d_ijk T_jk: a polar tensor of rank 3, symmetric in j, k.', 'ITC Vol. D (2013), § 1.1.4.4.3, p. 12, and § 1.1.4.10.1, eqs. (1.1.4.5), (1.1.4.7), p. 24; classes: ITA (2016) Table 3.2.2.1, p. 738'),
21
+ piezoelectric: property({ rank: 3, kind: 'polar', timeParity: 'even', intrinsic: 'symmetric-last-pair' }, 'Electric polarization linear in stress, P_i = d_ijk T_jk: a polar tensor of rank 3, symmetric in j, k.', 'ITC Vol. D (2013), § 1.1.4.4.3, p. 12, and § 1.1.4.10.1, eqs. (1.1.4.5), (1.1.4.7), p. 24; classes: ITA (2016) Table 3.2.2.1, p. 738'),
21
22
  /** Optical activity: the symmetric axial tensor of rank 2. */
22
- gyrotropic: property({ rank: 2, parity: 'axial', timeParity: 'i', intrinsic: 'ij' }, 'Optical activity (optical rotation), G = g_ij α_i α_j: the symmetric part of the axial gyration tensor of rank 2.', 'ITC Vol. D (2013), § 1.1.4.10.7.2, p. 30; classes: ITA (2016) Table 3.2.2.1, p. 738'),
23
+ gyrotropic: property({ rank: 2, kind: 'axial', timeParity: 'even', intrinsic: 'symmetric-first-pair' }, 'Optical activity (optical rotation), G = g_ij α_i α_j: the symmetric part of the axial gyration tensor of rank 2.', 'ITC Vol. D (2013), § 1.1.4.10.7.2, p. 30; classes: ITA (2016) Table 3.2.2.1, p. 738'),
23
24
  /** Spontaneous magnetization: a time-odd axial vector (magnetic API only). */
24
- ferromagnetic: property({ rank: 1, parity: 'axial', timeParity: 'c', intrinsic: 'none' }, 'Spontaneous magnetization M_s (ferromagnets, ferrimagnets, weak ferromagnets): an axial vector that changes sign under time reversal.', 'ITC Vol. D (2013), § 1.5.2.1 with Table 1.5.2.4, p. 113'),
25
+ ferromagnetic: property({ rank: 1, kind: 'axial', timeParity: 'odd', intrinsic: 'none' }, 'Spontaneous magnetization M_s (ferromagnets, ferrimagnets, weak ferromagnets): an axial vector that changes sign under time reversal.', 'ITC Vol. D (2013), § 1.5.2.1 with Table 1.5.2.4, p. 113'),
26
+ /** A spontaneous toroidal moment: a time-odd polar vector (magnetic API only). */
27
+ ferrotoroidic: property({ rank: 1, kind: 'polar', timeParity: 'odd', intrinsic: 'none' }, 'Spontaneous toroidal moment T_i (ferrotoroidic order): a polar vector that changes sign under time reversal (Jahn symbol aV); allowed exactly where the magnetoelectric tensor need not be symmetric.', 'ITC Vol. D (2013), § 1.5.4.3, p. 128 (the term), and § 1.5.8.1, footnote 3, p. 140 (the 31 groups of Table 1.5.8.1 whose magnetoelectric tensor need not be symmetric); Gallego et al., Acta Cryst. A75, 438 (2019), p. 440 (polar toroidal moment, type aV)'),
25
28
  /** The linear magnetoelectric effect: a time-odd axial tensor of rank 2 (magnetic API only). */
26
- magnetoelectric: property({ rank: 2, parity: 'axial', timeParity: 'c', intrinsic: 'none' }, 'Linear magnetoelectric effect, P_i = α_ij H_j: an axial tensor of rank 2 that changes sign under time reversal.', 'ITC Vol. D (2013), § 1.5.8, eqs. (1.5.8.2), (1.5.8.3), p. 139, and § 1.5.8.1 with Table 1.5.8.1, pp. 139–140'),
29
+ magnetoelectric: property({ rank: 2, kind: 'axial', timeParity: 'odd', intrinsic: 'none' }, 'Linear magnetoelectric effect, P_i = α_ij H_j: an axial tensor of rank 2 that changes sign under time reversal.', 'ITC Vol. D (2013), § 1.5.8, eqs. (1.5.8.2), (1.5.8.3), p. 139, and § 1.5.8.1 with Table 1.5.8.1, pp. 139–140'),
27
30
  /** The piezomagnetic effect: a time-odd axial tensor of rank 3, symmetric in j, k (magnetic API only). */
28
- piezomagnetic: property({ rank: 3, parity: 'axial', timeParity: 'c', intrinsic: 'jk' }, 'Magnetization linear in stress, M_i = Λ_ijk T_jk: an axial tensor of rank 3, symmetric in j, k, that changes sign under time reversal.', 'ITC Vol. D (2013), § 1.5.7, eq. (1.5.7.2), and § 1.5.7.1 with Table 1.5.7.1, pp. 134–135'),
31
+ piezomagnetic: property({ rank: 3, kind: 'axial', timeParity: 'odd', intrinsic: 'symmetric-last-pair' }, 'Magnetization linear in stress, M_i = Λ_ijk T_jk: an axial tensor of rank 3, symmetric in j, k, that changes sign under time reversal.', 'ITC Vol. D (2013), § 1.5.7, eq. (1.5.7.2), and § 1.5.7.1 with Table 1.5.7.1, pp. 134–135'),
29
32
  });
30
33
  /** The names of the tensor properties, in the order of `TENSOR_PROPERTIES`. */
31
34
  export const TENSOR_PROPERTY_NAMES = Object.freeze(Object.keys(TENSOR_PROPERTIES));
32
35
  /** The specification behind a property name; a specification is returned as it is. */
33
36
  export function specOf(specOrName) {
34
- if (typeof specOrName !== 'string')
37
+ if (typeof specOrName !== 'string') {
38
+ if (typeof specOrName !== 'object' || specOrName === null || Array.isArray(specOrName)) {
39
+ throw new RangeError(`A tensor is given by its specification { rank, kind, timeParity, intrinsic } or the name of a property, not ${shown(specOrName)}`);
40
+ }
35
41
  return specOrName;
42
+ }
36
43
  if (!Object.hasOwn(TENSOR_PROPERTIES, specOrName)) {
37
- throw new RangeError(`Unknown tensor property: ${JSON.stringify(specOrName)} (known: ${TENSOR_PROPERTY_NAMES.join(', ')})`);
44
+ throw new RangeError(`Unknown tensor property: ${shown(specOrName)} (known: ${TENSOR_PROPERTY_NAMES.join(', ')})`);
38
45
  }
39
46
  return TENSOR_PROPERTIES[specOrName].spec;
40
47
  }
@@ -1 +1 @@
1
- {"version":3,"file":"propertyTable.js","sourceRoot":"","sources":["../../src/tensors/propertyTable.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAcH,MAAM,QAAQ,GAAG,CAAC,IAAgB,EAAE,WAAmB,EAAE,MAAc,EAAkB,EAAE,CACzF,MAAM,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,WAAW,EAAE,MAAM,EAAE,CAAC,CAAC;AAEpE;;;;;GAKG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,MAAM,CAAC,MAAM,CAAC;IAC7C,0DAA0D;IAC1D,YAAY,EAAE,QAAQ,CACpB,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,EAAE,EAChE,wFAAwF,EACxF,kFAAkF,CACnF;IACD,kDAAkD;IAClD,UAAU,EAAE,QAAQ,CAClB,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,EAAE,EAChE,kHAAkH,EAClH,oIAAoI,CACrI;IACD,8HAA8H;IAC9H,aAAa,EAAE,QAAQ,CACrB,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,GAAG,EAAE,SAAS,EAAE,IAAI,EAAE,EAC9D,wGAAwG,EACxG,sIAAsI,CACvI;IACD,8DAA8D;IAC9D,UAAU,EAAE,QAAQ,CAClB,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,U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U,CAAC,4BAA4B,KAAK,CAAC,UAAU,CAAC,YAAY,qBAAqB,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACrH,CAAC;IACD,OAAO,iBAAiB,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC;AAC5C,CAAC"}
@@ -12,10 +12,10 @@ export declare const ELIMINATION_EPSILON = 1e-12;
12
12
  * row's pivot, pivots ascending. The rows are unique for a given span, so the pivots name the free
13
13
  * parameters unambiguously: each is the lowest-index component that is independent of the ones
14
14
  * before it. For operations with float noise a row can keep entries too small to be a pivot
15
- * (below `PIVOT_EPSILON`) before its pivot, so the pivots are returned rather than read off the
16
- * rows (#88); entries below `ELIMINATION_EPSILON` are set to zero.
15
+ * (below `PIVOT_EPSILON`, or `pivotThreshold`) before its pivot, so the pivots are returned rather
16
+ * than read off the rows (#88); entries below `ELIMINATION_EPSILON` are set to zero.
17
17
  */
18
- export declare function rowEchelonWithPivots(vectors: readonly (readonly number[])[], dim: number): {
18
+ export declare function rowEchelonWithPivots(vectors: readonly (readonly number[])[], dim: number, pivotThreshold?: number): {
19
19
  rows: number[][];
20
20
  pivots: number[];
21
21
  };
@@ -1 +1 @@
1
- {"version":3,"file":"rowEchelon.d.ts","sourceRoot":"","sources":["../../src/tensors/rowEchelon.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,sGAAsG;AACtG,eAAO,MAAM,aAAa,OAAO,CAAC;AAElC,0FAA0F;AAC1F,eAAO,MAAM,mBAAmB,QAAQ,CAAC;AAEzC;;;;;;;;GAQG;AACH,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,SAAS,CAAC,SAAS,MAAM,EAAE,CAAC,EAAE,EACvC,GAAG,EAAE,MAAM,GACV;IAAE,IAAI,EAAE,MAAM,EAAE,EAAE,CAAC;IAAC,MAAM,EAAE,MAAM,EAAE,CAAA;CAAE,CA2BxC;AAED,qHAAqH;AACrH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,SAAS,CAAC,SAAS,MAAM,EAAE,CAAC,EAAE,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,EAAE,CAElG;AAED,+EAA+E;AAC/E,wBAAgB,IAAI,CAAC,OAAO,EAAE,SAAS,CAAC,SAAS,MAAM,EAAE,CAAC,EAAE,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAEjF"}
1
+ {"version":3,"file":"rowEchelon.d.ts","sourceRoot":"","sources":["../../src/tensors/rowEchelon.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,sGAAsG;AACtG,eAAO,MAAM,aAAa,OAAO,CAAC;AAElC,0FAA0F;AAC1F,eAAO,MAAM,mBAAmB,QAAQ,CAAC;AAEzC;;;;;;;;GAQG;AACH,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,SAAS,CAAC,SAAS,MAAM,EAAE,CAAC,EAAE,EACvC,GAAG,EAAE,MAAM,EACX,cAAc,SAAgB,GAC7B;IAAE,IAAI,EAAE,MAAM,EAAE,EAAE,CAAC;IAAC,MAAM,EAAE,MAAM,EAAE,CAAA;CAAE,CA2BxC;AAED,qHAAqH;AACrH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,SAAS,CAAC,SAAS,MAAM,EAAE,CAAC,EAAE,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,EAAE,CAElG;AAED,+EAA+E;AAC/E,wBAAgB,IAAI,CAAC,OAAO,EAAE,SAAS,CAAC,SAAS,MAAM,EAAE,CAAC,EAAE,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAEjF"}
@@ -12,10 +12,10 @@ export const ELIMINATION_EPSILON = 1e-12;
12
12
  * row's pivot, pivots ascending. The rows are unique for a given span, so the pivots name the free
13
13
  * parameters unambiguously: each is the lowest-index component that is independent of the ones
14
14
  * before it. For operations with float noise a row can keep entries too small to be a pivot
15
- * (below `PIVOT_EPSILON`) before its pivot, so the pivots are returned rather than read off the
16
- * rows (#88); entries below `ELIMINATION_EPSILON` are set to zero.
15
+ * (below `PIVOT_EPSILON`, or `pivotThreshold`) before its pivot, so the pivots are returned rather
16
+ * than read off the rows (#88); entries below `ELIMINATION_EPSILON` are set to zero.
17
17
  */
18
- export function rowEchelonWithPivots(vectors, dim) {
18
+ export function rowEchelonWithPivots(vectors, dim, pivotThreshold = PIVOT_EPSILON) {
19
19
  const m = vectors.map((v) => Array.from(v));
20
20
  const pivots = [];
21
21
  let row = 0;
@@ -24,7 +24,7 @@ export function rowEchelonWithPivots(vectors, dim) {
24
24
  for (let r = row + 1; r < m.length; r++)
25
25
  if (Math.abs(m[r][c]) > Math.abs(m[pivot][c]))
26
26
  pivot = r;
27
- if (Math.abs(m[pivot][c]) < PIVOT_EPSILON)
27
+ if (Math.abs(m[pivot][c]) < pivotThreshold)
28
28
  continue;
29
29
  [m[row], m[pivot]] = [m[pivot], m[row]];
30
30
  const p = m[row][c];
@@ -1 +1 @@
1
- {"version":3,"file":"rowEchelon.js","sourceRoot":"","sources":["../../src/tensors/rowEchelon.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,sGAAsG;AACtG,MAAM,CAAC,MAAM,aAAa,GAAG,IAAI,CAAC;AAElC,0FAA0F;AAC1F,MAAM,CAAC,MAAM,mBAAmB,GAAG,KAAK,CAAC;AAEzC;;;;;;;;GAQG;AACH,MAAM,UAAU,oBAAoB,CAClC,OAAuC,EACvC,GAAW;IAEX,MAAM,CAAC,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;IAC5C,MAAM,MAAM,GAAa,EAAE,CAAC;IAC5B,IAAI,GAAG,GAAG,CAAC,CAAC;IACZ,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,IAAI,GAAG,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QAC/C,IAAI,KAAK,GAAG,GAAG,CAAC;QAChB,KAAK,IAAI,CA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U,iBAAiB,CAAC,OAAuC,EAAE,GAAW;IACpF,OAAO,oBAAoB,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC,IAAI,CAAC;AACjD,CAAC;AAED,+EAA+E;AAC/E,MAAM,UAAU,IAAI,CAAC,OAAuC,EAAE,GAAW;IACvE,OAAO,iBAAiB,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC,MAAM,CAAC;AAChD,CAAC"}
@@ -10,86 +10,127 @@
10
10
  * `tensorProjection.ts`, `linalg.ts`, revision 2be5fe3).
11
11
  */
12
12
  import { type Mat3 } from '../linalg.js';
13
- import { type Operation } from '../operations.js';
13
+ import { type CartesianOperation } from '../operations.js';
14
+ import { type IdealGroup } from '../closure.js';
14
15
  import { type MagneticPointGroupKey, type SettingOptions } from '../pointGroups/pointGroups.js';
15
16
  import { type TensorPropertyName } from './propertyTable.js';
17
+ import { type ToleranceOptions } from '../tolerances.js';
16
18
  /** Rank of a tensor: 0 (scalar) to 4. */
17
19
  export type TensorRank = 0 | 1 | 2 | 3 | 4;
18
- /** `'polar'`: transforms with R; `'axial'`: with det(R)·R (pseudotensor). */
19
- export type TensorParity = 'polar' | 'axial';
20
- /** `'i'`: time-even (invariant under time reversal); `'c'`: time-odd (changes sign). */
21
- export type TimeParity = 'i' | 'c';
22
20
  /**
23
- * Symmetry of the tensor under permutation of its own indices, independent of the crystal:
24
- * `'none'`; `'ij'`: the first two indices are interchangeable; `'jk'`: the last two (for rank 3 the
25
- * index symmetry of second-harmonic generation and the piezoelectric effect); `'ij_kl'` (rank 4):
26
- * each of the two pairs symmetric, the pairs not interchangeable (e.g. electric-quadrupole SHG,
27
- * photoelasticity); `'voigt'` (rank 4): `'ij_kl'` and the pairs interchangeable (elastic
28
- * stiffness). At rank 2, `'ij'` and `'jk'` both mean a symmetric tensor.
21
+ * How the tensor behaves under an improper operation: `'polar'` transforms with R, `'axial'` with
22
+ * det(R)·R (a pseudotensor; the prefix e of its Jahn symbol, e.g. eV for an axial vector). ITC calls the behaviour under inversion "parity", under which a polar
23
+ * vector is odd, so the field is named `kind`.
29
24
  */
30
- export type IntrinsicSymmetry = 'none' | 'ij' | 'jk' | 'ij_kl' | 'voigt';
31
- /** The kind of tensor, as in birss-app. */
25
+ export type TensorKind = 'polar' | 'axial';
26
+ /**
27
+ * How the tensor behaves under time reversal (ITC Vol. D: time-even, time-odd or
28
+ * time-antisymmetric): `'even'` unchanged, `'odd'` changes sign (the prefix a, "magnetic", of its
29
+ * Jahn symbol, e.g. aeV for the magnetization; Gallego et al. (2019), p. 439).
30
+ */
31
+ export type TimeParity = 'even' | 'odd';
32
+ /**
33
+ * Symmetry of the tensor under permutation of its own indices, independent of the crystal, with its
34
+ * Jahn symbol as Gallego et al. write them (_Acta Cryst._ A75, 438 (2019), pp. 439–440, after Jahn
35
+ * (1949): square brackets for a symmetric, curly brackets for an antisymmetric set of indices):
36
+ * - `'none'`: no index symmetry, Vⁿ;
37
+ * - `'symmetric-first-pair'` (rank 2 and above): the first two indices are interchangeable, [V²]V…;
38
+ * - `'symmetric-last-pair'` (rank 2 and above): the last two, V…[V²] (at rank 3 second-harmonic
39
+ * generation and the piezoelectric effect); at rank 2 both mean a symmetric tensor, [V²];
40
+ * - `'symmetric-pairs'` (rank 4): each of the two pairs symmetric, the pairs not interchangeable,
41
+ * [V²][V²] (e.g. electric-quadrupole SHG, photoelasticity; Jahn 1949 writes [V²]²);
42
+ * - `'symmetric-pairs-exchangeable'` (rank 4): in addition the pairs interchangeable, [[V²][V²]]
43
+ * (elastic stiffness, the symmetry Voigt's notation uses; Jahn 1949 writes [[V²]²]);
44
+ * - `'antisymmetric'` (rank 2): t_ij = −t_ji, {V²};
45
+ * - `'totally-symmetric'` (rank 2 and above): every index interchangeable, [Vⁿ] (e.g. second-harmonic
46
+ * generation under Kleinman's condition).
47
+ */
48
+ export type IntrinsicSymmetry = 'none' | 'symmetric-first-pair' | 'symmetric-last-pair' | 'symmetric-pairs' | 'symmetric-pairs-exchangeable' | 'antisymmetric' | 'totally-symmetric';
49
+ /** The kind of tensor (#137 E1, E2). */
32
50
  export interface TensorSpec {
33
51
  /** Number of indices, 0 to 4. */
34
52
  readonly rank: TensorRank;
35
53
  /** `'polar'` or `'axial'`: whether an improper operation changes the sign (factor det R). */
36
- readonly parity: TensorParity;
37
- /** `'i'` (time-even) or `'c'` (time-odd): whether time reversal changes the sign. */
54
+ readonly kind: TensorKind;
55
+ /** `'even'` or `'odd'`: whether time reversal changes the sign. */
38
56
  readonly timeParity: TimeParity;
39
57
  /** The index symmetry of the tensor. */
40
58
  readonly intrinsic: IntrinsicSymmetry;
41
59
  }
42
60
  /**
43
61
  * The form of a tensor under a point group: the subspace of tensors invariant under every
44
- * operation and with the requested index symmetry. Every entry is a plain number; a vector of
45
- * components has length 3^rank (flat index, see the module documentation).
62
+ * operation and with the requested index symmetry. Every entry is a plain number; a component is
63
+ * named by its flat index, the first index slowest (see the module documentation).
46
64
  */
47
65
  export interface TensorForm {
48
66
  /** The rank of the tensor. */
49
67
  readonly rank: TensorRank;
50
68
  /**
51
- * A basis of the allowed tensors in reduced row echelon form: one row per free parameter, with 1
52
- * at the parameter's own component and 0 at every other parameter's component. Every allowed
69
+ * A basis of the allowed tensors in reduced row echelon form: one tensor per free parameter, with
70
+ * 1 at the parameter's own component and 0 at every other parameter's component. Every allowed
53
71
  * tensor is Σₖ pₖ·basis[k], where pₖ is the value of its component `parameters[k]`. Empty if the
54
72
  * tensor vanishes.
55
73
  */
56
74
  readonly basis: readonly (readonly number[])[];
57
75
  /**
58
76
  * The free parameters, as the index lists of their components (e.g. `[0, 1, 1]` for xyy), one per
59
- * basis row and in its order: each is the lowest component independent of those before it.
77
+ * basis tensor and in its order: each is the lowest component independent of those before it.
60
78
  */
61
79
  readonly parameters: readonly (readonly number[])[];
62
80
  /**
63
81
  * The constraints: one row r per component that is not a parameter, in ascending flat index,
64
- * with r·t = 0 for every allowed tensor t. Row c reads t_c − Σₖ basis[k][c]·t_{parameters[k]} = 0;
82
+ * with r·t = 0 for every allowed tensor t, both by flat index. Row c reads
83
+ * t_c − Σₖ b_{k,c}·t_{parameters[k]} = 0, with b_{k,c} the component c of basis[k];
65
84
  * a row with a single 1 says that the component vanishes.
66
85
  */
67
86
  readonly relations: readonly (readonly number[])[];
68
87
  }
88
+ /** A permutation of the indices of a tensor (`out[k] = in[perm[k]]`) with the sign it gives. */
89
+ export interface SignedPermutation {
90
+ readonly perm: readonly number[];
91
+ readonly sign: 1 | -1;
92
+ }
69
93
  /**
70
94
  * The form of a tensor under a point group, a crystal class or a magnetic point group, in the
71
- * requested setting (default: the default setting of the convention, `'itc'` unless given). The
72
- * tensor is given by its specification or by the name of a property in `TENSOR_PROPERTIES`
73
- * (`'piezoelectric'`). The convention matters only through the setting: the same setting index
74
- * gives the same form in both conventions (docs/conventions.md, "Tensors").
95
+ * requested setting (default: the ITC default setting). The tensor is given by its specification
96
+ * or by the name of a property in `TENSOR_PROPERTIES` (`'piezoelectric'`; docs/conventions.md,
97
+ * "Tensors").
75
98
  */
76
99
  export declare function tensorForm(key: MagneticPointGroupKey, spec: TensorSpec | TensorPropertyName, options?: SettingOptions): TensorForm;
77
100
  /**
78
101
  * The form of a tensor under the group generated by `operations`, e.g. the site symmetry of a
79
102
  * surface normal (`siteSymmetry`) or the operations of a distorted crystal. The tensor is given by
80
- * its specification or by the name of a property in `TENSOR_PROPERTIES`. The operations are
81
- * Cartesian and orthogonal, and each says whether it is combined with time reversal
82
- * (`timeReversal`, `true` or `false`); a list that is not closed is closed first. Throws a
83
- * RangeError for a matrix that is not orthogonal and for an operation that does not say whether it
84
- * is combined with time reversal.
103
+ * its specification or by the name of a property in `TENSOR_PROPERTIES`. Each operation is read by
104
+ * its Cartesian matrix (`cartesian`), which must be orthogonal, and each says whether it is
105
+ * combined with time reversal (`timeReversal`, `true` or `false`). The list is closed into a group
106
+ * within the tolerance, and that group is made exact before the form is computed, so that matrices
107
+ * with rounding errors (e.g. rounded to 6 decimals) give the form of the exact group, with its
108
+ * number of free parameters (docs/conventions.md, "Tolerances"). Throws a RangeError for an
109
+ * operation without an orthogonal Cartesian matrix (`cartesian`; within the tolerance), for an
110
+ * operation that does not say whether it is combined with time reversal, and for operations that
111
+ * generate no finite group within the tolerance.
112
+ */
113
+ export declare function tensorFormOf(operations: readonly CartesianOperation[], spec: TensorSpec | TensorPropertyName, options?: ToleranceOptions): TensorForm;
114
+ /**
115
+ * The operations of a caller, checked (orthogonal within the tolerance, time reversal given),
116
+ * closed within the tolerance and made exact: the group the functions for a list of operations
117
+ * compute with.
85
118
  */
86
- export declare function tensorFormOf(operations: readonly Operation[], spec: TensorSpec | TensorPropertyName): TensorForm;
119
+ export declare function callerGroup(operations: readonly CartesianOperation[], options?: ToleranceOptions): IdealGroup;
120
+ /** The form of a tensor (checked specification and its permutations) under a group made exact. */
121
+ export declare function formOfGroup(group: IdealGroup, spec: TensorSpec, perms: readonly SignedPermutation[]): TensorForm;
122
+ /** The specification of a tensor given by its specification or name, checked, with its permutations. */
123
+ export declare function checkedSpec(spec: TensorSpec | TensorPropertyName): {
124
+ spec: TensorSpec;
125
+ perms: readonly SignedPermutation[];
126
+ };
87
127
  /**
88
- * The components of `tensor` (length 3^rank, flat index) in a frame rotated by the orthogonal
128
+ * The tensor `tensor` in a frame rotated by the orthogonal
89
129
  * matrix `rotation`: t′_{i…} = f·Σ R_{ia}…R_{…}·t_{a…}, with f = det(R) for an axial tensor and 1
90
130
  * for a polar one. To express a tensor in the frame of a surface, pass the matrix whose rows are
91
131
  * the new axes in the old frame. Time parity plays no part. The kind of tensor is given by its
92
- * specification or by the name of a property in `TENSOR_PROPERTIES`.
132
+ * specification or by the name of a property in `TENSOR_PROPERTIES`. Throws a RangeError for a
133
+ * rotation that is not orthogonal within the tolerance (per matrix entry of RᵀR).
93
134
  */
94
- export declare function rotateTensor(tensor: readonly number[], rotation: Mat3, specOrName: TensorSpec | TensorPropertyName): number[];
135
+ export declare function rotateTensor(tensor: readonly number[], rotation: Mat3, spec: TensorSpec | TensorPropertyName, options?: ToleranceOptions): readonly number[];
95
136
  //# sourceMappingURL=tensorForm.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tensorForm.d.ts","sourceRoot":"","sources":["../../src/tensors/tensorForm.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAO,KAAK,IAAI,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAkD,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClG,OAAO,EAAwB,KAAK,qBAAqB,EAAE,KAAK,cAAc,EAAE,MAAM,+BAA+B,CAAC;AACtH,OAAO,EAAU,KAAK,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAIrE,yCAAyC;AACzC,MAAM,MAAM,UAAU,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAE3C,6EAA6E;AAC7E,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,OAAO,CAAC;AAE7C,wFAAwF;AACxF,MAAM,MAAM,UAAU,GAAG,GAAG,GAAG,GAAG,CAAC;AAEnC;;;;;;;GAOG;AACH,MAAM,MAAM,iBAAiB,GAAG,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,OAAO,GAAG,OAAO,CAAC;AAEzE,2CAA2C;AAC3C,MAAM,WAAW,UAAU;IACzB,iCAAiC;IACjC,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC;IAC1B,6FAA6F;IAC7F,QAAQ,CAAC,MAAM,EAAE,YAAY,CAAC;IAC9B,qFAAqF;IACrF,QAAQ,CAAC,UAAU,EAAE,UAAU,CAAC;IAChC,wCAAwC;IACxC,QAAQ,CAAC,SAAS,EAAE,iBAAiB,CAAC;CACvC;AAED;;;;GAIG;AACH,MAAM,WAAW,UAAU;IACzB,8BAA8B;IAC9B,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC;IAC1B;;;;;OAKG;IACH,QAAQ,CAAC,KAAK,EAAE,SAAS,CAAC,S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