title: creating a row vector in java matrix toolkit (MTJ)
body: <p>I need to implement a multiplication formula where an row matrix of size 'n' is to be multiplied by an n*n matrix..</p>
  
  <p>I have used DenseMatrix class to create the n*n matrix from a 2D array...but my problem is how to create a row Vector...</p>
  
  <p>I can use the CompRowMatrix class to create a row matrix...but for that, input must be of 'Matrix'..but Matrix is an interface..can't instantiate it..the first constructor of <a href="http://www.inf.uni-konstanz.de/algo/lehre/ws05/pp/mtj/smt/CompRowMatrix.html" rel="nofollow"> CompRowMatrix class </a> states it requires a 'non-zero array of indices' as input..but i am unable to understand what is this non-zero array of indices??</p>
  
  <p>also, I can create a vector with <a href="http://www.inf.uni-konstanz.de/algo/lehre/ws05/pp/mtj/mt/DenseVector.html" rel="nofollow"> DenseVector </a> or any other suitable class..but there seems to be no method to directly multiply a vector with a matrix..</p>
  
  <p>plz help</p>