Skip to content
Browse files

Remove an incorrect assert (the same one) from cowmatrix, generalmatv…

…iew, packedsubmat and triangular.
  • Loading branch information...
1 parent afb00fa commit 6c3e8d3794d322e912ec951f29041af5c338def3 @dsimcha dsimcha committed Nov 20, 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
3 scid/storage/cowmatrix.d
@@ -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.
-}
+}
View
2 scid/storage/generalmatview.d
@@ -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;" );
}
View
2 scid/storage/packedsubmat.d
@@ -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_ );
}
View
2 scid/storage/triangular.d
@@ -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 6c3e8d3

Please sign in to comment.
Something went wrong with that request. Please try again.