## File: Matrix-properties.html

package info (click to toggle)
gsl-ref-html 2.3-1
• area: non-free
• in suites: bullseye, buster, sid
• size: 6,876 kB
• ctags: 4,574
• sloc: makefile: 35
 file content (99 lines) | stat: -rw-r--r-- 5,268 bytes parent folder | download
 `123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899` `````` GNU Scientific Library – Reference Manual: Matrix properties

8.4.12 Matrix properties

The following functions are defined for real and complex matrices. For complex matrices both the real and imaginary parts must satisfy the conditions.

Function: int gsl_matrix_isnull (const gsl_matrix * m)
Function: int gsl_matrix_ispos (const gsl_matrix * m)
Function: int gsl_matrix_isneg (const gsl_matrix * m)
Function: int gsl_matrix_isnonneg (const gsl_matrix * m)

These functions return 1 if all the elements of the matrix m are zero, strictly positive, strictly negative, or non-negative respectively, and 0 otherwise. To test whether a matrix is positive-definite, use the Cholesky decomposition (see Cholesky Decomposition).

Function: int gsl_matrix_equal (const gsl_matrix * a, const gsl_matrix * b)

This function returns 1 if the matrices a and b are equal (by comparison of element values) and 0 otherwise.

``````