Six Ways for Implementing Math Expressions CalculatorAbout me 2 6 ways for implementing math expressions calculator, Amir Kirsh Lecturer Academic College of Tel-Aviv-Yaffo and Tel-Aviv University Developer Advocate at Member of the Israeli ISO C++ NB NB Co-Organizer of the CoreCpp conference and meetup group3 6 ways for implementing math expressions calculator, Amir Kirsh Suffering from slow builds? It’s not just waste of time It affects your dev for implementing math expressions calculator, Amir KirshSuccess Stories 5 6 ways for implementing math expressions calculator, Amir KirshSuccess Stories 6 6 ways for implementing math expressions calculator0 码力 | 63 页 | 1.85 MB | 6 月前3
Back to Basics Unit Testingcom/catchorg/Catch2 Frameworks Part 0: Basics 9auto abs(int x) -> int; math.hpp math.cpp test_math.cpp #include#include "math.hpp" TEST_CASE("Absolute value tests"){ CHECK( abs( 4 Frameworks Part 0: Basics 10auto abs(int x) -> int; math.hpp math.cpp test_math.cpp #include #include "math.hpp" TEST_CASE("Absolute value tests"){ CHECK( abs( │ └── math │ ├── math.cpp │ └── math.hpp └── test ├── stuff │ └── test_stuff.cpp ├── things │ └── test_things.cpp └── math └── test_math.cpp Where 0 码力 | 109 页 | 4.13 MB | 6 月前3
Django Q Documentation
Release 1.3.6django_q.tasks import async_task, result # create the task async_task('math.copysign', 2, -2) # or with import and storing the id import math.copysign task_id = async_task(copysign, 2, -2) # get the result task_result = result(task_id, 200) # but in most cases you will want to use a hook: async_task('math.modf', 2.5, hook='hooks.print_result') # hooks.py (continues on next page) 18 Chapter 1. Features call: # Async options in a dict opts = {'hook': 'hooks.print_result', 'group': 'math', 'timeout': 30} async_task('math.modf', 2.5, q_options=opts) Please note that this will override any other option0 码力 | 62 页 | 452.10 KB | 1 年前3
Django Q Documentation
Release 1.3.6django_q.tasks import async_task, result # create the task async_task('math.copysign', 2, -2) # or with import and storing the id import math.copysign task_id = async_task(copysign, 2, -2) # get the result task_result = result(task_id, 200) # but in most cases you will want to use a hook: async_task('math.modf', 2.5, hook='hooks.print_result') # hooks.py def print_result(task): print(task.result) async_task() call: # Async options in a dict opts = {'hook': 'hooks.print_result', 'group': 'math', 'timeout': 30} async_task('math.modf', 2.5, q_options=opts) Please note that this will override any other option0 码力 | 64 页 | 453.51 KB | 1 年前3
Go on GPU
Multiplication // Mul is a GPU version of math.Mat[T].Mul method and it multiplies // two matrices m1 and m2 and returns the result. func Mul[T math.Type](m1, m2 math.Mat[T]) math.Mat[T] { // 1. Allocate GPU Pointer(&m1.Data[0]), uintptr(math.TypeSize[T] ()*len(m1.Data)), mtl.ResourceStorageModeShared) defer a.Release() b := device.MakeBuffer(unsafe.Pointer(&m2.Data[0]), uintptr(math.TypeSize[T] ()*len(m2 mtl.ResourceStorageModeShared) defer b.Release() out := device.MakeBuffer(nil, uintptr(math.TypeSize[T]()*m1.Row*m2.Col), mtl.ResourceStorageModeShared) defer out.Release() dp :=0 码力 | 57 页 | 4.62 MB | 1 年前3
Django Q Documentation
Release 0.7.13from django_q.tasks import async, result # create the task async('math.copysign', 2, -2) # or with import and storing the id import math.copysign task_id = async(copysign, 2, -2) # get the result task_result for it task_result = result(task_id, 200) # but in most cases you will want to use a hook: async('math.modf', 2.5, hook='hooks.print_result') # hooks.py def print_result(task): print(task.result) async() call: # Async options in a dict opts = {'hook': 'hooks.print_result', 'group': 'math', 'timeout': 30} async('math.modf', 2.5, q_options=opts) Please note that this will override any other option keywords0 码力 | 56 页 | 416.37 KB | 1 年前3
Django Q Documentation
Release 0.7.11from django_q.tasks import async, result # create the task async('math.copysign', 2, -2) # or with import and storing the id import math.copysign task_id = async(copysign, 2, -2) # get the result task_result for it task_result = result(task_id, 200) # but in most cases you will want to use a hook: async('math.modf', 2.5, hook='hooks.print_result') # hooks.py def print_result(task): print(task.result) async() call: # Async options in a dict opts = {'hook': 'hooks.print_result', 'group': 'math', 'timeout': 30} async('math.modf', 2.5, q_options=opts) Please not that this will override any other option keywords0 码力 | 54 页 | 412.45 KB | 1 年前3
Django Q Documentation
Release 0.7.12from django_q.tasks import async, result # create the task async('math.copysign', 2, -2) # or with import and storing the id import math.copysign task_id = async(copysign, 2, -2) # get the result task_result for it task_result = result(task_id, 200) # but in most cases you will want to use a hook: async('math.modf', 2.5, hook='hooks.print_result') # hooks.py def print_result(task): print(task.result) async() call: # Async options in a dict opts = {'hook': 'hooks.print_result', 'group': 'math', 'timeout': 30} async('math.modf', 2.5, q_options=opts) Please note that this will override any other option keywords0 码力 | 56 页 | 415.46 KB | 1 年前3
Django Q Documentation
Release 1.3.6django_q.tasks import async_task, result # create the task async_task('math.copysign', 2, -2) # or with import and storing the id import math.copysign task_id = async_task(copysign, 2, -2) # get the result task_result = result(task_id, 200) # but in most cases you will want to use a hook: async_task('math.modf', 2.5, hook='hooks.print_result') # hooks.py def print_result(task): print(task.result) Async options in a dict opts = {'hook': 'hooks.print_result', 'group': 'math', 'timeout': 30} async_task('math.modf', 2.5, q_options=opts) Please note that this will override any other option0 码力 | 81 页 | 512.48 KB | 1 年前3
Django Q Documentation
Release 1.3.6django_q.tasks import async_task, result # create the task async_task('math.copysign', 2, -2) # or with import and storing the id import math.copysign task_id = async_task(copysign, 2, -2) # get the result task_result = result(task_id, 200) # but in most cases you will want to use a hook: async_task('math.modf', 2.5, hook='hooks.print_result') # hooks.py def print_result(task): print(task.result) Async options in a dict opts = {'hook': 'hooks.print_result', 'group': 'math', 'timeout': 30} async_task('math.modf', 2.5, q_options=opts) Please note that this will override any other option0 码力 | 81 页 | 512.34 KB | 1 年前3
共 733 条
- 1
- 2
- 3
- 4
- 5
- 6
- 74













