203 for (
int k = 0; k <
n; k++) {
204 for (
int i = k+1; i <
n; i++) {
205 for (
int j = 0; j < nx; j++) {
206 X[i][j] -= X[k][j]*L_[k][i];
209 for (
int j = 0; j < nx; j++) {
215 for (
int k =
n-1; k >= 0; k--) {
216 for (
int j = 0; j < nx; j++) {
219 for (
int i = 0; i < k; i++) {
220 for (
int j = 0; j < nx; j++) {
221 X[i][j] -= X[k][j]*L_[k][i];
229 for (
int j=0; j< nx; j++)
231 for (
int k = 0; k <
n; k++)
233 for (
int i = 0; i < k; i++)
234 X[k][j] -= X[i][j]*L_[k][i];
240 for (
int j=0; j<nx; j++)
242 for (
int k =
n-1; k >= 0; k--)
244 for (
int i = k+1; i <
n; i++)
245 X[k][j] -= X[i][j]*L_[i][k];