code: public double norm()
      {
          double t = 0;
          for (int c = 0; c < nCols; ++c) {
              double v = values[0][c];
              t += v*v;
          }
  
          return (double) Math.sqrt(t);
      }
docs: Compute the Euclidean norm.
  @return the norm