bug-apl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-apl] Unexpected cell type change to CT_BASE


From: Dirk Laurie
Subject: [Bug-apl] Unexpected cell type change to CT_BASE
Date: Mon, 23 Feb 2015 10:38:44 +0200

2015-02-22 21:48 GMT+02:00 Dirk Laurie <address@hidden>:

> The folllowing program pinpoints what I do not understand about
> the use of Value and Value_P.

I am beginning to think it may be a bug. Here is a minimal example
of the phenomenon that causes it.

~~~
#include <iostream>
using namespace std;

#include <Value.icc>

main() {
   const Value& a = FloatScalar(3.141592653589793,LOC).getref();
   cerr << "a[0] cell type = " << a.get_ravel(0).get_cell_type() << endl;
   Value_P ret(a.get_shape(), LOC);
   cerr << "a[0] cell type = " << a.get_ravel(0).get_cell_type() << endl;
}
~~~

Output:

~~~
a[0] cell type = 32
a[0] cell type = 1
~~~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]