Interface Vector<E>

All Superinterfaces:
Collection<E>, Iterable<E>
All Known Implementing Classes:
BaseVector, ConcreteVector, ConstructiveVector

public interface Vector<E> extends Collection<E>
  • Method Details

    • of

      @SafeVarargs static <F> Vector<F> of(F... e)
    • ofList

      static <F> Vector<F> ofList(List<F> e)
    • of

      static <F> Vector<F> of(int d, java.util.function.IntFunction<F> f)
    • of

      static <F> Vector<F> of(int d, java.util.function.IntFunction<F> f, boolean sequential)
    • view

      static <F> Vector<F> view(int d, java.util.function.IntFunction<F> f)
    • op

      static <E, F> Vector<F> op(Vector<E> a, Vector<E> b, java.util.function.BiFunction<E,E,F> op)
    • fromArray

      static Vector<Double> fromArray(double[] array)
    • size

      int size()
      Specified by:
      size in interface Collection<E>
    • get

      E get(int i)
    • equals

      boolean equals(Vector<E> other, java.util.function.BiPredicate<E,E> equality)
    • stream

      java.util.stream.Stream<E> stream()
      Specified by:
      stream in interface Collection<E>
    • map

      <F> Vector<F> map(java.util.function.Function<E,F> map)
    • view

      <F> Vector<F> view(java.util.function.Function<E,F> map)
    • pad

      Vector<E> pad(int n, E padding)
      Return a vector padded with a given value to have a certain length. If n is larger than the current dimension, the given padding value is used for the new entries.
    • anyMatch

      default boolean anyMatch(java.util.function.Predicate<E> predicate)
    • asList

      List<E> asList()
    • coordinateWise

      default Vector<E> coordinateWise(Vector<E> other, java.util.function.BinaryOperator<E> operator)