Permalink
Browse files

Merge pull request #68 from dsimcha/master

Fix for Issue 67.
  • Loading branch information...
2 parents afb00fa + 6c3e8d3 commit feefc2b02f3c163a8760624940a6c140ba682f32 @cristicbz committed Nov 21, 2011
Showing with 1 addition and 8 deletions.
  1. +1 −2 scid/storage/cowmatrix.d
  2. +0 −2 scid/storage/generalmatview.d
  3. +0 −2 scid/storage/packedsubmat.d
  4. +0 −2 scid/storage/triangular.d
View
@@ -180,7 +180,6 @@ struct CowMatrix( ElementType_, StorageOrder storageOrder_ = StorageOrder.Column
in {
checkBounds_( i, j );
} out {
- assert( index( i, j ) == rhs );
assert( data_.refCount() == 1 );
} body {
unshareData_();
@@ -339,4 +338,4 @@ template CowMatrixRef( T, StorageOrder order_ = StorageOrder.ColumnMajor ) {
unittest {
// TODO: CowArray tests.
-}
+}
@@ -97,8 +97,6 @@ struct BasicGeneralMatrixViewStorage( ContainerRef_ ) {
void indexAssign( string op = "" )( ElementType rhs, size_t i, size_t j )
in {
checkBounds_( i, j );
- } out {
- assert( index( i, j ) == rhs );
} body {
mixin( "containerRef_.data[ map_( i, j ) ]" ~ op ~ "= rhs;" );
}
@@ -66,8 +66,6 @@ struct PackedSubMatrixStorage( ContainerRef_, SubMatrixType type_ ) {
void indexAssign( string op = "" )( ElementType rhs, size_t i, size_t j )
in {
checkBounds_( i, j );
- } out {
- assert( index( i, j ) == rhs );
} body {
containerRef_.indexAssign!op( rhs, i + rowStart_, j + colStart_ );
}
@@ -143,8 +143,6 @@ struct TriangularArrayAdapter( ContainerRef_, MatrixTriangle tri_, StorageOrder
assert( i <= j, "Modification of zero element in triangle matrix." );
else
assert( i >= j, "Modification of zero element in triangle matrix." );
- } out {
- assert( index( i, j ) == rhs );
} body {
containerRef_.indexAssign!op(rhs, map_( i, j ) );
}

0 comments on commit feefc2b

Please sign in to comment.