japaric-archived / linalg.rs

[INACTIVE]
Apache License 2.0
29 stars 1 forks source link

A * B * C + D * E should compile #52

Open japaric opened 9 years ago

japaric commented 9 years ago

Right now this is Chain + Chain. Evaluating that expression is wasteful because both sides will need to be evaluated.

Instead changes the types such that the expression becomes Chain + Product<SubMat, SubMat>, then we can always eval the LHS, and use that allocation to store the operation.