Published
Edited
Dec 23, 2019
1 fork
3 stars
Insert cell
Insert cell
choleskySolve = require(await FileAttachment("cholesky-solve-0.2.1.js").url()) //("https://bundle.run/cholesky-solve@0.2.1")
Insert cell
cuthillMckee = require(await FileAttachment("cuthill-mckee-1.0.0.js").url()) // ("https://bundle.run/cuthill-mckee")
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
solve = {
// Optional: pre-condition (re-order) the matrix in an efficient way
var P = cuthillMckee(M, n);

// the `prepare` method returns a function that can be used to solve
// the equation for any value of b.
return choleskySolve.prepare(M, n, P);
}
Insert cell
viewof solution = pt(solve(b))
Insert cell
Insert cell
Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more