Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Deeplearning
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
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RADL
Deeplearning
Commits
4cf7cf1e
Commit
4cf7cf1e
authored
Mar 15, 2023
by
Gabriel Falk
Browse files
Options
Downloads
Patches
Plain Diff
Upload New File
parent
d1948ae1
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
matrix.h
+55
-0
55 additions, 0 deletions
matrix.h
with
55 additions
and
0 deletions
matrix.h
0 → 100644
+
55
−
0
View file @
4cf7cf1e
#ifndef _MATRIX_
#define _MATRIX_
struct
matrix
{
float
*
head
;
int
sizeX
;
int
sizeY
;
};
matrix
createMx
(
int
sizeX
,
int
sizeY
);
void
destroyMx
(
matrix
x
);
matrix
cutMx
(
matrix
data
,
int
dcol
,
int
drow
,
int
sizeX
,
int
sizeY
);
matrix
getConvMx
(
matrix
filter
,
int
inputSizeX
,
int
inputSizeY
);
matrix
zeroPadd
(
matrix
a
,
int
sizeX
,
int
sizeY
);
matrix
getrdmMx
(
int
sizeX
,
int
sizeY
);
void
printMx
(
matrix
data
);
float
sumMx
(
matrix
data
);
float
scalMulMx
(
matrix
a
,
matrix
b
);
matrix
scale
(
matrix
a
,
float
b
);
matrix
pointMulMx
(
matrix
a
,
matrix
b
);
matrix
transpose
(
matrix
a
);
matrix
avg2Pooling
(
matrix
data
);
matrix
mulMx
(
matrix
a
,
matrix
b
);
matrix
conv2d
(
matrix
img
,
matrix
filter
);
//MATRIZEN
matrix
get2x2mat
();
matrix
get3x3mat
();
matrix
get3x3onesmat
();
matrix
get3x3edgemat
();
matrix
get4x4mat
();
matrix
get5x5onesmat
();
matrix
get6x6stdmat
();
matrix
get7x7onesmat
();
matrix
get5x5fracmat
();
matrix
get1x10fracmat
();
matrix
get10x10fracmat
();
matrix
get16x16fracmat
();
//WINOGRAD(5,2)
matrix
get6x6WiB
();
matrix
get5x6WiG
();
matrix
get2x6WiA
();
//WINOGRAD(3,2)
matrix
get4x4WiB
();
matrix
get3x4WiG
();
matrix
get2x4WiA
();
#endif
\ No newline at end of file
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