Package org.ojalgo.array.operation
package org.ojalgo.array.operation
Everythinng in this package should be considered library-private – it should only be used by other parts of
ojAlgo! Code in this package is often refactored (api-breaking) without even a notice in the changelog.
-
ClassDescriptionGiven a vector x, the i?amax functions return the position of the vector element x[i] that has the largest absolute value for real flavors, or the largest sum |Re(x[i])|+|Im(x[i])| for complex flavors.Given a vector x, the i?amin functions return the position of the vector element x[i] that has the smallest absolute value for real flavors, or the smallest sum |Re(x[i])|+|Im(x[i])| for complex flavors.The ?asum routine computes the sum of the magnitudes of elements of a real vector, or the sum of magnitudes of the real and imaginary parts of elements of a complex vector: res = |Re x1| + |Im x1| + |Re x2| + |Im x2|+ ...The ?axpy routines perform a vector-vector operation defined as y := a*x + y where: a is a scalar x and y are vectors each with a number of elements that equals n.The ?cabs1 is an auxiliary routine for a few BLAS Level 1 routines.The ?copy routines perform a vector-vector operation defined as y = x, where x and y are vectors.The ?dot routines perform a vector-vector reduction operation defined as Equation where xi and yi are elements of vectors x and y.The ?dotc routines perform a vector-vector operation defined as: EquationThe ?dotu routines perform a vector-vector reduction operation defined as Equation where xi and yi are elements of complex vectors x and y.https://se.mathworks.com/help/matlab/matlab_prog/compatible-array-sizes-for-basic-operations.html[A] -= ([a][b]c+[b][a]c)
[A] is assumed to be hermitian (square symmetric) [A] = [A]C.Performs Householder transformation from both sides simultaneously assuming that [A] is hermitian (square symmetric) [A] = [A]H.Multiplies an hermitian (square symmetric) matrix with a vector.The ?nrm2 routines perform a vector reduction operation defined as res = ||x||, where: x is a vector, res is a value containing the Euclidean norm of the elements of x.Infinity norm - largest absolute valueGiven two complex vectors x and y, each vector element of these vectors is replaced as follows: xi = c*xi + s*yi yi = c*yi - s*xiGiven the Cartesian coordinates (a, b) of a point, these routines return the parameters c, s, r, and z associated with the Givens rotation.Given two vectors x and y, each vector element of these vectors is replaced as follows: for i=1 to n, where H is a modified Givens transformation matrix whose values are stored in the param[1] through param[4] array.Given Cartesian coordinates (x1, y1) of an input vector, these routines compute the components of a modified Givens transformation matrix H that zeros the y-component of the resulting vector:The ?scal routines perform a vector operation defined as x = a*x where: a is a scalar, x is an n-element vector.The ?sdot routines compute the inner product of two vectors with double precision.Given two vectors x and y, the ?swap routines return vectors y and x swapped, each replacing the other.