for(int i = 0; i < n; i++) { sum += m_Elements[i] * b.m_Elements[i];
if (m_Elements != null) { int n = m_Elements.length; int bn = b.m_Elements.length;  for(int i = 0; i < n; i++) { sum += m_Elements[i] * b.m_Elements[i]; }
  public final double dotMultiply(AlgVector b) {       int n = m_Elements.length;    int bn = b.m_Elements.length;    double sum = 0.0;    for(int i = 0; i < n; i++) {      sum += m_Elements[i] * b.m_Elements[i];    }        return sum;  }