Class RingOps
java.lang.Object
org.flag4j.linalg.ops.common.ring_ops.RingOps
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends Ring<T>>
voidabs(T[] src, double[] dest) Computes the element-wise absolute value of an array.static <T extends Ring<T>>
voidconj(T[] src, T[] dest) Computes the element-wise conjugation of an array.static <T extends Ring<T>>
voidsub(T[] src, T scalar, T[] dest) Subtracts a scalar value from each entry of an array.
-
Method Details
-
sub
Subtracts a scalar value from each entry of an array.- Parameters:
src- Array to subtract scalar from.scalar- Scalar value to subtract fromsrc.dest- Array to store the result in. May be the same array assrc.- Throws:
ArrayIndexOutOfBoundsException- Ifdest.length < src.length.
-
abs
Computes the element-wise absolute value of an array.- Parameters:
src- Array to compute element-wise absolute value of.dest- Array to store the result in. May be the same array assrc.- Throws:
ArrayIndexOutOfBoundsException- Ifdest.length < src.length.
-
conj
Computes the element-wise conjugation of an array.- Parameters:
src- Array to compute element-wise conjugation of.dest- Array to store the result in. May be the same array assrc.- Throws:
ArrayIndexOutOfBoundsException- Ifdest.length < src.length.
-