MAJ terminée. Nous sommes passés en version 14.6.2 . Pour consulter les "releases notes" associées c'est ici :

https://about.gitlab.com/releases/2022/01/11/security-release-gitlab-14-6-2-released/
https://about.gitlab.com/releases/2022/01/04/gitlab-14-6-1-released/

GlobalMatrix.cpp 1.09 KB
Newer Older
1
2
3
4
5
6
7
8
//
//  GlobalMatrix.cpp
//  HappyHeart
//
//  Created by Sebastien Gilles on 27/04/15.
//  Copyright (c) 2015 Inria. All rights reserved.
//

9

10
#include "Core/LinearAlgebra/GlobalMatrix.hpp"
11
#include "Core/NumberingSubset.hpp"
12
13
14
15
16
17


namespace HappyHeart
{
    
    
18
19
    GlobalMatrix::GlobalMatrix(const NumberingSubset& row_numbering_subset,
                               const NumberingSubset& col_numbering_subset)
20
    : Crtp::NumberingSubsetForMatrix<GlobalMatrix>(row_numbering_subset, col_numbering_subset)
21
22
23
    { }
    
    
24
    GlobalMatrix::GlobalMatrix(const GlobalMatrix& rhs)
25
26
    : PetscParent(rhs),
    NumberingSubsetParent(rhs)
27
28
29
30
31
32
    { }
    
    
    
    void Swap(GlobalMatrix& A, GlobalMatrix& B)
    {
33
        // We swap the content of two matrices that share the same numbering subsets.
34
35
        assert(A.GetColNumberingSubset() == B.GetColNumberingSubset());
        assert(A.GetRowNumberingSubset() == B.GetRowNumberingSubset());
36
        
37
        using Parent = GlobalMatrix::PetscParent;
38
39
40
        
        Swap(static_cast<Parent&>(A), static_cast<Parent&>(B));
    }
41
42
    
    
43
44

} // namespace HappyHeart