Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/chunleili/mgpbd
/ functions
Functions
1,374 in github.com/chunleili/mgpbd
⨍
Functions
1,374
◇
Types & classes
263
↓ 5 callers
Function
init_extlib
(args, sim="")
engine/init_extlib.py:8
↓ 5 callers
Method
is_begin
return whether the iterator can be dereferenced
cpp/mgcg_cuda/extern/json/include/nlohmann/json.hpp:13527
↓ 5 callers
Method
parse
! @brief public parser interface @param[in] strict whether to expect the last token to be EOF @param[in,out] result parsed JSON val
cpp/mgcg_cuda/extern/json/include/nlohmann/json.hpp:13011
↓ 5 callers
Function
reset_dpos
(dpos:ti.template())
engine/cloth/cloth3d_lumped.py:278
↓ 5 callers
Method
update_vel
(self)
engine/cloth/cloth3d.py:279
↓ 4 callers
Method
accept
! @brief public accept interface @param[in] strict whether to expect the last token to be EOF @return whether the input is a proper JSON
cpp/mgcg_cuda/extern/json/include/nlohmann/json.hpp:13071
↓ 4 callers
Function
bytes_to_gb
(bytes)
engine/soft/fill_A.py:117
↓ 4 callers
Method
calc_C_norm
(self, pos)
engine/cloth/newton_method.py:878
↓ 4 callers
Function
calc_dual_kernel
(alpha_tilde:ti.template(), lagrangian:ti.template(), constraint
engine/ti_kernels.py:36
↓ 4 callers
Function
calc_norm
(a:ti.template())
engine/util.py:185
↓ 4 callers
Method
calc_strain
(self, pos)
engine/cloth/newton_method.py:885
↓ 4 callers
Method
compute_C_and_gradC
(self)
engine/cloth/cloth3d.py:282
↓ 4 callers
Method
cuda_set_A0
(self,A0)
engine/solver/amg_cuda.py:129
↓ 4 callers
Function
destroy
cpp/mgcg_cuda/extern/json/include/nlohmann/json.hpp:20660
↓ 4 callers
Function
empty
@brief return whether pointer points to the root document @sa https://json.nlohmann.me/api/json_pointer/empty/
cpp/mgcg_cuda/extern/json/include/nlohmann/json.hpp:14776
↓ 4 callers
Function
ending
(args, ist)
engine/util.py:212
↓ 4 callers
Function
fill_gradC_triplets_kernel
( ii:ti.types.ndarray(dtype=ti.i32), jj:ti.types.ndarray(dtype=ti.i32), vv:ti.types.ndarray(dtype=
engine/cloth/cloth3d.py:950
↓ 4 callers
Function
get_arithmetic_value
cpp/mgcg_cuda/extern/json/include/nlohmann/json.hpp:4892
↓ 4 callers
Method
get_binary
cpp/mgcg_cuda/extern/json/include/nlohmann/json.hpp:12755
↓ 4 callers
Function
insert_iterator
cpp/mgcg_cuda/extern/json/include/nlohmann/json.hpp:23398
↓ 4 callers
Function
is_boolean
@brief return whether value is a boolean @sa https://json.nlohmann.me/api/basic_json/is_boolean/
cpp/mgcg_cuda/extern/json/include/nlohmann/json.hpp:21452
↓ 4 callers
Method
log_energy
(self,frame, iter, filename_to_save="")
engine/soft/soft3d_twist.py:725
↓ 4 callers
Method
log_residual
(self, frame, iter)
engine/soft/soft3d.py:881
↓ 4 callers
Function
process_dirs
(args)
engine/file_utils.py:55
↓ 4 callers
Function
replace_substring
cpp/mgcg_cuda/extern/json/include/nlohmann/json.hpp:3101
↓ 4 callers
Method
set_end
set iterator to a defined past the end
cpp/mgcg_cuda/extern/json/include/nlohmann/json.hpp:13521
↓ 4 callers
Method
setup_smoothers
(self)
engine/solver/amg_cuda.py:184
↓ 4 callers
Function
size
@brief returns the number of elements @sa https://json.nlohmann.me/api/basic_json/size/
cpp/mgcg_cuda/extern/json/include/nlohmann/json.hpp:23077
↓ 4 callers
Method
solve_one_iter
Solve one iteration of the distance constraint Usage: First build constraints. Before the loop: Reset the aos.lam . During the loop
engine/constraints/distance_constraints.py:240
↓ 4 callers
Method
write_ubjson
! @param[in] j JSON value to serialize @param[in] use_count whether to use '#' prefixes (optimized format) @param[in] use_type wheth
cpp/mgcg_cuda/extern/json/include/nlohmann/json.hpp:16562
↓ 3 callers
Function
AMG_A
(ist)
engine/soft/soft3d.py:1728
↓ 3 callers
Method
_pairListToDict
(pairs)
engine/geo.py:97
↓ 3 callers
Method
alldata_names
(self)
engine/cloth/fill_A.py:103
↓ 3 callers
Method
allocate_fields
(self, NV, NT)
engine/soft/soft3d.py:371
↓ 3 callers
Method
allocate_fields
(self, NV, NT)
engine/soft/soft3d_twist.py:368
↓ 3 callers
Function
build_Ps
Build a list of prolongation matrices Ps from A
engine/solver/build_Ps.py:7
↓ 3 callers
Method
cache_and_initFill
(self)
engine/cloth/fill_A.py:163
↓ 3 callers
Method
cache_and_initFill
(self)
engine/cloth/cloth3d_lumped.py:981
↓ 3 callers
Method
calc_dual
(self)
engine/cloth/cloth3d.py:299
↓ 3 callers
Method
calc_energy
(self, x, predict_pos)
engine/cloth/newton_method_legacy.py:288
↓ 3 callers
Method
calc_energy
(self, x, predict_pos)
engine/cloth/newton_method.py:319
↓ 3 callers
Method
calc_gradient_cloth_imply_ti
(self, x)
engine/cloth/newton_method.py:341
↓ 3 callers
Function
cbegin
@brief returns a const iterator to the first element @sa https://json.nlohmann.me/api/basic_json/cbegin/
cpp/mgcg_cuda/extern/json/include/nlohmann/json.hpp:22916
↓ 3 callers
Function
compute_C_and_gradC_kernel
( pos:ti.template(), gradC: ti.template(), edge:ti.template(), constraints:ti.template(),
engine/cloth/cloth3d_lumped.py:491
↓ 3 callers
Function
compute_C_and_gradC_kernel
( pos:ti.template(), gradC: ti.template(), edge:ti.template(), constraints:ti.template(),
engine/cloth/cloth3d.py:872
↓ 3 callers
Function
convert_keys_to_str
递归地将字典的键转换为字符串
engine/cloth/build_cloth_mesh.py:298
↓ 3 callers
Method
dlam2dpos
(self,dlam)
engine/cloth/cloth3d.py:275
↓ 3 callers
Function
do_export_r
(r)
engine/cloth/cloth3d_lumped.py:753
↓ 3 callers
Function
do_restart
(args,ist)
engine/file_utils.py:93
↓ 3 callers
Function
emplace
cpp/mgcg_cuda/extern/json/include/nlohmann/json.hpp:19859
↓ 3 callers
Function
export_A_b
(A, b, dir, postfix=f"", binary=True)
engine/util.py:341
↓ 3 callers
Function
fetch_A_from_cuda
(ist,lv=0)
engine/soft/soft3d.py:1735
↓ 3 callers
Function
fill_A_by_spmm
(M_inv, ALPHA)
engine/cloth/cloth3d_lumped.py:1148
↓ 3 callers
Method
fill_A_by_spmm
(self, M_inv, ALPHA_TILDE)
engine/cloth/cloth3d.py:605
↓ 3 callers
Method
get_alldata
(self)
engine/cloth/fill_A.py:91
↓ 3 callers
Method
get_gluetoaniamtion
(self)
engine/geo.py:158
↓ 3 callers
Function
init_logger
(args)
engine/util.py:291
↓ 3 callers
Function
is_number_float
@brief return whether value is a floating-point number @sa https://json.nlohmann.me/api/basic_json/is_number_float/
cpp/mgcg_cuda/extern/json/include/nlohmann/json.hpp:21480
↓ 3 callers
Function
main_loop
(ist,args)
engine/util.py:373
↓ 3 callers
Function
make_matrix
cpp/mgcg_cuda/standalone_solver/main_softbody.cpp:14
↓ 3 callers
Function
make_matrix
-------------------------------------------------------------------------- */ implementations */ ------------------------
cpp/mgcg_cuda/misc/solve_soft.cpp:13
↓ 3 callers
Function
make_matrix
(x, y, z)
engine/soft/soft3d.py:1391
↓ 3 callers
Method
moved_or_copied
cpp/mgcg_cuda/extern/json/include/nlohmann/json.hpp:15624
↓ 3 callers
Method
nrows
this is redundant for CSR, but (ii, indicices, data) can be used as COO format
cpp/mgcg_cuda/standalone_solver/SpMatData.h:10
↓ 3 callers
Method
presmoother
(self, A,x,b)
engine/solver/amg_python.py:122
↓ 3 callers
Method
read_constraints
(self,file)
engine/cloth/constraints.py:129
↓ 3 callers
Function
reset_lagrangian
(lagrangian: ti.template())
engine/cloth/cloth3d_lumped.py:586
↓ 3 callers
Function
run
cpp/mgcg_cuda/misc/graph_coloring.cpp:292
↓ 3 callers
Function
semi_euler
( old_pos:ti.template(), inv_mass:ti.template(), vel:ti.template(), pos:ti.template(), pre
engine/cloth/cloth3d_lumped.py:193
↓ 3 callers
Method
set_begin
set iterator to a defined beginning
cpp/mgcg_cuda/extern/json/include/nlohmann/json.hpp:13515
↓ 3 callers
Method
set_positions
(self,pos)
engine/geo.py:139
↓ 3 callers
Function
solve_bending_constraints_xpbd
( dual_residual_bending: ti.template(), inv_mass:ti.template(), lagrangian_bending:ti.template(),
engine/cloth/bending.py:128
↓ 3 callers
Function
solve_distance_constraints_xpbd
( dual_residual: ti.template(), inv_mass:ti.template(), edge:ti.template(), rest_len:ti.templa
engine/cloth/cloth3d_lumped.py:212
↓ 3 callers
Function
spmv
(dat, ind, ptr, v)
engine/linearSystem/spmv.py:31
↓ 3 callers
Function
transfer_back_to_pos_mfree_kernel
()
engine/cloth/cloth3d_lumped.py:609
↓ 3 callers
Function
unget
! @brief unget current character (read it again on next get) We implement unget by setting variable next_unget to true. The input is not
cpp/mgcg_cuda/extern/json/include/nlohmann/json.hpp:8445
↓ 3 callers
Method
update_constraints
(self)
engine/cloth/cloth3d.py:295
↓ 3 callers
Method
update_pos
(self)
engine/cloth/cloth3d.py:290
↓ 3 callers
Function
update_pos_kernel
( inv_mass:ti.template(), dpos:ti.template(), pos:ti.template(), omega:ti.f32, )
engine/cloth/cloth3d.py:750
↓ 3 callers
Function
update_vel
( old_pos:ti.template(), inv_mass:ti.template(), vel:ti.template(), pos:ti.template(), )
engine/cloth/cloth3d_lumped.py:266
↓ 3 callers
Function
vec_is_equal
(a, b, tol=1e-6)
engine/util.py:467
↓ 2 callers
Function
AMG_A
()
engine/soft/soft3d_twist.py:1588
↓ 2 callers
Method
SolveSoft
cpp/mgcg_cuda/misc/solve_soft.h:7
↓ 2 callers
Method
__init__
(self, type="sphere", pos=[0,0,0], size=0.1, visible=True, bc_type=BCType.STICKY, id=0, restitution=1.0)
engine/collision.py:52
↓ 2 callers
Method
__init__
(self, args, extlib=None)
engine/cloth/newton_method.py:21
↓ 2 callers
Method
__init__
(self, dim, pos, edge)
engine/cloth/constraints.py:69
↓ 2 callers
Function
_update_pos_kernel
( inv_mass:ti.template(), dpos:ti.template(), omega:ti.f32, pos:ti.template(), )
engine/constraints/distance_constraints.py:48
↓ 2 callers
Function
amg_cuda_easy
Easy to use version of AMG-CUDA for a given A and b. Performance may be not optimal, but it is useful for testing and debugging. Except the g
engine/solver/amg_cuda_easy.py:1
↓ 2 callers
Function
at
@brief access specified array element with bounds checking @sa https://json.nlohmann.me/api/basic_json/at/
cpp/mgcg_cuda/extern/json/include/nlohmann/json.hpp:22068
↓ 2 callers
Function
build_face_indices
从四面体索引构建面索引
engine/mesh_io.py:290
↓ 2 callers
Function
calc_dual_residual
( dual_residual: ti.template(), edge:ti.template(), rest_len:ti.template(), lagrangian:ti.temp
engine/cloth/cloth3d.py:779
↓ 2 callers
Method
calc_energy
(self)
engine/physical_base.py:73
↓ 2 callers
Method
calc_energy
(self, pos, predict_pos)
engine/cloth/newton_method.py:593
↓ 2 callers
Method
calc_force
(self)
engine/cloth/newton_method.py:166
↓ 2 callers
Method
calc_gradient_cloth_imply_ti
(self, x)
engine/cloth/newton_method_legacy.py:310
↓ 2 callers
Method
calc_hessian_imply_ti
(self, x)
engine/cloth/newton_method_legacy.py:356
↓ 2 callers
Method
calc_hessian_imply_ti
(self, x)
engine/cloth/newton_method.py:436
↓ 2 callers
Method
calc_num_nonz
(num_adjacent_edge)
engine/cloth/fill_A.py:175
↓ 2 callers
Method
calc_potential
(self, x)
engine/cloth/newton_method_legacy.py:253
↓ 2 callers
Method
calc_potential
(self, x)
engine/cloth/newton_method.py:284
← previous
next →
101–200 of 1,374, ranked by callers