This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <cstddef> | |
/// A non-owning memory view in a C++ std::vector<double> like object. | |
class ExternalBuffer { | |
public: | |
ExternalBuffer(double* data, size_t length): | |
data_(data), length_(length) {} | |
void* data() { | |
return reinterpret_cast<void*>(data_); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set(CMAKE_SYSTEM_NAME Linux) | |
set(CMAKE_SYSTEM_PROCESSOR aarch64) | |
set(CMAKE_CROSSCOMPILING TRUE) | |
if (CMAKE_TOOLCHAIN_FILE) | |
endif() | |
set(CMAKE_C_COMPILER /usr/bin/aarch64-linux-gnu-gcc) | |
set(CMAKE_CXX_COMPILER /usr/bin/aarch64-linux-gnu-g++) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import gzip | |
import json | |
import numpy as np | |
input_path = "./app/examples/Zeolites.json.gz" | |
output_path = "Zeolites.json.gz" | |
with gzip.open(input_path) as fd: | |
data = json.load(fd) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import gzip | |
import json | |
import numpy as np | |
input_path = "TODO" | |
output_path = "TODO" | |
if input_path.endswith(".gz"): | |
with gzip.open(input_path) as fd: |
OlderNewer