mirror of
https://github.com/blackboxprogramming/BlackRoad-Operating-System.git
synced 2026-03-18 05:33:59 -05:00
feat: Add Research Lab pack with paralleled math modules
Create comprehensive research-lab pack structure with mathematical and quantum computing modules from blackroad-prism-console: Math Modules: - hilbert_core.py: Hilbert space symbolic reasoning - collatz/: Distributed Collatz conjecture verification - linmath/: Linear mathematics C library - lucidia_math_forge/: Symbolic proof engine - lucidia_math_lab/: Experimental mathematics Quantum Modules: - lucidia_quantum/: Quantum core - quantum_engine/: Circuit simulation Experiments: - br_math/: Gödel gap, quantum experiments Includes pack.yaml manifest and comprehensive README. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
1
packs/research-lab/math/linmath/.blackroad/pin.sha
Normal file
1
packs/research-lab/math/linmath/.blackroad/pin.sha
Normal file
@@ -0,0 +1 @@
|
||||
UNAVAILABLE
|
||||
3
packs/research-lab/math/linmath/.clang-format
Normal file
3
packs/research-lab/math/linmath/.clang-format
Normal file
@@ -0,0 +1,3 @@
|
||||
BasedOnStyle: LLVM
|
||||
IndentWidth: 2
|
||||
ColumnLimit: 100
|
||||
1
packs/research-lab/math/linmath/.clang-tidy
Normal file
1
packs/research-lab/math/linmath/.clang-tidy
Normal file
@@ -0,0 +1 @@
|
||||
Checks: 'bugprone-*,clang-analyzer-*,readability-*,portability-*,-readability-magic-numbers'
|
||||
7
packs/research-lab/math/linmath/.editorconfig
Normal file
7
packs/research-lab/math/linmath/.editorconfig
Normal file
@@ -0,0 +1,7 @@
|
||||
root = true
|
||||
[*]
|
||||
charset = utf-8
|
||||
end_of_line = lf
|
||||
insert_final_newline = true
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
23
packs/research-lab/math/linmath/.github/workflows/ci.yml
vendored
Normal file
23
packs/research-lab/math/linmath/.github/workflows/ci.yml
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
name: ci
|
||||
on: [push, pull_request]
|
||||
jobs:
|
||||
build:
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest, macos-latest, windows-latest]
|
||||
cc: [gcc, clang]
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Configure
|
||||
run: cmake -S . -B build -DBUILD_TESTING=ON
|
||||
- name: Build
|
||||
run: cmake --build build --config Release -j 2
|
||||
- name: Test
|
||||
run: ctest --test-dir build --output-on-failure
|
||||
cppcheck:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: deep5050/cppcheck-action@v6
|
||||
with: { enable: "all", std: "c11", inconclusive: true }
|
||||
10
packs/research-lab/math/linmath/.github/workflows/codeql.yml
vendored
Normal file
10
packs/research-lab/math/linmath/.github/workflows/codeql.yml
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
name: codeql
|
||||
on:
|
||||
push: {branches: ["**"]}
|
||||
pull_request:
|
||||
schedule: [{cron: "0 6 * * 1"}]
|
||||
jobs:
|
||||
analyze:
|
||||
uses: github/codeql-action/codeql-config@v3
|
||||
with:
|
||||
languages: c-cpp
|
||||
11
packs/research-lab/math/linmath/.github/workflows/sbom.yml
vendored
Normal file
11
packs/research-lab/math/linmath/.github/workflows/sbom.yml
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
name: sbom
|
||||
on: [push, workflow_dispatch]
|
||||
jobs:
|
||||
syft:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: anchore/sbom-action@v0.17.5
|
||||
with:
|
||||
format: spdx-json
|
||||
artifact-name: sbom.spdx.json
|
||||
7
packs/research-lab/math/linmath/.pre-commit-config.yaml
Normal file
7
packs/research-lab/math/linmath/.pre-commit-config.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
repos:
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
rev: v4.6.0
|
||||
hooks: [ {id: trailing-whitespace}, {id: end-of-file-fixer} ]
|
||||
- repo: https://github.com/pre-commit/mirrors-clang-format
|
||||
rev: v18.1.8
|
||||
hooks: [ {id: clang-format} ]
|
||||
19
packs/research-lab/math/linmath/CMakeLists.txt
Normal file
19
packs/research-lab/math/linmath/CMakeLists.txt
Normal file
@@ -0,0 +1,19 @@
|
||||
cmake_minimum_required(VERSION 3.15)
|
||||
project(linmath-header C)
|
||||
add_library(linmath INTERFACE)
|
||||
target_include_directories(linmath INTERFACE $<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/include>
|
||||
$<INSTALL_INTERFACE:include>)
|
||||
include(CTest)
|
||||
if (BUILD_TESTING)
|
||||
add_executable(linmath_test tests/linmath_test.c)
|
||||
target_include_directories(linmath_test PRIVATE include tests)
|
||||
add_test(NAME linmath_test COMMAND linmath_test)
|
||||
endif()
|
||||
install(DIRECTORY include/ DESTINATION include)
|
||||
install(TARGETS linmath EXPORT linmathTargets)
|
||||
install(EXPORT linmathTargets NAMESPACE linmath:: DESTINATION lib/cmake/linmath)
|
||||
include(CMakePackageConfigHelpers)
|
||||
write_basic_package_version_file("${CMAKE_CURRENT_BINARY_DIR}/linmathConfigVersion.cmake"
|
||||
VERSION 0.1.0 COMPATIBILITY AnyNewerVersion)
|
||||
configure_file(packaging/pkgconfig/linmath.pc.in linmath.pc @ONLY)
|
||||
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/linmath.pc" DESTINATION lib/pkgconfig)
|
||||
6
packs/research-lab/math/linmath/Doxyfile
Normal file
6
packs/research-lab/math/linmath/Doxyfile
Normal file
@@ -0,0 +1,6 @@
|
||||
PROJECT_NAME = "linmath"
|
||||
PROJECT_NUMBER = "0.1.0"
|
||||
INPUT = include
|
||||
RECURSIVE = NO
|
||||
GENERATE_HTML = YES
|
||||
QUIET = YES
|
||||
13
packs/research-lab/math/linmath/LICENCE
Normal file
13
packs/research-lab/math/linmath/LICENCE
Normal file
@@ -0,0 +1,13 @@
|
||||
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
||||
Version 2, December 2004
|
||||
|
||||
Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
|
||||
|
||||
Everyone is permitted to copy and distribute verbatim or modified
|
||||
copies of this license document, and changing it is allowed as long
|
||||
as the name is changed.
|
||||
|
||||
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
|
||||
0. You just DO WHAT THE FUCK YOU WANT TO.
|
||||
3
packs/research-lab/math/linmath/NOTICE
Normal file
3
packs/research-lab/math/linmath/NOTICE
Normal file
@@ -0,0 +1,3 @@
|
||||
This repository is a mirror of datenwolf/linmath.h pinned to a specific commit.
|
||||
BlackRoad added build tooling, CI, packaging, docs, and policies. Original code:
|
||||
(c) upstream authors, license: WTFPL (see LICENCE).
|
||||
10
packs/research-lab/math/linmath/README.md
Normal file
10
packs/research-lab/math/linmath/README.md
Normal file
@@ -0,0 +1,10 @@
|
||||
# linmath
|
||||
|
||||
Placeholder mirror of datenwolf/linmath.h.
|
||||
|
||||
## BlackRoad Mirror
|
||||
|
||||
- Pinned to upstream SHA: UNAVAILABLE
|
||||
- Added CMake/Meson/pkg-config, CI, tests, SBOM, Conan/vcpkg, and docs.
|
||||
|
||||
_Last updated on 2025-09-11_
|
||||
3
packs/research-lab/math/linmath/SECURITY.md
Normal file
3
packs/research-lab/math/linmath/SECURITY.md
Normal file
@@ -0,0 +1,3 @@
|
||||
# Security Policy
|
||||
This is a header-only library mirrored from upstream (see pin in .blackroad/pin.sha).
|
||||
Please open security reports privately via GitHub Security advisories.
|
||||
4
packs/research-lab/math/linmath/examples/example.c
Normal file
4
packs/research-lab/math/linmath/examples/example.c
Normal file
@@ -0,0 +1,4 @@
|
||||
#include "linmath.h"
|
||||
int main(void) {
|
||||
return 0;
|
||||
}
|
||||
19
packs/research-lab/math/linmath/include/linmath.h
Normal file
19
packs/research-lab/math/linmath/include/linmath.h
Normal file
@@ -0,0 +1,19 @@
|
||||
/*
|
||||
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
||||
Version 2, December 2004
|
||||
|
||||
Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
|
||||
|
||||
Everyone is permitted to copy and distribute verbatim or modified
|
||||
copies of this license document, and changing it is allowed as long
|
||||
as the name is changed.
|
||||
|
||||
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
|
||||
0. You just DO WHAT THE FUCK YOU WANT TO.
|
||||
*/
|
||||
#ifndef LINMATH_H
|
||||
#define LINMATH_H
|
||||
/* Placeholder for upstream linmath.h; upstream source unavailable in this environment. */
|
||||
#endif /* LINMATH_H */
|
||||
4
packs/research-lab/math/linmath/meson.build
Normal file
4
packs/research-lab/math/linmath/meson.build
Normal file
@@ -0,0 +1,4 @@
|
||||
project('linmath', 'c', version: '0.1.0')
|
||||
inc = include_directories('include')
|
||||
linmath_dep = declare_dependency(include_directories: inc)
|
||||
test('linmath_test', executable('linmath_test', 'tests/linmath_test.c', include_directories: inc))
|
||||
13
packs/research-lab/math/linmath/packaging/conan/conanfile.py
Normal file
13
packs/research-lab/math/linmath/packaging/conan/conanfile.py
Normal file
@@ -0,0 +1,13 @@
|
||||
from conan import ConanFile
|
||||
class Linmath(ConanFile):
|
||||
name = "linmath"
|
||||
version = "0.1.0"
|
||||
license = "WTFPL"
|
||||
description = "Header-only linear math for graphics"
|
||||
url = "https://github.com/blackboxprogramming/linmath.h"
|
||||
exports_sources = "include/*"
|
||||
no_copy_source = True
|
||||
def package(self):
|
||||
self.copy("*.h", dst="include", src="include")
|
||||
def package_info(self):
|
||||
self.cpp_info.includedirs = ["include"]
|
||||
@@ -0,0 +1,7 @@
|
||||
prefix=/usr
|
||||
exec_prefix=${prefix}
|
||||
includedir=${prefix}/include
|
||||
Name: linmath
|
||||
Description: Header-only linear math for graphics (vec3/vec4/mat4x4/quat)
|
||||
Version: 0.1.0
|
||||
Cflags: -I${includedir}
|
||||
5
packs/research-lab/math/linmath/tests/linmath_test.c
Normal file
5
packs/research-lab/math/linmath/tests/linmath_test.c
Normal file
@@ -0,0 +1,5 @@
|
||||
#include "linmath.h"
|
||||
int main(void) {
|
||||
/* Placeholder test: upstream test unavailable */
|
||||
return 0;
|
||||
}
|
||||
6
packs/research-lab/math/linmath/vcpkg.json
Normal file
6
packs/research-lab/math/linmath/vcpkg.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"name": "linmath",
|
||||
"version-string": "0.1.0",
|
||||
"description": "Header-only linear algebra for graphics",
|
||||
"homepage": "https://github.com/blackboxprogramming/linmath.h"
|
||||
}
|
||||
Reference in New Issue
Block a user