Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# SCM syntax highlighting & preventing 3-way merges
pixi.lock merge=binary linguist-language=YAML linguist-generated=true
25 changes: 25 additions & 0 deletions .github/workflows/ci_basic.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Build and check binaries
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
on: [push, pull_request]
jobs:
build_eon:
runs-on: ${{ matrix.os }}
name: test (${{ matrix.os }})
strategy:
fail-fast: false
matrix:
# TODO: Check windows-2022 later
os: [ubuntu-22.04, macos-13, macos-14]
steps:
- uses: actions/checkout@v4
- uses: prefix-dev/[email protected]
with:
cache: true
cache-write: ${{ github.event_name == 'push' && github.ref_name == 'main' }}
activate-environment: true
- name: Build sketchmap tools
shell: pixi run bash -e {0}
run: |
make -j $(nproc)
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,7 @@ bin/*
*.d
*.a
make.in

# pixi environments
.pixi
*.egg-info
2 changes: 1 addition & 1 deletion libs/minsearch.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ void min_powell (
const std::valarray<double> & initial_pos,
std::valarray<double>& rpos, double& rvalue,
const PowellOpts& op,
std::valarray<std::valarray<double> >& u=std::valarray<double>(0)
std::valarray<std::valarray<double> >& u
)
{
RndGaussian<double,StdRndUniform> rng;
Expand Down
14 changes: 14 additions & 0 deletions libs/tbdefs.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,20 @@
#include <complex>
#include <time.h>

template<typename T>
std::ostream& operator<<(std::ostream& os, const std::valarray<T>& v)
{
os << "[";
if (v.size() > 0) {
os << v[0];
for (size_t i = 1; i < v.size(); ++i) {
os << ", " << v[i];
}
}
os << "]";
return os;
}

/**************************************
* MACROS & DEFINES *
**************************************/
Expand Down
Loading