Open sueda opened 7 years ago
Thanks for your feedback! 57661f4 and eedb9db should address your first and fourth points respectively. With regards to your last point, the Tensor
class does in fact have a getFormat
method that returns the format of the tensor, so you can write something like
taco::Tensor<double> r({n}, b.getFormat());
I'm trying to write CG with taco, but I'm having difficulties. Here is my starter code, which doesn't compile yet.
Here are some comments/issues.
It complains if I try to declare
A
andb
asconst
.I know that I'm missing
evaluate()/assemble()/compile()
, but it is difficult to get the correct syntax. If I putevaluate()
everywhere, the code would get messy pretty quickly. For instance, assigning the result of a dot product to a double would take multiple lines, which would be cumbersome.Since I declare
using namespace Eigen
in this code, if I declareusing namespace taco
I get some name collisions.I would prefer to say
b.getDimension(0)
to get the number of rows in b.Is there an easy way to declare a Tensor to be of same storage type as another? I want
r
,p
, andAp
to be the same asb
without having to createdv
.