-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
308 additions
and
199 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package arrayfire; | ||
|
||
import arrayfire.numbers.U; | ||
|
||
/** | ||
* A rank 0 shape (Scalar). | ||
*/ | ||
public class R0 extends Shape<U, U, U, U> { | ||
|
||
public R0() { | ||
super(af.u(), af.u(), af.u(), af.u()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package arrayfire; | ||
|
||
import arrayfire.numbers.Num; | ||
import arrayfire.numbers.U; | ||
|
||
/** | ||
* A rank 1 shape (Vector). | ||
*/ | ||
public class R1<D0 extends Num<D0>> extends Shape<D0, U, U, U> { | ||
|
||
public R1(D0 d0) { | ||
super(d0, af.u(), af.u(), af.u()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package arrayfire; | ||
|
||
import arrayfire.numbers.Num; | ||
import arrayfire.numbers.U; | ||
|
||
/** | ||
* A rank 2 shape (Matrix). | ||
*/ | ||
public class R2<D0 extends Num<D0>, D1 extends Num<D1>> extends Shape<D0, D1, U, U> { | ||
|
||
public R2(D0 d0, D1 d1) { | ||
super(d0, d1, af.u(), af.u()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package arrayfire; | ||
|
||
import arrayfire.numbers.Num; | ||
import arrayfire.numbers.U; | ||
|
||
/** | ||
* A rank 3 shape. | ||
*/ | ||
public class R3<D0 extends Num<D0>, D1 extends Num<D1>, D2 extends Num<D2>> extends Shape<D0, D1, D2, U> { | ||
|
||
public R3(D0 d0, D1 d1, D2 d2) { | ||
super(d0, d1, d2, af.u()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters