Skip to content

add crot and zrot to LAPACKE#1192

Open
kevinsung wants to merge 1 commit intoReference-LAPACK:masterfrom
kevinsung:zrot
Open

add crot and zrot to LAPACKE#1192
kevinsung wants to merge 1 commit intoReference-LAPACK:masterfrom
kevinsung:zrot

Conversation

@kevinsung
Copy link

Description

Fixes #962.

I tested this by creating a file

/* test_rot.c */
#include <lapacke.h>
#include <stdio.h>

int main() {
    lapack_complex_float  cx = lapack_make_complex_float(1.0f, 0.0f);
    lapack_complex_float  cy = lapack_make_complex_float(0.0f, 1.0f);
    lapack_complex_float  cs = lapack_make_complex_float(0.0f, 1.0f);
    lapack_complex_double zx = lapack_make_complex_double(1.0, 0.0);
    lapack_complex_double zy = lapack_make_complex_double(0.0, 1.0);
    lapack_complex_double zs = lapack_make_complex_double(0.0, 1.0);

    LAPACKE_crot(1, &cx, 1, &cy, 1, 0.0f, cs);
    LAPACKE_zrot(1, &zx, 1, &zy, 1, 0.0,  zs);
    printf("crot and zrot succeeded\n");
    return 0;
}

and then running

mkdir build
pushd build
cmake .. -DLAPACKE=ON -DBUILD_TESTING=ON
cmake --build . --target lapacke -j$(nproc)
popd
gcc -o test_rot test_rot.c -I LAPACKE/include -I build/include \
    -L build/lib -llapacke -llapack -lblas -lm && ./test_rot

Checklist

  • The documentation has been updated.
  • If the PR solves a specific issue, it is set to be closed on merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add zrot to LAPACKE

1 participant