Skip to content

Commit

Permalink
issue #1300: renamed isTriu --> istriu
Browse files Browse the repository at this point in the history
  • Loading branch information
jaeandersson committed Jun 29, 2015
1 parent cd4540c commit d903171
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion casadi/core/matrix/generic_matrix.hpp
Expand Up @@ -126,7 +126,7 @@ namespace casadi {
bool isrow() const { return sparsity().isVector();}

/** \brief Check if the matrix is upper triangular */
bool isTriu() const { return sparsity().isTriu();}
bool istriu() const { return sparsity().istriu();}

/** \brief Check if the matrix is lower triangular */
bool istril() const { return sparsity().istril();}
Expand Down
2 changes: 1 addition & 1 deletion casadi/core/matrix/matrix.hpp
Expand Up @@ -160,7 +160,7 @@ namespace casadi {
using B::isDense;
using B::isVector;
using B::istril;
using B::isTriu;
using B::istriu;
using B::colind;
using B::row;
using B::dimString;
Expand Down
2 changes: 1 addition & 1 deletion casadi/core/matrix/matrix_impl.hpp
Expand Up @@ -2348,7 +2348,7 @@ namespace casadi {
}
}
return x;
} else if (isTriu()) {
} else if (istriu()) {
// backward substitution if upper triangular
Matrix<DataType> x = b;
const int* Arow = row();
Expand Down
4 changes: 2 additions & 2 deletions casadi/core/matrix/sparsity.cpp
Expand Up @@ -271,8 +271,8 @@ namespace casadi {
return (*this)->istril();
}

bool Sparsity::isTriu() const {
return (*this)->isTriu();
bool Sparsity::istriu() const {
return (*this)->istriu();
}

Sparsity Sparsity::sub(const std::vector<int>& rr, const Sparsity& sp,
Expand Down
2 changes: 1 addition & 1 deletion casadi/core/matrix/sparsity.hpp
Expand Up @@ -577,7 +577,7 @@ namespace casadi {
bool isSymmetric() const;

/// Is upper triangular?
bool isTriu() const;
bool istriu() const;

/// Is lower triangular?
bool istril() const;
Expand Down
2 changes: 1 addition & 1 deletion casadi/core/matrix/sparsity_internal.cpp
Expand Up @@ -3771,7 +3771,7 @@ namespace casadi {
return true;
}

bool SparsityInternal::isTriu() const {
bool SparsityInternal::istriu() const {
const int* colind = this->colind();
const int* row = this->row();
// loop over columns
Expand Down
2 changes: 1 addition & 1 deletion casadi/core/matrix/sparsity_internal.hpp
Expand Up @@ -285,7 +285,7 @@ namespace casadi {
bool istril() const;

/// is upper triangular?
bool isTriu() const;
bool istriu() const;

/// Get upper triangular part
Sparsity zz_triu(bool includeDiagonal) const;
Expand Down
2 changes: 1 addition & 1 deletion docs/users_guide/casadi-users_guide.tex
Expand Up @@ -664,7 +664,7 @@ \section{Querying properties}
\item[\emph{A}.isScalar()] Is the matrix a scalar, i.e. having dimensions 1-by-1?
\item[\emph{A}.isVector()] Is the matrix a vector, i.e. having dimensions $n$-by-1?
\item[\emph{A}.isSquare()] Is the matrix square?
\item[\emph{A}.isTriu()] Is the matrix upper triangular?
\item[\emph{A}.istriu()] Is the matrix upper triangular?
\item[\emph{A}.isConstant()] Are the matrix entries all constant?
\item[\emph{A}.isInteger()] Are the matrix entries all integer-valued?
\end{description}
Expand Down

0 comments on commit d903171

Please sign in to comment.