JSci.maths.matrices
Class DoubleMatrixAlgebra

java.lang.Object
  extended by JSci.maths.matrices.DoubleMatrixAlgebra
All Implemented Interfaces:
Algebra, Ring, AbelianGroup

public final class DoubleMatrixAlgebra
extends java.lang.Object
implements Algebra, Ring


Nested Class Summary
 
Nested classes/interfaces inherited from interface JSci.maths.algebras.Algebra
Algebra.Member
 
Nested classes/interfaces inherited from interface JSci.maths.fields.Ring
Ring.Member
 
Method Summary
(package private) static DoubleMatrixAlgebra get(int rows, int cols)
           
 boolean isNegative(AbelianGroup.Member a, AbelianGroup.Member b)
          Returns true if one member is the negative of the other.
 boolean isOne(Ring.Member r)
          Returns true if the member is the unit element.
 boolean isZero(AbelianGroup.Member r)
          Returns true if the member is the identity element of this group.
 Ring.Member one()
          Returns the (right) identity.
 AbelianGroup.Member zero()
          Returns the identity element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

get

static DoubleMatrixAlgebra get(int rows,
                               int cols)

one

public Ring.Member one()
Returns the (right) identity.

Specified by:
one in interface Ring

isOne

public boolean isOne(Ring.Member r)
Description copied from interface: Ring
Returns true if the member is the unit element.

Specified by:
isOne in interface Ring

zero

public AbelianGroup.Member zero()
Description copied from interface: AbelianGroup
Returns the identity element.

Specified by:
zero in interface AbelianGroup

isZero

public boolean isZero(AbelianGroup.Member r)
Description copied from interface: AbelianGroup
Returns true if the member is the identity element of this group.

Specified by:
isZero in interface AbelianGroup
Parameters:
r - a group member

isNegative

public boolean isNegative(AbelianGroup.Member a,
                          AbelianGroup.Member b)
Description copied from interface: AbelianGroup
Returns true if one member is the negative of the other.

Specified by:
isNegative in interface AbelianGroup
Parameters:
a - a group member
b - a group member