code: public double[][] exp(double[][] matrix) {
  		return org.jblas.MatrixFunctions.expm(new org.jblas.DoubleMatrix(matrix)).toArray2();
  	}
docs: Calculate the "matrix exponential" (expm).
  
  Note: The function currently requires jblas. If jblas is not availabe on your system, an exception will be thrown.
  A future version of this function may implement a fall back.
  
  @param matrix The given matrix.
  @return The exp(matrix).