@thi.ng/adjacency 2.2.11 → 2.2.12

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/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2022-10-03T16:07:55Z
3
+ - **Last updated**: 2022-10-26T12:46:53Z
4
4
  - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
5
5
 
6
6
  All notable changes to this project will be documented in this file.
@@ -9,6 +9,15 @@ See [Conventional Commits](https://conventionalcommits.org/) for commit guidelin
9
9
  **Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
10
10
  and/or version bumps of transitive dependencies.
11
11
 
12
+ ### [2.2.12](https://github.com/thi-ng/umbrella/tree/@thi.ng/adjacency@2.2.12) (2022-10-26)
13
+
14
+ #### ♻️ Refactoring
15
+
16
+ - update AdjacencyBitMatrix & tests ([a86b6ee](https://github.com/thi-ng/umbrella/commit/a86b6ee))
17
+ - update .neighbors() impl to adjust to new u8 backing array
18
+ (see [aaa0ecb1d](https://github.com/thi-ng/umbrella/commit/aaa0ecb1d))
19
+ - add/update test cases
20
+
12
21
  ## [2.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/adjacency@2.2.0) (2022-07-19)
13
22
 
14
23
  #### 🚀 Features
package/binary.js CHANGED
@@ -69,7 +69,7 @@ export class AdjacencyBitMatrix {
69
69
  const res = [];
70
70
  const { data, stride } = this.mat;
71
71
  id *= stride;
72
- for (let i = this.mat.n - 1, j = id + stride - 1; i >= 0; i -= 32, j--) {
72
+ for (let i = this.mat.n - 1, j = id + stride - 1; i >= 0; i -= 8, j--) {
73
73
  const v = data[j];
74
74
  if (v !== 0) {
75
75
  for (let k = 31 - Math.clz32(v); k >= 0; k--) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/adjacency",
3
- "version": "2.2.11",
3
+ "version": "2.2.12",
4
4
  "description": "Sparse & bitwise adjacency matrices and related functions for directed & undirected graphs",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -35,16 +35,16 @@
35
35
  },
36
36
  "dependencies": {
37
37
  "@thi.ng/api": "^8.4.3",
38
- "@thi.ng/arrays": "^2.3.9",
39
- "@thi.ng/bitfield": "^2.2.8",
40
- "@thi.ng/dcons": "^3.2.18",
38
+ "@thi.ng/arrays": "^2.3.10",
39
+ "@thi.ng/bitfield": "^2.2.9",
40
+ "@thi.ng/dcons": "^3.2.19",
41
41
  "@thi.ng/errors": "^2.2.2",
42
- "@thi.ng/sparse": "^0.3.23"
42
+ "@thi.ng/sparse": "^0.3.24"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@microsoft/api-extractor": "^7.31.1",
46
46
  "@thi.ng/testament": "^0.3.3",
47
- "@thi.ng/vectors": "^7.5.19",
47
+ "@thi.ng/vectors": "^7.5.20",
48
48
  "rimraf": "^3.0.2",
49
49
  "tools": "^0.0.1",
50
50
  "typedoc": "^0.22.17",
@@ -119,5 +119,5 @@
119
119
  ],
120
120
  "year": 2018
121
121
  },
122
- "gitHead": "612b1b0bdf442473f04c2edac3012975a6ca28bb\n"
122
+ "gitHead": "cc61bc0a890288bea00b8df81ffd73bc4851ffd3\n"
123
123
  }