https://github.com/dirkschumacher/tfjs-forwardsolve
Forward substitution for rank 2 tensors in tensorflow.js
https://github.com/dirkschumacher/tfjs-forwardsolve
tensorflow tensorflow-js
Last synced: 3 months ago
JSON representation
Forward substitution for rank 2 tensors in tensorflow.js
- Host: GitHub
- URL: https://github.com/dirkschumacher/tfjs-forwardsolve
- Owner: dirkschumacher
- License: mit
- Created: 2019-06-21T20:39:50.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-05-06T02:58:57.000Z (about 3 years ago)
- Last Synced: 2025-03-10T15:11:31.073Z (over 1 year ago)
- Topics: tensorflow, tensorflow-js
- Language: JavaScript
- Homepage:
- Size: 20.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tfjs-forwardsolve
Forward substitution for rank 2 tensors in tensorflow.js
Currently experimental and for learning purposes. Use at own risk.
```js
const tfc = require("@tensorflow/tfjs-core")
const forwardSolve = require("tfjs-forwardsolve")
const L = tfc.tensor2d([[1, 0, 0], [3, 4, 0], [3, 4, 5]])
const b = tfc.tensor2d([[20], [300], [40]])
const result = forwardSolve(L, b)
// [ [20], [60], [-52] ]
```