In Scala operators (such as +, -, *, ++, etc.) are just methods. For instance, 1 + 2 can be written as 1.+(2). These sorts of methods are called 'infix operators'.
This means custom methods can be defined on your own types, reusing these operators:
class Matrix(rows: Int, cols: Int, val data: Seq[...