-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1) Minor modification in Matlab profiler template class
2) Added a class for "call by reference" of large matrices
- Loading branch information
Showing
2 changed files
with
33 additions
and
9 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
sources/jvxLibraries/jvx-dsp-base-matlab/+jvx_dsp_base/+cbr/jvxMatrixReference.m
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,22 @@ | ||
classdef jvxMatrixReference < handle | ||
properties | ||
data | ||
end | ||
methods | ||
function h = jvxMatrixReference(N, M) | ||
h.data = zeros(N,M); | ||
end | ||
|
||
function setRow(obj, idx, dat) | ||
obj.data(idx, :) = dat; | ||
end | ||
|
||
function m = matrix(obj) | ||
m = obj.data; | ||
end | ||
|
||
function r = row(obj, idx) | ||
r = obj.data(idx,:); | ||
end | ||
end | ||
end |
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