hTensor 0.8.0 → 0.8.1
raw patch · 4 files changed
+10/−2 lines, 4 filesPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
API changes (from Hackage documentation)
+ Numeric.LinearAlgebra.Array.Util: resetCoords :: Coord t => NArray i t -> Vector t -> NArray i t
- Numeric.LinearAlgebra.Array.Solve: solve' :: (Compat i, Coord t, Coord a) => (Matrix t -> Matrix a) -> NArray i t -> NArray i a -> NArray i a
+ Numeric.LinearAlgebra.Array.Solve: solve' :: (Compat i, Coord a, Coord t) => (Matrix t -> Matrix a) -> NArray i t -> NArray i t -> NArray i a
- Numeric.LinearAlgebra.Array.Solve: solveHomog' :: (Compat i, Coord t, Coord a) => (Matrix t -> Matrix a) -> NArray i t -> [Name] -> Either Double Int -> [NArray i a]
+ Numeric.LinearAlgebra.Array.Solve: solveHomog' :: (Compat i, Coord a, Coord t) => (Matrix t -> Matrix a) -> NArray i t -> [Name] -> Either Double Int -> [NArray i a]
Files
- hTensor.cabal +1/−1
- lib/Numeric/LinearAlgebra/Array/Internal.hs +7/−0
- lib/Numeric/LinearAlgebra/Array/Solve.hs +1/−1
- lib/Numeric/LinearAlgebra/Array/Util.hs +1/−0
hTensor.cabal view
@@ -1,5 +1,5 @@ Name: hTensor-Version: 0.8.0+Version: 0.8.1 License: GPL License-file: LICENSE Author: Alberto Ruiz
lib/Numeric/LinearAlgebra/Array/Internal.hs view
@@ -56,6 +56,7 @@ firstIdx, fibers, matrixator, matrixatorFree, Coord, asMatrix, asVector, asScalar,+ resetCoords, debug ) where @@ -108,6 +109,12 @@ then vec else error $ show ds ++ " dimensions and " ++ show (dim vec) ++ " coordinates for mkNArray"++resetCoords :: Coord t => NArray i t -> Vector t -> NArray i t+-- ^ change the whole set of coordinates.+resetCoords (A dms u) v | dim u == dim v = A dms v+ | otherwise = error "wrong size in replaceCoords"+ -- | Create a 0-dimensional structure. scalar :: Coord t => t -> NArray i t
lib/Numeric/LinearAlgebra/Array/Solve.hs view
@@ -50,7 +50,7 @@ na = namesR a \\ nx nb = namesR b \\ namesR a aM = g $ matrixator a na nx- bM = matrixator b na nb+ bM = g $ matrixator b na nb xM = linearSolveSVD aM bM dx = map opos (selDims (dims a) nx) ++ selDims (dims b) nb x = mkNArray dx (flatten xM)
lib/Numeric/LinearAlgebra/Array/Util.hs view
@@ -38,6 +38,7 @@ atT, takeDiagT, diagT, mkFun, mkAssoc, setType, renameParts,+ resetCoords, asScalar, asVector, asMatrix, applyAsMatrix, fibers, matrixator, matrixatorFree, analyzeProduct, fromVector, fromMatrix