Java Doc for DenseMatrix.java in  » Science » jscience-4.3.1 » org » jscience » mathematics » vector » 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 » jscience 4.3.1 » org.jscience.mathematics.vector 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.jscience.mathematics.vector.DenseMatrix

DenseMatrix
final public class DenseMatrix extends Matrix (Code)

This class represents a matrix made of DenseVector densevectors (as rows). To create a dense matrix made of column vectors the DenseMatrix.transpose method can be used. For example:[code] DenseVector column0 = DenseVector.valueOf(...); DenseVector column1 = DenseVector.valueOf(...); DenseMatrix M = DenseMatrix.valueOf(column0, column1).transpose(); [/code]

As for any concrete org.jscience.mathematics.structure.Structurestructure , this class is declared final (otherwise most operations would have to be overridden to return the appropriate type). Specialized dense matrix should sub-class Matrix directly. For example:[code] // Extension through composition. final class TriangularMatrix > extends Matrix { private DenseMatrix _value; // Possible implementation. ... public TriangularMatrix opposite() { // Returns the right type. return TriangularMatrix.valueOf(_value.opposite()); } ... }[/code]


author:
   Jean-Marie Dautelle
version:
   3.3, January 2, 2007


Field Summary
 int_n
     Holds the number of columns n.
final  FastTable<DenseVector<F>>_rows
     Holds this matrix rows (or columns when transposed).
 boolean_transposed
     Indicates if this matrix is transposed (the rows are then the columns).


Method Summary
public  DenseMatrix<F>adjoint()
    
public  Fcofactor(int i, int j)
    
public  DenseMatrix<F>copy()
    
public  Fdeterminant()
    
public  Fget(int i, int j)
    
public  DenseVector<F>getColumn(int j)
    
public  DenseVector<F>getDiagonal()
    
public  intgetNumberOfColumns()
    
public  intgetNumberOfRows()
    
public  DenseVector<F>getRow(int i)
    
public  DenseMatrix<F>inverse()
    
public  DenseMatrix<F>minus(Matrix<F> that)
    
static  DenseMatrix<F>newInstance(int n, boolean transposed)
    
public  DenseMatrix<F>opposite()
    
public  DenseMatrix<F>plus(Matrix<F> that)
    
 voidset(int i, int j, F e)
    
public  Matrix<F>tensor(Matrix<F> that)
    
public  DenseMatrix<F>times(F k)
    
public  DenseVector<F>times(Vector<F> v)
    
public  DenseMatrix<F>times(Matrix<F> that)
    
public  DenseMatrix<F>transpose()
    
public static  DenseMatrix<F>valueOf(F[][] elements)
     Returns a dense matrix from the specified 2-dimensional array. The first dimension being the row and the second being the column.
Parameters:
  elements - this matrix elements.
public static  DenseMatrix<F>valueOf(DenseVector<F>... rows)
     Returns a dense matrix holding the specified row vectors (column vectors if DenseMatrix.transpose transposed ).
Parameters:
  rows - the row vectors.
public static  DenseMatrix<F>valueOf(List<DenseVector<F>> rows)
     Returns a dense matrix holding the row vectors from the specified collection (column vectors if DenseMatrix.transpose transposed ).
Parameters:
  rows - the list of row vectors.
public static  DenseMatrix<F>valueOf(Matrix<F> that)
     Returns a dense matrix equivalent to the specified matrix.
Parameters:
  that - the matrix to convert.
public  Vector<F>vectorization()
    

Field Detail
_n
int _n(Code)
Holds the number of columns n.



_rows
final FastTable<DenseVector<F>> _rows(Code)
Holds this matrix rows (or columns when transposed).



_transposed
boolean _transposed(Code)
Indicates if this matrix is transposed (the rows are then the columns).





Method Detail
adjoint
public DenseMatrix<F> adjoint()(Code)



cofactor
public F cofactor(int i, int j)(Code)



copy
public DenseMatrix<F> copy()(Code)



determinant
public F determinant()(Code)



get
public F get(int i, int j)(Code)



getColumn
public DenseVector<F> getColumn(int j)(Code)



getDiagonal
public DenseVector<F> getDiagonal()(Code)



getNumberOfColumns
public int getNumberOfColumns()(Code)



getNumberOfRows
public int getNumberOfRows()(Code)



getRow
public DenseVector<F> getRow(int i)(Code)



inverse
public DenseMatrix<F> inverse()(Code)



minus
public DenseMatrix<F> minus(Matrix<F> that)(Code)



newInstance
static DenseMatrix<F> newInstance(int n, boolean transposed)(Code)



opposite
public DenseMatrix<F> opposite()(Code)



plus
public DenseMatrix<F> plus(Matrix<F> that)(Code)



set
void set(int i, int j, F e)(Code)



tensor
public Matrix<F> tensor(Matrix<F> that)(Code)



times
public DenseMatrix<F> times(F k)(Code)



times
public DenseVector<F> times(Vector<F> v)(Code)



times
public DenseMatrix<F> times(Matrix<F> that)(Code)



transpose
public DenseMatrix<F> transpose()(Code)



valueOf
public static DenseMatrix<F> valueOf(F[][] elements)(Code)
Returns a dense matrix from the specified 2-dimensional array. The first dimension being the row and the second being the column.
Parameters:
  elements - this matrix elements. the matrix having the specified elements.
throws:
  DimensionException - if rows have different length.
See Also:   DenseMatrix
See Also:   



valueOf
public static DenseMatrix<F> valueOf(DenseVector<F>... rows)(Code)
Returns a dense matrix holding the specified row vectors (column vectors if DenseMatrix.transpose transposed ).
Parameters:
  rows - the row vectors. the matrix having the specified rows.
throws:
  DimensionException - if the rows do not have the same dimension.



valueOf
public static DenseMatrix<F> valueOf(List<DenseVector<F>> rows)(Code)
Returns a dense matrix holding the row vectors from the specified collection (column vectors if DenseMatrix.transpose transposed ).
Parameters:
  rows - the list of row vectors. the matrix having the specified rows.
throws:
  DimensionException - if the rows do not have the same dimension.



valueOf
public static DenseMatrix<F> valueOf(Matrix<F> that)(Code)
Returns a dense matrix equivalent to the specified matrix.
Parameters:
  that - the matrix to convert. that or a dense matrix holding the same elementsas the specified matrix.



vectorization
public Vector<F> vectorization()(Code)



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