XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.3
    • 0.3
    • None
    • None

    Description

      AbstractVector operations like times

      public Vector times(double x) {
      Vector result = clone();
      Iterator<Element> iter = iterateNonZero();
      while (iter.hasNext())

      { Element element = iter.next(); int index = element.index(); result.setQuick(index, element.get() * x); }

      return result;
      }

      should be implemented as follows

      public Vector times(double x) {
      Vector result = clone();
      Iterator<Element> iter = result.iterateNonZero();
      while (iter.hasNext())

      { Element element = iter.next(); element.set(element.get() * x); }

      return result;
      }

      Attachments

        1. MAHOUT-300.patch
          30 kB
          Robin Anil
        2. MAHOUT-300.patch
          28 kB
          Robin Anil
        3. MAHOUT-300.patch
          27 kB
          Robin Anil
        4. MAHOUT-300.patch
          24 kB
          Jake Mannix
        5. MAHOUT-300.patch
          20 kB
          Jake Mannix
        6. MAHOUT-300.patch
          7 kB
          Jake Mannix
        7. MAHOUT-300.patch
          13 kB
          Robin Anil
        8. MAHOUT-300.patch
          8 kB
          Robin Anil
        9. MAHOUT-300.patch
          3 kB
          Robin Anil

        Activity

          People

            robinanil Robin Anil
            robinanil Robin Anil
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: