Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tnl-dev
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
TNL
tnl-dev
Commits
a4cc4b38
There was an error fetching the commit references. Please try again later.
Commit
a4cc4b38
authored
11 years ago
by
Tomáš Oberhuber
Browse files
Options
Downloads
Patches
Plain Diff
Adding the dense matrix.
parent
27c540b9
No related branches found
No related tags found
Loading
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/matrix/CMakeLists.txt
+4
-2
4 additions, 2 deletions
src/matrix/CMakeLists.txt
src/matrix/tnlDenseMatrix.h
+61
-0
61 additions, 0 deletions
src/matrix/tnlDenseMatrix.h
with
65 additions
and
2 deletions
src/matrix/CMakeLists.txt
+
4
−
2
View file @
a4cc4b38
SET
(
headers tnlAdaptiveRgCSRMatrix.h
SET
(
headers tnlDenseMatrix.h
tnlAdaptiveRgCSRMatrix.h
tnlCSRMatrix.h
tnlCusparseCSRMatrix.h
tnlEllpackMatrix.h
tnlEllpackMatrix.h
tnlEllpackMatrixCUDA.h
tnlFastCSRMatrix.h
tnlFastRgCSRMatrix.h
...
...
This diff is collapsed.
Click to expand it.
src/matrix/tnlDenseMatrix.h
0 → 100644
+
61
−
0
View file @
a4cc4b38
/***************************************************************************
tnlDenseMatrix.h - description
-------------------
begin : Nov 29, 2013
copyright : (C) 2013 by Tomas Oberhuber
email : tomas.oberhuber@fjfi.cvut.cz
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef TNLDENSEMATRIX_H_
#define TNLDENSEMATRIX_H_
#include
<core/tnlHost.h>
#include
<core/arrays/tnlMultiArray.h>
template
<
typename
Real
=
double
,
typename
Device
=
tnlHost
,
typename
Index
=
int
>
class
tnlDenseMatrix
:
public
tnlMultiArray
<
2
,
Real
,
Device
,
Index
>
{
public:
typedef
Real
RealType
;
tnlDenseMatrix
();
static
tnlString
getType
();
tnlString
getTypeVirtual
()
const
;
template
<
typename
Vector
>
RealType
rowVectorProduct
(
const
Vector
&
v
)
const
;
template
<
typename
Vector
>
void
vectorProduct
(
const
Vector
&
inVector
,
Vector
&
outVector
)
const
;
template
<
typename
Matrix1
,
typename
Matrix2
>
void
matrixProduct
(
const
Matrix1
&
m1
,
const
Matrix2
&
m2
);
template
<
typename
Matrix
>
void
matrixTransposition
(
const
Matrix
&
m
);
template
<
typename
Vector
>
void
performSORIteration
(
const
Vector
&
b
,
Vector
&
x
)
const
;
};
#endif
/* TNLDENSEMATRIX_H_ */
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment