Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
04dcee76
Commit
04dcee76
authored
Mar 25, 2016
by
Henry Weller
Browse files
RectangularMatrix: Removed the identity function (now in SquareMatrix)
parent
e3f3c03c
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/OpenFOAM/matrices/RectangularMatrix/RectangularMatrix.H
View file @
04dcee76
...
...
@@ -40,7 +40,6 @@ SourceFiles
#include
"Matrix.H"
#include
"SquareMatrix.H"
#include
"Identity.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
...
...
@@ -79,10 +78,6 @@ public:
// initializing all elements to zero
inline
RectangularMatrix
(
const
label
m
,
const
label
n
,
const
zero
);
//- Construct given number of rows/columns
// Initializing to the identity matrix
inline
RectangularMatrix
(
const
label
n
,
const
Identity
<
Type
>
);
//- Construct with given number of rows and columns
// and value for all elements.
inline
RectangularMatrix
(
const
label
m
,
const
label
n
,
const
Type
&
);
...
...
src/OpenFOAM/matrices/RectangularMatrix/RectangularMatrixI.H
View file @
04dcee76
...
...
@@ -77,22 +77,6 @@ inline Foam::RectangularMatrix<Type>::RectangularMatrix
{}
template
<
class
Type
>
inline
Foam
::
RectangularMatrix
<
Type
>::
RectangularMatrix
(
const
label
n
,
const
Identity
<
Type
>
)
:
Matrix
<
RectangularMatrix
<
Type
>
,
Type
>
(
n
,
n
,
Zero
)
{
for
(
label
i
=
0
;
i
<
n
;
i
++
)
{
this
->
operator
()(
i
,
i
)
=
I
;
}
}
template
<
class
Type
>
inline
Foam
::
RectangularMatrix
<
Type
>::
RectangularMatrix
(
...
...
src/OpenFOAM/matrices/SquareMatrix/SquareMatrixI.H
View file @
04dcee76
...
...
@@ -103,7 +103,7 @@ inline Foam::SquareMatrix<Type>::SquareMatrix
{
for
(
label
i
=
0
;
i
<
n
;
i
++
)
{
this
->
operator
()(
i
,
i
)
=
I
;
this
->
operator
()(
i
,
i
)
=
Type
(
I
)
;
}
}
...
...
@@ -176,7 +176,7 @@ void Foam::SquareMatrix<Type>::operator=(const Identity<Type>)
Matrix
<
SquareMatrix
<
Type
>
,
Type
>::
operator
=
(
Zero
);
for
(
label
i
=
0
;
i
<
this
->
n
();
i
++
)
{
this
->
operator
()(
i
,
i
)
=
I
;
this
->
operator
()(
i
,
i
)
=
Type
(
I
)
;
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment