Lines Matching refs:scalars
574 def __init__ (self, numCols, numRows, scalars): argument
575 assert len(scalars) == numRows*numCols
578 self.scalars = scalars
582 scalars = []
585 scalars.append(1.0 if col == row else 0.0)
586 return Mat(numCols, numRows, scalars)
591 return self.scalars[colNdx*self.numRows + rowNdx]
596 self.scalars[colNdx*self.numRows + rowNdx] = scalar
622 return "%s(%s)" % (self.typeString(), ", ".join([str(s) for s in self.scalars]))
629 return (self.scalars == other.scalars)
633 …return Mat(self.numRows, self.numCols, [self.scalars(i) * val.scalars(i) for i in range(self.numRo…