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 <iostream> | |
#include <iomanip> | |
#include <fstream> | |
#include <sys/time.h> | |
#include "ap.h" | |
#include "linalg.h" | |
using namespace std; | |
using namespace alglib; |
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
#ifndef GSLSINGULARVALUEDECOMPOSITION_H | |
#define GSLSINGULARVALUEDECOMPOSITION_H | |
#include <gsl/gsl_matrix.h> | |
#include <gsl/gsl_vector.h> | |
#include <gsl/gsl_blas.h> | |
#include <gsl/gsl_linalg.h> | |
#include <gsl/gsl_errno.h> | |
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 <stdio.h> | |
#include <string> | |
#include <iostream> | |
#include <fstream> | |
#include <sstream> | |
#include <iomanip> | |
#include <sys/time.h> | |
#include <gsl/gsl_vector.h> | |
#include "gsl_SVD.h" |
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
#define EIGEN_USE_MKL_ALL | |
#define EIGEN_VECTORIZE_SSE4_2 | |
#include <bits/stdc++.h> | |
#include <sys/time.h> | |
#include <iostream> | |
#include <fstream> | |
#include <string> | |
#include <vector> | |
#include <exception> |
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
# Define base image | |
# FROM nvidia/cuda:11.3.0-runtime-ubuntu20.04 | |
# FROM nvidia/cuda:11.3.0-cudnn8-runtime-ubuntu20.04 | |
# FROM nvidia/cuda:11.3.0-cudnn8-devel-ubuntu20.04 | |
FROM nvidia/cuda:11.0.3-cudnn8-devel-ubuntu20.04 | |
ENV PATH="/root/miniconda3/bin:${PATH}" | |
ARG PATH="/root/miniconda3/bin:${PATH}" | |
RUN sed -i 's/http:\/\/archive.ubuntu.com\/ubuntu/http:\/\/free.nchc.org.tw\/ubuntu/g' /etc/apt/sources.list |
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
% Clear all text from the Command Window. | |
clc; clear all; close all; | |
fprintf('SVD -- start calculating...\n'); | |
tic % 開始計時 | |
% data importing | |
% data = 'LBPhistogram_BGC_20220609.csv'; | |
% data = 'LBPhistogram_BRGC_20220609.csv'; |
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 <bits/stdc++.h> | |
#include <sys/time.h> | |
#include <iostream> | |
#include <ctime> | |
#include <fstream> | |
#include <vector> | |
#include <sstream> | |
#include <map> | |
#include <algorithm> | |
#include <cmath> |
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
# Tools | |
import time | |
import board | |
import neopixel | |
dup = 37 # hyphen | |
# include audio libraries |
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
""" Example for using the SGP30 and PM25 with CircuitPython | |
and the Adafruit library """ | |
import digitalio | |
import busio | |
import adafruit_sgp30 | |
import board | |
import adafruit_pm25 | |
from tool import show_SGP, show_SGP_baseline # for SGP30 | |
from tool import show_PM25 # for PMSA003 |
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
[net] | |
# Testing | |
# batch=1 | |
# subdivisions=1 | |
# Training | |
batch=16 | |
subdivisions=8 | |
width=416 | |
height=416 | |
channels=3 |
NewerOlder