Skip to content

Commit

Permalink
build: ⬆️ bump ootk-core
Browse files Browse the repository at this point in the history
  • Loading branch information
thkruz committed Jan 17, 2024
1 parent 9a9b50d commit efc4aa0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"typescript": "^4.9.5"
},
"dependencies": {
"ootk-core": "^1.0.7"
"ootk-core": "^1.0.8"
},
"homepage": "https://github.com/thkruz/ootk"
}
4 changes: 2 additions & 2 deletions src/utils/jacobian.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { JacobianFunction } from '../types/types';
* @param step The step size for numerical differentiation (default: 1e-5).
* @returns The Jacobian matrix.
*/
export function jacobian(f: JacobianFunction, m: number, x0: Float64Array, step = 0.00001): Matrix {
export const jacobian = (f: JacobianFunction, m: number, x0: Float64Array, step = 0.00001): Matrix => {
const n = x0.length;
const j = array2d(m, n, 0);
const h = 0.5 * step;
Expand All @@ -35,4 +35,4 @@ export function jacobian(f: JacobianFunction, m: number, x0: Float64Array, step
}

return new Matrix(j);
}
};

0 comments on commit efc4aa0

Please sign in to comment.