May 14, 2021 02:00 0 Comment Julia
Linear algege for, Linear algege for, Matrix decomposition, Special matrix, Basic operations, Matrix decomposition, Zoom operations, Linear algege for, Matrix decomposition, Matrix decomposition, is the product of breaking down a matrix into several matrices and is a core concept in
May 14, 2021 02:00 0 Comment Julia
Multi-dimensional array, Multi-dimensional array, Array, Sparse matrix, Construct a sparse matrix, Multi-dimensional array, An array is a collection of objects that exist in a multi-dimensional grid. T, ypically, an array contains an object of any,
May 14, 2021 02:00 0 Comment Julia
Module, Module, Summary of the module usage methods, Modules and files, Standard module, Default top-level declarations and bare modules, The relative and absolute path of the module, The module file path, Tips, Module, Julia's module is a separate global variable workspace. I, t is limited by synth, module Name ... end, ends., Inside the module, you can contr
May 14, 2021 02:00 0 Comment Julia
Type conversion and type promotion, Type conversion and type promotion, Type conversion, Define a new type conversion, Case: Score type conversion, Type promotion, Define type promotion rules, Case: Score type increase, Type conversion and type promotion, Julia can promote parameters of mathematical operators to the same type, which have been mentioned in integers and
May 14, 2021 02:00 0 Comment Julia
The constructor, The constructor, The external construction method, The internal construction method, Partial initialization, Paramethy construction methods, Case: Score, The constructor, Constructor 1 is a function that constructs a new object, a, new, composite type instance., Constructing type objects:, type Foo, bar
May 14, 2021 02:00 0 Comment Julia
Method, Method, Define the method, Method ambiguity, Paramethy method, About optional and keyword parameters, Method, As mentioned, in the function , functions are objects that map from parameter polymethgroups to return values, throwing exceptions if there is
May 14, 2021 03:00 0 Comment Julia
Can be empty type, Can be empty type, Create Nullable object, Check Nullabe object contains data, Securely access the Nullable object, Can be empty type, In many cases, you may encounter variables that may or may not exist. T, o handle this situation, Julia provides a, Nullable{T}, wh
May 14, 2021 03:00 0 Comment Julia
Interaction, Interaction, Different prompt modes, Key binding, Tab supplement, Interaction, Julia has a full-featured interactive command line REPL (read-eval-print loop) built into the, julia, I, n addition to allowing for quick
May 14, 2021 03:00 0 Comment Julia
Run an external program, Run an external program, Interpolation, Reference, Pipeline, Run an external program, Julia uses inverted quotes to run external programs:, julia> `echo hello`, `echo hello`, It has several features:, Inverted q
May 14, 2021 03:00 0 Comment Julia
Call C and Fortran code, Call C and Fortran code, Julia calls the functions of C and Fortran simple and efficient., Map type C to Julia, Call C and Fortran code, Julia calls the functions of C and Fortran simple and efficient., The called code should be in the format of a shared library
May 14, 2021 03:00 0 Comment Julia
Embedded Julia, Embedded Julia, Advanced embedding, Type conversion, Call Julia's function, Memory management, Process the array, High-dimensional array, Abnormal, Embedded Julia, We already know that, calling C and Fortran code, Julia can call C functions in a simple and efficient way. B, ut there are many cases
May 14, 2021 03:00 0 Comment Julia
The extension package, The extension package, Extended package status, Add and remove extension packages, Install an unregistered extension package, Update the extension package, Checkout, Pin and Free, The extension package, Julia has a built-in package management system that allows you to manage packages, and of course, you can also use your operati
May 14, 2021 03:00 0 Comment Julia
Develop an extension package, Develop an extension package, Initialize the settings, Build a new extension package, Make your extension package available, Publish your extension package, Extended package version number label, Modify the expansion package requirements, Dependencies, Develop an extension package, Julia has a package manager, and when you install the extension package, you can see its source code and complete develo
May 14, 2021 03:00 0 Comment Julia
Code performance optimization, Code performance optimization, Avoid global variables, Use @time measure performance and pay attention to memory allocation, Code performance optimization, The following sections describe some of the techniques for speeding up Julia's code., Avoid global variables, The value
May 14, 2021 03:00 0 Comment Julia
The code style, The code style, Write as a function, don't write a script, Avoid types that are too strict, Solve the additional argument diversity problem in the caller, If the function modifies its arguments, add after the function name !, Avoid strange collections of types, Try to avoid airspace, Avoid complex container types, Use the same base/ Julia base/, Don't abuse try-catch, Do not enclose conditional expressions in parentheses, Don't abuse ..., Do not use unnecessary static parameters, Avoid the hasse of instance or type judgment, Don't abuse macros, Do not expose unsafe operations at the interface layer, Do not overload the method of the base container type, Note the equality of the type, Do not x->f(x), The code style, The following sections describe the Julia coding style that conforms to language habits in several ways., None of these rules are abso