Open datang1992 opened 10 years ago
Probably submat() will be better I think.
From my iPhone
ÔÚ 2014Äê7ÔÂ31ÈÕ£¬4:04£¬Da Tang notifications@github.com дµÀ£º
We could add slice() and size() functions for Matrix. Where
slice(Matrix M, Integer a, Integer b, Integer c, Integer d) = M(a:b, c:d) (as it is in Matlab).
and
size(Matrix M, 1) = number of rows in M; size(Matrix M, 2) = number of columns in M;
(Or we could also call the two size functions as numOfRow() and numOfColumn()).
¡ª Reply to this email directly or view it on GitHub.
question, can you define it within blog (using fixed function)?
@lileicc Yes, we could define these functions using fixed functions. If you approve, I will add them.
We could add slice() and size() functions for Matrix. Where
slice(Matrix M, Integer a, Integer b, Integer c, Integer d) = M(a:b, c:d) (as it is in Matlab).
and
size(Matrix M, 1) = number of rows in M; size(Matrix M, 2) = number of columns in M;
(Or we could also call the two size functions as numOfRow() and numOfColumn()).