|
From: <mar...@us...> - 2007-10-06 20:22:07
|
Revision: 448
http://dnanalytics.svn.sourceforge.net/dnanalytics/?rev=448&view=rev
Author: marcuscuda
Date: 2007-10-06 13:22:04 -0700 (Sat, 06 Oct 2007)
Log Message:
-----------
Applied Gabriel Rosenhouse's patch
Modified Paths:
--------------
numerical/trunk/LinearAlgebra/DenseMatrix.cs
Modified: numerical/trunk/LinearAlgebra/DenseMatrix.cs
===================================================================
--- numerical/trunk/LinearAlgebra/DenseMatrix.cs 2007-03-09 04:07:57 UTC (rev 447)
+++ numerical/trunk/LinearAlgebra/DenseMatrix.cs 2007-10-06 20:22:04 UTC (rev 448)
@@ -42,7 +42,6 @@
public DenseMatrix(int order, bool useNativeLibrary)
: this(order, order, useNativeLibrary)
{
- data = new double[order * order];
}
/// <summary>
@@ -106,12 +105,6 @@
internal DenseMatrix(DenseMatrix matrix, bool useNativeLibrary)
: this(matrix.Rows, matrix.Columns, useNativeLibrary)
{
- if (matrix == null)
- {
- throw new ArgumentNullException("matrix", Strings.NullParameterException);
- }
-
- data = new double[Rows * Columns];
Buffer.BlockCopy(matrix.data, 0, data, 0, matrix.data.Length * Constants.SizeOfDouble);
}
@@ -127,8 +120,6 @@
throw new ArgumentNullException("matrix", Strings.NullParameterException);
}
- data = new double[Rows * Columns];
-
//using enumerators since they will be more efficient for copying sparse matrices
foreach (KeyValuePair<int, Vector> column in matrix.ColumnEnumerator())
{
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|