{"id":61858,"library":"cppad","title":"CppAD","description":"CppAD: A Package for Differentiation of C++ Algorithms — automatic differentiation library.","status":"active","version":"20250000.3","language":"cpp","source_language":null,"source_url":null,"tags":["automatic-differentiation","math","header-only","c++"],"install":[{"cmd":"vcpkg install cppad","lang":"bash","label":"vcpkg"},{"cmd":"# CMakeLists.txt\nfind_package(cppad CONFIG REQUIRED)\ntarget_link_libraries(main PRIVATE cppad::cppad)","lang":"cmake","label":"CMake"}],"dependencies":[],"imports":[{"symbol":"cppad/cppad.hpp","correct":"#include <cppad/cppad.hpp>"}],"quickstart":{"code":"#include <cppad/cppad.hpp>\n#include <iostream>\n\nint main() {\n    CppAD::AD<double> x = 1.0;\n    CppAD::AD<double> y = x * x;\n    std::cout << \"y = \" << y << '\\n';\n}","lang":"cpp","description":"Basic automatic differentiation"},"warnings":[{"fix":"If using linear algebra, link to BLAS (e.g., find_package(BLAS)).","message":"CppAD is header-only but requires linking to a BLAS library for some features.","severity":"gotcha","affected_versions":"*"}],"env_vars":null,"search_vec":"'algorithm':9 'automat':10,14 'automatic-differenti':13 'c':8,20 'cppad':1,2 'differenti':6,11,15 'header':18 'header-on':17 'librari':12 'math':16 'packag':4","created_at":"2026-06-17T05:08:08.953401+00:00","updated_at":"2026-06-17T05:08:08.953401+00:00","problems":[],"ecosystem":"vcpkg","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":null,"github":null,"docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}