Skip to content

Commit a678190

Browse files
andigclaude
andcommitted
style: gofmt CSR-flatten struct/field alignment
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 6703056 commit a678190

2 files changed

Lines changed: 11 additions & 11 deletions

File tree

simplex/ft.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ func (f *ftLU) clone() *ftLU {
2323
rlist: append([]ftR(nil), f.rlist...),
2424
nUpd: f.nUpd,
2525
lPr: append([]int(nil), f.lPr...),
26-
lFR: append([]int32(nil), f.lFR...), lFV: append([]float64(nil), f.lFV...),
26+
lFR: append([]int32(nil), f.lFR...), lFV: append([]float64(nil), f.lFV...),
2727
lPtr: append([]int32(nil), f.lPtr...),
2828
uCol: make([][]int32, f.m), uVal: make([][]float64, f.m),
2929
ucRows: make([][]int32, f.m),
@@ -47,12 +47,12 @@ func (f *ftLU) clone() *ftLU {
4747
// keyed by stable orig rows, U by stable basis cols; "step" order remaps freely.
4848
type ftLU struct {
4949
m int
50-
lFR []int32 // flat L: step s eliminated rows, range [lPtr[s],lPtr[s+1])
51-
lFV []float64 // matching L multipliers (contiguous, cache-friendly)
52-
lPtr []int32 // step s -> start offset into lFR/lFV (len m+1)
53-
lPr []int // factorize step s -> its pivot orig row (immutable)
54-
udiag []float64 // udiag[s] = U[s][s]
55-
uCol [][]int32 // step-row s -> basis cols c with rinvcol[c] > s
50+
lFR []int32 // flat L: step s eliminated rows, range [lPtr[s],lPtr[s+1])
51+
lFV []float64 // matching L multipliers (contiguous, cache-friendly)
52+
lPtr []int32 // step s -> start offset into lFR/lFV (len m+1)
53+
lPr []int // factorize step s -> its pivot orig row (immutable)
54+
udiag []float64 // udiag[s] = U[s][s]
55+
uCol [][]int32 // step-row s -> basis cols c with rinvcol[c] > s
5656
uVal [][]float64
5757
ucRows [][]int32 // basis col -> orig rows whose U row may hold it (lazy)
5858
prow []int // prow[step] = orig row

simplex/sparselu.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ import "math"
88
// per-step multiplier columns, U upper stored as per-step rows.
99
type sparseLU struct {
1010
k int
11-
rowPerm []int32 // step -> kernel-local row
12-
colPerm []int32 // step -> kernel-local col
13-
stepOfRow []int32 // kernel-local row -> step
11+
rowPerm []int32 // step -> kernel-local row
12+
colPerm []int32 // step -> kernel-local col
13+
stepOfRow []int32 // kernel-local row -> step
1414
lFlatIdx []int32 // flat L: step s multipliers in [lPtr[s],lPtr[s+1])
1515
lFlatVal []float64 // matching L values, kernel-local row ids
1616
lPtr []int32 // step -> start offset into lFlat* (len k+1)
1717
uDiag []float64
18-
uFlatIdx []int32 // flat U: step s entries in [uPtr[s],uPtr[s+1])
18+
uFlatIdx []int32 // flat U: step s entries in [uPtr[s],uPtr[s+1])
1919
uFlatVal []float64
2020
uPtr []int32 // step -> start offset into uFlat* (len k+1)
2121
work []float64

0 commit comments

Comments
 (0)