examples

command
v0.0.0-...-7dab283 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 20, 2024 License: MIT Imports: 7 Imported by: 0

README

Examples

➜  examples git:(main) ✗ go build
➜  examples git:(main) ✗ ./examples -help
Usage of ./examples:
  -n int
        number of row (or column) of the positive-definite matrix A (default 10)
  -seed uint
        seed (default 42)
  -tol float
        stopping criterion (default 1e-06)
➜  examples git:(main) ✗ ./examples -n 6 -seed 2024
⎡   1.6872063680457008    0.23401967221739928    0.05189312139000822   0.030632386972894776   0.003120116014126484  -0.010590914408023011⎤
⎢  0.23401967221739928     1.6093670624858811    0.05488205619980053    0.04374725343432459    0.05133787355107622   -0.03717689700191518⎥
⎢  0.05189312139000826    0.05488205619980056     1.5098325784465771    0.04898559532062907    0.22132075016282537    0.17167634370285545⎥
⎢  0.03063238697289479    0.04374725343432462   0.048985595320629294     1.5035503564723434    0.16407224881222143    0.14040193791279984⎥
⎢0.0031201160141265394    0.05133787355107622    0.22132075016282543     0.1640722488122214     1.4682591172395987    0.11421973131117108⎥
⎣-0.010590914408023011   -0.03717689700191523    0.17167634370285556    0.14040193791279984    0.11421973131117108     1.5808469426004383⎦
b transpose:  [5.7887306626441415   8.301037628014601    4.02292969141489   5.805744853632347  3.4367824001777385   7.781693542320252]
xhat transpose:  [ 2.701206502373657   4.692046276970674  1.6072861039167643  3.0609997593576987   1.235335223408565   4.515259577006577]
A @ xhat = b ?:  true
➜  examples git:(main) ✗

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL