title: Check if entire vector is zero
body: <p>How could I check if every single element in a vector is zero without looping through them?</p>
  
  <p>Current I have (In semi-MEW form):
  What this attempts to do is check if all three values of the final vector (its three dimensional... year.) is all zeros, (At the origin), or if it equals any previous vector on all three values.</p>
  
  <pre><code>        siteVisited = false; counter = 0;  
          while (counter &lt; (walkHist.back().size()-1))
          {
              tdof = 1;
              while (tdof &lt;= dimensions)
              {
                  if (walkHist.back().back().at(tdof-1) == 0)
                  {
                      siteVisited = true;
                  }
                  else
                  {
                      siteVisited = false;
                      break;
                  }
                  tdof++;
              }
              if (siteVisited)
              {
                  goto visited;
              }
  
              tdof = 1;
              while (tdof &lt;= dimensions)
              {
                  if (walkHist.back().back().at(tdof-1) == walkHist.back().at(counter).at(tdof-1))
                  {
                      siteVisited = true;
                  }
                  else
                  {
                      siteVisited = false;
                      break;
                  }
                  tdof++;
              }
              if (siteVisited)
              {
                                  visited:
                  ...
              }
              counter++;
          }
  </code></pre>