[ismrmrd] 77/281: Replaced vector with valarray on NDArrayContainer

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Wed Jan 14 20:00:58 UTC 2015


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to annotated tag ismrmrd0.5
in repository ismrmrd.

commit 182c53a22f99eda59b8bd65ac67a40044fe4c750
Author: kvahed <kaveh at vahedipour.de>
Date:   Mon Jan 21 10:12:32 2013 +0100

    Replaced vector with valarray on NDArrayContainer
---
 ismrmrd.h | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/ismrmrd.h b/ismrmrd.h
index 7d7c564..d2561d7 100644
--- a/ismrmrd.h
+++ b/ismrmrd.h
@@ -419,11 +419,7 @@ public:
 
 	NDArrayContainer(const std::vector<unsigned int>& dimensions, T* d) {
 		dimensions_ = dimensions;
-		size_t ne = elements();
-
-		data_ = std::valarray<T>(d, ne);
-		//memcpy (&data_[0], d, elements()*sizeof(T));
-		//data_.assign(d, d+elements()); REVISIT!
+		data_ = std::valarray<T>(d, elements());
 	}
 
 	virtual ~NDArrayContainer() {}

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/ismrmrd.git



More information about the debian-science-commits mailing list