Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
J
jfx_kalman_filter_src
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
oscar
jfx_kalman_filter_src
Commits
8fe154f0
Commit
8fe154f0
authored
Dec 16, 2021
by
oscar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交修改
parent
89c32f94
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
16 deletions
+16
-16
common.h
BaseTracker/kf_gpu/common.h
+16
-16
No files found.
BaseTracker/kf_gpu/common.h
View file @
8fe154f0
...
...
@@ -25,25 +25,25 @@ inline void GPUAssert(cudaError_t code, const char* file, int line, bool abort =
}
//Memory Allocation Function
void
cpuMalloc
(
float
**
data_ptr
,
size_t
size
)
{
float
*
data
;
data
=
(
float
*
)
malloc
(
size
);
*
data_ptr
=
data
;
}
//
void cpuMalloc(float **data_ptr, size_t size)
//
{
//
float *data;
//
data = (float *) malloc( size);
//
*data_ptr = data;
//
}
//Ideintity Matrix Generation
void
Identity
(
float
*
data
,
int
n
)
{
for
(
int
i
=
0
;
i
<
(
n
*
n
);
i
=
i
+
1
)
{
if
((
i
%
(
n
+
1
))
==
0
)
data
[
i
]
=
1
;
else
data
[
i
]
=
0
;
}
}
//
void Identity(float *data, int n)
//
{
//
for (int i = 0; i < (n*n); i=i+1)
//
{
//
if((i%(n+1))==0)
//
data[i] = 1;
//
else
//
data[i] = 0;
//
}
//
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment