Questions tagged [colt]

A set of open source libraries for high-performance scientific computing written in Java and developed at CERN.

Colt is a set of open source libraries for high-performance scientific computing written in Java and developed at CERN. It was developed with a focus on applications in High Energy Physics, and provides an infrastructure for scalable scientific and technical computing in Java.

Colt was last updated in 2004 (when Java 1.4 was the current release). More recent development has been carried out in Parallel-Colt. Among other things, it contains efficient and scalable data structures and algorithms for offline and online data analysis, linear algebra and statistics.

46 questions
1
vote
0 answers

How to iterate over non zero values in a sparse matrix with COLT?

The code example on the COLT website shows: DoubleFactory2D factory; factory = DoubleFactory2D.sparse; DoubleMatrix2D matrix = factory.make(3,4); for (int row = matrix.rows(); --row >= 0;) { for (int column = matrix.columns(); --column >=…
seinecle
  • 10,118
  • 14
  • 61
  • 120
1
vote
3 answers

Initialize multiple distributions using the same seed or same random stream?

I have a Java simulation in which I need to use Uniform, Exponential, Poisson, and Gamma distributions - and I need to initialize the random stream and/or each of these distributions with the same seed (so that I can exactly reproduce a trajectory…
YaleBD
  • 143
  • 12
1
vote
1 answer

Fractional Matrix Power in Clojure

I am trying working with transition matricies in clojure. In converting say an annual bond rating transition matrix to quarterly, I need 0.25 power of a square matrix. In python, we have the fractional_matrix_power from scipy as: >>> from…
Phil Cooper
  • 5,747
  • 1
  • 25
  • 41
1
vote
0 answers

Cholesky decomposition of large sparse matrices in Java

I want to do Cholesky decomposition of large sparse matrices in Java. Currently I'm using the Parallel Colt library class SparseDoubleCholeskyDecomposition but it's much slower than using my code I wrote in C for dense matrices which I use in java…
Z boson
  • 32,619
  • 11
  • 123
  • 226
1
vote
1 answer

How to combine two sparsematrix using java colt lib?

I'm using java colt library for sparse matrix. Inputs are the two sparse matrix with the same row number, e.g., SparseDoubleMatrix1D v1; //[1 2] SparseDoubleMatrix1D v2; // [3, 4] After some calculation of v1, and v2. I want to append the result…
HappyCoding
  • 5,029
  • 7
  • 31
  • 51
1
vote
1 answer

Vector-Matrix-Multiplication in java with parallel colt

I would like to multiply a vector (1 x n) with a matrix (m x n) in java and the library parallel colt. I guess I have chosen it because it has parallel in its name. So you are invited to give me other nice matrix librarys in java. But my problem is…
user2129910
  • 33
  • 1
  • 6
1
vote
0 answers

Sparse matrices multiplication with Colt

I am using Colt for its Sparse Matrix implementation, but as soon as I apply algebra on these, they become Dense Matrix. Namely, if I multiply two sparse matrices A and B and want to assign the result to a third matrix C, I cannot declare C as a…
Maveric78f
  • 55
  • 6
1
vote
5 answers

Matrix operations (transpose)

I want to perform matrix operation (for example find the transpose matrix of a given matrix A) I found some libraries to do so, for example…
Konstantinos_S
  • 65
  • 2
  • 10
1
vote
2 answers

Create Sparse Matrix with Coordinate Storage System?

I am writing a java program which involves working with a 1058 X 1058 matrix containing float values. This matrix contains many zero values and so I need to store this as a sparse matrix and later use this matrix to generate a spanning tree. I…
novicegeek
  • 773
  • 2
  • 9
  • 29
1
vote
1 answer

Adding matrices and vectors in Parallel Colt

In Parallel Colt, how do I add a vector to every row of a matrix, preferably in-place? In particular, I have a DoubleMatrix1D I'd like to add to each row of a DoubleMatrix2D. It seems like this should be straightforward, but it's not clear from…
Ryan Gabbard
  • 2,269
  • 2
  • 24
  • 37
1
vote
0 answers

Reshaped views in Parallel Colt

In numpy, there is a flatten operation which allows you to, for example, flatten a m x n matrix down to an array of mn elements, and a reshape operations which goes in the opposite direction. Much of the time this can be done with a view, without…
Ryan Gabbard
  • 2,269
  • 2
  • 24
  • 37
1
vote
1 answer

Java matrix operations, parallel colt matrix - matrix multiplication

I was using Jama for matrix operation in java but since they don't have sparse matrix then I start to use Parallel Cold Library (PColt) . It is a multithreaded version of Colt. I tried to multiply two square matrices,AxB (it is matrix-matrix…
Memin
  • 3,788
  • 30
  • 31
1
vote
2 answers

Updating quantiles rather than recomputing

Is there a java library that allows me to update rather than recompute quantiles of a large sample set of data with addition/removal of data points ? My guess is that an efficient algorithms should take a constant time for the update (not a function…
fodon
  • 4,565
  • 12
  • 44
  • 58
1
vote
1 answer

Element-wise sparse-matrix multiplication using Colt

What am I doing wrong here? I want to element-wise multiply two sparse matrices using Colt. Here's an example of how I'm attempting to do this: DoubleMatrix2D A = new SparseDoubleMatrix2D(2, 2); A.set(0, 0, 2.0); DoubleMatrix2D B = new…
sawo
  • 11
  • 3
0
votes
0 answers

Timeout in using Mapbox

I am using Mapbox to find ongitudnal location and have added correct codes but my local host is showing connect ETIMEDOUT 108.159.11.184:443 RequestError: connect ETIMEDOUT 108.159.11.184:443 at ClientRequest.…
Vishesh
  • 1
  • 1