Mercurial > octave-nkf
comparison src/DLD-FUNCTIONS/kron.cc @ 11586:12df7854fa7c
strip trailing whitespace from source files
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 20 Jan 2011 17:24:59 -0500 |
parents | 57632dea2446 |
children | 5ecdb60ddf0f |
comparison
equal
deleted
inserted
replaced
11585:1473d0cf86d2 | 11586:12df7854fa7c |
---|---|
97 template <class T> | 97 template <class T> |
98 static MSparse<T> | 98 static MSparse<T> |
99 kron (const MSparse<T>& A, const MSparse<T>& B) | 99 kron (const MSparse<T>& A, const MSparse<T>& B) |
100 { | 100 { |
101 octave_idx_type idx = 0; | 101 octave_idx_type idx = 0; |
102 MSparse<T> C (A.rows () * B.rows (), A.columns () * B.columns (), | 102 MSparse<T> C (A.rows () * B.rows (), A.columns () * B.columns (), |
103 A.nnz () * B.nnz ()); | 103 A.nnz () * B.nnz ()); |
104 | 104 |
105 C.cidx (0) = 0; | 105 C.cidx (0) = 0; |
106 | 106 |
107 for (octave_idx_type Aj = 0; Aj < A.columns (); Aj++) | 107 for (octave_idx_type Aj = 0; Aj < A.columns (); Aj++) |