Interface VectorI

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      Dimensions getDimensions()
      Gets the dimensions of the Vector or Matrix
      java.lang.Object getEle​(int i)
      Gets the i-th element of a vector
      int getNEles()
      Gets the number of elements of a vector
      void setEle​(int i, java.lang.Object val)
      Sets an element of a vector.
      java.lang.Object[] toArray​(java.lang.Object[] vec)  
    • Method Detail

      • getEle

        java.lang.Object getEle​(int i)
        Gets the i-th element of a vector
        Parameters:
        i - index (starts from 0)
        Returns:
        the i-th element
      • getNEles

        int getNEles()
        Gets the number of elements of a vector
        Returns:
        the number of elements
      • getDimensions

        Dimensions getDimensions()
        Gets the dimensions of the Vector or Matrix
        Returns:
        the dimensions