Java Array Divide divideElements_Bcol(int j, int numRows, int numCols, double[] u, double b[], int startB, double u_0)

Here you can find the source of divideElements_Bcol(int j, int numRows, int numCols, double[] u, double b[], int startB, double u_0)

Description

divide Element Bcol

License

Open Source License

Declaration

public static void divideElements_Bcol(int j, int numRows, int numCols,
            double[] u, double b[], int startB, double u_0) 

Method Source Code

//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;
        //            }
        //        }
    }
}

Related

  1. divideByteArrayToChunks(byte data[], int chunkSize)
  2. divideElements(double[] v1, double[] v2, double[] rs)
  3. divideElements(final int j, final int numRows, final double[] u, final int startU, final double realA, final double imagA)
  4. divideElements(final int j, final int numRows, final float[] u, final float u_0)
  5. divideElements4arg(final int j, final int numRows, final double[] u, final double u_0)
  6. divideElementwise(int[] a, int[] b)
  7. divideImage(float[][] base, float[][] divisor)
  8. divideInPlace(double denominator, double[] target)
  9. divideInPlace(float[] vector, float val)