Fixed Bug in test_scalv

- Since bli_obj_length(&a) is being used to get the length of A vector,
  we need to initialize A as a vector of M x 1 dimension as the
  bli_obj_length(...) will return the M dimension of the object.
- The vector was being initialized with a dimension of 1 x N resulting
  in bli_obj_length(&a) always returning 1 as the length of the vector.

AMD-Internal: [CPUPL-6297]
Change-Id: Id0e79752f9b81c1573deda3dd32ef0fef10df50c
This commit is contained in:
Arnav Sharma
2025-01-10 15:42:37 +05:30
committed by Arnav Sharma
parent a80436ab21
commit 2f2741f4ab

View File

@@ -93,7 +93,7 @@ int main(int argc, char** argv)
bli_obj_create(dt, 1, 1, 0, 0, &alpha);
bli_obj_create(dt, 1, n, 0, 0, &a);
bli_obj_create(dt, n, 1, 0, 0, &a);
bli_randm(&a);
bli_setsc((2.0), 0.0, &alpha);