Lines Matching refs:scalars
596 def __init__ (self, numCols, numRows, scalars): argument
597 assert len(scalars) == numRows*numCols
600 self.scalars = scalars
604 scalars = []
607 scalars.append(1.0 if col == row else 0.0)
608 return Mat(numCols, numRows, scalars)
613 return self.scalars[colNdx*self.numRows + rowNdx]
618 self.scalars[colNdx*self.numRows + rowNdx] = scalar
644 return "%s(%s)" % (self.typeString(), ", ".join([str(s) for s in self.scalars]))
651 return (self.scalars == other.scalars)
655 …return Mat(self.numRows, self.numCols, [self.scalars(i) * val.scalars(i) for i in range(self.numRo…