Discussion:
[Pyublas] patch to compile with debug
Neal Becker
2009-10-30 17:25:04 UTC
Permalink
This patch is needed to compile in debug mode

diff --git a/src/cpp/pyublas/numpy.hpp b/src/cpp/pyublas/numpy.hpp
index 2355023..90acfee 100644
--- a/src/cpp/pyublas/numpy.hpp
+++ b/src/cpp/pyublas/numpy.hpp
@@ -739,7 +739,7 @@ namespace pyublas
const boost::numeric::ublas::vector_expression<AE> &ae)
: super(ae)
{
- assert(size() == size_from_dims(ndim_, dims_));
+ assert(this->size() == size_from_dims(ndim_, dims_));
array().reshape(ndim_, dims_);
}
Andreas Klöckner
2009-10-30 20:32:42 UTC
Permalink
Post by Neal Becker
This patch is needed to compile in debug mode
diff --git a/src/cpp/pyublas/numpy.hpp b/src/cpp/pyublas/numpy.hpp
index 2355023..90acfee 100644
--- a/src/cpp/pyublas/numpy.hpp
+++ b/src/cpp/pyublas/numpy.hpp
@@ -739,7 +739,7 @@ namespace pyublas
const boost::numeric::ublas::vector_expression<AE> &ae)
: super(ae)
{
- assert(size() == size_from_dims(ndim_, dims_));
+ assert(this->size() == size_from_dims(ndim_, dims_));
array().reshape(ndim_, dims_);
}
Thanks for submitting this! It appears that this was already fixed in git,
though.

Andreas


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.tiker.net/pipermail/pyublas/attachments/20091030/be6d87a6/attachment.pgp>
Loading...