package Jampack;
/**
Eye generates a matrix whose diagonal elements are one
and whose off diagonal elements are zero.
*/
public class Eye{
/**
Generates an identity matrix of order n.
@param n The order of the matrx
*/
public static Zmat o(int n){
return o(n, n);
}
/**
Generates an mxn matrix whose diagonal elements are
one and whose off diagonal elements are zero.
@param m The number of rows in the matrix
@param n The number of columns in the matrix
*/
public static Zmat o(int m, int n){
Zmat I = new Zmat(m, n);
for (int i=0; i
Ads help maintain this website.