Here you can find the source of deepHashCode(double[][] matrix)
Parameter | Description |
---|---|
matrix | the matrix |
public static int deepHashCode(double[][] matrix)
//package com.java2s; //License from project: Open Source License import java.util.Arrays; public class Main { /**//from w w w. j a va 2 s. com * Computes hashCode of a given matrix * @param matrix the matrix * @return the computed hash code */ public static int deepHashCode(double[][] matrix) { int retVal = 0; for (int i = 0; i < matrix.length; i++) { retVal += Arrays.hashCode(matrix[i]); } return retVal; } }