Java Doc for ComplexMatrix.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.AbstractComplexMatrix
         JSci.maths.matrices.ComplexMatrix

ComplexMatrix
public class ComplexMatrix extends AbstractComplexMatrix (Code)
The ComplexMatrix class provides an object for encapsulating matrices containing complex numbers.
version:
   2.2
author:
   Mark Hale


Field Summary
protected  doublematrixRematrixIm
     Arrays containing the elements of the matrix.

Constructor Summary
public  ComplexMatrix(int rows, int cols)
     Constructs an empty matrix.
public  ComplexMatrix(double arrayRe, double arrayIm)
     Constructs a matrix by wrapping two arrays.
public  ComplexMatrix(Complex array)
     Constructs a matrix from an array.
public  ComplexMatrix(ComplexVector array)
     Constructs a matrix from an array of vectors (columns).

Method Summary
public  AbstractComplexMatrixadd(AbstractComplexMatrix m)
     Returns the addition of this matrix and another.
public  ComplexMatrixadd(ComplexMatrix m)
    
public  AbstractComplexMatrixconjugate()
     Returns the complex conjugate of this matrix.
public  AbstractComplexMatrixdirectSum(AbstractComplexMatrix m)
     Returns the direct sum of this matrix and another.
public  booleanequals(AbstractComplexMatrix m, double tol)
     Compares two complex matrices for equality.
public  doublefrobeniusNorm()
     Returns the Frobenius or Hilbert-Schmidt (l2) norm.
public  ComplexgetElement(int i, int j)
     Returns an element of the matrix.
public  doublegetImagElement(int i, int j)
    
public  doublegetRealElement(int i, int j)
    
public  inthashCode()
     Returns a hashcode for this matrix.
public  AbstractComplexMatrixhermitianAdjoint()
     Returns the hermitian adjoint of this matrix.
public  AbstractDoubleMatriximag()
     Returns the imaginary part of this complex matrix.
public  doubleinfNorm()
     Returns the linfinity-norm.
public  AbstractComplexMatrixmapElements(ComplexMapping f)
     Applies a function on all the matrix elements.
public  AbstractComplexVectormultiply(AbstractComplexVector v)
     Returns the multiplication of a vector by this matrix.
public  AbstractComplexMatrixmultiply(AbstractComplexMatrix m)
     Returns the multiplication of this matrix and another.
public  AbstractComplexMatrixmultiply(ComplexMatrix m)
    
public  AbelianGroup.Membernegate()
     Returns the negative of this matrix.
public  AbstractDoubleMatrixreal()
     Returns the real part of this complex matrix.
public  AbstractComplexMatrixscalarDivide(Complex z)
     Returns the division of this matrix by a scalar.
public  AbstractComplexMatrixscalarDivide(double x)
     Returns the division of this matrix by a scalar.
public  AbstractComplexMatrixscalarMultiply(Complex z)
     Returns the multiplication of this matrix by a scalar.
public  AbstractComplexMatrixscalarMultiply(double x)
     Returns the multiplication of this matrix by a scalar.
public  voidsetElement(int i, int j, Complex z)
     Sets the value of an element of the matrix.
public  voidsetElement(int i, int j, double x, double y)
     Sets the value of an element of the matrix.
public  AbstractComplexMatrixsubtract(AbstractComplexMatrix m)
     Returns the subtraction of this matrix by another.
public  ComplexMatrixsubtract(ComplexMatrix m)
    
public  AbstractComplexMatrixtensor(AbstractComplexMatrix m)
     Returns the tensor product of this matrix and another.
public  StringtoString()
     Returns a string representing this matrix.
public  Matrixtranspose()
     Returns the transpose of this matrix.

Field Detail
matrixRematrixIm
protected double matrixRematrixIm(Code)
Arrays containing the elements of the matrix.




Constructor Detail
ComplexMatrix
public ComplexMatrix(int rows, int cols)(Code)
Constructs an empty matrix.
Parameters:
  rows - the number of rows
Parameters:
  cols - the number of columns



ComplexMatrix
public ComplexMatrix(double arrayRe, double arrayIm)(Code)
Constructs a matrix by wrapping two arrays.
Parameters:
  arrayRe - an array of real values
Parameters:
  arrayIm - an array of imaginary values



ComplexMatrix
public ComplexMatrix(Complex array)(Code)
Constructs a matrix from an array.
Parameters:
  array - an assigned value



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




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



add
public ComplexMatrix add(ComplexMatrix m)(Code)



conjugate
public AbstractComplexMatrix conjugate()(Code)
Returns the complex conjugate of this matrix. a complex matrix



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



equals
public boolean equals(AbstractComplexMatrix m, double tol)(Code)
Compares two complex matrices for equality.
Parameters:
  m - a complex matrix



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



getElement
public Complex 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.



getImagElement
public double getImagElement(int i, int j)(Code)



getRealElement
public double getRealElement(int i, int j)(Code)



hashCode
public int hashCode()(Code)
Returns a hashcode for this matrix.



hermitianAdjoint
public AbstractComplexMatrix hermitianAdjoint()(Code)
Returns the hermitian adjoint of this matrix. a complex matrix



imag
public AbstractDoubleMatrix imag()(Code)
Returns the imaginary part of this complex matrix. a double matrix



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



mapElements
public AbstractComplexMatrix mapElements(ComplexMapping f)(Code)
Applies a function on all the matrix elements.
Parameters:
  f - a user-defined function a complex matrix



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



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



multiply
public AbstractComplexMatrix multiply(ComplexMatrix m)(Code)



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



real
public AbstractDoubleMatrix real()(Code)
Returns the real part of this complex matrix. a double matrix



scalarDivide
public AbstractComplexMatrix scalarDivide(Complex z)(Code)
Returns the division of this matrix by a scalar.
Parameters:
  z - a complex number a complex matrix



scalarDivide
public AbstractComplexMatrix scalarDivide(double x)(Code)
Returns the division of this matrix by a scalar.
Parameters:
  x - a double a complex matrix



scalarMultiply
public AbstractComplexMatrix scalarMultiply(Complex z)(Code)
Returns the multiplication of this matrix by a scalar.
Parameters:
  z - a complex number a complex matrix



scalarMultiply
public AbstractComplexMatrix scalarMultiply(double x)(Code)
Returns the multiplication of this matrix by a scalar.
Parameters:
  x - a double a complex matrix



setElement
public void setElement(int i, int j, Complex z)(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:
  z - a complex number
exception:
  MatrixDimensionException - If attempting to access an invalid element.



setElement
public void setElement(int i, int j, double x, double y)(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 - the real part of a complex number
Parameters:
  y - the imaginary part of a complex number
exception:
  MatrixDimensionException - If attempting to access an invalid element.



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



subtract
public ComplexMatrix subtract(ComplexMatrix m)(Code)



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



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



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



Methods inherited from JSci.maths.matrices.AbstractComplexMatrix
final public AbelianGroup.Member add(AbelianGroup.Member m)(Code)(Java Doc)
public AbstractComplexMatrix add(AbstractComplexMatrix m)(Code)(Java Doc)
public AbstractComplexMatrix conjugate()(Code)(Java Doc)
public AbstractComplexMatrix directSum(AbstractComplexMatrix m)(Code)(Java Doc)
final public boolean equals(Object obj)(Code)(Java Doc)
final public boolean equals(AbstractComplexMatrix m)(Code)(Java Doc)
public boolean equals(AbstractComplexMatrix m, double tol)(Code)(Java Doc)
public double frobeniusNorm()(Code)(Java Doc)
abstract public Complex getElement(int i, int j)(Code)(Java Doc)
abstract public double getImagElement(int i, int j)(Code)(Java Doc)
abstract public double getRealElement(int i, int j)(Code)(Java Doc)
public Object getSet()(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
public AbstractComplexMatrix hermitianAdjoint()(Code)(Java Doc)
public AbstractDoubleMatrix imag()(Code)(Java Doc)
public double infNorm()(Code)(Java Doc)
public AbstractComplexMatrix mapElements(ComplexMapping f)(Code)(Java Doc)
public AbstractComplexVector multiply(AbstractComplexVector v)(Code)(Java Doc)
final public Ring.Member multiply(Ring.Member m)(Code)(Java Doc)
public AbstractComplexMatrix multiply(AbstractComplexMatrix m)(Code)(Java Doc)
public AbelianGroup.Member negate()(Code)(Java Doc)
public AbstractDoubleMatrix real()(Code)(Java Doc)
final public VectorSpace.Member scalarDivide(Field.Member x)(Code)(Java Doc)
public AbstractComplexMatrix scalarDivide(Complex z)(Code)(Java Doc)
public AbstractComplexMatrix scalarDivide(double x)(Code)(Java Doc)
final public Module.Member scalarMultiply(Ring.Member x)(Code)(Java Doc)
public AbstractComplexMatrix scalarMultiply(Complex z)(Code)(Java Doc)
public AbstractComplexMatrix scalarMultiply(double x)(Code)(Java Doc)
public Complex scalarProduct(AbstractComplexMatrix m)(Code)(Java Doc)
abstract public void setElement(int i, int j, Complex z)(Code)(Java Doc)
abstract public void setElement(int i, int j, double x, double y)(Code)(Java Doc)
final public AbelianGroup.Member subtract(AbelianGroup.Member m)(Code)(Java Doc)
public AbstractComplexMatrix subtract(AbstractComplexMatrix m)(Code)(Java Doc)
public AbstractComplexMatrix tensor(AbstractComplexMatrix m)(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.