changeset 487:ef4d544b80ab

Add another _t type suffix
author Chris Cannam
date Sat, 02 Nov 2013 15:41:37 +0000
parents 061dc568cfd8
children c5ef86183620
files src/may/matrix/complex.yeti
diffstat 1 files changed, 40 insertions(+), 40 deletions(-) [+]
line wrap: on
line diff
--- a/src/may/matrix/complex.yeti	Sat Nov 02 15:36:01 2013 +0000
+++ b/src/may/matrix/complex.yeti	Sat Nov 02 15:41:37 2013 +0000
@@ -5,7 +5,7 @@
 vec = load may.vector;
 cpx = load may.complex;
 
-typedef opaque complexmatrix = {
+typedef opaque complexmatrix_t = {
     .size is { .rows is number, .columns is number },
     .real is Some mat.matrix_t | None (),
     .imaginary is Some mat.matrix_t | None ()
@@ -320,44 +320,44 @@
     newComplexColumnVector,
     enumerate,
 } as {
-    size is complexmatrix -> { .rows is number, .columns is number },
-    width is complexmatrix -> number,
-    height is complexmatrix -> number,
-    density is complexmatrix -> number,
-    nonZeroValues is complexmatrix -> number,
-    at is complexmatrix -> number -> number -> cpx.complex_t,
-    getColumn is number -> complexmatrix -> array<cpx.complex_t>,
-    getRow is number -> complexmatrix -> array<cpx.complex_t>,
-    getDiagonal is number -> complexmatrix -> array<cpx.complex_t>,
-    asRows is complexmatrix -> list<array<cpx.complex_t>>,
-    asColumns is complexmatrix -> list<array<cpx.complex_t>>,
-    generate is (number -> number -> cpx.complex_t) -> { .rows is number, .columns is number } -> complexmatrix,
-    constMatrix is cpx.complex_t -> { .rows is number, .columns is number } -> complexmatrix,
-    zeroMatrix is { .rows is number, .columns is number } -> complexmatrix,
-    equal is complexmatrix -> complexmatrix -> boolean,
-    conjugateTransposed is complexmatrix -> complexmatrix,
-    transposed is complexmatrix -> complexmatrix,
-    flipped is complexmatrix -> complexmatrix,
-    toSparse is complexmatrix -> complexmatrix,
-    toDense is complexmatrix -> complexmatrix,
-    scaled is number -> complexmatrix -> complexmatrix,
-    sum is complexmatrix -> complexmatrix -> complexmatrix,
-    difference is complexmatrix -> complexmatrix -> complexmatrix,
-    abs is complexmatrix -> mat.matrix_t,
-    product is complexmatrix -> complexmatrix -> complexmatrix,
-    entryWiseProduct is complexmatrix -> complexmatrix -> complexmatrix,
-    complex is mat.matrix_t -> mat.matrix_t -> complexmatrix,
-    fromReal is mat.matrix_t -> complexmatrix,
-    fromImaginary is mat.matrix_t -> complexmatrix,
-    real is complexmatrix -> mat.matrix_t,
-    imaginary is complexmatrix -> mat.matrix_t,
-    magnitudes is complexmatrix -> mat.matrix_t,
-    angles is complexmatrix -> mat.matrix_t,
-    rowSlice is complexmatrix -> number -> number -> complexmatrix,
-    columnSlice is complexmatrix -> number -> number -> complexmatrix,
-    newComplexMatrix is (ColumnMajor () | RowMajor ()) -> list?<list?<cpx.complex_t>> -> complexmatrix,
-    newComplexRowVector is list?<cpx.complex_t> -> complexmatrix,
-    newComplexColumnVector is list?<cpx.complex_t> -> complexmatrix,
-    enumerate is complexmatrix -> list<{ .i is number, .j is number, .v is cpx.complex_t }>,
+    size is complexmatrix_t -> { .rows is number, .columns is number },
+    width is complexmatrix_t -> number,
+    height is complexmatrix_t -> number,
+    density is complexmatrix_t -> number,
+    nonZeroValues is complexmatrix_t -> number,
+    at is complexmatrix_t -> number -> number -> cpx.complex_t,
+    getColumn is number -> complexmatrix_t -> array<cpx.complex_t>,
+    getRow is number -> complexmatrix_t -> array<cpx.complex_t>,
+    getDiagonal is number -> complexmatrix_t -> array<cpx.complex_t>,
+    asRows is complexmatrix_t -> list<array<cpx.complex_t>>,
+    asColumns is complexmatrix_t -> list<array<cpx.complex_t>>,
+    generate is (number -> number -> cpx.complex_t) -> { .rows is number, .columns is number } -> complexmatrix_t,
+    constMatrix is cpx.complex_t -> { .rows is number, .columns is number } -> complexmatrix_t,
+    zeroMatrix is { .rows is number, .columns is number } -> complexmatrix_t,
+    equal is complexmatrix_t -> complexmatrix_t -> boolean,
+    conjugateTransposed is complexmatrix_t -> complexmatrix_t,
+    transposed is complexmatrix_t -> complexmatrix_t,
+    flipped is complexmatrix_t -> complexmatrix_t,
+    toSparse is complexmatrix_t -> complexmatrix_t,
+    toDense is complexmatrix_t -> complexmatrix_t,
+    scaled is number -> complexmatrix_t -> complexmatrix_t,
+    sum is complexmatrix_t -> complexmatrix_t -> complexmatrix_t,
+    difference is complexmatrix_t -> complexmatrix_t -> complexmatrix_t,
+    abs is complexmatrix_t -> mat.matrix_t,
+    product is complexmatrix_t -> complexmatrix_t -> complexmatrix_t,
+    entryWiseProduct is complexmatrix_t -> complexmatrix_t -> complexmatrix_t,
+    complex is mat.matrix_t -> mat.matrix_t -> complexmatrix_t,
+    fromReal is mat.matrix_t -> complexmatrix_t,
+    fromImaginary is mat.matrix_t -> complexmatrix_t,
+    real is complexmatrix_t -> mat.matrix_t,
+    imaginary is complexmatrix_t -> mat.matrix_t,
+    magnitudes is complexmatrix_t -> mat.matrix_t,
+    angles is complexmatrix_t -> mat.matrix_t,
+    rowSlice is complexmatrix_t -> number -> number -> complexmatrix_t,
+    columnSlice is complexmatrix_t -> number -> number -> complexmatrix_t,
+    newComplexMatrix is (ColumnMajor () | RowMajor ()) -> list?<list?<cpx.complex_t>> -> complexmatrix_t,
+    newComplexRowVector is list?<cpx.complex_t> -> complexmatrix_t,
+    newComplexColumnVector is list?<cpx.complex_t> -> complexmatrix_t,
+    enumerate is complexmatrix_t -> list<{ .i is number, .j is number, .v is cpx.complex_t }>,
 }