[jira] [Updated] (MATH-646) Unmodifiable views of RealVector

2011-08-22 Thread JIRA

 [ 
https://issues.apache.org/jira/browse/MATH-646?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sébastien Brisard updated MATH-646:
---

Attachment: MATH-646.patch

Here is a new patch taking into account your comments. I didn't know about 
putting several classes into the same {{*.java}} file. The problem is you 
cannot make {{UnmodifiableRealVector}} private. I therefore resorted to a 
nested class. Hope the file does not get to cluttered.

 Unmodifiable views of RealVector
 

 Key: MATH-646
 URL: https://issues.apache.org/jira/browse/MATH-646
 Project: Commons Math
  Issue Type: New Feature
Affects Versions: 3.0
Reporter: Sébastien Brisard
  Labels: linear, vector
 Attachments: MATH-646.patch, MATH-646.patch


 The issue has been discussed on the [mailing 
 list|http://mail-archives.apache.org/mod_mbox/commons-dev/201108.mbox/CAGRH7HqxUb2y1HmFt9VJ-kxsXwipk_MdO0D=rnuazmgpnot...@mail.gmail.com].
  Please find attached a proposal for a new class {{UnmodifiableRealVector}}. 
 I chose not to nest it in {{AbstractRealVector}} because it would make the 
 corresponding file huge. Therefore, {{UnmodifiableRealVector}} is {{final}}. 
 Maybe you'd like it to be {{private}} as well? A static method is provided in 
 {{AbstractRealVector}} to build an {{UnmodifiableRealVector}} from any 
 {{RealVector}}.
 Tests are also provided. Since iterating through different implementations of 
 {{RealVector}} is actually different, a test is provided for 
 {{UnmodifiableRealVector}} built on {{ArrayRealVector}} and 
 {{OpenMapRealVector}}. These tests both derive from the same abstract test 
 class. Hope everything works fine.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Updated] (MATH-646) Unmodifiable views of RealVector

2011-08-14 Thread JIRA

 [ 
https://issues.apache.org/jira/browse/MATH-646?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sébastien Brisard updated MATH-646:
---

Attachment: MATH-646.patch

 Unmodifiable views of RealVector
 

 Key: MATH-646
 URL: https://issues.apache.org/jira/browse/MATH-646
 Project: Commons Math
  Issue Type: New Feature
Affects Versions: 3.0
Reporter: Sébastien Brisard
  Labels: linear, vector
 Attachments: MATH-646.patch


 The issue has been discussed on the [mailing 
 list|http://mail-archives.apache.org/mod_mbox/commons-dev/201108.mbox/CAGRH7HqxUb2y1HmFt9VJ-kxsXwipk_MdO0D=rnuazmgpnot...@mail.gmail.com].
  Please find attached a proposal for a new class {{UnmodifiableRealVector}}. 
 I chose not to nest it in {{AbstractRealVector}} because it would make the 
 corresponding file huge. Therefore, {{UnmodifiableRealVector}} is {{final}}. 
 Maybe you'd like it to be {{private}} as well? A static method is provided in 
 {{AbstractRealVector}} to build an {{UnmodifiableRealVector}} from any 
 {{RealVector}}.
 Tests are also provided. Since iterating through different implementations of 
 {{RealVector}} is actually different, a test is provided for 
 {{UnmodifiableRealVector}} built on {{ArrayRealVector}} and 
 {{OpenMapRealVector}}. These tests both derive from the same abstract test 
 class. Hope everything works fine.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira