content stringlengths 6 1.03M | input_ids listlengths 4 535k | ratio_char_token float64 0.68 8.61 | token_count int64 4 535k |
|---|---|---|---|
include("vulkan/conventions.jl")
include("vulkan/patterns.jl")
include("vulkan/gen.jl") | [
17256,
7203,
85,
31263,
14,
1102,
16593,
13,
20362,
4943,
198,
17256,
7203,
85,
31263,
14,
33279,
82,
13,
20362,
4943,
198,
17256,
7203,
85,
31263,
14,
5235,
13,
20362,
4943
] | 2.806452 | 31 |
using Revise
using Test
wait_for_key(prompt) = (println(stdout, prompt); read(stdin, 1); nothing)
names = [
"test_operators_dense.jl",
"test_superoperators.jl",
"test_metrics.jl",
"test_molecules.jl",
"test_aggregate.jl",
"test_evolution.jl",
"test_schroedinger.jl",
"test_liouville.jl... | [
198,
3500,
5416,
786,
198,
3500,
6208,
198,
198,
17077,
62,
1640,
62,
2539,
7,
16963,
457,
8,
796,
357,
35235,
7,
19282,
448,
11,
6152,
1776,
1100,
7,
19282,
259,
11,
352,
1776,
2147,
8,
198,
198,
14933,
796,
685,
198,
220,
220,
... | 2.021875 | 320 |
<filename>test/VehicleJuMP.jl
using JuMP
using GLPK
model = Model(GLPK.Optimizer)
#unregister(model, :x)
@variable(model,1 <= x <= 100,Int)
@variable(model,1 <= y <= 100,Int)
@NLobjective(model,Min,abs(y/x-2.9))
print(model)
optimize!(model)
solution_summary(model)
println("** Optimal objective function value = ", JuM... | [
27,
34345,
29,
9288,
14,
37870,
1548,
33018,
7378,
13,
20362,
198,
3500,
12585,
7378,
198,
3500,
10188,
40492,
198,
19849,
796,
9104,
7,
8763,
40492,
13,
27871,
320,
7509,
8,
198,
2,
403,
30238,
7,
19849,
11,
1058,
87,
8,
198,
31,
... | 2.638037 | 163 |
<filename>modules/ACASX_Compare_Tree/src/script.jl
using RLESUtils,RunUtils,IFTTTUtils
const COMP = gethostname()
const DATA = "098filt_10K"
template_gp(i) =
"""
using GrammarExpts,ACASX_GP_Tree,RLESUtils,IFTTTUtils
config=configure(ACASX_GP_Tree,"normal","nvn_libcas098smallfilt_10K")
acasx_gp_tree(;seed=$i, outdir=... | [
27,
34345,
29,
18170,
14,
2246,
1921,
55,
62,
41488,
62,
27660,
14,
10677,
14,
12048,
13,
20362,
198,
3500,
371,
28378,
18274,
4487,
11,
10987,
18274,
4487,
11,
5064,
15751,
51,
18274,
4487,
198,
198,
9979,
24301,
796,
651,
4774,
3672... | 2.192166 | 817 |
<filename>src/Gopts.jl<gh_stars>1-10
module Gopts
export GOpts
mutable struct GOpts
algo :: Cint
dim :: Cint
x_s :: Ptr{Cdouble}
x_l :: Ptr{Cdouble}
x_u :: Ptr{Cdouble}
iter :: Cint
retRes :: Ptr{Cdouble}
retErr :: Ptr{Cdouble}
func :: Ptr{Cvoid}
GOpts() = new(-1,-1,C_N... | [
27,
34345,
29,
10677,
14,
38,
404,
912,
13,
20362,
27,
456,
62,
30783,
29,
16,
12,
940,
198,
21412,
402,
404,
912,
198,
198,
39344,
10351,
457,
82,
198,
198,
76,
18187,
2878,
10351,
457,
82,
198,
220,
220,
220,
435,
2188,
7904,
... | 1.866337 | 202 |
struct Rect{T <: Number}
m::Matrix{T}
function Rect{T}(m::Matrix{T}) where T <: Number
@assert size(m) == (2, 2) && all(lb(m) .< ru(m)) "Invalid values."
new(m)
end
Rect{T}(lx::T, ly::T, rx::T, ry::T) where T <: Number =
new(Matrix([min(lx, rx) max(lx, rx); min(ly, ry) max(ly, ry... | [
7249,
48599,
90,
51,
1279,
25,
7913,
92,
198,
220,
220,
220,
285,
3712,
46912,
90,
51,
92,
198,
220,
220,
220,
2163,
48599,
90,
51,
92,
7,
76,
3712,
46912,
90,
51,
30072,
810,
309,
1279,
25,
7913,
198,
220,
220,
220,
220,
220,
... | 1.963256 | 7,457 |
<reponame>jbrea/MLJLinearModels.jl
using MLJLinearModels, StableRNGs
using BenchmarkTools, Random, LinearAlgebra
DO_COMPARISONS = false; include("../testutils.jl")
n, p = 50_000, 500
((X, y, θ), (X1, y1, θ1)) = generate_continuous(n, p; seed=512, sparse=0.5)
# =============== #
# RIDGE FUNCTIONS #
#
# Hv! ... | [
27,
7856,
261,
480,
29,
73,
4679,
64,
14,
5805,
41,
14993,
451,
5841,
1424,
13,
20362,
198,
3500,
10373,
41,
14993,
451,
5841,
1424,
11,
520,
540,
49,
10503,
82,
198,
3500,
25187,
4102,
33637,
11,
14534,
11,
44800,
2348,
29230,
198,... | 2.207469 | 1,205 |
function _purgecase(cur_string::AbstractString)
cur_string = replace(cur_string, "-" => " ")
cur_string = replace(cur_string, "_" => " ")
cur_string
end
| [
8818,
4808,
14225,
469,
7442,
7,
22019,
62,
8841,
3712,
23839,
10100,
8,
198,
220,
1090,
62,
8841,
796,
6330,
7,
22019,
62,
8841,
11,
366,
21215,
5218,
366,
366,
8,
198,
220,
1090,
62,
8841,
796,
6330,
7,
22019,
62,
8841,
11,
4543... | 2.807018 | 57 |
<filename>test/TestLinearIntegerEquations.jl
"""
module TestLinearIntegerEquations - Test ModiaBase/src/LinearIntegerEquations.jl
"""
module TestLinearIntegerEquations
using Test
using ModiaBase
println("... Test LinearIntegerEquations.jl")
@testset "Test LinearIntegerEquations.jl" begin
@testset "... Tes... | [
27,
34345,
29,
9288,
14,
14402,
14993,
451,
46541,
23588,
602,
13,
20362,
198,
37811,
198,
220,
220,
220,
8265,
6208,
14993,
451,
46541,
23588,
602,
532,
6208,
3401,
544,
14881,
14,
10677,
14,
14993,
451,
46541,
23588,
602,
13,
20362,
... | 1.377837 | 10,576 |
# Various aliases to support the Base.Filesystem API or overwrite base behaviour.
# Fallback non-filepath methods if folks explicitly import these symbols
/(args...) = Base.:/(args...)
join(args...) = Base.join(args...)
# Aliases for Base.Filesystem API
# Filesystem methods that were renamed should still have an ali... | [
2,
26386,
47217,
284,
1104,
262,
7308,
13,
25876,
6781,
7824,
393,
49312,
2779,
9172,
13,
198,
198,
2,
7218,
1891,
1729,
12,
7753,
6978,
5050,
611,
7974,
11777,
1330,
777,
14354,
198,
29006,
22046,
23029,
796,
7308,
11207,
29006,
22046,... | 3.167155 | 341 |
<gh_stars>1-10
abstract Solver
create_policy(solver::Solver, pomdp::POMDP) = error("$(typeof(pomdp)) does not implement create_policy")
solve(solver::Solver, pomdp::POMDP, policy=create_policy(solver, pomdp)) = error("$(typeof(solver)) does not implement solve for model $(typeof(pomdp))")
| [
27,
456,
62,
30783,
29,
16,
12,
940,
198,
198,
397,
8709,
4294,
332,
198,
198,
17953,
62,
30586,
7,
82,
14375,
3712,
50,
14375,
11,
279,
296,
26059,
3712,
47,
2662,
6322,
8,
796,
4049,
7203,
3,
7,
4906,
1659,
7,
79,
296,
26059,
... | 2.630631 | 111 |
function Vector3D(arg0::Vector{jdouble})
return Vector3D((Vector{jdouble},), arg0)
end
function Vector3D(arg0::jdouble, arg1::Vector3D)
return Vector3D((jdouble, Vector3D), arg0, arg1)
end
function Vector3D(arg0::jdouble, arg1::Vector3D, arg2::jdouble, arg3::Vector3D)
return Vector3D((jdouble, Vector3D, j... | [
8818,
20650,
18,
35,
7,
853,
15,
3712,
38469,
90,
73,
23352,
30072,
198,
220,
220,
220,
1441,
20650,
18,
35,
19510,
38469,
90,
73,
23352,
5512,
828,
1822,
15,
8,
198,
437,
198,
198,
8818,
20650,
18,
35,
7,
853,
15,
3712,
73,
233... | 2.502536 | 2,169 |
@testset "Spin spherical harmonic mode indices (s=$s)" for s in -2:2
lmax = 10
N = lmax + 1
M = 2 * N - 1
mode_seen = zeros(Int, N, M)
for l in abs(s):lmax, m in (-l):l
mode_seen[spinsph_mode(s, l, m)] += 1
end
@test mode_seen == spinsphones(Bool, N, M, s)
# Test some concrete ... | [
31,
9288,
2617,
366,
4561,
259,
43180,
49239,
4235,
36525,
357,
82,
43641,
82,
16725,
329,
264,
287,
532,
17,
25,
17,
198,
220,
220,
220,
300,
9806,
796,
838,
198,
220,
220,
220,
399,
796,
300,
9806,
1343,
352,
198,
220,
220,
220,... | 1.573204 | 8,046 |
<reponame>mattlie82/ExtendableGrids.jl
"""
````
function simplexgrid(coord::Array{Tc,2},
cellnodes::Array{Ti,2},
cellregions::Array{Ti,1},
bfacenodes::Array{Ti,2},
bfaceregions::Array{Ti,1}
) where {Tc,Ti}
````
... | [
27,
7856,
261,
480,
29,
76,
1078,
14485,
6469,
14,
11627,
437,
540,
8642,
2340,
13,
20362,
198,
37811,
198,
33153,
198,
8818,
2829,
87,
25928,
7,
37652,
3712,
19182,
90,
51,
66,
11,
17,
5512,
198,
220,
220,
220,
220,
220,
220,
220... | 1.73513 | 12,021 |
export draw_basin!, basins_of_attraction, automatic_Δt_basins
"""
basins_of_attraction(grid::Tuple, ds::DynamicalSystem; kwargs...) -> basins, attractors
Compute an estimate of the basins of attraction of a dynamical system `ds` on
a partitioning of the state space given by `grid`. The method has been
inspired by... | [
39344,
3197,
62,
12093,
259,
28265,
1615,
1040,
62,
1659,
62,
1078,
7861,
11,
11353,
62,
138,
242,
83,
62,
12093,
1040,
628,
198,
37811,
198,
220,
220,
220,
1615,
1040,
62,
1659,
62,
1078,
7861,
7,
25928,
3712,
51,
29291,
11,
288,
... | 3.109728 | 3,454 |
<reponame>Krastanov/Makie.jl
using Test, MakieCore
# Main tests live in Makie.jl, but we should write some unit tests going forward!
using MakieCore: @recipe, Attributes, Plot
import MakieCore: plot!, convert_arguments, used_attributes, plot
import MakieCore: Observable, PointBased
struct AbstractTimeseriesSolution
... | [
27,
7856,
261,
480,
29,
42,
5685,
272,
709,
14,
44,
461,
494,
13,
20362,
198,
3500,
6208,
11,
15841,
494,
14055,
198,
198,
2,
8774,
5254,
2107,
287,
15841,
494,
13,
20362,
11,
475,
356,
815,
3551,
617,
4326,
5254,
1016,
2651,
0,
... | 2.860636 | 409 |
<reponame>udistr/ALGCM1D.jl
function surface(mtime)
global SW,LW,LH,SH,E,TAU,Qnet,MOL
########################################################################
# surface
########################################################################
#roughness length (stensrud, table 2.3)
#Ice 10^-4
#Grass (m... | [
27,
7856,
261,
480,
29,
463,
396,
81,
14,
1847,
15916,
44,
16,
35,
13,
20362,
198,
8818,
4417,
7,
76,
2435,
8,
628,
220,
3298,
12672,
11,
43,
54,
11,
43,
39,
11,
9693,
11,
36,
11,
5603,
52,
11,
48,
3262,
11,
44,
3535,
198,
... | 1.814645 | 874 |
<filename>src/Notebook.jl<gh_stars>1-10
export notebook
####################################################
abstract type PlotKey end
const PlotId = Any #PlotlyJS.GenericTrace
const PlotRef = GenericRef{PlotKey, PlotId}
const PlotNativeRef = NativeRef{PlotKey, PlotId}
const PlotUnionRef = UnionRef{PlotKey, PlotId}
co... | [
27,
34345,
29,
10677,
14,
6425,
2070,
13,
20362,
27,
456,
62,
30783,
29,
16,
12,
940,
198,
39344,
20922,
198,
198,
29113,
14468,
4242,
198,
397,
8709,
2099,
28114,
9218,
886,
198,
9979,
28114,
7390,
796,
4377,
1303,
43328,
306,
20120,... | 2.049304 | 10,993 |
<filename>src/LuckyImaging.jl<gh_stars>1-10
module LuckyImaging
using DataDeps
using Statistics
using SubpixelRegistration
export lucky_image,
lucky_image!,
testcube
include("util.jl")
include("classic.jl")
include("data.jl")
# include("fourier.jl")
function __init__()
DataDeps.register(testcube_... | [
27,
34345,
29,
10677,
14,
43,
5309,
3546,
3039,
13,
20362,
27,
456,
62,
30783,
29,
16,
12,
940,
198,
21412,
27963,
3546,
3039,
198,
198,
3500,
6060,
12156,
82,
198,
3500,
14370,
198,
3500,
3834,
32515,
47133,
198,
198,
39344,
9670,
... | 2.661417 | 127 |
<reponame>dsweber2/FourierFilterFlux.jl
using Zygote:@show,hook
function dem(x, msg)
# @show (norm(x), typeof(x), msg)
return x
end
# todo version that doesn't have an fft built in
function (shears::ConvFFT{D,OT,A,B,C,PD,P})(x) where {D,OT,A,B,C,PD,P <: Tuple}
if typeof(shears.weight) <: CuArray && !(typeo... | [
27,
7856,
261,
480,
29,
9310,
732,
527,
17,
14,
37,
280,
5277,
22417,
37,
22564,
13,
20362,
198,
3500,
1168,
35641,
1258,
25,
31,
12860,
11,
25480,
198,
8818,
1357,
7,
87,
11,
31456,
8,
198,
220,
220,
220,
1303,
2488,
12860,
357,
... | 2.308439 | 2,370 |
{"score_count": 67975, "score": 7.61, "timestamp": 1545149834.0}
{"score_count": 67896, "score": 7.61, "timestamp": 1544826365.0}
{"score_count": 61395, "score": 7.64, "timestamp": 1522339575.0}
{"score_count": 48467, "score": 7.69, "timestamp": 1488290245.0}
{"score_count": 47212, "score": 7.69, "timestamp": 148458899... | [
4895,
26675,
62,
9127,
1298,
718,
3720,
2425,
11,
366,
26675,
1298,
767,
13,
5333,
11,
366,
16514,
27823,
1298,
1315,
2231,
1415,
4089,
2682,
13,
15,
92,
198,
4895,
26675,
62,
9127,
1298,
718,
3695,
4846,
11,
366,
26675,
1298,
767,
... | 2.364173 | 1,016 |
<filename>src/unresolved/931.minimum-falling-path-sum.jl<gh_stars>10-100
# ---
# title: 931. Minimum Falling Path Sum
# id: problem931
# author: <NAME>
# date: 2020-10-31
# difficulty: Medium
# categories: Dynamic Programming
# link: <https://leetcode.com/problems/minimum-falling-path-sum/description/>
# hidden: true
#... | [
27,
34345,
29,
10677,
14,
403,
411,
5634,
14,
24,
3132,
13,
39504,
12,
7207,
278,
12,
6978,
12,
16345,
13,
20362,
27,
456,
62,
30783,
29,
940,
12,
3064,
198,
2,
11420,
198,
2,
3670,
25,
860,
3132,
13,
26265,
42914,
10644,
5060,
... | 2.219858 | 564 |
test_elem(E::Hecke.EmbeddedNumField) = E(rand(number_field(E), -10:10))
@testset "Embedded number field" begin
Qx, x = QQ["x"]
K, _a = number_field(x^2 - 2, "a")
i = Hecke.real_embedding(K, 1.41)
E, a = Hecke.embedded_field(K, i)
@test a > 0
@test a >= 0
@test !(a > a)
@test !(a < 0)
@test !(a <= 0)
... | [
9288,
62,
68,
10671,
7,
36,
3712,
39,
721,
365,
13,
31567,
47238,
33111,
15878,
8,
796,
412,
7,
25192,
7,
17618,
62,
3245,
7,
36,
828,
532,
940,
25,
940,
4008,
198,
198,
31,
9288,
2617,
366,
31567,
47238,
1271,
2214,
1,
2221,
19... | 2.159605 | 1,416 |
using Parameters
import Base: length,show,print,println
using StaticArrays
abstract type AbstractReaction end
export AbstractReaction
@with_kw struct ElementaryReaction{T<:AbstractRate,Q<:Integer,V1<:AbstractArray,V2<:AbstractArray,V3<:AbstractArray,V4<:AbstractArray,V5<:AbstractArray} <: AbstractReaction
index::Q... | [
3500,
40117,
198,
11748,
7308,
25,
4129,
11,
12860,
11,
4798,
11,
35235,
198,
3500,
36125,
3163,
20477,
198,
397,
8709,
2099,
27741,
3041,
2673,
886,
198,
39344,
27741,
3041,
2673,
198,
198,
31,
4480,
62,
46265,
2878,
25335,
3041,
2673,... | 2.276224 | 1,430 |
using PkgSkeleton, Test, Dates, UUIDs
# import internals for testing
using PkgSkeleton: get_replacement_values, resolve_template_dir, pkg_name_from_path,
replace_multiple
####
#### Command line git should be installed for tests (so that they don't depend in LibGit2).
####
if !success(`git --help`)
@info "Com... | [
3500,
350,
10025,
50,
38800,
11,
6208,
11,
44712,
11,
471,
27586,
82,
198,
198,
2,
1330,
1788,
874,
329,
4856,
198,
3500,
350,
10025,
50,
38800,
25,
651,
62,
35666,
5592,
62,
27160,
11,
10568,
62,
28243,
62,
15908,
11,
279,
10025,
... | 2.568588 | 1,509 |
<filename>src/Arduino.jl<gh_stars>10-100
module Arduino
using SerialPorts
"""
SerialPorts.Arduino.reset
Reset an Arduino board.
"""
function Base.reset(s::SerialPort)
setDTR(s, false)
sleep(1)
setDTR(s, true)
sleep(1)
nothing
end
end #module
| [
27,
34345,
29,
10677,
14,
3163,
24493,
13,
20362,
27,
456,
62,
30783,
29,
940,
12,
3064,
198,
21412,
27634,
198,
198,
3500,
23283,
47,
2096,
198,
198,
37811,
198,
220,
220,
220,
23283,
47,
2096,
13,
3163,
24493,
13,
42503,
198,
198,... | 2.347826 | 115 |
#!/usr/bin/env julia
using DipoleChain
using ArgParse
s = ArgParseSettings()
s.autofix_names = true
@add_arg_table s begin
"-R"
metavar = "R"
help = "separation distance"
arg_type = Float64
required = true
"-N"
metavar = "N"
help = "number of rotors"
ar... | [
2,
48443,
14629,
14,
8800,
14,
24330,
474,
43640,
198,
198,
3500,
43945,
2305,
35491,
198,
198,
3500,
20559,
10044,
325,
198,
198,
82,
796,
20559,
10044,
325,
26232,
3419,
198,
82,
13,
2306,
1659,
844,
62,
14933,
796,
2081,
198,
31,
... | 2.220054 | 1,845 |
<gh_stars>10-100
"""
macro _make_logging_group(sym::Symbol, doc::String)
This creates a group of functions that allow masking out topic-related logging
actions. A call that goes as follows:
@_make_logging_tag XYZ
creates the following tools:
- global variable `_XYZ_log_enabled` defaulted to false
- functio... | [
27,
456,
62,
30783,
29,
940,
12,
3064,
198,
198,
37811,
198,
220,
220,
220,
15021,
4808,
15883,
62,
6404,
2667,
62,
8094,
7,
37047,
3712,
13940,
23650,
11,
2205,
3712,
10100,
8,
198,
198,
1212,
8075,
257,
1448,
286,
5499,
326,
1249,... | 2.652051 | 707 |
<filename>src/Sunny.jl
# __precompile__(false)
module Sunny
using Requires
using LinearAlgebra
using StaticArrays
using OffsetArrays
using SpecialFunctions
using FFTW
using Tullio
using ProgressMeter
using Printf
using Random: rand!, randn!
# Specific to Symmetry/
using FilePaths: Path
using CrystalInfoFramework
imp... | [
27,
34345,
29,
10677,
14,
16012,
3281,
13,
20362,
198,
2,
11593,
3866,
5589,
576,
834,
7,
9562,
8,
198,
198,
21412,
32241,
198,
198,
3500,
26848,
198,
3500,
44800,
2348,
29230,
198,
3500,
36125,
3163,
20477,
198,
3500,
3242,
2617,
316... | 2.728106 | 982 |
<filename>test/ncmonomial.jl
@testset "Non-commutative Monomial" begin
Mod.@ncpolyvar x
X_ = constantmonomial(typeof(x))
@test nvariables(X_) == 0
@test isempty(X_.vars)
@test isempty(X_.z)
X0 = constantmonomial(x)
for Y in [x^0, X0]
@test nvariables(Y) == 1
@test variables(Y... | [
27,
34345,
29,
9288,
14,
10782,
2144,
49070,
13,
20362,
198,
31,
9288,
2617,
366,
15419,
12,
9503,
315,
876,
2892,
49070,
1,
2221,
198,
220,
220,
220,
3401,
13,
31,
10782,
35428,
7785,
2124,
198,
220,
220,
220,
1395,
62,
796,
6937,
... | 1.880309 | 1,554 |
import StateSpaceReconstruction:
Embeddings,
assign_bin_labels,
assign_coordinate_labels
import ..TransferOperators:
BinVisits,
TransferOperatorRectangularBinning,
get_binvisits,
estimate_transferoperator_from_binvisits
import DelayEmbeddings:
Dataset
import StaticArrays:
SVector,... | [
11748,
1812,
14106,
6690,
261,
15019,
25,
198,
220,
220,
220,
13302,
6048,
654,
11,
198,
220,
220,
220,
8333,
62,
8800,
62,
23912,
1424,
11,
198,
220,
220,
220,
8333,
62,
37652,
4559,
62,
23912,
1424,
198,
198,
11748,
11485,
43260,
... | 2.834356 | 2,608 |
<filename>src/msieve.jl
export mfactor
const smsievelib = "libsmsieve.so"
type Msieveopts
n::AbstractString
deadline::Int
logfile::AbstractString
deepecm::Bool
info::Bool
end
# Send the string to msieve and return c struct msieve_obj
function runmsieve(opts::Msieveopts)
n = opts.n # n i... | [
27,
34345,
29,
10677,
14,
907,
12311,
13,
20362,
198,
39344,
285,
31412,
198,
198,
9979,
895,
44524,
626,
571,
796,
220,
366,
8019,
82,
907,
12311,
13,
568,
1,
198,
198,
4906,
6997,
12311,
404,
912,
198,
220,
220,
220,
299,
3712,
... | 2.249711 | 1,730 |
using Test
import Literate
const EXAMPLES_DIR = @__DIR__
const OUTPUT_DIR = joinpath(@__DIR__, "generated")
const EXAMPLES = [
"Convex hull and intersection.jl",
"Extended Formulation.jl",
"Minimal Robust Positively Invariant Set.jl"
]
@testset "test_examples.jl" begin
@testset "$(example)" for exa... | [
3500,
6208,
198,
11748,
17667,
378,
198,
198,
9979,
7788,
2390,
6489,
1546,
62,
34720,
796,
2488,
834,
34720,
834,
198,
9979,
16289,
30076,
62,
34720,
220,
220,
796,
4654,
6978,
7,
31,
834,
34720,
834,
11,
366,
27568,
4943,
198,
198,
... | 2.5 | 186 |
<filename>src/04_bayes_update.jl
using StatsPlots
"""
coinflip_discrete_bayes_update(p_θ, data)
Given a discrete (possibly unnormalized) prior and some binary data
returns the likelihood and posterior.
"""
function coinflip_discrete_bayes_update(p_θ, data; plot_result=true)
n_vals = length(p_θ) # number of c... | [
27,
34345,
29,
10677,
14,
3023,
62,
24406,
274,
62,
19119,
13,
20362,
198,
3500,
20595,
3646,
1747,
628,
198,
37811,
198,
220,
220,
220,
10752,
2704,
541,
62,
15410,
8374,
62,
24406,
274,
62,
19119,
7,
79,
62,
138,
116,
11,
1366,
... | 2.307042 | 710 |
<filename>test/list_tests.jl<gh_stars>0
@testset "IntrusiveList" begin
mutable struct MultiTagListNode
value::Int64
next_a::MultiTagListNode
prev_a::MultiTagListNode
next_b::MultiTagListNode
prev_b::MultiTagListNode
function MultiTagListNode(value)
x = new(value)
x.next_a = x
... | [
27,
34345,
29,
9288,
14,
4868,
62,
41989,
13,
20362,
27,
456,
62,
30783,
29,
15,
198,
31,
9288,
2617,
366,
5317,
81,
11350,
8053,
1,
2221,
198,
198,
76,
18187,
2878,
15237,
24835,
8053,
19667,
198,
220,
220,
220,
1988,
3712,
5317,
... | 2.132808 | 3,682 |
function F!{T}(byp::BansalYaronProblem, μs::Vector{Float64}, σs::Vector{Float64}, bs::Matrix{Float64}, bs∂μ::Matrix{Float64}, bs∂σ::Matrix{Float64}, bs∂2μ::Matrix{Float64}, bs∂2σ::Matrix{Float64}, y::Vector{T}, ydot::Vector{T})
μn = length(μs)
σn = length(σs)
IJ = μn * σn
ij = 0
@inbounds for σi in ... | [
8818,
376,
0,
90,
51,
92,
7,
1525,
79,
3712,
33,
504,
282,
56,
8045,
40781,
11,
18919,
82,
3712,
38469,
90,
43879,
2414,
5512,
18074,
225,
82,
3712,
38469,
90,
43879,
2414,
5512,
275,
82,
3712,
46912,
90,
43879,
2414,
5512,
275,
8... | 1.601626 | 1,722 |
using PtFEM
using Test
ProjDir = @__DIR__
#=
Compare formulas at:
http://www.awc.org/pdf/codes-standards/publications/design-aids/AWC-DA6-BeamFormulas-0710.pdf
=#
data = Dict(
# Frame(nels, nn, ndim, nst, nip, finite_element(nod, nodof))
:struc_el => Frame(20, 21, 3, 1, 1, Line(2, 3)),
:properties => [1.0e3 1.... | [
3500,
34352,
37,
3620,
198,
3500,
6208,
198,
198,
2964,
73,
35277,
796,
2488,
834,
34720,
834,
198,
198,
2,
28,
198,
41488,
32126,
379,
25,
198,
4023,
1378,
2503,
13,
707,
66,
13,
2398,
14,
12315,
14,
40148,
12,
1481,
1371,
14,
11... | 1.82111 | 1,459 |
"""
The pinched hemisphere benchmark for the configuration with a 18 deg hole at the
top
The reference below states:
The spherical shell shown in Fig. 9 is our proposed doubly-curved shell
problem. Note that the equator is a free edge so that the problem
represents a hemisphere with four point loads alternating in s... | [
37811,
198,
464,
6757,
1740,
33169,
18335,
329,
262,
8398,
351,
257,
1248,
3396,
7604,
379,
262,
198,
4852,
220,
198,
198,
464,
4941,
2174,
2585,
25,
198,
198,
464,
43180,
7582,
3402,
287,
12138,
13,
860,
318,
674,
5150,
3385,
306,
... | 2.222222 | 5,364 |
<reponame>pengrim/LatentGaussianMixtureModel.jl
module LatentGaussianMixtureModel
using StatsModels
using Distributions
using StatsBase, StatsFuns
using FastGaussQuadrature
using Yeppp
using Printf
using Distributed
using LinearAlgebra
using Statistics
using SharedArrays
import GaussianMixtureTest: gmm, pn, decidepen... | [
27,
7856,
261,
480,
29,
79,
1516,
3036,
14,
24220,
298,
35389,
31562,
44,
9602,
17633,
13,
20362,
198,
21412,
5476,
298,
35389,
31562,
44,
9602,
17633,
198,
198,
3500,
20595,
5841,
1424,
198,
3500,
46567,
507,
198,
3500,
20595,
14881,
... | 3.018667 | 375 |
module BlockDates
export blockdates,
dateformat2regex,
replacemonth,
removedays,
removestopwords,
removecommonprefix,
removejoiner,
singleGenerator,
singleYearMissGen,
cleanDate,
DateMod,
formatRange,
andSplit,
textToBlock,
... | [
21412,
9726,
35,
689,
198,
198,
39344,
2512,
19581,
11,
198,
220,
220,
220,
220,
220,
220,
3128,
18982,
17,
260,
25636,
11,
198,
220,
220,
220,
220,
220,
220,
2186,
330,
7966,
400,
11,
220,
198,
220,
220,
220,
220,
220,
220,
4615,... | 2.433527 | 11,358 |
<reponame>xiaodaigh/JDF<filename>test/test-pooled-ararys.jl
using Test
using JDF
using DataFrames: DataFrame
using PooledArrays
using Missings: allowmissing
@testset "JDF.jl pooledarrays arrays" begin
df = DataFrame([rand(1:10, 100) for i = 1:3])
df[!, :x3] = df[:, :x1] |> allowmissing
df[!, :x4] = string.... | [
27,
7856,
261,
480,
29,
36072,
11329,
394,
14,
41,
8068,
27,
34345,
29,
9288,
14,
9288,
12,
7742,
276,
12,
283,
560,
82,
13,
20362,
198,
3500,
6208,
198,
3500,
449,
8068,
198,
3500,
6060,
35439,
25,
6060,
19778,
198,
3500,
19850,
... | 2.115619 | 493 |
### A Pluto.jl notebook ###
# v0.17.5
using Markdown
using InteractiveUtils
# ╔═╡ cea125d8-7303-11ec-3f43-6b79e00bca6a
# hideall
let
docs_dir = dirname(dirname(@__DIR__))
pkg_dir = dirname(docs_dir)
using Pkg: Pkg
Pkg.activate(docs_dir)
Pkg.develop(; path=pkg_dir)
Pkg.instantiate()
# Put... | [
21017,
317,
32217,
13,
20362,
20922,
44386,
198,
2,
410,
15,
13,
1558,
13,
20,
198,
198,
3500,
2940,
2902,
198,
3500,
21365,
18274,
4487,
198,
198,
2,
2343,
243,
242,
28670,
22880,
94,
2906,
64,
11623,
67,
23,
12,
22,
22572,
12,
1... | 1.932387 | 1,479 |
<filename>src/problems/1260.shift-2-d-grid.jl<gh_stars>10-100
# ---
# title: 1260. Shift 2D Grid
# id: problem1260
# author: <NAME>
# date: 2020-11-14
# difficulty: Easy
# categories: Array
# link: <https://leetcode.com/problems/shift-2d-grid/description/>
# hidden: true
# ---
#
# Given a 2D `grid` of size `m x n` and... | [
27,
34345,
29,
10677,
14,
1676,
22143,
14,
1065,
1899,
13,
30846,
12,
17,
12,
67,
12,
25928,
13,
20362,
27,
456,
62,
30783,
29,
940,
12,
3064,
198,
2,
11420,
198,
2,
3670,
25,
1105,
1899,
13,
15576,
362,
35,
24846,
198,
2,
4686,... | 1.939394 | 891 |
<filename>test/test_case31_hygov.jl<gh_stars>10-100
"""
Validation PSSE/HYGOV:
This case study defines a three bus system with an infinite bus, GENROU+SEXS+HYGOV and a load.
The fault drop the line connecting the infinite bus and GENROU
"""
##################################################
############### SOLVE PROBL... | [
27,
34345,
29,
9288,
14,
9288,
62,
7442,
3132,
62,
12114,
9567,
13,
20362,
27,
456,
62,
30783,
29,
940,
12,
3064,
198,
37811,
198,
7762,
24765,
6599,
5188,
14,
42598,
38,
8874,
25,
198,
1212,
1339,
2050,
15738,
257,
1115,
1323,
1080... | 2.066818 | 2,200 |
<reponame>JJCutler/FLOWFarm.jl<gh_stars>1-10
using Snopt
using DelimitedFiles
using PyPlot
import ForwardDiff
using CSV
using DataFrames
# set up objective wrapper function
function aep_wrapper(x, params)
# include relevant globals
turbine_z = params.turbine_z
turbine_x = params.turbine_x
turbine_y =... | [
27,
7856,
261,
480,
29,
32178,
26254,
1754,
14,
3697,
3913,
48412,
13,
20362,
27,
456,
62,
30783,
29,
16,
12,
940,
198,
3500,
5489,
8738,
198,
3500,
4216,
320,
863,
25876,
220,
198,
3500,
9485,
43328,
198,
11748,
19530,
28813,
198,
... | 2.516414 | 2,376 |
<reponame>tomacorp/PyPost
# <NAME>
# vdiv_filter.jl
# MIT License
# 10/30/2016
# Function library for an NGSpice post processor using the Julia repl
using Winston
import Winston.*
global const m = 1e-3
global const u = 1e-6
global const n = 1e-9
global const p = 1e-12
global const f = 1e-15
global const k = 1e3
globa... | [
27,
7856,
261,
480,
29,
39532,
330,
16300,
14,
20519,
6307,
198,
2,
1279,
20608,
29,
198,
2,
410,
7146,
62,
24455,
13,
20362,
198,
2,
17168,
13789,
198,
2,
838,
14,
1270,
14,
5304,
198,
2,
15553,
5888,
329,
281,
39058,
4561,
501,
... | 1.973433 | 941 |
<reponame>dpo/KNITRO.jl
#*******************************************************/
#* Copyright(c) 2018 by Artelys */
#* This source code is subject to the terms of the */
#* MIT Expat License (see LICENSE.md) */
#*******************************************************/
#++++... | [
27,
7856,
261,
480,
29,
67,
7501,
14,
29132,
2043,
13252,
13,
20362,
198,
2,
17174,
8412,
2466,
8162,
14,
198,
2,
9,
15069,
7,
66,
8,
2864,
416,
943,
660,
27385,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
... | 2.606463 | 3,311 |
include("test_nearly_zero.jl")
include("test_smaller_vector.jl") | [
17256,
7203,
9288,
62,
77,
11458,
62,
22570,
13,
20362,
4943,
198,
17256,
7203,
9288,
62,
17470,
263,
62,
31364,
13,
20362,
4943
] | 2.782609 | 23 |
using Test
@testset "promotion" begin
@testset "number_promotions" begin
@test promote_type(Int, BD{Int}) == BD{Int64}
@test promote_type(BD{Int}, Int) == BD{Int64}
@test promote_type(Float64, BD{Float64}) == BD{Float64}
@test promote_type(BD{Float64}, Float64) == BD{Float64}
end
@tests... | [
198,
198,
3500,
6208,
198,
198,
31,
9288,
2617,
366,
16963,
9650,
1,
2221,
198,
220,
220,
220,
2488,
9288,
2617,
366,
17618,
62,
16963,
36083,
1,
2221,
198,
220,
220,
220,
2488,
9288,
7719,
62,
4906,
7,
5317,
11,
28023,
90,
5317,
... | 2.497561 | 410 |
#=
forecast.jl
Forecasting routines for linear Gaussian state space models
@author: <NAME> <<EMAIL>>
@date: 2021/12/06
=#
# Struct
struct Forecast{Ty, TF, Ta, TP}
y_hat::Ty # forecasts
F_hat::TF # forecast error variance
a_hat::Ta # forecasted states
P_hat::TP # forecasted state variances... | [
2,
28,
198,
754,
2701,
13,
20362,
628,
220,
220,
220,
4558,
19913,
31878,
329,
14174,
12822,
31562,
1181,
2272,
4981,
198,
198,
31,
9800,
25,
1279,
20608,
29,
9959,
27630,
4146,
4211,
198,
198,
31,
4475,
25,
33448,
14,
1065,
14,
331... | 2.111492 | 1,166 |
<filename>test/runtests.jl
import FlexPlan; const _FP = FlexPlan
import PowerModelsACDC; const _PMACDC = PowerModelsACDC
import PowerModels; const _PM = PowerModels
import InfrastructureModels; const _IM = InfrastructureModels
using JuMP
using Memento
include(normpath(@__DIR__,"..","test","io","create_profile.jl"))
in... | [
27,
34345,
29,
9288,
14,
81,
2797,
3558,
13,
20362,
198,
11748,
26719,
20854,
26,
1500,
4808,
5837,
796,
26719,
20854,
198,
11748,
4333,
5841,
1424,
2246,
9697,
26,
1500,
4808,
5868,
2246,
9697,
796,
4333,
5841,
1424,
2246,
9697,
198,
... | 2.641075 | 521 |
pois_log_like_i = function(istart, iend, η, y)
logdenom = logsumexp(η[istart:iend]) # from StatsFuns
third_term = zero(eltype(η))
for t = istart:iend
third_term += y[t] * (η[t] - logdenom)
end
return third_term
end
pois_log_like = function(params, x, y, ids)
# params is an array of β
... | [
198,
198,
7501,
271,
62,
6404,
62,
2339,
62,
72,
796,
2163,
7,
396,
433,
11,
1312,
437,
11,
7377,
115,
11,
331,
8,
198,
220,
220,
220,
2604,
6559,
296,
796,
2604,
16345,
11201,
7,
138,
115,
58,
396,
433,
25,
72,
437,
12962,
13... | 1.870432 | 2,408 |
module WebPlayer
using Colors, FixedPointNumbers, CSSUtil, WebIO, InteractNext
const set_play = js"""
function set_play(name, nvideos, fps, nframes, init, callback){
var video;
var button = document.getElementById("button");
for(var i = 1; i <= nvideos; i++){
video = document.getElementById(name ... | [
21412,
5313,
14140,
198,
198,
3500,
29792,
11,
10832,
12727,
49601,
11,
17391,
18274,
346,
11,
5313,
9399,
11,
4225,
529,
10019,
198,
198,
9979,
900,
62,
1759,
796,
44804,
37811,
198,
8818,
900,
62,
1759,
7,
3672,
11,
299,
32861,
11,
... | 2.108898 | 2,259 |
<reponame>lenamax2355/dash-mantine-components
# AUTO GENERATED FILE - DO NOT EDIT
export space
"""
space(;kwargs...)
space(children::Any;kwargs...)
space(children_maker::Function;kwargs...)
A Space component.
Add horizontal or vertical spacing from theme. For more information, see: https://mantine.dev/c... | [
27,
7856,
261,
480,
29,
11925,
321,
897,
1954,
2816,
14,
42460,
12,
76,
29003,
12,
5589,
3906,
198,
2,
47044,
46,
24700,
1137,
11617,
45811,
532,
8410,
5626,
48483,
198,
198,
39344,
2272,
198,
198,
37811,
198,
220,
220,
220,
2272,
7... | 3.096471 | 425 |
module CompositeGrids
using StaticArrays
include("old/grid.jl")
export Grid
include("grid/simple.jl")
const SimpleGrid = SimpleG # alias for older convention
const AbstractGrid, OpenGrid, ClosedGrid = SimpleGrid.AbstractGrid, SimpleGrid.OpenGrid, SimpleGrid.ClosedGrid
export SimpleG, SimpleGrid, AbstractGrid, OpenGri... | [
21412,
49355,
8642,
2340,
198,
3500,
36125,
3163,
20477,
198,
198,
17256,
7203,
727,
14,
25928,
13,
20362,
4943,
198,
39344,
24846,
198,
198,
17256,
7203,
25928,
14,
36439,
13,
20362,
4943,
198,
9979,
17427,
41339,
796,
17427,
38,
1303,
... | 3.585714 | 140 |
<gh_stars>10-100
using ImmutableArrays
function ratio(f::Function, a1, a2, b1, b2, iters::Integer)
if f(a1, a2) != f(b1, b2)
return string("result mismatch:\n", f(a1, a2), "\n--- vs. ---\n", f(b1, b2))
end
tic()
for i = 1:iters
f(a1, a2)
end
atime = toq()
tic()
for i = 1... | [
27,
456,
62,
30783,
29,
940,
12,
3064,
198,
3500,
9543,
18187,
3163,
20477,
198,
198,
8818,
8064,
7,
69,
3712,
22203,
11,
257,
16,
11,
257,
17,
11,
275,
16,
11,
275,
17,
11,
340,
364,
3712,
46541,
8,
198,
220,
220,
220,
611,
2... | 1.961853 | 367 |
# Stolen from Flux as well
for n in [2, 20, 200, 2000]
x = randn(Float32, n, 2000, 100)
model = FourierLayer(n, n, 2000, 100, 16)
println("CPU n=$n")
run_benchmark(model, x, cuda=false)
println("CUDA n=$n")
run_benchmark(model, x, cuda=true)
end | [
2,
520,
8622,
422,
1610,
2821,
355,
880,
201,
198,
201,
198,
1640,
299,
287,
685,
17,
11,
1160,
11,
939,
11,
4751,
60,
201,
198,
220,
220,
220,
2124,
796,
43720,
77,
7,
43879,
2624,
11,
299,
11,
4751,
11,
1802,
8,
201,
198,
22... | 2.11194 | 134 |
function guess()
number = dec(rand(1:10))
print("Guess my number! ")
while readline() != number
print("Nope, try again... ")
end
println("Well guessed!")
end
guess()
| [
8818,
4724,
3419,
198,
220,
220,
220,
1271,
796,
875,
7,
25192,
7,
16,
25,
940,
4008,
198,
220,
220,
220,
3601,
7203,
8205,
408,
616,
1271,
0,
366,
8,
198,
220,
220,
220,
981,
1100,
1370,
3419,
14512,
1271,
198,
220,
220,
220,
2... | 2.407407 | 81 |
immutable MixtureModel{VF,VS,Component<:Distribution} <: Distribution{VF,VS}
components::Vector{Component}
probs::Vector{Float64}
aliastable::AliasTable
function MixtureModel(c::Vector{Component}, p::Vector{Float64})
if !(Component <: Distribution{VF,VS})
throw(TypeError(:MixtureMode... | [
8608,
18187,
337,
9602,
17633,
90,
53,
37,
11,
20304,
11,
21950,
27,
25,
20344,
3890,
92,
1279,
25,
27484,
90,
53,
37,
11,
20304,
92,
198,
220,
220,
220,
6805,
3712,
38469,
90,
21950,
92,
198,
220,
220,
220,
386,
1443,
3712,
38469... | 2.090468 | 1,238 |
<reponame>UnofficialJuliaMirrorSnapshots/Optim.jl-429524aa-4258-5aef-a3af-852621145aeb
## REMEMBER TO UPDATE TESTS FOR BOTH THE N-GMRES and the O-ACCEL TEST SETS
@testset "N-GMRES" begin
method = NGMRES
solver = method()
skip = ("Trigonometric", )
run_optim_tests(solver; skip = skip,
... | [
27,
7856,
261,
480,
29,
3118,
16841,
16980,
544,
27453,
1472,
43826,
20910,
14,
27871,
320,
13,
20362,
12,
11785,
48057,
7252,
12,
19,
25600,
12,
20,
64,
891,
12,
64,
18,
1878,
12,
5332,
2075,
21895,
2231,
64,
1765,
198,
2235,
22657... | 2.132772 | 2,734 |
using ITensors, Test
@testset "Basic DMRG" begin
@testset "Spin-one Heisenberg" begin
N = 100
sites = spinOneSites(N)
ampo = AutoMPO()
for j=1:N-1
add!(ampo,"Sz",j,"Sz",j+1)
add!(ampo,0.5,"S+",j,"S-",j+1)
add!(ampo,0.5,"S-",j,"S+",j+1)
end
H = toMPO(ampo,sites)
psi = r... | [
3500,
7283,
641,
669,
11,
6208,
198,
198,
31,
9288,
2617,
366,
26416,
360,
13599,
38,
1,
2221,
198,
220,
2488,
9288,
2617,
366,
4561,
259,
12,
505,
679,
13254,
3900,
1,
2221,
198,
220,
220,
220,
399,
796,
1802,
198,
220,
220,
220,... | 1.982301 | 1,130 |
#!/usr/bin/julia
#
# A cellular automata mimicking the behavior of forest fires
#
##
const N = 64 # Size of the map
const T = 1000 # Number of updates to do
const p = 0.45 # Probability of growing forest on empty
const df= 10.0 # The amount to increment f after T steps
const d = 0.75 # Ini... | [
2,
48443,
14629,
14,
8800,
14,
73,
43640,
198,
2,
198,
2,
317,
19824,
3557,
1045,
17007,
7958,
262,
4069,
286,
8222,
12252,
198,
2,
198,
2235,
198,
198,
9979,
399,
796,
5598,
220,
220,
220,
220,
220,
220,
220,
1303,
12849,
286,
26... | 2.010241 | 1,367 |
using Logging
const date_re = r"(\w{3}\s\w{3}\s{1,2}\d{1,2}\s\d{2}:\d{2}:\d{2}\s\d{4})"
const file_re = r"\s{2}"* # file lines start with 2 spaces
r"(.*?)\s+"* # capture filename non-greedy, eating remaining spaces
r"([ADHSR]*)"* # capture file mode
r"\s+"* # af... | [
3500,
5972,
2667,
198,
198,
9979,
3128,
62,
260,
796,
374,
18109,
59,
86,
90,
18,
32239,
82,
59,
86,
90,
18,
32239,
82,
90,
16,
11,
17,
32239,
67,
90,
16,
11,
17,
32239,
82,
59,
67,
90,
17,
92,
7479,
67,
90,
17,
92,
7479,
... | 2.134081 | 1,872 |
<filename>src/simulate.jl
using RigidBodyDynamics.OdeIntegrators
"""
$(SIGNATURES)
A trivial controller that simply sets the torques to zero.
"""
function zero_torque!(torques::AbstractVector, t, state::MechanismState)
torques .= 0
end
"""
$(SIGNATURES)
Basic `Mechanism` simulation: integrate the state from tim... | [
27,
34345,
29,
10677,
14,
14323,
5039,
13,
20362,
198,
3500,
24666,
312,
25842,
35,
4989,
873,
13,
46,
2934,
34500,
18942,
198,
198,
37811,
198,
3,
7,
46224,
47471,
8,
198,
198,
32,
20861,
10444,
326,
2391,
5621,
262,
7332,
13281,
2... | 2.795594 | 817 |
<filename>Julia/kernel_row_per_th.jl
using CUDA
# Each block is assigned a row.
# Each thread checks the main row with one of the columns pointed by the row.
function countTri_row_per_th(csr_rows, col_indx, out_sum)
## Indexing for threads and blocks.
bid::Int32 = blockIdx().x + (blockIdx().y-1)*gridDim().x + (... | [
27,
34345,
29,
16980,
544,
14,
33885,
62,
808,
62,
525,
62,
400,
13,
20362,
198,
3500,
29369,
5631,
198,
2,
5501,
2512,
318,
8686,
257,
5752,
13,
198,
2,
5501,
4704,
8794,
262,
1388,
5752,
351,
530,
286,
262,
15180,
6235,
416,
262... | 1.966595 | 1,856 |
using .LibClang.CEnum: name_value_pairs
cxname2clname(x::AbstractString) = "CL" * last(split(x, '_'; limit=2))
cxname2clname(x::Symbol) = cxname2clname(string(x))
"Remove FirstXX and LastXX from enumerations."
function remove_ranges(pairs)
filter(pairs) do (sym, val)
!occursin(r"first|last"i, string(sym))... | [
3500,
764,
25835,
2601,
648,
13,
34,
4834,
388,
25,
1438,
62,
8367,
62,
79,
3468,
198,
198,
66,
87,
3672,
17,
565,
3672,
7,
87,
3712,
23839,
10100,
8,
796,
366,
5097,
1,
1635,
938,
7,
35312,
7,
87,
11,
705,
62,
17020,
4179,
28... | 2.26949 | 1,629 |
<gh_stars>1-10
module Foo
using Requires
using Base.Test
beforeflag = false
afterflag = false
@require JSON global beforeflag = true
@test !beforeflag
using JSON
@test beforeflag
@require JSON global afterflag = true
@test afterflag
end
| [
27,
456,
62,
30783,
29,
16,
12,
940,
198,
21412,
36080,
198,
198,
3500,
26848,
198,
3500,
7308,
13,
14402,
198,
198,
19052,
32109,
796,
3991,
198,
8499,
32109,
796,
3991,
198,
198,
31,
46115,
19449,
3298,
878,
32109,
796,
2081,
198,
... | 3.210526 | 76 |
"""
NeuralNetworkKernel()
Neural network kernel function.
```math
κ(x, y) = asin(x' * y / sqrt[(1 + x' * x) * (1 + y' * y)])
```
# Significance
Neal (1996) pursued the limits of large models, and showed that a Bayesian neural network
becomes a Gaussian process with a **neural network kernel** as the number o... | [
37811,
198,
220,
220,
220,
47986,
26245,
42,
7948,
3419,
198,
198,
8199,
1523,
3127,
9720,
2163,
13,
198,
198,
15506,
63,
11018,
198,
220,
220,
220,
7377,
118,
7,
87,
11,
331,
8,
796,
220,
355,
259,
7,
87,
6,
1635,
331,
1220,
19... | 2.222637 | 804 |
<filename>test/const_promote.jl<gh_stars>0
#=
Copyright (c) 2015, Intel Corporation
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notic... | [
27,
34345,
29,
9288,
14,
9979,
62,
16963,
1258,
13,
20362,
27,
456,
62,
30783,
29,
15,
198,
2,
28,
198,
15269,
357,
66,
8,
1853,
11,
8180,
10501,
198,
3237,
2489,
10395,
13,
198,
198,
7738,
396,
3890,
290,
779,
287,
2723,
290,
1... | 3.200997 | 602 |
using Blink
using CSV, DataFrames, Interact, Plots
mutable struct Viewer
window::Window
observables::Dict{String, Observable}
widgets::Dict{String, Widget}
end
function makebuttons(view::Viewer)
buttons = button.(string.(names(view.observables["data"])))
for (btn, name) in zip(buttons, names(vie... | [
198,
198,
3500,
41732,
198,
3500,
44189,
11,
6060,
35439,
11,
4225,
529,
11,
1345,
1747,
198,
198,
76,
18187,
2878,
3582,
263,
198,
220,
220,
220,
4324,
3712,
27703,
198,
220,
220,
220,
3799,
2977,
3712,
35,
713,
90,
10100,
11,
1924... | 2.457792 | 616 |
# Julia function to load CSV and compute
# a couple of SMA. written to be identical
# to lua version.
using DataFrames
# Note: There are faster ways to compute SMA but this
# is closest to the method shown in basic tutorials
# and is a valid test of a tight loop that spends a
# a lot of time indexing into an arra... | [
2,
22300,
2163,
284,
3440,
44189,
290,
24061,
198,
2,
257,
3155,
286,
311,
5673,
13,
220,
3194,
284,
307,
10411,
198,
2,
284,
300,
6413,
2196,
13,
198,
3500,
6060,
35439,
628,
198,
2,
5740,
25,
1318,
389,
5443,
2842,
284,
24061,
3... | 2.32337 | 1,104 |
<gh_stars>1-10
@testset "trace" begin
@testset "basic" begin
@test isnothing(current_span())
@test isnothing(span_context())
@testset "TraceState" begin
ts = TraceState(
"1a-2f@foo" => "bar1",
"1a-_*/2b@foo" => "bar2",
"foo" => "ba... | [
27,
456,
62,
30783,
29,
16,
12,
940,
198,
31,
9288,
2617,
366,
40546,
1,
2221,
198,
220,
220,
220,
2488,
9288,
2617,
366,
35487,
1,
2221,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
9288,
318,
22366,
7,
14421,
62,
12626,
28955,
... | 1.780418 | 1,052 |
# Load Julia packages (libraries)
using Pkg, DrWatson
using DataFrames
using StanSample
using StatisticalRethinking
df = CSV.read(sr_datadir("WaffleDivorce.csv"), DataFrame);
mean_ma = mean(df[!, :MedianAgeMarriage])
df[!, :MedianAgeMarriage_s] =
convert(Vector{Float64}, (df[!, :MedianAgeMarriage]) .-
... | [
2,
8778,
22300,
10392,
357,
75,
11127,
8,
198,
198,
3500,
350,
10025,
11,
1583,
54,
13506,
198,
198,
3500,
6060,
35439,
198,
3500,
7299,
36674,
198,
3500,
34931,
49,
2788,
8040,
198,
198,
7568,
796,
44189,
13,
961,
7,
27891,
62,
196... | 2.089453 | 749 |
<filename>src/gen/md4.h.jl
# Julia wrapper for header: /Users/dls/jl/openssl-1.0.1e/include/openssl/md4.h
# Automatically generated using Clang.jl wrap_c, version 0.0.0
@c Int32 MD4_Init (Ptr{MD4_CTX},) libcrypto
@c Int32 MD4_Update (Ptr{MD4_CTX}, Ptr{None}, Csize_t) libcrypto
@c Int32 MD4_Final (Ptr{Uint8}, Ptr{MD4_C... | [
27,
34345,
29,
10677,
14,
5235,
14,
9132,
19,
13,
71,
13,
20362,
198,
2,
22300,
29908,
329,
13639,
25,
1220,
14490,
14,
67,
7278,
14,
20362,
14,
44813,
6649,
12,
16,
13,
15,
13,
16,
68,
14,
17256,
14,
44813,
6649,
14,
9132,
19,
... | 2.165877 | 211 |
<filename>src/CSSWidgetWrapper.jl
export CSSWidgetWrapper
"""
CSSWidgetWrapper(widget, style::Dict{String,String})
Modify the style properties of the first HTML node for the given widget.
# Examples
Generate a text field with a red background and white text.
```
@bind text CSSWidgetWrapper(TextField(),Dict("bac... | [
27,
34345,
29,
10677,
14,
49155,
38300,
36918,
2848,
13,
20362,
198,
39344,
17391,
38300,
36918,
2848,
198,
198,
37811,
198,
220,
220,
220,
17391,
38300,
36918,
2848,
7,
42655,
11,
3918,
3712,
35,
713,
90,
10100,
11,
10100,
30072,
198,
... | 2.671348 | 356 |
<gh_stars>0
function load_a1at_aa_rel_ab()
_A1AT_AA_REL_AB = Dict()
datfile = _a1at_aa_rel_abundance_proc_file()
!isfile(datfile) && error("data file missing ", datfile)
df = CSV.read(_a1at_aa_rel_abundance_proc_file(), DataFrame)
for (m1, m2) in zip(df[!,1], df[!,2])
_A1AT_AA_REL_AB[m1] = m... | [
27,
456,
62,
30783,
29,
15,
198,
8818,
3440,
62,
64,
16,
265,
62,
7252,
62,
2411,
62,
397,
3419,
198,
220,
220,
220,
4808,
32,
16,
1404,
62,
3838,
62,
16448,
62,
6242,
796,
360,
713,
3419,
198,
220,
220,
220,
4818,
7753,
796,
... | 1.951351 | 185 |
<filename>src/joTypes/joAbstractTypes.jl
############################################################
# abstract types hierarchy
#
# joAbstractOperator
# * joAbstractLinearOperator
# * joAbstractParallelableLinearOperator
# * joAbstractFosterLinearOperator
# * joAbstractLinearOperatorInplace
# * joAbstractSAparalle... | [
27,
34345,
29,
10677,
14,
7639,
31431,
14,
7639,
23839,
31431,
13,
20362,
198,
29113,
14468,
7804,
4242,
198,
2,
12531,
3858,
18911,
198,
2,
198,
2,
2525,
23839,
18843,
1352,
198,
2,
1635,
2525,
23839,
14993,
451,
18843,
1352,
198,
2,... | 3.847668 | 1,372 |
module ExpmV
# package code goes here
include("expmv_fun.jl")
include("degree_selector.jl")
include("normAm.jl")
include("expmv_tspan.jl")
include("select_taylor_degree.jl")
include("norm1est.jl")
end # module
| [
21412,
1475,
4426,
53,
628,
220,
1303,
5301,
2438,
2925,
994,
198,
220,
2291,
7203,
1069,
4426,
85,
62,
12543,
13,
20362,
4943,
198,
220,
2291,
7203,
16863,
62,
19738,
273,
13,
20362,
4943,
198,
220,
2291,
7203,
27237,
5840,
13,
20362... | 2.658824 | 85 |
"""
**RMSProp Optimizer**
```julia
RMSprop(; η::Real=0.001, γ::Real=0.01, ϵ::Real=1e-8)
```
Algorithm
```math
\\begin{align*}
E[g^2]_t =& \\gamma E[g^2]_{t-1}+(1-\\gamma) g_t^2\\\\
\\Delta x_t =& \\frac{\\eta}{\\sqrt{E[g^2]_t + \\epsilon}}g_t
\\end{align*}
```
[Reference](http://www.cs.toronto.edu/~tijmen... | [
37811,
198,
1174,
29138,
4303,
1773,
30011,
7509,
1174,
198,
15506,
63,
73,
43640,
198,
49,
5653,
22930,
7,
26,
7377,
115,
3712,
15633,
28,
15,
13,
8298,
11,
7377,
111,
3712,
15633,
28,
15,
13,
486,
11,
18074,
113,
3712,
15633,
28,
... | 1.906051 | 628 |
<gh_stars>0
@inline _maybefirst(x) = x
@inline _maybefirst(x::VecUnroll) = first(data(x))
@inline _maybetail(x) = x
@inline _maybetail(::VecUnroll{0}) = ()
@inline _maybetail(x::VecUnroll) = VecUnroll(Base.tail(data(x)))
@inline _vload_map(_, ::Tuple, ::Tuple{}, __, ___) = ()
@inline function _vload_map(p, i, m, ::J... | [
27,
456,
62,
30783,
29,
15,
198,
198,
31,
45145,
4808,
11261,
65,
891,
667,
7,
87,
8,
796,
2124,
198,
31,
45145,
4808,
11261,
65,
891,
667,
7,
87,
3712,
53,
721,
3118,
2487,
8,
796,
717,
7,
7890,
7,
87,
4008,
198,
31,
45145,
... | 2.125731 | 342 |
"""
@author: <NAME>
Created September 2018
provides ontoSimplex: function to project onto the simplex
"""
function ontoSimplex!(probabilities::Vector{Float64}) # projects the probabilities onto the simplex
for i= 1:length(probabilities)
if probabilities[i] < 0.0 # make them nonnegative
... | [
37811,
201,
198,
197,
31,
9800,
25,
1279,
20608,
29,
201,
198,
197,
41972,
2693,
2864,
201,
198,
197,
197,
15234,
1460,
4291,
8890,
11141,
25,
2163,
284,
1628,
4291,
262,
2829,
87,
201,
198,
37811,
201,
198,
201,
198,
8818,
4291,
88... | 2.498615 | 361 |
<reponame>omnisci/OmniSci.jl
#https://discourse.julialang.org/t/encapsulating-enum-access-via-dot-syntax/11785/3
# @scopedenum Fruit APPLE=1 PEAR=2 BANANA=3
# Fruit.APPLE
# Fruit.PEAR
# # access enum value
# Fruit.APPLE.value
# # make an APPLE from string
# Fruit.Enum("APPLE")
# # restricting type signatures
# f(x::Fru... | [
27,
7856,
261,
480,
29,
296,
21361,
979,
14,
46,
76,
8461,
50,
979,
13,
20362,
198,
2,
5450,
1378,
15410,
9047,
13,
73,
377,
498,
648,
13,
2398,
14,
83,
14,
12685,
1686,
8306,
12,
44709,
12,
15526,
12,
8869,
12,
26518,
12,
1837,... | 1.939532 | 1,538 |
"""
Class for variational Gaussian Processes models (non-sparse)
```julia
VGP(X::AbstractArray{T1,N1},y::AbstractArray{T2,N2},kernel::Union{Kernel,AbstractVector{<:Kernel}},
likelihood::LikelihoodType,inference::InferenceType;
verbose::Int=0,optimizer::Union{Bool,Optimizer,Nothing}=Adam(α=0.01),atfrequency::In... | [
37811,
198,
9487,
329,
5553,
864,
12822,
31562,
10854,
274,
4981,
357,
13159,
12,
82,
29572,
8,
198,
198,
15506,
63,
73,
43640,
198,
53,
16960,
7,
55,
3712,
23839,
19182,
90,
51,
16,
11,
45,
16,
5512,
88,
3712,
23839,
19182,
90,
5... | 2.457478 | 2,387 |
function handle_step(obj::OrekitFixedStepHandler, arg0::SpacecraftState, arg1::jboolean)
return jcall(obj, "handleStep", void, (SpacecraftState, jboolean), arg0, arg1)
end
function init(obj::OrekitFixedStepHandler, arg0::SpacecraftState, arg1::AbsoluteDate, arg2::jdouble)
return jcall(obj, "init", void, (Space... | [
8818,
5412,
62,
9662,
7,
26801,
3712,
41543,
15813,
13715,
8600,
25060,
11,
1822,
15,
3712,
14106,
3323,
9012,
11,
1822,
16,
3712,
73,
2127,
21052,
8,
198,
220,
220,
220,
1441,
474,
13345,
7,
26801,
11,
366,
28144,
8600,
1600,
7951,
... | 2.89313 | 131 |
"""
# Usage
solve(prob::FDDEMatrixProblem, h, MatrixForm())
### Reference
https://github.com/mandresik/system-of-linear-fractional-differential-delayed-equations
"""
struct MatrixForm <: FractionalDiffEqAlgorithm end
function solve(prob::FDDEMatrixProblem, h, ::MatrixForm)
@unpack α, τ, A, B, f, x0, tspan =... | [
37811,
198,
2,
29566,
628,
220,
220,
220,
8494,
7,
1676,
65,
3712,
37,
16458,
3620,
265,
8609,
40781,
11,
289,
11,
24936,
8479,
28955,
198,
198,
21017,
20984,
198,
198,
5450,
1378,
12567,
13,
785,
14,
22249,
411,
1134,
14,
10057,
12... | 1.77262 | 1,702 |
# Note that this script can accept some limited command-line arguments, run
# `julia build_tarballs.jl --help` to see a usage message.
using BinaryBuilder, Pkg
name = "NASM"
version = v"2.15.0"
# Collection of sources required to complete build
sources = [
ArchiveSource("https://www.nasm.us/pub/nasm/releasebuilds... | [
2,
5740,
326,
428,
4226,
460,
2453,
617,
3614,
3141,
12,
1370,
7159,
11,
1057,
198,
2,
4600,
73,
43640,
1382,
62,
18870,
21591,
13,
20362,
1377,
16794,
63,
284,
766,
257,
8748,
3275,
13,
198,
3500,
45755,
32875,
11,
350,
10025,
198,... | 3.031941 | 407 |
<filename>test/simple.jl
using TerminalUI
using Reactive
using VT100
using Compose
import TerminalUI: Border, TightCentering, SimpleSlider,
DoubleBufferedTerminalScreen, draw, CheckBox, WidgetStack,
Gauge, RowLayout, MultiLineInput, IOBufferView, ScrollableChain,
ImageWidget
import Base.Terminals: CSI
che... | [
27,
34345,
29,
9288,
14,
36439,
13,
20362,
198,
3500,
24523,
10080,
198,
3500,
797,
5275,
198,
3500,
32751,
3064,
198,
3500,
3082,
577,
198,
198,
11748,
24523,
10080,
25,
15443,
11,
44643,
19085,
1586,
11,
17427,
11122,
1304,
11,
198,
... | 2.286099 | 1,856 |
# ClusterManager for Slurm
export SlurmManager, addprocs_slurm
immutable SlurmManager <: ClusterManager
np::Integer
end
function launch(manager::SlurmManager, params::Dict, instances_arr::Array,
c::Condition)
try
exehome = params[:dir]
exename = params[:exename]
exefla... | [
2,
38279,
13511,
329,
3454,
333,
76,
198,
198,
39344,
3454,
333,
76,
13511,
11,
751,
1676,
6359,
62,
6649,
333,
76,
198,
198,
8608,
18187,
3454,
333,
76,
13511,
1279,
25,
38279,
13511,
198,
220,
220,
220,
45941,
3712,
46541,
198,
43... | 1.733537 | 1,640 |
<reponame>fredefox/javalette
enum Color {
RED,
GREEN,
BLUE
};
typedef struct Palette_t{
Color color;
} * Palette;
int main(){
Color color = Color.RED;
if(color == Color.RED){
printString("red");
} else{
printString("not red");
}
Palette p = new Palette_t;
p->color = Color.GREEN;
if(p->co... | [
27,
7856,
261,
480,
29,
39193,
891,
1140,
14,
73,
9226,
5857,
198,
44709,
5315,
1391,
198,
220,
23848,
11,
198,
220,
47606,
11,
198,
220,
9878,
8924,
198,
19629,
198,
198,
774,
9124,
891,
2878,
3175,
5857,
62,
83,
90,
198,
220,
53... | 2.47093 | 172 |
import Base: rand
export RPT∇, STL∇
# ReParametrisation Trick (RPT) gradient estimator. Assumes that `rand(q(ϕ))` is
# reparametrisable.
function RPT∇(rng::AbstractRNG, q, ϕ, log_π̃_over_q)
elbo, back = Zygote.pullback(ϕ->log_π̃_over_q(ϕ, rand(rng, q(ϕ))), ϕ)
∂ϕ = first(back(1.0))
return elbo, ∂ϕ
end
# As... | [
11748,
7308,
25,
43720,
198,
39344,
371,
11571,
24861,
229,
11,
37269,
24861,
229,
198,
198,
2,
797,
22973,
316,
2442,
341,
30028,
357,
49,
11571,
8,
31312,
3959,
1352,
13,
2195,
8139,
326,
4600,
25192,
7,
80,
7,
139,
243,
4008,
63,... | 2.195313 | 384 |
<gh_stars>0
# -*- coding: utf-8 -*-
"""
Created on Mon Sep 21 21:00:39 2021
@author: jaewoo.joung
"""
function makeadeck(조커=2)
if (조커>2 || 조커<0) #혹시 조커를 두장이상 또는 0이하로 썻다면 그냥 두장으로 합니다.
조커 = 2
end
#Tuple suit{무늬(카드뜻/함축의미)}: ♥(성직자/방어),♦(상인/돈),♣(농민/지혜),♠(기사/공격)
Suit = ('♥','♦','♣','♠')
... | [
27,
456,
62,
30783,
29,
15,
198,
2,
532,
9,
12,
19617,
25,
3384,
69,
12,
23,
532,
9,
12,
201,
198,
37811,
201,
198,
41972,
319,
2892,
8621,
2310,
2310,
25,
405,
25,
2670,
33448,
201,
198,
201,
198,
31,
9800,
25,
45091,
413,
22... | 1.449584 | 4,086 |
<gh_stars>0
#ДАНО: Робот находится в произвольной клетке ограниченного прямоугольного поля без внутренних перегородок и маркеров.
#РЕЗУЛЬТАТ: Робот — в исходном положении в центре прямого креста из маркеров, расставленных вплоть до внешней рамки
function glavnaia(r::Robot) # - главная функция
for side in (Nord,W... | [
27,
456,
62,
30783,
29,
15,
198,
2,
140,
242,
140,
238,
140,
251,
140,
252,
25,
12466,
254,
25443,
109,
15166,
20375,
12466,
121,
16142,
141,
227,
25443,
112,
18849,
20375,
21727,
40623,
12466,
110,
12466,
123,
21169,
15166,
18849,
14... | 1.238806 | 804 |
<gh_stars>1-10
load("kernels.jl")
code = quote
A[...] = B.*C + D
end
nd = 2
staged = true
function make_k(code, nd)
flat_code, arguments = flatten_kernel_tangle(code)
#indvars = gensym(32) # just some number of dims that should be enough
indvars = (:_i, :_j, :_k, :_l) # todo: use gensyms in... | [
27,
456,
62,
30783,
29,
16,
12,
940,
628,
198,
198,
2220,
7203,
74,
44930,
13,
20362,
4943,
628,
628,
198,
198,
8189,
796,
9577,
198,
220,
220,
220,
317,
58,
22345,
796,
347,
15885,
34,
1343,
360,
198,
437,
628,
198,
358,
796,
3... | 2.183417 | 398 |
<gh_stars>10-100
const maxMantissa = (UInt64(1) << 53) - 1
todouble(sign, exp, mant) = Core.bitcast(Float64, (UInt64(sign) << 63) | (UInt64(exp) << 52) | (UInt64(mant)))
@testset "Parsers.writeshortest" begin
@testset "Float64" begin
@testset "Basic" begin
@test Parsers.writeshortest(0.0) == "0.0"
@test Pars... | [
27,
456,
62,
30783,
29,
940,
12,
3064,
198,
9979,
3509,
44,
415,
13808,
796,
357,
52,
5317,
2414,
7,
16,
8,
9959,
7192,
8,
532,
352,
198,
83,
375,
15270,
7,
12683,
11,
1033,
11,
24818,
8,
796,
7231,
13,
2545,
2701,
7,
43879,
2... | 2.093517 | 8,191 |
<gh_stars>1-10
using BenchmarkTools
using LinearAlgebra
using StaticArrays
add!(C, A, B) = (C .= A .+ B)
function simple_bench(N, T=Float64)
A = rand(T,N,N)
A = A'*A
B = copy(A)
SA = SMatrix{N,N}(A)
MA = MMatrix{N,N}(A)
MB = copy(MA)
print("""
============================================
... | [
27,
456,
62,
30783,
29,
16,
12,
940,
198,
3500,
25187,
4102,
33637,
198,
3500,
44800,
2348,
29230,
198,
3500,
36125,
3163,
20477,
198,
198,
2860,
0,
7,
34,
11,
317,
11,
347,
8,
796,
357,
34,
764,
28,
317,
764,
10,
347,
8,
198,
... | 1.885194 | 1,594 |
using BinDeps
basedir = dirname(@__FILE__)
program = "exiftool"
if is_unix()
file = "Image-ExifTool-10.49"
extension = ".tar.gz"
binary_name = target = program
end
if is_windows()
file = "exiftool-10.49"
extension = ".zip"
binary_name = "$program.exe"
target = "exiftool(-k).exe"
end
fil... | [
3500,
20828,
12156,
82,
198,
198,
3106,
343,
796,
26672,
3672,
7,
31,
834,
25664,
834,
8,
198,
198,
23065,
796,
366,
1069,
2135,
970,
1,
198,
198,
361,
318,
62,
403,
844,
3419,
198,
220,
220,
220,
2393,
796,
366,
5159,
12,
3109,
... | 2.382298 | 531 |
#Communication avoiding LU
import Base: start, next, done, size, getindex
import DistributedArrays: DArray
# |
# A(ma x na) | B(ma x nb)
# -------------+------------
# C(mb x na) | D(mb x nb)
immutable RowBlockedMatrix{T,S<:AbstractMatrix} <: AbstractMatrix{T}
A::S
m::Int
n::Int
k::I... | [
2,
30813,
3299,
14928,
50168,
198,
198,
11748,
7308,
25,
923,
11,
1306,
11,
1760,
11,
2546,
11,
651,
9630,
198,
11748,
4307,
6169,
3163,
20477,
25,
360,
19182,
198,
198,
2,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
22... | 2.018038 | 4,435 |
<reponame>banhbio/Taxonomy.jl
"""
lca(taxa::Vector{Taxon})
lca(taxa::Taxon...)
Return the `Taxon` object that is the lowest common ancestor of the given set of `Taxon`s
"""
function lca(taxa::Vector{Taxon})
lineages = [Lineage(taxon) for taxon in taxa]
overlap = intersect(lineages...)
return over... | [
27,
7856,
261,
480,
29,
3820,
71,
65,
952,
14,
27017,
30565,
13,
20362,
198,
37811,
198,
220,
220,
220,
300,
6888,
7,
19290,
64,
3712,
38469,
90,
27017,
261,
30072,
198,
220,
220,
220,
300,
6888,
7,
19290,
64,
3712,
27017,
261,
23... | 2.497006 | 167 |
using SequentialMonteCarlo
using RNGPool
using SMCExamples.LinearGaussian: LGTheta, Float64Particle, kalmanlogZ,
defaultLGModel, makeLGModel
using MonteCarloMarkovKernels
using StaticArrays
using Test
using Random
using LinearAlgebra
import Statistics.mean
setRNGs(0)
lgModel, theta, ys, ko = defaultLGModel(10)
cons... | [
3500,
24604,
1843,
9069,
660,
9914,
5439,
198,
3500,
371,
10503,
27201,
198,
3500,
9447,
34,
27730,
13,
14993,
451,
35389,
31562,
25,
17370,
464,
8326,
11,
48436,
2414,
7841,
1548,
11,
479,
282,
805,
6404,
57,
11,
198,
220,
4277,
4125... | 2.344994 | 829 |
<reponame>UnofficialJuliaMirror/FourierFlows.jl-2aec4490-903f-5c70-9b11-9bed06a700e1
"""
stepforward!(prob)
Step forward `prob` one time step.
"""
function stepforward!(prob::Problem)
stepforward!(prob.sol, prob.clock, prob.timestepper, prob.eqn, prob.vars, prob.params, prob.grid)
end
"""
stepforward!(prob,... | [
27,
7856,
261,
480,
29,
3118,
16841,
16980,
544,
27453,
1472,
14,
37,
280,
5277,
7414,
1666,
13,
20362,
12,
17,
64,
721,
2598,
3829,
12,
24,
3070,
69,
12,
20,
66,
2154,
12,
24,
65,
1157,
12,
24,
3077,
3312,
64,
9879,
68,
16,
1... | 1.960932 | 7,551 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.