Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
2bd7f123
"src/git@developer.sourcefind.cn:renzhc/diffusers_dcu.git" did not exist on "9276b1e148745fc6351576a242b1db0445337586"
Commit
2bd7f123
authored
Nov 24, 2012
by
Davis King
Browse files
Clarified spec
parent
53cd2859
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
dlib/svm/sparse_vector_abstract.h
dlib/svm/sparse_vector_abstract.h
+11
-1
No files found.
dlib/svm/sparse_vector_abstract.h
View file @
2bd7f123
...
...
@@ -203,7 +203,12 @@ namespace dlib
- a is an unsorted sparse vector
- is_vector(b) == true
ensures
- returns the dot product between the vectors a and b
- returns the dot product between the vectors a and b.
- if (max_index_plus_one(a) >= b.size()) then
- a's dimensionality is greater than b's dimensionality. In this case we
pretend b is padded by as many zeros as is needed to make the dot product
work. So this means that any elements in a that go beyond the length of
b are simply ignored.
!*/
// ----------------------------------------------------------------------------------------
...
...
@@ -219,6 +224,11 @@ namespace dlib
- is_vector(a) == true
ensures
- returns the dot product between the vectors a and b
- if (max_index_plus_one(b) >= a.size()) then
- b's dimensionality is greater than a's dimensionality. In this case we
pretend a is padded by as many zeros as is needed to make the dot product
work. So this means that any elements in b that go beyond the length of
a are simply ignored.
!*/
// ----------------------------------------------------------------------------------------
...
...
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