plateform stringclasses 1
value | repo_name stringlengths 13 113 | name stringlengths 3 74 | ext stringclasses 1
value | path stringlengths 12 229 | size int64 23 843k | source_encoding stringclasses 9
values | md5 stringlengths 32 32 | text stringlengths 23 843k |
|---|---|---|---|---|---|---|---|---|
github | medooze/swig-master | cpp11_strongly_typed_enumerations_runme.m | .m | swig-master/Examples/test-suite/octave/cpp11_strongly_typed_enumerations_runme.m | 9,095 | utf_8 | 79292c56985d5d809f0dd6ca56afc4f7 | cpp11_strongly_typed_enumerations
function newvalue = enumCheck(actual, expected)
if (actual != expected);
error("Enum value mismatch. Expected: %d Actual: %d", expected, actual);
endif
newvalue = expected + 1;
end
val = 0;
val = enumCheck(cpp11_strongly_typed_enumerations.Enum1_Val1, val);
val = enumCheck(... |
github | medooze/swig-master | li_std_vector_enum_runme.m | .m | swig-master/Examples/test-suite/octave/li_std_vector_enum_runme.m | 486 | utf_8 | 486e8f0461a50153147831e1a8ada0f5 | # do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
li_std_vector_enum
function check(a, b)
if (a != b)
error("incorrect match");
endif
end
ev = EnumVector();
check(ev.nums(0), 10);
check(ev.nums(1), 20);
check(ev.nums(2), 30);
it = ev.nums.begin();
... |
github | medooze/swig-master | li_std_containers_overload_runme.m | .m | swig-master/Examples/test-suite/octave/li_std_containers_overload_runme.m | 809 | utf_8 | b70b1cb696d6ff0fefe901c14415e676 | # do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
li_std_containers_overload
function check(got, expected)
if (!strcmp(got, expected))
error("Failed check. '%s' != '%s'", got, expected)
endif
end
v = VectorX();
check(VectorOverload(v), "vector<X>");
... |
github | medooze/swig-master | exception_order_runme.m | .m | swig-master/Examples/test-suite/octave/exception_order_runme.m | 1,008 | utf_8 | 6133e2f0495da4196bfa27e670b12146 | # do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
exception_order
function check_lasterror(expected)
if (!strcmp(lasterror.message, expected))
# Take account of older versions prefixing with "error: " and adding a newline at the end
if (!strcmp(rege... |
github | medooze/swig-master | director_abstract_runme.m | .m | swig-master/Examples/test-suite/octave/director_abstract_runme.m | 1,136 | utf_8 | 1c206ea202edd1a1ecd87d4e23ff24d4 | # do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
director_abstract
MyFoo=@() subclass(director_abstract.Foo(),@ping);
function out=ping(self)
out="MyFoo::ping()";
end
a = MyFoo();
if (!strcmp(a.ping(),"MyFoo::ping()"))
error(a.ping())
endif
if (!strc... |
github | medooze/swig-master | runme.m | .m | swig-master/Examples/octave/class/runme.m | 1,110 | utf_8 | b64cce0a3528cfb71d766e399ec17646 | # do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
# This file illustrates the proxy class C++ interface generated
# by SWIG.
swigexample
# ----- Object creation -----
printf("Creating some objects:\n");
c = swigexample.Circle(10)
s = swigexample.Square(10)
... |
github | medooze/swig-master | horzcat.m | .m | swig-master/Examples/octave/operator/@swig_ref/horzcat.m | 229 | utf_8 | 40c402670369b6e777422cca21c0d567 | % test octaves concatenation operator
function ret=horzcat(a, b)
% return the concatenation of two ComplexVal values as a cell array.
% (not really useful but it tests the concatenation of swig_ref objects)
ret={a, b};
end
|
github | medooze/swig-master | runme.m | .m | swig-master/Examples/octave/module_load/runme.m | 2,491 | utf_8 | 657725c3b1f299ed4a5a705cdfa3339c | # do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
# load module
clear all;
assert(exist("swigexample") == 3);
swigexample;
assert(isglobal("swigexample"));
assert(cvar.ivar == ifunc);
clear all
assert(exist("swigexample") == 3);
swigexample;
assert(isglobal("s... |
github | FelixPerezCicala/modRankineSCC-master | polyvaln.m | .m | modRankineSCC-master/01 Solver/01-02 Funciones/polyvaln.m | 3,497 | utf_8 | fecc9f839aa56c6637fac3907f279e43 | function y = polyvaln(p,x)
%POLYVALN evaluate a multivariate polynomial
%
% The n-variate polynomial p, represented as an n-dimensional
% array, is evaluated for each value in the array x. The last
% dimension of x should be of size n corresponding to the n
% variables in the polynomial.
%
% Followin... |
github | chuangao/BicMix-master | KSVD.m | .m | BicMix-master/KSVD/KSVD.m | 12,290 | utf_8 | 6233b813f69dc0129006dd93929e3b99 | function [Dictionary,output] = KSVD(...
Data,... % an nXN matrix that contins N signals (Y), each of dimension n.
param)
% =========================================================================
% K-SVD algorithm
% =================================================================... |
github | chuangao/BicMix-master | KSVD_NN.m | .m | BicMix-master/KSVD/KSVD_NN.m | 11,585 | utf_8 | c538d2b9c08c765e3fef74f474236041 | function [Dictionary,output] = KSVD_NN(...
Data,... % an nXN matrix that contins N signals (Y), each of dimension n.
param)
% =========================================================================
% Non Negative K-SVD algorithm
% ===================================================... |
github | chuangao/BicMix-master | gererateSyntheticDictionaryAndData.m | .m | BicMix-master/KSVD/gererateSyntheticDictionaryAndData.m | 1,896 | utf_8 | 16de7e46c7a20f0172cc50b3ec4ea1c7 | function [Dictionary, data, coefs] = gererateSyntheticDictionaryAndData(N, L, dim, K, SNRdB)
randn('state',sum(100*clock));
rand('state',sum(100*clock));
Dictionary = randn(dim,K);
Dictionary = Dictionary*diag(1./sqrt(sum(Dictionary.*Dictionary)));
[data,coefs] = CreateDataFromDictionarySimple(Dictionary, ... |
github | chuangao/BicMix-master | demo3.m | .m | BicMix-master/KSVD/demo3.m | 8,504 | utf_8 | 1813214e07f98c446ffd04b272843686 | function demo3()
% NN-KSVD running file - a synthetic test.
% in this file a synthetic test of the NN-K-SVD (non-negative K-SVD)
% algorithm is performed. This exact Test is presented in "K-SVD and its non-negative
% variant for dictionary design", written by M. Aharon, M. Elad, and A.M. Bruckstein
% and appeare... |
github | chuangao/BicMix-master | MOD.m | .m | BicMix-master/KSVD/MOD.m | 8,053 | utf_8 | f5300aadcb0fbf0ade04eca1adf42577 | function [Dictionary,output] = MOD(Data,param)
% =========================================================================
% MOD algorithm
% =========================================================================
% Given for comparison reasons only. For detils please see the paper
% "Met... |
github | eardi/sm-fpca-master | test_FELICITY.m | .m | sm-fpca-master/FELICITY_Ver1.3.1/FELICITY/test_FELICITY.m | 3,998 | utf_8 | 306a68c40b8cb43a10fdb91f4b94127a | function status = test_FELICITY()
%test_FELICITY
%
% Run the test suite for FELICITY.
% Copyright (c) 06-25-2020, Shawn W. Walker
VER_NUMBER = '1.3.1';
Test_Files( 1).FH = @compile_static_codes;
Test_Files( 2).FH = @test_utilities;
Test_Files( 3).FH = @test_static_codes;
Test_Files( 4).FH = @test_mesh... |
github | eardi/sm-fpca-master | Generate_HellanHerrmannJohnson_Element_File.m | .m | sm-fpca-master/FELICITY_Ver1.3.1/FELICITY/Elem_Defn/Generators/Generate_HellanHerrmannJohnson_Element_File.m | 15,770 | utf_8 | 5b5b568e3b4aafb16244458c239e1511 | function status = Generate_HellanHerrmannJohnson_Element_File(Element_Domain,Degree_k,Output_Dir)
%Generate_HellanHerrmannJohnson_Element_File
%
% This generates a finite element reference m-file that defines a
% particular Hellan-Herrmann-Johnson element of given fixed degree on a
% given reference domain.
... |
github | eardi/sm-fpca-master | Get_Lagrange_On_Simplex.m | .m | sm-fpca-master/FELICITY_Ver1.3.1/FELICITY/Elem_Defn/Generators/Get_Lagrange_On_Simplex.m | 24,400 | utf_8 | 7650a20938204235c125a8f0ea449dcd | function [Nodal_Basis, Nodal_Var] = Get_Lagrange_On_Simplex(dim,deg_k)
%Get_Lagrange_On_Simplex
%
% This computes the Lagrange basis functions on a simplex.
% Copyright (c) 09-24-2016, Shawn W. Walker
disp(['Solve for Lagrange degree ', num2str(deg_k), ' basis functions (on ', num2str(dim), '-D reference si... |
github | eardi/sm-fpca-master | Generate_RaviartThomas_Element_File.m | .m | sm-fpca-master/FELICITY_Ver1.3.1/FELICITY/Elem_Defn/Generators/Generate_RaviartThomas_Element_File.m | 15,235 | utf_8 | e329cf81684aa6dad279d26b7fbf4d66 | function status = Generate_RaviartThomas_Element_File(Element_Domain,Degree_k,Output_Dir)
%Generate_RaviartThomas_Element_File
%
% This generates a finite element reference m-file that defines a
% particular Raviart-Thomas element of given fixed degree on a given
% reference domain.
%
% The inputs are:
... |
github | eardi/sm-fpca-master | Generate_Lagrange_Element_File.m | .m | sm-fpca-master/FELICITY_Ver1.3.1/FELICITY/Elem_Defn/Generators/Generate_Lagrange_Element_File.m | 17,212 | utf_8 | 42bdd40861f80585634d21c5ebcaaa44 | function status = Generate_Lagrange_Element_File(Element_Domain,Degree_k,Output_Dir)
%Generate_Lagrange_Element_File
%
% This generates a finite element reference m-file that defines a
% particular Lagrange element of given fixed degree on a given reference
% domain.
%
% The inputs are:
% Element_... |
github | eardi/sm-fpca-master | Generate_Hcurl_3D_Permuted_Basis_Set.m | .m | sm-fpca-master/FELICITY_Ver1.3.1/FELICITY/Elem_Defn/Generators/Generate_Hcurl_3D_Permuted_Basis_Set.m | 8,790 | utf_8 | 00356351444fae677df87dce712a3086 | function Perm_Basis = Generate_Hcurl_3D_Permuted_Basis_Set(Elem,Permute_NV)
%Generate_Hcurl_3D_Permuted_Basis_Set
%
% This generates 24 permutations of the H(curl) basis functions (in 3-D).
% Thr output is an array of structs containing the set of basis functions
% for each permutation. It also contains the... |
github | eardi/sm-fpca-master | Get_Nedelec_1stKind_On_Simplex.m | .m | sm-fpca-master/FELICITY_Ver1.3.1/FELICITY/Elem_Defn/Generators/Get_Nedelec_1stKind_On_Simplex.m | 12,379 | utf_8 | 474b711c270f1fc0b8f9006820326e70 | function [Nodal_Basis, Nodal_Var] = Get_Nedelec_1stKind_On_Simplex(dim,deg_k,use_std)
%Get_Nedelec_1stKind_On_Simplex
%
% This computes the Nedelec (1st kind) basis functions on a simplex.
%
% This uses the Paul Wesson trick for choosing tangent basis vectors (for
% edges and faces); i.e. the global numberi... |
github | eardi/sm-fpca-master | Generate_Nedelec_1stKind_Element_File.m | .m | sm-fpca-master/FELICITY_Ver1.3.1/FELICITY/Elem_Defn/Generators/Generate_Nedelec_1stKind_Element_File.m | 22,662 | utf_8 | 379f28827fcd07fe385a815545b5b676 | function status = Generate_Nedelec_1stKind_Element_File(Element_Domain,Degree_k,Output_Dir,Use_Std)
%Generate_Nedelec_1stKind_Element_File
%
% This generates a finite element reference m-file that defines a
% particular Nedelec (1st-kind) element of given fixed degree on a given
% reference domain.
%
% T... |
github | eardi/sm-fpca-master | write_element_file_nodal_top_string.m | .m | sm-fpca-master/FELICITY_Ver1.3.1/FELICITY/Elem_Defn/Generators/Helper_Routines/write_element_file_nodal_top_string.m | 1,118 | utf_8 | e029b77686b94c0616f6cd395d7dc91d | function Nodal_Sets_str = write_element_file_nodal_top_string(Nodal_Sets,TAB)
%write_element_file_nodal_top_string
%
% This creates a string representing the sets of DoF indices.
% Copyright (c) 10-10-2016, Shawn W. Walker
Nodal_Sets_str = []; % init
for ii = 1:length(Nodal_Sets)-1
DoF_set = Nodal_Set... |
github | eardi/sm-fpca-master | basis_symm_matrix_polys_deg_k.m | .m | sm-fpca-master/FELICITY_Ver1.3.1/FELICITY/Elem_Defn/Generators/Helper_Routines/basis_symm_matrix_polys_deg_k.m | 2,048 | utf_8 | 29f9d893a92766a0988cb1decd000514 | function [basis, const_basis] = basis_symm_matrix_polys_deg_k(indep_vars,deg_k,mat_size,exact)
%basis_symm_matrix_polys_deg_k
%
% This returns a set of symmetric matrix-valued basis polynomials
% (of degree <= k) in the given independent variables.
%
% indep_vars = col. vector of symbolic independent vars;
... |
github | eardi/sm-fpca-master | Permute_Nedelec_1stKind_On_Simplex_Nodal_Variables.m | .m | sm-fpca-master/FELICITY_Ver1.3.1/FELICITY/Elem_Defn/Nodal_Variables/Permute_Nedelec_1stKind_On_Simplex_Nodal_Variables.m | 4,466 | utf_8 | a727f6f2f783ac5a706fb1e9a3752056 | function Permute_Nodal_Var = Permute_Nedelec_1stKind_On_Simplex_Nodal_Variables(Cell,DoF_Perm,Perm_Tet,...
Sym_Perm_Map,Jacobian_Matrix,Nodal_Var)
%Permute_Nedelec_1stKind_On_Simplex_Nodal_Variables
%
% This permutes the Nodal Variable Data.
% Copyright (c) 11-02-2016, Sha... |
github | eardi/sm-fpca-master | demo_test_dirs.m | .m | sm-fpca-master/FELICITY_Ver1.3.1/FELICITY/Demo/demo_test_dirs.m | 2,611 | utf_8 | 1d6b238662b35218ae37d950eb337e19 | function Unit_Test_Dirs = demo_test_dirs()
%demo_test_dirs
%
% This outputs a list of directories containing the demos.
% Copyright (c) 05-07-2019, Shawn W. Walker
% get the main directory that this function is in!
MFN = mfilename('fullpath');
Main_Dir = fileparts(MFN);
% define demo dirs
% init
Un... |
github | eardi/sm-fpca-master | Execute_Laplace_On_Cube_3D.m | .m | sm-fpca-master/FELICITY_Ver1.3.1/FELICITY/Demo/Laplace_On_Cube_3D/Execute_Laplace_On_Cube_3D.m | 4,920 | utf_8 | 6e31629a01295f97ccdab78f7d76c6b7 | function status = Execute_Laplace_On_Cube_3D()
%Execute_Laplace_On_Cube_3D
%
% Demo code for Laplace's equation on 3-D cube.
% Copyright (c) 06-25-2012, Shawn W. Walker
% BEGIN: define mesh of cube
disp(' ');
disp('Create Cube Mesh:');
tic
Num_Pts = 20+1; % max is 70+1 on my laptop (just barely worked... |
github | eardi/sm-fpca-master | Execute_EWOD_FalkWalker.m | .m | sm-fpca-master/FELICITY_Ver1.3.1/FELICITY/Demo/EWOD/Execute_EWOD_FalkWalker.m | 9,276 | utf_8 | 8a44d4c2ac9cd1e18f12669f9cf6e9ea | function status = Execute_EWOD_FalkWalker()
%Execute_EWOD_FalkWalker
%
% Demo code for solving the EWOD problem (using the formulation by Falk
% and Walker, 2013).
% Copyright (c) 12-05-2017, Shawn W. Walker
Main_Dir = fileparts(mfilename('fullpath'));
% define initial disk surface
Refine_Level = 5;
... |
github | eardi/sm-fpca-master | matrix_assembly_unit_test_dirs.m | .m | sm-fpca-master/FELICITY_Ver1.3.1/FELICITY/Code_Generation/Matrix_Assembly/matrix_assembly_unit_test_dirs.m | 4,559 | utf_8 | ab821bb181614a747c0d71a58bbd5bc9 | function Unit_Test_Dirs = matrix_assembly_unit_test_dirs()
%matrix_assembly_unit_test_dirs
%
% This outputs a list of directories containing the unit tests.
% Copyright (c) 04-05-2018, Shawn W. Walker
% get the main directory that this function is in!
MFN = mfilename('fullpath');
Main_Dir = fileparts(MFN)... |
github | eardi/sm-fpca-master | Update_GeomFunc_Options_From_Basis_Functions.m | .m | sm-fpca-master/FELICITY_Ver1.3.1/FELICITY/Code_Generation/Matrix_Assembly/Level_3/@FELSpaces/Update_GeomFunc_Options_From_Basis_Functions.m | 4,379 | utf_8 | 9d49f830959cd57a38693c9727ebc5ae | function obj = Update_GeomFunc_Options_From_Basis_Functions(obj,Integration_Index)
%Update_GeomFunc_Options_From_Basis_Functions
%
% This updates what needs to be computed in the C++ code for the geometric
% functions in order to compute all the basis function transformations.
% Copyright (c) 01-23-2014, Sh... |
github | eardi/sm-fpca-master | Write_Sub_DoI_Embedding_Info_in_Setup_Data.m | .m | sm-fpca-master/FELICITY_Ver1.3.1/FELICITY/Code_Generation/Matrix_Assembly/Level_3/@FELDomain/private/Write_Sub_DoI_Embedding_Info_in_Setup_Data.m | 3,661 | utf_8 | 77f1ae62fd09cd00790767ad7918969f | function status = Write_Sub_DoI_Embedding_Info_in_Setup_Data(obj,fid,Embed)
%Write_Sub_DoI_Embedding_Info_in_Setup_Data
%
% This determines the kind of Subdomain/Domain of Integration (DoI)
% information that is needed to represent the following containment:
% DoI \subset Subdomain \subset Global.
% S... |
github | eardi/sm-fpca-master | Run_Conversion.m | .m | sm-fpca-master/FELICITY_Ver1.3.1/FELICITY/Code_Generation/Matrix_Assembly/Main/@L1toL3/Run_Conversion.m | 3,268 | utf_8 | 94a49c4850a727b00187012b4977ede4 | function [FS, FM, C_Codes, Elems_DoF_Allocation] = Run_Conversion(obj,Main_Dir,Snippet_Dir)
%Run_Conversion
%
% This converts MATS (a Level 1 object) into Level 3 objects.
% Note: there is an intermediate Level 2 object (struct).
% Copyright (c) 11-07-2017, Shawn W. Walker
Domain_of_Integration_Info = ob... |
github | eardi/sm-fpca-master | Check_Domains.m | .m | sm-fpca-master/FELICITY_Ver1.3.1/FELICITY/Code_Generation/Matrix_Assembly/Main/@L1toL3/private/Check_Domains.m | 1,362 | utf_8 | ccd50bda6d9cb47d95dda74cbd142496 | function status = Check_Domains(obj,DS)
%Check_Domains
%
% This just does some basic error checking.
% Copyright (c) 05-25-2012, Shawn W. Walker
status = 0;
% check hold-all domain
if ~isequal(DS.Hold_All,obj.MATS.GeoElem.Domain)
disp('Data structures are inconsistent!');
error('This should no... |
github | eardi/sm-fpca-master | Prune_BasisFunc.m | .m | sm-fpca-master/FELICITY_Ver1.3.1/FELICITY/Code_Generation/Matrix_Assembly/Main/@L1toL3/private/Prune_BasisFunc.m | 2,096 | utf_8 | b367a588109f75da7b9d87356575a65c | function FS = Prune_BasisFunc(obj,FS,FM)
%Prune_BasisFunc
%
% This removes the basis functions that are not used by the FM object.
% Copyright (c) 06-24-2012, Shawn W. Walker
for ii = 1:length(FS.Integration)
% find the FE spaces that are needed to evaluate contributions to the FE
% matrices ... |
github | eardi/sm-fpca-master | Filter_Domains.m | .m | sm-fpca-master/FELICITY_Ver1.3.1/FELICITY/Code_Generation/Matrix_Assembly/Main/@L1toL3/private/Filter_Domains.m | 810 | utf_8 | 5400132f6ad1a34cb8fc92681d483300 | function DS_Map = Filter_Domains(DS)
%Filter_Domains
%
% This make a container.MAP variable to hold a unique list of domains.
% Copyright (c) 08-01-2011, Shawn W. Walker
Num_DS = length(DS);
DS_Map = containers.Map();
for ind = 1:Num_DS
DS_Map = append_Domain(DS_Map,DS(ind));
end
end
functio... |
github | eardi/sm-fpca-master | Set_COPY_Struct.m | .m | sm-fpca-master/FELICITY_Ver1.3.1/FELICITY/Code_Generation/Matrix_Assembly/Main/@L1toL3/private/Set_COPY_Struct.m | 2,270 | utf_8 | 6437f9ef291a18552bfa051c31c36be0 | function Integral_SubMAT_Index = Set_COPY_Struct(L2_Obj_Integral,SubMAT_Index)
%Set_COPY_Struct
%
% Do checks to see if the sub-matrix is identical to others. If so, then you
% can just COPY that matrix over.
% Copyright (c) 06-25-2012, Shawn W. Walker
Num_Integral = length(L2_Obj_Integral);
Integral_S... |
github | eardi/sm-fpca-master | Setup_FELGeoms.m | .m | sm-fpca-master/FELICITY_Ver1.3.1/FELICITY/Code_Generation/Matrix_Assembly/Main/@L1toL3/private/Setup_FELGeoms.m | 2,852 | utf_8 | daff6182d45e825354033321ef8d3495 | function FS = Setup_FELGeoms(obj,FS)
%Setup_FELGeoms
%
% This inits the GeomFunc Map container under FS.Integration(ind).GeomFunc.
% Copyright (c) 01-23-2014, Shawn W. Walker
Num_Distinct_Integration_Domains = length(FS.Integration);
for ind = 1:Num_Distinct_Integration_Domains
% geometry representati... |
github | eardi/sm-fpca-master | Setup_FELSpaces.m | .m | sm-fpca-master/FELICITY_Ver1.3.1/FELICITY/Code_Generation/Matrix_Assembly/Main/@L1toL3/private/Setup_FELSpaces.m | 2,510 | utf_8 | 74fb2fe80fa31a9156e117a20a9c1815 | function FS = Setup_FELSpaces(obj,Domain_Info)
%Setup_FELSpaces
%
% This inits the FELSpaces object.
% Copyright (c) 03-24-2017, Shawn W. Walker
check_geometric_element_domain_geodim_consistency(obj.MATS.GeoElem.Tensor_Comp,Domain_Info);
% create geometric element for the Hold-All container domain
DEBUG... |
github | eardi/sm-fpca-master | Get_Unique_List_Of_Domains.m | .m | sm-fpca-master/FELICITY_Ver1.3.1/FELICITY/Code_Generation/Matrix_Assembly/Main/@L1toL3/private/Get_Unique_List_Of_Domains.m | 5,416 | utf_8 | cdb1da66abe0e65d346ccdfe773ee67a | function SS = Get_Unique_List_Of_Domains(obj)
%Get_Unique_List_Of_Domains
%
% This outputs a structure that looks like:
% SS.Hold_All = Global container domain.
% SS.Domain_Of_Integration(k).
% Domain = integration domain (that is embedded in Hold_All
% doma... |
github | eardi/sm-fpca-master | FEL_Compute_Exact_Solution_Hessian_Ex_TD_2_GD_3.m | .m | sm-fpca-master/FELICITY_Ver1.3.1/FELICITY/Code_Generation/Matrix_Assembly/Unit_Test/Hessian/TopDim_2_GeoDim_3/FEL_Compute_Exact_Solution_Hessian_Ex_TD_2_GD_3.m | 2,757 | utf_8 | bfb8ed1aaad6355b19396144ae78beb7 | function Q = FEL_Compute_Exact_Solution_Hessian_Ex_TD_2_GD_3()
%FEL_Compute_Exact_Solution_Hessian_Ex_TD_2_GD_3
%
% Compute exact solution to test FELICITY Auto-Generated Assembly Code.
% Copyright (c) 08-14-2014, Shawn W. Walker
% parameterization of the domain: paraboloid over a unit disk
vr = sym('r','r... |
github | eardi/sm-fpca-master | FEL_Execute_Bending_Plate_2D.m | .m | sm-fpca-master/FELICITY_Ver1.3.1/FELICITY/Code_Generation/Matrix_Assembly/Unit_Test/Mixed_HHJ/Bending_Plate_2D/FEL_Execute_Bending_Plate_2D.m | 41,909 | utf_8 | 4b183a62ac0dfcc71c95b66ffa40616c | function status = FEL_Execute_Bending_Plate_2D(deg_geo,deg_k,omega,exact_u,exact_u_hess,...
Mesh_type,BC_type)
%FEL_Execute_Bending_Plate_2D
%
% test FELICITY Auto-Generated Assembly Code
% Copyright (c) 03-29-2018, Shawn W. Walker
Main_Dir = fileparts(mfilena... |
github | eardi/sm-fpca-master | DiffGeo_HHJk_Surface.m | .m | sm-fpca-master/FELICITY_Ver1.3.1/FELICITY/Code_Generation/Matrix_Assembly/Unit_Test/Mixed_HHJ/HHJk_Surface/DiffGeo_HHJk_Surface.m | 3,852 | utf_8 | 2329d8c3b439918d7a4972f03e34f5f4 | function [soln_func, soln_surf_grad_func, soln_surf_hess, f_func, normal_vec_func] = DiffGeo_HHJk_Surface(surf_func,soln_tilde,vars)
%DiffGeo_HHJk_Surface
% Copyright (c) 03-30-2018, Shawn W. Walker
% note: surf_func is a height function
u = vars(1);
v = vars(2);
soln_func = matlabFunction(soln_tilde);
... |
github | eardi/sm-fpca-master | Output_CPP_Eval_Extension.m | .m | sm-fpca-master/FELICITY_Ver1.3.1/FELICITY/Code_Generation/Matrix_Assembly/Transformer/@Hdivdiv_Trans/Output_CPP_Eval_Extension.m | 1,276 | utf_8 | 3ce6eb129636b9092f7c76021a3c008f | function CPP_Eval = Output_CPP_Eval_Extension(obj,FIELD_str,Components)
%Output_CPP_Eval_Extension
%
% This outputs a string representing the C++ evaluation code for the given
% variable name.
%
% Components = [basis_comp_1, basis_comp_2, comp_1, comp_2, etc...]
% Copyright (c) 03-22-2018, Shawn W. Walk... |
github | eardi/sm-fpca-master | Output_CPP_Eval_Extension.m | .m | sm-fpca-master/FELICITY_Ver1.3.1/FELICITY/Code_Generation/Matrix_Assembly/Transformer/@Hcurl_Trans/Output_CPP_Eval_Extension.m | 1,722 | utf_8 | f271a34bc251f262655357e05cdafcfa | function CPP_Eval = Output_CPP_Eval_Extension(obj,FIELD_str,Components)
%Output_CPP_Eval_Extension
%
% This outputs a string representing the C++ evaluation code for the given
% variable name.
%
% Components = [basis_comp_1, basis_comp_2, comp_1, comp_2, etc...]
% Copyright (c) 10-17-2016, Shawn W. Walk... |
github | eardi/sm-fpca-master | Premap_Basis_in_2D.m | .m | sm-fpca-master/FELICITY_Ver1.3.1/FELICITY/Code_Generation/Matrix_Assembly/Transformer/@Hcurl_Trans/private/Premap_Basis_in_2D.m | 1,746 | utf_8 | e5cb527d427b07a5ad76004b9f45763c | function Sign_Change = Premap_Basis_in_2D(Mesh_Orient,All_Edge_DoFs,Num_Basis)
%Premap_Basis_in_2D
%
% This is used by the H(curl) elements for pre-mapping basis functions to
% adjust for different edge orientations.
%
% Sign_Change = Premap_Basis_in_2D(Mesh_Orient,All_Facet_DoFs,Num_Basis);
%
% Mesh_Or... |
github | eardi/sm-fpca-master | test_H1_Trans.m | .m | sm-fpca-master/FELICITY_Ver1.3.1/FELICITY/Code_Generation/Matrix_Assembly/Transformer/Unit_Test/test_H1_Trans.m | 3,006 | utf_8 | c4952c0cdf9d5cc0c2354e4d677ed9cb | function status = test_H1_Trans()
%test_H1_Trans
%
% Test code for FELICITY class.
% Copyright (c) 05-19-2016, Shawn W. Walker
status = 0;
GM_test = Geometric_Trans('test',1,1,true);
FUNC1_test = H1_Trans('test',GM_test);
% make sure all the fields are there!
if (min(isfield(FUNC1_test.f,{'Val','Grad'... |
github | eardi/sm-fpca-master | test_Geometric_Trans.m | .m | sm-fpca-master/FELICITY_Ver1.3.1/FELICITY/Code_Generation/Matrix_Assembly/Transformer/Unit_Test/test_Geometric_Trans.m | 7,370 | utf_8 | cbadddae9f798275055a84401ea17c40 | function status = test_Geometric_Trans()
%test_Geometric_Trans
%
% Test code for FELICITY class.
% Copyright (c) 05-19-2016, Shawn W. Walker
status = 0;
MAP1_test = Geometric_Trans('test',3,3,true);
% make sure all the fields are there!
if (min(isfield(MAP1_test.PHI,{'Mesh_Size','Val','Grad','Metric','... |
github | eardi/sm-fpca-master | test_Hdiv_Trans.m | .m | sm-fpca-master/FELICITY_Ver1.3.1/FELICITY/Code_Generation/Matrix_Assembly/Transformer/Unit_Test/test_Hdiv_Trans.m | 2,585 | utf_8 | b48224497c37a2d9a5f384bfb36b8ff1 | function status = test_Hdiv_Trans()
%test_Hdiv_Trans
%
% Test code for FELICITY class.
% Copyright (c) 05-19-2016, Shawn W. Walker
status = 0;
GM_test = Geometric_Trans('test',2,2,true);
FUNC1_test = Hdiv_Trans('test',GM_test);
% make sure all the fields are there!
if (min(isfield(FUNC1_test.vv,{'Orie... |
github | eardi/sm-fpca-master | test_Hcurl_Trans.m | .m | sm-fpca-master/FELICITY_Ver1.3.1/FELICITY/Code_Generation/Matrix_Assembly/Transformer/Unit_Test/test_Hcurl_Trans.m | 2,870 | utf_8 | 821f758f3b1246c472446181f738f1bf | function status = test_Hcurl_Trans()
%test_Hcurl_Trans
%
% Test code for FELICITY class.
% Copyright (c) 03-24-2018, Shawn W. Walker
status = 0;
GM_test = Geometric_Trans('test',2,2,true);
FUNC1_test = Hcurl_Trans('test',GM_test);
% make sure all the fields are there!
if (min(isfield(FUNC1_test.vv,{'O... |
github | eardi/sm-fpca-master | Write_C_Code_To_File.m | .m | sm-fpca-master/FELICITY_Ver1.3.1/FELICITY/Code_Generation/Matrix_Assembly/Transformer/@generic_trans/Write_C_Code_To_File.m | 1,494 | utf_8 | de3f56aac42961fe0a8887fc6b98d99a | function status = Write_C_Code_To_File(obj,FileName,Struct_C_Code)
%Write_C_Code_To_File
%
% This writes a given code struct and writes it to a given file.
% Copyright (c) 02-20-2012, Shawn W. Walker
% open file for writing
fid = fopen(FileName, 'w');
if ~isempty(Struct_C_Code)
% write the va... |
github | eardi/sm-fpca-master | Output_CPP_Eval_Extension.m | .m | sm-fpca-master/FELICITY_Ver1.3.1/FELICITY/Code_Generation/Matrix_Assembly/Transformer/@Hdiv_Trans/Output_CPP_Eval_Extension.m | 1,235 | utf_8 | 5996ca59e64c741048bc8a4d432f8b70 | function CPP_Eval = Output_CPP_Eval_Extension(obj,FIELD_str,Components)
%Output_CPP_Eval_Extension
%
% This outputs a string representing the C++ evaluation code for the given
% variable name.
%
% Components = [basis_comp_1, basis_comp_2, comp_1, comp_2, etc...]
% Copyright (c) 03-25-2012, Shawn W. Walk... |
github | eardi/sm-fpca-master | Premap_Basis.m | .m | sm-fpca-master/FELICITY_Ver1.3.1/FELICITY/Code_Generation/Matrix_Assembly/Transformer/@Hdiv_Trans/private/Premap_Basis.m | 1,747 | utf_8 | 5bb82ea1bf4671cec699d718a1afe095 | function Sign_Change = Premap_Basis(Mesh_Orient,All_Facet_DoFs,Num_Basis)
%Premap_Basis
%
% This is used by the H(div) elements for pre-mapping basis functions to
% adjust for different facet orientations.
%
% Sign_Change = Premap_Basis_Hdiv(Mesh_Orient,All_Facet_DoFs,Num_Basis);
%
% Mesh_Orient: NxF ve... |
github | eardi/sm-fpca-master | Generate_Local_Maps_For_Geometric_Basis_Functions.m | .m | sm-fpca-master/FELICITY_Ver1.3.1/FELICITY/Code_Generation/Matrix_Assembly/Transformer/@Codim_Map/Generate_Local_Maps_For_Geometric_Basis_Functions.m | 10,246 | utf_8 | 82e826bc3b9ccb1863c1f11985f48ba0 | function Local_Map = Generate_Local_Maps_For_Geometric_Basis_Functions(obj,entity_ind)
%Generate_Local_Maps_For_Geometric_Basis_Functions
%
% This generates two symbolic maps (expressions) for generating geometric
% basis functions that are reduced to Subdomains and Domains of Integration
% (DoI's).
%
% ... |
github | eardi/sm-fpca-master | PHI_Grad_Metric_C_Code.m | .m | sm-fpca-master/FELICITY_Ver1.3.1/FELICITY/Code_Generation/Matrix_Assembly/Transformer/@Geometric_Trans/PHI_Grad_Metric_C_Code.m | 6,314 | utf_8 | 842ef98e2fd16bbfefd4f9b326c1cc7b | function CODE = PHI_Grad_Metric_C_Code(obj)
%PHI_Grad_Metric_C_Code
%
% Generate C-code for direct evaluation of PHI.Grad_Metric.
% PHI_Grad_Metric_r_ij(qp) =
% \partial_r SUM^GeoDim_{k=1} PHI_Grad_ki(qp) * PHI_Grad_kj(qp),
% 1 <= i,j <= TopDim,
% ... |
github | eardi/sm-fpca-master | PHI_Mesh_Size_C_Code.m | .m | sm-fpca-master/FELICITY_Ver1.3.1/FELICITY/Code_Generation/Matrix_Assembly/Transformer/@Geometric_Trans/PHI_Mesh_Size_C_Code.m | 5,483 | utf_8 | a49c6e600dcd44d9f5f9968ad9a61e09 | function CODE = PHI_Mesh_Size_C_Code(obj,Num_Basis)
%PHI_Mesh_Size_C_Code
%
% Generate C-code for computing the mesh size (with PHI).
% vx_i(qp) = SUM^{Num_Basis}_{k=1} c_{ki} phi_k(\hat{vx}_i),
% 1 <= i <= GeoDim, and \hat{vx}_i are the local
% coordinat... |
github | eardi/sm-fpca-master | PHI_Hess_C_Code.m | .m | sm-fpca-master/FELICITY_Ver1.3.1/FELICITY/Code_Generation/Matrix_Assembly/Transformer/@Geometric_Trans/PHI_Hess_C_Code.m | 5,092 | utf_8 | d615f7eacfceaab422cac4290afa9022 | function CODE = PHI_Hess_C_Code(obj,Num_Basis)
%PHI_Hess_C_Code
%
% Generate C-code for direct evaluation of PHI.Hess.
% PHI_Hess_ijk(qp) = SUM^{Num_Basis}_{q=1} c_{qk} *
% \partial_i \partial_j phi_k(qp),
% 1 <= k <= GeoDim, 1 <= i,j <= TopDim
% ... |
github | eardi/sm-fpca-master | Output_CPP_Eval_Extension.m | .m | sm-fpca-master/FELICITY_Ver1.3.1/FELICITY/Code_Generation/Matrix_Assembly/Transformer/@H1_Trans/Output_CPP_Eval_Extension.m | 1,117 | utf_8 | 82df6bc9f41b6b64ca1656254d87ac80 | function CPP_Eval = Output_CPP_Eval_Extension(obj,FIELD_str,Components)
%Output_CPP_Eval_Extension
%
% This outputs a string representing the C++ evaluation code for the given
% variable name.
%
% Components = [basis_comp_1, basis_comp_2, comp_1, comp_2, etc...]
% Copyright (c) 03-25-2012, Shawn W. Walk... |
github | eardi/sm-fpca-master | Generic_Write_Basis_Eval_Interpolation_to_CPP_Code.m | .m | sm-fpca-master/FELICITY_Ver1.3.1/FELICITY/Code_Generation/Matrix_Assembly/Function/@GenericFiniteElementFunction/Generic_Write_Basis_Eval_Interpolation_to_CPP_Code.m | 2,930 | utf_8 | 83957ab5636c3bbbace2b0157658d68e | function status = Generic_Write_Basis_Eval_Interpolation_to_CPP_Code(...
obj,fid,Eval_Basis,COMMENT)
%Generic_Write_Basis_Eval_Interpolation_to_CPP_Code
%
% This encapsulates the code generation for writing the evaluations of
% basis functions (symbolically).
%
% The basis functio... |
github | eardi/sm-fpca-master | Generic_Write_Basis_Eval_Interpolation_to_CPP_Code_OLD.m | .m | sm-fpca-master/FELICITY_Ver1.3.1/FELICITY/Code_Generation/Matrix_Assembly/Function/@GenericFiniteElementFunction/Generic_Write_Basis_Eval_Interpolation_to_CPP_Code_OLD.m | 2,654 | utf_8 | 81d9a4a1db9871971855df405c57b7b9 | function status = Generic_Write_Basis_Eval_Interpolation_to_CPP_Code(...
obj,VAR_NAME,NUM_BASIS_str,Largest_Derivative_Order,Tensor_Comp,Eval_Basis,fid_Open,COMMENT)
%Generic_Write_Basis_Eval_Interpolation_to_CPP_Code
%
% This encapsulates the code generation for writing the evaluations ... |
github | eardi/sm-fpca-master | Get_Eval_String.m | .m | sm-fpca-master/FELICITY_Ver1.3.1/FELICITY/Code_Generation/Matrix_Assembly/Function/@FiniteElementCoefFunction/Get_Eval_String.m | 6,463 | utf_8 | 4328cd226be8a0388f4512b3257c59c5 | function [obj, Replacement_str] = Get_Eval_String(obj,input_str,var_str,Geo_Dim,Num_Tuple_in_FE_Space)
%Get_Eval_String
%
% This will parse the coefficient function string. It also sets the options
% (.Opt) of the function.
% Copyright (c) 12-15-2017, Shawn W. Walker
% init
Replacement_str = [];
len_v... |
github | eardi/sm-fpca-master | Get_Eval_String.m | .m | sm-fpca-master/FELICITY_Ver1.3.1/FELICITY/Code_Generation/Matrix_Assembly/Function/@FiniteElementBasisFunction/Get_Eval_String.m | 7,881 | utf_8 | 0b488bbbcb0dbf9794392c577e07603a | function [obj, Replacement_str] = Get_Eval_String(obj,input_str,var_str,Geo_Dim,Num_Tuple_in_FE_Space)
%Get_Eval_String
%
% This will parse the basis function string. It also sets the options
% (.Opt) of the function.
% Copyright (c) 12-15-2017, Shawn W. Walker
% init
Replacement_str = [];
len_var_str... |
github | eardi/sm-fpca-master | Write_Basis_Func_Eval_3D_Hcurl_snip.m | .m | sm-fpca-master/FELICITY_Ver1.3.1/FELICITY/Code_Generation/Matrix_Assembly/Function/@FiniteElementBasisFunction/private/Write_Basis_Func_Eval_3D_Hcurl_snip.m | 2,198 | utf_8 | 37a1c290a98f63935c0ba1ebb1d60cf6 | function status = Write_Basis_Func_Eval_3D_Hcurl_snip(obj,fid,Largest_Derivative_Order,Map_Basis,Quad)
%Write_Basis_Func_Eval_3D_Hcurl_snip
%
% This does part of the job of "Write_Basis_Func_Eval_snip" except for
% H(curl) elements in 3-D (because they are a PITA).
% Copyright (c) 11-08-2016, Shawn W. Walke... |
github | eardi/sm-fpca-master | Write_Basis_Eval_Interpolation_3D_Hcurl_snip.m | .m | sm-fpca-master/FELICITY_Ver1.3.1/FELICITY/Code_Generation/Matrix_Assembly/Function/@FiniteElementBasisFunction/private/Write_Basis_Eval_Interpolation_3D_Hcurl_snip.m | 2,241 | utf_8 | e29dad7a1ce1538238dac756ebd49585 | function status = Write_Basis_Eval_Interpolation_3D_Hcurl_snip(obj,fid,Largest_Derivative_Order,Map_Basis)
%Write_Basis_Eval_Interpolation_3D_Hcurl_snip
%
% This does part of the job of "Write_Basis_Eval_Interpolation_snip"
% except for H(curl) elements in 3-D (because they are a PITA).
% Copyright (c) 11-13... |
github | eardi/sm-fpca-master | Gen_Basis_Function_Class_Defn.m | .m | sm-fpca-master/FELICITY_Ver1.3.1/FELICITY/Code_Generation/Matrix_Assembly/Function/@FiniteElementBasisFunction/private/Gen_Basis_Function_Class_Defn.m | 4,336 | utf_8 | aacaf3a8d0cfa90215ebe9c4d58ff7bd | function [status, Premap_CODE] = Gen_Basis_Function_Class_Defn(obj,fid,BF_CODE)
%Gen_Basis_Function_Class_Defn
%
% This declares the Basis_Function_Class definition.
% Copyright (c) 01-15-2018, Shawn W. Walker
ENDL = '\n';
TAB = ' ';
TAB2 = [TAB, TAB];
%%%%%%%
% output text-lines
fprintf(fid, ['', E... |
github | eardi/sm-fpca-master | Get_Eval_String.m | .m | sm-fpca-master/FELICITY_Ver1.3.1/FELICITY/Code_Generation/Matrix_Assembly/Function/@GeometricElementFunction/Get_Eval_String.m | 9,080 | utf_8 | bb4eaf4c05d80983f9c24b6b62f1f2e0 | function [obj, Replacement_str] = Get_Eval_String(obj,input_str,domain_choice)
%Get_Eval_String
%
% This will parse the geom function string. domain_choice selects either the Subdomain
% geometry or the Domain of Integration (DoI) geometry.
% Copyright (c) 01-24-2014, Shawn W. Walker
% SWW: could there ... |
github | eardi/sm-fpca-master | Write_SUBRoutine_Compute_Map.m | .m | sm-fpca-master/FELICITY_Ver1.3.1/FELICITY/Code_Generation/Matrix_Assembly/Function/@GeometricElementFunction/private/Write_SUBRoutine_Compute_Map.m | 3,451 | utf_8 | 5345521c7f3161f99ade27be2c9724b8 | function status = Write_SUBRoutine_Compute_Map(obj,fid,Geo_CODE,Compute_Map)
%Write_SUBRoutine_Compute_Map
%
% This generates a sub-routine of the Mesh_Geometry_Class for computing
% transformations of the local element map.
% Copyright (c) 03-10-2012, Shawn W. Walker
ENDL = '\n';
% insert code snippe... |
github | eardi/sm-fpca-master | Parse_Integrals.m | .m | sm-fpca-master/FELICITY_Ver1.3.1/FELICITY/Code_Generation/Matrix_Assembly/Level_1/@Real/Parse_Integrals.m | 3,939 | utf_8 | 26556a155ae47c4c4a594c765b64c938 | function [Parsed, Num_Nonzeros] = Parse_Integrals(obj)
%Parse_Integrals
%
% This parses the integrals (in a Real matrix) into a more useable struct.
%
% [Parsed, Num_Nonzeros] = obj.Parse_Integrals;
%
% Parsed = array (length M) of structs:
% .Integrand_Sym(:,:) = RxC sym expression (R,C is the... |
github | eardi/sm-fpca-master | Add_Integral.m | .m | sm-fpca-master/FELICITY_Ver1.3.1/FELICITY/Code_Generation/Matrix_Assembly/Level_1/@genericform/Add_Integral.m | 2,585 | utf_8 | 0caf46b517c35633d5df30b374180613 | function obj = Add_Integral(obj,Int_Obj)
%Add_Integral
%
% This adds an Integral object to the genericform object.
%
% obj = obj.Add_Integral(Int_Obj);
%
% Int_Obj = a Level 1 Integral object.
% Copyright (c) 05-25-2012, Shawn W. Walker
if or(size(obj,1) > 1,size(obj,2) > 1)
disp('This object i... |
github | eardi/sm-fpca-master | Verify_Multilinearity_Of_Form.m | .m | sm-fpca-master/FELICITY_Ver1.3.1/FELICITY/Code_Generation/Matrix_Assembly/Level_1/@genericform/private/Verify_Multilinearity_Of_Form.m | 3,504 | utf_8 | c6daa4caa5819c4f4e7f9c2050836b23 | function Verify_Multilinearity_Of_Form(obj,Int_Obj)
%Verify_Multilinearity_Of_Form
%
% This checks the symbolic expression that defines the integrand of Int_Obj, and
% verifies that it has the proper "form", i.e. the expression should define a proper
% bilinear or linear form (as the case may be).
%
% ob... |
github | eardi/sm-fpca-master | Verify_Consistent_Function_Domains.m | .m | sm-fpca-master/FELICITY_Ver1.3.1/FELICITY/Code_Generation/Matrix_Assembly/Level_1/@abstractexpr/Verify_Consistent_Function_Domains.m | 1,794 | utf_8 | d2b40c0987726be01797df8e787f086b | function status = Verify_Consistent_Function_Domains(obj)
%Verify_Consistent_Function_Domains
%
% This checks that all functions (Test, Trial, and Coef(s)) stored in this object are
% suitably defined on the domain of evaluation.
%
% status = obj.Verify_Consistent_Function_Domains;
%
% status = 0, if ro... |
github | eardi/sm-fpca-master | Parse_Vars_From_Given_Function.m | .m | sm-fpca-master/FELICITY_Ver1.3.1/FELICITY/Code_Generation/Matrix_Assembly/Level_1/@abstractexpr/Parse_Vars_From_Given_Function.m | 4,021 | utf_8 | 34277b9f7b2e3610dc6689499589a23e | function Parsed_Func = Parse_Vars_From_Given_Function(obj,L1Func,Vars)
%Parse_Vars_From_Given_Function
%
% This takes a given list of symbolic variables, finds the ones that
% correspond to the given function, and returns a structure containing those
% function vars. Each row of the output structure corresp... |
github | eardi/sm-fpca-master | pt_search_unit_test_dirs.m | .m | sm-fpca-master/FELICITY_Ver1.3.1/FELICITY/Code_Generation/Interpolation/pt_search_unit_test_dirs.m | 1,491 | utf_8 | 0da6eaaf9eb85a0687bdd57f5c980143 | function Unit_Test_Dirs = pt_search_unit_test_dirs()
%pt_search_unit_test_dirs
%
% This outputs a list of directories containing the unit tests.
% Copyright (c) 05-07-2019, Shawn W. Walker
% get the main directory that this function is in!
MFN = mfilename('fullpath');
Main_Dir = fileparts(MFN);
% defin... |
github | eardi/sm-fpca-master | interpolation_unit_test_dirs.m | .m | sm-fpca-master/FELICITY_Ver1.3.1/FELICITY/Code_Generation/Interpolation/interpolation_unit_test_dirs.m | 1,342 | utf_8 | 413ea0d6cff377bb1d0afc6a870997c6 | function Unit_Test_Dirs = interpolation_unit_test_dirs()
%interpolation_unit_test_dirs
%
% This outputs a list of directories containing the unit tests.
% Copyright (c) 05-07-2019, Shawn W. Walker
% get the main directory that this function is in!
MFN = mfilename('fullpath');
Main_Dir = fileparts(MFN);
... |
github | eardi/sm-fpca-master | Need_Orientation.m | .m | sm-fpca-master/FELICITY_Ver1.3.1/FELICITY/Code_Generation/Interpolation/Level_3/@FELPointSearches/Need_Orientation.m | 647 | utf_8 | 1721234c0d8a17cb6d17bfbca0632fd2 | function TF = Need_Orientation(obj)
%Need_Orientation
%
% This indicates if mesh orientation data is needed.
% Copyright (c) 06-26-2014, Shawn W. Walker
GeomFunc = obj.GeomFuncs.values;
% if an option has been set (in any geometric function) for orientation data,
% then return true!
TF = false; % in... |
github | eardi/sm-fpca-master | Run_Conversion.m | .m | sm-fpca-master/FELICITY_Ver1.3.1/FELICITY/Code_Generation/Interpolation/Main/@Interp_L1toL3/Run_Conversion.m | 2,360 | utf_8 | 3f020b3d031a14d4966a478a4bf38dcd | function [FS, FI, C_Codes, Elems_DoF_Allocation] = Run_Conversion(obj,Main_Dir,Snippet_Dir)
%Run_Conversion
%
% This converts INTERP (a Level 1 object) into Level 3 objects.
% Note: there is an intermediate Level 2 object (struct).
% Copyright (c) 01-25-2013, Shawn W. Walker
Domain_of_Expression_Info = o... |
github | eardi/sm-fpca-master | Check_Domains.m | .m | sm-fpca-master/FELICITY_Ver1.3.1/FELICITY/Code_Generation/Interpolation/Main/@Interp_L1toL3/private/Check_Domains.m | 1,360 | utf_8 | 5b967847833790a36e382161ed942ceb | function status = Check_Domains(obj,DS)
%Check_Domains
%
% This just does some basic error checking.
% Copyright (c) 01-28-2013, Shawn W. Walker
status = 0;
% check hold-all domain
if ~isequal(DS.Hold_All,obj.INTERP.GeoElem.Domain)
disp('Data structures are inconsistent!');
error('This should ... |
github | eardi/sm-fpca-master | Prune_BasisFunc.m | .m | sm-fpca-master/FELICITY_Ver1.3.1/FELICITY/Code_Generation/Interpolation/Main/@Interp_L1toL3/private/Prune_BasisFunc.m | 1,465 | utf_8 | 8065ea6972e78679badecab1d74cfb90 | function FS = Prune_BasisFunc(obj,FS)
%Prune_BasisFunc
%
% This removes the basis functions that are not used by the set of CoefF(s).
% Copyright (c) 01-29-2013, Shawn W. Walker
for ii = 1:length(FS.Integration)
% find the FE spaces that are needed to evaluate the FEM interpolations
Coef_Funcs = F... |
github | eardi/sm-fpca-master | Setup_FELGeoms.m | .m | sm-fpca-master/FELICITY_Ver1.3.1/FELICITY/Code_Generation/Interpolation/Main/@Interp_L1toL3/private/Setup_FELGeoms.m | 2,785 | utf_8 | a0b0fd2a3e98aadc2a1a59f7161141db | function FS = Setup_FELGeoms(obj,FS)
%Setup_FELGeoms
%
% This inits the GeomFunc Map container under FS.Integration(ind).GeomFunc.
% Copyright (c) 01-27-2014, Shawn W. Walker
Num_Distinct_Expression_Domains = length(FS.Integration);
for ind = 1:Num_Distinct_Expression_Domains
% geometry representation... |
github | eardi/sm-fpca-master | Setup_FELSpaces.m | .m | sm-fpca-master/FELICITY_Ver1.3.1/FELICITY/Code_Generation/Interpolation/Main/@Interp_L1toL3/private/Setup_FELSpaces.m | 1,969 | utf_8 | 687a1cb873788515d503e3cb6fd9a23c | function FS = Setup_FELSpaces(obj,Domain_Info)
%Setup_FELSpaces
%
% This inits the FELSpaces object.
% Copyright (c) 01-28-2013, Shawn W. Walker
check_geometric_element_domain_geodim_consistency(obj.INTERP.GeoElem.Tensor_Comp,Domain_Info);
% create geometric element for the Hold-All container domain
DEB... |
github | eardi/sm-fpca-master | Get_Unique_List_Of_Domains.m | .m | sm-fpca-master/FELICITY_Ver1.3.1/FELICITY/Code_Generation/Interpolation/Main/@Interp_L1toL3/private/Get_Unique_List_Of_Domains.m | 4,247 | utf_8 | da83ba9c50ab0b76828f659d07ea8b05 | function SS = Get_Unique_List_Of_Domains(obj)
%Get_Unique_List_Of_Domains
%
% This outputs a structure that looks like:
% SS.Hold_All = Global container domain.
% SS.Domain_Of_Expression(k).
% Domain = expression domain (that is embedded in Hold_All
% domain... |
github | eardi/sm-fpca-master | Gen_Point_Search_Specific_cc.m | .m | sm-fpca-master/FELICITY_Ver1.3.1/FELICITY/Code_Generation/Interpolation/Main/@GenFELPtSearchCode/Gen_Point_Search_Specific_cc.m | 19,393 | utf_8 | 5ef8bc2c5a51731290830e1e0993a72c | function Gen_Point_Search_Specific_cc(obj,FPS,Search_Domain)
%Gen_Point_Search_Specific_cc
%
% This generates the file: "CLASS_Search_SPECIFIC.cc", except with a more
% specific filename!
% Copyright (c) 07-26-2014, Shawn W. Walker
ENDL = '\n';
% get specific domain search information
CPP_PTS = FPS.... |
github | eardi/sm-fpca-master | Check_Domains.m | .m | sm-fpca-master/FELICITY_Ver1.3.1/FELICITY/Code_Generation/Interpolation/Main/@PtSearch_L1toL3/private/Check_Domains.m | 1,232 | utf_8 | a858da466ecc2d7458d16d88a7f474f4 | function status = Check_Domains(obj,DS)
%Check_Domains
%
% This just does some basic error checking.
% Copyright (c) 06-13-2014, Shawn W. Walker
status = 0;
% check hold-all domain
if ~isequal(DS.Hold_All,obj.PTSEARCH.GeoElem.Domain)
disp('Data structures are inconsistent!');
error('This shoul... |
github | eardi/sm-fpca-master | FEL_Execute_Interp_Shape_Op_2D.m | .m | sm-fpca-master/FELICITY_Ver1.3.1/FELICITY/Code_Generation/Interpolation/Unit_Test/TopDim_2_GeoDim_3/Shape_Operator/FEL_Execute_Interp_Shape_Op_2D.m | 3,167 | utf_8 | 3b25928aa8a2bd58601717278f12a5eb | function status = FEL_Execute_Interp_Shape_Op_2D(mexName)
%FEL_Execute_Interp_Shape_Op_2D
%
% test FELICITY Auto-Generated Interpolation Code.
% Copyright (c) 08-16-2014, Shawn W. Walker
% current_file = mfilename('fullpath');
% Current_Dir = fileparts(current_file);
% get test mesh
[Omega_P1_Vtx, Ome... |
github | eardi/sm-fpca-master | FEL_Execute_Interp_BDM1_2D.m | .m | sm-fpca-master/FELICITY_Ver1.3.1/FELICITY/Code_Generation/Interpolation/Unit_Test/Dim_2/Hdiv/FEL_Execute_Interp_BDM1_2D.m | 3,908 | utf_8 | 6fba7a850a5c03d3023c9d08e1494e44 | function status = FEL_Execute_Interp_BDM1_2D(mexName_DoF,mexName_Interp)
%FEL_Execute_Interp_BDM1_2D
%
% test FELICITY Auto-Generated Interpolation Code.
% Copyright (c) 02-10-2013, Shawn W. Walker
current_file = mfilename('fullpath');
Current_Dir = fileparts(current_file);
% get test mesh
[Omega_P1_V... |
github | eardi/sm-fpca-master | FEL_Execute_Pt_Search_Curve_In_3D.m | .m | sm-fpca-master/FELICITY_Ver1.3.1/FELICITY/Code_Generation/Interpolation/Unit_Test/Point_Searches/TopDim_1_GeoDim_3/FEL_Execute_Pt_Search_Curve_In_3D.m | 4,813 | utf_8 | 8ea863abb0b9ae60f2ff9f3debc156a0 | function status = FEL_Execute_Pt_Search_Curve_In_3D(mexName)
%FEL_Execute_Pt_Search_Curve_In_3D
%
% test FELICITY Auto-Generated Point Search Code.
% Copyright (c) 07-25-2014, Shawn W. Walker
current_file = mfilename('fullpath');
Current_Dir = fileparts(current_file);
% get test mesh (interval [0, 9])
... |
github | eardi/sm-fpca-master | FEL_Execute_Pt_Search_Surface_In_3D.m | .m | sm-fpca-master/FELICITY_Ver1.3.1/FELICITY/Code_Generation/Interpolation/Unit_Test/Point_Searches/TopDim_2_GeoDim_3/FEL_Execute_Pt_Search_Surface_In_3D.m | 5,266 | utf_8 | 260b1acd6cff744c6f32383e8da40541 | function status = FEL_Execute_Pt_Search_Surface_In_3D(mexName)
%FEL_Execute_Pt_Search_Surface_In_3D
%
% test FELICITY Auto-Generated Point Search Code.
% Copyright (c) 07-24-2014, Shawn W. Walker
current_file = mfilename('fullpath');
Current_Dir = fileparts(current_file);
% get test mesh (square [0, 2]... |
github | eardi/sm-fpca-master | FEL_Execute_Pt_Search_Curve_In_2D.m | .m | sm-fpca-master/FELICITY_Ver1.3.1/FELICITY/Code_Generation/Interpolation/Unit_Test/Point_Searches/TopDim_1_GeoDim_2/FEL_Execute_Pt_Search_Curve_In_2D.m | 4,244 | utf_8 | a5ffbbd3253026813175ddca617964c9 | function status = FEL_Execute_Pt_Search_Curve_In_2D(mexName)
%FEL_Execute_Pt_Search_Curve_In_2D
%
% test FELICITY Auto-Generated Point Search Code.
% Copyright (c) 07-26-2014, Shawn W. Walker
current_file = mfilename('fullpath');
Current_Dir = fileparts(current_file);
% get test mesh (interval [0, 9])
... |
github | eardi/sm-fpca-master | Elem_DoF_Allocator_class_declaration_3D_tetrahedron.m | .m | sm-fpca-master/FELICITY_Ver1.3.1/FELICITY/Code_Generation/DoF_Numbering/@GenDoFNumberingCode/private/Elem_DoF_Allocator_class_declaration_3D_tetrahedron.m | 21,141 | utf_8 | 02781f6353844b17dc6b7b270c08d03d | function clss = Elem_DoF_Allocator_class_declaration_3D_tetrahedron(obj,Elem)
%Elem_DoF_Allocator_class_declaration_3D_tetrahedron
%
% This stores lines of code for sub-sections of the
% 'Elem_DoF_Allocator.cc' C++ code file.
% Copyright (c) 10-14-2016, Shawn W. Walker
Elem_Nodal_Top = Elem.Nodal_Top;
E... |
github | eardi/sm-fpca-master | Elem_DoF_Allocator_class_declaration_2D_triangle.m | .m | sm-fpca-master/FELICITY_Ver1.3.1/FELICITY/Code_Generation/DoF_Numbering/@GenDoFNumberingCode/private/Elem_DoF_Allocator_class_declaration_2D_triangle.m | 11,622 | utf_8 | f04f8556c207417053c451c50d554c4a | function clss = Elem_DoF_Allocator_class_declaration_2D_triangle(obj,Elem)
%Elem_DoF_Allocator_class_declaration_2D_triangle
%
% This stores lines of code for sub-sections of the
% 'Elem_DoF_Allocator.cc' C++ code file.
% Copyright (c) 10-14-2016, Shawn W. Walker
Elem_Nodal_Top = Elem.Nodal_Top;
Elem_No... |
github | eardi/sm-fpca-master | Get_Local_Geom_Functions.m | .m | sm-fpca-master/FELICITY_Ver1.3.1/FELICITY/Code_Generation/Super_Classes/Level_3/@FELExpression/Get_Local_Geom_Functions.m | 1,139 | utf_8 | 1af5f161aa08dcfe6c92bba382265b52 | function GEOM = Get_Local_Geom_Functions(obj,Spaces,Integration_Index)
%Get_Local_Geom_Functions
%
% This returns a struct containing info about the local geometric functions needed for
% the current domain of expression.
% note: geometric functions are ``fresh'' everytime (all options off)
% Copyright (c... |
github | eardi/sm-fpca-master | Get_Local_Coef_Functions.m | .m | sm-fpca-master/FELICITY_Ver1.3.1/FELICITY/Code_Generation/Super_Classes/Level_3/@FELExpression/Get_Local_Coef_Functions.m | 1,046 | utf_8 | 85132f9644bdd53e1f358dde17f4e4c6 | function CF = Get_Local_Coef_Functions(obj,Spaces,Integration_Index)
%Get_Local_Coef_Functions
%
% This returns a struct containing info about the local coefficient functions.
% note: coef functions are ``fresh'' everytime (all options off)
% Copyright (c) 03-24-2017, Shawn W. Walker
Coefs = Spaces.Integ... |
github | eardi/sm-fpca-master | Robust_Var_Name_Replacements.m | .m | sm-fpca-master/FELICITY_Ver1.3.1/FELICITY/Code_Generation/Super_Classes/Level_3/@FELExpression/Robust_Var_Name_Replacements.m | 1,309 | utf_8 | e66b02287da17b4285dee40bfc158e88 | function [New_Sym_Exp, New_Var_Names] = Robust_Var_Name_Replacements(obj,Sym_Exp,Var_Names)
%Robust_Var_Name_Replacements
%
% This replaces all the variable names in the symbolic expression ``Sym_Exp''
% with new variable names that have DISTINCT names. This is done to ensure
% that no name is a subset of a... |
github | eardi/sm-fpca-master | Need_Orientation.m | .m | sm-fpca-master/FELICITY_Ver1.3.1/FELICITY/Code_Generation/Super_Classes/Ghost_Writers/@Generic_GenFELCode/Need_Orientation.m | 726 | utf_8 | daa2cb3eec11cb1a7f95010cf58cc961 | function TF = Need_Orientation(obj,FS)
%Need_Orientation
%
% This indicates if mesh orientation data is needed.
% Copyright (c) 06-25-2012, Shawn W. Walker
TF = false;
for ind = 1:length(FS.Integration)
Opt = FS.Integration(ind).DoI_Geom.Opt;
TF = orientation_present(Opt);
if ~TF
... |
github | eardi/sm-fpca-master | Gen_Misc_Matrix_Assembler.m | .m | sm-fpca-master/FELICITY_Ver1.3.1/FELICITY/Code_Generation/Super_Classes/Ghost_Writers/@Generic_GenFELCode/Gen_Misc_Matrix_Assembler.m | 1,499 | utf_8 | ac4c6b551d264710143b6389a0775e37 | function Gen_Misc_Matrix_Assembler(obj,fid)
%Gen_Misc_Matrix_Assembler
%
% This generates a section of Misc_Stuff.h: the core matrix assembly code.
% fid = an (open) file ID to "Misc_Stuff.h".
% Copyright (c) 06-13-2014, Shawn W. Walker
% copy some standard files over
FC = FELCodeHdr();
% assembler
... |
github | eardi/sm-fpca-master | Gen_Misc_Math.m | .m | sm-fpca-master/FELICITY_Ver1.3.1/FELICITY/Code_Generation/Super_Classes/Ghost_Writers/@Generic_GenFELCode/Gen_Misc_Math.m | 1,589 | utf_8 | a295c1631e3e8e024888f570bf338a9e | function Gen_Misc_Math(obj,fid)
%Gen_Misc_Math
%
% This generates a section of Misc_Stuff.h: the basic math code.
% fid = an (open) file ID to "Misc_Stuff.h".
% Copyright (c) 06-13-2014, Shawn W. Walker
% copy some standard files over
FC = FELCodeHdr();
% copy over rudimentary structs and math stuff... |
github | eardi/sm-fpca-master | Gen_Misc_Domain_Classes.m | .m | sm-fpca-master/FELICITY_Ver1.3.1/FELICITY/Code_Generation/Super_Classes/Ghost_Writers/@Generic_GenFELCode/Gen_Misc_Domain_Classes.m | 1,559 | utf_8 | 0a9ad7e7a0341d40e3f9c79984ac5f5f | function Gen_Misc_Domain_Classes(obj,fid,GeomFunc)
%Gen_Misc_Domain_Classes
%
% This generates a section of Misc_Stuff.h: the domain class files.
% fid = an (open) file ID to "Misc_Stuff.h".
% Copyright (c) 06-13-2014, Shawn W. Walker
% copy some standard files over
FC = FELCodeHdr();
% mesh domains... |
github | eardi/sm-fpca-master | Gen_Misc_Geometry_Classes.m | .m | sm-fpca-master/FELICITY_Ver1.3.1/FELICITY/Code_Generation/Super_Classes/Ghost_Writers/@Generic_GenFELCode/Gen_Misc_Geometry_Classes.m | 1,582 | utf_8 | a153098fbfaf70f27401fcfe442c0ffe | function Gen_Misc_Geometry_Classes(obj,fid,GeomFunc)
%Gen_Misc_Geometry_Classes
%
% This generates a section of Misc_Stuff.h: the mesh geometry class files.
% fid = an (open) file ID to "Misc_Stuff.h".
% Copyright (c) 06-13-2014, Shawn W. Walker
% copy some standard files over
FC = FELCodeHdr();
% m... |
github | eardi/sm-fpca-master | Compute_Cut_Points.m | .m | sm-fpca-master/FELICITY_Ver1.3.1/FELICITY/Static_Codes/Isosurface_Meshing/@Mesher2Dmex/private/Compute_Cut_Points.m | 2,770 | utf_8 | 66a6322116b5a7304b531867f2dcd951 | function cut_pts = Compute_Cut_Points(obj,Interp_Func,Edge_Tail_Point,Edge_Head_Point)
%Compute_Cut_Points
%
% This computes a cut point for each cut edge.
% Copyright (c) 02-10-2018, Shawn W. Walker
TOL = obj.Tolerance;
if obj.Use_Newton
cut_pts = get_cut_point_newton(Interp_Func,Edge_Tail_Point,E... |
github | eardi/sm-fpca-master | Compute_Angles.m | .m | sm-fpca-master/FELICITY_Ver1.3.1/FELICITY/Static_Codes/Isosurface_Meshing/@Mesher2Dmex/private/Compute_Angles.m | 835 | utf_8 | 2e47f6c0a090ec72d27a1da515174090 | function A = Compute_Angles(p,t)
%Compute_Angles
%
% 2-D Mesh: A = Tx3 matrix, where each row contains the 3 interior
% angles of a single triangle in the mesh. The angles are
% ordered with respect to the (local) vertex index.
% Angles are given in radians!
% Copyright (c)... |
github | eardi/sm-fpca-master | Compute_Cut_Points.m | .m | sm-fpca-master/FELICITY_Ver1.3.1/FELICITY/Static_Codes/Isosurface_Meshing/@Mesher3Dmex/private/Compute_Cut_Points.m | 2,947 | utf_8 | 35278f478d47ee0dba388815007ebd05 | function cut_pts = Compute_Cut_Points(obj,Interp_Func,Edge_Tail_Point,Edge_Head_Point)
%Compute_Cut_Points
%
% This computes a cut point for each cut edge.
% Copyright (c) 02-10-2018, Shawn W. Walker
TOL = obj.Tolerance;
if obj.Use_Newton
cut_pts = get_cut_point_newton(Interp_Func,Edge_Tail_Point,E... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.