hujinshui / bcslib

Automatically exported from code.google.com/p/bcslib
0 stars 0 forks source link

Matrix product expression and evaluation #8

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Add expression classes and corresponding evaluators to support matrix-matrix, 
matrix-column, row-matrix products.

- The evaluator should be based on template BLAS wrappers
- uniform syntax (compile-time dispatch under the hood)

    C = mm(A, B);

Original issue reported on code.google.com by linda...@gmail.com on 22 May 2012 at 1:29

GoogleCodeExporter commented 8 years ago
Additionally, it should evaluate the following expressions in an efficient way:

    C = scalar * mm(A, B);
    C = mm(A, B) * scalar;

    C += scalar * mm(A, B); 
    C += mm(A, B) * scalar;

Directly use destination with simple alias detection.

Original comment by linda...@gmail.com on 22 May 2012 at 1:33

GoogleCodeExporter commented 8 years ago

Original comment by linda...@gmail.com on 22 May 2012 at 1:34

GoogleCodeExporter commented 8 years ago

Original comment by linda...@gmail.com on 23 May 2012 at 5:39