code: def test_fast_dot(self):
      vec = np.ones(2, dtype=np.float32)
      mat = np.ones((2, 2), dtype=np.float32)
      output = np.zeros(mat.shape[0], dtype=np.float32)
      fast_dot(vec, mat, output)
      npt.assert_array_equal(np.asarray([2, 2]), output)
  
      vec = np.asarray([1, 2], dtype=np.double)
      mat = np.asarray([[1, 2], [3, 4]], dtype=np.double)
      output = np.zeros(mat.shape[0], dtype=np.double)
      fast_dot(vec, mat, output)
      npt.assert_array_equal(np.asarray([5, 11]), output)
  
imports: import unittest
  import numpy
  import numpy.testing
  from cornac.utils import fast_dot
label_desc: Use image node_id 1 for calling the TestFastDot obj's underlying member method code with example usage: obj.test_fast_dot() without return types