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

Remove the restriction that the two vectors in RealVector.outerProduct have to be of the same size.

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.2, 3.0
    • Fix Version/s: 3.0
    • Labels:
    • Environment:

      All.

      Description

      Currently RealMatrix M = x.outerProduct throws an exception if x and y are different sizes. This is as documented in the Javadoc but not what one expects mathematically (see e.g. http://en.wikipedia.org/wiki/Outer_product) - the vectors can be any size.

      So please remove the restriction that the vectors should be the same size, as this doesn't seem to be necessary either mathematically or in terms of the implementation.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              nasatyr Emile Ben Nasatyr
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 24h
                24h
                Remaining:
                Remaining Estimate - 24h
                24h
                Logged:
                Time Spent - Not Specified
                Not Specified