From f7db5cf1f0a83f18e0061f09b5c56f5658215962 Mon Sep 17 00:00:00 2001 From: Arindam Karmakar <152919711+k-arindam@users.noreply.github.com> Date: Wed, 9 Oct 2024 03:37:33 +0530 Subject: [PATCH] Update README.md --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 1043585..8044875 100644 --- a/README.md +++ b/README.md @@ -37,9 +37,9 @@ In any Swift file where you want to use SwiftNP: import SwiftNP ``` -Usage +## Usage -Creating an NDArray +### Creating an NDArray You can create a multi-dimensional array by specifying the shape and default values: @@ -47,7 +47,7 @@ You can create a multi-dimensional array by specifying the shape and default val let array = SNP.ones(shape: [1, 3, 512, 512]) ``` -Basic Array Operations +### Basic Array Operations SwiftNP supports element-wise operations, reshaping, and much more: @@ -55,7 +55,7 @@ SwiftNP supports element-wise operations, reshaping, and much more: let reshapedArray = array.reshape([1, 9]) ``` -Data Types +### Data Types SwiftNP supports a wide range of numeric data types. You can specify the data type when creating an NDArray: @@ -63,6 +63,6 @@ SwiftNP supports a wide range of numeric data types. You can specify the data ty let floatArray = NDArray(shape: [2, 2], dtype: .float64, defaultValue: 21.0) ``` -License +## License -This project is licensed under the MIT License. See the LICENSE file for details. \ No newline at end of file +This project is licensed under the MIT License. See the LICENSE file for details.