Compare commits
2 Commits
a5a14a9763
...
21a7268cbc
| Author | SHA1 | Date | |
|---|---|---|---|
| 21a7268cbc | |||
| 8c96ca4340 |
27
.gitea/workflows/ubuntu.yaml
Normal file
27
.gitea/workflows/ubuntu.yaml
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
name: Linux arm64
|
||||||
|
run-name: Build And Test
|
||||||
|
|
||||||
|
on: [push]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
Build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Check out repository code
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Prepare XMake
|
||||||
|
uses: xmake-io/github-action-setup-xmake@v1
|
||||||
|
with:
|
||||||
|
xmake-version: branch@master
|
||||||
|
actions-cache-folder: '.xmake-cache'
|
||||||
|
actions-cache-key: 'ubuntu'
|
||||||
|
|
||||||
|
- name: XMake config
|
||||||
|
run: xmake f -p linux -y --root
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: xmake --root
|
||||||
|
|
||||||
|
- name: Test
|
||||||
|
run: xmake test --root
|
||||||
@@ -9,14 +9,15 @@ Matrix::Matrix(const std::string& fileNameInput) {
|
|||||||
Load(fileNameInput);
|
Load(fileNameInput);
|
||||||
}
|
}
|
||||||
|
|
||||||
Matrix::Matrix(std::size_t lignes, std::size_t colonnes) : m_Lignes(lignes), m_Colonnes(colonnes), m_Dimension(lignes * colonnes) {
|
Matrix::Matrix(std::size_t lignes, std::size_t colonnes) : m_Lignes(lignes), m_Colonnes(colonnes) {
|
||||||
m_Data.resize(m_Dimension);
|
m_Data.resize(m_Lignes * m_Colonnes);
|
||||||
}
|
}
|
||||||
Matrix::Matrix(std::size_t lignes, std::size_t colonnes, std::initializer_list<long double>&& initList) :
|
Matrix::Matrix(std::size_t lignes, std::size_t colonnes, std::initializer_list<long double>&& initList) :
|
||||||
m_Lignes(lignes), m_Colonnes(colonnes), m_Dimension(lignes * colonnes) {
|
m_Lignes(lignes), m_Colonnes(colonnes) {
|
||||||
m_Data = initList;
|
m_Data = initList;
|
||||||
m_Data.resize(m_Dimension);
|
m_Data.resize(m_Lignes * m_Colonnes);
|
||||||
}
|
}
|
||||||
|
|
||||||
Matrix::~Matrix() {}
|
Matrix::~Matrix() {}
|
||||||
|
|
||||||
Matrix Matrix::operator*(const Matrix& other) const {
|
Matrix Matrix::operator*(const Matrix& other) const {
|
||||||
|
|||||||
@@ -7,7 +7,6 @@ class Matrix {
|
|||||||
private:
|
private:
|
||||||
std::size_t m_Lignes;
|
std::size_t m_Lignes;
|
||||||
std::size_t m_Colonnes;
|
std::size_t m_Colonnes;
|
||||||
std::size_t m_Dimension;
|
|
||||||
std::vector<long double> m_Data;
|
std::vector<long double> m_Data;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|||||||
Reference in New Issue
Block a user