Skip to content

Commit e3be4b1

Browse files
committed
add origin tracking to own data and ndarray
1 parent db747b9 commit e3be4b1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

numojo/core/own_data.mojo

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ from memory import UnsafePointer
1111
from numojo.core.traits.bufferable import Bufferable
1212

1313

14-
struct OwnData[dtype: DType]: # TODO: implement `Bufferable` trait
14+
struct OwnData[
15+
dtype: DType, *, mut: Bool, origin: Origin
16+
]: # TODO: implement `Bufferable` trait
1517
var ptr: UnsafePointer[Scalar[dtype]]
1618

1719
fn __init__(out self, size: Int):

0 commit comments

Comments
 (0)