ENH: lowerCSR: ignore lowerCSR for matrix type.
Reverting 267bd1af36
since makes it hard
to run cell-based algorithm on symmetric matrix.
- might become a problem if all discretisation
becomes lowerCSR based and lower() is never
constructed ...
This commit is contained in:
parent
b86ba60d35
commit
0a99702f9e
@ -708,19 +708,19 @@ public:
|
||||
//- Matrix has diagonal only
|
||||
bool diagonal() const noexcept
|
||||
{
|
||||
return (diagPtr_ && !lowerPtr_ && !lowerCSRPtr_ && !upperPtr_);
|
||||
return (diagPtr_ && !lowerPtr_ && !upperPtr_);
|
||||
}
|
||||
|
||||
//- Matrix is symmetric
|
||||
bool symmetric() const noexcept
|
||||
{
|
||||
return (diagPtr_ && !(lowerPtr_ || lowerCSRPtr_) && upperPtr_);
|
||||
return (diagPtr_ && !lowerPtr_ && upperPtr_);
|
||||
}
|
||||
|
||||
//- Matrix is asymmetric (ie, full)
|
||||
bool asymmetric() const noexcept
|
||||
{
|
||||
return (diagPtr_ && (lowerPtr_ || lowerCSRPtr_) && upperPtr_);
|
||||
return (diagPtr_ && lowerPtr_ && upperPtr_);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user