nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/linalg/api/blas/impl/BaseLevel2.java
@Override
    public void her2(char order, char Uplo, IComplexNumber alpha, IComplexNDArray X, IComplexNDArray Y,
                    IComplexNDArray A) {
        // FIXME: int cast

        if (X.data().dataType() == DataBuffer.Type.DOUBLE)
            zher2(order, Uplo, (int) A.rows(), alpha.asDouble(), X, X.majorStride() / 2, Y, Y.majorStride() / 2, A,
                    (int) A.size(0));
        else
            cher2(order, Uplo, (int) A.rows(), alpha.asFloat(), X, X.majorStride() / 2, Y, Y.majorStride() / 2, A, (int) A.size(0));

    }
@Override
    public void her2(char order, char Uplo, IComplexNumber alpha, IComplexNDArray X, IComplexNDArray Y,
                    IComplexNDArray A) {
        // FIXME: int cast

        if (X.data().dataType() == DataBuffer.Type.DOUBLE)
            zher2(order, Uplo, (int) A.rows(), alpha.asDouble(), X, X.majorStride() / 2, Y, Y.majorStride() / 2, A,
                    (int) A.size(0));
        else
            cher2(order, Uplo, (int) A.rows(), alpha.asFloat(), X, X.majorStride() / 2, Y, Y.majorStride() / 2, A, (int) A.size(0));

    }
@ Override public void her2 ( char order , char Uplo , IComplexNumber alpha , IComplexNDArray X , IComplexNDArray Y , IComplexNDArray A ) { // FIXME: int cast if ( X . data ( ) . dataType ( ) == DataBuffer . Type . DOUBLE ) zher2 ( order , Uplo , ( int ) A . rows ( ) , alpha . asDouble ( ) , X , X . majorStride ( ) / 2 , Y , Y . majorStride ( ) / 2 , A , ( int ) A . size ( 0 ) ) ; else cher2 ( order , Uplo , ( int ) A . rows ( ) , alpha . asFloat ( ) , X , X . majorStride ( ) / 2 , Y , Y . majorStride ( ) / 2 , A , ( int ) A . size ( 0 ) ) ; }
?her2 performs a rank-2 update of an n-by-n Hermitian matrix a:
a := alpha*x*conjg(y') + conjg(alpha)*y*conjg(x') + a.

@param order
@param Uplo
@param alpha
@param X
@param Y
@param A
?her2 performs a rank - 2 update of an n - by - n Hermitian matrix a : a : = alpha * x * conjg ( y ) + conjg ( alpha ) * y * conjg ( x ) + a .