Skip to content

Commit 9f19580

Browse files
committed
chore(CI): Build in the CI
1 parent 2fbc418 commit 9f19580

File tree

9 files changed

+77
-48
lines changed

9 files changed

+77
-48
lines changed

.github/workflows/build.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
name: 'Build LaTeX Document with Biber'
3+
on:
4+
push:
5+
branches:
6+
- trunk
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
- uses: actions/cache@v3
16+
name: Tectonic Cache
17+
with:
18+
path: ~/.cache/Tectonic
19+
key: ${{ runner.os }}-tectonic-${{ hashFiles('**/*.tex') }}
20+
restore-keys: |
21+
${{ runner.os }}-tectonic-
22+
- uses: wtfjoke/setup-tectonic@v3
23+
with:
24+
github-token: ${{ secrets.GITHUB_TOKEN }}
25+
biber-version: '2.17'
26+
27+
- name: Build slides
28+
working-directory: assignment/01/protokol
29+
run: tectonic -X build
30+
31+
- name: Upload report
32+
uses: actions/upload-artifact@v3
33+
with:
34+
name: SVD_protokol
35+
path: |
36+
assignent/01/protokol/build/*/*.pdf

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
build/

assignment/01/README.md

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,4 @@
11
# Singular Value Decomposition
22

3-
This repository contains MATLAB implementations of Singular Value Decomposition (SVD) algorithms using the Jacobi diagonalization method, as part of a university assignment in programming with MATLAB.
4-
5-
## Contents
6-
7-
- `Singular Value Decomposition/`: MATLAB scripts implementing SVD and related functions
8-
- `SVD_sq.m`: SVD for square matrices
9-
- `diag_decomp.m`: Jacobi diagonalization for symmetric matrices
10-
- `max_non_diag_elem.m`: Finds the maximum non-diagonal element
11-
- `rotation_matrix.m`: Generates rotation matrices for Jacobi method
12-
- `protokol/`: LaTeX source for the assignment report
13-
- `protokol.pdf`: Compiled report (in Czech)
14-
15-
## Author
16-
17-
Martin Kunz
3+
This repository contains MATLAB implementations of Singular Value Decomposition (SVD) algorithms using the Jacobi
4+
diagonalization method, as part of a university assignment in programming with MATLAB.

assignment/01/protokol/Makefile

Lines changed: 0 additions & 2 deletions
This file was deleted.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[doc]
2+
name = "protokol"
3+
bundle = "https://data1.fullyjustified.net/tlextras-2022.0r0.tar"
4+
5+
[[output]]
6+
name = "SVD_protokol"
7+
type = "pdf"
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
\end{document}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
\RequirePackage{luatex85}
2+
\documentclass[czech]{article}
3+
\usepackage[czech]{babel}
4+
5+
\usepackage{amsmath,amssymb,mathtools,mathrsfs}
6+
\usepackage{indentfirst}
7+
\usepackage[unicode, bookmarks]{hyperref}
8+
\usepackage{enumitem}
9+
10+
\usepackage[a4paper,left=1.5cm,right=1.5cm,top=1.5cm,bottom=1.5cm]{geometry}
11+
\newcommand\C{\ensuremath{\mathbb{C}}}
12+
\newcommand\R{\ensuremath{\mathbb{R}}}
13+
\newcommand\Z{\ensuremath{\mathbb{Z}}}
14+
15+
\usepackage{physics}
16+
\usepackage{multicol}
17+
18+
\usepackage{nicematrix}
19+
\NiceMatrixOptions{nullify-dots}
20+
\setcounter{MaxMatrixCols}{20}
21+
22+
\let\narrowtilde\tilde
23+
\renewcommand\tilde\widetilde
24+
25+
\let\narrowhat\hat
26+
\renewcommand\hat\widehat
27+
28+
\title{Singular Value Decomposition}
29+
\author{Martin Kunz}
30+
\begin{document}

assignment/01/protokol/main.tex renamed to assignment/01/protokol/src/index.tex

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,3 @@
1-
\RequirePackage{luatex85}
2-
\documentclass[czech]{article}
3-
\usepackage[czech]{babel}
4-
5-
\usepackage{amsmath,amssymb,mathtools,mathrsfs}
6-
\usepackage{indentfirst}
7-
\usepackage[unicode, bookmarks]{hyperref}
8-
\usepackage{enumitem}
9-
10-
\usepackage[a4paper,left=1.5cm,right=1.5cm,top=1.5cm,bottom=1.5cm]{geometry}
11-
\newcommand\C{\ensuremath{\mathbb{C}}}
12-
\newcommand\R{\ensuremath{\mathbb{R}}}
13-
\newcommand\Z{\ensuremath{\mathbb{Z}}}
14-
15-
\usepackage{physics}
16-
\usepackage{multicol}
17-
18-
\usepackage{nicematrix}
19-
\NiceMatrixOptions{nullify-dots}
20-
\setcounter{MaxMatrixCols}{20}
21-
22-
\let\narrowtilde\tilde
23-
\renewcommand\tilde\widetilde
24-
25-
\let\narrowhat\hat
26-
\renewcommand\hat\widehat
27-
28-
\title{Singular Value Decomposition}
29-
\author{Martin Kunz}
30-
\begin{document}
311
\maketitle
322
Singular Value Decomposition je algoritmus rozkladu matice $A \in \C^{m \times n}$ na diagonální obdélníkovou matici $D \in \C^{m \times n}$ a ortogonální matice $U \in \C^{m\times m}$, $V \in \C^{n \times n}$, tak že platí
333
\[
@@ -457,4 +427,3 @@ \subsection{Konečná podoba Singular Value Decomposition}%
457427
\end{enumerate}
458428
\end{enumerate}
459429

460-
\end{document}
-273 KB
Binary file not shown.

0 commit comments

Comments
 (0)