Java Doc for IntegerSquareMatrix.java in  » Science » JSci » JSci » maths » matrices » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Science » JSci » JSci.maths.matrices 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   JSci.maths.matrices.Matrix
      JSci.maths.matrices.AbstractIntegerMatrix
         JSci.maths.matrices.AbstractIntegerSquareMatrix
            JSci.maths.matrices.IntegerSquareMatrix

IntegerSquareMatrix
public class IntegerSquareMatrix extends AbstractIntegerSquareMatrix (Code)
The IntegerSquareMatrix class provides an object for encapsulating integer square matrices.
version:
   2.2
author:
   Mark Hale


Field Summary
final protected  intmatrix
     Array containing the elements of the matrix.

Constructor Summary
public  IntegerSquareMatrix(int array)
     Constructs a matrix by wrapping an array.
public  IntegerSquareMatrix(int size)
     Constructs an empty matrix.
public  IntegerSquareMatrix(AbstractIntegerVector array)
     Constructs a matrix from an array of vectors (columns).

Method Summary
public  AbstractIntegerSquareMatrixadd(AbstractIntegerSquareMatrix m)
     Returns the addition of this matrix and another.
public  IntegerSquareMatrixadd(IntegerSquareMatrix m)
    
public  AbstractDoubleSquareMatrix[]choleskyDecompose()
     Returns the Cholesky decomposition of this matrix.
public  intdet()
     Returns the determinant.
public  AbstractIntegerSquareMatrixdirectSum(AbstractIntegerSquareMatrix m)
     Returns the direct sum of this matrix and another.
public  booleanequals(AbstractIntegerMatrix m, double tol)
     Compares two ${nativeTyp} matrices for equality.
public  doublefrobeniusNorm()
     Returns the Frobenius or Hilbert-Schmidt (l2) norm.
public  intgetElement(int i, int j)
     Returns an element of the matrix.
public  intinfNorm()
     Returns the linfinity-norm.
public  AbstractDoubleSquareMatrixinverse()
     Returns the inverse of this matrix.
final public  AbstractDoubleSquareMatrix[]luDecompose(int pivot)
     Returns the LU decomposition of this matrix.
Parameters:
  pivot - an empty array of length rows()+1to hold the pivot information (null if not interested).The last array element will contain the parity.
final public  AbstractDoubleSquareMatrix[]luDecompose()
     Returns the LU decomposition of this matrix.
public  AbstractIntegerVectormultiply(AbstractIntegerVector v)
     Returns the multiplication of a vector by this matrix.
public  AbstractIntegerSquareMatrixmultiply(AbstractIntegerSquareMatrix m)
     Returns the multiplication of this matrix and another.
public  IntegerSquareMatrixmultiply(IntegerSquareMatrix m)
    
public  AbelianGroup.Membernegate()
     Returns the negative of this matrix.
public  AbstractDoubleSquareMatrix[]qrDecompose()
     Returns the QR decomposition of this matrix.
public  AbstractIntegerMatrixscalarMultiply(int x)
     Returns the multiplication of this matrix by a scalar.
Parameters:
  x - a int.
public  intscalarProduct(AbstractIntegerSquareMatrix m)
     Returns the scalar product of this matrix and another.
public  intscalarProduct(IntegerSquareMatrix m)
    
public  voidsetElement(int i, int j, int x)
     Sets the value of an element of the matrix.
public  AbstractDoubleSquareMatrix[]singularValueDecompose()
     Returns the singular value decomposition of this matrix.
public  AbstractIntegerSquareMatrixsubtract(AbstractIntegerSquareMatrix m)
     Returns the subtraction of this matrix by another.
public  IntegerSquareMatrixsubtract(IntegerSquareMatrix m)
    
public  AbstractIntegerSquareMatrixtensor(AbstractIntegerSquareMatrix m)
     Returns the tensor product of this matrix and another.
public  AbstractComplexMatrixtoComplexMatrix()
     Converts this matrix to a complex matrix.
public  AbstractDoubleMatrixtoDoubleMatrix()
     Converts this matrix to a double matrix.
public  StringtoString()
     Returns a string representing this matrix.
public  inttrace()
     Returns the trace.
public  Matrixtranspose()
     Returns the transpose of this matrix.

Field Detail
matrix
final protected int matrix(Code)
Array containing the elements of the matrix.




Constructor Detail
IntegerSquareMatrix
public IntegerSquareMatrix(int array)(Code)
Constructs a matrix by wrapping an array.
Parameters:
  array - an assigned value



IntegerSquareMatrix
public IntegerSquareMatrix(int size)(Code)
Constructs an empty matrix.



IntegerSquareMatrix
public IntegerSquareMatrix(AbstractIntegerVector array)(Code)
Constructs a matrix from an array of vectors (columns).
Parameters:
  array - an assigned value




Method Detail
add
public AbstractIntegerSquareMatrix add(AbstractIntegerSquareMatrix m)(Code)
Returns the addition of this matrix and another.
Parameters:
  m - a int matrix
exception:
  MatrixDimensionException - If the matrices are different sizes.



add
public IntegerSquareMatrix add(IntegerSquareMatrix m)(Code)



choleskyDecompose
public AbstractDoubleSquareMatrix[] choleskyDecompose()(Code)
Returns the Cholesky decomposition of this matrix. Matrix must be symmetric and positive definite. an array with [0] containing the L-matrix and [1] containing the U-matrix.



det
public int det()(Code)
Returns the determinant.



directSum
public AbstractIntegerSquareMatrix directSum(AbstractIntegerSquareMatrix m)(Code)
Returns the direct sum of this matrix and another.



equals
public boolean equals(AbstractIntegerMatrix m, double tol)(Code)
Compares two ${nativeTyp} matrices for equality.
Parameters:
  m - a int matrix



frobeniusNorm
public double frobeniusNorm()(Code)
Returns the Frobenius or Hilbert-Schmidt (l2) norm.



getElement
public int getElement(int i, int j)(Code)
Returns an element of the matrix.
Parameters:
  i - row index of the element
Parameters:
  j - column index of the element
exception:
  MatrixDimensionException - If attempting to access an invalid element.



infNorm
public int infNorm()(Code)
Returns the linfinity-norm.
author:
   Taber Smith



inverse
public AbstractDoubleSquareMatrix inverse()(Code)
Returns the inverse of this matrix. a double square matrix.



luDecompose
final public AbstractDoubleSquareMatrix[] luDecompose(int pivot)(Code)
Returns the LU decomposition of this matrix.
Parameters:
  pivot - an empty array of length rows()+1to hold the pivot information (null if not interested).The last array element will contain the parity. an array with [0] containing the L-matrixand [1] containing the U-matrix.



luDecompose
final public AbstractDoubleSquareMatrix[] luDecompose()(Code)
Returns the LU decomposition of this matrix. Warning: no pivoting. an array with [0] containing the L-matrixand [1] containing the U-matrix.



multiply
public AbstractIntegerVector multiply(AbstractIntegerVector v)(Code)
Returns the multiplication of a vector by this matrix.
Parameters:
  v - a int vector.
exception:
  DimensionException - If the matrix and vector are incompatible.



multiply
public AbstractIntegerSquareMatrix multiply(AbstractIntegerSquareMatrix m)(Code)
Returns the multiplication of this matrix and another.
Parameters:
  m - a int matrix a AbstractIntegerMatrix or a AbstractIntegerSquareMatrix as appropriate
exception:
  MatrixDimensionException - If the matrices are incompatible.



multiply
public IntegerSquareMatrix multiply(IntegerSquareMatrix m)(Code)



negate
public AbelianGroup.Member negate()(Code)
Returns the negative of this matrix.



qrDecompose
public AbstractDoubleSquareMatrix[] qrDecompose()(Code)
Returns the QR decomposition of this matrix. Based on the code from JAMA (public domain). an array with [0] containing the Q-matrix and [1] containing the R-matrix.



scalarMultiply
public AbstractIntegerMatrix scalarMultiply(int x)(Code)
Returns the multiplication of this matrix by a scalar.
Parameters:
  x - a int. a int square matrix.



scalarProduct
public int scalarProduct(AbstractIntegerSquareMatrix m)(Code)
Returns the scalar product of this matrix and another.
Parameters:
  m - a int matrix.
exception:
  MatrixDimensionException - If the matrices are different sizes.



scalarProduct
public int scalarProduct(IntegerSquareMatrix m)(Code)



setElement
public void setElement(int i, int j, int x)(Code)
Sets the value of an element of the matrix. Should only be used to initialise this matrix.
Parameters:
  i - row index of the element
Parameters:
  j - column index of the element
Parameters:
  x - a number
exception:
  MatrixDimensionException - If attempting to access an invalid element.



singularValueDecompose
public AbstractDoubleSquareMatrix[] singularValueDecompose()(Code)
Returns the singular value decomposition of this matrix. Based on the code from JAMA (public domain). an array with [0] containing the U-matrix, [1] containing the S-matrix and [2] containing the V-matrix.



subtract
public AbstractIntegerSquareMatrix subtract(AbstractIntegerSquareMatrix m)(Code)
Returns the subtraction of this matrix by another.
Parameters:
  m - a int matrix
exception:
  MatrixDimensionException - If the matrices are different sizes.



subtract
public IntegerSquareMatrix subtract(IntegerSquareMatrix m)(Code)



tensor
public AbstractIntegerSquareMatrix tensor(AbstractIntegerSquareMatrix m)(Code)
Returns the tensor product of this matrix and another.



toComplexMatrix
public AbstractComplexMatrix toComplexMatrix()(Code)
Converts this matrix to a complex matrix. a complex matrix



toDoubleMatrix
public AbstractDoubleMatrix toDoubleMatrix()(Code)
Converts this matrix to a double matrix. a double matrix



toString
public String toString()(Code)
Returns a string representing this matrix.



trace
public int trace()(Code)
Returns the trace.



transpose
public Matrix transpose()(Code)
Returns the transpose of this matrix. a int matrix



Fields inherited from JSci.maths.matrices.AbstractIntegerSquareMatrix
protected transient AbstractDoubleSquareMatrix[] LU(Code)(Java Doc)
protected transient int[] LUpivot(Code)(Java Doc)

Methods inherited from JSci.maths.matrices.AbstractIntegerSquareMatrix
final public AbstractIntegerMatrix add(AbstractIntegerMatrix m)(Code)(Java Doc)
public AbstractIntegerSquareMatrix add(AbstractIntegerSquareMatrix m)(Code)(Java Doc)
public AbstractDoubleSquareMatrix[] choleskyDecompose()(Code)(Java Doc)
public int det()(Code)(Java Doc)
public AbstractIntegerSquareMatrix directSum(AbstractIntegerSquareMatrix m)(Code)(Java Doc)
public AbstractDoubleSquareMatrix inverse()(Code)(Java Doc)
public boolean isSymmetric()(Code)(Java Doc)
public boolean isUnitary()(Code)(Java Doc)
public AbstractDoubleSquareMatrix[] luDecompose(int pivot)(Code)(Java Doc)
public AbstractDoubleSquareMatrix[] luDecompose()(Code)(Java Doc)
public AbstractIntegerSquareMatrix multiply(AbstractIntegerSquareMatrix m)(Code)(Java Doc)
public AbelianGroup.Member negate()(Code)(Java Doc)
public AbstractDoubleSquareMatrix[] qrDecompose()(Code)(Java Doc)
public AbstractIntegerMatrix scalarMultiply(int x)(Code)(Java Doc)
final public int scalarProduct(AbstractIntegerMatrix m)(Code)(Java Doc)
public int scalarProduct(AbstractIntegerSquareMatrix m)(Code)(Java Doc)
public AbstractDoubleSquareMatrix[] singularValueDecompose()(Code)(Java Doc)
final public AbstractIntegerMatrix subtract(AbstractIntegerMatrix m)(Code)(Java Doc)
public AbstractIntegerSquareMatrix subtract(AbstractIntegerSquareMatrix m)(Code)(Java Doc)
public AbstractIntegerSquareMatrix tensor(AbstractIntegerSquareMatrix m)(Code)(Java Doc)
public AbstractComplexMatrix toComplexMatrix()(Code)(Java Doc)
public AbstractDoubleMatrix toDoubleMatrix()(Code)(Java Doc)
public int trace()(Code)(Java Doc)
public Matrix transpose()(Code)(Java Doc)

Methods inherited from JSci.maths.matrices.AbstractIntegerMatrix
final public AbelianGroup.Member add(AbelianGroup.Member m)(Code)(Java Doc)
public AbstractIntegerMatrix add(AbstractIntegerMatrix m)(Code)(Java Doc)
public AbstractIntegerMatrix directSum(AbstractIntegerMatrix m)(Code)(Java Doc)
final public boolean equals(Object obj)(Code)(Java Doc)
final public boolean equals(AbstractIntegerMatrix m)(Code)(Java Doc)
public boolean equals(AbstractIntegerMatrix m, double tol)(Code)(Java Doc)
public double frobeniusNorm()(Code)(Java Doc)
abstract public int getElement(int i, int j)(Code)(Java Doc)
final public Object getSet()(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
public int infNorm()(Code)(Java Doc)
public AbstractIntegerVector multiply(AbstractIntegerVector v)(Code)(Java Doc)
final public Ring.Member multiply(Ring.Member m)(Code)(Java Doc)
public AbstractIntegerMatrix multiply(AbstractIntegerMatrix m)(Code)(Java Doc)
public AbelianGroup.Member negate()(Code)(Java Doc)
final public VectorSpace.Member scalarDivide(Field.Member x)(Code)(Java Doc)
final public Module.Member scalarMultiply(Ring.Member x)(Code)(Java Doc)
public AbstractIntegerMatrix scalarMultiply(int x)(Code)(Java Doc)
public int scalarProduct(AbstractIntegerMatrix m)(Code)(Java Doc)
abstract public void setElement(int i, int j, int x)(Code)(Java Doc)
final public AbelianGroup.Member subtract(AbelianGroup.Member m)(Code)(Java Doc)
public AbstractIntegerMatrix subtract(AbstractIntegerMatrix m)(Code)(Java Doc)
public AbstractIntegerMatrix tensor(AbstractIntegerMatrix m)(Code)(Java Doc)
public AbstractComplexMatrix toComplexMatrix()(Code)(Java Doc)
public AbstractDoubleMatrix toDoubleMatrix()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
public Matrix transpose()(Code)(Java Doc)

Fields inherited from JSci.maths.matrices.Matrix
final protected int numCols(Code)(Java Doc)
final protected int numRows(Code)(Java Doc)

Methods inherited from JSci.maths.matrices.Matrix
final public int columns()(Code)(Java Doc)
protected static String getInvalidElementMsg(int i, int j)(Code)(Java Doc)
final public int rows()(Code)(Java Doc)
abstract public Matrix transpose()(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.