You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It complains if I try to declare A and b as const.
I know that I'm missing evaluate()/assemble()/compile(), but it is difficult to get the correct syntax. If I put evaluate() 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 declare using 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, and Ap to be the same as b without having to create dv.
The text was updated successfully, but these errors were encountered:
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
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
.The text was updated successfully, but these errors were encountered: