mirror of
https://github.com/gonum/gonum.git
synced 2025-10-06 15:47:01 +08:00
blas,lapack: clean up docs and comments
Apply (with manual curation after the fact): * s/^T/U+1d40/g * s/^H/U+1d34/g * s/, {2,3}if / $1/g Some additional manual editing of odd formatting.
This commit is contained in:
@@ -46,7 +46,7 @@ func ExampleCholesky() {
|
||||
var test mat.Dense
|
||||
test.Mul(t, t.T())
|
||||
fmt.Println()
|
||||
fmt.Printf("L * L^T = %0.4v\n", mat.Formatted(&a, mat.Prefix(" ")))
|
||||
fmt.Printf("L * Lᵀ = %0.4v\n", mat.Formatted(&a, mat.Prefix(" ")))
|
||||
|
||||
// Output:
|
||||
// a = ⎡120 114 -4 -16⎤
|
||||
@@ -62,10 +62,10 @@ func ExampleCholesky() {
|
||||
// ⎢-0.04681⎥
|
||||
// ⎣ 0.1031⎦
|
||||
//
|
||||
// L * L^T = ⎡120 114 -4 -16⎤
|
||||
// ⎢114 118 11 -24⎥
|
||||
// ⎢ -4 11 58 17⎥
|
||||
// ⎣-16 -24 17 73⎦
|
||||
// L * Lᵀ = ⎡120 114 -4 -16⎤
|
||||
// ⎢114 118 11 -24⎥
|
||||
// ⎢ -4 11 58 17⎥
|
||||
// ⎣-16 -24 17 73⎦
|
||||
}
|
||||
|
||||
func ExampleCholesky_SymRankOne() {
|
||||
@@ -96,7 +96,7 @@ func ExampleCholesky_SymRankOne() {
|
||||
// Print the matrix that was updated directly.
|
||||
fmt.Printf("\nA' = %0.4v\n", mat.Formatted(a, mat.Prefix(" ")))
|
||||
// Print the matrix recovered from the factorization.
|
||||
fmt.Printf("\nU'^T * U' = %0.4v\n", mat.Formatted(au, mat.Prefix(" ")))
|
||||
fmt.Printf("\nU'ᵀ * U' = %0.4v\n", mat.Formatted(au, mat.Prefix(" ")))
|
||||
|
||||
// Output:
|
||||
// A = ⎡ 1 1 1 1⎤
|
||||
@@ -114,7 +114,7 @@ func ExampleCholesky_SymRankOne() {
|
||||
// ⎢ 1 3 6 10⎥
|
||||
// ⎣ 1 4 10 21⎦
|
||||
//
|
||||
// U'^T * U' = ⎡ 1 1 1 1⎤
|
||||
// U'ᵀ * U' = ⎡ 1 1 1 1⎤
|
||||
// ⎢ 1 2 3 4⎥
|
||||
// ⎢ 1 3 6 10⎥
|
||||
// ⎣ 1 4 10 21⎦
|
||||
|
Reference in New Issue
Block a user