Lines Matching refs:scalars
717 def __init__ (self, numCols, numRows, scalars): argument
718 assert len(scalars) == numRows*numCols
721 self.scalars = scalars
725 scalars = []
728 scalars.append(scalar if col == row else 0.0)
729 return Mat(numCols, numRows, scalars)
738 return self.scalars[colNdx*self.numRows + rowNdx]
743 self.scalars[colNdx*self.numRows + rowNdx] = scalar
769 return "%s(%s)" % (self.typeString(), ", ".join(["%s" % s for s in self.scalars]))
776 return (self.scalars == other.scalars)
780 …return Mat(self.numRows, self.numCols, [self.scalars(i) * val.scalars(i) for i in range(self.numRo…