Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
competitive
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Show more breadcrumbs
Bruno Freitas Tissei
competitive
Merge requests
!1
Refactor algorithms and add some stuff
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Refactor algorithms and add some stuff
refactor
into
master
Overview
0
Commits
2
Pipelines
0
Changes
9
Merged
Bruno Freitas Tissei
requested to merge
refactor
into
master
5 years ago
Overview
0
Commits
2
Pipelines
0
Changes
9
Expand
Signed-off-by: Bruno Freitas Tissei
bft15@inf.ufpr.br
0
0
Merge request reports
Viewing commit
072f9fe1
Prev
Next
Show latest version
9 files
+
389
−
23
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
9
Search (e.g. *.vue) (Ctrl+P)
072f9fe1
Merge branch 'master' into 'refactor'
· 072f9fe1
Bruno Freitas Tissei
authored
5 years ago
# Conflicts: # algorithms/math/matrix.cpp
algorithms/math/linear_recurrence.cpp
+
5
−
3
Options
@@ -25,13 +25,15 @@
* [x1 x2]^n
* [ 1 0]
*/
matrix
solve
(
ll
x
,
ll
y
,
ll
n
)
{
matrix
in
(
2
);
template
<
typename
T
>
matrix
<
T
>
solve
(
ll
x
,
ll
y
,
ll
n
)
{
matrix
<
T
>
in
(
2
);
// Example
in
[
0
][
0
]
=
x
%
MOD
;
in
[
0
][
1
]
=
y
%
MOD
;
in
[
1
][
0
]
=
1
;
in
[
1
][
1
]
=
0
;
return
fast_pow
(
in
,
n
);
return
fast_pow
<
T
>
(
in
,
n
);
}
Loading