Java Matrix Multiply matrix_matrix_mult(double ad[][], double ad1[][], double ad2[][])

Here you can find the source of matrix_matrix_mult(double ad[][], double ad1[][], double ad2[][])

Description

matrimatrimult

License

Open Source License

Declaration

public static final void matrix_matrix_mult(double ad[][], double ad1[][], double ad2[][]) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static final void matrix_matrix_mult(double ad[][], double ad1[][], double ad2[][]) {
        for (int i = 0; i < 3; i++) {
            for (int j = 0; j < 3; j++)
                ad2[i][j] = ad[i][0] * ad1[0][j] + ad[i][1] * ad1[1][j] + ad[i][2] * ad1[2][j];

        }/*  ww w.j  av  a2 s  . c o m*/

    }
}

Related

  1. matrix4x4f_Mult(float[] result, float[] a, float[] b)
  2. matrixMult(final float[] result, float[] m1, float[] m2)
  3. matrixMultiplication(double[][] w, double[][] v)
  4. matrixMultiply(double[][] A, double[][] B, int aHeight, int bWidth, int comm, int bz, double[][] C)
  5. matrixMultiply(double[][] A, double[][] B, int n)