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
0
votes
1 answer

Similarity measure between 2 semantic vectors with COLT

I'm using spreading-activation to get related concepts to a given one. If I want to calculate the similarity between 'London' and 'Paris', I get 2 vectors such as: vector for 'Paris': Paris : 1.0 City : 0.9 Capital : 0.7 France : 0.6 Europe :…
Mulone
  • 3,603
  • 9
  • 47
  • 69
0
votes
3 answers

Floating Point errors in Colt Java matrix libraries

How do I avoid floating point errors in financial calculations performed with Colt matrix libraries?
Luther A
0
votes
1 answer

Divide by zero error from Colt OpenLongObjectHashMap

I saw this exception from Colt OpenLongObjectHashMap: java.lang.ArithmeticException: divide by zero at cern.colt.map.OpenLongObjectHashMap.indexOfKey(Unknown Source) at cern.colt.map.OpenLongObjectHashMap.get(Unknown Source) It's…
rghome
  • 8,529
  • 8
  • 43
  • 62
0
votes
1 answer

How can I access values outside of Spark GraphX .map loop?

Brand new to Apache Spark and I'm a little confused how to make updates to a value that sits outside of a .mapTriplets iteration in GraphX. See below: def mapTripletsMethod(edgeWeights: Graph[Int, Double], stationaryDistribution: Graph[Double,…
crockpotveggies
  • 12,682
  • 12
  • 70
  • 140
0
votes
1 answer

Matrices of "long"s in Java/COLT?

I'm very new to Java/COLT so apologies if this is a dumb question... But, is it possible to define (2d) matrices of type "long" using the cern.colt.matrix stuff? If so, how?! I can find an abstract class for "Object" and a concrete implementation…
0
votes
0 answers

Does Colt provide "d-dimensional" matrices?

Colt library is pretending to provide "Dense and sparse fixed sized (non-resizable) 1,2, 3 and d-dimensional matrices" (Section Features / Templated Multidimensional matrices). But in API itself I see no any implementation, higher than 3:…
Suzan Cioc
  • 29,281
  • 63
  • 213
  • 385
0
votes
1 answer

Sample Nullspace Using Colt

I'm writing Java and using colt as my matrix library and would like to find a (any) vector in the kernel of a matrix. I can do this in python using sympy as follows: def kernel(A, n): if A.rows == 0: return Matrix([1]*n) R, pivots…
RichardBruce
  • 641
  • 2
  • 10
  • 19
0
votes
1 answer

Matrix rank doesn't work as per API specs in parallel colt

I am using parallel colt wherein I need to find the rank of a matrix. The API documentation says the following about the following about DoubleAlgebra#rank: rank(DoubleMatrix2D A) Returns the effective numerical rank of matrix A, obtained from…
Chthonic Project
  • 8,216
  • 1
  • 43
  • 92
0
votes
2 answers

How to solve linear system of equations using colt library in java

I want to solve the linear equation matrix*X=D using Colt library. I tried : DoubleMatrix2D matrix; matrix = new DenseDoubleMatrix2D(4,4); for (int row = 0; row < 4; row++) { for (int column = 0; column < 4; column++) { // We set and get…
Konstantinos_S
  • 65
  • 2
  • 10
0
votes
2 answers

How to transpose an array using functions from libraries?

How can I transpose an array using functions from libraries? I have downloaded and used the library Colt from here: http://acs.lbl.gov/software/colt/api/index.html. I tried : DoubleMatrix1D array; array = new DenseDoubleMatrix1D(4); for (int i=0;…
Konstantinos_S
  • 65
  • 2
  • 10
0
votes
1 answer

Java mahout colt collections

under this link, we can see several versions of old colt libraries. I'm wondering what library mahout statistical users use today? I need it for a big data project. Please help. mahouters :) I need to use classes IntOpenSet and IntOpenHashMap.
Sophie Sperner
  • 4,428
  • 8
  • 35
  • 55
0
votes
2 answers

Solving Linear System using COLT in Java

I want to solve a linear system. My matrix A is 1200x1200 in dimension and matrix b is 1200x1. So by the formula Ax = b, I want to find x which will be 1200x1. Now my main concern is my matrix A has very few non zero values, like at most 5 non zero…
0
votes
1 answer

is it possible to use COLT with large matrices?

I started using COLT at some point, and now my code is using a lot of its functionality. I now need to be able to handle large sparse tensors or matrices. The tensors are very sparse, but their dimensions can be quite large. It seems like I can't…
kloop
  • 4,537
  • 13
  • 42
  • 66
0
votes
2 answers

How to find maximum in SparseDoubleMatrix2D (Java Colt library)? or even in a 1D Matrix for that matter

On the overview website http://acs.lbl.gov/software/colt/api/index.html it is said that via Columnwise Data Analysis the maximum value(of a column) can be found. However I searched for quite a long while and cannot find the method!
user1406731
  • 47
  • 1
  • 8
-1
votes
1 answer

How to subtract two sparsevector?

I'm new to dealing with SparseVector. I want to subtract two SparseVectors and return result as SparseVector too. What is the difference between Vector and SparseVector? I tried to start with define function that take two SparseVector but didn't get…
user1
  • 501
  • 2
  • 9
  • 24