mirror of
https://github.com/amd/blis.git
synced 2026-04-20 15:48:50 +00:00
Updating BLIS C++ interface trsm test.
- Making A diagonally dominant to ensure that the problem at hand is solvable. AMD-Internal: [CPUPL-3575] Change-Id: I27cc76a212d4d10aacce880895e1e0d7532e4eb7
This commit is contained in:
committed by
Eleni Vlachopoulou
parent
9a2a4151ac
commit
46459a958d
6
vendor/testcpp/test_trsm.cc
vendored
6
vendor/testcpp/test_trsm.cc
vendored
@@ -102,6 +102,12 @@ void test_trsm( )
|
||||
allocate_init_buffer(B , m , n);
|
||||
copy_buffer(B, B_ref , m ,n);
|
||||
|
||||
// Make A diagonally dominant to guarantee that the system has a solution.
|
||||
for(int i=0; i<m; i++)
|
||||
{
|
||||
A[i+i*lda] = T{float(m)}*A[i+i*lda];
|
||||
}
|
||||
|
||||
#ifdef PRINT
|
||||
printmatrix(A, lda ,m,m, (char *)"A");
|
||||
printmatrix(B, ldb ,m,n, (char *)"B");
|
||||
|
||||
Reference in New Issue
Block a user