Here you can find the source of divideElements_Bcol(int j, int numRows, int numCols, double[] u, double b[], int startB, double u_0)
public static void divideElements_Bcol(int j, int numRows, int numCols, double[] u, double b[], int startB, double u_0)
//package com.java2s; //License from project: Open Source License public class Main { public static void divideElements_Bcol(int j, int numRows, int numCols, double[] u, double b[], int startB, double u_0) { // double div_u = 1.0/u_0; ////w w w. j a v a 2 s . c o m // if( Double.isInfinite(div_u)) { int indexB = j * numCols + startB; for (int i = j; i < numRows; i++, indexB += numCols) { b[indexB] = u[i] /= u_0; } // } else { // int indexB = j*getNumCols+startB; // for( int i = j; i < getNumRows; i++ , indexB += getNumCols ) { // b[indexB] = u[i] *= div_u; // } // } } }