Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def c_compile_args(self, compiler):
return get_compile_args(compiler)
def c_compile_args(self, compiler):
args = get_compile_args(compiler)
args.append("-DREGULAR_GRID_NDIM={0}".format(self.ndim))
if self.ndim == 1:
args.append("-DREGULAR_GRID_NDIM_ORDER=Eigen::ColMajor")
else:
args.append("-DREGULAR_GRID_NDIM_ORDER=Eigen::RowMajor")
if 0 < self.nout <= 16:
args.append("-DREGULAR_GRID_NOUT={0}".format(self.nout))
if self.nout == 1:
args.append("-DREGULAR_GRID_NOUT_ORDER=Eigen::ColMajor")
else:
args.append("-DREGULAR_GRID_NOUT_ORDER=Eigen::RowMajor")
ndim_nout = self.ndim * self.nout
if 0 < ndim_nout <= 16:
args.append("-DREGULAR_GRID_NDIM_NOUT={0}".format(ndim_nout))
def c_compile_args(self, compiler):
return get_compile_args(compiler)
def c_compile_args(self, compiler):
return get_compile_args(compiler)
def c_compile_args(self, compiler):
args = get_compile_args(compiler)
if 0 < self.J <= 32:
args.append("-DCELERITE_J={0}".format(self.J))
args.append("-DCELERITE_J2={0}".format(self.J * self.J))
if self.J == 1:
args.append("-DCELERITE_J_ORDER=Eigen::ColMajor")
else:
args.append("-DCELERITE_J_ORDER=Eigen::RowMajor")
if 0 < self.n_rhs <= 32:
args.append("-DCELERITE_NRHS={0}".format(self.n_rhs))
args.append("-DCELERITE_JNRHS={0}".format(self.n_rhs * self.J))
if self.n_rhs == 1:
args.append("-DCELERITE_NRHS_ORDER=Eigen::ColMajor")
else:
args.append("-DCELERITE_NRHS_ORDER=Eigen::RowMajor")
if self.n_rhs == 1 and self.J == 1:
args.append("-DCELERITE_JNRHS_ORDER=Eigen::ColMajor")