Basic Examples
Essential examples to get started with DotCompute.
🚧 Documentation In Progress - Basic examples collection is being developed.
Overview
These examples demonstrate fundamental DotCompute concepts:
- Simple kernel definitions
- Basic memory operations
- Simple arithmetic operations
- Kernel execution
List of Basic Examples
Hello World
TODO: Link to Hello World Example
- Your first DotCompute program
- Simple vector addition
Vector Operations
TODO: Document vector operation examples:
- Vector addition
- Vector multiplication
- Element-wise operations
Array Processing
TODO: Provide array processing examples:
- Reading and writing arrays
- Element access
- Array transformations
Memory Management
TODO: Document memory examples:
- Allocating memory
- Transferring data
- Memory deallocation
Kernel Selection
TODO: Document backend selection:
- Automatic selection
- Explicit backend choice
- Fallback behavior
Running Examples
TODO: Document how to run examples:
- Building examples
- Running executables
- Checking output
Next Steps
After completing basic examples:
- Proceed to Intermediate Examples
- Explore Mathematical Functions
- Learn about Performance Optimization