[Scilab-users] overload column/row extraction
philippe
rouxph.22 at gmail.com
Tue Jun 27 22:06:52 CEST 2017
hi,
I've created a type "bigint" as an tlist :
x = tlist(['bigint','rep','signe'], tab, signe)
// tab =double vector
// signe = +-1
and then created a new type "mbigint" for "matrix of bigint" as an mlist :
M=mlist(['mbigint','display','value'],D,T)
// D =matrix of strings
// T =cell of bigint
Then I create the %mbigint_e.sci function to overload the extraction :
function r=%mbigint_e(varargin)
M=varargin($)
r=mlist(['mbigint','display','value'], M.display(varargin(1:$-1)),
M.value(varargin(1:$-1)))
endfunction
all kind of extractions works ( M(1,4); M(2,:) ; M(:,2) .... ) except
the mixed extraction on row/column like M(2:3,2:3). I don't understand
the problem, does anyone can help me ?
Philippe
More information about the users
mailing list