Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

use type signature in functions for matrix and vector

Hi,

I'm trying to create a function that takes a vector and a matrix. I want to explicitly used typed variables but I'm not sure what to type for the types matrix and vector.

Example with : fun(i:int): return 0

So what is the equivalent for this with func(M, V)? I tried func(M: matrix, V :vector) and func(M: sage.matrix, V :sage.vector) but both gave : "name 'matrix' is not defined"

Thanks in advance