mirror of
https://github.com/gonum/gonum.git
synced 2025-10-04 06:46:29 +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:
@@ -157,10 +157,10 @@ func (b *BFGS) NextDirection(loc *Location, dir []float64) (stepSize float64) {
|
||||
// Update the inverse Hessian according to the formula
|
||||
//
|
||||
// B_{k+1}^-1 = B_k^-1
|
||||
// + (s_k^T y_k + y_k^T B_k^-1 y_k) / (s_k^T y_k)^2 * (s_k s_k^T)
|
||||
// - (B_k^-1 y_k s_k^T + s_k y_k^T B_k^-1) / (s_k^T y_k).
|
||||
// + (s_kᵀ y_k + y_kᵀ B_k^-1 y_k) / (s_kᵀ y_k)^2 * (s_k s_kᵀ)
|
||||
// - (B_k^-1 y_k s_kᵀ + s_k y_kᵀ B_k^-1) / (s_kᵀ y_k).
|
||||
//
|
||||
// Note that y_k^T B_k^-1 y_k is a scalar, and that the third term is a
|
||||
// Note that y_kᵀ B_k^-1 y_k is a scalar, and that the third term is a
|
||||
// rank-two update where B_k^-1 y_k is one vector and s_k is the other.
|
||||
yBy := mat.Inner(&b.y, b.invHess, &b.y)
|
||||
b.tmp.MulVec(b.invHess, &b.y)
|
||||
|
Reference in New Issue
Block a user