Class VectorInfo

java.lang.Object
no.uib.cipr.matrix.io.VectorInfo

public class VectorInfo extends Object
Contains information on a vector in a variant of the Matrix Market exchange format
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
    What kind of numbers are stored
  • Constructor Summary

    Constructors
    Constructor
    Description
    VectorInfo(boolean sparse, VectorInfo.VectorField field)
    Creates a specific type
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns true if the vector is in array format, else false
    boolean
    Returns true if the vector stores complex numbers, else false
    boolean
    Returns true if the vector is in coordinate format, else false
    boolean
    Returns true if the vector is in array format, else false
    boolean
    Returns true if the vector stores integers, else false
    boolean
    Returns true if the vector does not store any numbers, else false
    boolean
    Returns true if the vector stores real numbers, else false
    boolean
    Returns true if the vector is in coordinate format, else false
    Returns a string representation of the specifier.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • VectorInfo

      public VectorInfo(boolean sparse, VectorInfo.VectorField field)
      Creates a specific type
      Parameters:
      sparse - True for sparse vectors, else false
      field - Type of data stored
  • Method Details

    • isSparse

      public boolean isSparse()
      Returns true if the vector is in coordinate format, else false
    • isCoordinate

      public boolean isCoordinate()
      Returns true if the vector is in coordinate format, else false
    • isDense

      public boolean isDense()
      Returns true if the vector is in array format, else false
    • isArray

      public boolean isArray()
      Returns true if the vector is in array format, else false
    • isReal

      public boolean isReal()
      Returns true if the vector stores real numbers, else false
    • isInteger

      public boolean isInteger()
      Returns true if the vector stores integers, else false
    • isComplex

      public boolean isComplex()
      Returns true if the vector stores complex numbers, else false
    • isPattern

      public boolean isPattern()
      Returns true if the vector does not store any numbers, else false
    • toString

      public String toString()
      Returns a string representation of the specifier. Can be used to provide a header for writing to a file. It is a two-line output, which can look like this:
            %%MatrixMarket vector coordinate real
       
      Overrides:
      toString in class Object