All Downloads are FREE. Search and download functionalities are using the official Maven repository.

no.uib.cipr.matrix.sparse.ISparseVector Maven / Gradle / Ivy

Go to download

A comprehensive collection of matrix data structures, linear solvers, least squares methods, eigenvalue, and singular value decompositions. Forked from: https://github.com/fommil/matrix-toolkits-java and added support for eigenvalue computation of general matrices

The newest version!
/**
 * May 21, 2007
 * @author Samuel Halliday, ThinkTank Maths Limited
 * Copyright ThinkTank Maths Limited 2007
 */
package no.uib.cipr.matrix.sparse;

import no.uib.cipr.matrix.Vector;

/**
 * @author Samuel Halliday, ThinkTank Maths Limited
 */
public interface ISparseVector extends Vector {

    /**
     * Returns the indices
     */
    public int[] getIndex();

    /**
     * Number of entries used in the sparse structure
     */
    public int getUsed();
    
    /**
     * Returns the internal value array. This array may contain extra elements
     * beyond the number that are used. If it is greater than the number used,
     * the remaining values will be 0. Since this vector can resize its internal
     * data, if it is modified, this array may no longer represent the internal
     * state.
     * 
     * @return The internal array of values.
     */
    public double[] getData();
    
    /**
     * Compacts the vector
     */
    public void compact();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy