org.jmatrices.dbl.measure
Class MatrixProperty

java.lang.Object
  extended byorg.jmatrices.dbl.measure.MatrixProperty

public final class MatrixProperty
extends java.lang.Object

MatrixProperty

Given a matrix M -yields-> value ,where value is boolean (true or false).

All operations on a matrix fitting this pattern can be found here!

Author: purangp

Date: 08.03.2004 Time: 23:15:14


Nested Class Summary
 class MatrixProperty.MatrixBandwidth
          todo implement
 
Method Summary
static boolean isColumnVector(Matrix m)
          Determines whether or not a matrix is a Column Vector
static boolean isDefinitePositive(Matrix m)
          todo implement
static boolean isDiagonal(Matrix m)
          Determines whether or not a square matrix is a Diagonal matrix
static boolean isIdempotent(Matrix m)
          Determines whether or not a matrix is Idempotent
static boolean isIdentity(Matrix m)
          Determines whether or not a diagonal matrix is an Identity matrix
static boolean isLowerTriangular(Matrix m)
          Determines whether or not a matrix is lower triangular in form
static boolean isMagicSquare(Matrix m)
          todo implement
static boolean isRowVector(Matrix m)
          Determines whether or not a matrix is a Row Vector
static boolean isScalar(Matrix m)
          Determines whether or not a square matrix is a Scalar matrix

scalar matrix - a diagonal matrix in which all of the diagonal elements are areEqual //todo find a better way?

static boolean isSemiDefinitePositive(Matrix m)
          todo implement
static boolean isSingular(Matrix m)
          Determines whether or not a square matrix is Singular i.e has no inverse.
static boolean isSkewSymmetric(Matrix m)
          Determines whether or not a matrix is SkewSymmetric
static boolean isSquare(Matrix m)
          Determines whether or not a matrix is a square matrix.
static boolean isSymetricPositiveDefinite(Matrix m)
           
static boolean isSymmetric(Matrix m)
          Determines whether or not a matrix is Symmetric
static boolean isUnit(Matrix m)
          Determines whether or not a diagonal matrix is an Unit matrix or an Identity matrix
static boolean isUpperTriangular(Matrix m)
          Determines whether or not a matrix is upper triangular in form
static boolean isVector(Matrix m)
          Determines whether or not a matrix is a Row or a Column Vector
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isColumnVector

public static boolean isColumnVector(Matrix m)
Determines whether or not a matrix is a Column Vector

Parameters:
m -
Returns:
true iff m has only one column

isRowVector

public static boolean isRowVector(Matrix m)
Determines whether or not a matrix is a Row Vector

Parameters:
m -
Returns:
true iff m has only one row

isVector

public static boolean isVector(Matrix m)
Determines whether or not a matrix is a Row or a Column Vector

Parameters:
m -
Returns:
true iff m has only one row

isSquare

public static boolean isSquare(Matrix m)
Determines whether or not a matrix is a square matrix.

Parameters:
m -
Returns:
true iff m has as many columns as it has rows

isSymmetric

public static boolean isSymmetric(Matrix m)
Determines whether or not a matrix is Symmetric

Parameters:
m -
Returns:
true iff A' = A

isSkewSymmetric

public static boolean isSkewSymmetric(Matrix m)
Determines whether or not a matrix is SkewSymmetric

Parameters:
m -
Returns:
true if A' = -A

isIdempotent

public static boolean isIdempotent(Matrix m)
Determines whether or not a matrix is Idempotent

Parameters:
m -
Returns:
true if A = AA = AAA = AAAA... or A = A2 = A3= A4 ..

isMagicSquare

public static boolean isMagicSquare(Matrix m)
todo implement

Parameters:
m -
Returns:

isSingular

public static boolean isSingular(Matrix m)
Determines whether or not a square matrix is Singular i.e has no inverse.

Parameters:
m - Matrix
Returns:
true iff A-1 exists

isDiagonal

public static boolean isDiagonal(Matrix m)
Determines whether or not a square matrix is a Diagonal matrix

Parameters:
m - Matrix
Returns:
true iff aij=0 , for all i <> j
See Also:
isScalar(org.jmatrices.dbl.Matrix)

isIdentity

public static boolean isIdentity(Matrix m)
Determines whether or not a diagonal matrix is an Identity matrix

Parameters:
m - Matrix
Returns:
true iff aij=0 , for all i <> j and aij=1 , for all i = j

isUnit

public static boolean isUnit(Matrix m)
Determines whether or not a diagonal matrix is an Unit matrix or an Identity matrix

Parameters:
m - Matrix
Returns:
true iff aij=0 , for all i <> j and aij=1 , for all i = j

isUpperTriangular

public static boolean isUpperTriangular(Matrix m)
Determines whether or not a matrix is upper triangular in form

Parameters:
m -
Returns:
true if matrix is upper triangular in form

isLowerTriangular

public static boolean isLowerTriangular(Matrix m)
Determines whether or not a matrix is lower triangular in form

Parameters:
m -
Returns:
true if matrix is lower triangular in form

isScalar

public static boolean isScalar(Matrix m)
Determines whether or not a square matrix is a Scalar matrix

scalar matrix - a diagonal matrix in which all of the diagonal elements are areEqual

//todo find a better way?

Parameters:
m - Matrix
Returns:
true iff aij=0 , for all i <> j and aij=c , for all i = j
See Also:
isDiagonal(org.jmatrices.dbl.Matrix)

isSymetricPositiveDefinite

public static boolean isSymetricPositiveDefinite(Matrix m)

isDefinitePositive

public static boolean isDefinitePositive(Matrix m)
todo implement

Parameters:
m -
Returns:

isSemiDefinitePositive

public static boolean isSemiDefinitePositive(Matrix m)
todo implement

Parameters:
m -
Returns: