Java Doc for DoubleMatrix.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.AbstractDoubleMatrix
         JSci.maths.matrices.DoubleMatrix

DoubleMatrix
public class DoubleMatrix extends AbstractDoubleMatrix (Code)
The DoubleMatrix class provides an object for encapsulating double matrices.
version:
   2.2
author:
   Mark Hale


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

Constructor Summary
public  DoubleMatrix(double array)
     Constructs a matrix by wrapping an array.
public  DoubleMatrix(int rows, int cols)
     Constructs an empty matrix.
public  DoubleMatrix(AbstractDoubleVector array)
     Constructs a matrix from an array of vectors (columns).

Method Summary
public  AbstractDoubleMatrixadd(AbstractDoubleMatrix m)
     Returns the addition of this matrix and another.
public  AbstractDoubleMatrixdirectSum(AbstractDoubleMatrix m)
     Returns the direct sum of this matrix and another.
public  booleanequals(AbstractDoubleMatrix m, double tol)
     Compares two ${nativeTyp} matrices for equality.
public  doublefrobeniusNorm()
     Returns the Frobenius or Hilbert-Schmidt (l2) norm.
public  doublegetElement(int i, int j)
     Returns an element of the matrix.
public  doubleinfNorm()
     Returns the linfinity-norm.
public  AbstractDoubleMatrixmapElements(Mapping f)
     Applies a function on all the matrix elements.
public  AbstractDoubleVectormultiply(AbstractDoubleVector v)
     Returns the multiplication of a vector by this matrix.
public  AbstractDoubleMatrixmultiply(AbstractDoubleMatrix m)
     Returns the multiplication of this matrix and another.
public  AbstractDoubleMatrixmultiply(DoubleMatrix m)
    
public  AbelianGroup.Membernegate()
     Returns the negative of this matrix.
public  AbstractDoubleMatrixscalarDivide(double x)
     Returns the division of this matrix by a scalar.
Parameters:
  x - a double.
public  AbstractDoubleMatrixscalarMultiply(double x)
     Returns the multiplication of this matrix by a scalar.
Parameters:
  x - a double.
public  doublescalarProduct(AbstractDoubleMatrix m)
     Returns the scalar product of this matrix and another.
public  doublescalarProduct(DoubleMatrix m)
    
public  voidsetElement(int i, int j, double x)
     Sets the value of an element of the matrix.
public  AbstractDoubleMatrixsubtract(AbstractDoubleMatrix m)
     Returns the subtraction of this matrix by another.
public  AbstractDoubleMatrixtensor(AbstractDoubleMatrix m)
     Returns the tensor product of this matrix and another.
public  AbstractComplexMatrixtoComplexMatrix()
     Converts this matrix to a complex matrix.
public  AbstractIntegerMatrixtoIntegerMatrix()
     Converts this matrix to an integer matrix.
public  StringtoString()
     Returns a string representing this matrix.
public  Matrixtranspose()
     Returns the transpose of this matrix.

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




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



DoubleMatrix
public DoubleMatrix(int rows, int cols)(Code)
Constructs an empty matrix.



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




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



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



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



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



getElement
public double 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 double infNorm()(Code)
Returns the linfinity-norm.
author:
   Taber Smith



mapElements
public AbstractDoubleMatrix mapElements(Mapping f)(Code)
Applies a function on all the matrix elements.
Parameters:
  f - a user-defined function a double matrix



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



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



multiply
public AbstractDoubleMatrix multiply(DoubleMatrix m)(Code)



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



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



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



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



scalarProduct
public double scalarProduct(DoubleMatrix m)(Code)



setElement
public void setElement(int i, int j, double 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.



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



tensor
public AbstractDoubleMatrix tensor(AbstractDoubleMatrix 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



toIntegerMatrix
public AbstractIntegerMatrix toIntegerMatrix()(Code)
Converts this matrix to an integer matrix. an integer matrix



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



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



Methods inherited from JSci.maths.matrices.AbstractDoubleMatrix
final public AbelianGroup.Member add(AbelianGroup.Member m)(Code)(Java Doc)
public AbstractDoubleMatrix add(AbstractDoubleMatrix m)(Code)(Java Doc)
public AbstractDoubleMatrix directSum(AbstractDoubleMatrix m)(Code)(Java Doc)
final public boolean equals(Object obj)(Code)(Java Doc)
final public boolean equals(AbstractDoubleMatrix m)(Code)(Java Doc)
public boolean equals(AbstractDoubleMatrix m, double tol)(Code)(Java Doc)
public double frobeniusNorm()(Code)(Java Doc)
abstract public double getElement(int i, int j)(Code)(Java Doc)
final public Object getSet()(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
public double infNorm()(Code)(Java Doc)
public AbstractDoubleMatrix mapElements(Mapping f)(Code)(Java Doc)
public AbstractDoubleVector multiply(AbstractDoubleVector v)(Code)(Java Doc)
final public Ring.Member multiply(Ring.Member m)(Code)(Java Doc)
public AbstractDoubleMatrix multiply(AbstractDoubleMatrix m)(Code)(Java Doc)
public AbelianGroup.Member negate()(Code)(Java Doc)
final public VectorSpace.Member scalarDivide(Field.Member x)(Code)(Java Doc)
public AbstractDoubleMatrix scalarDivide(double x)(Code)(Java Doc)
final public Module.Member scalarMultiply(Ring.Member x)(Code)(Java Doc)
public AbstractDoubleMatrix scalarMultiply(double x)(Code)(Java Doc)
public double scalarProduct(AbstractDoubleMatrix m)(Code)(Java Doc)
abstract public void setElement(int i, int j, double x)(Code)(Java Doc)
final public AbelianGroup.Member subtract(AbelianGroup.Member m)(Code)(Java Doc)
public AbstractDoubleMatrix subtract(AbstractDoubleMatrix m)(Code)(Java Doc)
public AbstractDoubleMatrix tensor(AbstractDoubleMatrix m)(Code)(Java Doc)
public AbstractComplexMatrix toComplexMatrix()(Code)(Java Doc)
public AbstractIntegerMatrix toIntegerMatrix()(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.