public ComplexVector generateHermitianRandomVector(int dimension,Random random){
  ComplexVector randomVector=new ComplexVector(dimension,Mode.HERMITIAN);
  float[] coordinates=randomVector.getCoordinates();
  for (int d=0; d < coordinates.length; d++)   coordinates[d]=(float)(random.nextFloat() - 0.5) / (float)coordinates.length;
  return randomVector;
}

public ComplexVector generateHermitianRandomVector ( int dimension , Random random ) { ComplexVector randomVector = new ComplexVector ( dimension , Mode . HERMITIAN ) ; float [ ] coordinates = randomVector . getCoordinates ( ) ; for ( int d = 0 ; d < coordinates . length ; d ++ ) coordinates [ d ] = ( float ) ( random . nextFloat ( ) - 0.5 ) / ( float ) coordinates . length ; return randomVector ; }
generates a basic dense vector in cartesian form . this is used in the hermitian mode , though , hence the name .
