{"id":20501561,"url":"https://github.com/jagot/cxxblas","last_synced_at":"2026-03-09T15:31:49.715Z","repository":{"id":83668585,"uuid":"83790815","full_name":"jagot/cxxblas","owner":"jagot","description":null,"archived":false,"fork":false,"pushed_at":"2017-03-07T13:56:58.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-06T16:55:24.258Z","etag":null,"topics":["blas","cblas","lapack","lapacke"],"latest_commit_sha":null,"homepage":null,"language":"CMake","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jagot.png","metadata":{"files":{"readme":"README.org","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-03-03T11:19:12.000Z","updated_at":"2017-03-03T11:22:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"e4367312-18b3-41e7-ba3a-a8567619e15e","html_url":"https://github.com/jagot/cxxblas","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jagot/cxxblas","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jagot%2Fcxxblas","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jagot%2Fcxxblas/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jagot%2Fcxxblas/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jagot%2Fcxxblas/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jagot","download_url":"https://codeload.github.com/jagot/cxxblas/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jagot%2Fcxxblas/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30301109,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T14:33:48.460Z","status":"ssl_error","status_checked_at":"2026-03-09T14:33:48.027Z","response_time":61,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["blas","cblas","lapack","lapacke"],"created_at":"2024-11-15T18:27:11.311Z","updated_at":"2026-03-09T15:31:49.675Z","avatar_url":"https://github.com/jagot.png","language":"CMake","funding_links":[],"categories":[],"sub_categories":[],"readme":"#+TITLE: CXXBLAS\n#+AUTHOR: Stefanos Carlström\n#+EMAIL: stefanos.carlstrom@gmail.com\n\n* Introduction\n  C++ (header-only) templated wrappers around CBLAS/LAPACKE.\n  \n  Tested with OpenBLAS on Linux and Accelerate on macOS.\n\n* Example usage\n  scale.cpp:\n  #+BEGIN_SRC C++\n    #include \"cxxblas.h\"\n    #include \u003ccomplex\u003e\n    #include \u003cvector\u003e\n    #include \u003ciostream\u003e\n\n    template\u003cclass T\u003e\n    void pvec(const std::vector\u003cT\u003e\u0026 v)\n    {\n      std::cout \u003c\u003c \"[\";\n      for(const auto \u0026e : v)\n        std::cout \u003c\u003c e \u003c\u003c \" \";\n      std::cout \u003c\u003c \"]\" \u003c\u003c std::endl;\n    }\n\n    int main(int argc, char* argv[])\n    {\n      int n = 10;\n      std::vector\u003cstd::complex\u003cdouble\u003e\u003e x(n, {0.0, 1.0});\n\n      pvec(x);\n\n      cxxblas::scale(5.0, x);\n  \n      pvec(x);\n\n      return 0;\n    }\n  #+END_SRC\n\n  CMakeLists.txt:\n  #+BEGIN_SRC cmake\n    cmake_minimum_required(VERSION 3.6)\n    project(meff)\n\n    # Or wherever cxxblas cmake directory is to be found\n    set(CMAKE_MODULE_PATH \"${CMAKE_CURRENT_SOURCE_DIR}/cxxblas/cmake\")\n    include(CXXBLAS)\n\n    add_executable(scale scale.cpp)\n    target_link_libraries(scale ${CXXBLAS_LIBRARIES})\n  #+END_SRC\n\n  Output:\n  #+BEGIN_EXAMPLE\n    [(0,1) (0,1) (0,1) (0,1) (0,1) (0,1) (0,1) (0,1) (0,1) (0,1) ]\n    [(0,5) (0,5) (0,5) (0,5) (0,5) (0,5) (0,5) (0,5) (0,5) (0,5) ]\n  #+END_EXAMPLE\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjagot%2Fcxxblas","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjagot%2Fcxxblas","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjagot%2Fcxxblas/lists"}