def dot(self, matrix):
        if isinstance(matrix, IndexMatrix):
            return self._new_instance(self.matrix.dot(matrix.matrix), col2word=matrix.col2word, row2word=self.row2word)
        else:
            raise TypeError("Can only operate on IndexMatrix instances")
Create a new pivot model instance.
dataset/ETHPy150Open jimmycallin/pydsm/pydsm/indexmatrix.py/IndexMatrix.dot--crossover with--dataset/ETHPy150Open sdispater/orator/orator/orm/relations/belongs_to_many.py/BelongsToMany.new_pivot