docstr: Other implementation
docstr_tok: ["Other","implementation"]
code: def gemv_numpy2(o, W, h, iIdx, oIdx):
      """
      Other implementation
      """
      from numpy import ix_
  
      for b in range(o.shape[0]):
          w = W[ix_(iIdx[b], oIdx[b])].swapaxes(1, 2)
          w = w.reshape(
              (w.shape[0] * w.shape[1], w.shape[2] * w.shape[3])
          )
          o[b] += np.dot(h[b].ravel(), w).reshape(o.shape[1:])
      return o
  
imports: from __future__ import absolute_import, print_function, division
  import numpy
  from numpy.random import randn
  import theano
  from theano import tensor
  import theano.tests.unittest_tools
  from theano.tensor.nnet.blocksparse import sparse_block_dot, sparse_block_gemv, sparse_block_outer, SparseBlockGemv, SparseBlockOuter
label_desc: Use image node_id 5 for calling the BlockSparse_Gemv_and_Outer obj's underlying member method code with example usage: obj.gemv_numpy2(o, W, h, iIdx, oIdx) and returns: o