use direct_dot() instead of direct_dot_generic() since the former can now detect integer types
This commit is contained in:
@@ -102,7 +102,7 @@ class gemm_emul_large
|
||||
|
||||
for(uword col_B=0; col_B < B_n_cols; ++col_B)
|
||||
{
|
||||
const eT acc = op_dot::direct_dot_generic(B_n_rows, A_rowdata, B.colptr(col_B));
|
||||
const eT acc = op_dot::direct_dot(B_n_rows, A_rowdata, B.colptr(col_B));
|
||||
|
||||
if( (use_alpha == false) && (use_beta == false) ) { C.at(row_A,col_B) = acc; }
|
||||
else if( (use_alpha == true ) && (use_beta == false) ) { C.at(row_A,col_B) = alpha*acc; }
|
||||
@@ -122,7 +122,7 @@ class gemm_emul_large
|
||||
|
||||
for(uword col_B=0; col_B < B_n_cols; ++col_B)
|
||||
{
|
||||
const eT acc = op_dot::direct_dot_generic(B_n_rows, A_coldata, B.colptr(col_B));
|
||||
const eT acc = op_dot::direct_dot(B_n_rows, A_coldata, B.colptr(col_B));
|
||||
|
||||
if( (use_alpha == false) && (use_beta == false) ) { C.at(col_A,col_B) = acc; }
|
||||
else if( (use_alpha == true ) && (use_beta == false) ) { C.at(col_A,col_B) = alpha*acc; }
|
||||
@@ -158,7 +158,7 @@ class gemm_emul_large
|
||||
|
||||
for(uword col_A=0; col_A < A_n_cols; ++col_A)
|
||||
{
|
||||
const eT acc = op_dot::direct_dot_generic(A_n_rows, B_rowdata, A.colptr(col_A));
|
||||
const eT acc = op_dot::direct_dot(A_n_rows, B_rowdata, A.colptr(col_A));
|
||||
|
||||
if( (use_alpha == false) && (use_beta == false) ) { C.at(col_A,row_B) = acc; }
|
||||
else if( (use_alpha == true ) && (use_beta == false) ) { C.at(col_A,row_B) = alpha*acc; }
|
||||
|
||||
@@ -233,7 +233,7 @@ class gemv_emul
|
||||
{
|
||||
if(A_n_rows == 1)
|
||||
{
|
||||
const eT acc = op_dot::direct_dot_generic(A_n_cols, A.memptr(), x);
|
||||
const eT acc = op_dot::direct_dot(A_n_cols, A.memptr(), x);
|
||||
|
||||
if( (use_alpha == false) && (use_beta == false) ) { y[0] = acc; }
|
||||
else if( (use_alpha == true ) && (use_beta == false) ) { y[0] = alpha*acc; }
|
||||
@@ -269,7 +269,7 @@ class gemv_emul
|
||||
// acc += A_coldata[row] * x[row];
|
||||
// }
|
||||
|
||||
const eT acc = op_dot::direct_dot_generic(A_n_rows, A.colptr(col), x);
|
||||
const eT acc = op_dot::direct_dot(A_n_rows, A.colptr(col), x);
|
||||
|
||||
if( (use_alpha == false) && (use_beta == false) ) { y[col] = acc; }
|
||||
else if( (use_alpha == true ) && (use_beta == false) ) { y[col] = alpha*acc; }
|
||||
|
||||
@@ -233,7 +233,7 @@ class syrk_emul
|
||||
|
||||
for(uword k=col_A; k < A_n_cols; ++k)
|
||||
{
|
||||
const eT acc = op_dot::direct_dot_generic(A_n_rows, A_coldata, A.colptr(k));
|
||||
const eT acc = op_dot::direct_dot(A_n_rows, A_coldata, A.colptr(k));
|
||||
|
||||
if( (use_alpha == false) && (use_beta == false) )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user