docs: static MutableDoubleTuple validate(
          DoubleTuple t, MutableDoubleTuple result)
      {
          if (result == null)
          {
              result = create(t.getSize());
          }
          else
          {
              Utils.checkForEqualSize(t, result);
          }
          return result;
      }