To Int or to Uint, This is the Questiontogether, and it’s a major bug source, which is why I’m saying stay as simple as you can, use {signed} integers till you really need something else.” ~Bjarne StroustrupAlex Dathskovsky | alex.dathskovsky@speedata linkedin.com/in/alexdathskovsky “The need for signed integer arithmetic is often misplaced as most integers never represent negative values within a program. The indexing of arrays and iteration count of well. There should be a propensity to use unsigned integers more often than signed, yet despite this, most coders incorrectly choses to use signed integers almost exclusively.” ~ Dale Weiler https://graphitemaster0 码力 | 102 页 | 3.64 MB | 6 月前3
julia 1.10.10. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 4 Integers and Floating-Point Numbers 12 4.1 Integers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . with mutable types like arrays, whose contents can be changed: julia> a = [1,2,3] # an array of 3 integers 3-element Vector{Int64}: 1 2 3 julia> b = a # both b and a are names for the same array! 3-element more information about stylistic conventions, see the Style Guide.Chapter 4 Integers and Floating-Point Numbers Integers and floating-point values are the basic building blocks of arithmetic and computation0 码力 | 1692 页 | 6.34 MB | 3 月前3
Julia 1.10.9. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 4 Integers and Floating-Point Numbers 12 4.1 Integers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . with mutable types like arrays, whose contents can be changed: julia> a = [1,2,3] # an array of 3 integers 3-element Vector{Int64}: 1 2 3 julia> b = a # both b and a are names for the same array! 3-element more information about stylistic conventions, see the Style Guide.Chapter 4 Integers and Floating-Point Numbers Integers and floating-point values are the basic building blocks of arithmetic and computation0 码力 | 1692 页 | 6.34 MB | 3 月前3
Julia 1.11.4. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 5 Integers and Floating-Point Numbers 15 5.1 Integers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . with mutable types like arrays, whose contents can be changed: julia> a = [1,2,3] # an array of 3 integers 3-element Vector{Int64}: 1 2 3 julia> b = a # both b and a are names for the same array! 3-element more information about stylistic conventions, see the Style Guide.Chapter 5 Integers and Floating-Point Numbers Integers and floating-point values are the basic building blocks of arithmetic and computation0 码力 | 2007 页 | 6.73 MB | 3 月前3
Julia 1.11.5 Documentation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 5 Integers and Floating-Point Numbers 15 5.1 Integers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . with mutable types like arrays, whose contents can be changed: julia> a = [1,2,3] # an array of 3 integers 3-element Vector{Int64}: 1 2 3 julia> b = a # both b and a are names for the same array! 3-element more information about stylistic conventions, see the Style Guide.Chapter 5 Integers and Floating-Point Numbers Integers and floating-point values are the basic building blocks of arithmetic and computation0 码力 | 2007 页 | 6.73 MB | 3 月前3
Julia 1.11.6 Release Notes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 5 Integers and Floating-Point Numbers 15 5.1 Integers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . with mutable types like arrays, whose contents can be changed: julia> a = [1,2,3] # an array of 3 integers 3-element Vector{Int64}: 1 2 3 julia> b = a # both b and a are names for the same array! 3-element more information about stylistic conventions, see the Style Guide.Chapter 5 Integers and Floating-Point Numbers Integers and floating-point values are the basic building blocks of arithmetic and computation0 码力 | 2007 页 | 6.73 MB | 3 月前3
Back To Basics: Functional Programming in C++C++ CppCon 2024-09-19 9Example: Biggest odd magnitude Problem statement Input Non-empty list of integers Output The biggest magnitude of an odd integer in the list Jonathan Müller — @foonathan Back to C++ CppCon 2024-09-19 10Example: Biggest odd magnitude Problem statement Input Non-empty list of integers Output The biggest magnitude of an odd integer in the list Input [3, 0, 2, -1, 5, -7, 8] Output Programming in C++ CppCon 2024-09-19 25Example: Find sum of two integers Problem statement Input Two lists of integers, a number x Output The two integers from the list whose sum is x Jonathan Müller — @foonathan0 码力 | 178 页 | 918.67 KB | 6 月前3
Julia 1.12.0 RC1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 5 Integers and Floating-Point Numbers 15 5.1 Integers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . with mutable types like arrays, whose contents can be changed: julia> a = [1,2,3] # an array of 3 integers 3-element Vector{Int64}: 1 2 3 julia> b = a # both b and a are names for the same array! 3-element more information about stylistic conventions, see the Style Guide.Chapter 5 Integers and Floating-Point Numbers Integers and floating-point values are the basic building blocks of arithmetic and computation0 码力 | 2057 页 | 7.44 MB | 3 月前3
Julia 1.12.0 Beta4. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 5 Integers and Floating-Point Numbers 15 5.1 Integers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . with mutable types like arrays, whose contents can be changed: julia> a = [1,2,3] # an array of 3 integers 3-element Vector{Int64}: 1 2 3 julia> b = a # both b and a are names for the same array! 3-element more information about stylistic conventions, see the Style Guide.Chapter 5 Integers and Floating-Point Numbers Integers and floating-point values are the basic building blocks of arithmetic and computation0 码力 | 2057 页 | 7.44 MB | 3 月前3
Julia 1.12.0 Beta3. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 5 Integers and Floating-Point Numbers 15 5.1 Integers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . with mutable types like arrays, whose contents can be changed: julia> a = [1,2,3] # an array of 3 integers 3-element Vector{Int64}: 1 2 3 julia> b = a # both b and a are names for the same array! 3-element more information about stylistic conventions, see the Style Guide.Chapter 5 Integers and Floating-Point Numbers Integers and floating-point values are the basic building blocks of arithmetic and computation0 码力 | 2057 页 | 7.44 MB | 3 月前3
共 111 条
- 1
- 2
- 3
- 4
- 5
- 6
- 12













