1. A method for performing a linear algebra operation, the method comprising: imposing matrix elements onto a chirped optical carrier; inputting into a multi-mode optic the matrix elements imposed on the chirped optical carrier; outputting by the multi-mode optic a speckle pattern based on the matrix elements imposed on the optical carrier; and performing a linear algebra operation on the matrix elements based on the speckle pattern.