Skip to Content
Data Clustering in C++
book

Data Clustering in C++

by Guojun Gan
March 2011
Intermediate to advanced content levelIntermediate to advanced
520 pages
17h 49m
English
Chapman and Hall/CRC
Content preview from Data Clustering in C++
Listings 425
53 return 1+k;
54 }
55 }
56
57 for (Size k=0; k < n ; k++) {
58 iL(k,k) = 1 / L(k,k);
59
60 for (Size j=k+1; j<n; ++j){
61 iL(j , k) = inner prod (
62 project(row(L, j ) , range(k, j )) ,
63 project(column(iL , k), range(k, j )) )
64 /L(j,j);
65 }
66 }
67
68 return 0;
69 }
70
71 }
B.8.10 Null Types
Listing B.105: The header file of null types.
1 // cl / u t i l i t i e s / n u l l . hpp
2 #ifndef CLUSLIB NULL HPP
3 #d e f i n e CLUSLIB NULL HPP
4
5 #include<c l / types . hpp>
6
7 namespace ClusLib {
8
9 template <class Type>
10 class Null ;
11
12 templa te <>
13 class Null<Integer> {
14 public :
15 Null () {}
16 operator Integer () con st {
17 return I n t e g e
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Statistical Computing in C++ and R

Statistical Computing in C++ and R

Randall L. Eubank, Ana Kupresanin

Publisher Resources

ISBN: 9781439862247