Uploaded image for project: 'Hama'
  1. Hama
  2. HAMA-174

Compute the transpose of a matrix

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • math
    • None

    Description

      The transpose of a matrix is another matrix in which the rows and columns have been reversed. The matrix must be square for this work.

      a11 a12 a13   a11 a21 a31
      a21 a22 a23 => a12 a22 a32
      a31 a32 a33   a13 a23 a33
      • A map task receives a row n as a key, and vector of each row as its value
      • emit (Reversed index, the entry with the given index)

      ex) row = 1,

      { 1: a11, 2: a12, 3: a13 }

      a11, a11
      a21, a12
      a31, a13
      ...

      • Reduce task sets the reversed values

      Attachments

        1. HAMA-174.patch
          15 kB
          Edward J. Yoon

        Issue Links

          Activity

            People

              udanax Edward J. Yoon
              udanax Edward J. Yoon
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: