help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: assist


From: Jordi Gutiérrez Hermoso
Subject: Re: assist
Date: Mon, 5 Mar 2012 06:46:17 -0500

On 4 March 2012 23:09, joseph appau <address@hidden> wrote:
>
> how do i write a function file that takes as input a matrix Ą, and
> tests wether or not the matrix is a squaren

    issquare (A)

> and diagonally dominant.

Which definition of this are you using? There are several meanings of
it. If you mean that the diagonal is larger than the sum of the
absolute values of the off-diagonal entries, you can do

    all (sum (abs (A), 2) < 2*diag(abs (A)))

HTH,
- Jordi G. H.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]