/*获取数组中最大的元素*/
double max = a[0];
for(int i=1;i<a.length;i++)
if(a[i] > max) max = a[i];
/*计算出数组元素的平均值*/
int N = a.lenght;
double sum = 0.0;
for(int i=0;i<N;i++)
sum += a[i];
double average = sum / N;
/*复制数组*/
int N = a.lenght;
double[] b = new bouble[N];
for(int i=0;i<N;i++)
b[i] = a[i];
/*颠倒数组元素的顺序*/
int N = a.length;
for(int i=0;i<N/2;i++){
double temp = a[i];
a[i] = a[N-1-i];
a[N-1-i] = temp;
}
//矩阵相乘(方阵) a[][] * b[][] = c[][]
int N = a.length
double[][] c = new double[N][N];
for(int i=0;i<N;i++)
for(int j=0;j<N;j++){
//计算行i与列j的点相乘
for(int k=0;k<N;k++) c[i][j] += a[i][k] * b[k][j];
}