pub fn solve_tridiag( sub: &[f64], dia: &[f64], sup: &[f64], b: &[f64], ) -> Option<Vec<f64>>
三重対角の連立方程式(部分ピボット付きの消去。行 0 と n−1 の対角が小さくてもよいように)