Skip to content
This repository has been archived by the owner on Dec 10, 2018. It is now read-only.

Commit

Permalink
cmat128: fix Conjugate.At
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimir-ch committed Feb 12, 2016
1 parent b748dc6 commit 203bc76
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmat128/matrix.go
Expand Up @@ -35,7 +35,8 @@ type Conjugate struct {
// At returns the value of the element at row i and column j of the transposed
// matrix, that is, row j and column i of the Matrix field.
func (t Conjugate) At(i, j int) complex128 {
return t.Matrix.At(j, i) * complex(1, -1)
z := t.Matrix.At(j, i)
return complex(real(z), -imag(z))
}

// Dims returns the dimensions of the transposed matrix. The number of rows returned
Expand Down

0 comments on commit 203bc76

Please sign in to comment.