class_docstr: Tests of CGemv specifically.
  
  Generic tests of Gemv-compatibility, including both dtypes are
  done below in TestCGemvFloat32 and TestCGemvFloat64
class_docstr_tok: ["Tests","of","CGemv","specifically",".","Generic","tests","of","Gemv-compatibility",",","including","both","dtypes","are","done","below","in","TestCGemvFloat32","and","TestCGemvFloat64"]
code: def test_gemv_dimensions(self, dtype="float32"):
      alpha = theano.shared(
          theano._asarray(1.0, dtype=dtype), name="alpha"
      )
      beta = theano.shared(
          theano._asarray(1.0, dtype=dtype), name="beta"
      )
  
      z = beta * self.y + alpha * tensor.dot(self.A, self.x)
      f = theano.function([self.A, self.x, self.y], z, mode=self.mode)
  
      # Matrix value
      A_val = np.ones((5, 3), dtype=dtype)
      # Different vector length
      ones_3 = np.ones(3, dtype=dtype)
      ones_4 = np.ones(4, dtype=dtype)
      ones_5 = np.ones(5, dtype=dtype)
      ones_6 = np.ones(6, dtype=dtype)
  
      f(A_val, ones_3, ones_5)
      f(A_val[::-1, ::-1], ones_3, ones_5)
      self.assertRaises(ValueError, f, A_val, ones_4, ones_5)
      self.assertRaises(ValueError, f, A_val, ones_3, ones_6)
      self.assertRaises(ValueError, f, A_val, ones_4, ones_6)
  
imports: from __future__ import absolute_import, print_function, division
  import sys
  import numpy
  from unittest import TestCase
  from nose.plugins.skip import SkipTest
  import theano
  import theano.tensor
  from theano.tensor.blas_c import CGer
  from theano.tensor.blas_scipy import ScipyGer
  from theano.tensor.blas import Ger
  from theano.tensor.blas_c import CGemv
  from theano.tensor.blas import Gemv
  from theano.tensor.blas_c import check_force_gemv_init
  from theano.tests import unittest_tools
  from theano.tests.unittest_tools import TestOptimizationMixin
  from theano.tensor.tests.test_blas import BaseGemv, TestBlasStrides
label_desc: Use image node_id 8 for calling the TestCGemv obj's underlying member method code with example usage: obj.test_gemv_dimensions(dtype) without return types