julia 1.10.10try-catch . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 453 36.12 Don't parenthesize conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 453 36.13 Don't overuse ... . . . . it's already applied myfilter(A, kernel) = myfilter(A, kernel, Replicate()) # default boundary conditions function myfilter(A, kernel, ::Replicate) Apadded = replicate_edges(A, size(kernel))CHAPTER 12 12. METHODS 169 myfilter(Apadded, kernel, NoPad()) # indicate the new boundary conditions end # other padding methods go here function myfilter(A, kernel, ::NoPad) # Here's the "real" implementation0 码力 | 1692 页 | 6.34 MB | 3 月前3
Julia 1.10.9try-catch . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 453 36.12 Don't parenthesize conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 453 36.13 Don't overuse ... . . . . it's already applied myfilter(A, kernel) = myfilter(A, kernel, Replicate()) # default boundary conditions function myfilter(A, kernel, ::Replicate) Apadded = replicate_edges(A, size(kernel))CHAPTER 12 12. METHODS 169 myfilter(Apadded, kernel, NoPad()) # indicate the new boundary conditions end # other padding methods go here function myfilter(A, kernel, ::NoPad) # Here's the "real" implementation0 码力 | 1692 页 | 6.34 MB | 3 月前3
julia 1.12.0 beta1try-catch . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 497 37.12 Don't parenthesize conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 497 37.13 Don't overuse ... . . . . default boundary conditions function myfilter(A, kernel, ::Replicate) Apadded = replicate_edges(A, size(kernel)) myfilter(Apadded, kernel, NoPad()) # indicate the new boundary conditions end # other important since C and Fortran APIs are notoriously inconsistent about how they indicate error conditions. For example, the getenv C library function is wrapped in the following Julia function, which0 码力 | 2047 页 | 7.41 MB | 3 月前3
Julia 1.6.1 Documentation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 406 36.11Don't parenthesize conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 406 36.12Don't overuse . . . . . . . . . . . . . . . . . . . . . . . . . . . 1344 Inserting breakpoints upon certain conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . 1344 Dealing with signals . . . . . . . default boundary conditions function myfilter(A, kernel, ::Replicate) Apadded = replicate_edges(A, size(kernel)) myfilter(Apadded, kernel, NoPad()) # indicate the new boundary conditions end # other0 码力 | 1397 页 | 4.59 MB | 1 年前3
Julia 1.7.0 DEV Documentation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 408 36.11Don't parenthesize conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 408 36.12Don't overuse . . . . . . . . . . . . . . . . . . . . . . . . . . . 1348 Inserting breakpoints upon certain conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . 1349 Dealing with signals . . . . . . . default boundary conditions function myfilter(A, kernel, ::Replicate) Apadded = replicate_edges(A, size(kernel)) myfilter(Apadded, kernel, NoPad()) # indicate the new boundary conditions end # other0 码力 | 1399 页 | 4.59 MB | 1 年前3
Julia 1.6.0 DEV Documentation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 406 36.10Don't parenthesize conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 406 36.11Don't overuse . . . . . . . . . . . . . . . . . . . . . . . . . . . 1330 Inserting breakpoints upon certain conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . 1330 Dealing with signals . . . . . . . default boundary conditions function myfilter(A, kernel, ::Replicate) Apadded = replicate_edges(A, size(kernel)) myfilter(Apadded, kernel, NoPad()) # indicate the new boundary conditions end # other0 码力 | 1383 页 | 4.56 MB | 1 年前3
Julia 1.6.0 Documentation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 406 36.11Don't parenthesize conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 406 36.12Don't overuse . . . . . . . . . . . . . . . . . . . . . . . . . . . 1344 Inserting breakpoints upon certain conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . 1344 Dealing with signals . . . . . . . default boundary conditions function myfilter(A, kernel, ::Replicate) Apadded = replicate_edges(A, size(kernel)) myfilter(Apadded, kernel, NoPad()) # indicate the new boundary conditions end # other0 码力 | 1397 页 | 4.59 MB | 1 年前3
Julia 1.11.4try-catch . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 486 37.12 Don't parenthesize conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 486 37.13 Don't overuse ... . . . . default boundary conditions function myfilter(A, kernel, ::Replicate) Apadded = replicate_edges(A, size(kernel)) myfilter(Apadded, kernel, NoPad()) # indicate the new boundary conditions end # other important since C and Fortran APIs are notoriously inconsistent about how they indicate error conditions. For example, the getenv C library function is wrapped in the following Julia function, which0 码力 | 2007 页 | 6.73 MB | 3 月前3
Julia 1.11.5 Documentationtry-catch . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 486 37.12 Don't parenthesize conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 486 37.13 Don't overuse ... . . . . default boundary conditions function myfilter(A, kernel, ::Replicate) Apadded = replicate_edges(A, size(kernel)) myfilter(Apadded, kernel, NoPad()) # indicate the new boundary conditions end # other important since C and Fortran APIs are notoriously inconsistent about how they indicate error conditions. For example, the getenv C library function is wrapped in the following Julia function, which0 码力 | 2007 页 | 6.73 MB | 3 月前3
Julia 1.11.6 Release Notestry-catch . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 486 37.12 Don't parenthesize conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 486 37.13 Don't overuse ... . . . . default boundary conditions function myfilter(A, kernel, ::Replicate) Apadded = replicate_edges(A, size(kernel)) myfilter(Apadded, kernel, NoPad()) # indicate the new boundary conditions end # other important since C and Fortran APIs are notoriously inconsistent about how they indicate error conditions. For example, the getenv C library function is wrapped in the following Julia function, which0 码力 | 2007 页 | 6.73 MB | 3 月前3
共 87 条
- 1
- 2
- 3
- 4
- 5
- 6
- 9













