Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions dlib/math/matrix.d
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ struct Matrix(T, size_t N)
*/
static if (N == 4)
{
bool isAffine() @property
bool isAffine() const @property
do
{
return (a41 == 0.0
Expand Down Expand Up @@ -612,7 +612,7 @@ struct Matrix(T, size_t N)
*/
static if (N == 1)
{
Matrix!(T,N) inverse() @property
Matrix!(T,N) inverse() const @property
do
{
Matrix!(T,N) res;
Expand All @@ -623,7 +623,7 @@ struct Matrix(T, size_t N)
else
static if (N == 2)
{
Matrix!(T,N) inverse() @property
Matrix!(T,N) inverse() const @property
do
{
Matrix!(T,N) res;
Expand All @@ -641,7 +641,7 @@ struct Matrix(T, size_t N)
else
static if (N == 3)
{
Matrix!(T,N) inverse() @property
Matrix!(T,N) inverse() const @property
do
{
T d = determinant;
Expand All @@ -667,7 +667,7 @@ struct Matrix(T, size_t N)
}
else
{
Matrix!(T,N) inverse() @property
Matrix!(T,N) inverse() const @property
do
{
Matrix!(T,N) res;
Expand Down Expand Up @@ -840,7 +840,7 @@ struct Matrix(T, size_t N)
this[i, j] = v.arrayof[j];
}

Vector!(T,N) getColumn(size_t j)
Vector!(T,N) getColumn(size_t j) const
{
Vector!(T,N) res;
for (size_t i = 0; i < N; i++)
Expand Down
4 changes: 2 additions & 2 deletions dlib/math/quaternion.d
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ struct Quaternion(T)
/**
* Convert to 4x4 matrix
*/
Matrix!(T,4) toMatrix4x4()
Matrix!(T,4) toMatrix4x4() const
{
auto mat = Matrix!(T,4).identity;

Expand Down Expand Up @@ -297,7 +297,7 @@ struct Quaternion(T)
/**
* Convert to 3x3 matrix
*/
Matrix!(T,3) toMatrix3x3()
Matrix!(T,3) toMatrix3x3() const
{
auto mat = Matrix!(T,3).identity;

Expand Down