Scilab Function

lcmdiag - least common multiple diagonal factorization

Calling Sequence

[N,D]=lcmdiag(H)
[N,D]=lcmdiag(H,flag)

Parameters

Description

[N,D]=lcmdiag(H,'row') computes a factorization D*H=N, i.e. H=D^(-1)*N where D is a diagonal matrix with D(k,k)=lcm of kth row of H('den').

[N,D]=lcmdiag(H) or [N,D]=lcmdiag(H,'col) returns H=N*D^(-1) with diagonal D and D(k,k)=lcm of kth col of H('den')

Examples

See Also