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 <fstream> | |
#include <iomanip> | |
#include <functional> | |
#include <random> | |
#include <chrono> | |
#include "utils/timer.hpp" | |
#include "rcwa/WaveEquationCoeff.h" | |
#include "core/RCWAScatterMatrix.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
import pickle | |
import numpy as np | |
import matplotlib.pyplot as plt | |
import gdspy | |
import cv2 | |
index_low = 1.445*1.445 | |
index_hi = 3.48*3.48 | |
thr = 0.5 | |
SizePerPixel = 0.04 |
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
/** | |
* Parse function for each non-terminal with error recovery. | |
* TODO: add error recovery! | |
* | |
* @param symbol the non-terminal to be parsed. | |
* @return the parsed value of `symbol` if parsing succeeded, otherwise `null`. | |
*/ | |
private SemValue parse(int symbol, Set<Integer> follow) { | |
Pair<Integer, List<Integer>> result = query(symbol, lookahead); // get production by lookahead symbol |