Skip to content

Commit

Permalink
removed some unnecessary casting
Browse files Browse the repository at this point in the history
  • Loading branch information
Helin Gai committed Jul 12, 2014
1 parent 15ffd12 commit 129cb6b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -143,7 +143,7 @@ $$ \begin{pmatrix} 1 & 2 \\\ 3 & 4 \end{pmatrix}^{-1} = \begin{pmatrix} -2 & 1 \
var workspace = 0.0
var error : __CLPK_integer = 0
var N = __CLPK_integer(vDSP_Length(sqrt(Double(matrix.count))))
var N = __CLPK_integer(sqrt(Double(matrix.count)))
dgetrf_(&N, &N, &inMatrix, &N, &pivot, &error)
if error != 0 {
Expand Down
2 changes: 1 addition & 1 deletion SwiftAccelerate.playground/section-1.swift
Expand Up @@ -61,7 +61,7 @@ func invert(matrix : [Double]) -> [Double] {

var inMatrix = matrix

var N = __CLPK_integer(vDSP_Length(sqrt(Double(matrix.count))))
var N = __CLPK_integer(sqrt(Double(matrix.count)))

var pivot : __CLPK_integer = 0
var workspace = 0.0
Expand Down

0 comments on commit 129cb6b

Please sign in to comment.