Uploaded image for project: 'Commons Math'
  1. Commons Math
  2. MATH-281

RealMatrix.subtract javadoc typo

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 2.0
    • None
    • None

    Description

      I think the javadoc for RealMatrix.subtract is wrong. It says "@return this + m", which perhaps should be "@return this - m"

      Index: src/main/java/org/apache/commons/math/linear/RealMatrix.java
      ===================================================================
      — src/main/java/org/apache/commons/math/linear/RealMatrix.java (revision 799902)
      +++ src/main/java/org/apache/commons/math/linear/RealMatrix.java (working copy)
      @@ -60,7 +60,7 @@

      • Compute this minus m.
        *
      • @param m matrix to be subtracted
      • * @return this + m
        + * @return this - m
      • @throws IllegalArgumentException if m is not the same size as this
        */
        RealMatrix subtract(RealMatrix m) throws IllegalArgumentException;

      Attachments

        Activity

          People

            luc Luc Maisonobe
            ashuang Albert Huang
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: