help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: vectorization


From: Andreas Weber
Subject: Re: vectorization
Date: Mon, 12 Jan 2015 22:01:43 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.3.0

Am 12.01.2015 um 20:33 schrieb Nidjara:
> csv100K.csv <http://octave.1599824.n4.nabble.com/file/n4668085/csv100K.csv>  

Great. Reading a CSV is really fast:

tic; X = csvread ("csv100K.csv"); toc;
Elapsed time is 0.17002 seconds.

tic; G = sparse (X(:,1)+1, X(:,2)+1, X(:,3)); toc;
Elapsed time is 0.0202072 seconds.

G =

Compressed Column Sparse (rows = 100000, cols = 99328, nnz = 100000
[0.001%])

  (2, 1) ->  861
  (3, 1) ->  871
  (5, 1) ->  467
  (9, 1) ->  6950
  (10, 1) ->  5312
  (11, 1) ->  4556
  (14, 1) ->  9999
....

Andy



reply via email to

[Prev in Thread] Current Thread [Next in Thread]