Class Vector<T extends NumericType<T>>
java.lang.Object
net.woggioni.jmath.Vector<T>
- All Implemented Interfaces:
Iterable<Vector.Element<T>>
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionabs()clone()booleanget(int index) innerProduct(Vector<T> other) iterator()<U extends NumericType<U>>
Vector<U> map(NumericTypeFactory<U> numericTypeFactory, Function<T, U> op) norm()static <T extends NumericType<T>>
Vector<T> of(NumericTypeFactory<T> numericTypeFactory, int size) static <T extends NumericType<T>>
Vector<T> of(NumericTypeFactory<T> numericTypeFactory, int size, IntFunction<T> generator) static <T extends NumericType<T>>
Vector<T> of(NumericTypeFactory<T> numericTypeFactory, T... values) voidintsize()toString()Methods inherited from class Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Iterable
forEach, spliterator
-
Method Details
-
size
public int size() -
get
-
set
-
map
-
map
public <U extends NumericType<U>> Vector<U> map(NumericTypeFactory<U> numericTypeFactory, Function<T, U> op) -
map
-
sum
-
sub
-
div
-
mul
-
sum
-
sub
-
mul
-
div
-
mul
-
innerProduct
-
norm
-
abs
-
clone
-
equals
-
toString
-
iterator
- Specified by:
iteratorin interfaceIterable<T extends NumericType<T>>
-
of
public static <T extends NumericType<T>> Vector<T> of(NumericTypeFactory<T> numericTypeFactory, T... values) -
of
public static <T extends NumericType<T>> Vector<T> of(NumericTypeFactory<T> numericTypeFactory, int size) -
of
public static <T extends NumericType<T>> Vector<T> of(NumericTypeFactory<T> numericTypeFactory, int size, IntFunction<T> generator)
-