Projects  >  Math.NET Iridium (IRID)

  Issues    

 

 HyperLink  http://tracker.opensourcedotnet.info/Default.aspx?p=2&i=91 
IRID-91 - Conversion to double[,]
Created: 03/11/2007 21:30:58    
Revised: 13/01/2008 18:24:41
   Back to Issue Filter   
      
<< >>
Hi,

I am using Iridium library with F# for some numerical computations. F# is a functional language that uses type inference during compilation. It does not support explicit casting as in C#. So my problem is following. Sometimes I do not explicitly state type for some variables, relying on type inferencing. By inferencing F# will assign Matrix class type to my variable and there is no way to get double[,] type through implicit casting. The only one work around is to state method, that will provide explicit type reference.

Please, include following code into the library for grater compatibility:

public double[,] ToArray()

{

double[,] newData = new double[m.RowCount, m.ColumnCount];

for (int i = 0; i < _data.RowCount; i++)

for (int j = 0; i < _data.ColumnCount; j++)

newData[i, j] = _data[i, j];

return newData;

}

Sincrely,
Art

 
 
 
Comments (1)Attachments (0)Issue Links (0)History

Christoph Rüegg  

13/01/2008 18:24:39 * CLOSING COMMENT *

This is implemented in revision 304.

 

 

Issue ID IRID-91
Type Enhancement Enhancement
Priority Low Low
Severity Trivial Trivial
Visibility Everyone 
Assigned To Christoph Rüegg 
Reported By Art Diky 
Component Linear Algebra 
Fixed For Version [2008.2.10.364] 2008 February (2008.2.10.364) 
Affected Versions  
Risk Level No Risk 
Status Closed Closed   
Resolution Complete   
Start Date ? 
Due Date ? 
Votes 0  
 Print Friendly